From f45c9dbe87d6f70042c18b03ee178099ef48eb4c Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 4 Apr 2024 13:42:52 -0400 Subject: [PATCH] [ruby/prism] Fix up some comments in the parser compiler https://github.com/ruby/prism/commit/e2147cddd8 --- lib/prism/translation/parser/compiler.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/prism/translation/parser/compiler.rb b/lib/prism/translation/parser/compiler.rb index 0503d003f5..0b1893cade 100644 --- a/lib/prism/translation/parser/compiler.rb +++ b/lib/prism/translation/parser/compiler.rb @@ -406,9 +406,6 @@ module Prism # @@foo = 1 # ^^^^^^^^^ - # - # @@foo, @@bar = 1 - # ^^^^^ ^^^^^ def visit_class_variable_write_node(node) builder.assign( builder.assignable(builder.cvar(token(node.name_loc))), @@ -701,9 +698,6 @@ module Prism # $foo = 1 # ^^^^^^^^ - # - # $foo, $bar = 1 - # ^^^^ ^^^^ def visit_global_variable_write_node(node) builder.assign( builder.assignable(builder.gvar(token(node.name_loc))), @@ -1028,6 +1022,7 @@ module Prism end # -> {} + # ^^^^^ def visit_lambda_node(node) parameters = node.parameters