pub struct DefNode<'pr> { /* private fields */ }Expand description
Represents a method definition.
def method
end
^^^^^^^^^^Implementations§
Source§impl<'pr> DefNode<'pr>
impl<'pr> DefNode<'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 name(&self) -> ConstantId<'pr>
pub fn name(&self) -> ConstantId<'pr>
Returns the name param
Sourcepub fn parameters(&self) -> Option<ParametersNode<'pr>>
pub fn parameters(&self) -> Option<ParametersNode<'pr>>
Returns the parameters param
Sourcepub fn locals(&self) -> ConstantList<'pr>
pub fn locals(&self) -> ConstantList<'pr>
Returns the locals param
Sourcepub fn def_keyword_loc(&self) -> Location<'pr>
pub fn def_keyword_loc(&self) -> Location<'pr>
Returns the def_keyword_loc param
Sourcepub fn operator_loc(&self) -> Option<Location<'pr>>
pub fn operator_loc(&self) -> Option<Location<'pr>>
Returns the operator_loc param
Sourcepub fn lparen_loc(&self) -> Option<Location<'pr>>
pub fn lparen_loc(&self) -> Option<Location<'pr>>
Returns the lparen_loc param
Sourcepub fn rparen_loc(&self) -> Option<Location<'pr>>
pub fn rparen_loc(&self) -> Option<Location<'pr>>
Returns the rparen_loc param
Sourcepub fn end_keyword_loc(&self) -> Option<Location<'pr>>
pub fn end_keyword_loc(&self) -> Option<Location<'pr>>
Returns the end_keyword_loc param