class YARP::CallNode
^^^^^^^^
foo&.bar
^^^^^^^
foo.bar
^^^^^^^^^
foo + bar
^^^^
+foo
^^^^^
foo()
^^^
foo
Represents a method call, in all of the various forms that can take.
def accept(visitor)
def accept(visitor) visitor.visit_call_node(self) end
def child_nodes
def child_nodes [receiver, arguments, block] end
def closing
def closing closing_loc&.slice end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { receiver: receiver, operator_loc: operator_loc, message_loc: message_loc, opening_loc: opening_loc, arguments: arguments, closing_loc: closing_loc, block: block, flags: flags, name: name, location: location } end
def initialize(receiver, operator_loc, message_loc, opening_loc, arguments, closing_loc, block, flags, name, location)
def initialize(receiver, operator_loc, message_loc, opening_loc, arguments, closing_loc, block, flags, name, location) @receiver = receiver @operator_loc = operator_loc @message_loc = message_loc @opening_loc = opening_loc @arguments = arguments @closing_loc = closing_loc @block = block @flags = flags @name = name @location = location end
def message
def message message_loc&.slice end
def opening
def opening opening_loc&.slice end
def operator
def operator operator_loc&.slice end
def safe_navigation?
def safe_navigation? flags.anybits?(CallNodeFlags::SAFE_NAVIGATION) end
def variable_call?
def variable_call? flags.anybits?(CallNodeFlags::VARIABLE_CALL) end