public static Set<String> getReservedVars() { initResourceConfig(); return reservedVars; }
public static Set<String> getReservedVars() { initResourceConfig(); return reservedVars; }
public static Config createConfig(boolean isIdeMode, boolean parseJsDocDocumentation, boolean preserveJsDocWhitespace, LanguageMode languageMode, Set<String> extraAnnotationNames) { initResourceConfig(); Set<String> effectiveAnnotationNames; if (extraAnnotationNames == null) { effectiveAnnotationNames = annotationNames; } else { effectiveAnnotationNames = new HashSet<String>(annotationNames); effectiveAnnotationNames.addAll(extraAnnotationNames); } return new Config(effectiveAnnotationNames, suppressionNames, isIdeMode, parseJsDocDocumentation, preserveJsDocWhitespace, languageMode); }
public static Config createConfig( LanguageMode languageMode, JsDocParsing jsdocParsingMode, RunMode runMode, Set<String> extraAnnotationNames, boolean parseInlineSourceMaps, StrictMode strictMode) { initResourceConfig(); Set<String> effectiveAnnotationNames; if (extraAnnotationNames == null) { effectiveAnnotationNames = annotationNames; } else { effectiveAnnotationNames = new HashSet<>(annotationNames); effectiveAnnotationNames.addAll(extraAnnotationNames); } return Config.builder() .setExtraAnnotationNames(effectiveAnnotationNames) .setJsDocParsingMode(jsdocParsingMode) .setRunMode(runMode) .setSuppressionNames(suppressionNames) .setLanguageMode(languageMode) .setParseInlineSourceMaps(parseInlineSourceMaps) .setStrictMode(strictMode) .build(); }