pub struct IndexTargetNode<'pr> { /* private fields */ }Expand description
Represents assigning to an index.
foo[bar], = 1
^^^^^^^^begin
rescue => foo[bar]
^^^^^^^^
endfor foo[bar] in baz do end
^^^^^^^^Implementations§
Source§impl<'pr> IndexTargetNode<'pr>
impl<'pr> IndexTargetNode<'pr>
Sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
&. operator
Sourcepub fn is_variable_call(&self) -> bool
pub fn is_variable_call(&self) -> bool
a call that could have been a local variable
Sourcepub fn is_attribute_write(&self) -> bool
pub fn is_attribute_write(&self) -> bool
a call that is an attribute write, so the value being written should be returned
Sourcepub fn is_ignore_visibility(&self) -> bool
pub fn is_ignore_visibility(&self) -> bool
a call that ignores method visibility
Sourcepub fn opening_loc(&self) -> Location<'pr>
pub fn opening_loc(&self) -> Location<'pr>
Returns the opening_loc param
Sourcepub fn arguments(&self) -> Option<ArgumentsNode<'pr>>
pub fn arguments(&self) -> Option<ArgumentsNode<'pr>>
Returns the arguments param
Sourcepub fn closing_loc(&self) -> Location<'pr>
pub fn closing_loc(&self) -> Location<'pr>
Returns the closing_loc param
Sourcepub fn block(&self) -> Option<BlockArgumentNode<'pr>>
pub fn block(&self) -> Option<BlockArgumentNode<'pr>>
Returns the block param