mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
parent
a47d0f03db
commit
c947852fa8
1 changed files with 9 additions and 1 deletions
|
@ -1380,7 +1380,15 @@ module Prism
|
||||||
# next foo
|
# next foo
|
||||||
# ^^^^^^^^
|
# ^^^^^^^^
|
||||||
def visit_next_node(node)
|
def visit_next_node(node)
|
||||||
raise NoMethodError, __method__
|
if node.arguments.nil?
|
||||||
|
bounds(node.location)
|
||||||
|
on_next(on_args_new)
|
||||||
|
else
|
||||||
|
arguments = visit_array_node_elements(node.arguments.arguments)
|
||||||
|
|
||||||
|
bounds(node.location)
|
||||||
|
on_next(on_args_add_block(arguments, false))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# nil
|
# nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue