JsLanguageLevel

enum JsLanguageLevel : ProtocolMessageEnum
Enumerates supported JavaScript language levels.
Protobuf enum elide.assets.EmbeddedScriptMetadata.JsScriptMetadata.JsLanguageLevel

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val ES2017_VALUE: Int = 3
The language level is ES2017.
ES2017 = 3;
Link copied to clipboard
val ES2018_VALUE: Int = 4
The language level is ES2018.
ES2018 = 4;
Link copied to clipboard
val ES2019_VALUE: Int = 5
The language level is ES2019.
ES2019 = 5;
Link copied to clipboard
val ES2020_VALUE: Int = 6
The language level is ES2020.
ES2020 = 6;
Link copied to clipboard
val ES2021_VALUE: Int = 7
The language level is ES2021.
ES2021 = 7;
Link copied to clipboard
val ES2022_VALUE: Int = 8
The language level is ES2022.
ES2022 = 8;
Link copied to clipboard
val ES2023_VALUE: Int = 9
The language level is ES2023.
ES2023 = 9;
Link copied to clipboard
val ES5_VALUE: Int = 1
The language level is ES5.
ES5 = 1;
Link copied to clipboard
val ES6_VALUE: Int = 2
The language level is ES6.
ES6 = 2;
Link copied to clipboard
The language level is unknown or unspecified; regular code should not use this value.
JS_LANGUAGE_LEVEL_DEFAULT = 0;
Link copied to clipboard
val LATEST_VALUE: Int = 99
Latest language features, stability be damned.
LATEST = 99;
Link copied to clipboard
val STABLE_VALUE: Int = 98
Stable language features.
STABLE = 98;

Functions

Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): EmbeddedScriptMetadata.JsScriptMetadata.JsLanguageLevel

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.