mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
[ruby/prism] Commit Kevin's suggestion to simplify grabbing the operator.
874ba7a1f4
Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
This commit is contained in:
parent
5b7baa0486
commit
1b68b459ca
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue