Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.ant | |
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.testing | |
com.google.javascript.refactoring |
Modifier and Type | Field and Description |
---|---|
(package private) JSError |
BasicErrorManager.ErrorWithLevel.error |
private JSError |
ErrorPass.error |
JSError[] |
Result.errors |
(package private) JSError |
TypeValidator.TypeMismatch.src |
JSError[] |
Result.warnings |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.Multimap<java.lang.Object,JSError> |
DisambiguateProperties.invalidationMap
Map of a type to all the related errors that invalidated the type
for disambiguation.
|
private java.util.Set<JSError> |
WhitelistWarningsGuard.WhitelistBuilder.warnings |
Modifier and Type | Method and Description |
---|---|
JSError[] |
BasicErrorManager.getErrors() |
JSError[] |
Compiler.getErrors()
Returns the array of errors (never null).
|
JSError[] |
ErrorManager.getErrors()
Gets all the errors.
|
JSError[] |
BasicErrorManager.getWarnings() |
JSError[] |
Compiler.getWarnings()
Returns the array of warnings (never null).
|
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.
|
private JSError |
RhinoErrorReporter.makeError(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset,
CheckLevel defaultLevel) |
private JSError |
TypeValidator.report(JSError error) |
private JSError[] |
BasicErrorManager.toArray(CheckLevel level) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<JSError> |
AbstractCommandLineRunner.removeDuplicateZipEntries(java.util.List<SourceFile> sourceFiles)
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 |
---|---|
(package private) void |
NewTypeInference.WarningReporter.add(JSError warning) |
private java.lang.String |
VerboseMessageFormatter.format(JSError message) |
private java.lang.String |
LightweightMessageFormatter.format(JSError error,
boolean warning) |
java.lang.String |
LightweightMessageFormatter.formatError(JSError error) |
java.lang.String |
VerboseMessageFormatter.formatError(JSError error) |
java.lang.String |
MessageFormatter.formatError(JSError error)
Format an error.
|
java.lang.String |
LightweightMessageFormatter.formatWarning(JSError warning) |
java.lang.String |
VerboseMessageFormatter.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) |
(package private) abstract CheckLevel |
AbstractCompiler.getErrorLevel(JSError error) |
abstract CheckLevel |
WarningsGuard.level(JSError error)
Returns a new check level for a given error.
|
CheckLevel |
ComposeWarningsGuard.level(JSError error) |
CheckLevel |
ByPathWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupWarningsGuard.level(JSError error) |
CheckLevel |
ShowByPathWarningsGuard.level(JSError error) |
CheckLevel |
WhitelistWarningsGuard.level(JSError error) |
CheckLevel |
SuppressDocWarningsGuard.level(JSError error) |
CheckLevel |
StrictWarningsGuard.level(JSError error) |
boolean |
DiagnosticGroup.matches(JSError error)
Returns whether the given error's type matches a type
in this group.
|
void |
LoggerErrorManager.println(CheckLevel level,
JSError error) |
void |
PrintStreamErrorManager.println(CheckLevel level,
JSError error) |
abstract void |
BasicErrorManager.println(CheckLevel level,
JSError error)
Print a message with a trailing new line.
|
private void |
DisambiguateProperties.recordInvalidatingType(JSType type,
JSError error)
Invalidates the given type, so that no properties on it will be renamed.
|
private void |
DisambiguateProperties.recordInvalidationError(JSType t,
JSError error) |
private void |
TypeValidator.registerIfMismatch(JSType found,
JSType required,
JSError error) |
private void |
TypeValidator.registerMismatch(JSType found,
JSType required,
JSError error) |
void |
BasicErrorManager.report(CheckLevel level,
JSError error) |
void |
ErrorHandler.report(CheckLevel level,
JSError error) |
void |
WhitelistWarningsGuard.WhitelistBuilder.report(CheckLevel level,
JSError error) |
void |
ErrorManager.report(CheckLevel level,
JSError error)
Reports an error.
|
private JSError |
TypeValidator.report(JSError error) |
void |
Compiler.report(JSError error) |
private void |
TypedScopeCreator.report(JSError error) |
abstract void |
AbstractCompiler.report(JSError error)
Report an error or warning.
|
Constructor and Description |
---|
ErrorPass(AbstractCompiler compiler,
JSError error) |
ErrorWithLevel(JSError error,
CheckLevel level) |
Result(JSError[] errors,
JSError[] warnings,
java.lang.String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport) |
Result(JSError[] errors,
JSError[] warnings,
java.lang.String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport) |
Result(JSError[] errors,
JSError[] warnings,
java.lang.String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
VariableMap stringMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport,
java.util.Map<java.lang.String,java.lang.Integer> cssNames,
java.lang.String idGeneratorMap) |
Result(JSError[] errors,
JSError[] warnings,
java.lang.String debugLog,
VariableMap variableMap,
VariableMap propertyMap,
VariableMap namedAnonFunctionMap,
VariableMap stringMap,
FunctionInformationMap functionInformationMap,
SourceMap sourceMap,
java.lang.String externExport,
java.util.Map<java.lang.String,java.lang.Integer> cssNames,
java.lang.String idGeneratorMap) |
TypeMismatch(JSType a,
JSType b,
JSError src)
It's the responsibility of the class that creates the
TypeMismatch to ensure that a and b are
non-matching types. |
Modifier and Type | Method and Description |
---|---|
void |
AntErrorManager.println(CheckLevel level,
JSError error) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<JSError> |
JSTypeCreatorFromJSDoc.warnings |
Modifier and Type | Method and Description |
---|---|
java.util.Set<JSError> |
JSTypeCreatorFromJSDoc.getWarnings() |
Modifier and Type | Method and Description |
---|---|
static JSErrorSubject |
JSErrorSubject.assertError(JSError error) |
void |
BlackHoleErrorManager.println(CheckLevel level,
JSError error) |
void |
TestErrorManager.println(CheckLevel level,
JSError error) |
void |
TestErrorManager.report(CheckLevel level,
JSError error) |
Constructor and Description |
---|
JSErrorSubject(FailureStrategy fs,
JSError error) |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ListMultimap<JSError,SuggestedFix> |
FixingErrorManager.fixes |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<SuggestedFix> |
ErrorToFixMapper.getFixesForImplicitlyNullableJsDoc(JSError error) |
java.util.List<SuggestedFix> |
FixingErrorManager.getFixesForJsError(JSError error) |
static java.util.List<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForExtraRequire(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForInexistentProperty(JSError error) |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler)
Creates a SuggestedFix for the given error.
|
private static SuggestedFix |
ErrorToFixMapper.getFixForMissingRequire(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnnecessaryCast(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnsortedRequiresOrProvides(java.lang.String closureFunction,
JSError error,
AbstractCompiler compiler) |
void |
FixingErrorManager.println(CheckLevel level,
JSError error) |
private static SuggestedFix |
ErrorToFixMapper.removeNode(JSError error) |
void |
FixingErrorManager.report(CheckLevel level,
JSError error) |