Uses of Class
com.google.javascript.jscomp.parsing.parser.FeatureSet
-
Packages that use FeatureSet 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 -
-
Uses of FeatureSet in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return FeatureSet Modifier and Type Method Description FeatureSetJsAst. getFeatures(AbstractCompiler compiler)abstract FeatureSetPassFactory. getFeatureSet()The set of features that this pass understands.FeatureSetCompilerOptions. getOutputFeatureSet()Gets the set of features that can appear in the output.FeatureSetCompilerOptions.LanguageMode. toFeatureSet()Methods in com.google.javascript.jscomp with parameters of type FeatureSet Modifier and Type Method Description static booleanNodeUtil. isValidQualifiedName(FeatureSet mode, java.lang.String name)Determines whether the given name is a valid qualified name.booleanCompilerOptions. needsTranspilationFrom(FeatureSet languageLevel)abstract PassFactory.BuilderPassFactory.Builder. setFeatureSet(FeatureSet x)Set the features that are allowed to be in the AST when this pass runs.voidCompilerOptions. setOutputFeatureSet(FeatureSet featureSet)Sets the features that allowed to appear in the output. -
Uses of FeatureSet in com.google.javascript.jscomp.parsing
Fields in com.google.javascript.jscomp.parsing declared as FeatureSet Modifier and Type Field Description FeatureSetParserRunner.ParseResult. featuresFeatureSetConfig.LanguageMode. featureSetMethods in com.google.javascript.jscomp.parsing with parameters of type FeatureSet Modifier and Type Method Description static Config.LanguageModeConfig.LanguageMode. minimumRequiredForSet(FeatureSet featureSet)Returns the lowestConfig.LanguageModethat supports the specified feature set.Constructors in com.google.javascript.jscomp.parsing with parameters of type FeatureSet Constructor Description ParseResult(Node ast, java.util.List<Comment> comments, FeatureSet features, java.lang.String sourceMapURL) -
Uses of FeatureSet in com.google.javascript.jscomp.parsing.parser
Fields in com.google.javascript.jscomp.parsing.parser declared as FeatureSet Modifier and Type Field Description static FeatureSetFeatureSet. BARE_MINIMUMThe bare minimum set of features.static FeatureSetFeatureSet. BROWSER_2020static FeatureSetFeatureSet. ES_NEXTstatic FeatureSetFeatureSet. ES_NEXT_INstatic FeatureSetFeatureSet. ES_UNSUPPORTEDstatic FeatureSetFeatureSet. ES2018static FeatureSetFeatureSet. ES2018_MODULESstatic FeatureSetFeatureSet. ES2019static FeatureSetFeatureSet. ES2019_MODULESstatic FeatureSetFeatureSet. ES2020static FeatureSetFeatureSet. ES2020_MODULESstatic FeatureSetFeatureSet. ES3Features from ES3.static FeatureSetFeatureSet. ES5Features from ES5 only.static FeatureSetFeatureSet. ES6The full set of ES6 features, not including modules.static FeatureSetFeatureSet. ES6_MODULESAll ES6 features, including modules.static FeatureSetFeatureSet. ES7static FeatureSetFeatureSet. ES7_MODULESstatic FeatureSetFeatureSet. ES8static FeatureSetFeatureSet. ES8_MODULESstatic FeatureSetFeatureSet. TS_UNSUPPORTEDstatic FeatureSetFeatureSet. TYPESCRIPTMethods in com.google.javascript.jscomp.parsing.parser that return FeatureSet Modifier and Type Method Description static FeatureSetFeatureSet. all()Returns aFeatureSetcontaining all known features.FeatureSetParser. getFeatures()static FeatureSetFeatureSet. latest()FeatureSetFeatureSet. union(FeatureSet other)static FeatureSetFeatureSet. valueOf(java.lang.String name)Parses known strings into feature sets.FeatureSetFeatureSet. with(FeatureSet newFeatures)Returns a feature set combining all the features fromthisandnewFeatures.FeatureSetFeatureSet. with(FeatureSet.Feature feature)Returns a feature set combining all the features fromthisandfeature.FeatureSetFeatureSet. with(FeatureSet.Feature... newFeatures)Returns a feature set combining all the features fromthisandnewFeatures.FeatureSetFeatureSet. with(java.util.Set<FeatureSet.Feature> newFeatures)Returns a feature set combining all the features fromthisandnewFeatures.FeatureSetFeatureSet. without(FeatureSet other)FeatureSetFeatureSet. without(FeatureSet.Feature featureToRemove, FeatureSet.Feature... moreFeaturesToRemove)FeatureSetFeatureSet. withoutTypes()Methods in com.google.javascript.jscomp.parsing.parser with parameters of type FeatureSet Modifier and Type Method Description booleanFeatureSet. contains(FeatureSet other)Does thisFeatureSetcontain all of the features ofother?FeatureSetFeatureSet. union(FeatureSet other)FeatureSetFeatureSet. with(FeatureSet newFeatures)Returns a feature set combining all the features fromthisandnewFeatures.FeatureSetFeatureSet. without(FeatureSet other) -
Uses of FeatureSet in com.google.javascript.jscomp.transpile
Fields in com.google.javascript.jscomp.transpile declared as FeatureSet Modifier and Type Field Description protected FeatureSetBaseTranspiler.CompilerSupplier. outputFeatureSetMethods in com.google.javascript.jscomp.transpile with parameters of type FeatureSet Modifier and Type Method Description static BaseTranspilerBaseTranspiler. to(FeatureSet featureSet)static BaseTranspilerBaseTranspiler. to(FeatureSet featureSet, java.lang.String runtime)Constructors in com.google.javascript.jscomp.transpile with parameters of type FeatureSet Constructor 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.
-