CodeQL library for Swift
codeql/swift-all 6.2.3 (changelog, source)
Search

Class Node

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

Import path

import codeql.swift.dataflow.internal.DataFlowPublic

Direct supertypes

Known direct subtypes

Predicates

asDefinition

Gets this node’s underlying SSA definition, if any.

asExpr

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

asParameter

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

asPattern

Gets this node’s underlying pattern, if any.

getCfgNode

Gets the control flow node that corresponds to this data flow node.

getLocation

Gets the location of this node.

toString

Gets a textual representation of this node.