Uses of Class
com.google.javascript.jscomp.JSError
-
Packages that use JSError Package Description com.google.javascript.jscomp com.google.javascript.jscomp.ant com.google.javascript.jscomp.bundle com.google.javascript.jscomp.ijs com.google.javascript.refactoring -
-
Uses of JSError in com.google.javascript.jscomp
Fields in com.google.javascript.jscomp with type parameters of type JSError Modifier and Type Field Description com.google.common.collect.ImmutableList<JSError>
Result. errors
com.google.common.collect.ImmutableList<JSError>
Result. warnings
Methods in com.google.javascript.jscomp that return JSError Modifier and Type Method Description static JSError
JSError. make(DiagnosticType type, java.lang.String... arguments)
Creates a JSError with no source informationstatic JSError
JSError. make(Node n, CheckLevel level, DiagnosticType type, java.lang.String... arguments)
Creates a JSError from a file and Node position.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 locationstatic JSError
JSError. make(java.lang.String sourceName, int lineno, int charno, DiagnosticType type, java.lang.String... arguments)
Creates a JSError at a given source locationMethods in com.google.javascript.jscomp that return types with arguments of type JSError Modifier and Type Method Description static com.google.common.collect.ImmutableList<JSError>
ConformanceAllowlister. getConformanceErrors(Compiler compiler, Node externs, Node ast, com.google.javascript.jscomp.Requirement requirement)
com.google.common.collect.ImmutableList<JSError>
Compiler. getErrors()
Returns the list of errors (never null).com.google.common.collect.ImmutableList<JSError>
ErrorManager. getErrors()
Gets all the errors.com.google.common.collect.ImmutableList<JSError>
SortingErrorManager. getErrors()
com.google.common.collect.ImmutableList<JSError>
ThreadSafeDelegatingErrorManager. getErrors()
com.google.common.collect.ImmutableList<JSError>
Compiler. getWarnings()
Returns the list of warnings (never null).com.google.common.collect.ImmutableList<JSError>
ErrorManager. getWarnings()
Gets all the warnings.com.google.common.collect.ImmutableList<JSError>
SortingErrorManager. getWarnings()
com.google.common.collect.ImmutableList<JSError>
ThreadSafeDelegatingErrorManager. getWarnings()
Methods in com.google.javascript.jscomp with parameters of type JSError Modifier and Type Method Description java.lang.String
LightweightMessageFormatter. formatError(JSError error)
java.lang.String
MessageFormatter. formatError(JSError error)
Format an error.protected java.lang.String
AllowlistWarningsGuard. formatWarning(JSError error)
If subclasses want to modify the formatting, they should override #formatWarning(JSError, boolean), not this method.protected java.lang.String
AllowlistWarningsGuard. formatWarning(JSError error, boolean withMetaData)
java.lang.String
LightweightMessageFormatter. formatWarning(JSError warning)
java.lang.String
MessageFormatter. formatWarning(JSError warning)
Format a warning.CheckLevel
Compiler. getErrorLevel(JSError error)
protected Node
FileAwareWarningsGuard. getScriptNodeForError(JSError error)
CheckLevel
AllowlistWarningsGuard. level(JSError error)
CheckLevel
ByPathWarningsGuard. level(JSError error)
CheckLevel
ComposeWarningsGuard. level(JSError error)
CheckLevel
DiagnosticGroupPathSuppressingWarningsGuard. level(JSError error)
Does not touch warnings in other paths.CheckLevel
DiagnosticGroupWarningsGuard. level(JSError error)
CheckLevel
J2clSuppressWarningsGuard. level(JSError error)
CheckLevel
ShowByPathWarningsGuard. level(JSError error)
CheckLevel
StrictWarningsGuard. 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.abstract void
BasicErrorManager. println(CheckLevel level, JSError error)
Deprecated.Print a message with a trailing new line.void
LoggerErrorManager. println(CheckLevel level, JSError error)
void
PrintStreamErrorManager. println(CheckLevel level, JSError error)
Deprecated.abstract void
AbstractCompiler. report(JSError error)
Report an error or warning.void
AllowlistWarningsGuard.AllowlistBuilder. report(CheckLevel level, JSError error)
void
Compiler. report(CheckLevel ignoredLevel, JSError error)
void
Compiler. report(JSError error)
void
ErrorHandler. report(CheckLevel level, JSError error)
void
ErrorManager. report(CheckLevel level, JSError error)
Reports an error.void
SortingErrorManager. report(CheckLevel level, JSError error)
void
ThreadSafeDelegatingErrorManager. report(CheckLevel level, JSError error)
default boolean
ErrorManager. shouldReportConformanceViolation(com.google.javascript.jscomp.Requirement requirement, com.google.common.base.Optional<com.google.javascript.jscomp.Requirement.WhitelistEntry> whitelistEntry, JSError diagnostic)
Return true if the conformance violation should be reported.boolean
ThreadSafeDelegatingErrorManager. shouldReportConformanceViolation(com.google.javascript.jscomp.Requirement requirement, com.google.common.base.Optional<com.google.javascript.jscomp.Requirement.WhitelistEntry> whitelistEntry, JSError diagnostic)
Constructor parameters in com.google.javascript.jscomp with type arguments of type JSError Constructor Description Result(com.google.common.collect.ImmutableList<JSError> errors, com.google.common.collect.ImmutableList<JSError> warnings, VariableMap variableMap, VariableMap propertyMap, VariableMap namedAnonFunctionMap, SourceMap sourceMap, java.lang.String externExport)
Deprecated. -
Uses of JSError in com.google.javascript.jscomp.ant
Methods in com.google.javascript.jscomp.ant with parameters of type JSError Modifier and Type Method Description void
AntErrorManager. println(CheckLevel level, JSError error)
-
Uses of JSError in com.google.javascript.jscomp.bundle
Fields in com.google.javascript.jscomp.bundle with type parameters of type JSError Modifier and Type Field Description com.google.common.collect.ImmutableList<JSError>
CompilerBasedTransformer.CompileResult. errors
Methods in com.google.javascript.jscomp.bundle that return types with arguments of type JSError Modifier and Type Method Description com.google.common.collect.ImmutableList<JSError>
TranspilationException. errors()
com.google.common.collect.ImmutableList<JSError>
TranspilationException. warnings()
Constructor parameters in com.google.javascript.jscomp.bundle with type arguments of type JSError Constructor Description CompileResult(java.lang.String source, com.google.common.collect.ImmutableList<JSError> errors, boolean transformed, java.lang.String sourceMap)
TranspilationException(SourceExcerptProvider source, com.google.common.collect.ImmutableList<JSError> errors, com.google.common.collect.ImmutableList<JSError> warnings)
-
Uses of JSError in com.google.javascript.jscomp.ijs
Methods in com.google.javascript.jscomp.ijs with parameters of type JSError Modifier and Type Method Description CheckLevel
CheckTypeSummaryWarningsGuard. level(JSError error)
-
Uses of JSError in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring with parameters of type JSError Modifier and Type Method Description com.google.common.collect.ImmutableList<SuggestedFix>
ErrorToFixMapper. getFixesForJsError(JSError error)
java.util.List<SuggestedFix>
FixingErrorManager. getFixesForJsError(JSError error)
SuggestedFix
ErrorToFixMapper. getFixForJsError(JSError error)
Creates a SuggestedFix for the given error.void
FixingErrorManager. println(CheckLevel level, JSError error)
void
FixingErrorManager. report(CheckLevel level, JSError error)
-