68 references to DeclarationKind
Microsoft.CodeAnalysis.VisualBasic (68)
Declarations\Declaration.vb (1)
37
Public MustOverride ReadOnly Property Kind As
DeclarationKind
Declarations\DeclarationTable.vb (4)
232
Private Shared ReadOnly s_isNamespacePredicate As Predicate(Of Declaration) = Function(d) d.Kind =
DeclarationKind
.Namespace
233
Private Shared ReadOnly s_isTypePredicate As Predicate(Of Declaration) = Function(d) d.Kind <>
DeclarationKind
.Namespace
342
If current.Kind =
DeclarationKind
.Namespace Then
364
If includeMember OrElse includeType OrElse childNamespaceOrType.Kind =
DeclarationKind
.Namespace Then
Declarations\DeclarationTreeBuilder.vb (15)
69
If namespaceOrType.Kind =
DeclarationKind
.EventSyntheticDelegate Then
119
kind:=
DeclarationKind
.ImplicitClass,
140
kind:=If(_isSubmission,
DeclarationKind
.Submission,
DeclarationKind
.Script),
184
If decl.Kind =
DeclarationKind
.Namespace Then
750
kind:=
DeclarationKind
.Delegate,
776
kind:=
DeclarationKind
.EventSyntheticDelegate,
789
Public Shared Function GetKind(kind As SyntaxKind) As
DeclarationKind
791
Case SyntaxKind.ClassStatement : Return
DeclarationKind
.Class
792
Case SyntaxKind.InterfaceStatement : Return
DeclarationKind
.Interface
793
Case SyntaxKind.StructureStatement : Return
DeclarationKind
.Structure
794
Case SyntaxKind.NamespaceStatement : Return
DeclarationKind
.Namespace
795
Case SyntaxKind.ModuleStatement : Return
DeclarationKind
.Module
796
Case SyntaxKind.EnumStatement : Return
DeclarationKind
.Enum
798
SyntaxKind.DelegateSubStatement : Return
DeclarationKind
.Delegate
Declarations\MergedNamespaceDeclaration.vb (2)
35
Public Overrides ReadOnly Property Kind As
DeclarationKind
37
Return
DeclarationKind
.Namespace
Declarations\MergedTypeDeclaration.vb (1)
55
Public Overrides ReadOnly Property Kind As
DeclarationKind
Declarations\SingleNamespaceDeclaration.vb (2)
40
Public Overrides ReadOnly Property Kind As
DeclarationKind
42
Return
DeclarationKind
.Namespace
Declarations\SingleTypeDeclaration.vb (5)
17
Private ReadOnly _kind As
DeclarationKind
32
Public Sub New(kind As
DeclarationKind
,
44
Debug.Assert(kind <>
DeclarationKind
.Namespace)
55
Public Overrides ReadOnly Property Kind As
DeclarationKind
120
AndAlso decl1.Kind <>
DeclarationKind
.Enum _
Symbols\Source\ImplicitNamedTypeSymbol.vb (3)
29
Debug.Assert(declaration.Kind =
DeclarationKind
.ImplicitClass OrElse declaration.Kind =
DeclarationKind
.Submission OrElse declaration.Kind =
DeclarationKind
.Script)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (24)
146
Case
DeclarationKind
.Class
154
Case
DeclarationKind
.Script,
DeclarationKind
.ImplicitClass
157
Case
DeclarationKind
.Submission
160
Case
DeclarationKind
.Structure
163
Case
DeclarationKind
.Interface
166
Case
DeclarationKind
.Enum
169
Case
DeclarationKind
.Delegate,
170
DeclarationKind
.EventSyntheticDelegate
173
Case
DeclarationKind
.Module
232
Case
DeclarationKind
.ImplicitClass,
233
DeclarationKind
.Script,
234
DeclarationKind
.Submission
268
If declaration.Kind =
DeclarationKind
.Delegate Then
271
ElseIf declaration.Kind =
DeclarationKind
.EventSyntheticDelegate Then
1296
Return kind =
DeclarationKind
.Script OrElse kind =
DeclarationKind
.Submission
1302
Return _declaration.Declarations(0).Kind =
DeclarationKind
.ImplicitClass
1315
Friend ReadOnly Property DeclarationKind As
DeclarationKind
1435
Dim childDeclKind As
DeclarationKind
= DeclarationTreeBuilder.GetKind(declarationSyntax.Kind)
1448
Dim childDeclKind As
DeclarationKind
= DeclarationTreeBuilder.GetKind(declarationSyntax.Kind)
1461
Dim childDeclKind As
DeclarationKind
= VisualBasic.Symbols.
DeclarationKind
.Delegate
1469
childDeclKind As
DeclarationKind
,
Symbols\Source\SourceMemberFieldSymbol.vb (2)
440
Case
DeclarationKind
.Structure
452
Case
DeclarationKind
.Module
Symbols\Source\SourceNamedTypeSymbol.vb (8)
329
Case VisualBasic.Symbols.
DeclarationKind
.Module
335
Case VisualBasic.Symbols.
DeclarationKind
.Interface
340
Case VisualBasic.Symbols.
DeclarationKind
.Class
342
Case VisualBasic.Symbols.
DeclarationKind
.Delegate
344
Case VisualBasic.Symbols.
DeclarationKind
.Structure
346
Case VisualBasic.Symbols.
DeclarationKind
.Enum
348
Case VisualBasic.Symbols.
DeclarationKind
.Interface
393
(Not isNested OrElse containingType.DeclarationKind <> VisualBasic.Symbols.
DeclarationKind
.Class) Then
Symbols\Source\SourceNamespaceSymbol.vb (1)
259
If childDecl.Kind =
DeclarationKind
.Module Then