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