зеркало из https://github.com/github/ruby.git
[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:
Родитель
5b7baa0486
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче