Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.lint | |
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
com.google.javascript.rhino.testing |
Modifier and Type | Field and Description |
---|---|
private JSTypeRegistry |
SymbolTable.registry |
private JSTypeRegistry |
TypeInference.registry |
private JSTypeRegistry |
TypeInference.TemplateTypeReplacer.registry |
private JSTypeRegistry |
DisambiguateProperties.registry |
private JSTypeRegistry |
TypedScopeCreator.DiscoverEnumsAndTypedefs.registry |
private JSTypeRegistry |
TypeCheck.typeRegistry |
private JSTypeRegistry |
FunctionTypeBuilder.typeRegistry |
private JSTypeRegistry |
SymbolTable.JSDocInfoCollector.typeRegistry |
private JSTypeRegistry |
TypeValidator.typeRegistry |
private JSTypeRegistry |
Compiler.typeRegistry |
private JSTypeRegistry |
FieldCleanupPass.QualifiedNameSearchTraversal.typeRegistry |
private JSTypeRegistry |
TypedScopeCreator.typeRegistry |
private JSTypeRegistry |
TypeTransformation.typeRegistry |
Modifier and Type | Method and Description |
---|---|
JSTypeRegistry |
Compiler.getTypeRegistry() |
abstract JSTypeRegistry |
AbstractCompiler.getTypeRegistry()
Gets a central registry of type information from the compiled JS.
|
Modifier and Type | Method and Description |
---|---|
void |
CodingConventions.Proxy.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions) |
void |
CodingConventions.DefaultCodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions) |
void |
CodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions)
Defines the delegate proxy prototype properties.
|
JSType |
ClosureCodingConvention.AssertInstanceofSpec.getAssertedOldType(Node call,
JSTypeRegistry registry)
Returns the type for a type assertion, or null if the function asserts
that the node must not be null or undefined.
|
JSType |
ClosureCodingConvention.AssertFunctionByTypeName.getAssertedOldType(Node call,
JSTypeRegistry registry) |
JSType |
CodingConvention.AssertionFunctionSpec.getAssertedOldType(Node call,
JSTypeRegistry registry)
Returns the old type system type for a type assertion, or null if
the function asserts that the node must not be null or undefined.
|
Constructor and Description |
---|
DiscoverEnumsAndTypedefs(JSTypeRegistry registry) |
JSDocInfoCollector(JSTypeRegistry registry) |
QualifiedNameSearchTraversal(JSTypeRegistry typeRegistry,
java.lang.String srcName) |
SymbolTable(JSTypeRegistry registry)
Clients should get a symbol table by asking the compiler at the end
of a compilation job.
|
TemplateTypeReplacer(JSTypeRegistry registry,
java.util.Map<TemplateType,JSType> replacements) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
CheckLevel reportMissingOverride) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
TypedScope topScope,
MemoizedScopeCreator scopeCreator,
CheckLevel reportMissingOverride) |
Modifier and Type | Field and Description |
---|---|
(package private) JSTypeRegistry |
CheckForInOverArray.typeRegistry |
Modifier and Type | Field and Description |
---|---|
(package private) JSTypeRegistry |
ChainableReverseAbstractInterpreter.typeRegistry |
Constructor and Description |
---|
ChainableReverseAbstractInterpreter(JSTypeRegistry typeRegistry)
Constructs an interpreter, which is the only link in a chain.
|
ClosureReverseAbstractInterpreter(JSTypeRegistry typeRegistry) |
SemanticReverseAbstractInterpreter(JSTypeRegistry typeRegistry)
Creates a semantic reverse abstract interpreter.
|
Modifier and Type | Field and Description |
---|---|
(package private) JSTypeRegistry |
JSType.registry |
private JSTypeRegistry |
RecordTypeBuilder.registry |
private JSTypeRegistry |
UnionTypeBuilder.registry |
(package private) JSTypeRegistry |
TemplateTypeMap.registry |
private JSTypeRegistry |
FunctionParamBuilder.registry |
private JSTypeRegistry |
ModificationVisitor.registry |
private JSTypeRegistry |
FunctionBuilder.registry |
Modifier and Type | Method and Description |
---|---|
(package private) static FunctionType |
FunctionType.forInterface(JSTypeRegistry registry,
java.lang.String name,
Node source,
TemplateTypeMap typeParameters)
Creates an instance for a function that is an interface.
|
Constructor and Description |
---|
AllType(JSTypeRegistry registry) |
ArrowType(JSTypeRegistry registry,
Node parameters,
JSType returnType) |
ArrowType(JSTypeRegistry registry,
Node parameters,
JSType returnType,
boolean returnTypeInferred) |
BooleanType(JSTypeRegistry registry) |
EnumElementType(JSTypeRegistry registry,
JSType elementType,
java.lang.String name,
EnumType enumType) |
EnumType(JSTypeRegistry registry,
java.lang.String name,
Node source,
JSType elementsType)
Creates an enum type.
|
ErrorFunctionType(JSTypeRegistry registry,
java.lang.String name) |
FunctionBuilder(JSTypeRegistry registry) |
FunctionParamBuilder(JSTypeRegistry registry) |
FunctionType(JSTypeRegistry registry,
java.lang.String name,
Node source,
ArrowType arrowType,
JSType typeOfThis,
TemplateTypeMap templateTypeMap,
boolean isConstructor,
boolean nativeType)
Creates an instance for a function that might be a constructor.
|
FunctionType(JSTypeRegistry registry,
java.lang.String name,
Node source,
TemplateTypeMap typeParameters)
Creates an instance for a function that is an interface.
|
InstanceObjectType(JSTypeRegistry registry,
FunctionType constructor) |
InstanceObjectType(JSTypeRegistry registry,
FunctionType constructor,
boolean isNativeType) |
JSType(JSTypeRegistry registry) |
JSType(JSTypeRegistry registry,
TemplateTypeMap templateTypeMap) |
ModificationVisitor(JSTypeRegistry registry,
boolean visitProperties) |
NamedType(JSTypeRegistry registry,
java.lang.String reference,
java.lang.String sourceName,
int lineno,
int charno)
Create a named type based on the reference.
|
NamespaceType(JSTypeRegistry registry,
java.lang.String reference,
java.lang.String sourceName,
int lineno,
int charno)
Create a namespace type based on the reference.
|
NoObjectType(JSTypeRegistry registry) |
NoResolvedType(JSTypeRegistry registry) |
NoType(JSTypeRegistry registry) |
NullType(JSTypeRegistry registry) |
NumberType(JSTypeRegistry registry) |
ObjectType(JSTypeRegistry registry) |
ObjectType(JSTypeRegistry registry,
TemplateTypeMap templateTypeMap) |
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype)
Creates an object type.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean anonymousType)
Creates an object type.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean nativeType,
TemplateTypeMap templateTypeMap)
Creates an object type, allowing specification of the implicit prototype,
whether the object is native, and any templatized types.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean nativeType,
TemplateTypeMap templateTypeMap,
boolean anonymousType)
Creates an object type, allowing specification of the implicit prototype,
whether the object is native, and any templatized types.
|
ProxyObjectType(JSTypeRegistry registry,
JSType referencedType) |
ProxyObjectType(JSTypeRegistry registry,
JSType referencedType,
TemplateTypeMap templateTypeMap) |
RecordType(JSTypeRegistry registry,
java.util.Map<java.lang.String,RecordTypeBuilder.RecordProperty> properties) |
RecordType(JSTypeRegistry registry,
java.util.Map<java.lang.String,RecordTypeBuilder.RecordProperty> properties,
boolean declared)
Creates a record type.
|
RecordTypeBuilder(JSTypeRegistry registry) |
StringType(JSTypeRegistry registry) |
TemplateType(JSTypeRegistry registry,
java.lang.String name) |
TemplateType(JSTypeRegistry registry,
java.lang.String name,
Node typeTransformation) |
TemplateTypeMap(JSTypeRegistry registry,
com.google.common.collect.ImmutableList<TemplateType> templateKeys,
com.google.common.collect.ImmutableList<JSType> templateValues) |
TemplateTypeMapReplacer(JSTypeRegistry registry,
TemplateTypeMap replacements) |
TemplatizedType(JSTypeRegistry registry,
ObjectType objectType,
com.google.common.collect.ImmutableList<JSType> templateTypes) |
UnionType(JSTypeRegistry registry,
java.util.Collection<JSType> alternatesWithoutStructuralTyping)
Creates a union type.
|
UnionTypeBuilder(JSTypeRegistry registry) |
UnionTypeBuilder(JSTypeRegistry registry,
int maxUnionSize) |
UnknownType(JSTypeRegistry registry,
boolean isChecked) |
ValueType(JSTypeRegistry registry) |
VoidType(JSTypeRegistry registry) |
Modifier and Type | Field and Description |
---|---|
protected JSTypeRegistry |
BaseJSTypeTestCase.registry |
Modifier and Type | Method and Description |
---|---|
private static void |
BaseJSTypeTestCase.addMethod(JSTypeRegistry registry,
ObjectType receivingType,
java.lang.String methodName,
JSType returnType) |
static void |
BaseJSTypeTestCase.addNativeProperties(JSTypeRegistry registry)
Adds a basic set of properties to the native types.
|