Module Constants::SyntacticConstants

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

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.