pub struct CaseMatchNode<'pr> { /* private fields */ }Expand description
Represents the use of a case statement for pattern matching.
case true
in false
end
^^^^^^^^^Implementations§
Source§impl<'pr> CaseMatchNode<'pr>
impl<'pr> CaseMatchNode<'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 conditions(&self) -> NodeList<'pr>
pub fn conditions(&self) -> NodeList<'pr>
Returns the conditions param
Sourcepub fn else_clause(&self) -> Option<ElseNode<'pr>>
pub fn else_clause(&self) -> Option<ElseNode<'pr>>
Returns the else_clause param
Sourcepub fn case_keyword_loc(&self) -> Location<'pr>
pub fn case_keyword_loc(&self) -> Location<'pr>
Returns the case_keyword_loc param
Sourcepub fn end_keyword_loc(&self) -> Location<'pr>
pub fn end_keyword_loc(&self) -> Location<'pr>
Returns the end_keyword_loc param