-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add forwarded_kwrestarg
node to AST::Builder
#259
Add forwarded_kwrestarg
node to AST::Builder
#259
Conversation
072934b
to
6dc37dd
Compare
ensure: EnsureNode, | ||
for: ForNode, | ||
forward_args: ForwardArgsNode, | ||
forwarded_kwrestarg: KeywordSplatNode, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is the only one added in this map.
6dc37dd
to
6f0320a
Compare
My only hesitation is: do we want a different class, or could we not use |
I was clearly tired, sorry, you are using it 👍 . I guess my hesitation was more should |
6f0320a
to
7f31e0f
Compare
Ah, yeah, I thought it would be better to be able to distinguish between |
Oh, good. I'm not sure, but yeah, seems like usually we won't really care about the distinction. Thanks |
This PR adds `forwarded_kwrestarg` node to `AST::Builder`. This feature is required to resolve rubocop/rubocop#11730. I thought about defining a class like `ForwardedKwrestargNode` for `forwarded_kwrestarg`, but the node is actually an anonymous `KeywordSplatNode` so it's used.
7f31e0f
to
325060a
Compare
Thank you so much! Released as 1.28.0 🚀 |
This PR adds
forwarded_kwrestarg
node toAST::Builder
.This feature is required to resolve rubocop/rubocop#11730.
I thought about defining a class like
ForwardedKwrestargNode
forforwarded_kwrestarg
, but the node is actually an anonymousKeywordSplatNode
so it's used.