[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:
Noah Gibbs 2024-02-07 18:39:45 +00:00 коммит произвёл git
Родитель 5b7baa0486
Коммит 1b68b459ca
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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