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

Class ExprNodes::ArrayLiteralCfgNode

A control-flow node that wraps an array literal. Array literals are desugared into calls to Array.[], so this includes both desugared calls as well as explicit calls.

Import path

import codeql.ruby.controlflow.CfgNodes

Direct supertypes

Indirect supertypes

Inherited fields

Predicates

getAPrimaryQlClass

Gets the name of the primary QL class for this node.

Inherited predicates

getAPredecessor

Gets an immediate predecessor, if any.

from CfgNode
getAPredecessor

Gets an immediate predecessor node of a given flow type, if any.

from CfgNode
getASplit

Gets a split for this control flow node, if any.

from AstCfgNodeImpl
getASuccessor

Gets an immediate successor, if any.

from CfgNode
getASuccessor

Gets a successor node of a given type, if any.

from CfgNode
getAnArgument

Gets an argument of this call.

from CallCfgNode
getArgument

Gets the nth argument of this call.

from CallCfgNode
getAstNode

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

from AstCfgNodeImpl
getBasicBlock

Gets the basic block that this control flow node belongs to.

from CfgNode
getBlock

Gets the block of this call.

from CallCfgNode
getConstantValue

Gets the constant value of this expression, if any.

from ExprCfgNode
getExpr

Gets the underlying expression.

from MethodCallCfgNode
getFile

Gets the file of this control flow node.

from CfgNode
getKeywordArgument

Gets the keyword argument whose key is keyword of this call.

from CallCfgNode
getLocation

Gets the location of this control flow node.

from AstCfgNodeImpl
getMethodName

Gets the name of this method call.

from MethodCallCfgNode
getNode

DEPRECATED: Use getAstNode instead.

from CfgNode
getNumberOfArguments

Gets the number of arguments of this call.

from CallCfgNode
getPositionalArgument

Gets the nth positional argument of this call. Unlike getArgument, this excludes keyword arguments.

from CallCfgNode
getReceiver

Gets the receiver of this call.

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

Charpred