diff --git a/lib/prism/ripper_compat.rb b/lib/prism/ripper_compat.rb index f25ec872f1f..cff7da84886 100644 --- a/lib/prism/ripper_compat.rb +++ b/lib/prism/ripper_compat.rb @@ -352,7 +352,7 @@ def visit_unary_operator(value) 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, right_val) end # This method is responsible for updating lineno and column information