Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
com.google.javascript.jscomp.parsing.parser | |
com.google.javascript.jscomp.transpile |
Modifier and Type | Method and Description |
---|---|
FeatureSet |
JsAst.getFeatures(AbstractCompiler compiler) |
abstract FeatureSet |
PassFactory.getFeatureSet()
The set of features that this pass understands.
|
FeatureSet |
CompilerOptions.getOutputFeatureSet()
Gets the set of features that can appear in the output.
|
FeatureSet |
CompilerOptions.LanguageMode.toFeatureSet() |
Modifier and Type | Method and Description |
---|---|
static boolean |
NodeUtil.isValidQualifiedName(FeatureSet mode,
java.lang.String name)
Determines whether the given name is a valid qualified name.
|
boolean |
CompilerOptions.needsTranspilationFrom(FeatureSet languageLevel) |
abstract PassFactory.Builder |
PassFactory.Builder.setFeatureSet(FeatureSet x)
Set the features that are allowed to be in the AST when this pass runs.
|
void |
CompilerOptions.setOutputFeatureSet(FeatureSet featureSet)
Sets the features that allowed to appear in the output.
|
Modifier and Type | Field and Description |
---|---|
FeatureSet |
ParserRunner.ParseResult.features |
FeatureSet |
Config.LanguageMode.featureSet |
Modifier and Type | Method and Description |
---|---|
static Config.LanguageMode |
Config.LanguageMode.minimumRequiredForSet(FeatureSet featureSet)
Returns the lowest
Config.LanguageMode that supports the specified feature set. |
Constructor and Description |
---|
ParseResult(Node ast,
java.util.List<Comment> comments,
FeatureSet features,
java.lang.String sourceMapURL) |
Modifier and Type | Field and Description |
---|---|
static FeatureSet |
FeatureSet.BARE_MINIMUM
The bare minimum set of features.
|
static FeatureSet |
FeatureSet.BROWSER_2020 |
static FeatureSet |
FeatureSet.ES_NEXT |
static FeatureSet |
FeatureSet.ES_NEXT_IN |
static FeatureSet |
FeatureSet.ES_UNSUPPORTED |
static FeatureSet |
FeatureSet.ES2018 |
static FeatureSet |
FeatureSet.ES2018_MODULES |
static FeatureSet |
FeatureSet.ES2019 |
static FeatureSet |
FeatureSet.ES2019_MODULES |
static FeatureSet |
FeatureSet.ES2020 |
static FeatureSet |
FeatureSet.ES2020_MODULES |
static FeatureSet |
FeatureSet.ES3
Features from ES3.
|
static FeatureSet |
FeatureSet.ES5
Features from ES5 only.
|
static FeatureSet |
FeatureSet.ES6
The full set of ES6 features, not including modules.
|
static FeatureSet |
FeatureSet.ES6_MODULES
All ES6 features, including modules.
|
static FeatureSet |
FeatureSet.ES7 |
static FeatureSet |
FeatureSet.ES7_MODULES |
static FeatureSet |
FeatureSet.ES8 |
static FeatureSet |
FeatureSet.ES8_MODULES |
static FeatureSet |
FeatureSet.TS_UNSUPPORTED |
static FeatureSet |
FeatureSet.TYPESCRIPT |
Modifier and Type | Method and Description |
---|---|
static FeatureSet |
FeatureSet.all()
Returns a
FeatureSet containing all known features. |
FeatureSet |
Parser.getFeatures() |
static FeatureSet |
FeatureSet.latest() |
FeatureSet |
FeatureSet.union(FeatureSet other)
|
static FeatureSet |
FeatureSet.valueOf(java.lang.String name)
Parses known strings into feature sets.
|
FeatureSet |
FeatureSet.with(FeatureSet.Feature... newFeatures)
Returns a feature set combining all the features from
this and newFeatures . |
FeatureSet |
FeatureSet.with(FeatureSet.Feature feature)
Returns a feature set combining all the features from
this and feature . |
FeatureSet |
FeatureSet.with(FeatureSet newFeatures)
Returns a feature set combining all the features from
this and newFeatures . |
FeatureSet |
FeatureSet.with(java.util.Set<FeatureSet.Feature> newFeatures)
Returns a feature set combining all the features from
this and newFeatures . |
FeatureSet |
FeatureSet.without(FeatureSet.Feature featureToRemove,
FeatureSet.Feature... moreFeaturesToRemove) |
FeatureSet |
FeatureSet.without(FeatureSet other) |
FeatureSet |
FeatureSet.withoutTypes() |
Modifier and Type | Method and Description |
---|---|
boolean |
FeatureSet.contains(FeatureSet other)
Does this
FeatureSet contain all of the features of other ? |
FeatureSet |
FeatureSet.union(FeatureSet other)
|
FeatureSet |
FeatureSet.with(FeatureSet newFeatures)
Returns a feature set combining all the features from
this and newFeatures . |
FeatureSet |
FeatureSet.without(FeatureSet other) |
Modifier and Type | Field and Description |
---|---|
protected FeatureSet |
BaseTranspiler.CompilerSupplier.outputFeatureSet |
Modifier and Type | Method and Description |
---|---|
static BaseTranspiler |
BaseTranspiler.to(FeatureSet featureSet) |
static BaseTranspiler |
BaseTranspiler.to(FeatureSet featureSet,
java.lang.String runtime) |
Constructor and Description |
---|
CompilerSupplier(FeatureSet outputFeatureSet) |
CompilerSupplier(FeatureSet outputFeatureSet,
ModuleLoader.ResolutionMode moduleResolution,
com.google.common.collect.ImmutableList<java.lang.String> moduleRoots,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> prefixReplacements)
Accepts commonly overridden options for ES6 modules to avoid needed to subclass.
|
Copyright © 2009-2020 Google. All Rights Reserved.