pub struct ModuleNode<'pr> { /* private fields */ }Expand description
Represents a module declaration involving the module keyword.
module Foo end
^^^^^^^^^^^^^^Implementations§
Source§impl<'pr> ModuleNode<'pr>
impl<'pr> ModuleNode<'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 module_keyword_loc(&self) -> Location<'pr>
pub fn module_keyword_loc(&self) -> Location<'pr>
Returns the module_keyword_loc param
Sourcepub fn constant_path(&self) -> Node<'pr>
pub fn constant_path(&self) -> Node<'pr>
Returns the constant_path 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