2 types derived from SubstitutedNamedType
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\SubstitutedNamedType.vb (2)
597
Inherits
SubstitutedNamedType
945
Inherits
SubstitutedNamedType
2 instantiations of SubstitutedNamedType
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\SubstitutedNamedType.vb (2)
605
MyBase.
New
(substitution)
951
MyBase.
New
(substitution)
54 references to SubstitutedNamedType
Microsoft.CodeAnalysis.VisualBasic (41)
Binding\Binder_Statements.vb (2)
3855
member = DirectCast(targetCollectionType,
SubstitutedNamedType
).GetMemberForDefinition(specialTypeMember)
3916
member = DirectCast(enumeratorType,
SubstitutedNamedType
).GetMemberForDefinition(specialTypeMember)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
135
helper = DirectCast(DirectCast(nullableType,
SubstitutedNamedType
).GetMemberForDefinition(helper), MethodSymbol)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
333
Dim substitutedNullableType = DirectCast(nullableType,
SubstitutedNamedType
)
352
Dim substitutedNullableType = DirectCast(nullableType,
SubstitutedNamedType
)
Lowering\LambdaRewriter\LambdaFrameConstructor.vb (1)
35
Dim substituted = DirectCast(frameType,
SubstitutedNamedType
)
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (1)
195
Dim substituted = DirectCast(constructedFrame,
SubstitutedNamedType
)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
313
Dim substitutedType = DirectCast(nullableType,
SubstitutedNamedType
)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (3)
264
Dim substitutedContainer = TryCast(newContainer,
SubstitutedNamedType
)
299
Dim substitutedContainer = TryCast(newContainer,
SubstitutedNamedType
)
326
Dim substitutedContainer = TryCast(newContainer,
SubstitutedNamedType
)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
78
Dim method As Symbol = DirectCast(equatableInterface,
SubstitutedNamedType
).GetMemberForDefinition(Me.Manager.System_IEquatable_T_Equals)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
306
Return DirectCast(DirectCast(type,
SubstitutedNamedType
).GetMemberForDefinition(methodInDefinition), MethodSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
81
Dim method As Symbol = DirectCast(equatableInterface,
SubstitutedNamedType
).GetMemberForDefinition(Me.Manager.System_IEquatable_T_Equals)
Symbols\FieldSymbol.vb (1)
397
DirectCast(DirectCast(newOwner,
SubstitutedNamedType
).GetMemberForDefinition(Me), FieldSymbol))
Symbols\InstanceTypeSymbol.vb (6)
61
Return New
SubstitutedNamedType
.ConstructedInstanceType(substitution)
93
Return New
SubstitutedNamedType
.ConstructedInstanceType(substitution)
105
Return
SubstitutedNamedType
.SpecializedNonGenericType.Create(DirectCast(newContainer, NamedTypeSymbol), Me, substitution)
109
Dim constructFrom =
SubstitutedNamedType
.SpecializedGenericType.Create(DirectCast(newContainer, NamedTypeSymbol), Me)
113
Return New
SubstitutedNamedType
.ConstructedSpecializedGenericType(constructFrom, substitution)
154
Debug.Assert(TypeOf other Is
SubstitutedNamedType
)
Symbols\Source\ImplementsHelper.vb (1)
676
Dim substitutedInterfaceType = TryCast(unsubstitutedInterfaceType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly(),
SubstitutedNamedType
)
Symbols\SubstitutedEventSymbol.vb (2)
19
Private ReadOnly _containingType As
SubstitutedNamedType
33
Friend Sub New(containingType As
SubstitutedNamedType
,
Symbols\SubstitutedFieldSymbol.vb (2)
22
Private ReadOnly _containingType As
SubstitutedNamedType
25
Public Sub New(container As
SubstitutedNamedType
,
Symbols\SubstitutedMethodSymbol.vb (7)
414
Protected ReadOnly _container As
SubstitutedNamedType
416
Protected Sub New(container As
SubstitutedNamedType
)
480
Public Sub New(container As
SubstitutedNamedType
, originalDefinition As MethodSymbol)
558
container As
SubstitutedNamedType
,
589
container As
SubstitutedNamedType
,
637
Debug.Assert(TypeOf containerToCheck Is
SubstitutedNamedType
.SpecializedGenericType)
641
Debug.Assert(TypeOf containerToCheck Is
SubstitutedNamedType
.ConstructedType)
Symbols\SubstitutedNamedType.vb (1)
608
Debug.Assert(TypeOf container Is
SubstitutedNamedType
)
Symbols\SubstitutedPropertySymbol.vb (2)
22
Private ReadOnly _containingType As
SubstitutedNamedType
29
Public Sub New(container As
SubstitutedNamedType
,
Symbols\SubstitutedTypeParameterSymbol.vb (2)
67
Debug.Assert(TypeOf container Is
SubstitutedNamedType
.SpecializedGenericType OrElse
160
Dim containingType = TryCast(_containingSymbol,
SubstitutedNamedType
)
Symbols\SymbolExtensions.vb (1)
439
Dim substituted = DirectCast(type,
SubstitutedNamedType
)
Symbols\Tuples\TupleTypeSymbol.vb (1)
350
TypeOf underlyingType Is
SubstitutedNamedType
OrElse
Symbols\TypeSymbolExtensions.vb (1)
975
genericType As
SubstitutedNamedType
.SpecializedGenericType
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\AttributeTests.vb (1)
2082
Dim arg = DirectCast(gt.Value,
SubstitutedNamedType
)
Attributes\AttributeTests_WellKnownAttributes.vb (8)
514
Assert.IsType(GetType(
SubstitutedNamedType
.ConstructedInstanceType), cOfInt)
519
Assert.IsType(GetType(
SubstitutedNamedType
.ConstructedInstanceType), dOfInt)
3248
Assert.IsType(Of
SubstitutedNamedType
.SpecializedNonGenericType)(substitutedNested)
3252
Assert.IsType(Of
SubstitutedNamedType
.SpecializedNonGenericType)(substitutedNestedS)
3256
Assert.IsType(Of
SubstitutedNamedType
.ConstructedSpecializedGenericType)(specialized)
3260
Assert.IsType(Of
SubstitutedNamedType
.ConstructedSpecializedGenericType)(specializedS)
3268
Assert.IsType(Of
SubstitutedNamedType
.ConstructedInstanceType)(constructed)
3280
Assert.IsType(Of
SubstitutedNamedType
.ConstructedInstanceType)(constructedS)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (1)
306
Assert.NotNull(TryCast(missing.ContainingSymbol,
SubstitutedNamedType
))
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (1)
343
Assert.NotNull(TryCast(localField.[Type],
SubstitutedNamedType
))
SymbolsTests\Source\ImplementsTests.vb (2)
2537
Assert.IsType(Of
SubstitutedNamedType
.SpecializedGenericType)(iFooOfIntTU)
2541
Assert.IsType(Of
SubstitutedNamedType
.SpecializedGenericType)(fooSOfIntTU)