Class CfgNode
A control flow node.
A control flow node is a node in the control flow graph (CFG). There is a many-to-one relationship between CFG nodes and AST nodes.
Only nodes that can be reached from an entry point are included in the CFG.
Import path
import codeql.ruby.controlflow.ControlFlowGraphDirect supertypes
Known direct subtypes
Predicates
| getAPredecessor | Gets an immediate predecessor, if any. |
| getAPredecessor | Gets an immediate predecessor node of a given flow type, if any. |
| getAPrimaryQlClass | Gets the name of the primary QL class for this node. |
| getASuccessor | Gets an immediate successor, if any. |
| getASuccessor | Gets a successor node of a given type, if any. |
| getBasicBlock | Gets the basic block that this control flow node belongs to. |
| getFile | Gets the file of this control flow node. |
| getLocation | Gets the location of this control flow node. |
| getNode | Gets the AST node that this node corresponds to, if any. |
| getScope | Gets the scope of this node. |
| isBranch | Holds if this node has more than one successor. |
| isCondition | Holds if this control flow node has conditional successors. |
| isJoin | Holds if this node has more than one predecessor. |
| toString | Gets a textual representation of this control flow node. |