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

Module DataFlowDispatch

Import path

import codeql.swift.dataflow.internal.DataFlowDispatch

Imports

Predicates

getAnOutNode

Gets a node that can read the value returned from call with return kind kind.

parameterMatch

Holds if arguments at position apos match parameters at position ppos.

Classes

ArgumentPosition

An argument position.

DataFlowCall

A call. This includes calls from source code, as well as call(back)s inside library callables with a flow summary.

DataFlowCallable

A callable. This includes callables from source code, as well as callables defined in library code.

NormalReturnKind

A value returned from a callable using a return statement or an expression body, that is, a “normal” return.

ParamReturnKind

A value returned from a callable using an inout parameter.

ParameterPosition

A parameter position.

PositionalArgumentPosition
PositionalParameterPosition
PropertyGetterCall
PropertyObserverCall
PropertySetterCall
ReturnKind

A return kind. A return kind describes how a value can be returned from a callable.

SummaryCall
ThisArgumentPosition
ThisParameterPosition

Datatypes