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 |
Modifier and Type | Method and Description |
---|---|
protected FeatureSet |
PassFactory.featureSet()
The set of features that this pass understands.
|
FeatureSet |
JsAst.getFeatures(AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
static boolean |
NodeUtil.isValidQualifiedName(FeatureSet mode,
String name)
Determines whether the given name is a valid qualified name.
|
boolean |
CompilerOptions.needsTranspilationFrom(FeatureSet languageLevel) |
Modifier and Type | Field and Description |
---|---|
FeatureSet |
ParserRunner.ParseResult.features |
FeatureSet |
Config.LanguageMode.featureSet |
Modifier and Type | Method and Description |
---|---|
static FeatureSet |
ParserRunner.detectFeatures(String sourcePath,
String sourceString) |
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,
List<Comment> comments,
FeatureSet features,
String sourceMapURL) |
Modifier and Type | Field and Description |
---|---|
static FeatureSet |
FeatureSet.BARE_MINIMUM
The bare minimum set of features.
|
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.TYPESCRIPT |
Modifier and Type | Method and Description |
---|---|
FeatureSet |
Parser.getFeatures() |
static FeatureSet |
FeatureSet.latest() |
FeatureSet |
FeatureSet.union(FeatureSet other)
|
static FeatureSet |
FeatureSet.valueOf(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(Set<FeatureSet.Feature> newFeatures)
Returns a feature set combining all the features from
this and newFeatures . |
FeatureSet |
FeatureSet.without(FeatureSet.Feature feature) |
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)
|
Copyright © 2009-2017 Google. All Rights Reserved.