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

Class DataFlow::Node

An element, viewed as a node in a data flow graph. Either an expression (ExprNode) or a parameter (ParameterNode).

Import path

import ruby

Direct supertypes

Known direct subtypes

Predicates

asCallable

Gets the callable corresponding to this block, lambda expression, or call to proc or lambda.

asExpr

Gets the expression corresponding to this node, if any.

asParameter

Gets the parameter corresponding to this node, if any.

backtrack

Starts backtracking from this node using API graphs.

getALocalSource

Gets a local source node from which data may flow to this node in zero or more local data-flow steps.

getAPredecessor

Gets a data flow node from which data may flow to this node in one local step.

getASuccessor

Gets a data flow node to which data may flow from this node in one local step.

getConstantValue

Gets the constant value of this expression, if any.

getEnclosingMethod

Gets the enclosing method, if any.

getLocation

Gets the location of this node.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

toString

Gets a textual representation of this node.