Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.refactoring |
Modifier and Type | Field and Description |
---|---|
CheckLevel |
CompilerOptions.brokenClosureRequiresLevel
Deprecated.
|
CheckLevel |
CompilerOptions.checkGlobalNamesLevel |
CheckLevel |
CompilerOptions.checkGlobalThisLevel |
CheckLevel |
CompilerOptions.checkMissingGetCssNameLevel |
CheckLevel |
DiagnosticType.level
The default reporting level for this diagnostic
|
CheckLevel |
JSError.level
Deprecated.
Use #getDefaultLevel
|
Modifier and Type | Method and Description |
---|---|
CheckLevel |
JSError.getDefaultLevel()
The default level, before any of the WarningsGuards are applied.
|
CheckLevel |
Compiler.getErrorLevel(JSError error) |
CheckLevel |
DiagnosticGroupPathSuppressingWarningsGuard.level(JSError error)
Does not touch warnings in other paths.
|
CheckLevel |
ByPathWarningsGuard.level(JSError error) |
abstract CheckLevel |
WarningsGuard.level(JSError error)
Returns a new check level for a given error.
|
CheckLevel |
ShowByPathWarningsGuard.level(JSError error) |
CheckLevel |
DiagnosticGroupWarningsGuard.level(JSError error) |
CheckLevel |
WhitelistWarningsGuard.level(JSError error) |
CheckLevel |
StrictWarningsGuard.level(JSError error) |
CheckLevel |
ComposeWarningsGuard.level(JSError error) |
static CheckLevel |
CheckLevel.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CheckLevel[] |
CheckLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static ByPathWarningsGuard |
ByPathWarningsGuard.exceptPath(java.util.List<java.lang.String> paths,
CheckLevel level) |
java.lang.String |
JSError.format(CheckLevel level,
MessageFormatter formatter)
Format a message at the given level.
|
static ByPathWarningsGuard |
ByPathWarningsGuard.forPath(java.util.List<java.lang.String> paths,
CheckLevel level) |
static JSError |
JSError.make(Node n,
CheckLevel level,
DiagnosticType type,
java.lang.String... arguments) |
static DiagnosticType |
DiagnosticType.make(java.lang.String name,
CheckLevel level,
java.lang.String descriptionFormat)
Create a DiagnosticType at a given CheckLevel.
|
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
|
JSError |
NodeTraversal.makeError(Node n,
CheckLevel level,
DiagnosticType type,
java.lang.String... arguments)
Creates a JSError during NodeTraversal.
|
void |
BlackHoleErrorManager.println(CheckLevel level,
JSError error) |
void |
PrintStreamJSONErrorManager.println(CheckLevel level,
JSError error) |
void |
LoggerErrorManager.println(CheckLevel level,
JSError error) |
void |
PrintStreamErrorManager.println(CheckLevel level,
JSError error) |
abstract void |
BasicErrorManager.println(CheckLevel level,
JSError error)
Print a message with a trailing new line.
|
void |
Compiler.report(CheckLevel ignoredLevel,
JSError error) |
void |
WhitelistWarningsGuard.WhitelistBuilder.report(CheckLevel level,
JSError error) |
void |
ErrorManager.report(CheckLevel level,
JSError error)
Reports an error.
|
void |
ThreadSafeDelegatingErrorManager.report(CheckLevel level,
JSError error) |
void |
ErrorHandler.report(CheckLevel level,
JSError error) |
void |
BasicErrorManager.report(CheckLevel level,
JSError error) |
void |
CompilerOptions.setBrokenClosureRequiresLevel(CheckLevel level)
Deprecated.
|
void |
CompilerOptions.setCheckGlobalNamesLevel(CheckLevel level)
Checks the integrity of references to qualified global names.
|
void |
CompilerOptions.setCheckGlobalThisLevel(CheckLevel level)
Checks for certain uses of the
this keyword that are considered
unsafe because they are likely to reference the global this
object unintentionally. |
void |
CompilerOptions.setCheckMissingGetCssNameLevel(CheckLevel level)
Checks that certain string literals only appear in strings used as
goog.getCssName arguments.
|
void |
CompilerOptions.setWarningLevel(DiagnosticGroup type,
CheckLevel level)
Configure the given type of warning to the given level.
|
Modifier and Type | Method and Description |
---|---|
void |
CompilerOptions.setPropertyInvalidationErrors(java.util.Map<java.lang.String,CheckLevel> propertyInvalidationErrors)
Sets the list of properties that we report property invalidation errors
for.
|
protected static void |
AbstractCommandLineRunner.setWarningGuardOptions(CompilerOptions options,
java.util.ArrayList<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards,
DiagnosticGroups diagnosticGroups) |
AbstractCommandLineRunner.CommandLineConfig |
AbstractCommandLineRunner.CommandLineConfig.setWarningGuards(java.util.List<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards)
Add warning guards.
|
Constructor and Description |
---|
DiagnosticGroupWarningsGuard(DiagnosticGroup group,
CheckLevel level) |
Modifier and Type | Method and Description |
---|---|
void |
FixingErrorManager.println(CheckLevel level,
JSError error) |
void |
FixingErrorManager.report(CheckLevel level,
JSError error) |
Copyright © 2009-2018 Google. All Rights Reserved.