SubstituteNamedType() private méthode

SubstType, but for NamedTypeSymbols only. This is used for concrete types, so no alpha substitution appears in the result.
private SubstituteNamedType ( NamedTypeSymbol previous ) : NamedTypeSymbol
previous NamedTypeSymbol
Résultat NamedTypeSymbol
Exemple #1
0
 /// <summary>
 /// Called by <see cref="AbstractTypeMap.SubstituteType"/> to perform substitution
 /// on types with TypeKind ErrorType.  The general pattern is to use the type map
 /// to perform substitution on the wrapped type, if any, and then construct a new
 /// error type symbol from the result (if there was a change).
 /// </summary>
 internal virtual TypeWithModifiers Substitute(AbstractTypeMap typeMap)
 {
     return new TypeWithModifiers((ErrorTypeSymbol)typeMap.SubstituteNamedType(this));
 }
Exemple #2
0
 /// <summary>
 /// Called by <see cref="AbstractTypeMap.SubstituteType"/> to perform substitution
 /// on types with TypeKind ErrorType.  The general pattern is to use the type map
 /// to perform substitution on the wrapped type, if any, and then construct a new
 /// error type symbol from the result (if there was a change).
 /// </summary>
 internal virtual TypeWithModifiers Substitute(AbstractTypeMap typeMap)
 {
     return(new TypeWithModifiers((ErrorTypeSymbol)typeMap.SubstituteNamedType(this)));
 }