29 references to SubstituteNamedType
Microsoft.CodeAnalysis.CSharp (23)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
528return typeMap.SubstituteNamedType(otherDef); 1089return typeMap.SubstituteNamedType(translatedOriginalDef);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
723var delegateTypeOverContainerTypeParameters = methodToContainerTypeParametersMap.SubstituteNamedType(delegateTypeOverMethodTypeParameters);
Symbols\AbstractTypeMap.cs (8)
28NamedTypeSymbol newContainingType = SubstituteNamedType(previous.ContainingType); 101result = SubstituteNamedType((NamedTypeSymbol)previous); 142var substituted = SubstituteNamedType(modifier); 153substituted = SubstituteNamedType(modifier); 200interfaces = ImmutableArray.Create<NamedTypeSymbol>(SubstituteNamedType(interfaces[0])); 205interfaces = ImmutableArray.Create<NamedTypeSymbol>(SubstituteNamedType(interfaces[0]), SubstituteNamedType(interfaces[1])); 414var substituted = SubstituteNamedType(t);
Symbols\ErrorTypeSymbol.cs (1)
42return TypeWithAnnotations.Create(typeMap.SubstituteNamedType(this));
Symbols\Metadata\PE\SymbolFactory.cs (1)
151NamedTypeSymbol constructedType = substitution.SubstituteNamedType(genericType);
Symbols\NamedTypeSymbol.cs (2)
998return substitution.SubstituteNamedType(definition).WithTupleDataFrom(this); 1018result = substitution.SubstituteNamedType(this.OriginalDefinition);
Symbols\NativeIntegerTypeSymbol.cs (2)
219var interfaces = _underlyingType.InterfacesNoUseSiteDiagnostics(basesBeingResolved).SelectAsArray((type, map) => map.SubstituteNamedType(type), GetTypeMap()); 242internal NamedTypeSymbol SubstituteUnderlyingType(NamedTypeSymbol type) => GetTypeMap().SubstituteNamedType(type);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
582constructedType = substitution.SubstituteNamedType(newDefinition).WithTupleDataFrom(type);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
128var explicitInterfaceType = map.SubstituteNamedType(unsubstitutedInterfaceType);
Symbols\SubstitutedNamedTypeSymbol.cs (2)
142return _unbound ? null : Map.SubstituteNamedType(OriginalDefinition.GetDeclaredBaseType(basesBeingResolved)); 151=> _unbound ? null : Map.SubstituteNamedType(OriginalDefinition.BaseTypeNoUseSiteDiagnostics);
Symbols\SubstitutedTypeParameterSymbol.cs (1)
177return _map.SubstituteNamedType(_underlyingTypeParameter.GetEffectiveBaseClass(inProgress));
Symbols\TypeSymbolExtensions.cs (1)
1899type = typeMap.SubstituteNamedType(originalDefinition).WithTupleDataFrom(originalType);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (5)
CompilationContext.cs (1)
669var type = method.TypeMap.SubstituteNamedType(typeVariablesType);
CSharpInstructionDecoder.cs (1)
124var substitutedType = typeMap.SubstituteNamedType(method.ContainingType);
Symbols\DisplayClassVariable.cs (1)
106return new EEDisplayClassFieldSymbol(typeMap.SubstituteNamedType(field.ContainingType), field.Name, typeMap.SubstituteType(field.TypeWithAnnotations));
Symbols\EENamedTypeSymbol.cs (1)
91this.SubstitutedSourceType = typeMap.SubstituteNamedType(sourceType);
Symbols\EETypeParameterSymbol.cs (1)
164return this.TypeMap.SubstituteNamedType(type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\TypeMapTests.cs (1)
97return new TypeMap(allTypeParameters.ToImmutableAndFree(), typeArguments.SelectAsArray(t => TypeWithAnnotations.Create(t))).SubstituteNamedType(type);