Class ParserRunner
java.lang.Object
com.google.javascript.jscomp.parsing.ParserRunner
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Config
createConfig
(boolean isIdeMode) Deprecated.static Config
createConfig
(boolean isIdeMode, Config.LanguageMode languageMode, boolean acceptConstKeyword) static Config
createConfig
(boolean isIdeMode, Config.LanguageMode languageMode, boolean acceptConstKeyword, Set<String> extraAnnotationNames) static ParserRunner.ParseResult
parse
(StaticSourceFile sourceFile, String sourceString, Config config, com.google.javascript.rhino.head.ErrorReporter errorReporter, Logger logger) Parses the JavaScript text given by a reader.
-
Method Details
-
createConfig
Deprecated. -
createConfig
public static Config createConfig(boolean isIdeMode, Config.LanguageMode languageMode, boolean acceptConstKeyword) -
createConfig
public static Config createConfig(boolean isIdeMode, Config.LanguageMode languageMode, boolean acceptConstKeyword, Set<String> extraAnnotationNames) -
getReservedVars
-
parse
public static ParserRunner.ParseResult parse(StaticSourceFile sourceFile, String sourceString, Config config, com.google.javascript.rhino.head.ErrorReporter errorReporter, Logger logger) throws IOException Parses the JavaScript text given by a reader.- Parameters:
sourceString
- Source code from the file.errorReporter
- An error.logger
- A logger.- Returns:
- The AST of the given text.
- Throws:
IOException
-