summaryrefslogtreecommitdiff
path: root/lib/prism/translation/ruby_parser.rb
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-05-29 10:12:51 -0400
committerKevin Newton <[email protected]>2024-05-30 15:18:20 -0400
commit72452f43871b8034bfa718ed823bc62b5b81d6f9 (patch)
tree1bd87295dfcf10d20bce7f6d18184644bb079387 /lib/prism/translation/ruby_parser.rb
parent1ab7c412d2e3880a7ad233c32e93961888f8145c (diff)
[ruby/prism] Tests overhaul
https://github.com/ruby/prism/commit/6f886be0a4
Diffstat (limited to 'lib/prism/translation/ruby_parser.rb')
-rw-r--r--lib/prism/translation/ruby_parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prism/translation/ruby_parser.rb b/lib/prism/translation/ruby_parser.rb
index ec458a3b63..38690c54b3 100644
--- a/lib/prism/translation/ruby_parser.rb
+++ b/lib/prism/translation/ruby_parser.rb
@@ -485,9 +485,9 @@ module Prism
def visit_constant_path_target_node(node)
inner =
if node.parent.nil?
- s(node, :colon3, node.child.name)
+ s(node, :colon3, node.name)
else
- s(node, :colon2, visit(node.parent), node.child.name)
+ s(node, :colon2, visit(node.parent), node.name)
end
s(node, :const, inner)