use of com.google.javascript.rhino.ObjectTypeI in project closure-compiler by google.
the class TypeSubject method isObjectTypeWithProperty.
public TypeSubject isObjectTypeWithProperty(String propName) {
isLiteralObject();
ObjectTypeI objType = actual().toMaybeObjectType();
TypeI actualPropType = objType.getPropertyType(propName);
assertNotNull("Type " + actualAsString() + " does not have property " + propName, actualPropType);
return this;
}
use of com.google.javascript.rhino.ObjectTypeI in project closure-compiler by google.
the class TypeSubject method isObjectTypeWithoutProperty.
public void isObjectTypeWithoutProperty(String propName) {
isLiteralObject();
ObjectTypeI objType = actual().toMaybeObjectType();
TypeI actualPropType = objType.getPropertyType(propName);
assertNull("Type " + actualAsString() + " should not have property " + propName, actualPropType);
}
Aggregations