pub struct WhenNode<'pr> { /* private fields */ }Expand description
Represents the use of the when keyword within a case statement.
case true
when true
^^^^^^^^^
endImplementations§
Source§impl<'pr> WhenNode<'pr>
impl<'pr> WhenNode<'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 keyword_loc(&self) -> Location<'pr>
pub fn keyword_loc(&self) -> Location<'pr>
Returns the keyword_loc param
Sourcepub fn conditions(&self) -> NodeList<'pr>
pub fn conditions(&self) -> NodeList<'pr>
Returns the conditions param
Sourcepub fn then_keyword_loc(&self) -> Option<Location<'pr>>
pub fn then_keyword_loc(&self) -> Option<Location<'pr>>
Returns the then_keyword_loc param
Sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements param