3 overrides of ContainingType
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\BackstopBinder.vb (1)
86Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Binding\NamedTypeBinder.vb (1)
160Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
Binding\NamespaceBinder.vb (1)
46Public Overrides ReadOnly Property ContainingType As NamedTypeSymbol
39 references to ContainingType
Microsoft.CodeAnalysis.VisualBasic (39)
Binding\Binder.vb (1)
389Return m_containingBinder.ContainingType
Binding\Binder_Expressions.vb (19)
1141If ContainingType Is classType AndAlso Not ContainingMember.IsShared Then 1318Return ContainingType 2239Me.ContainingType.IsModuleType 2243Me.ContainingType.IsModuleType OrElse 2255Dim containingType = Me.ContainingType 2292If ContainingType.IsStructureType Then 2298Debug.Assert(ContainingType.IsClassType) 2328If Me.ContainingType IsNot Nothing AndAlso Me.ContainingType.IsModuleType Then 2341Return New BoundMeReference(node, If(Me.ContainingType, ErrorTypeSymbol.UnknownResultType), hasErrors:=True) 2350Dim result = New BoundMeReference(node, If(Me.ContainingType, ErrorTypeSymbol.UnknownResultType)) 2364Return New BoundMyBaseReference(node, If(Me.ContainingType IsNot Nothing, Me.ContainingType.BaseTypeNoUseSiteDiagnostics, ErrorTypeSymbol.UnknownResultType), hasErrors:=True) 2368Return New BoundMyBaseReference(node, If(Me.ContainingType IsNot Nothing, Me.ContainingType.BaseTypeNoUseSiteDiagnostics, ErrorTypeSymbol.UnknownResultType)) 2376Return New BoundMyClassReference(node, If(Me.ContainingType, ErrorTypeSymbol.UnknownResultType), hasErrors:=True) 2380Return New BoundMyClassReference(node, If(Me.ContainingType, ErrorTypeSymbol.UnknownResultType)) 2557Dim containingType = Me.ContainingType 2745If isInstanceMember AndAlso (Not CanAccessMe(implicitReference:=True, errorId:=err) OrElse Not BindSimpleNameIsMemberOfType(leftSymbol, ContainingType)) Then
Binding\Binder_Statements.vb (5)
1001If Me.ContainingType IsNot Nothing AndAlso Me.ContainingType.TypeKind = TYPEKIND.Structure Then 2466ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_NameNotEvent2, node.Name.ToString, Me.ContainingType) 2490If Not IsAccessible(eventField, useSiteInfo, Me.ContainingType) Then 2554If Not TypeSymbol.Equals(fireMethod.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) Then
Binding\Binder_Symbols.vb (1)
714Dim typeWithBaseBeingResolved As NamedTypeSymbol = binder.ContainingType
Binding\BinderFactory.vb (6)
180Debug.Assert(TypeOf containingBinder Is NamedTypeBinder AndAlso containingBinder.ContainingType.IsScriptClass) 181Return New TopLevelCodeBinder(containingBinder.ContainingType.InstanceConstructors.Single(), containingBinder) 540If containingBinder.ContainingType IsNot Nothing Then 542DirectCast(parent, MethodBaseSyntax), _tree, containingBinder.ContainingType) 548If containingBinder.ContainingType IsNot Nothing Then 550DirectCast(parent, MethodBaseSyntax), _tree, containingBinder.ContainingType)
Binding\DocumentationCommentCrefBinder.vb (1)
517CollectOperatorsAndConversionsInType(reference, argCount, Me.ContainingType, symbols, useSiteInfo)
Compilation\SemanticModel.vb (2)
1121Dim containingType As NamedTypeSymbol = binder.ContainingType 1837Dim containingType = binder.ContainingType
Compilation\SyntaxTreeSemanticModel.vb (3)
888Return CheckSymbolLocationsAgainstSyntax(DirectCast(binder.ContainingType, NamedTypeSymbol), declarationSyntax) 907Return CheckSymbolLocationsAgainstSyntax(DirectCast(binder.ContainingType, NamedTypeSymbol), declarationSyntax) 926Return CheckSymbolLocationsAgainstSyntax(DirectCast(binder.ContainingType, NamedTypeSymbol), declarationSyntax)
Lowering\Diagnostics\DiagnosticsPass.vb (1)
140Dim containingType = withBlockBinder.ContainingType