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

Class FunctionOutput

An abstract representation of an output of a function, which is one of its results or a parameter with mutable type.

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 output for the function f.

    getExitNode

    Gets the data-flow node through which data is returned from this output for the call c.

    getNode

    Gets the data-flow node corresponding to this output 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 (single) result of a function.

    isResult

    Holds if this represents the ith result of a function.

    toString

    Gets a textual representation of this element.