Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Jan 26, 2022

{ a: 1, **splat, b: 2 }

becomes

::Hash.[](a: 1, **splat, b: 2)

@github-actions github-actions bot added the Ruby label Jan 26, 2022
@hvitved hvitved force-pushed the ruby/desugar-hash-literals branch from 02743f9 to 5259a99 Compare January 26, 2022 09:22
@hvitved hvitved force-pushed the ruby/desugar-hash-literals branch from 5259a99 to 7ccb747 Compare January 26, 2022 12:52
```rb
{ a: 1, **splat, b: 2 }
```

becomes

```rb
::Hash.[](a: 1, **splat, b: 2)
```
@hvitved hvitved force-pushed the ruby/desugar-hash-literals branch from 7ccb747 to dd27ed8 Compare January 26, 2022 12:53
@hvitved hvitved marked this pull request as ready for review January 26, 2022 19:13
@hvitved hvitved requested a review from a team as a code owner January 26, 2022 19:13
hmac
hmac previously approved these changes Jan 27, 2022
Copy link
Contributor

@hmac hmac left a comment

Choose a reason for hiding this comment

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

Just have a few minor comments, this looks good and is nice and understandable!

I guess when we start to write flow summaries for methods involving hashes, we'll make use of the TKeywordArgumentPosition/TKeywordParameter position variants in order to specify them?

@hvitved hvitved merged commit 1e39259 into github:main Jan 27, 2022
@hvitved hvitved deleted the ruby/desugar-hash-literals branch January 27, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants