Struct ruby_prism::IndexAndWriteNode
source · pub struct IndexAndWriteNode<'pr> { /* private fields */ }
Expand description
Represents the use of the &&=
operator on a call to the []
method.
foo.bar[baz] &&= value
^^^^^^^^^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> IndexAndWriteNode<'pr>
impl<'pr> IndexAndWriteNode<'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 call_operator_loc(&self) -> Option<Location<'pr>>
pub fn call_operator_loc(&self) -> Option<Location<'pr>>
Returns the call_operator_loc
param
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
sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for IndexAndWriteNode<'pr>
impl<'pr> !Send for IndexAndWriteNode<'pr>
impl<'pr> !Sync for IndexAndWriteNode<'pr>
impl<'pr> Unpin for IndexAndWriteNode<'pr>
impl<'pr> !UnwindSafe for IndexAndWriteNode<'pr>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more