Package com.google.javascript.jscomp
Class TypeMismatch
java.lang.Object
com.google.javascript.jscomp.TypeMismatch
- All Implemented Interfaces:
Serializable
Signals that the first type and the second type have been used interchangeably.
Type-based optimizations should take this into account so that they don't wreck code with type warnings.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeMismatchcreateForTesting(JSType found, JSType required) abstract JSTypegetFound()The RHS type; the type of the assignment target.abstract NodeThe location of the assignment.abstract JSTypeThe LHS type; the type being assigned.
-
Constructor Details
-
TypeMismatch
public TypeMismatch()
-
-
Method Details
-
getFound
The RHS type; the type of the assignment target. -
getRequired
The LHS type; the type being assigned. -
getLocation
The location of the assignment. -
createForTesting
-