Class Config
java.lang.Object
com.google.javascript.jscomp.parsing.Config
Configuration for the AST factory. Should be shared across AST creation for all files of a
compilation process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for a Config.static enumWhether to parse the descriptions of JsDoc comments.static enumJavaScript modestatic enumWhether to keep going after encountering a parse error.static enumLevel of language strictness required for the input source code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.google.common.collect.ImmutableMap<String, com.google.javascript.jscomp.parsing.Annotation> Recognized JSDoc annotations, mapped from their name to their internal representation.static Config.Builderbuilder()abstract Config.JsDocParsingHow to parse the descriptions of JsDoc comments.abstract Config.LanguageModeLanguage level to accept.abstract booleanWhether to parse inline source maps (//# sourceMappingURL=data:...).abstract Config.RunModerunMode()Whether to keep going after encountering a parse error.abstract Config.StrictModeWhether to assume input is strict mode compliant.abstract com.google.common.collect.ImmutableSet<String> Set of recognized names in a@suppresstag.abstract Config.Builder
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
languageMode
Language level to accept. -
strictMode
Whether to assume input is strict mode compliant. -
jsDocParsingMode
How to parse the descriptions of JsDoc comments. -
runMode
Whether to keep going after encountering a parse error. -
annotations
public abstract com.google.common.collect.ImmutableMap<String,com.google.javascript.jscomp.parsing.Annotation> annotations()Recognized JSDoc annotations, mapped from their name to their internal representation. -
suppressionNames
Set of recognized names in a@suppresstag. -
parseInlineSourceMaps
public abstract boolean parseInlineSourceMaps()Whether to parse inline source maps (//# sourceMappingURL=data:...). -
toBuilder
-
builder
-