CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Class FunctionInput

An abstract representation of an input to a function, which is either a parameter or the receiver parameter.

Import path

import semmle.go.dataflow.FunctionInputsAndOutputs

Direct supertypes

Known direct subtypes

    Predicates

    getEntryNode

    Gets the data-flow node through which data is passed into this input for the call c.

    getExitNode

    Gets the data-flow node through which data from this input enters function f.

    getNode

    Gets the data-flow node corresponding to this input for the call c.

    isParameter

    Holds if this represents the ith parameter of a function.

    isReceiver

    Holds if this represents the receiver of a function.

    isResult

    Holds if this represents the result of a function.

    isResult

    Holds if this represents the ith result of a function.

    toString

    Gets a textual representation of this element.