Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.transpile | |
com.google.javascript.refactoring |
Modifier and Type | Field and Description |
---|---|
JSError[] |
Result.errors |
JSError[] |
Result.warnings |
Modifier and Type | Method and Description |
---|---|
JSError[] |
Compiler.getErrors()
Returns the array of errors (never null).
|
JSError[] |
ThreadSafeDelegatingErrorManager.getErrors() |
JSError[] |
ErrorManager.getErrors()
Gets all the errors.
|
JSError[] |
BasicErrorManager.getErrors() |
JSError[] |
Compiler.getWarnings()
Returns the array of warnings (never null).
|
JSError[] |
ThreadSafeDelegatingErrorManager.getWarnings() |
JSError[] |
ErrorManager.getWarnings()
Gets all the warnings.
|
JSError[] |
BasicErrorManager.getWarnings() |
static JSError |
JSError.make(DiagnosticType type,
String... arguments)
Creates a JSError with no source information
|
static JSError |
JSError.make(Node n,
CheckLevel level,
DiagnosticType type,
String... arguments) |
static JSError |
JSError.make(Node n,
DiagnosticType type,
String... arguments)
Creates a JSError from a file and Node position.
|
static JSError |
JSError.make(String sourceName,
int lineno,
int charno,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location
|
static JSError |
JSError.make(String sourceName,
int lineno,
int charno,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location
|
JSError |
NodeTraversal.makeError(Node n,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError during NodeTraversal.
|
JSError |
NodeTraversal.makeError(Node n,
DiagnosticType type,
String... arguments)
Creates a JSError during NodeTraversal.
|
Modifier and Type | Method and Description |
---|---|
static List<JSError> |
AbstractCommandLineRunner.removeDuplicateZipEntries(List<SourceFile> sourceFiles,
List<AbstractCommandLineRunner.JsModuleSpec> jsModuleSpecs)
Check that relative paths inside zip files are unique, since multiple files
with the same path inside different zips are considered duplicate inputs.
|
Modifier and Type | Method and Description |
---|---|
String |
MessageFormatter.formatError(JSError error)
Format an error.
|
String |
LightweightMessageFormatter.formatError(JSError error) |
String |
MessageFormatter.formatWarning(JSError warning)
Format a warning.
|
protected String |
WhitelistWarningsGuard.formatWarning(JSError error)
If subclasses want to modify the formatting, they should override
#formatWarning(JSError, boolean), not this method.
|
String |
LightweightMessageFormatter.formatWarning(JSError warning) |
protected String |
WhitelistWarningsGuard.formatWarning(JSError error,
boolean withMetaData) |
CheckLevel |
Compiler.getErrorLevel(JSError error) |
CheckLevel |
ByPathWarningsGuard.level(JSError error) |
CheckLevel |
StrictWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupPathSuppressingWarningsGuard.level(JSError error)
Does not touch warnings in other paths.
|
CheckLevel |
ShowByPathWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupWarningsGuard.level(JSError error) |
CheckLevel |
WhitelistWarningsGuard.level(JSError error) |
CheckLevel |
ComposeWarningsGuard.level(JSError error) |
abstract CheckLevel |
WarningsGuard.level(JSError error)
Returns a new check level for a given error.
|
boolean |
DiagnosticGroup.matches(JSError error)
Returns whether the given error's type matches a type
in this group.
|
void |
PrintStreamErrorManager.println(CheckLevel level,
JSError error) |
void |
LoggerErrorManager.println(CheckLevel level,
JSError error) |
abstract void |
BasicErrorManager.println(CheckLevel level,
JSError error)
Print a message with a trailing new line.
|
void |
Compiler.report(CheckLevel ignoredLevel,
JSError error) |
void |
ThreadSafeDelegatingErrorManager.report(CheckLevel level,
JSError error) |
void |
WhitelistWarningsGuard.WhitelistBuilder.report(CheckLevel level,
JSError error) |
void |
ErrorManager.report(CheckLevel level,
JSError error)
Reports an error.
|
void |
BasicErrorManager.report(CheckLevel level,
JSError error) |
void |
ErrorHandler.report(CheckLevel level,
JSError error) |
void |
Compiler.report(JSError error) |
abstract void |
AbstractCompiler.report(JSError error)
Report an error or warning.
|
Constructor and Description |
---|
Result(JSError[] errors,
JSError[] warnings,
String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
String externExport) |
Result(JSError[] errors,
JSError[] warnings,
String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
String externExport) |
Modifier and Type | Method and Description |
---|---|
Set<JSError> |
JSTypeCreatorFromJSDoc.getWarnings() |
Modifier and Type | Field and Description |
---|---|
JSError[] |
BaseTranspiler.CompileResult.errors |
Constructor and Description |
---|
CompileResult(String source,
JSError[] errors,
boolean transpiled,
String sourceMap) |
Modifier and Type | Method and Description |
---|---|
List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
static List<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error,
AbstractCompiler compiler) |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler)
Creates a SuggestedFix for the given error.
|
void |
FixingErrorManager.println(CheckLevel level,
JSError error) |
void |
FixingErrorManager.report(CheckLevel level,
JSError error) |
Copyright © 2009-2017 Google. All Rights Reserved.