Files
2026-08-27 10:56:38 -06:00

259 lines
7.8 KiB
C#

using System;
namespace Microsoft.CodeAnalysis.CSharp;
[Flags]
internal enum UnaryOperatorKind
{
TypeMask = 0xFF,
SByte = 1,
Byte = 2,
Short = 3,
UShort = 4,
Int = 5,
UInt = 6,
Long = 7,
ULong = 8,
NInt = 9,
NUInt = 0xA,
Char = 0xB,
Float = 0xC,
Double = 0xD,
Decimal = 0xE,
Bool = 0xF,
_Object = 0x10,
_String = 0x11,
_StringAndObject = 0x12,
_ObjectAndString = 0x13,
Enum = 0x14,
_EnumAndUnderlying = 0x15,
_UnderlyingAndEnum = 0x16,
_Delegate = 0x17,
Pointer = 0x18,
_PointerAndInt = 0x19,
_PointerAndUInt = 0x20,
_PointerAndLong = 0x21,
_PointerAndULong = 0x22,
_IntAndPointer = 0x23,
_UIntAndPointer = 0x24,
_LongAndPointer = 0x25,
_ULongAndPointer = 0x26,
_NullableNull = 0x27,
UserDefined = 0x28,
Dynamic = 0x29,
_Utf8 = 0x2A,
OpMask = 0xFF00,
PostfixIncrement = 0x1000,
PostfixDecrement = 0x1100,
PrefixIncrement = 0x1200,
PrefixDecrement = 0x1300,
UnaryPlus = 0x1400,
UnaryMinus = 0x1500,
LogicalNegation = 0x1600,
BitwiseComplement = 0x1700,
True = 0x1800,
False = 0x1900,
Lifted = 0x10000,
_Logical = 0x20000,
Checked = 0x40000,
Error = 0,
SBytePostfixIncrement = 0x1001,
BytePostfixIncrement = 0x1002,
ShortPostfixIncrement = 0x1003,
UShortPostfixIncrement = 0x1004,
IntPostfixIncrement = 0x1005,
UIntPostfixIncrement = 0x1006,
LongPostfixIncrement = 0x1007,
ULongPostfixIncrement = 0x1008,
NIntPostfixIncrement = 0x1009,
NUIntPostfixIncrement = 0x100A,
CharPostfixIncrement = 0x100B,
FloatPostfixIncrement = 0x100C,
DoublePostfixIncrement = 0x100D,
DecimalPostfixIncrement = 0x100E,
EnumPostfixIncrement = 0x1014,
UserDefinedPostfixIncrement = 0x1028,
LiftedSBytePostfixIncrement = 0x11001,
LiftedBytePostfixIncrement = 0x11002,
LiftedShortPostfixIncrement = 0x11003,
LiftedUShortPostfixIncrement = 0x11004,
LiftedIntPostfixIncrement = 0x11005,
LiftedUIntPostfixIncrement = 0x11006,
LiftedLongPostfixIncrement = 0x11007,
LiftedULongPostfixIncrement = 0x11008,
LiftedNIntPostfixIncrement = 0x11009,
LiftedNUIntPostfixIncrement = 0x1100A,
LiftedCharPostfixIncrement = 0x1100B,
LiftedFloatPostfixIncrement = 0x1100C,
LiftedDoublePostfixIncrement = 0x1100D,
LiftedDecimalPostfixIncrement = 0x1100E,
LiftedEnumPostfixIncrement = 0x11014,
LiftedUserDefinedPostfixIncrement = 0x11028,
PointerPostfixIncrement = 0x1018,
DynamicPostfixIncrement = 0x1029,
SBytePrefixIncrement = 0x1201,
BytePrefixIncrement = 0x1202,
ShortPrefixIncrement = 0x1203,
UShortPrefixIncrement = 0x1204,
IntPrefixIncrement = 0x1205,
UIntPrefixIncrement = 0x1206,
LongPrefixIncrement = 0x1207,
ULongPrefixIncrement = 0x1208,
NIntPrefixIncrement = 0x1209,
NUIntPrefixIncrement = 0x120A,
CharPrefixIncrement = 0x120B,
FloatPrefixIncrement = 0x120C,
DoublePrefixIncrement = 0x120D,
DecimalPrefixIncrement = 0x120E,
EnumPrefixIncrement = 0x1214,
UserDefinedPrefixIncrement = 0x1228,
LiftedSBytePrefixIncrement = 0x11201,
LiftedBytePrefixIncrement = 0x11202,
LiftedShortPrefixIncrement = 0x11203,
LiftedUShortPrefixIncrement = 0x11204,
LiftedIntPrefixIncrement = 0x11205,
LiftedUIntPrefixIncrement = 0x11206,
LiftedLongPrefixIncrement = 0x11207,
LiftedULongPrefixIncrement = 0x11208,
LiftedNIntPrefixIncrement = 0x11209,
LiftedNUIntPrefixIncrement = 0x1120A,
LiftedCharPrefixIncrement = 0x1120B,
LiftedFloatPrefixIncrement = 0x1120C,
LiftedDoublePrefixIncrement = 0x1120D,
LiftedDecimalPrefixIncrement = 0x1120E,
LiftedEnumPrefixIncrement = 0x11214,
LiftedUserDefinedPrefixIncrement = 0x11228,
PointerPrefixIncrement = 0x1218,
DynamicPrefixIncrement = 0x1229,
SBytePostfixDecrement = 0x1101,
BytePostfixDecrement = 0x1102,
ShortPostfixDecrement = 0x1103,
UShortPostfixDecrement = 0x1104,
IntPostfixDecrement = 0x1105,
UIntPostfixDecrement = 0x1106,
LongPostfixDecrement = 0x1107,
ULongPostfixDecrement = 0x1108,
NIntPostfixDecrement = 0x1109,
NUIntPostfixDecrement = 0x110A,
CharPostfixDecrement = 0x110B,
FloatPostfixDecrement = 0x110C,
DoublePostfixDecrement = 0x110D,
DecimalPostfixDecrement = 0x110E,
EnumPostfixDecrement = 0x1114,
UserDefinedPostfixDecrement = 0x1128,
LiftedSBytePostfixDecrement = 0x11101,
LiftedBytePostfixDecrement = 0x11102,
LiftedShortPostfixDecrement = 0x11103,
LiftedUShortPostfixDecrement = 0x11104,
LiftedIntPostfixDecrement = 0x11105,
LiftedUIntPostfixDecrement = 0x11106,
LiftedLongPostfixDecrement = 0x11107,
LiftedULongPostfixDecrement = 0x11108,
LiftedNIntPostfixDecrement = 0x11109,
LiftedNUIntPostfixDecrement = 0x1110A,
LiftedCharPostfixDecrement = 0x1110B,
LiftedFloatPostfixDecrement = 0x1110C,
LiftedDoublePostfixDecrement = 0x1110D,
LiftedDecimalPostfixDecrement = 0x1110E,
LiftedEnumPostfixDecrement = 0x11114,
LiftedUserDefinedPostfixDecrement = 0x11128,
PointerPostfixDecrement = 0x1118,
DynamicPostfixDecrement = 0x1129,
SBytePrefixDecrement = 0x1301,
BytePrefixDecrement = 0x1302,
ShortPrefixDecrement = 0x1303,
UShortPrefixDecrement = 0x1304,
IntPrefixDecrement = 0x1305,
UIntPrefixDecrement = 0x1306,
LongPrefixDecrement = 0x1307,
ULongPrefixDecrement = 0x1308,
NIntPrefixDecrement = 0x1309,
NUIntPrefixDecrement = 0x130A,
CharPrefixDecrement = 0x130B,
FloatPrefixDecrement = 0x130C,
DoublePrefixDecrement = 0x130D,
DecimalPrefixDecrement = 0x130E,
EnumPrefixDecrement = 0x1314,
UserDefinedPrefixDecrement = 0x1328,
LiftedSBytePrefixDecrement = 0x11301,
LiftedBytePrefixDecrement = 0x11302,
LiftedShortPrefixDecrement = 0x11303,
LiftedUShortPrefixDecrement = 0x11304,
LiftedIntPrefixDecrement = 0x11305,
LiftedUIntPrefixDecrement = 0x11306,
LiftedLongPrefixDecrement = 0x11307,
LiftedULongPrefixDecrement = 0x11308,
LiftedNIntPrefixDecrement = 0x11309,
LiftedNUIntPrefixDecrement = 0x1130A,
LiftedCharPrefixDecrement = 0x1130B,
LiftedFloatPrefixDecrement = 0x1130C,
LiftedDoublePrefixDecrement = 0x1130D,
LiftedDecimalPrefixDecrement = 0x1130E,
LiftedEnumPrefixDecrement = 0x11314,
LiftedUserDefinedPrefixDecrement = 0x11328,
PointerPrefixDecrement = 0x1318,
DynamicPrefixDecrement = 0x1329,
IntUnaryPlus = 0x1405,
UIntUnaryPlus = 0x1406,
LongUnaryPlus = 0x1407,
ULongUnaryPlus = 0x1408,
NIntUnaryPlus = 0x1409,
NUIntUnaryPlus = 0x140A,
FloatUnaryPlus = 0x140C,
DoubleUnaryPlus = 0x140D,
DecimalUnaryPlus = 0x140E,
UserDefinedUnaryPlus = 0x1428,
LiftedIntUnaryPlus = 0x11405,
LiftedUIntUnaryPlus = 0x11406,
LiftedLongUnaryPlus = 0x11407,
LiftedULongUnaryPlus = 0x11408,
LiftedNIntUnaryPlus = 0x11409,
LiftedNUIntUnaryPlus = 0x1140A,
LiftedFloatUnaryPlus = 0x1140C,
LiftedDoubleUnaryPlus = 0x1140D,
LiftedDecimalUnaryPlus = 0x1140E,
LiftedUserDefinedUnaryPlus = 0x11428,
DynamicUnaryPlus = 0x1429,
IntUnaryMinus = 0x1505,
LongUnaryMinus = 0x1507,
NIntUnaryMinus = 0x1509,
FloatUnaryMinus = 0x150C,
DoubleUnaryMinus = 0x150D,
DecimalUnaryMinus = 0x150E,
UserDefinedUnaryMinus = 0x1528,
LiftedIntUnaryMinus = 0x11505,
LiftedLongUnaryMinus = 0x11507,
LiftedNIntUnaryMinus = 0x11509,
LiftedFloatUnaryMinus = 0x1150C,
LiftedDoubleUnaryMinus = 0x1150D,
LiftedDecimalUnaryMinus = 0x1150E,
LiftedUserDefinedUnaryMinus = 0x11528,
DynamicUnaryMinus = 0x1529,
BoolLogicalNegation = 0x160F,
UserDefinedLogicalNegation = 0x1628,
LiftedBoolLogicalNegation = 0x1160F,
LiftedUserDefinedLogicalNegation = 0x11628,
DynamicLogicalNegation = 0x1629,
IntBitwiseComplement = 0x1705,
UIntBitwiseComplement = 0x1706,
LongBitwiseComplement = 0x1707,
ULongBitwiseComplement = 0x1708,
NIntBitwiseComplement = 0x1709,
NUIntBitwiseComplement = 0x170A,
EnumBitwiseComplement = 0x1714,
UserDefinedBitwiseComplement = 0x1728,
LiftedIntBitwiseComplement = 0x11705,
LiftedUIntBitwiseComplement = 0x11706,
LiftedLongBitwiseComplement = 0x11707,
LiftedULongBitwiseComplement = 0x11708,
LiftedNIntBitwiseComplement = 0x11709,
LiftedNUIntBitwiseComplement = 0x1170A,
LiftedEnumBitwiseComplement = 0x11714,
LiftedUserDefinedBitwiseComplement = 0x11728,
DynamicBitwiseComplement = 0x1729,
UserDefinedTrue = 0x1828,
UserDefinedFalse = 0x1928,
DynamicTrue = 0x1829,
DynamicFalse = 0x1929
}