Struct ruby_prism::CallOperatorWriteNode
source · pub struct CallOperatorWriteNode<'pr> { /* private fields */ }
Expand description
Represents the use of an assignment operator on a call.
foo.bar += baz
^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> CallOperatorWriteNode<'pr>
impl<'pr> CallOperatorWriteNode<'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 message_loc(&self) -> Option<Location<'pr>>
pub fn message_loc(&self) -> Option<Location<'pr>>
Returns the message_loc
param
sourcepub fn read_name(&self) -> ConstantId<'pr>
pub fn read_name(&self) -> ConstantId<'pr>
Returns the read_name
param
sourcepub fn write_name(&self) -> ConstantId<'pr>
pub fn write_name(&self) -> ConstantId<'pr>
Returns the write_name
param
sourcepub fn binary_operator(&self) -> ConstantId<'pr>
pub fn binary_operator(&self) -> ConstantId<'pr>
Returns the binary_operator
param
sourcepub fn binary_operator_loc(&self) -> Location<'pr>
pub fn binary_operator_loc(&self) -> Location<'pr>
Returns the binary_operator_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for CallOperatorWriteNode<'pr>
impl<'pr> !Send for CallOperatorWriteNode<'pr>
impl<'pr> !Sync for CallOperatorWriteNode<'pr>
impl<'pr> Unpin for CallOperatorWriteNode<'pr>
impl<'pr> !UnwindSafe for CallOperatorWriteNode<'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