Uses of Class
com.google.javascript.jscomp.JSError
Packages that use JSError
Package
Description
-
Uses of JSError in com.google.javascript.jscomp
Fields in com.google.javascript.jscomp with type parameters of type JSErrorModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<JSError> Result.errorsfinal com.google.common.collect.ImmutableList<JSError> Result.warningsMethods in com.google.javascript.jscomp that return JSErrorModifier and TypeMethodDescriptionstatic JSErrorJSError.make(DiagnosticType type, String... arguments) Creates a JSError with no source informationstatic JSErrorJSError.make(com.google.javascript.jscomp.Requirement requirement, Node n, DiagnosticType type, String... arguments) Creates a JSError from a requirement, file and Node position.static JSErrorJSError.make(Node n, DiagnosticType type, String... arguments) Creates a JSError from a file and Node position.static JSErrorJSError.make(Node start, Node end, DiagnosticType type, String... arguments) Creates a JSError from a file and Node position.static JSErrorJSError.make(String sourceName, int lineno, int charno, DiagnosticType type, String... arguments) Creates a JSError at a given source locationMethods in com.google.javascript.jscomp that return types with arguments of type JSErrorModifier and TypeMethodDescriptionstatic 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 JSErrorModifier and TypeMethodDescriptionLightweightMessageFormatter.formatError(JSError error) MessageFormatter.formatError(JSError error) Format an error.protected StringAllowlistWarningsGuard.formatWarning(JSError error) If subclasses want to modify the formatting, they should override #formatWarning(JSError, boolean), not this method.protected StringAllowlistWarningsGuard.formatWarning(JSError error, boolean withMetaData) LightweightMessageFormatter.formatWarning(JSError warning) MessageFormatter.formatWarning(JSError warning) Format a warning.Compiler.getErrorLevel(JSError error) @Nullable CheckLevel@Nullable CheckLevel@Nullable CheckLevel@Nullable CheckLevel@Nullable CheckLevelDoes not touch warnings in other paths.@Nullable CheckLevel@Nullable CheckLevel@Nullable CheckLevelabstract @Nullable CheckLevelReturns a new check level for a given error.booleanReturns whether the given error's type matches a type in this group.abstract voidBasicErrorManager.println(CheckLevel level, JSError error) Deprecated.Print a message with a trailing new line.voidLoggerErrorManager.println(CheckLevel level, JSError error) voidPrintStreamErrorManager.println(CheckLevel level, JSError error) Deprecated.abstract voidReport an error or warning.voidAllowlistWarningsGuard.AllowlistBuilder.report(CheckLevel level, JSError error) voidCompiler.report(CheckLevel ignoredLevel, JSError error) voidvoidErrorHandler.report(CheckLevel level, JSError error) voidErrorManager.report(CheckLevel level, JSError error) Reports an error.voidSortingErrorManager.report(CheckLevel level, JSError error) voidThreadSafeDelegatingErrorManager.report(CheckLevel level, JSError error) default booleanErrorManager.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.booleanThreadSafeDelegatingErrorManager.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 JSErrorModifierConstructorDescriptionResult(com.google.common.collect.ImmutableList<JSError> errors, com.google.common.collect.ImmutableList<JSError> warnings, VariableMap variableMap, VariableMap propertyMap, VariableMap namedAnonFunctionMap, SourceMap sourceMap, String externExport) Deprecated. -
Uses of JSError in com.google.javascript.jscomp.ant
Methods in com.google.javascript.jscomp.ant with parameters of type JSError -
Uses of JSError in com.google.javascript.jscomp.bundle
Fields in com.google.javascript.jscomp.bundle with type parameters of type JSErrorModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<JSError> CompilerBasedTransformer.CompileResult.errorsMethods in com.google.javascript.jscomp.bundle that return types with arguments of type JSErrorModifier and TypeMethodDescriptioncom.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 JSErrorModifierConstructorDescriptionCompileResult(String source, com.google.common.collect.ImmutableList<JSError> errors, boolean transformed, 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 -
Uses of JSError in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring with parameters of type JSErrorModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<SuggestedFix> ErrorToFixMapper.getFixesForJsError(JSError error) FixingErrorManager.getFixesForJsError(JSError error) @Nullable SuggestedFixErrorToFixMapper.getFixForJsError(JSError error) Creates a SuggestedFix for the given error.voidFixingErrorManager.println(CheckLevel level, JSError error) voidFixingErrorManager.report(CheckLevel level, JSError error)