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

Module SyntacticConstants

Provides classes for expressions that evaluate to constant values according to a bottom-up syntactic analysis.

Import path

import javascript

Predicates

isNull

Holds if c evaluates to null.

isNullOrUndefined

Holds if c evaluates to null or undefined.

isUndefined

Holds if c evaluates to undefined.

Classes

BinaryConstant

A binary operation on syntactic constants.

ConditionalConstant

A conditional expression on syntactic constants.

InfinityConstant

A use of the global variable Infinity.

NaNConstant

A use of the global variable NaN.

NullConstant

A literal null expression.

PrimitiveLiteralConstant

A literal primitive expression.

SyntacticConstant

An expression that evaluates to a constant value according to a bottom-up syntactic analysis.

UnaryConstant

A unary operation on a syntactic constant.

UndefinedConstant

A use of the global variable undefined or void e.

WrappedConstant

An expression that wraps the syntactic constant it evaluates to.