Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes |
Modifier and Type | Class and Description |
---|---|
class |
ClosureCodingConvention
This describes the Closure-specific JavaScript coding conventions.
|
private static class |
CodingConventions.DefaultCodingConvention
The default coding convention.
|
static class |
CodingConventions.Proxy
A convention that wraps another.
|
class |
GoogleCodingConvention
This describes the Google-specific JavaScript coding conventions.
|
class |
JqueryCodingConvention
This describes the jQuery specific JavaScript coding conventions.
|
Modifier and Type | Field and Description |
---|---|
private CodingConvention |
AbstractCommandLineRunner.CommandLineConfig.codingConvention |
private CodingConvention |
CheckProvides.codingConvention |
private CodingConvention |
CheckRequiresForConstructors.codingConvention |
private CodingConvention |
CompilerInput.DepsFinder.codingConvention |
private CodingConvention |
CompilerOptions.codingConvention
A CodingConvention to use during the compile.
|
private CodingConvention |
FunctionTypeBuilder.codingConvention |
private CodingConvention |
RemoveUnusedVars.codingConvention |
private CodingConvention |
SymbolTable.VisibilityCollector.codingConvention |
private CodingConvention |
TypedScopeCreator.codingConvention |
private CodingConvention |
CheckGlobalNames.convention |
private CodingConvention |
CheckMissingReturn.convention |
private CodingConvention |
CheckProvides.CheckProvidesCallback.convention |
private CodingConvention |
ExpandJqueryAliases.convention |
private CodingConvention |
GlobalTypeInfo.convention |
private CodingConvention |
MakeDeclaredNamesUnique.InlineRenamer.convention |
private CodingConvention |
MakeDeclaredNamesUnique.BoilerplateRenamer.convention |
private CodingConvention |
NewTypeInference.convention |
(package private) CodingConvention |
Compiler.defaultCodingConvention
Detects Google-specific coding conventions.
|
protected CodingConvention |
CodingConventions.Proxy.nextConvention |
Modifier and Type | Method and Description |
---|---|
abstract CodingConvention |
AbstractCompiler.getCodingConvention()
Gets the current coding convention.
|
(package private) CodingConvention |
AbstractPeepholeOptimization.getCodingConvention() |
CodingConvention |
Compiler.getCodingConvention() |
CodingConvention |
CompilerOptions.getCodingConvention() |
static CodingConvention |
CodingConventions.getDefault()
Gets the default coding convention.
|
Modifier and Type | Method and Description |
---|---|
(package private) static JSDocInfo.Visibility |
AccessControlUtils.getEffectivePropertyVisibility(Node property,
ObjectType referenceType,
com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap,
CodingConvention codingConvention)
Returns the effective visibility of the given property.
|
private static JSDocInfo.Visibility |
AccessControlUtils.getEffectiveVisibilityForNonOverriddenProperty(Node getprop,
ObjectType objectType,
JSDocInfo.Visibility fileOverviewVisibility,
CodingConvention codingConvention)
Returns the effective visibility of the given non-overridden property.
|
private static JSDocInfo.Visibility |
AccessControlUtils.getEffectiveVisibilityForOverriddenProperty(JSDocInfo.Visibility visibility,
JSDocInfo.Visibility fileOverviewVisibility,
java.lang.String propertyName,
CodingConvention codingConvention)
Returns the effective visibility of the given overridden property.
|
(package private) static boolean |
NodeUtil.isConstantByConvention(CodingConvention convention,
Node node)
Whether the given name is constant by coding convention.
|
(package private) static boolean |
NodeUtil.isConstantDeclaration(CodingConvention convention,
JSDocInfo info,
Node node)
Temporary function to determine if a node is constant
in the old or new world.
|
(package private) static void |
FunctionArgumentInjector.maybeAddTempsForCallArguments(Node fnNode,
java.util.Map<java.lang.String,Node> argMap,
java.util.Set<java.lang.String> namesNeedingTemps,
CodingConvention convention)
Updates the set of parameter names in set unsafe to include any
arguments from the call site that require aliases.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
AbstractCommandLineRunner.CommandLineConfig.setCodingConvention(CodingConvention codingConvention)
Sets rules and conventions to enforce.
|
void |
CompilerOptions.setCodingConvention(CodingConvention codingConvention) |
Constructor and Description |
---|
BoilerplateRenamer(CodingConvention convention,
com.google.common.base.Supplier<java.lang.String> uniqueIdSupplier,
java.lang.String idPrefix) |
CheckProvidesCallback(CodingConvention convention) |
ClosureCodingConvention(CodingConvention wrapped) |
GoogleCodingConvention(CodingConvention convention)
Decorates a wrapped CodingConvention.
|
InlineRenamer(CodingConvention convention,
com.google.common.base.Supplier<java.lang.String> uniqueIdSupplier,
java.lang.String idPrefix,
boolean removeConstness,
boolean hoistingTargetScope,
MakeDeclaredNamesUnique.Renamer parent) |
JqueryCodingConvention(CodingConvention wrapped) |
Proxy(CodingConvention convention) |
TypedScopeCreator(AbstractCompiler compiler,
CodingConvention codingConvention) |
VisibilityCollector(com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap,
CodingConvention codingConvention) |
Modifier and Type | Field and Description |
---|---|
private CodingConvention |
JSTypeCreatorFromJSDoc.convention |
Constructor and Description |
---|
JSTypeCreatorFromJSDoc(CodingConvention convention,
UniqueNameGenerator nameGen) |