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