Skip to content

Commit

Permalink
[ruby/prism] Fix up some comments in the parser compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Apr 4, 2024
1 parent 0aa1d61 commit f45c9db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/prism/translation/parser/compiler.rb
Expand Up @@ -406,9 +406,6 @@ def visit_class_variable_read_node(node)

# @@foo = 1
# ^^^^^^^^^
#
# @@foo, @@bar = 1
# ^^^^^ ^^^^^
def visit_class_variable_write_node(node)
builder.assign(
builder.assignable(builder.cvar(token(node.name_loc))),
Expand Down Expand Up @@ -701,9 +698,6 @@ def visit_global_variable_read_node(node)

# $foo = 1
# ^^^^^^^^
#
# $foo, $bar = 1
# ^^^^ ^^^^
def visit_global_variable_write_node(node)
builder.assign(
builder.assignable(builder.gvar(token(node.name_loc))),
Expand Down Expand Up @@ -1028,6 +1022,7 @@ def visit_keyword_rest_parameter_node(node)
end

# -> {}
# ^^^^^
def visit_lambda_node(node)
parameters = node.parameters

Expand Down

0 comments on commit f45c9db

Please sign in to comment.