Skip to content

Commit

Permalink
Use "binary_operator" instead of "operator"
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Aug 7, 2024
1 parent c77f5bf commit be338bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/typeprof/core/ast/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be338bd

Please sign in to comment.