-
Notifications
You must be signed in to change notification settings - Fork 4k
/
DeclarationKind.cs
66 lines (59 loc) · 1.67 KB
/
DeclarationKind.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel;
#if CODE_STYLE
namespace Microsoft.CodeAnalysis.Internal.Editing
#else
namespace Microsoft.CodeAnalysis.Editing
#endif
{
/// <devdocs>
/// This should contain only language-agnostic declarations. Things like record struct should fall under struct, etc.
/// </devdocs>
public enum DeclarationKind
{
None,
CompilationUnit,
/// <summary>
/// Represents a class declaration, including record class declarations in C#.
/// </summary>
Class,
/// <summary>
/// Represents a struct declaration, including record struct declarations in C#.
/// </summary>
Struct,
Interface,
Enum,
Delegate,
Method,
Operator,
ConversionOperator,
Constructor,
Destructor,
Field,
Property,
Indexer,
EnumMember,
Event,
CustomEvent,
Namespace,
NamespaceImport,
Parameter,
Variable,
Attribute,
LambdaExpression,
GetAccessor,
/// <summary>
/// Represents set accessor declaration of a property, including init accessors in C#.
/// </summary>
SetAccessor,
AddAccessor,
RemoveAccessor,
RaiseAccessor,
[Obsolete($"This value is not used. Use {nameof(Class)} instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
RecordClass,
}
}