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

Move processing of lhs_s_value method to Binding class #501

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

ydah
Copy link
Member

@ydah ydah commented Jan 2, 2025

This PR move processing of lhs_s_value method to Binding class.

@ydah ydah marked this pull request as ready for review January 2, 2025 16:40
@@ -30,6 +34,17 @@ def parameter_to_arg(symbol)
end
arg
end

def token_to_args_s_values(token)
token.args.flat_map do |arg|
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: Array#join expands array of array recursively then both #flat_map and #map works. However returning unnested array is simpler.

@ydah ydah merged commit 549bf14 into ruby:master Jan 6, 2025
19 checks passed
@ydah ydah deleted the refactor-inline2 branch January 6, 2025 06:39
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.

2 participants