Struct ruby_prism::SingletonClassNode
source · pub struct SingletonClassNode<'pr> { /* private fields */ }
Expand description
Represents a singleton class declaration involving the class
keyword.
class << self end
^^^^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> SingletonClassNode<'pr>
impl<'pr> SingletonClassNode<'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 class_keyword_loc(&self) -> Location<'pr>
pub fn class_keyword_loc(&self) -> Location<'pr>
Returns the class_keyword_loc
param
sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc
param
sourcepub fn expression(&self) -> Node<'pr>
pub fn expression(&self) -> Node<'pr>
Returns the expression
param
sourcepub fn end_keyword_loc(&self) -> Location<'pr>
pub fn end_keyword_loc(&self) -> Location<'pr>
Returns the end_keyword_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for SingletonClassNode<'pr>
impl<'pr> !Send for SingletonClassNode<'pr>
impl<'pr> !Sync for SingletonClassNode<'pr>
impl<'pr> Unpin for SingletonClassNode<'pr>
impl<'pr> !UnwindSafe for SingletonClassNode<'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