CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (changelog, source)
Search

Class SsaVariableCapture

An SSA definition representing the capturing of an SSA-convertible variable in the closure of a nested function.

Capturing definitions appear at the beginning of such functions, as well as at any yield expressions or calls that may affect the value of the variable.

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    definesAt

    INTERNAL: Use getBasicBlock() and getSourceVariable() instead.

    getAContributingVarDef

    Gets a variable definition node whose value may end up contributing to the SSA variable defined by this definition.

    getBasicBlock

    Gets the basic block to which this definition belongs.

    getKind

    INTERNAL: Do not use.

    getSourceVariable

    Gets the source variable defined by this definition.

    hasLocationInfo

    Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

    prettyPrintDef

    INTERNAL: Use toString() instead.

    Inherited predicates

    getContainer

    Gets the function or toplevel to which this definition belongs.

    from SsaDefinition
    getLocation

    Gets the location of this element.

    from SsaDefinition
    getVariable

    Gets the SSA variable defined by this definition.

    from SsaDefinition
    prettyPrintRef

    INTERNAL: Do not use.

    from SsaImplicitDefinition
    toString

    Gets a textual representation of this element.

    from SsaDefinition