Class Config

java.lang.Object
com.google.javascript.jscomp.parsing.Config

@Immutable public abstract class Config extends Object
Configuration for the AST factory. Should be shared across AST creation for all files of a compilation process.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • 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<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<String> suppressionNames()
      Set of recognized names in a @suppress tag.
    • parseInlineSourceMaps

      public abstract boolean parseInlineSourceMaps()
      Whether to parse inline source maps (//# sourceMappingURL=data:...).
    • toBuilder

      public abstract Config.Builder toBuilder()
    • builder

      public static Config.Builder builder()