-
Notifications
You must be signed in to change notification settings - Fork 4k
/
MethodKind.cs
117 lines (97 loc) · 2.87 KB
/
MethodKind.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// 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 Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Enumeration for possible kinds of method symbols.
/// </summary>
public enum MethodKind
{
/// <summary>
/// An anonymous method or lambda expression
/// </summary>
AnonymousFunction = 0,
/// <summary>
/// <inheritdoc cref="AnonymousFunction"/>
/// </summary>
LambdaMethod = 0, // VB term
/// <summary>
/// Method is a constructor.
/// </summary>
Constructor = 1,
/// <summary>
/// Method is a conversion.
/// </summary>
Conversion = 2,
/// <summary>
/// Method is a delegate invoke.
/// </summary>
DelegateInvoke = 3,
/// <summary>
/// Method is a destructor.
/// </summary>
Destructor = 4,
/// <summary>
/// Method is an event add.
/// </summary>
EventAdd = 5,
/// <summary>
/// Method is an event raise.
/// </summary>
EventRaise = 6,
/// <summary>
/// Method is an event remove.
/// </summary>
EventRemove = 7,
/// <summary>
/// Method is an explicit interface implementation.
/// </summary>
ExplicitInterfaceImplementation = 8,
/// <summary>
/// Method is an operator.
/// </summary>
UserDefinedOperator = 9,
/// <summary>
/// Method is an ordinary method.
/// </summary>
Ordinary = 10,
/// <summary>
/// Method is a property get.
/// </summary>
PropertyGet = 11,
/// <summary>
/// Method is a property set.
/// </summary>
PropertySet = 12,
/// <summary>
/// An extension method with the "this" parameter removed.
/// </summary>
ReducedExtension = 13,
/// <summary>
/// Method is a static constructor.
/// </summary>
StaticConstructor = 14,
/// <summary>
/// <inheritdoc cref="StaticConstructor"/>
/// </summary>
SharedConstructor = 14, // VB Term
/// <summary>
/// A built-in operator.
/// </summary>
BuiltinOperator = 15,
/// <summary>
/// Declare Sub or Function.
/// </summary>
DeclareMethod = 16,
/// <summary>
/// Method is declared inside of another method.
/// </summary>
LocalFunction = 17,
/// <summary>
/// Method represents the signature of a function pointer type.
/// </summary>
FunctionPointerSignature = 18,
}
}