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

Class ThisUse

An explicit or implicit use of this.

Implicit uses include super() calls and instance field initializers (which includes TypeScript parameter fields).

Import path

import semmle.javascript.dataflow.internal.VariableOrThis

Known direct subtypes

    Predicates

    getBindingContainer

    Gets the container binding the this being accessed

    getLocation

    Gets the location of this use of this.

    getUseContainer

    Get the container in which this is being accessed.

    toString

    Gets a string representation of this element.