public class Asserts extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertEquivalenceOperations(JSType a,
JSType b)
For the given equivalent types, run all type operations that
should have trivial solutions (getGreatestSubtype, isEquivalentTo, etc)
|
static JSType |
assertResolvesToSame(JSType type) |
static void |
assertTypeEquals(JSType a,
JSType b) |
static void |
assertTypeEquals(String message,
JSType a,
JSType b) |
static void |
assertTypeNotEquals(JSType a,
JSType b) |
static void |
assertTypeNotEquals(String message,
JSType a,
JSType b) |
static JSType |
assertValidResolve(JSType type) |
static JSType |
assertValidResolve(JSType type,
StaticScope<JSType> scope) |
public static JSType assertValidResolve(JSType type, StaticScope<JSType> scope)