-
Notifications
You must be signed in to change notification settings - Fork 4k
/
BinaryOperatorKind.cs
144 lines (117 loc) · 3.88 KB
/
BinaryOperatorKind.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// 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.
namespace Microsoft.CodeAnalysis.Operations
{
/// <summary>
/// Kind of binary operator.
/// </summary>
public enum BinaryOperatorKind
{
/// <summary>
/// Represents unknown or error operator kind.
/// </summary>
None = 0x0,
/// <summary>
/// Represents the '+' operator.
/// </summary>
Add = 0x1,
/// <summary>
/// Represents the '-' operator.
/// </summary>
Subtract = 0x2,
/// <summary>
/// Represents the '*' operator.
/// </summary>
Multiply = 0x3,
/// <summary>
/// Represents the '/' operator.
/// </summary>
Divide = 0x4,
/// <summary>
/// Represents the VB '\' integer divide operator.
/// </summary>
IntegerDivide = 0x5,
/// <summary>
/// Represents the C# '%' operator and VB 'Mod' operator.
/// </summary>
Remainder = 0x6,
/// <summary>
/// Represents the VB '^' exponentiation operator.
/// </summary>
Power = 0x7,
/// <summary>
/// Represents the <![CDATA['<<']]> operator.
/// </summary>
LeftShift = 0x8,
/// <summary>
/// Represents the <![CDATA['>>']]> operator.
/// </summary>
RightShift = 0x9,
/// <summary>
/// Represents the C# <![CDATA['&']]> operator and VB 'And' operator.
/// </summary>
And = 0xa,
/// <summary>
/// Represents the C# <![CDATA['|']]> operator and VB 'Or' operator.
/// </summary>
Or = 0xb,
/// <summary>
/// Represents the C# '^' operator and VB 'Xor' operator.
/// </summary>
ExclusiveOr = 0xc,
/// <summary>
/// Represents the C# <![CDATA['&&']]> operator and VB 'AndAlso' operator.
/// </summary>
ConditionalAnd = 0xd,
/// <summary>
/// Represents the C# <![CDATA['||']]> operator and VB 'OrElse' operator.
/// </summary>
ConditionalOr = 0xe,
/// <summary>
/// Represents the VB <![CDATA['&']]> operator for string concatenation.
/// </summary>
Concatenate = 0xf,
// Relational operations.
/// <summary>
/// Represents the C# '==' operator and VB 'Is' operator and '=' operator for non-object typed operands.
/// </summary>
Equals = 0x10,
/// <summary>
/// Represents the VB '=' operator for object typed operands.
/// </summary>
ObjectValueEquals = 0x11,
/// <summary>
/// Represents the C# '!=' operator and VB 'IsNot' operator and <![CDATA['<>']]> operator for non-object typed operands.
/// </summary>
NotEquals = 0x12,
/// <summary>
/// Represents the VB <![CDATA['<>']]> operator for object typed operands.
/// </summary>
ObjectValueNotEquals = 0x13,
/// <summary>
/// Represents the <![CDATA['<']]> operator.
/// </summary>
LessThan = 0x14,
/// <summary>
/// Represents the <![CDATA['<=']]> operator.
/// </summary>
LessThanOrEqual = 0x15,
/// <summary>
/// Represents the <![CDATA['>=']]> operator.
/// </summary>
GreaterThanOrEqual = 0x16,
/// <summary>
/// Represents the <![CDATA['>']]> operator.
/// </summary>
GreaterThan = 0x17,
/// <summary>
/// Represents the VB 'Like' operator.
/// </summary>
Like = 0x18,
/// <summary>
/// Represents the <![CDATA['>>>']]> operator.
/// </summary>
UnsignedRightShift = 0x19,
}
}