diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-03-04 21:27:31 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-03-06 16:42:36 +0000 |
commit | bbaee0b7e42f9d81bcb0e0472729520079711d49 (patch) | |
tree | 0161266e27b11ad4335fa26946d8d9cd7253f0b7 /lib/prism/translation/parser/compiler.rb | |
parent | d56e80f07f78d5714b233b8ea5d5eeb55a6d1154 (diff) |
[ruby/prism] Add stubs for remaining ripper visit methods
https://github.com/ruby/prism/commit/4ba9abf664
Diffstat (limited to 'lib/prism/translation/parser/compiler.rb')
-rw-r--r-- | lib/prism/translation/parser/compiler.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/prism/translation/parser/compiler.rb b/lib/prism/translation/parser/compiler.rb index 1369fe6f81..e54ee1dbf5 100644 --- a/lib/prism/translation/parser/compiler.rb +++ b/lib/prism/translation/parser/compiler.rb @@ -800,6 +800,7 @@ module Prism end # 1i + # ^^ def visit_imaginary_node(node) visit_numeric(node, builder.complex([imaginary_value(node), srange(node.location)])) end @@ -887,9 +888,6 @@ module Prism # @foo = 1 # ^^^^^^^^ - # - # @foo, @bar = 1 - # ^^^^ ^^^^ def visit_instance_variable_write_node(node) builder.assign( builder.assignable(builder.ivar(token(node.name_loc))), @@ -1033,9 +1031,6 @@ module Prism # foo = 1 # ^^^^^^^ - # - # foo, bar = 1 - # ^^^ ^^^ def visit_local_variable_write_node(node) builder.assign( builder.assignable(builder.ident(token(node.name_loc))), |