Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes |
Modifier and Type | Method and Description |
---|---|
private void |
GlobalTypeInfo.checkSuperProperty(RawNominalType current,
NominalType superType,
java.lang.String pname,
com.google.common.collect.Multimap<java.lang.String,DeclaredFunctionType> propMethodTypesToProcess,
com.google.common.collect.Multimap<java.lang.String,JSType> propTypesToProcess) |
private GlobalTypeInfo.PropertyDef |
GlobalTypeInfo.getPropDefFromClass(NominalType nominalType,
java.lang.String pname) |
private java.util.Collection<GlobalTypeInfo.PropertyDef> |
GlobalTypeInfo.getPropDefsFromInterface(NominalType nominalType,
java.lang.String pname) |
Modifier and Type | Field and Description |
---|---|
private static NominalType |
ObjectType.builtinObject |
private NominalType |
ObjectType.nominalType |
private NominalType |
RawNominalType.superClass |
private NominalType |
NamespaceLit.window |
private NominalType |
RawNominalType.wrappedAsNominal |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<NominalType> |
RawNominalType.interfaces |
private PersistentMap<NominalType,NominalType> |
SubtypeCache.m |
private PersistentMap<NominalType,NominalType> |
SubtypeCache.m |
Modifier and Type | Method and Description |
---|---|
private NominalType |
NominalType.findMatchingAncestorWith(NominalType other) |
(package private) NominalType |
SubtypeCache.get(NominalType key) |
NominalType |
RawNominalType.getAsNominalType() |
NominalType |
JSTypes.getFunctionType() |
NominalType |
NominalType.getInstantiatedSuperclass() |
NominalType |
JSTypes.getIObjectType() |
private NominalType |
JSTypeCreatorFromJSDoc.getMaybeParentClass(JSDocInfo jsdoc,
java.lang.String functionName,
Node funNode,
com.google.common.collect.ImmutableList<java.lang.String> typeParameters,
DeclaredTypeRegistry registry) |
(package private) NominalType |
ObjectType.getNominalType() |
NominalType |
JSType.getNominalTypeIfSingletonObj() |
private static NominalType |
FunctionType.getNominalTypeIfSingletonObj(JSType t) |
NominalType |
JSTypes.getObjectType() |
NominalType |
RawNominalType.getSuperClass() |
(package private) NominalType |
NominalType.instantiateGenerics(java.util.List<JSType> types) |
(package private) NominalType |
NominalType.instantiateGenerics(java.util.Map<java.lang.String,JSType> newTypeMap) |
(package private) static NominalType |
NominalType.pickSubclass(NominalType c1,
NominalType c2) |
(package private) static NominalType |
NominalType.pickSuperclass(NominalType c1,
NominalType c2) |
(package private) static NominalType |
NominalType.unifyUnknowns(NominalType nt1,
NominalType nt2)
Unify the two types symmetrically, given that we have already instantiated
the type variables of interest in
nt1 and nt2 , treating
JSType.UNKNOWN as a "hole" to be filled. |
Modifier and Type | Method and Description |
---|---|
private com.google.common.collect.ImmutableSet<NominalType> |
JSTypeCreatorFromJSDoc.getExtendedInterfaces(JSDocInfo jsdoc,
DeclaredTypeRegistry registry,
com.google.common.collect.ImmutableList<java.lang.String> typeParameters) |
private com.google.common.collect.ImmutableSet<NominalType> |
JSTypeCreatorFromJSDoc.getImplementedInterfaces(JSDocInfo jsdoc,
DeclaredTypeRegistry registry,
com.google.common.collect.ImmutableList<java.lang.String> typeParameters) |
com.google.common.collect.ImmutableSet<NominalType> |
NominalType.getInstantiatedInterfaces() |
com.google.common.collect.ImmutableSet<NominalType> |
RawNominalType.getInterfaces() |
private com.google.common.collect.ImmutableSet<NominalType> |
JSTypeCreatorFromJSDoc.getInterfacesHelper(JSDocInfo jsdoc,
DeclaredTypeRegistry registry,
com.google.common.collect.ImmutableList<java.lang.String> typeParameters,
boolean implementedIntfs) |
Modifier and Type | Method and Description |
---|---|
boolean |
RawNominalType.addSuperClass(NominalType superClass) |
private static boolean |
ObjectType.areRelatedNominalTypes(NominalType c1,
NominalType c2) |
private boolean |
NominalType.areTypeMapsCompatible(NominalType other) |
private NominalType |
NominalType.findMatchingAncestorWith(NominalType other) |
(package private) static ObjectType |
ObjectType.fromFunction(FunctionType fn,
NominalType fnNominal) |
(package private) static JSType |
JSType.fromFunctionType(FunctionType fn,
NominalType fnNominal) |
(package private) static ObjectType |
ObjectType.fromNominalType(NominalType cl) |
(package private) NominalType |
SubtypeCache.get(NominalType key) |
private static Property |
ObjectType.getProp(java.util.Map<java.lang.String,Property> props,
NominalType nom,
java.lang.String pname) |
private static Property |
ObjectType.getPropHelper(java.lang.String pname,
Namespace ns,
NominalType nt) |
private void |
JSTypeCreatorFromJSDoc.handleConstructorAnnotation(java.lang.String functionName,
Node funNode,
RawNominalType constructorType,
NominalType parentClass,
com.google.common.collect.ImmutableSet<NominalType> implementedIntfs,
DeclaredTypeRegistry registry,
FunctionTypeBuilder builder) |
(package private) boolean |
NominalType.isNominalSubtypeOf(NominalType other) |
private boolean |
NominalType.isStructuralSubtypeOf(NominalType other,
SubtypeCache subSuperMap) |
(package private) boolean |
NominalType.isSubtypeOf(NominalType other,
SubtypeCache subSuperMap) |
private static PersistentMap<java.lang.String,Property> |
ObjectType.joinProps(java.util.Map<java.lang.String,Property> props1,
java.util.Map<java.lang.String,Property> props2,
NominalType nom1,
NominalType nom2) |
(package private) static ObjectType |
ObjectType.makeObjectType(NominalType nominalType,
PersistentMap<java.lang.String,Property> props,
FunctionType fn,
Namespace ns,
boolean isLoose,
ObjectKind ok) |
private static PersistentMap<java.lang.String,Property> |
ObjectType.meetPropsHelper(boolean specializeProps1,
NominalType resultNominalType,
Namespace resultNs,
PersistentMap<java.lang.String,Property> props1,
PersistentMap<java.lang.String,Property> props2) |
(package private) static NominalType |
NominalType.pickSubclass(NominalType c1,
NominalType c2) |
(package private) static NominalType |
NominalType.pickSuperclass(NominalType c1,
NominalType c2) |
(package private) static void |
ObjectType.setObjectType(NominalType builtinObject) |
DeclaredFunctionType |
DeclaredFunctionType.substituteNominalGenerics(NominalType nt) |
(package private) static NominalType |
NominalType.unifyUnknowns(NominalType nt1,
NominalType nt2)
Unify the two types symmetrically, given that we have already instantiated
the type variables of interest in
nt1 and nt2 , treating
JSType.UNKNOWN as a "hole" to be filled. |
(package private) boolean |
NominalType.unifyWithSubtype(NominalType other,
java.util.List<java.lang.String> typeParameters,
com.google.common.collect.Multimap<java.lang.String,JSType> typeMultimap,
SubtypeCache subSuperMap) |
(package private) SubtypeCache |
SubtypeCache.with(NominalType key,
NominalType value) |
(package private) ObjectType |
ObjectType.withFunction(FunctionType ft,
NominalType fnNominal) |
JSType |
JSType.withFunction(FunctionType ft,
NominalType fnNominal) |
Modifier and Type | Method and Description |
---|---|
boolean |
RawNominalType.addInterfaces(com.google.common.collect.ImmutableSet<NominalType> interfaces) |
private void |
JSTypeCreatorFromJSDoc.handleConstructorAnnotation(java.lang.String functionName,
Node funNode,
RawNominalType constructorType,
NominalType parentClass,
com.google.common.collect.ImmutableSet<NominalType> implementedIntfs,
DeclaredTypeRegistry registry,
FunctionTypeBuilder builder) |
private void |
JSTypeCreatorFromJSDoc.handleInterfaceAnnotation(JSDocInfo jsdoc,
java.lang.String functionName,
Node funNode,
RawNominalType constructorType,
com.google.common.collect.ImmutableSet<NominalType> implementedIntfs,
com.google.common.collect.ImmutableList<java.lang.String> typeParameters,
DeclaredTypeRegistry registry,
FunctionTypeBuilder builder) |
Constructor and Description |
---|
ObjectType(NominalType nominalType,
PersistentMap<java.lang.String,Property> props,
FunctionType fn,
Namespace ns,
boolean isLoose,
ObjectKind objectKind) |
Constructor and Description |
---|
SubtypeCache(PersistentMap<NominalType,NominalType> m) |
SubtypeCache(PersistentMap<NominalType,NominalType> m) |