41 references to DeclarationKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (41)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (41)
50var declarationKind = GetDeclarationKind(declaration); 51return declarationKind is DeclarationKind.Field or DeclarationKind.Event; 153public static DeclarationKind GetDeclarationKind(SyntaxNode declaration) 159return DeclarationKind.Class; 162return DeclarationKind.Struct; 164return DeclarationKind.Interface; 166return DeclarationKind.Enum; 168return DeclarationKind.Delegate; 171return DeclarationKind.Method; 173return DeclarationKind.Operator; 175return DeclarationKind.ConversionOperator; 177return DeclarationKind.Constructor; 179return DeclarationKind.Destructor; 182return DeclarationKind.Property; 184return DeclarationKind.Indexer; 186return DeclarationKind.CustomEvent; 188return DeclarationKind.EnumMember; 190return DeclarationKind.CompilationUnit; 193return DeclarationKind.Namespace; 195return DeclarationKind.NamespaceImport; 197return DeclarationKind.Parameter; 201return DeclarationKind.LambdaExpression; 208return DeclarationKind.Field; 212return DeclarationKind.None; 220return DeclarationKind.Event; 224return DeclarationKind.None; 232return DeclarationKind.Variable; 236return DeclarationKind.None; 245return DeclarationKind.Variable; 249return DeclarationKind.None; 262return DeclarationKind.Field; 266return DeclarationKind.Event; 270return DeclarationKind.Variable; 281return DeclarationKind.Attribute; 289return DeclarationKind.Attribute; 295return DeclarationKind.GetAccessor; 298return DeclarationKind.SetAccessor; 300return DeclarationKind.AddAccessor; 302return DeclarationKind.RemoveAccessor; 305return DeclarationKind.None;