boolean hasAnyTemplateTypesInternal() { for (JSType templateValue : addUnknownValues().resolvedTemplateValues) { if (templateValue.hasAnyTemplateTypes()) { return true; } } return false; }
/** * Returns the JSType value associated with the specified template key. If no * JSType value is associated, returns UNKNOWN_TYPE. */ public JSType getResolvedTemplateType(TemplateType key) { TemplateTypeMap resolvedMap = this.addUnknownValues(); int index = resolvedMap.getTemplateTypeIndex(key); return (index == -1) ? registry.getNativeType(JSTypeNative.UNKNOWN_TYPE) : resolvedMap.resolvedTemplateValues.get(index); }
/** * Extends this TemplateTypeMap with the contents of the specified map. * UNKNOWN_TYPE will be used as the value for any missing values in the * specified map. */ TemplateTypeMap extend(TemplateTypeMap thatMap) { thatMap = thatMap.addUnknownValues(); return registry.createTemplateTypeMap( concatImmutableLists(thatMap.templateKeys, templateKeys), concatImmutableLists(thatMap.templateValues, templateValues)); }