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