Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
private FunctionType |
TypedScopeCreator.AbstractScopeBuilder.findOverriddenFunction(ObjectType ownerType,
java.lang.String propName,
TemplateTypeMap typeMap)
Find the function that's being overridden on this type, if any.
|
Modifier and Type | Field and Description |
---|---|
private TemplateTypeMap |
JSTypeRegistry.emptyTemplateTypeMap |
private TemplateTypeMap |
TemplateTypeMapReplacer.replacements |
protected TemplateTypeMap |
JSType.templateTypeMap |
private TemplateTypeMap |
FunctionBuilder.templateTypeMap |
Modifier and Type | Method and Description |
---|---|
private TemplateTypeMap |
TemplateTypeMap.addUnknownValues()
Returns a new TemplateTypeMap, where all unfilled values have been filled
with UNKNOWN_TYPE.
|
(package private) TemplateTypeMap |
TemplateTypeMap.addValues(com.google.common.collect.ImmutableList<JSType> newValues)
Returns a new TemplateTypeMap whose values have been extended with the
specified list.
|
TemplateTypeMap |
JSTypeRegistry.createTemplateTypeMap(com.google.common.collect.ImmutableList<TemplateType> templateKeys,
com.google.common.collect.ImmutableList<JSType> templateValues)
Creates a template type map from the specified list of template keys and
template value types.
|
(package private) TemplateTypeMap |
TemplateTypeMap.extend(TemplateTypeMap thatMap)
Extends this TemplateTypeMap with the contents of the specified map.
|
TemplateTypeMap |
JSType.getTemplateTypeMap()
Returns the template type map associated with this type.
|
TemplateTypeMap |
ProxyObjectType.getTemplateTypeMap() |
TemplateTypeMap |
TemplatizedType.getTemplateTypeMap() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
TemplateTypeMap.checkEquivalenceHelper(EquivalenceMethod eqMethod,
TemplateTypeMap thisMap,
TemplateTypeMap thatMap,
JSType.EqCache eqCache) |
boolean |
TemplateTypeMap.checkEquivalenceHelper(TemplateTypeMap that,
EquivalenceMethod eqMethod)
Determines if this map and the specified map have equivalent template
types.
|
boolean |
TemplateTypeMap.checkEquivalenceHelper(TemplateTypeMap that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |
(package private) TemplateTypeMap |
TemplateTypeMap.extend(TemplateTypeMap thatMap)
Extends this TemplateTypeMap with the contents of the specified map.
|
void |
JSType.extendTemplateTypeMap(TemplateTypeMap otherMap)
Extends the template type map associated with this type, merging in the
keys and values of the specified map.
|
(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 |
---|
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.
|
JSType(JSTypeRegistry registry,
TemplateTypeMap templateTypeMap) |
ObjectType(JSTypeRegistry registry,
TemplateTypeMap templateTypeMap) |
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,
TemplateTypeMap templateTypeMap) |
TemplateTypeMapReplacer(JSTypeRegistry registry,
TemplateTypeMap replacements) |