Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle | |
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.
|
Modifier and Type | Method and Description |
---|---|
static DiagnosticGroup |
DiagnosticGroups.forName(java.lang.String name)
Find the diagnostic group registered under the given name.
|
static DiagnosticGroup |
DiagnosticGroup.forType(DiagnosticType type)
Create a diagnostic group that matches only the given type.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,DiagnosticGroup> |
DiagnosticGroups.getRegisteredGroups()
Get the registered diagnostic groups, indexed by name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DiagnosticGroupPathSuppressingWarningsGuard.disables(DiagnosticGroup type)
Does not suppress all warnings of any type.
|
protected boolean |
WarningsGuard.disables(DiagnosticGroup group)
Returns whether all warnings in the given diagnostic group will be
filtered out.
|
boolean |
DiagnosticGroupWarningsGuard.disables(DiagnosticGroup otherGroup) |
boolean |
J2clSuppressWarningsGuard.disables(DiagnosticGroup type) |
boolean |
ComposeWarningsGuard.disables(DiagnosticGroup group) |
protected boolean |
WarningsGuard.enables(DiagnosticGroup group)
Returns whether any of the warnings in the given diagnostic group will be
upgraded to a warning or error.
|
boolean |
DiagnosticGroupWarningsGuard.enables(DiagnosticGroup otherGroup) |
boolean |
ComposeWarningsGuard.enables(DiagnosticGroup group)
Determines whether this guard will "elevate" the status of any disabled
diagnostic type in the group to a warning or an error.
|
void |
CompilerOptions.setWarningLevel(DiagnosticGroup type,
CheckLevel level)
Configure the given type of warning to the given level.
|
Constructor and Description |
---|
DiagnosticGroup(DiagnosticGroup... groups)
Create a composite group.
|
DiagnosticGroup(java.lang.String name,
DiagnosticGroup... groups)
Create a composite group.
|
DiagnosticGroupPathSuppressingWarningsGuard(DiagnosticGroup type,
java.lang.String part) |
DiagnosticGroupWarningsGuard(DiagnosticGroup group,
CheckLevel level) |
Modifier and Type | Field and Description |
---|---|
protected static DiagnosticGroup |
CompilerBasedTransformer.CompilerSupplier.ES5_WARNINGS |
Modifier and Type | Field and Description |
---|---|
static DiagnosticGroup |
CheckJSDocStyle.ALL_DIAGNOSTICS |
static DiagnosticGroup |
CheckJSDocStyle.LINT_DIAGNOSTICS |
static DiagnosticGroup |
CheckJSDocStyle.UNDERSCORE_DIAGNOSTICS |
Copyright © 2009-2020 Google. All Rights Reserved.