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