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

Class LocalVariableOrThis

A local variable or this in a particular container.

Import path

import semmle.javascript.dataflow.internal.VariableOrThis

Direct supertypes

Known direct subtypes

    Predicates

    asLocalVariable

    Gets the local variable represented by this newtype, if any.

    asThisContainer

    If this represents this, gets the enclosing container

    getAThisExpr

    Gets an explicit access to this represented by this value.

    getAThisUse

    Gets an implicit or explicit use of the this represented by this value.

    getAUse

    Gets an expression that accesses this variable or this.

    getDeclaringContainer

    Gets the container declaring this variable or is the enclosing container for this.

    getLocation

    Gets the location of a declaration of this variable, or the declaring container if this is this.

    getName

    Gets the name of the variable or the string "this".

    isCaptured

    Holds if this is a captured variable or captured this.

    toString

    Gets the name of the variable or the string "this".