// TypeParameter public TypeParameterType CreateTypeParameter(TypeParameterSymbol pSymbol) { TypeParameterType type = new TypeParameterType(); type.SetTypeParameterSymbol(pSymbol); type.SetName(pSymbol.name); Debug.Assert(pSymbol.GetTypeParameterType() == null); pSymbol.SetTypeParameterType(type); type.SetTypeKind(TypeKind.TK_TypeParameterType); return(type); }
// TypeParameter public TypeParameterType CreateTypeParameter(TypeParameterSymbol pSymbol) { TypeParameterType type = new TypeParameterType(); type.SetTypeParameterSymbol(pSymbol); type.SetUnresolved(pSymbol.parent != null && pSymbol.parent.IsAggregateSymbol() && pSymbol.parent.AsAggregateSymbol().IsUnresolved()); type.SetName(pSymbol.name); Debug.Assert(pSymbol.GetTypeParameterType() == null); pSymbol.SetTypeParameterType(type); type.SetTypeKind(TypeKind.TK_TypeParameterType); return(type); }
// TypeParameter public TypeParameterType CreateTypeParameter(TypeParameterSymbol pSymbol) { TypeParameterType type = new TypeParameterType(); type.SetTypeParameterSymbol(pSymbol); type.SetUnresolved(pSymbol.parent != null && pSymbol.parent.IsAggregateSymbol() && pSymbol.parent.AsAggregateSymbol().IsUnresolved()); type.SetName(pSymbol.name); #if CSEE type.typeRes = type; if (!type.IsUnresolved()) { type.tsRes = ktsImportMax; } #endif // CSEE Debug.Assert(pSymbol.GetTypeParameterType() == null); pSymbol.SetTypeParameterType(type); type.SetTypeKind(TypeKind.TK_TypeParameterType); return type; }
// TypeParameter public TypeParameterType CreateTypeParameter(TypeParameterSymbol pSymbol) { TypeParameterType type = new TypeParameterType(); type.SetTypeParameterSymbol(pSymbol); type.SetUnresolved(pSymbol.parent != null && pSymbol.parent.IsAggregateSymbol() && pSymbol.parent.AsAggregateSymbol().IsUnresolved()); type.SetName(pSymbol.name); #if CSEE type.typeRes = type; if (!type.IsUnresolved()) { type.tsRes = ktsImportMax; } #endif // CSEE Debug.Assert(pSymbol.GetTypeParameterType() == null); pSymbol.SetTypeParameterType(type); type.SetTypeKind(TypeKind.TK_TypeParameterType); return(type); }