instance method
Prism::Translation::RubyParser::Compiler#visit_local_variable_read_node
visit_local_variable_read_node(node)
lib/prism/translation/ruby_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/ruby_parser.rb, line 1182
def visit_local_variable_read_node(node)
if node.name.match?(/^_\d$/)
s(node, :call, nil, node.name)
else
s(node, :lvar, node.name)
end
end
foo ^^^