Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
com.google.javascript.jscomp.lint | |
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.testing |
Modifier and Type | Field and Description |
---|---|
static DiagnosticType |
ImplicitNullabilityCheck.IMPLICITLY_NULLABLE_JSDOC |
static DiagnosticType |
TypeCheck.INEXISTENT_PROPERTY |
static DiagnosticType |
Compiler.MOTION_ITERATIONS_ERROR |
static DiagnosticType |
NodeTraversal.NODE_TRAVERSAL_ERROR |
protected static DiagnosticType |
TypeCheck.NOT_A_CONSTRUCTOR |
static DiagnosticType |
Compiler.OPTIMIZE_LOOP_ERROR
Error strings used for reporting JSErrors
|
Modifier and Type | Method and Description |
---|---|
static DiagnosticType |
DiagnosticType.disabled(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.OFF
|
static DiagnosticType |
DiagnosticType.error(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.ERROR
|
DiagnosticType |
JSError.getType() |
static DiagnosticType |
DiagnosticType.make(String name,
CheckLevel level,
String descriptionFormat)
Create a DiagnosticType at a given CheckLevel.
|
static DiagnosticType |
DiagnosticType.warning(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.WARNING
|
Modifier and Type | Method and Description |
---|---|
Iterable<DiagnosticType> |
DiagnosticGroup.getTypes()
Returns an iterable over all the types in this group.
|
Modifier and Type | Method and Description |
---|---|
int |
DiagnosticType.compareTo(DiagnosticType diagnosticType) |
static DiagnosticGroup |
DiagnosticGroup.forType(DiagnosticType type)
Create a diagnostic group that matches only the given type.
|
static JSError |
JSError.make(DiagnosticType type,
String... arguments)
Creates a JSError with no source information
|
static JSError |
JSError.make(Node n,
CheckLevel level,
DiagnosticType type,
String... arguments) |
static JSError |
JSError.make(Node n,
DiagnosticType type,
String... arguments)
Creates a JSError from a file and Node position.
|
static JSError |
JSError.make(String sourceName,
int lineno,
int charno,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location
|
static JSError |
JSError.make(String sourceName,
int lineno,
int charno,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location
|
JSError |
NodeTraversal.makeError(Node n,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError during NodeTraversal.
|
JSError |
NodeTraversal.makeError(Node n,
DiagnosticType type,
String... arguments)
Creates a JSError during NodeTraversal.
|
boolean |
DiagnosticGroup.matches(DiagnosticType type)
Returns whether the given type matches a type in this group.
|
void |
NodeTraversal.report(Node n,
DiagnosticType diagnosticType,
String... arguments)
Reports a diagnostic (error or warning)
|
Constructor and Description |
---|
DiagnosticGroup(DiagnosticType... types)
Create a group that matches all errors of the given types.
|
Modifier and Type | Field and Description |
---|---|
static DiagnosticType |
JsFileLineParser.PARSE_ERROR |
Modifier and Type | Method and Description |
---|---|
void |
JSErrorSubject.hasType(DiagnosticType type) |
Copyright © 2009–2023 Google. All rights reserved.