2 instantiations of TypeSubstitution
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\TypeSubstitution.vb (2)
516Return New TypeSubstitution(targetGenericDefinition, pairs, parent) 523Return New TypeSubstitution(
187 references to TypeSubstitution
Microsoft.CodeAnalysis.VisualBasic (187)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
119Public Function SubstituteTypeParametersIfNeeded(substitution As TypeSubstitution, <Out> ByRef newDescriptor As AnonymousTypeDescriptor) As Boolean
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
141Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
165Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
255Friend MustOverride Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\ArrayTypeSymbol.vb (2)
317Friend MustOverride Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 514Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\ConstraintsHelper.vb (2)
616substitution As TypeSubstitution, 646substitution As TypeSubstitution,
Symbols\ErrorTypeSymbol.vb (2)
314Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 318Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\InstanceErrorTypeSymbol.vb (5)
46Dim substitution = TypeSubstitution.Create(Me, Me.TypeParameters, typeArguments, allowAlphaRenamedTypeParametersAsArguments:=True) 55Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 67Friend NotOverridable Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 71Private Overloads Function InternalSubstituteTypeParametersInInstanceErrorTypeSymbol(substitution As TypeSubstitution) As NamedTypeSymbol 97substitution = VisualBasic.Symbols.TypeSubstitution.Concat(Me, newContainer.TypeSubstitution, Nothing)
Symbols\InstanceTypeSymbol.vb (4)
55Dim substitution = VisualBasic.Symbols.TypeSubstitution.Create(Me, Me.TypeParameters, typeArguments, allowAlphaRenamedTypeParametersAsArguments:=True) 71Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 75Private Function SubstituteTypeParametersInNamedType(substitution As TypeSubstitution) As NamedTypeSymbol 119Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1423Dim containingTypeMap = TypeSubstitution.Create( 1427Dim nestedTypeMap = TypeSubstitution.Create(
Symbols\Metadata\PE\SymbolFactory.vb (2)
127Dim substitution As TypeSubstitution = TypeSubstitution.Create(genericTypeDef, genericParameters,
Symbols\Metadata\PE\TupleTypeDecoder.vb (3)
227Dim subst As TypeSubstitution 229subst = TypeSubstitution.Create(parentSubst, definition, newTypeArgs, False) 231subst = TypeSubstitution.Create(definition, definition.TypeParameters, newTypeArgs, False)
Symbols\MethodSignatureComparer.vb (22)
419Private _typeSubstitution As TypeSubstitution 426Public ReadOnly Property Value As TypeSubstitution 443typeSubstitution1 As TypeSubstitution, 447typeSubstitution2 As TypeSubstitution, 485Private Shared Function SubstituteModifiers(typeSubstitution As TypeSubstitution, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 540Dim typeSubstitution1 As TypeSubstitution 541Dim typeSubstitution2 As TypeSubstitution 666Private Shared Function GetTypeWithModifiers(typeSubstitution As TypeSubstitution, param As ParameterSymbol) As TypeWithModifiers 674Private Shared Function GetRefModifiers(typeSubstitution As TypeSubstitution, param As ParameterSymbol) As ImmutableArray(Of CustomModifier) 715Public Shared Function HaveSameParameterTypes(params1 As ImmutableArray(Of ParameterSymbol), typeSubstitution1 As TypeSubstitution, 716params2 As ImmutableArray(Of ParameterSymbol), typeSubstitution2 As TypeSubstitution, 764Private Shared Function HaveSameReturnTypes(method1 As MethodSymbol, typeSubstitution1 As TypeSubstitution, 765method2 As MethodSymbol, typeSubstitution2 As TypeSubstitution, 798Private Shared Function GetTypeSubstitution(method As MethodSymbol) As TypeSubstitution 817Return TypeSubstitution.Create(method, method.TypeParameters, indexedTypeArguments) 819Return TypeSubstitution.Create(containingType.TypeSubstitution, method.OriginalDefinition, indexedTypeArguments) 829Private Shared Function SubstituteType(typeSubstitution As TypeSubstitution, typeSymbol As TypeWithModifiers) As TypeWithModifiers 838typeSubstitution1 As TypeSubstitution, 840typeSubstitution2 As TypeSubstitution) As Boolean 859typeSubstitution1 As TypeSubstitution, 861typeSubstitution2 As TypeSubstitution) As Boolean 937Private Shared Sub SubstituteConstraintTypes(constraintTypes As ImmutableArray(Of TypeSymbol), result As ArrayBuilder(Of TypeSymbol), substitution As TypeSubstitution)
Symbols\MethodSymbol.vb (1)
626Dim substitution = TypeSubstitution.Create(Me, Me.TypeParameters, typeArguments, allowAlphaRenamedTypeParametersAsArguments:=True)
Symbols\NamedTypeSymbol.vb (2)
511Friend Function Construct(substitution As TypeSubstitution) As NamedTypeSymbol 545Friend MustOverride ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\ReducedExtensionMethodSymbol.vb (3)
26Private ReadOnly _curryTypeSubstitution As TypeSubstitution 144Dim partialSubstitution = TypeSubstitution.Create(possiblyExtensionMethod, typeParametersToFixArray, fixWithArray) 261_curryTypeSubstitution = TypeSubstitution.Create(curriedFromMethod, curriedFromMethod.TypeParameters, curryTypeArguments.AsImmutableOrNull())
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
493Dim substitution As TypeSubstitution = TypeSubstitution.Create(newDefinition, newParameters.ToImmutableAndFree(), newArguments.ToImmutable())
Symbols\Source\ImplementsHelper.vb (1)
665substitution As TypeSubstitution) As ImmutableArray(Of TSymbol)
Symbols\Source\SourceMethodSymbol.vb (2)
2136Dim replaceMethodTypeParametersWithFakeTypeParameters As TypeSubstitution 2140replaceMethodTypeParametersWithFakeTypeParameters = TypeSubstitution.Create(Me, Me.TypeParameters, StaticCast(Of TypeSymbol).From(fakeTypeParameters))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
860Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 980Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\SubstitutedErrorType.vb (12)
16Private ReadOnly _substitution As TypeSubstitution 79Dim substitution As TypeSubstitution = _substitution.Parent 85substitution = VisualBasic.Symbols.TypeSubstitution.Concat(_fullInstanceType, substitution, Nothing) 91Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 151Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 155Private Overloads Function InternalSubstituteTypeParametersInSubstitutedErrorType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 165Dim substitution As TypeSubstitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(Nothing, _substitution, additionalSubstitution) 179Dim newSubstitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(newContainer.TypeSubstitution, _substitution, additionalSubstitution) 204Dim substitution = TypeSubstitution.Create(_fullInstanceType, _fullInstanceType.TypeParameters, typeArguments, allowAlphaRenamedTypeParametersAsArguments:=True) 209Return New SubstitutedErrorType(_container, _fullInstanceType, TypeSubstitution.Concat(_fullInstanceType, _substitution.Parent, substitution)) 213Public Sub New(container As Symbol, fullInstanceType As InstanceErrorTypeSymbol, substitution As TypeSubstitution)
Symbols\SubstitutedEventSymbol.vb (1)
60Friend ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\SubstitutedMethodSymbol.vb (12)
193Public MustOverride ReadOnly Property TypeSubstitution As TypeSubstitution 503Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 551Private ReadOnly _substitution As TypeSubstitution 591Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 600substitution As TypeSubstitution, 624Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 674Dim substitution = TypeSubstitution.Create(_substitution.Parent, _substitution.TargetGenericDefinition, typeArguments, 704Protected ReadOnly _substitution As TypeSubstitution 707Protected Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 714Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 794Public Sub New(constructedFrom As SpecializedGenericMethod, substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 840Public Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol))
Symbols\SubstitutedNamedType.vb (26)
29Private ReadOnly _substitution As TypeSubstitution 31Private Sub New(substitution As TypeSubstitution) 86Friend NotOverridable Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 620Protected Sub New(container As NamedTypeSymbol, substitution As TypeSubstitution) 699Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 708substitution As TypeSubstitution, 783Dim substitution = TypeSubstitution.Create(_substitution.Parent, Me.OriginalDefinition, typeArguments, 794Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 854substitution As TypeSubstitution 869substitution = VisualBasic.Symbols.TypeSubstitution.Concat(fullInstanceType, parentsTypeSubstitution, Nothing) 875substitution = VisualBasic.Symbols.TypeSubstitution.Concat(fullInstanceType, parentsTypeSubstitution, Nothing) 882Private Sub New(container As NamedTypeSymbol, substitution As TypeSubstitution) 925Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 929Private Overloads Function InternalSubstituteTypeParametersInSpecializedNonGenericType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 966Protected Sub New(substitution As TypeSubstitution) 1045Public Sub New(substitution As TypeSubstitution) 1062Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1066Private Overloads Function InternalSubstituteTypeParametersInConstructedInstanceType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 1081Dim substitution As TypeSubstitution 1089substitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(newContainedType.TypeSubstitution, _substitution, additionalSubstitution) 1096substitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(Nothing, _substitution, additionalSubstitution) 1130Public Sub New(constructedFrom As SpecializedGenericType, substitution As TypeSubstitution) 1152Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1156Private Overloads Function InternalSubstituteTypeParametersInConstructedSpecializedGenericType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 1167Dim newSubstitution As TypeSubstitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(newContainer.TypeSubstitution, _substitution, additionalSubstitution)
Symbols\SubstitutedParameterSymbol.vb (3)
194Protected MustOverride ReadOnly Property TypeSubstitution As TypeSubstitution 246Protected Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 273Protected Overrides ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\SubstitutedPropertySymbol.vb (1)
242Friend ReadOnly Property TypeSubstitution As TypeSubstitution
Symbols\SubstitutedTypeParameterSymbol.vb (2)
87Private ReadOnly Property TypeSubstitution As TypeSubstitution 200Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (3)
27Private ReadOnly _typeMapFactory As Func(Of Symbol, TypeSubstitution) 40Friend Sub New(correspondingMethodTypeParameter As TypeParameterSymbol, container As Symbol, name As String, typeMapFactory As Func(Of Symbol, TypeSubstitution)) 63Private ReadOnly Property TypeMap As TypeSubstitution
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (3)
21Private ReadOnly _typeParametersSubstitution As TypeSubstitution 29Private Shared ReadOnly s_typeParametersSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 41_typeParametersSubstitution = TypeSubstitution.Create(implementingMethod, implementingMethod.TypeParameters, StaticCast(Of TypeSymbol).From(_typeParameters))
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (2)
38Private Shared ReadOnly s_typeSubstitutionFactory As Func(Of Symbol, TypeSubstitution) = 209Friend Overridable ReadOnly Property TypeMap As TypeSubstitution
Symbols\Tuples\TupleTypeSymbol.vb (3)
332Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 479Dim subst = TypeSubstitution.Create(definition, definition.TypeParameters, typeArgumentsBuilder.ToImmutable(), False) 1077Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\TypeParameterSymbol.vb (3)
308Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 349Friend Shared Function InternalSubstituteTypeParametersDistinct(substitution As TypeSubstitution, types As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 353Private Shared ReadOnly s_substituteFunc As Func(Of TypeSymbol, TypeSubstitution, TypeSymbol) = Function(type, substitution) type.InternalSubstituteTypeParameters(substitution).Type
Symbols\TypeSubstitution.vb (40)
83Private ReadOnly _parent As TypeSubstitution 115Public ReadOnly Property Parent As TypeSubstitution 135Dim current As TypeSubstitution = Me 159Dim current As TypeSubstitution = Me 191Dim current As TypeSubstitution = Me 215Dim current As TypeSubstitution = Me 240Dim toCheck As TypeSubstitution = Me 260) As TypeSubstitution 262Dim current As TypeSubstitution = Me 281) As TypeSubstitution 283Dim current As TypeSubstitution = Me 328Public Shared Function Concat(targetGenericDefinition As Symbol, sub1 As TypeSubstitution, sub2 As TypeSubstitution) As TypeSubstitution 349Private Shared Function ConcatNotNulls(sub1 As TypeSubstitution, sub2 As TypeSubstitution) As TypeSubstitution 372) As TypeSubstitution 381) As TypeSubstitution 400) As TypeSubstitution 407Dim currentParent As TypeSubstitution = Nothing 487) As TypeSubstitution 495parent As TypeSubstitution, 499) As TypeSubstitution 511parent As TypeSubstitution, 514) As TypeSubstitution 556Private Sub New(targetGenericDefinition As Symbol, pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)), parent As TypeSubstitution) 584parent As TypeSubstitution, 586) As TypeSubstitution 631) As TypeSubstitution 699adjustedParent As TypeSubstitution, 700oldConstructSubstitution As TypeSubstitution, 701additionalSubstitution As TypeSubstitution 702) As TypeSubstitution 713Dim result As TypeSubstitution 745oldConstructSubstitution As TypeSubstitution, 746additionalSubstitution As TypeSubstitution 784Dim append As TypeSubstitution = additionalSubstitution.GetSubstitutionForGenericDefinition(targetGenericDefinition) 804parent As TypeSubstitution, 808) As TypeSubstitution
Symbols\TypeSymbol.vb (1)
308Friend MustOverride Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\TypeWithModifiers.vb (1)
81Public Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\UnboundGenericType.vb (13)
259Friend MustOverride Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 326Friend MustOverride Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 364Private _lazyTypeSubstitution As TypeSubstitution 464Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 467Dim result As TypeSubstitution 476result = VisualBasic.Symbols.TypeSubstitution.Concat(OriginalDefinition, 480result = VisualBasic.Symbols.TypeSubstitution.Create(containerAsConstructed.TypeSubstitution, 487result = VisualBasic.Symbols.TypeSubstitution.Create(OriginalDefinition, OriginalDefinition.TypeParameters, Me.TypeArgumentsNoUseSiteDiagnostics) 550Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 562Private ReadOnly _typeSubstitution As TypeSubstitution 585Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 633Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 665Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers