Struct ruby_prism::ProgramNode
source · pub struct ProgramNode<'pr> { /* private fields */ }
Expand description
The top level node of any parse tree.
Implementations§
source§impl<'pr> ProgramNode<'pr>
impl<'pr> ProgramNode<'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 locals(&self) -> ConstantList<'pr>
pub fn locals(&self) -> ConstantList<'pr>
Returns the locals
param
sourcepub fn statements(&self) -> StatementsNode<'pr>
pub fn statements(&self) -> StatementsNode<'pr>
Returns the statements
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for ProgramNode<'pr>
impl<'pr> !Send for ProgramNode<'pr>
impl<'pr> !Sync for ProgramNode<'pr>
impl<'pr> Unpin for ProgramNode<'pr>
impl<'pr> !UnwindSafe for ProgramNode<'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