Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
GatherExternProperties.ExtractRecordTypePropertyNames.caseUnionType(UnionType type) |
Modifier and Type | Method and Description |
---|---|
JSType |
ChainableReverseAbstractInterpreter.RestrictByTypeOfResultVisitor.caseUnionType(UnionType type) |
JSType |
SemanticReverseAbstractInterpreter.RestrictByTrueInstanceOfResultVisitor.caseUnionType(UnionType type) |
JSType |
SemanticReverseAbstractInterpreter.RestrictByFalseInstanceOfResultVisitor.caseUnionType(UnionType type) |
Modifier and Type | Method and Description |
---|---|
UnionType |
JSType.toMaybeUnionType()
Downcasts this to a UnionType, or returns null if this is not a UnionType.
|
UnionType |
ProxyObjectType.toMaybeUnionType() |
UnionType |
UnionType.toMaybeUnionType() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
CanCastToVisitor.canCastToUnion(JSType thisType,
UnionType unionType) |
T |
Visitor.caseUnionType(UnionType type)
Union type's case.
|
JSType |
ModificationVisitor.caseUnionType(UnionType type) |
java.lang.Boolean |
CanCastToVisitor.caseUnionType(UnionType thisType,
JSType thatType) |
T |
RelationshipVisitor.caseUnionType(UnionType thisType,
JSType thatType)
Union type's case.
|
(package private) boolean |
UnionType.checkUnionEquivalenceHelper(UnionType that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache)
Two union types are equal if, after flattening nested union types,
they have the same number of alternates and all alternates are equal.
|