| 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.ijs | |
| com.google.javascript.jscomp.lint |
Provides "lint" checks: Checks which are likely to provide a lot of false positives, and therefore
should not generally be turned on as errors, but which might be appropriate to include in a static
analysis tool.
|
| com.google.javascript.jscomp.modules | |
| com.google.javascript.refactoring |
| Modifier and Type | Method and Description |
|---|---|
static DiagnosticType |
DiagnosticType.disabled(java.lang.String name,
java.lang.String descriptionFormat)
Create a DiagnosticType at level CheckLevel.OFF
|
static DiagnosticType |
DiagnosticType.error(java.lang.String name,
java.lang.String descriptionFormat)
Create a DiagnosticType at level CheckLevel.ERROR
|
DiagnosticType |
JSError.getType() |
static DiagnosticType |
DiagnosticType.make(java.lang.String name,
CheckLevel level,
java.lang.String descriptionFormat)
Create a DiagnosticType at a given CheckLevel.
|
static DiagnosticType |
DiagnosticType.warning(java.lang.String name,
java.lang.String descriptionFormat)
Create a DiagnosticType at level CheckLevel.WARNING
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<DiagnosticType> |
DiagnosticGroup.getTypes()
Returns 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(CheckLevel level,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError with no source information and a non-default level.
|
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
|
boolean |
DiagnosticGroup.matches(DiagnosticType type)
Returns whether the given type matches a type in this group.
|
void |
NodeTraversal.report(Node n,
DiagnosticType diagnosticType,
java.lang.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 |
ModuleLoader.INVALID_MODULE_PATH |
static DiagnosticType |
ModuleLoader.LOAD_WARNING |
static DiagnosticType |
ModuleLoader.MODULE_CONFLICT |
static DiagnosticType |
JsFileLineParser.PARSE_ERROR |
| Modifier and Type | Field and Description |
|---|---|
static DiagnosticType |
IjsErrors.BAD_IJS_FILE_NAME |
static DiagnosticType |
IjsErrors.CONFLICTING_IJS_FILE |
| Modifier and Type | Field and Description |
|---|---|
static DiagnosticType |
EsModuleProcessor.AMBIGUOUS_EXPORT_DEFINITION
Error occurs when there is an ambiguous export, which can happen if there are multiple
export * from statements. |
static DiagnosticType |
EsModuleProcessor.CANNOT_PATH_IMPORT_CLOSURE_FILE |
static DiagnosticType |
EsModuleProcessor.CYCLIC_EXPORT_DEFINITION |
static DiagnosticType |
ModuleMapCreator.DOES_NOT_HAVE_EXPORT |
static DiagnosticType |
EsModuleProcessor.DUPLICATE_EXPORT |
static DiagnosticType |
EsModuleProcessor.IMPORTED_AMBIGUOUS_EXPORT |
static DiagnosticType |
ModuleMapCreator.MISSING_NAMESPACE_IMPORT |
static DiagnosticType |
EsModuleProcessor.NAMESPACE_IMPORT_CANNOT_USE_STAR |
| Constructor and Description |
|---|
FixingErrorManager(com.google.common.collect.ImmutableSet<DiagnosticType> unfixableErrors) |
Copyright © 2009-2019 Google. All Rights Reserved.