instance method
Prism::Translation::RubyParser::Compiler#visit_pattern_constant
visit_pattern_constant(node)
lib/prism/translation/ruby_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/translation/ruby_parser.rb, line 1886
def visit_pattern_constant(node)
case node
when nil
# nothing
when ConstantReadNode
visit(node)
else
s(node, :const, visit(node))
end
end
Pattern constants get wrapped in another layer of :const.