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

Class LazyCache::LazyCacheVariable

A variable containing a lazy-cache object.

Import path

import javascript

Direct supertypes

Indirect supertypes

Inherited predicates

declaredIn

Holds if there is a declaration of this variable in tl.

from Variable
getADeclaration

Gets a declaration declaring this variable, if any.

from Variable
getADeclarationStatement

Gets a declaration statement declaring this variable, if any.

from Variable
getADefinition

Gets a definition for this variable.

from Variable
getAReference

Gets a reference to this variable.

from Variable
getAnAccess

Gets an access to this variable.

from Variable
getAnAssignedExpr

Gets an expression that is directly stored in this variable.

from Variable
getDeclarationSpace

Gets the declaration space this name belongs to.

from Variable
getDeclaringContainer

Gets the function or toplevel in which this variable is declared; arguments variables are taken to be implicitly declared in the function to which they belong.

from LocalVariable
getLocation

Gets the location of a declaration of this variable.

from LocalVariable
getName

Gets the name of this variable.

from Variable
getScope

Gets the scope this variable is declared in.

from Variable
isCaptured

Holds if this variable is captured in the closure of a nested function.

from Variable
isGlobal

Holds if this is a global variable.

from Variable
isLocal

Holds if this is a local variable.

from Variable
isNamespaceExport

Holds if this is a variable exported from a TypeScript namespace.

from Variable
isParameter

Holds if this variable is a parameter.

from Variable
toString

Gets a textual representation of this element.

from Variable

Charpred