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