Skip to content

Commit

Permalink
[ruby/prism] Share argument logic with calls and keywords in ripper t…
Browse files Browse the repository at this point in the history
…ranslation

ruby/prism@240bb08c2c
  • Loading branch information
kddnewton authored and matzbot committed Mar 6, 2024
1 parent f75aa76 commit 3c95848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/prism/translation/ripper.rb
Expand Up @@ -358,8 +358,8 @@ def visit_array_pattern_node(node)
# foo(bar)
# ^^^
def visit_arguments_node(node)
bounds(node.location)
on_args_add_block(visit_arguments(node.arguments), false)
arguments, _ = visit_call_node_arguments(node, nil, false)
arguments
end

# { a: 1 }
Expand Down
2 changes: 0 additions & 2 deletions test/prism/ripper_test.rb
Expand Up @@ -64,11 +64,9 @@ class RipperTest < TestCase
seattlerb/parse_line_evstr_after_break.txt
seattlerb/parse_pattern_051.txt
seattlerb/parse_pattern_058.txt
seattlerb/return_call_assocs.txt
seattlerb/stabby_block_iter_call.txt
seattlerb/stabby_block_iter_call_no_target_with_arg.txt
seattlerb/str_lit_concat_bad_encodings.txt
seattlerb/yield_call_assocs.txt
spanning_heredoc.txt
strings.txt
tilde_heredocs.txt
Expand Down

0 comments on commit 3c95848

Please sign in to comment.