Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<EnumType> |
NTIScope.localEnums |
Modifier and Type | Method and Description |
---|---|
(package private) EnumType |
NTIScope.getEnum(QualifiedName qname) |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<EnumType> |
UnionType.enums |
Modifier and Type | Method and Description |
---|---|
EnumType |
Declaration.getEnum() |
static EnumType |
EnumType.make(java.lang.String name,
JSTypeExpression typeExpr,
java.util.Collection<java.lang.String> props) |
Modifier and Type | Method and Description |
---|---|
protected abstract com.google.common.collect.ImmutableSet<EnumType> |
JSType.getEnums() |
protected com.google.common.collect.ImmutableSet<EnumType> |
UnionType.getEnums() |
protected com.google.common.collect.ImmutableSet<EnumType> |
MaskType.getEnums() |
protected com.google.common.collect.ImmutableSet<EnumType> |
ObjsType.getEnums() |
protected com.google.common.collect.ImmutableSet<EnumType> |
NullableObjsType.getEnums() |
(package private) static com.google.common.collect.ImmutableSet<EnumType> |
EnumType.normalizeForJoin(com.google.common.collect.ImmutableSet<EnumType> newEnums,
JSType joinWithoutEnums) |
(package private) static com.google.common.collect.ImmutableSet<EnumType> |
EnumType.union(com.google.common.collect.ImmutableSet<EnumType> s1,
com.google.common.collect.ImmutableSet<EnumType> s2) |
Modifier and Type | Method and Description |
---|---|
(package private) static JSType |
JSType.fromEnum(EnumType e) |
private JSType |
JSTypeCreatorFromJSDoc.getEnumPropType(EnumType e,
DeclaredTypeRegistry registry) |
void |
JSTypeCreatorFromJSDoc.resolveEnum(EnumType e,
DeclaredTypeRegistry registry) |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
EnumType.hasNonScalar(com.google.common.collect.ImmutableSet<EnumType> enums) |
(package private) static boolean |
EnumType.hasScalar(com.google.common.collect.ImmutableSet<EnumType> enums) |
private static JSType |
JSType.makeType(int mask,
com.google.common.collect.ImmutableSet<ObjectType> objs,
java.lang.String typeVar,
com.google.common.collect.ImmutableSet<EnumType> enums) |
private static JSType |
JSType.meetEnums(int newMask,
int unionMask,
com.google.common.collect.ImmutableSet<ObjectType> newObjs,
java.lang.String newTypevar,
com.google.common.collect.ImmutableSet<ObjectType> objs1,
com.google.common.collect.ImmutableSet<ObjectType> objs2,
com.google.common.collect.ImmutableSet<EnumType> enums1,
com.google.common.collect.ImmutableSet<EnumType> enums2)
Both
meet and specialize do the same computation for enums. |
private static JSType |
JSType.meetEnums(int newMask,
int unionMask,
com.google.common.collect.ImmutableSet<ObjectType> newObjs,
java.lang.String newTypevar,
com.google.common.collect.ImmutableSet<ObjectType> objs1,
com.google.common.collect.ImmutableSet<ObjectType> objs2,
com.google.common.collect.ImmutableSet<EnumType> enums1,
com.google.common.collect.ImmutableSet<EnumType> enums2)
Both
meet and specialize do the same computation for enums. |
(package private) static com.google.common.collect.ImmutableSet<EnumType> |
EnumType.normalizeForJoin(com.google.common.collect.ImmutableSet<EnumType> newEnums,
JSType joinWithoutEnums) |
(package private) static com.google.common.collect.ImmutableSet<EnumType> |
EnumType.union(com.google.common.collect.ImmutableSet<EnumType> s1,
com.google.common.collect.ImmutableSet<EnumType> s2) |
(package private) static com.google.common.collect.ImmutableSet<EnumType> |
EnumType.union(com.google.common.collect.ImmutableSet<EnumType> s1,
com.google.common.collect.ImmutableSet<EnumType> s2) |
Constructor and Description |
---|
UnionType(int mask,
com.google.common.collect.ImmutableSet<ObjectType> objs,
java.lang.String typeVar,
com.google.common.collect.ImmutableSet<EnumType> enums) |