CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

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.CFG

Direct supertypes

Indirect 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.

getNode

DEPRECATED: Use getAstNode instead.

Inherited predicates

getAstNode

Gets the AST node that this node corresponds to, if any.

from NodeImpl
getLocation

Gets the location of this control flow node.

from NodeImpl
getScope

Gets the scope of this node.

from NodeImpl
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 NodeImpl