pub struct BlockParametersNode<'pr> { /* private fields */ }Expand description
Represents a block’s parameters declaration.
-> (a, b = 1; local) { }
^^^^^^^^^^^^^^^^^foo do |a, b = 1; local|
^^^^^^^^^^^^^^^^^
endImplementations§
Source§impl<'pr> BlockParametersNode<'pr>
impl<'pr> BlockParametersNode<'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 parameters(&self) -> Option<ParametersNode<'pr>>
pub fn parameters(&self) -> Option<ParametersNode<'pr>>
Returns the parameters param
Sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc param
Sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc param