Class MakeCfgNodes::Nodes::MatchExprCfgNode
A match expression. For example:
match x {
Option::Some(y) => y,
Option::None => 0,
}
match x {
Some(y) if y != 0 => 1 / y,
_ => 0,
}
Import path
import codeql.rust.controlflow.internal.generated.CfgNodesDirect supertypes
Predicates
| getAnAttr | Gets any of the attrs of this match expression. |
| getAttr | Gets the |
| getMatchArmList | Gets the match arm list of this match expression, if it exists. |
| getMatchExpr | Gets the underlying |
| getNumberOfAttrs | Gets the number of attrs of this match expression. |
| getScrutinee | Gets the scrutinee (the expression being matched) of this match expression, if it exists. |
| hasMatchArmList | Holds if |
| hasScrutinee | Holds if |
Inherited predicates
| getAstNode | from CfgNode | |
| getExpr | Gets the underlying | from ExprCfgNode |
| getLocation | from CfgNode | |
| toString | from CfgNode |