instance method
Prism::Translation::RubyParser::Compiler#visit_constant_path_node
visit_constant_path_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 549
def visit_constant_path_node(node)
if node.parent.nil?
s(node, :colon3, node.name)
else
s(node, :colon2, visit(node.parent), node.name)
end
end
Foo::Bar ^^^^^^^^