68 references to PossibleDeclarationTypes
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (68)
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
SyntaxTreeExtensions.vb (1)
237Return modifierFacts.CouldApplyToOneOf(PossibleDeclarationTypes.Field)