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