interface RelationshipVisitor<T>
This code will calculate a specific value of type T
from
two types based on its structure.
Modifier and Type | Method and Description |
---|---|
T |
caseAllType(JSType thatType)
All type's case.
|
T |
caseEnumElementType(EnumElementType typeType,
JSType thatType)
Enum element type's case.
|
T |
caseFunctionType(FunctionType thisType,
JSType thatType)
Function type's case.
|
T |
caseNoObjectType(JSType thatType)
Bottom Object type's case.
|
T |
caseNoType(JSType thatType)
Bottom type's case.
|
T |
caseObjectType(ObjectType thisType,
JSType thatType)
Object type's case.
|
T |
caseTemplateType(TemplateType thisType,
JSType thatType)
Template type's case.
|
T |
caseTemplatizedType(TemplatizedType thisType,
JSType thatType)
Templatized type's case.
|
T |
caseUnionType(UnionType thisType,
JSType thatType)
Union type's case.
|
T |
caseUnknownType(JSType thisType,
JSType thatType)
Unknown type's case.
|
T |
caseValueType(ValueType thisType,
JSType thatType)
Value type's case.
|
T caseObjectType(ObjectType thisType, JSType thatType)
T caseFunctionType(FunctionType thisType, JSType thatType)
T caseTemplatizedType(TemplatizedType thisType, JSType thatType)
T caseTemplateType(TemplateType thisType, JSType thatType)
T caseEnumElementType(EnumElementType typeType, JSType thatType)