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> Freeze for SingletonClassNode<'pr>
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