@Override protected JSType caseTopType(JSType topType) { return getNativeType(NO_OBJECT_TYPE); }
@Override protected JSType caseTopType(JSType topType) { return getNativeType(NO_OBJECT_TYPE); }
@Override public JSType caseAllType() { return typeRegistry.createUnionType( getNativeType(NUMBER_STRING_BOOLEAN_SYMBOL), getNativeType(NULL_VOID)); }
@Override public JSType caseAllType() { return typeRegistry.createUnionType( getNativeType(NUMBER_STRING_BOOLEAN), getNativeType(NULL_VOID)); }
} else { return p.type != null ? getNativeType(VOID_TYPE).getGreatestSubtype(p.type) : null; if (p.outcome) { return p.type != null ? getNativeType(NULL_TYPE).getGreatestSubtype(p.type) : null; } else { return getRestrictedWithoutNull(p.type); public JSType apply(TypeRestriction p) { if (p.type == null) { return p.outcome ? getNativeType(ARRAY_TYPE) : null; public JSType apply(TypeRestriction p) { if (p.type == null) { return p.outcome ? getNativeType(OBJECT_TYPE) : null;
} else { return p.type != null ? getNativeType(VOID_TYPE).getGreatestSubtype(p.type) : null; if (p.outcome) { return p.type != null ? getNativeType(NULL_TYPE).getGreatestSubtype(p.type) : null; } else { } else { return p.type != null ? getNativeType(NULL_VOID).getGreatestSubtype(p.type) : null; p -> { if (p.type == null) { return p.outcome ? getNativeType(ARRAY_TYPE) : null; p -> { if (p.type == null) { return p.outcome ? getNativeType(OBJECT_TYPE) : null;