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.
|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.transpile |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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 |
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.
|
protected com.google.javascript.jscomp.WarningsGuard.DiagnosticGroupState |
WarningsGuard.enablesExplicitly(DiagnosticGroup group)
The enables method returns true if any of the diagnostic types in the group is
enabled.
|
protected com.google.javascript.jscomp.WarningsGuard.DiagnosticGroupState |
DiagnosticGroupWarningsGuard.enablesExplicitly(DiagnosticGroup group) |
com.google.javascript.jscomp.WarningsGuard.DiagnosticGroupState |
ComposeWarningsGuard.enablesExplicitly(DiagnosticGroup group) |
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 |
Modifier and Type | Field and Description |
---|---|
static DiagnosticGroup |
JSTypeCreatorFromJSDoc.COMPATIBLE_DIAGNOSTICS |
static DiagnosticGroup |
JSTypeCreatorFromJSDoc.NEW_DIAGNOSTICS |
Modifier and Type | Field and Description |
---|---|
protected static DiagnosticGroup |
BaseTranspiler.CompilerSupplier.ES5_WARNINGS |
Copyright © 2009-2018 Google. All Rights Reserved.