Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
Modifier and Type | Method and Description |
---|---|
protected Config |
Compiler.createConfig(Config.LanguageMode mode) |
Modifier and Type | Method and Description |
---|---|
static Config |
ParserRunner.createConfig(boolean isIdeMode,
Config.LanguageMode languageMode,
boolean acceptConstKeyword) |
static Config |
ParserRunner.createConfig(boolean isIdeMode,
Config.LanguageMode languageMode,
boolean acceptConstKeyword,
Set<String> extraAnnotationNames) |
static Config |
ParserRunner.createConfig(boolean isIdeMode,
Config.LanguageMode languageMode,
boolean acceptConstKeyword,
Set<String> extraAnnotationNames,
boolean useNewParser) |
Modifier and Type | Method and Description |
---|---|
static ParserRunner.ParseResult |
ParserRunner.parse(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text given by a reader.
|
static ParserRunner.ParseResult |
ParserRunner.parseEs5(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text given by a reader using Rhino.
|
static ParserRunner.ParseResult |
ParserRunner.parseEs6(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text using the ES6 parser.
|
Copyright © 2009-2014 Google. All Rights Reserved.