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)
249Friend 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)
308Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 312Friend 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)
1409Dim containingTypeMap = TypeSubstitution.Create( 1413Dim 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)
596Dim substitution = TypeSubstitution.Create(Me, Me.TypeParameters, typeArguments, allowAlphaRenamedTypeParametersAsArguments:=True)
Symbols\NamedTypeSymbol.vb (2)
509Friend Function Construct(substitution As TypeSubstitution) As NamedTypeSymbol 543Friend 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)
2103Dim replaceMethodTypeParametersWithFakeTypeParameters As TypeSubstitution 2107replaceMethodTypeParametersWithFakeTypeParameters = TypeSubstitution.Create(Me, Me.TypeParameters, StaticCast(Of TypeSymbol).From(fakeTypeParameters))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
854Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 974Friend 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 499Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 547Private ReadOnly _substitution As TypeSubstitution 587Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 596substitution As TypeSubstitution, 620Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 670Dim substitution = TypeSubstitution.Create(_substitution.Parent, _substitution.TargetGenericDefinition, typeArguments, 700Protected ReadOnly _substitution As TypeSubstitution 703Protected Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 710Public Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 790Public Sub New(constructedFrom As SpecializedGenericMethod, substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 836Public 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 614Protected Sub New(container As NamedTypeSymbol, substitution As TypeSubstitution) 693Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 702substitution As TypeSubstitution, 777Dim substitution = TypeSubstitution.Create(_substitution.Parent, Me.OriginalDefinition, typeArguments, 788Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 848substitution As TypeSubstitution 863substitution = VisualBasic.Symbols.TypeSubstitution.Concat(fullInstanceType, parentsTypeSubstitution, Nothing) 869substitution = VisualBasic.Symbols.TypeSubstitution.Concat(fullInstanceType, parentsTypeSubstitution, Nothing) 876Private Sub New(container As NamedTypeSymbol, substitution As TypeSubstitution) 919Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 923Private Overloads Function InternalSubstituteTypeParametersInSpecializedNonGenericType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 960Protected Sub New(substitution As TypeSubstitution) 1039Public Sub New(substitution As TypeSubstitution) 1056Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1060Private Overloads Function InternalSubstituteTypeParametersInConstructedInstanceType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 1075Dim substitution As TypeSubstitution 1083substitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(newContainedType.TypeSubstitution, _substitution, additionalSubstitution) 1090substitution = VisualBasic.Symbols.TypeSubstitution.AdjustForConstruct(Nothing, _substitution, additionalSubstitution) 1124Public Sub New(constructedFrom As SpecializedGenericType, substitution As TypeSubstitution) 1146Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1150Private Overloads Function InternalSubstituteTypeParametersInConstructedSpecializedGenericType(additionalSubstitution As TypeSubstitution) As NamedTypeSymbol 1161Dim 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)
238Friend 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)
326Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 473Dim subst = TypeSubstitution.Create(definition, definition.TypeParameters, typeArgumentsBuilder.ToImmutable(), False) 1071Friend 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)
253Friend MustOverride Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 320Friend MustOverride Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 358Private _lazyTypeSubstitution As TypeSubstitution 458Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 461Dim result As TypeSubstitution 470result = VisualBasic.Symbols.TypeSubstitution.Concat(OriginalDefinition, 474result = VisualBasic.Symbols.TypeSubstitution.Create(containerAsConstructed.TypeSubstitution, 481result = VisualBasic.Symbols.TypeSubstitution.Create(OriginalDefinition, OriginalDefinition.TypeParameters, Me.TypeArgumentsNoUseSiteDiagnostics) 544Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 556Private ReadOnly _typeSubstitution As TypeSubstitution 579Dim substitution = VisualBasic.Symbols.TypeSubstitution.CreateForAlphaRename(container.TypeSubstitution, newTypeParameters) 627Friend Overrides ReadOnly Property TypeSubstitution As TypeSubstitution 659Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers