Package | Description |
---|---|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
static EquivalenceMethod |
EquivalenceMethod.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EquivalenceMethod[] |
EquivalenceMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
ArrowType.checkArrowEquivalenceHelper(ArrowType that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |
private static boolean |
TemplateTypeMap.checkEquivalenceHelper(EquivalenceMethod eqMethod,
TemplateTypeMap thisMap,
TemplateTypeMap thatMap,
JSType.EqCache eqCache) |
(package private) boolean |
JSType.checkEquivalenceHelper(JSType that,
EquivalenceMethod eqMethod)
An equivalence visitor.
|
(package private) boolean |
JSType.checkEquivalenceHelper(JSType that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |
boolean |
TemplateTypeMap.checkEquivalenceHelper(TemplateTypeMap that,
EquivalenceMethod eqMethod)
Determines if this map and the specified map have equivalent template
types.
|
boolean |
TemplateTypeMap.checkEquivalenceHelper(TemplateTypeMap that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |
(package private) boolean |
FunctionType.checkFunctionEquivalenceHelper(FunctionType that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache)
Two function types are equal if their signatures match.
|
(package private) boolean |
ObjectType.checkStructuralEquivalenceHelper(ObjectType otherObject,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache)
Check for structural equivalence with
that . |
(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.
|
private static boolean |
TemplateTypeMap.failedEquivalenceCheck(TemplateTypeMap.EquivalenceMatch eqMatch,
EquivalenceMethod eqMethod)
Determines if the specified EquivalenceMatch is considered a failing
condition for an equivalence check, given the EquivalenceMethod used for
the check.
|
private boolean |
UnionType.hasAlternate(JSType type,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |
(package private) boolean |
ArrowType.hasEqualParameters(ArrowType that,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache) |