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