Base:
property
ContainingType
Microsoft.CodeAnalysis.VisualBasic.Symbol.ContainingType
6 overrides of ContainingType
Microsoft.CodeAnalysis.VisualBasic (6)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
244
Public NotOverridable Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
145
Public Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
244
Public Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
336
Public Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1222
Public Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
166
Public Overrides ReadOnly Property
ContainingType
As NamedTypeSymbol
143 references to ContainingType
Microsoft.CodeAnalysis.VisualBasic (106)
Binding\Binder_Attributes.vb (1)
345
container = container.
ContainingType
Binding\Binder_Conversions.vb (2)
881
source = source.
ContainingType
882
destination = destination.
ContainingType
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
116
curr = curr.
ContainingType
Emit\GenericNestedTypeInstanceReference.vb (1)
23
Return (DirectCast(context.Module, PEModuleBuilder)).Translate(m_UnderlyingNamedType.
ContainingType
, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
Emit\NamedTypeSymbolAdapter.vb (11)
105
If AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.
ContainingType
Is Nothing Then
116
If AdaptedNamedTypeSymbol.
ContainingType
Is Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
125
If AdaptedNamedTypeSymbol.
ContainingType
IsNot Nothing Then
140
If AdaptedNamedTypeSymbol.
ContainingType
IsNot Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
151
Debug.Assert(AdaptedNamedTypeSymbol.
ContainingType
IsNot Nothing AndAlso AdaptedNamedTypeSymbol.
ContainingType
.IsOrInGenericType())
190
If AdaptedNamedTypeSymbol.
ContainingType
Is Nothing Then
801
Return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.
ContainingType
, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=AdaptedNamedTypeSymbol.IsDefinition)
808
Debug.Assert(AdaptedNamedTypeSymbol.
ContainingType
IsNot Nothing)
811
Return AdaptedNamedTypeSymbol.
ContainingType
.GetCciAdapter()
818
Debug.Assert(AdaptedNamedTypeSymbol.
ContainingType
IsNot Nothing)
Emit\NoPia\EmbeddedTypesManager.vb (1)
231
If type.
ContainingType
IsNot Nothing Then
Emit\PEModuleBuilder.vb (2)
444
If type.
ContainingType
IsNot Nothing Then
543
Debug.Assert(originalDefinition.
ContainingType
Is Nothing, "How did a nested type get forwarded?")
Emit\SpecializedNestedTypeReference.vb (1)
37
Return (DirectCast(context.Module, PEModuleBuilder)).Translate(m_UnderlyingNamedType.
ContainingType
, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
Emit\SymbolTranslator.vb (1)
168
Dim container As NamedTypeSymbol = namedTypeSymbol.
ContainingType
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
128
containingType = containingType.
ContainingType
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
141
containingType = containingType.
ContainingType
Semantics\AccessCheck.vb (11)
163
Dim containingType As NamedTypeSymbol = typeSym.
ContainingType
168
Return CheckMemberAccessibility(typeSym.
ContainingType
, typeSym.DeclaredAccessibility, within, Nothing, basesBeingResolved, useSiteInfo)
362
current = current.
ContainingType
399
current = current.
ContainingType
625
possiblyGeneric = possiblyGeneric.
ContainingType
699
containingType = containingType.
ContainingType
803
enclosingType = enclosingType.
ContainingType
829
Dim containingType As NamedTypeSymbol = probablyNestedType.
ContainingType
836
containingType = containingType.
ContainingType
938
Dim containerOfType As NamedTypeSymbol = type.
ContainingType
1008
Dim nextEnclosingType = enclosingType.
ContainingType
Semantics\Conversions.vb (2)
2833
source = source.
ContainingType
2834
destination = destination.
ContainingType
Semantics\OverloadResolution.vb (1)
4669
symbol = symbol.
ContainingType
Semantics\TypeInference\TypeArgumentInference.vb (4)
1113
possiblyGenericType = possiblyGenericType.
ContainingType
1338
possiblyGenericType = possiblyGenericType.
ContainingType
1532
parameterTypeAsNamedType = parameterTypeAsNamedType.
ContainingType
1533
argumentTypeAsNamedType = argumentTypeAsNamedType.
ContainingType
Symbols\AssemblySymbol.vb (2)
710
Debug.Assert(result.
ContainingType
Is Nothing OrElse IsValidWellKnownType(result.
ContainingType
),
Symbols\BaseTypeAnalysis.vb (1)
221
chain = GetDependenceChain(visited, root, currentNamedType.
ContainingType
)
Symbols\InstanceTypeSymbol.vb (4)
96
newContainer = DirectCast(Me.
ContainingType
.InternalSubstituteTypeParameters(substitution.Parent).AsTypeSymbolOnly(), NamedTypeSymbol)
98
newContainer = DirectCast(Me.
ContainingType
.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly(), NamedTypeSymbol)
101
Debug.Assert(Me.
ContainingType
IsNot Nothing)
212
Dim containing = Me.
ContainingType
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
77
Dim containingType = namedType.
ContainingType
Symbols\Metadata\PE\MetadataDecoder.vb (1)
226
symbol = symbol.
ContainingType
Symbols\Metadata\PE\SymbolFactory.vb (1)
105
typeToCheck = typeToCheck.
ContainingType
Symbols\Metadata\PE\TupleTypeDecoder.vb (2)
178
Dim containingType = type.
ContainingType
226
Dim parentSubst = type.ConstructedFrom.
ContainingType
?.TypeSubstitution
Symbols\MethodSymbol.vb (1)
510
type = type.
ContainingType
Symbols\MissingMetadataTypeSymbol.vb (1)
68
Return If(TryCast(
ContainingType
, ErrorTypeSymbol)?.ErrorInfo,
Symbols\NamedTypeSymbol.vb (4)
861
If
ContainingType
IsNot Nothing Then
862
Dim tmp =
ContainingType
.BaseTypeNoUseSiteDiagnostics
938
p = p.
ContainingType
1027
currentType = currentType.
ContainingType
Symbols\NamedTypeSymbolExtensions.vb (1)
90
current = current.
ContainingType
Symbols\Retargeting\RetargetingSymbolTranslator.vb (10)
221
Dim container = type.
ContainingType
227
container = container.
ContainingType
357
Dim containingType As NamedTypeSymbol = type.
ContainingType
413
Debug.Assert(type.
ContainingType
Is Nothing OrElse Not type.
ContainingType
.IsUnboundGenericType)
442
genericType = genericType.
ContainingType
486
genericType = genericType.
ContainingType
572
namedType = namedType.
ContainingType
1022
containingType = containingType.
ContainingType
1023
retargetedContainingType = retargetedContainingType.
ContainingType
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
390
container = container.
ContainingType
848
container = container.
ContainingType
859
container = container.
ContainingType
953
namedType = namedType.
ContainingType
Symbols\Source\SourceMemberMethodSymbol.vb (1)
239
container = container.
ContainingType
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2509
Dim container2 As NamedTypeSymbol = container1.
ContainingType
2515
container2 = container1.
ContainingType
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
176
container = container.
ContainingType
Symbols\SubstitutedErrorType.vb (3)
81
Debug.Assert(substitution IsNot Nothing AndAlso substitution.TargetGenericDefinition Is Me.
ContainingType
.OriginalDefinition)
237
hash = Roslyn.Utilities.Hash.Combine(
ContainingType
, hash)
272
Dim containingType = Me.
ContainingType
Symbols\SubstitutedMethodSymbol.vb (1)
646
containerToCheck = containerToCheck.
ContainingType
Symbols\SubstitutedNamedType.vb (4)
502
hash = Roslyn.Utilities.Hash.Combine(
ContainingType
, hash)
538
Dim containingType = Me.
ContainingType
748
containerToCheck = containerToCheck.
ContainingType
1056
Dim containedType As NamedTypeSymbol = definition.
ContainingType
Symbols\SymbolExtensions.vb (2)
409
While upperLevelType.
ContainingType
IsNot Nothing
410
upperLevelType = upperLevelType.
ContainingType
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
407
container = container.
ContainingType
Symbols\TypeSubstitution.vb (1)
470
container = container.
ContainingType
Symbols\TypeSymbolExtensions.vb (6)
540
inner = inner.
ContainingType
1152
Return type.
ContainingType
Is Nothing
1162
If type.
ContainingType
Is Nothing Then
1177
Dim containingType = type.
ContainingType
1194
type = type.
ContainingType
1219
type = type.
ContainingType
Symbols\UnboundGenericType.vb (2)
380
Dim originalDefinitionContainingType As NamedTypeSymbol = OriginalDefinition.
ContainingType
403
Dim originalDefinitionContainingType As NamedTypeSymbol = OriginalDefinition.
ContainingType
Symbols\WellKnownMembers.vb (2)
591
If named.
ContainingType
IsNot Nothing Then
606
If named.
ContainingType
IsNot Nothing Then
Utilities\TypeUnification.vb (4)
148
Return nt1.
ContainingType
Is Nothing OrElse CanUnifyHelper(containingGenericType, New TypeWithModifiers(nt1.
ContainingType
), New TypeWithModifiers(nt2.
ContainingType
), substitution)
253
namedType = namedType.
ContainingType
Utilities\VarianceAmbiguity.vb (2)
76
nestingType1 = nestingType1.
ContainingType
77
nestingType2 = nestingType2.
ContainingType
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.vb (3)
622
type = type.
ContainingType
1358
Dim containing = candidateSubstitutedSourceType.
ContainingType
1391
type = type.
ContainingType
CompilationExtensions.vb (1)
35
For Each member In containingType.
ContainingType
.GetMembers(sourceMethodName)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (5)
ExpressionCompilerTestBase.vb (1)
362
Dim container = type.
ContainingType
ExpressionCompilerTests.vb (2)
2023
Assert.Equal(returnType.TypeArguments(0).ContainingSymbol, containingType.
ContainingType
)
2030
Assert.Equal(typeArg.ContainingSymbol, containingType.
ContainingType
)
LocalsTests.vb (2)
1142
returnType = returnType.
ContainingType
1161
returnType = returnType.
ContainingType
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (28)
DocumentationComments\DocCommentTests.vb (1)
6747
container:=symbols(0).ContainingType.
ContainingType
),
SymbolsTests\CompilationCreationTests.vb (3)
1803
Dim args1 = retval1.
ContainingType
.TypeArguments.Concat(retval1.TypeArguments)
1804
Dim params1 = retval1.
ContainingType
.TypeParameters.Concat(retval1.TypeParameters)
1810
Dim retval2 = retval1.
ContainingType
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
438
Assert.True(module1.
ContainingType
.MightContainExtensionMethods)
SymbolsTests\InstantiatingGenerics.vb (13)
122
Dim containingType As NamedTypeSymbol = type.
ContainingType
156
containingType = containingType.
ContainingType
160
containingType = containingType.
ContainingType
478
Dim c2_c3OfIntInt = c3OfIntInt.
ContainingType
479
Dim c1_c2_c3OfIntInt = c2_c3OfIntInt.
ContainingType
491
Dim c1OfIntInt_c2 = c1OfIntInt_c2_c3.
ContainingType
492
Dim c1OfIntInt = c1OfIntInt_c2.
ContainingType
528
Dim c1OfIntInt_c2Of = c1OfIntInt_c2Of_c3Of.
ContainingType
530
Assert.Equal(c1OfIntInt, c1OfIntInt_c2Of.
ContainingType
)
531
c1OfIntInt = c1OfIntInt_c2Of.
ContainingType
594
Assert.False(c1OfIntInt_c2Of_c3Constructed.
ContainingType
.CanConstruct)
595
Assert.NotEqual(c1OfIntInt_c2Of_c3Constructed.
ContainingType
, c1OfIntInt_c2Of_c3Constructed.
ContainingType
.ConstructedFrom)
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (2)
283
Assert.Equal(base7.
ContainingType
, assembly1.CachedTypeByEmittedName(base7.
ContainingType
.ToTestDisplayString()))
SymbolsTests\Source\TypeTests.vb (3)
3812
Dim cDefinition = iDefinition.
ContainingType
3870
Dim c2Definition = iDefinition.
ContainingType
3871
Dim cDefinition = c2Definition.
ContainingType
SymbolsTests\UnboundGenericType.vb (5)
118
Assert.Equal(0, u_c3.GetMembers().As(Of NamedTypeSymbol)().Where(Function(s) Not s.
ContainingType
.IsUnboundGenericType OrElse s.IsUnboundGenericType <> (s.Arity = 0)).Count)
120
Assert.Equal(0, u_c3.GetMembers("c6").As(Of NamedTypeSymbol)().Where(Function(s) Not s.
ContainingType
.IsUnboundGenericType OrElse s.IsUnboundGenericType <> (s.Arity = 0)).Count)
123
Assert.Equal(0, u_c3.GetTypeMembers().As(Of NamedTypeSymbol)().Where(Function(s) Not s.
ContainingType
.IsUnboundGenericType OrElse s.IsUnboundGenericType <> (s.Arity = 0)).Count)
125
Assert.Equal(0, u_c3.GetTypeMembers("c4").As(Of NamedTypeSymbol)().Where(Function(s) Not s.
ContainingType
.IsUnboundGenericType OrElse s.IsUnboundGenericType <> (s.Arity = 0)).Count)
127
Assert.Equal(0, u_c3.GetTypeMembers("c6", 1).Where(Function(s) Not s.
ContainingType
.IsUnboundGenericType OrElse s.IsUnboundGenericType <> (s.Arity = 0)).Count)