Package | Description |
---|---|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
(package private) static JSType.ImplCache |
JSType.ImplCache.create() |
(package private) static JSType.ImplCache |
JSType.ImplCache.createWithoutStructuralTyping() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
ObjectType.isStructuralSubtype(ObjectType superType,
JSType.ImplCache implicitImplCache)
Determine if
this is a an implicit subtype of superType . |
private static boolean |
ObjectType.isStructuralSubtypeHelper(ObjectType typeA,
ObjectType typeB,
JSType.ImplCache implicitImplCache) |
protected boolean |
UnknownType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
EnumElementType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
UnionType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
RecordType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
JSType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache)
checking isSubtype with structural interface matching
|
protected boolean |
NoResolvedType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
NoType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
ProxyObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
EnumType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
TemplatizedType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
FunctionType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
ArrowType.isSubtype(JSType other,
JSType.ImplCache implicitImplCache) |
protected boolean |
NoObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
protected boolean |
PrototypeObjectType.isSubtype(JSType that,
JSType.ImplCache implicitImplCache) |
(package private) static boolean |
PrototypeObjectType.isSubtype(ObjectType typeA,
RecordType typeB,
JSType.ImplCache implicitImplCache)
Determines if typeA is a subtype of typeB
|
(package private) static boolean |
JSType.isSubtypeHelper(JSType thisType,
JSType thatType,
JSType.ImplCache implicitImplCache)
if implicitImplCache is null, then there will
be no structural interface matching
|
protected boolean |
FunctionType.treatThisTypesAsCovariant(FunctionType other,
JSType.ImplCache implicitImplCache) |