11 overrides of InternalSubstituteTypeParameters
Microsoft.CodeAnalysis.VisualBasic (11)
Symbols\ArrayTypeSymbol.vb (1)
316
Friend MustOverride Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\ErrorTypeSymbol.vb (1)
308
Friend Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\InstanceTypeSymbol.vb (1)
71
Friend Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
854
Friend Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\SubstitutedNamedType.vb (4)
778
Friend Overrides Function
InternalSubstituteTypeParameters
(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
909
Friend Overrides Function
InternalSubstituteTypeParameters
(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
1046
Friend Overrides Function
InternalSubstituteTypeParameters
(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
1136
Friend Overrides Function
InternalSubstituteTypeParameters
(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
Symbols\Tuples\TupleTypeSymbol.vb (1)
1071
Friend Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\TypeParameterSymbol.vb (1)
308
Friend Overrides Function
InternalSubstituteTypeParameters
(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\UnboundGenericType.vb (1)
253
Friend MustOverride Overrides Function
InternalSubstituteTypeParameters
(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
62 references to InternalSubstituteTypeParameters
Microsoft.CodeAnalysis.VisualBasic (52)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
34
Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.
InternalSubstituteTypeParameters
(Me.TypeMap).Type
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
61
Me._resultType = DirectCast(Me.Method.ReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().
InternalSubstituteTypeParameters
(Me.TypeMap).Type
413
expression.Type.
InternalSubstituteTypeParameters
(typeMap).Type)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
336
Dim parameter As BoundExpression = ConvertRuntimeHelperToExpressionTree("Parameter", _factory.[Typeof](p.Type.
InternalSubstituteTypeParameters
(_typeMap).Type), _factory.Literal(p.Name))
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
40
Me._elementType = DirectCast(methodReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().
InternalSubstituteTypeParameters
(Me.TypeMap).Type
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (2)
80
type = local.Type.
InternalSubstituteTypeParameters
(frame.TypeMap).Type
85
type = parameter.Type.
InternalSubstituteTypeParameters
(frame.TypeMap).Type
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1172
type.
InternalSubstituteTypeParameters
(containerAsFrame.TypeMap).Type)
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (2)
84
curParam.Type.
InternalSubstituteTypeParameters
(TypeMap).Type,
144
Return _lambda.ReturnType.
InternalSubstituteTypeParameters
(TypeMap).Type
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (2)
201
params(i) = SynthesizedMethod.WithNewContainerAndType(Me, curParam.Type.
InternalSubstituteTypeParameters
(Me._typeMap).Type, curParam)
205
Me._returnType = Me._wrappedMethod.ReturnType.
InternalSubstituteTypeParameters
(Me._typeMap).Type
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (4)
103
Return type.
InternalSubstituteTypeParameters
(Me.TypeMap).Type
263
Dim newContainer As TypeSymbol = method.ContainingType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly()
298
Dim newContainer As TypeSymbol = [property].ContainingType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly()
325
Dim newContainer As TypeSymbol = field.ContainingType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly()
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
238
Dim paramType As TypeSymbol = parameter.Type.
InternalSubstituteTypeParameters
(typeMap).Type
288
Dim fieldType = local.Type.
InternalSubstituteTypeParameters
(typeMap).Type
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
68
Me._interfaces = originalInterfaces.SelectAsArray(Function(i) DirectCast(i.
InternalSubstituteTypeParameters
(Me._typeMap).AsTypeSymbolOnly(), NamedTypeSymbol))
Semantics\TypeInference\TypeArgumentInference.vb (1)
2292
Return parameterType.
InternalSubstituteTypeParameters
(partialSubstitution).Type
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
127
current.Type.
InternalSubstituteTypeParameters
(substitution).Type,
Symbols\ArrayTypeSymbol.vb (1)
513
newInterfaces = newInterfaces.SelectAsArray(Function([interface], map) DirectCast([interface].
InternalSubstituteTypeParameters
(map).AsTypeSymbolOnly(), NamedTypeSymbol), substitution)
Symbols\ConstraintsHelper.vb (1)
672
Dim constraintType = t.
InternalSubstituteTypeParameters
(substitution).Type
Symbols\InstanceErrorTypeSymbol.vb (1)
88
Dim newContainer = DirectCast(containingType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
Symbols\InstanceTypeSymbol.vb (2)
96
newContainer = DirectCast(Me.ContainingType.
InternalSubstituteTypeParameters
(substitution.Parent).AsTypeSymbolOnly(), NamedTypeSymbol)
98
newContainer = DirectCast(Me.ContainingType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
Symbols\NamedTypeSymbol.vb (1)
514
Return DirectCast(
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
Symbols\ReducedExtensionMethodSymbol.vb (3)
165
receiverType = receiverType.
InternalSubstituteTypeParameters
(partialSubstitution).Type
387
type = type.
InternalSubstituteTypeParameters
(_curryTypeSubstitution).Type
840
paramType = paramType.
InternalSubstituteTypeParameters
(_curriedMethod._curryTypeSubstitution).Type
Symbols\Source\ImplementsHelper.vb (1)
676
Dim substitutedInterfaceType = TryCast(unsubstitutedInterfaceType.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), SubstitutedNamedType)
Symbols\Source\SourceMethodSymbol.vb (2)
2110
param.Type.
InternalSubstituteTypeParameters
(replaceMethodTypeParametersWithFakeTypeParameters).AsTypeSymbolOnly(),
2126
returnType:=retType.
InternalSubstituteTypeParameters
(replaceMethodTypeParametersWithFakeTypeParameters).AsTypeSymbolOnly(),
Symbols\SubstitutedErrorType.vb (1)
177
Dim newContainer = DirectCast(containingType.
InternalSubstituteTypeParameters
(additionalSubstitution).AsTypeSymbolOnly(), NamedTypeSymbol)
Symbols\SubstitutedEventSymbol.vb (1)
70
_originalDefinition.Type.
InternalSubstituteTypeParameters
(TypeSubstitution).AsTypeSymbolOnly(),
Symbols\SubstitutedFieldSymbol.vb (1)
164
Return _originalDefinition.Type.
InternalSubstituteTypeParameters
(_containingType.TypeSubstitution).Type
Symbols\SubstitutedMethodSymbol.vb (1)
307
Return OriginalDefinition.ReturnType.
InternalSubstituteTypeParameters
(Me.TypeSubstitution).Type
Symbols\SubstitutedNamedType.vb (8)
247
Return DirectCast(OriginalDefinition.GetDeclaredBase(basesBeingResolved).
InternalSubstituteTypeParameters
(_substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
260
substitutedInterfaces(i) = DirectCast(instanceInterfaces(i).
InternalSubstituteTypeParameters
(_substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
272
Return DirectCast(fullBase.
InternalSubstituteTypeParameters
(_substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
288
substitutedInterfaces(i) = DirectCast(instanceInterfaces(i).
InternalSubstituteTypeParameters
(_substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
576
Return DirectCast(fullBase.
InternalSubstituteTypeParameters
(_substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
918
Dim newContainer = DirectCast(_container.
InternalSubstituteTypeParameters
(additionalSubstitution).AsTypeSymbolOnly(), NamedTypeSymbol)
1060
newContainedType = DirectCast(containedType.
InternalSubstituteTypeParameters
(additionalSubstitution).AsTypeSymbolOnly, NamedTypeSymbol)
1150
Dim newContainer = DirectCast(container.
InternalSubstituteTypeParameters
(additionalSubstitution).AsTypeSymbolOnly, NamedTypeSymbol)
Symbols\SubstitutedParameterSymbol.vb (1)
100
Return _originalDefinition.Type.
InternalSubstituteTypeParameters
(TypeSubstitution).Type
Symbols\SubstitutedPropertySymbol.vb (1)
216
Return _originalDefinition.Type.
InternalSubstituteTypeParameters
(TypeSubstitution).Type
Symbols\Tuples\TupleTypeSymbol.vb (1)
1072
Dim substitutedUnderlying = DirectCast(Me.TupleUnderlyingType.
InternalSubstituteTypeParameters
(substitution).Type, NamedTypeSymbol)
Symbols\TypeParameterSymbol.vb (1)
351
Private Shared ReadOnly s_substituteFunc As Func(Of TypeSymbol, TypeSubstitution, TypeSymbol) = Function(type, substitution) type.
InternalSubstituteTypeParameters
(substitution).Type
Symbols\TypeSubstitution.vb (2)
877
Dim substituted = DirectCast(modifier.
InternalSubstituteTypeParameters
(Me).AsTypeSymbolOnly(), NamedTypeSymbol)
886
substituted = DirectCast(modifier.
InternalSubstituteTypeParameters
(Me).AsTypeSymbolOnly(), NamedTypeSymbol)
Symbols\TypeWithModifiers.vb (1)
83
Dim newTypeWithModifiers As TypeWithModifiers = Me.Type.
InternalSubstituteTypeParameters
(substitution)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\TypeSubstitutionExtensions.vb (2)
13
Return type.
InternalSubstituteTypeParameters
(typeMap).Type
18
Return DirectCast(type.
InternalSubstituteTypeParameters
(typeMap).AsTypeSymbolOnly(), NamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (8)
311
Assert.Same(missing, missing.
InternalSubstituteTypeParameters
(wrongSubstitution).AsTypeSymbolOnly())
312
Assert.Same(missing.OriginalDefinition, missing.OriginalDefinition.
InternalSubstituteTypeParameters
(wrongSubstitution).AsTypeSymbolOnly())
328
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
334
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
340
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
355
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
361
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
367
missing2 = DirectCast(missing.
InternalSubstituteTypeParameters
(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)