pub type pm_call_target_node_t = pm_call_target_node;Expand description
CallTargetNode
Represents assigning to a method call.
foo.bar, = 1
^^^^^^^ begin
rescue => foo.bar
^^^^^^^
end for foo.bar in baz do end
^^^^^^^Type: ::PM_CALL_TARGET_NODE
Flags (#pm_call_node_flags):
- ::PM_CALL_NODE_FLAGS_SAFE_NAVIGATION
- ::PM_CALL_NODE_FLAGS_VARIABLE_CALL
- ::PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE
- ::PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_call_target_node_t {
pub base: pm_node,
pub receiver: *mut pm_node,
pub call_operator_loc: pm_location_t,
pub name: u32,
pub message_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
receiver: *mut pm_nodeCallTargetNode#receiver
The object that the method is being called on. This can be any non-void expression.
foo.bar = 1
^^^call_operator_loc: pm_location_tCallTargetNode#call_operator_loc
Represents the location of the call operator.
foo.bar = 1
^name: u32CallTargetNode#name
Represents the name of the method being called.
foo.bar = 1 # name `:foo`
^^^message_loc: pm_location_tCallTargetNode#message_loc
Represents the location of the message.
foo.bar = 1
^^^