Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement translation for PM_ASSOC_SPLAT_NODE #225

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

egiurleo
Copy link

Closes #45

Test plan

See included automated tests.

@egiurleo egiurleo self-assigned this Aug 29, 2024

# with other hash keys
{ a: 1, **foo }
{ **foo, a: 1 }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any other cases to be mindful of here? The other hash key/value pairs technically don't impact the assoc splat node, but I figured it would be reassuring to test it in a couple more contexts.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about anonymous ones, in method params?

def forwarder(**)
  forwardee(**)
end

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will handle this one separately. Issue here: #231


# with other hash keys
{ a: 1, **foo }
{ **foo, a: 1 }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about anonymous ones, in method params?

def forwarder(**)
  forwardee(**)
end

@egiurleo egiurleo merged commit ea5e6f4 into prism Sep 3, 2024
1 check passed
@egiurleo egiurleo deleted the emily/assoc-splat branch September 3, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement translation for PM_ASSOC_SPLAT_NODE
2 participants