Class Config
- java.lang.Object
-
- com.google.javascript.jscomp.parsing.Config
-
@Immutable public abstract class Config extends java.lang.ObjectConfiguration for the AST factory. Should be shared across AST creation for all files of a compilation process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfig.BuilderBuilder for a Config.static classConfig.JsDocParsingWhether to parse the descriptions of JsDoc comments.static classConfig.LanguageModeJavaScript modestatic classConfig.RunModeWhether to keep going after encountering a parse error.static classConfig.StrictModeLevel of language strictness required for the input source code.
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.google.common.collect.ImmutableMap<java.lang.String,com.google.javascript.jscomp.parsing.Annotation>annotations()Recognized JSDoc annotations, mapped from their name to their internal representation.static Config.Builderbuilder()abstract Config.JsDocParsingjsDocParsingMode()How to parse the descriptions of JsDoc comments.abstract Config.LanguageModelanguageMode()Language level to accept.abstract booleanparseInlineSourceMaps()Whether to parse inline source maps (//# sourceMappingURL=data:...).abstract Config.RunModerunMode()Whether to keep going after encountering a parse error.abstract Config.StrictModestrictMode()Whether to assume input is strict mode compliant.abstract com.google.common.collect.ImmutableSet<java.lang.String>suppressionNames()Set of recognized names in a@suppresstag.
-
-
-
Method Detail
-
languageMode
public abstract Config.LanguageMode languageMode()
Language level to accept.
-
strictMode
public abstract Config.StrictMode strictMode()
Whether to assume input is strict mode compliant.
-
jsDocParsingMode
public abstract Config.JsDocParsing jsDocParsingMode()
How to parse the descriptions of JsDoc comments.
-
runMode
public abstract Config.RunMode runMode()
Whether to keep going after encountering a parse error.
-
annotations
public abstract com.google.common.collect.ImmutableMap<java.lang.String,com.google.javascript.jscomp.parsing.Annotation> annotations()
Recognized JSDoc annotations, mapped from their name to their internal representation.
-
suppressionNames
public abstract com.google.common.collect.ImmutableSet<java.lang.String> suppressionNames()
Set of recognized names in a@suppresstag.
-
parseInlineSourceMaps
public abstract boolean parseInlineSourceMaps()
Whether to parse inline source maps (//# sourceMappingURL=data:...).
-
builder
public static Config.Builder builder()
-
-