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