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 | Field and Description |
---|---|
private FeatureSet |
JsAst.features |
(package private) FeatureSet |
RewritePolyfills.Polyfill.nativeVersion
The language version at (or above) which the native symbol is
available and sufficient.
|
(package private) FeatureSet |
RewritePolyfills.Polyfill.polyfillVersion
The required language version for the polyfill to work.
|
Modifier and Type | Method and Description |
---|---|
FeatureSet |
JsAst.getFeatures(AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
(package private) RewritePolyfills.Polyfills.Builder |
RewritePolyfills.Polyfills.Builder.addClasses(FeatureSet nativeVersion,
FeatureSet polyfillVersion,
java.lang.String base,
java.lang.String... classes)
Registers one or more class polyfill.
|
(package private) RewritePolyfills.Polyfills.Builder |
RewritePolyfills.Polyfills.Builder.addMethods(FeatureSet nativeVersion,
FeatureSet polyfillVersion,
java.lang.String base,
java.lang.String... methods)
Registers one or more prototype method in a single namespace.
|
(package private) RewritePolyfills.Polyfills.Builder |
RewritePolyfills.Polyfills.Builder.addStatics(FeatureSet nativeVersion,
FeatureSet polyfillVersion,
java.lang.String polyfillBase,
java.lang.String nativeBase,
java.lang.String... statics)
Registers one or more static rewrite polyfill, which is a
simple rewrite of one qualified name to another.
|
private boolean |
RewritePolyfills.languageOutIsAtLeast(FeatureSet features) |
Constructor and Description |
---|
Polyfill(FeatureSet nativeVersion,
FeatureSet polyfillVersion,
java.lang.String rewrite,
java.lang.String installer) |
Modifier and Type | Field and Description |
---|---|
FeatureSet |
ParserRunner.ParseResult.features |
private FeatureSet |
IRFactory.features |
Modifier and Type | Method and Description |
---|---|
(package private) static FeatureSet |
IRFactory.detectFeatures(ProgramTree tree,
StaticSourceFile sourceFile,
java.lang.String sourceString) |
static FeatureSet |
ParserRunner.detectFeatures(java.lang.String sourcePath,
java.lang.String sourceString) |
(package private) FeatureSet |
IRFactory.getFeatures() |
Constructor and Description |
---|
ParseResult(Node ast,
java.util.List<Comment> comments,
FeatureSet features) |
Modifier and Type | Field and Description |
---|---|
static FeatureSet |
FeatureSet.ES3
The bare minimum set of features in 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_IMPL
The subset of ES6 features that are implemented in stable Chrome, Firefox, and Edge.
|
static FeatureSet |
FeatureSet.ES6_MODULES
All ES6 features, including modules.
|
private FeatureSet |
Parser.features |
private FeatureSet |
FeatureSet.Feature.features |
static FeatureSet |
FeatureSet.TYPESCRIPT
TypeScript syntax.
|
Modifier and Type | Method and Description |
---|---|
FeatureSet |
FeatureSet.Feature.features() |
FeatureSet |
Parser.getFeatures() |
FeatureSet |
FeatureSet.require(FeatureSet.Feature feature)
Returns a feature set combining all the features from
this and feature . |
FeatureSet |
FeatureSet.require(FeatureSet other)
Returns a feature set combining all the features from
this and other . |
Modifier and Type | Method and Description |
---|---|
FeatureSet |
FeatureSet.require(FeatureSet other)
Returns a feature set combining all the features from
this and other . |
Constructor and Description |
---|
Feature(java.lang.String name,
FeatureSet features) |