public interface ErrorManager extends ErrorHandler
Modifier and Type | Method and Description |
---|---|
void |
generateReport()
Writes a report to an implementation-specific medium.
|
int |
getErrorCount()
Gets the number of reported errors.
|
com.google.common.collect.ImmutableList<JSError> |
getErrors()
Gets all the errors.
|
double |
getTypedPercent()
Gets the percentage of typed expressions.
|
int |
getWarningCount()
Gets the number of reported warnings.
|
com.google.common.collect.ImmutableList<JSError> |
getWarnings()
Gets all the warnings.
|
default boolean |
hasHaltingErrors()
Returns if the error manager has errors that should make compilation halt.
|
void |
report(CheckLevel level,
JSError error)
Reports an error.
|
void |
setTypedPercent(double typedPercent)
Sets the percentage of typed expressions.
|
default boolean |
shouldReportConformanceViolation(Requirement requirement,
com.google.common.base.Optional<Requirement.WhitelistEntry> whitelistEntry,
JSError diagnostic)
Return true if the conformance violation should be reported.
|
void report(CheckLevel level, JSError error)
generateReport()
at the discretion of the implementation.report
in interface ErrorHandler
level
- the reporting levelerror
- the error to reportvoid generateReport()
report(com.google.javascript.jscomp.CheckLevel, com.google.javascript.jscomp.JSError)
calls.int getErrorCount()
int getWarningCount()
com.google.common.collect.ImmutableList<JSError> getErrors()
com.google.common.collect.ImmutableList<JSError> getWarnings()
void setTypedPercent(double typedPercent)
double getTypedPercent()
default boolean hasHaltingErrors()
default boolean shouldReportConformanceViolation(Requirement requirement, com.google.common.base.Optional<Requirement.WhitelistEntry> whitelistEntry, JSError diagnostic)
Copyright © 2009-2020 Google. All Rights Reserved.