Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
static class |
ConformanceRules.AbstractRule
A conformance rule implementation to support things common to all rules such as whitelisting
and reporting.
|
(package private) static class |
ConformanceRules.AbstractTypeRestrictionRule |
static class |
ConformanceRules.BanExpose
Banned @expose
|
static class |
ConformanceRules.BanGlobalVars
Banned global var declarations.
|
(package private) static class |
ConformanceRules.BannedCodePattern
Banned Code Pattern rule
|
(package private) static class |
ConformanceRules.BannedDependency
Banned dependency rule
|
(package private) static class |
ConformanceRules.BannedName
Banned name rule
|
(package private) static class |
ConformanceRules.BannedProperty
Banned property rule
|
static class |
ConformanceRules.BanNullDeref
Banned dereferencing null or undefined types.
|
static class |
ConformanceRules.BanThrowOfNonErrorTypes
Banned throw of non-error object types.
|
static class |
ConformanceRules.BanUnknownDirectThisPropsReferences
Banned unknown type references of the form "this.prop" unless
- it is immediately cast,
- it is a @template type (until template type
restricts are enabled) or
- the value is unused.
|
static class |
ConformanceRules.BanUnknownThis
Banned unknown "this" types.
|
static class |
ConformanceRules.BanUnknownTypedClassPropsReferences
Banned unknown type references of the form "instance.prop" unless
(a) it is immediately cast/asserted, or
(b) it is a @template type (until template type restrictions are enabled), or
(c) the value is unused, or
(d) the source object type is unknown (to avoid error cascades)
|
static class |
ConformanceRules.BanUnresolvedType
Banned accessing properties from objects that are unresolved
forward-declared type names.
|
(package private) static class |
ConformanceRules.CustomRuleProxy
A custom rule proxy, for rules that we load dynamically.
|
(package private) static class |
ConformanceRules.InferredConstCheck
Check that variables annotated as @const have an inferred type, if there is
no type given explicitly.
|
static class |
ConformanceRules.NoImplicitlyPublicDecls
Requires top-level Closure-style "declarations"
(example:
foo.bar.Baz = ...; ) to have explicit visibility
annotations, either at the declaration site or in the @fileoverview
block. |
static class |
ConformanceRules.RequireFileoverviewVisibility
Requires source files to contain a top-level
@fileoverview block
with an explicit visibility annotation. |
static class |
ConformanceRules.RequireUseStrict
Require "use strict" rule
|
(package private) static class |
ConformanceRules.RestrictedMethodCall
Banned property call rule
|
(package private) static class |
ConformanceRules.RestrictedNameCall
Restricted name call rule
|
Modifier and Type | Field and Description |
---|---|
(package private) CheckConformance.Rule |
ConformanceRules.CustomRuleProxy.customRule |
Modifier and Type | Field and Description |
---|---|
private static com.google.common.reflect.TypeToken<CheckConformance.Rule> |
ConformanceRules.CustomRuleProxy.RULE_TYPE |
private com.google.common.collect.ImmutableList<CheckConformance.Rule> |
CheckConformance.rules |
Modifier and Type | Method and Description |
---|---|
private CheckConformance.Rule |
ConformanceRules.CustomRuleProxy.createRule(AbstractCompiler compiler,
Requirement requirement) |
private static CheckConformance.Rule |
CheckConformance.initRule(AbstractCompiler compiler,
Requirement requirement) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Class<CheckConformance.Rule> |
ConformanceRules.CustomRuleProxy.getRuleClass(java.lang.String className) |
private static com.google.common.collect.ImmutableList<CheckConformance.Rule> |
CheckConformance.initRules(AbstractCompiler compiler,
com.google.common.collect.ImmutableList<ConformanceConfig> configs)
Build the data structures need by this pass from the provided
configurations.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.reflect.Constructor<?> |
ConformanceRules.CustomRuleProxy.getRuleConstructor(java.lang.Class<CheckConformance.Rule> cls) |