mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/prism] Commit Kevin's suggestion to simplify grabbing the operator.
https://github.com/ruby/prism/commit/874ba7a1f4 Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
This commit is contained in:
parent
5b7baa0486
commit
1b68b459ca
@ -352,7 +352,7 @@ module Prism
|
||||
def visit_binary_operator(node)
|
||||
left_val = visit(node.left)
|
||||
right_val = visit(node.right)
|
||||
on_binary(left_val, node.operator_loc.slice.to_sym, right_val)
|
||||
on_binary(left_val, node.operator.to_sym, right_val)
|
||||
end
|
||||
|
||||
# This method is responsible for updating lineno and column information
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user