Class BreakExprCfgNode
A break expression. For example:
loop {
if not_ready() {
break;
}
}
let x = 'label: loop {
if done() {
break 'label 42;
}
};
let x = 'label: {
if exit() {
break 'label 42;
}
0;
};
Import path
import codeql.rust.controlflow.CfgNodesDirect supertypes
Indirect supertypes
Predicates
| getTarget | Gets the target of this |
Inherited predicates
| getAPredecessor | Gets an immediate predecessor, if any. | from NodeImpl |
| getAPredecessor | Gets an immediate predecessor node of a given flow type, if any. | from NodeImpl |
| getASplit | Gets a split for this control flow node, if any. | from AstCfgNodeImpl |
| getASuccessor | Gets an immediate successor, if any. | from NodeImpl |
| getASuccessor | Gets a successor node of a given type, if any. | from NodeImpl |
| getAnAttr | Gets any of the attrs of this break expression. | from BreakExprCfgNode |
| getAstNode | Gets the AST node that this node corresponds to, if any. | from AstCfgNodeImpl |
| getAttr | Gets the | from BreakExprCfgNode |
| getBreakExpr | Gets the underlying | from BreakExprCfgNode |
| getEnclosingCallable | Gets the enclosing callable of this node. | from NodeImpl |
| getExpr | Gets the expression of this break expression, if it exists. | from BreakExprCfgNode |
| getLifetime | Gets the lifetime of this break expression, if it exists. | from BreakExprCfgNode |
| getLocation | Gets the location of this control flow node. | from AstCfgNodeImpl |
| getNumberOfAttrs | Gets the number of attrs of this break expression. | from BreakExprCfgNode |
| getScope | Gets the scope of this node. | from NodeImpl |
| getSplitsString | Gets a comma-separated list of strings for each split in this node, if any. | from AstCfgNodeImpl |
| hasExpr | Holds if | from BreakExprCfgNode |
| hasLifetime | Holds if | from BreakExprCfgNode |
| isBranch | Holds if this node has more than one successor. | from NodeImpl |
| isCondition | Holds if this control flow node has conditional successors. | from NodeImpl |
| isJoin | Holds if this node has more than one predecessor. | from NodeImpl |
| toString | Gets a textual representation of this control flow node. | from AstCfgNodeImpl |