pub struct OptionalParameterNode<'pr> { /* private fields */ }Expand description
Represents an optional parameter to a method, block, or lambda definition.
def a(b = 1)
^^^^^
endImplementations§
Source§impl<'pr> OptionalParameterNode<'pr>
impl<'pr> OptionalParameterNode<'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 is_repeated_parameter(&self) -> bool
pub fn is_repeated_parameter(&self) -> bool
a parameter name that has been repeated in the method signature
Sourcepub fn name(&self) -> ConstantId<'pr>
pub fn name(&self) -> ConstantId<'pr>
Returns the name param
Sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc param