Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle | |
com.google.javascript.jscomp.ijs | |
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[] |
SortingErrorManager.getErrors() |
JSError[] |
ErrorManager.getErrors()
Gets all the errors.
|
JSError[] |
Compiler.getWarnings()
Returns the array of warnings (never null).
|
JSError[] |
ThreadSafeDelegatingErrorManager.getWarnings() |
JSError[] |
SortingErrorManager.getWarnings() |
JSError[] |
ErrorManager.getWarnings()
Gets all the warnings.
|
static JSError |
JSError.make(DiagnosticType type,
java.lang.String... arguments)
Creates a JSError with no source information
|
static JSError |
JSError.make(Node n,
CheckLevel level,
DiagnosticType type,
java.lang.String... arguments) |
static JSError |
JSError.make(Node n,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError from a file and Node position.
|
static JSError |
JSError.make(java.lang.String sourceName,
int lineno,
int charno,
CheckLevel level,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError at a given source location
|
static JSError |
JSError.make(java.lang.String sourceName,
int lineno,
int charno,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError at a given source location
|
JSError |
NodeTraversal.makeError(Node n,
CheckLevel level,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError during NodeTraversal.
|
JSError |
NodeTraversal.makeError(Node n,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError during NodeTraversal.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableList<JSError> |
ConformanceWhitelister.getConformanceErrors(Compiler compiler,
Node externs,
Node ast,
Requirement requirement) |
static com.google.common.collect.ImmutableList<JSError> |
AbstractCommandLineRunner.removeDuplicateZipEntries(java.util.List<SourceFile> sourceFiles,
java.util.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 |
---|---|
java.lang.String |
LightweightMessageFormatter.formatError(JSError error) |
java.lang.String |
MessageFormatter.formatError(JSError error)
Format an error.
|
java.lang.String |
LightweightMessageFormatter.formatWarning(JSError warning) |
protected java.lang.String |
WhitelistWarningsGuard.formatWarning(JSError error)
If subclasses want to modify the formatting, they should override
#formatWarning(JSError, boolean), not this method.
|
java.lang.String |
MessageFormatter.formatWarning(JSError warning)
Format a warning.
|
protected java.lang.String |
WhitelistWarningsGuard.formatWarning(JSError error,
boolean withMetaData) |
CheckLevel |
Compiler.getErrorLevel(JSError error) |
protected Node |
FileAwareWarningsGuard.getScriptNodeForError(JSError error) |
CheckLevel |
ShowByPathWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupPathSuppressingWarningsGuard.level(JSError error)
Does not touch warnings in other paths.
|
abstract CheckLevel |
WarningsGuard.level(JSError error)
Returns a new check level for a given error.
|
CheckLevel |
StrictWarningsGuard.level(JSError error) |
CheckLevel |
WhitelistWarningsGuard.level(JSError error) |
CheckLevel |
ComposeWarningsGuard.level(JSError error) |
CheckLevel |
ByPathWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupWarningsGuard.level(JSError 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)
Deprecated.
|
void |
LoggerErrorManager.println(CheckLevel level,
JSError error) |
abstract void |
BasicErrorManager.println(CheckLevel level,
JSError error)
Deprecated.
Print a message with a trailing new line.
|
void |
Compiler.report(CheckLevel ignoredLevel,
JSError error) |
void |
ErrorHandler.report(CheckLevel level,
JSError error) |
void |
ThreadSafeDelegatingErrorManager.report(CheckLevel level,
JSError error) |
void |
WhitelistWarningsGuard.WhitelistBuilder.report(CheckLevel level,
JSError error) |
void |
SortingErrorManager.report(CheckLevel level,
JSError error) |
void |
ErrorManager.report(CheckLevel level,
JSError error)
Reports an error.
|
void |
Compiler.report(JSError error) |
abstract void |
AbstractCompiler.report(JSError error)
Report an error or warning.
|
boolean |
ThreadSafeDelegatingErrorManager.shouldReportConformanceViolation(Requirement requirement,
com.google.common.base.Optional<Requirement.WhitelistEntry> whitelistEntry,
JSError diagnostic) |
default boolean |
ErrorManager.shouldReportConformanceViolation(Requirement requirement,
com.google.common.base.Optional<Requirement.WhitelistEntry> whitelistEntry,
JSError diagnostic)
Return true if the conformance violation should be reported.
|
Constructor and Description |
---|
Result(JSError[] errors,
JSError[] warnings,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport) |
Result(JSError[] errors,
JSError[] warnings,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport) |
Modifier and Type | Field and Description |
---|---|
JSError[] |
CompilerBasedTransformer.CompileResult.errors |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<JSError> |
TranspilationException.errors() |
com.google.common.collect.ImmutableList<JSError> |
TranspilationException.warnings() |
Constructor and Description |
---|
CompileResult(java.lang.String source,
JSError[] errors,
boolean transformed,
java.lang.String sourceMap) |
TranspilationException(SourceExcerptProvider source,
JSError[] errors,
JSError[] warnings) |
TranspilationException(SourceExcerptProvider source,
JSError[] errors,
JSError[] warnings) |
Modifier and Type | Method and Description |
---|---|
CheckLevel |
CheckTypeSummaryWarningsGuard.level(JSError error) |
Modifier and Type | Method and Description |
---|---|
java.util.List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
static com.google.common.collect.ImmutableList<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-2018 Google. All Rights Reserved.