class Prism::Translation::Parser::Compiler
def visit_splat_node(node)
def foo(*); bar(*); end
^^^^
def foo((bar, *baz)); end
^^^^
foo(*bar)
def visit_splat_node(node) if node.expression.nil? && forwarding.include?(:*) builder.forwarded_restarg(token(node.operator_loc)) elsif in_destructure builder.restarg(token(node.operator_loc), token(node.expression&.location)) elsif in_pattern builder.match_rest(token(node.operator_loc), token(node.expression&.location)) else builder.splat(token(node.operator_loc), visit(node.expression)) end end