106 references to PossibleDeclarationTypes
Microsoft.CodeAnalysis.VisualBasic.Features (38)
Completion\KeywordRecommenders\Declarations\ClassKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Class) Then
Completion\KeywordRecommenders\Declarations\CustomEventKeywordRecommender.vb (1)
25If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Event) AndAlso
Completion\KeywordRecommenders\Declarations\DeclareKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.ExternalMethod) Then
Completion\KeywordRecommenders\Declarations\DelegateKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Delegate) Then
Completion\KeywordRecommenders\Declarations\DimKeywordRecommender.vb (1)
31If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Field) AndAlso
Completion\KeywordRecommenders\Declarations\EnumKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Enum) Then
Completion\KeywordRecommenders\Declarations\EventKeywordRecommender.vb (1)
25If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Event) Then
Completion\KeywordRecommenders\Declarations\FunctionKeywordRecommender.vb (2)
28If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Method Or PossibleDeclarationTypes.IteratorFunction) Then
Completion\KeywordRecommenders\Declarations\GetSetKeywordRecommender.vb (1)
22If Not modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Accessor) Then
Completion\KeywordRecommenders\Declarations\InterfaceKeywordRecommender.vb (1)
25If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Interface) Then
Completion\KeywordRecommenders\Declarations\IteratorKeywordRecommender.vb (2)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.IteratorFunction Or PossibleDeclarationTypes.IteratorProperty) AndAlso
Completion\KeywordRecommenders\Declarations\ModifierKeywordsRecommender.vb (18)
50If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.ProtectedMember) Then 70If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Class) AndAlso 83If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Field) Then 88If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Property) OrElse modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Field) Then 92If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Property) Then 103If modifierFacts.InheritenceKeyword.Kind = SyntaxKind.None AndAlso modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Class) Then 114If modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.OverridableMethod) Then 129modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Method Or PossibleDeclarationTypes.Property) AndAlso 138modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Method Or PossibleDeclarationTypes.Property Or PossibleDeclarationTypes.Operator) Then 145modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Property Or PossibleDeclarationTypes.Method Or PossibleDeclarationTypes.Operator) Then 150modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Property) AndAlso 155If modifierFacts.NarrowingOrWideningKeyword.Kind = SyntaxKind.None AndAlso modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Operator) Then
Completion\KeywordRecommenders\Declarations\ModuleKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Module) Then
Completion\KeywordRecommenders\Declarations\NamespaceKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Class) Then
Completion\KeywordRecommenders\Declarations\OperatorKeywordRecommender.vb (1)
22modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Operator) Then
Completion\KeywordRecommenders\Declarations\PropertyKeywordRecommender.vb (2)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Property Or PossibleDeclarationTypes.IteratorProperty) Then
Completion\KeywordRecommenders\Declarations\StructureKeywordRecommender.vb (1)
24If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Structure) Then
Completion\KeywordRecommenders\Declarations\SubKeywordRecommender.vb (1)
21If modifiers.CouldApplyToOneOf(PossibleDeclarationTypes.Method) AndAlso
Microsoft.CodeAnalysis.VisualBasic.Workspaces (68)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
237Return modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Field)
ModifierCollectionFacts.vb (67)
30Private ReadOnly _declarationTypes As PossibleDeclarationTypes 40Dim defaultMethodFlags = PossibleDeclarationTypes.Method Or PossibleDeclarationTypes.ProtectedMember Or PossibleDeclarationTypes.OverridableMethod 41Dim defaultPropertyFlags = PossibleDeclarationTypes.Property Or PossibleDeclarationTypes.ProtectedMember Or PossibleDeclarationTypes.OverridableMethod 60_declarationTypes = _declarationTypes And Not PossibleDeclarationTypes.Operator 71_declarationTypes = _declarationTypes And Not PossibleDeclarationTypes.AllTypes 75_declarationTypes = _declarationTypes And Not PossibleDeclarationTypes.Operator 86_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Method 99PossibleDeclarationTypes.IteratorFunction Or 100PossibleDeclarationTypes.IteratorProperty) 107_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Class 112_declarationTypes = _declarationTypes And (PossibleDeclarationTypes.Event Or 113PossibleDeclarationTypes.Field Or 114PossibleDeclarationTypes.Method Or 115PossibleDeclarationTypes.Property Or 116PossibleDeclarationTypes.Operator Or 117PossibleDeclarationTypes.IteratorFunction Or 118PossibleDeclarationTypes.IteratorProperty) 122_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Operator 127PossibleDeclarationTypes.Field Or 128PossibleDeclarationTypes.IteratorProperty) 133_declarationTypes = _declarationTypes And Not (PossibleDeclarationTypes.IteratorFunction Or 134PossibleDeclarationTypes.IteratorProperty) 138_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Field 143PossibleDeclarationTypes.IteratorProperty) 149PossibleDeclarationTypes.ExternalMethod Or 150PossibleDeclarationTypes.Operator) 154_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Field 158_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Event 162_declarationTypes = _declarationTypes And (PossibleDeclarationTypes.Property Or 163PossibleDeclarationTypes.Method Or 164PossibleDeclarationTypes.OverridableMethod Or 165PossibleDeclarationTypes.Delegate Or 166PossibleDeclarationTypes.Event Or 167PossibleDeclarationTypes.IteratorFunction Or 168PossibleDeclarationTypes.IteratorProperty) 172_declarationTypes = _declarationTypes And (PossibleDeclarationTypes.Method Or 173PossibleDeclarationTypes.Class Or 174PossibleDeclarationTypes.Structure Or 175PossibleDeclarationTypes.Interface Or 176PossibleDeclarationTypes.Module) 180_declarationTypes = _declarationTypes And PossibleDeclarationTypes.Field 186PossibleDeclarationTypes.IteratorFunction Or 187PossibleDeclarationTypes.IteratorProperty) 203PossibleDeclarationTypes.IteratorFunction Or 204PossibleDeclarationTypes.IteratorProperty) 214Public Function CouldApplyToOneOf(declarationTypes As PossibleDeclarationTypes) As Boolean 302Private Shared Function ComputeAllowableDeclarationTypes(syntaxTree As SyntaxTree, position As Integer, token As SyntaxToken, cancellationToken As CancellationToken) As PossibleDeclarationTypes 303Dim declarationTypes As PossibleDeclarationTypes 307PossibleDeclarationTypes.Event Or 308PossibleDeclarationTypes.ExternalMethod Or 309PossibleDeclarationTypes.Field Or 310PossibleDeclarationTypes.Method Or 311PossibleDeclarationTypes.Operator Or 312PossibleDeclarationTypes.Property Or 313PossibleDeclarationTypes.Accessor Or 314PossibleDeclarationTypes.IteratorFunction Or 315PossibleDeclarationTypes.IteratorProperty 319PossibleDeclarationTypes.ProtectedMember Or 320PossibleDeclarationTypes.OverridableMethod 326PossibleDeclarationTypes.Event Or 327PossibleDeclarationTypes.Method Or 328PossibleDeclarationTypes.Property 332declarationTypes = declarationTypes Or PossibleDeclarationTypes.AllTypes