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

Module DefUse

Provides classes and predicates for working with variable definitions and uses.

Import path

import semmle.javascript.DefUse

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Classes

LValue

A variable reference or property access that is written to.

RValue

A variable reference or property access that is read from.

RefExpr

An expression that can be evaluated to a reference, that is, a variable reference or a property access.

VarDef

A ControlFlowNode that defines (that is, initializes or updates) variables or properties.

VarUse

A ControlFlowNode that uses (that is, reads from) a single variable.