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

Class SsaExplicitDefinition

An SSA definition that corresponds to an explicit assignment or other variable definition.

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    defines

    This SSA definition corresponds to the definition of v at def.

    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.

    getDef

    Gets the variable definition wrapped by this SSA definition.

    getLhs

    Gets the variable reference appearing on the left-hand side of this assignment.

    getLocation

    Gets the location of this element.

    getRhsNode

    Gets the data flow node representing the incoming value assigned at this definition, if any.

    getSourceVariable

    Gets the source variable defined by this definition.

    prettyPrintDef

    INTERNAL: Use toString() instead.

    prettyPrintRef

    INTERNAL: Do not use.

    Inherited predicates

    getContainer

    Gets the function or toplevel to which this definition belongs.

    from SsaDefinition
    getVariable

    Gets the SSA variable defined by this definition.

    from SsaDefinition
    hasLocationInfo

    DEPRECATED. Use getLocation().hasLocationInfo() instead.

    from SsaDefinition
    toString

    Gets a textual representation of this element.

    from SsaDefinition