Package com.google.javascript.jscomp
Enum Class CompilerOptions.ExperimentalForceTranspile
java.lang.Object
java.lang.Enum<CompilerOptions.ExperimentalForceTranspile>
com.google.javascript.jscomp.CompilerOptions.ExperimentalForceTranspile
- All Implemented Interfaces:
Serializable
,Comparable<CompilerOptions.ExperimentalForceTranspile>
,Constable
- Enclosing class:
CompilerOptions
public static enum CompilerOptions.ExperimentalForceTranspile
extends Enum<CompilerOptions.ExperimentalForceTranspile>
Options to force transpile specific features for performance experiments.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTranspile all features down to ES5 except ASYNC AWAITCauses classes to always be removed from the output featureset if present previously.Causes let/const to always be removed from the output featureset if present previously. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LET_CONST
Causes let/const to always be removed from the output featureset if present previously.For targets that set `options.setForceLetConstTranspilation(true)`: - if they already set <= ES5 output, no change - if they set >= ES6 output, then { force transpile let/const + classes + rewrite ESModules + isolatePolyfills + rewritePolyfills}
-
CLASS
Causes classes to always be removed from the output featureset if present previously.For targets that set `options.setForceClassTranspilation(true)`: - if they already set <= ES5 output, no change - if they set >= ES6 output, then { force transpile classes + rewrite ESModules + isolatePolyfills + rewritePolyfills}
-
ALL_EXCEPT_ASYNC_AWAIT
Transpile all features down to ES5 except ASYNC AWAIT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-