From be338bdd5201c1cb33e206e9511d1a4645489439 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 7 Aug 2024 15:30:50 +0900 Subject: [PATCH] Use "binary_operator" instead of "operator" --- lib/typeprof/core/ast/call.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/typeprof/core/ast/call.rb b/lib/typeprof/core/ast/call.rb index 7dc11d94..88fc9f99 100644 --- a/lib/typeprof/core/ast/call.rb +++ b/lib/typeprof/core/ast/call.rb @@ -195,8 +195,8 @@ def initialize(raw_node, lenv) class OperatorNode < CallBaseNode def initialize(raw_node, recv, lenv) - mid = raw_node.operator - mid_code_range = TypeProf::CodeRange.from_node(raw_node.operator_loc) + mid = raw_node.binary_operator + mid_code_range = TypeProf::CodeRange.from_node(raw_node.binary_operator_loc) last_arg = AST.create_node(raw_node.value, lenv) super(raw_node, recv, mid, mid_code_range, nil, last_arg, nil, lenv) end