class TypeProf::Core::AST::CallBaseNode::CallWriteNode

Attributes

rhs[R]

Public Class Methods

new(raw_node, rhs, lenv) click to toggle source
Calls superclass method TypeProf::Core::AST::CallBaseNode::new
# File typeprof-0.30.1/lib/typeprof/core/ast/call.rb, line 248
def initialize(raw_node, rhs, lenv)
  recv = AST.create_node(raw_node.receiver, lenv)
  mid = raw_node.is_a?(Prism::CallTargetNode) ? raw_node.name : raw_node.write_name
  mid_code_range = TypeProf::CodeRange.from_node(raw_node.message_loc)
  @rhs = rhs
  super(raw_node, recv, mid, mid_code_range, nil, rhs, nil, lenv)
end