Skip to main content

Crate oxc_ecmascript

Crate oxc_ecmascript 

Source
Expand description

Methods defined in the ECMAScript Language Specification.

§Cargo features

  • side_effects: Enables side-effect analysis.
  • constant_evaluation: Enables constant evaluation and implies side_effects.

Structs§

WithoutGlobalReferenceInformation

Enums§

ConstantValue
StringCharAtResult
ValueType
JavaScript Language Type

Traits§

ArrayJoin
BoundNames
DetermineValueType
Based on get_known_value_type in closure compiler https://github.com/google/closure-compiler/blob/v20240609/src/com/google/javascript/jscomp/NodeUtil.java#L1517
GlobalContext
IsSimpleParameterList
IsSimpleParameterList
PrivateBoundIdentifiers
PrivateBoundIdentifiers
PropName
PropName
StringCharAt
StringCharCodeAt
StringIndexOf
StringLastIndexOf
StringSubstring
StringToBigInt
StringToBigInt
StringToNumber
ToBigInt
ToBigInt
ToBoolean
ToBoolean
ToInt32
Converts a 64-bit floating point number to an i32 according to the ToInt32 algorithm.
ToIntegerIndex
Convert a value to u32 if the value can be an integer index and can be represented with u32.
ToJsString
ToString
ToNumber
ToNumber
ToPrimitive
ToPrimitive
ToUint32

Functions§

with_number_literal
Call f with the shortest JavaScript source representation of a non-negative finite number.