Struct ruby_prism::LocalVariableReadNode
source · pub struct LocalVariableReadNode<'pr> { /* private fields */ }
Expand description
Represents reading a local variable. Note that this requires that a local variable of the same name has already been written to in the same scope, otherwise it is parsed as a method call.
foo
^^^
Implementations§
source§impl<'pr> LocalVariableReadNode<'pr>
impl<'pr> LocalVariableReadNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn name(&self) -> ConstantId<'pr>
pub fn name(&self) -> ConstantId<'pr>
Returns the name
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for LocalVariableReadNode<'pr>
impl<'pr> !Send for LocalVariableReadNode<'pr>
impl<'pr> !Sync for LocalVariableReadNode<'pr>
impl<'pr> Unpin for LocalVariableReadNode<'pr>
impl<'pr> !UnwindSafe for LocalVariableReadNode<'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