private TypeRefMask GetPrimitiveTypeRefMask(PrimitiveTypeRef /*!*/ typeref) { // primitive type cannot include subclasses var index = AddToContext(typeref); return(TypeRefMask.CreateFromTypeIndex(index)); }
/// <summary> /// Does not lookup existing types whether there is typeref already. /// </summary> private TypeRefMask GetPrimitiveTypeRefMaskNoCheck(PrimitiveTypeRef /*!*/ typeref) { if (this.Types.Count < TypeRefMask.IndicesCount) { var index = AddToContextNoCheck(typeref); return(TypeRefMask.CreateFromTypeIndex(index)); } else { return(TypeRefMask.AnyType); } }