Package com.google.javascript.jscomp
Class TypeMismatch
- java.lang.Object
-
- com.google.javascript.jscomp.TypeMismatch
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class TypeMismatch extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeMismatch()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TypeMismatch
createForTesting(JSType found, JSType required)
abstract JSType
getFound()
The RHS type; the type of the assignment target.abstract Node
getLocation()
The location of the assignment.abstract JSType
getRequired()
The LHS type; the type being assigned.
-
-
-
Method Detail
-
getFound
public abstract JSType getFound()
The RHS type; the type of the assignment target.
-
getRequired
public abstract JSType getRequired()
The LHS type; the type being assigned.
-
getLocation
public abstract Node getLocation()
The location of the assignment.
-
createForTesting
public static TypeMismatch createForTesting(JSType found, JSType required)
-
-