Struct ruby_prism::ElseNode
source · pub struct ElseNode<'pr> { /* private fields */ }
Expand description
Represents an else
clause in a case
, if
, or unless
statement.
if a then b else c end
^^^^^^^^^^
Implementations§
source§impl<'pr> ElseNode<'pr>
impl<'pr> ElseNode<'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 else_keyword_loc(&self) -> Location<'pr>
pub fn else_keyword_loc(&self) -> Location<'pr>
Returns the else_keyword_loc
param
sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements
param
sourcepub fn end_keyword_loc(&self) -> Option<Location<'pr>>
pub fn end_keyword_loc(&self) -> Option<Location<'pr>>
Returns the end_keyword_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for ElseNode<'pr>
impl<'pr> !Send for ElseNode<'pr>
impl<'pr> !Sync for ElseNode<'pr>
impl<'pr> Unpin for ElseNode<'pr>
impl<'pr> !UnwindSafe for ElseNode<'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