#![allow(clippy::match_same_arms, clippy::too_many_lines)]
#![allow(missing_docs)]
use num_derive::FromPrimitive;
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Csharp {
End = 0,
IdentifierToken = 1,
Extern = 2,
Alias = 3,
SEMI = 4,
Global = 5,
Using = 6,
Unsafe = 7,
EQ = 8,
Static = 9,
LBRACK = 10,
Assembly = 11,
Module = 12,
COLON = 13,
COMMA = 14,
RBRACK = 15,
LPAREN = 16,
RPAREN = 17,
Field = 18,
Event = 19,
Method = 20,
Param = 21,
Property = 22,
Return = 23,
Type = 24,
Typevar = 25,
Namespace = 26,
Class = 27,
Ref = 28,
Struct = 29,
Enum = 30,
LBRACE = 31,
RBRACE = 32,
Interface = 33,
Delegate = 34,
Record = 35,
Abstract = 36,
Async = 37,
Const = 38,
File = 39,
Fixed = 40,
Internal = 41,
New = 42,
Override = 43,
Partial = 44,
Private = 45,
Protected = 46,
Public = 47,
Readonly = 48,
Required = 49,
Sealed = 50,
Virtual = 51,
Volatile = 52,
LT = 53,
GT = 54,
In = 55,
Out = 56,
Where = 57,
QMARK = 58,
Notnull = 59,
Unmanaged = 60,
Operator = 61,
Checked = 62,
BANG = 63,
TILDE = 64,
PLUSPLUS = 65,
DASHDASH = 66,
True = 67,
False = 68,
PLUS = 69,
DASH = 70,
STAR = 71,
SLASH = 72,
PERCENT = 73,
CARET = 74,
PIPE = 75,
AMP = 76,
LTLT = 77,
GTGT = 78,
GTGTGT = 79,
EQEQ = 80,
BANGEQ = 81,
GTEQ = 82,
LTEQ = 83,
Implicit = 84,
Explicit = 85,
Get = 86,
Set = 87,
Add = 88,
Remove = 89,
Init = 90,
This = 91,
DOT = 92,
Scoped = 93,
Params = 94,
Base = 95,
EQGT = 96,
COLONCOLON = 97,
Var = 98,
Managed = 99,
Cdecl = 100,
Stdcall = 101,
Thiscall = 102,
Fastcall = 103,
PredefinedType = 104,
Break = 105,
Unchecked = 106,
Continue = 107,
Do = 108,
While = 109,
For = 110,
Lock = 111,
Yield = 112,
Switch = 113,
Case = 114,
Default = 115,
Throw = 116,
Try = 117,
Catch = 118,
When = 119,
Finally = 120,
Await = 121,
Foreach = 122,
Goto = 123,
If = 124,
Else = 125,
Discard = 126,
DOTDOT = 127,
Not = 128,
And = 129,
Or = 130,
PLUSEQ = 131,
DASHEQ = 132,
STAREQ = 133,
SLASHEQ = 134,
PERCENTEQ = 135,
AMPEQ = 136,
CARETEQ = 137,
PIPEEQ = 138,
LTLTEQ = 139,
GTGTEQ = 140,
GTGTGTEQ = 141,
QMARKQMARKEQ = 142,
AMPAMP = 143,
PIPEPIPE = 144,
QMARKQMARK = 145,
From = 146,
Into = 147,
Join = 148,
On = 149,
Equals = 150,
Let = 151,
Orderby = 152,
Ascending = 153,
Descending = 154,
Group = 155,
By = 156,
Select = 157,
As = 158,
Is = 159,
InterpolationFormatClauseToken1 = 160,
DASHGT = 161,
Stackalloc = 162,
With = 163,
Sizeof = 164,
Typeof = 165,
Makeref = 166,
Reftype = 167,
Refvalue = 168,
NullLiteral = 169,
SQUOTE = 170,
CharacterLiteralContent = 171,
IntegerLiteral = 172,
RealLiteral = 173,
DQUOTE = 174,
StringLiteralContent = 175,
EscapeSequence = 176,
StringLiteralEncoding = 177,
VerbatimStringLiteral = 178,
RawStringLiteralToken1 = 179,
HASHif = 180,
PreprocIfToken2 = 181,
HASHendif = 182,
HASHelse = 183,
HASHelif = 184,
PreprocArg = 185,
HASHregion = 186,
HASHendregion = 187,
HASHline = 188,
Hidden = 189,
HASHpragma = 190,
Warning = 191,
Disable = 192,
Restore = 193,
Checksum = 194,
HASHnullable = 195,
Enable = 196,
Annotations = 197,
Warnings = 198,
HASHerror = 199,
HASHwarning = 200,
HASHdefine = 201,
HASHundef = 202,
ShebangDirective = 203,
Comment = 204,
OptionalSemi = 205,
InterpolationStart = 206,
InterpolationStart2 = 207,
InterpolationStart3 = 208,
DQUOTE2 = 209,
DQUOTE3 = 210,
InterpolationBrace = 211,
InterpolationBrace2 = 212,
StringContent = 213,
RawStringStart = 214,
RawStringEnd = 215,
RawStringContent = 216,
CompilationUnit = 217,
TopLevelItem = 218,
GlobalStatement = 219,
ExternAliasDirective = 220,
UsingDirective = 221,
GlobalAttribute = 222,
Attribute = 223,
AttributeArgumentList = 224,
AttributeArgument = 225,
AttributeList = 226,
AttributeList2 = 227,
AttributeTargetSpecifier = 228,
NamespaceDeclaration = 229,
FileScopedNamespaceDeclaration = 230,
TypeDeclaration = 231,
ClassDeclaration = 232,
ClassDeclarationInitializer = 233,
StructDeclaration = 234,
StructDeclarationInitializer = 235,
EnumDeclaration = 236,
EnumDeclarationInitializer = 237,
EnumMemberDeclarationList = 238,
EnumMemberDeclaration = 239,
InterfaceDeclaration = 240,
InterfaceDeclarationInitializer = 241,
DelegateDeclaration = 242,
DelegateDeclarationInitializer = 243,
RecordDeclaration = 244,
RecordDeclarationInitializer = 245,
BaseList = 246,
DeclarationListBody = 247,
PrimaryConstructorBaseType = 248,
Modifier = 249,
TypeParameterList = 250,
TypeParameter = 251,
BaseList2 = 252,
TypeParameterConstraintsClause = 253,
TypeParameterConstraint = 254,
ConstructorConstraint = 255,
OperatorDeclaration = 256,
ConversionOperatorDeclaration = 257,
DeclarationList = 258,
Declaration = 259,
FieldDeclaration = 260,
ConstructorDeclaration = 261,
ConstructorDeclarationInitializer = 262,
DestructorDeclaration = 263,
MethodDeclaration = 264,
EventDeclaration = 265,
EventFieldDeclaration = 266,
AccessorList = 267,
AccessorDeclaration = 268,
IndexerDeclaration = 269,
BracketedParameterList = 270,
PropertyDeclaration = 271,
ExplicitInterfaceSpecifier = 272,
ParameterList = 273,
Parameter = 274,
ParameterArray = 275,
ConstructorInitializer = 276,
ArgumentList = 277,
TuplePattern = 278,
Argument = 279,
Block = 280,
ArrowExpressionClause = 281,
FunctionBody = 282,
VariableDeclaration = 283,
VariableDeclaration2 = 284,
VariableDeclarator = 285,
VariableDeclarator2 = 286,
BracketedArgumentList = 287,
Name = 288,
AliasQualifiedName = 289,
SimpleName = 290,
QualifiedName = 291,
GenericName = 292,
TypeArgumentList = 293,
Type2 = 294,
ImplicitType = 295,
ArrayType = 296,
ArrayBaseType = 297,
ArrayRankSpecifier = 298,
NullableType = 299,
PointerType = 300,
PointerBaseType = 301,
FunctionPointerType = 302,
CallingConvention = 303,
FunctionPointerParameter = 304,
RefType = 305,
RefBaseType = 306,
ScopedType = 307,
ScopedBaseType = 308,
TupleType = 309,
TupleElement = 310,
Statement = 311,
BreakStatement = 312,
CheckedStatement = 313,
ContinueStatement = 314,
DoStatement = 315,
EmptyStatement = 316,
ExpressionStatement = 317,
FixedStatement = 318,
ForStatement = 319,
ForStatementConditions = 320,
ReturnStatement = 321,
LockStatement = 322,
YieldStatement = 323,
SwitchStatement = 324,
SwitchBody = 325,
SwitchSection = 326,
ThrowStatement = 327,
TryStatement = 328,
CatchClause = 329,
CatchDeclaration = 330,
CatchFilterClause = 331,
FinallyClause = 332,
UnsafeStatement = 333,
UsingStatement = 334,
ForeachStatement = 335,
ForeachStatementInitializer = 336,
GotoStatement = 337,
LabeledStatement = 338,
IfStatement = 339,
WhileStatement = 340,
LocalDeclarationStatement = 341,
LocalFunctionStatement = 342,
LocalFunctionDeclaration = 343,
Pattern = 344,
RecursivePattern = 345,
ConstantPattern = 346,
InvocationExpression = 347,
InvocationExpression2 = 348,
ParenthesizedPattern = 349,
VarPattern = 350,
TypePattern = 351,
ListPattern = 352,
RecursivePattern2 = 353,
PositionalPatternClause = 354,
PropertyPatternClause = 355,
Subpattern = 356,
RelationalPattern = 357,
NegatedPattern = 358,
AndPattern = 359,
OrPattern = 360,
DeclarationPattern = 361,
VariableDesignation = 362,
ParenthesizedVariableDesignation = 363,
Expression = 364,
NonLvalueExpression = 365,
LvalueExpression = 366,
ExpressionStatementExpression = 367,
AssignmentExpression = 368,
BinaryExpression = 369,
PostfixUnaryExpression = 370,
PrefixUnaryExpression = 371,
PrefixUnaryExpression2 = 372,
QueryExpression = 373,
FromClause = 374,
QueryBody = 375,
QueryClause = 376,
JoinClause = 377,
JoinHeader = 378,
JoinBody = 379,
JoinIntoClause = 380,
LetClause = 381,
OrderByClause = 382,
Ordering = 383,
WhereClause = 384,
SelectOrGroupClause = 385,
GroupClause = 386,
SelectClause = 387,
ConditionalExpression = 388,
ConditionalAccessExpression = 389,
AsExpression = 390,
IsExpression = 391,
IsPatternExpression = 392,
CastExpression = 393,
CheckedExpression = 394,
InvocationExpression3 = 395,
SwitchExpression = 396,
SwitchExpressionBody = 397,
SwitchExpressionArm = 398,
WhenClause = 399,
AwaitExpression = 400,
ThrowExpression = 401,
ElementAccessExpression = 402,
InterpolatedStringExpression = 403,
InterpolatedStringContent = 404,
InterpolatedVerbatimStringContent = 405,
InterpolatedRawStringContent = 406,
Interpolation = 407,
InterpolationAlignmentClause = 408,
InterpolationFormatClause = 409,
MemberAccessExpression = 410,
MemberBindingExpression = 411,
ObjectCreationExpression = 412,
ParenthesizedExpression = 413,
ParenthesizedExpression2 = 414,
LambdaExpression = 415,
LambdaExpressionInit = 416,
LambdaParameters = 417,
ArrayCreationExpression = 418,
AnonymousMethodExpression = 419,
AnonymousObjectCreationExpression = 420,
AnonymousObjectMemberDeclarator = 421,
ImplicitArrayCreationExpression = 422,
ImplicitObjectCreationExpression = 423,
ImplicitStackallocExpression = 424,
CollectionExpression = 425,
CollectionElement = 426,
ExpressionElement = 427,
SpreadElement = 428,
InitializerExpression = 429,
DeclarationExpression = 430,
DefaultExpression = 431,
WithExpression = 432,
WithBody = 433,
WithInitializer = 434,
SizeofExpression = 435,
TypeofExpression = 436,
MakerefExpression = 437,
RefExpression = 438,
ReftypeExpression = 439,
RefvalueExpression = 440,
StackallocExpression = 441,
RangeExpression = 442,
TupleExpression = 443,
Literal = 444,
CharacterLiteral = 445,
StringLiteral = 446,
RawStringLiteral = 447,
BooleanLiteral = 448,
Identifier = 449,
ReservedIdentifier = 450,
PreprocIf = 451,
PreprocElse = 452,
PreprocElif = 453,
PreprocIf2 = 454,
PreprocElse2 = 455,
PreprocElif2 = 456,
PreprocIf3 = 457,
PreprocElse3 = 458,
PreprocElif3 = 459,
PreprocIf4 = 460,
PreprocElse4 = 461,
PreprocElif4 = 462,
PreprocIfInAttributeList = 463,
PreprocElse5 = 464,
PreprocElif5 = 465,
PreprocExpression = 466,
ParenthesizedExpression3 = 467,
UnaryExpression = 468,
BinaryExpression2 = 469,
PreprocRegion = 470,
PreprocEndregion = 471,
PreprocLine = 472,
PreprocPragma = 473,
PreprocNullable = 474,
PreprocError = 475,
PreprocWarning = 476,
PreprocDefine = 477,
PreprocUndef = 478,
CompilationUnitRepeat1 = 479,
UsingDirectiveRepeat1 = 480,
GlobalAttributeRepeat1 = 481,
AttributeArgumentListRepeat1 = 482,
ClassDeclarationInitializerRepeat1 = 483,
ClassDeclarationInitializerRepeat2 = 484,
ClassDeclarationInitializerRepeat3 = 485,
ClassDeclarationInitializerRepeat4 = 486,
EnumMemberDeclarationListRepeat1 = 487,
RecordDeclarationInitializerRepeat1 = 488,
RecordBaseRepeat1 = 489,
TypeParameterListRepeat1 = 490,
BaseListRepeat1 = 491,
TypeParameterConstraintsClauseRepeat1 = 492,
ConversionOperatorDeclarationRepeat1 = 493,
DeclarationListRepeat1 = 494,
AccessorListRepeat1 = 495,
BracketedParameterListRepeat1 = 496,
ParameterTypeWithModifiersRepeat1 = 497,
ArgumentListRepeat1 = 498,
TuplePatternRepeat1 = 499,
BlockRepeat1 = 500,
VariableDeclarationRepeat1 = 501,
UsingVariableDeclarationRepeat1 = 502,
TypeArgumentListRepeat1 = 503,
TypeArgumentListRepeat2 = 504,
ArrayRankSpecifierRepeat1 = 505,
FunctionPointerTypeRepeat1 = 506,
CallingConventionRepeat1 = 507,
TupleTypeRepeat1 = 508,
ForStatementConditionsRepeat1 = 509,
SwitchBodyRepeat1 = 510,
TryStatementRepeat1 = 511,
CatchClauseRepeat1 = 512,
ListPatternRepeat1 = 513,
PositionalPatternClauseRepeat1 = 514,
ParenthesizedVariableDesignationRepeat1 = 515,
QueryBodyRepeat1 = 516,
QueryBodyRepeat2 = 517,
OrderByClauseRepeat1 = 518,
SwitchExpressionBodyRepeat1 = 519,
InterpolatedStringExpressionRepeat1 = 520,
InterpolatedStringExpressionRepeat2 = 521,
InterpolatedStringExpressionRepeat3 = 522,
LambdaExpressionInitRepeat1 = 523,
AnonymousObjectCreationExpressionRepeat1 = 524,
CollectionExpressionRepeat1 = 525,
WithBodyRepeat1 = 526,
StringLiteralRepeat1 = 527,
PreprocIfInTopLevelRepeat1 = 528,
PreprocPragmaRepeat1 = 529,
ElementBindingExpression = 530,
ImplicitParameter = 531,
InterpolationQuote = 532,
Error = 533,
}
pub const CSHARP_KIND_FLAGS: &[(u16, bool, bool)] = &[
(0, false, false),
(1, false, false),
(2, false, true),
(3, false, true),
(4, false, true),
(5, false, true),
(6, false, true),
(7, false, true),
(8, false, true),
(9, false, true),
(10, false, true),
(11, false, true),
(12, false, true),
(13, false, true),
(14, false, true),
(15, false, true),
(16, false, true),
(17, false, true),
(18, false, true),
(19, false, true),
(20, false, true),
(21, false, true),
(22, false, true),
(23, false, true),
(24, false, true),
(25, false, true),
(26, false, true),
(27, false, true),
(28, false, true),
(29, false, true),
(30, false, true),
(31, false, true),
(32, false, true),
(33, false, true),
(34, false, true),
(35, false, true),
(36, false, true),
(37, false, true),
(38, false, true),
(39, false, true),
(40, false, true),
(41, false, true),
(42, false, true),
(43, false, true),
(44, false, true),
(45, false, true),
(46, false, true),
(47, false, true),
(48, false, true),
(49, false, true),
(50, false, true),
(51, false, true),
(52, false, true),
(53, false, true),
(54, false, true),
(55, false, true),
(56, false, true),
(57, false, true),
(58, false, true),
(59, false, true),
(60, false, true),
(61, false, true),
(62, false, true),
(63, false, true),
(64, false, true),
(65, false, true),
(66, false, true),
(67, false, true),
(68, false, true),
(69, false, true),
(70, false, true),
(71, false, true),
(72, false, true),
(73, false, true),
(74, false, true),
(75, false, true),
(76, false, true),
(77, false, true),
(78, false, true),
(79, false, true),
(80, false, true),
(81, false, true),
(82, false, true),
(83, false, true),
(84, false, true),
(85, false, true),
(86, false, true),
(87, false, true),
(88, false, true),
(89, false, true),
(90, false, true),
(91, false, true),
(92, false, true),
(93, false, true),
(94, false, true),
(95, false, true),
(96, false, true),
(97, false, true),
(98, false, true),
(99, false, true),
(100, false, true),
(101, false, true),
(102, false, true),
(103, false, true),
(104, true, true),
(105, false, true),
(106, false, true),
(107, false, true),
(108, false, true),
(109, false, true),
(110, false, true),
(111, false, true),
(112, false, true),
(113, false, true),
(114, false, true),
(115, false, true),
(116, false, true),
(117, false, true),
(118, false, true),
(119, false, true),
(120, false, true),
(121, false, true),
(122, false, true),
(123, false, true),
(124, false, true),
(125, false, true),
(126, true, true),
(127, false, true),
(128, false, true),
(129, false, true),
(130, false, true),
(131, false, true),
(132, false, true),
(133, false, true),
(134, false, true),
(135, false, true),
(136, false, true),
(137, false, true),
(138, false, true),
(139, false, true),
(140, false, true),
(141, false, true),
(142, false, true),
(143, false, true),
(144, false, true),
(145, false, true),
(146, false, true),
(147, false, true),
(148, false, true),
(149, false, true),
(150, false, true),
(151, false, true),
(152, false, true),
(153, false, true),
(154, false, true),
(155, false, true),
(156, false, true),
(157, false, true),
(158, false, true),
(159, false, true),
(160, false, false),
(161, false, true),
(162, false, true),
(163, false, true),
(164, false, true),
(165, false, true),
(166, false, true),
(167, false, true),
(168, false, true),
(169, true, true),
(170, false, true),
(171, true, true),
(172, true, true),
(173, true, true),
(174, false, true),
(175, true, true),
(176, true, true),
(177, true, true),
(178, true, true),
(179, false, false),
(180, false, true),
(181, false, false),
(182, false, true),
(183, false, true),
(184, false, true),
(185, true, true),
(186, false, true),
(187, false, true),
(188, false, true),
(189, false, true),
(190, false, true),
(191, false, true),
(192, false, true),
(193, false, true),
(194, false, true),
(195, false, true),
(196, false, true),
(197, false, true),
(198, false, true),
(199, false, true),
(200, false, true),
(201, false, true),
(202, false, true),
(203, true, true),
(204, true, true),
(205, false, false),
(206, true, true),
(207, true, true),
(208, true, true),
(209, false, true),
(210, false, true),
(211, true, true),
(212, true, true),
(213, true, true),
(214, true, true),
(215, true, true),
(216, true, true),
(217, true, true),
(218, false, false),
(219, true, true),
(220, true, true),
(221, true, true),
(222, true, true),
(223, true, true),
(224, true, true),
(225, true, true),
(226, true, true),
(227, false, false),
(228, true, true),
(229, true, true),
(230, true, true),
(231, false, false),
(232, true, true),
(233, false, false),
(234, true, true),
(235, false, false),
(236, true, true),
(237, false, false),
(238, true, true),
(239, true, true),
(240, true, true),
(241, false, false),
(242, true, true),
(243, false, false),
(244, true, true),
(245, false, false),
(246, true, true),
(247, false, false),
(248, true, true),
(249, true, true),
(250, true, true),
(251, true, true),
(252, true, true),
(253, true, true),
(254, true, true),
(255, true, true),
(256, true, true),
(257, true, true),
(258, true, true),
(259, false, false),
(260, true, true),
(261, true, true),
(262, false, false),
(263, true, true),
(264, true, true),
(265, true, true),
(266, true, true),
(267, true, true),
(268, true, true),
(269, true, true),
(270, true, true),
(271, true, true),
(272, true, true),
(273, true, true),
(274, true, true),
(275, false, false),
(276, true, true),
(277, true, true),
(278, true, true),
(279, true, true),
(280, true, true),
(281, true, true),
(282, false, false),
(283, true, true),
(284, true, true),
(285, true, true),
(286, true, true),
(287, true, true),
(288, false, false),
(289, true, true),
(290, false, false),
(291, true, true),
(292, true, true),
(293, true, true),
(294, false, false),
(295, true, true),
(296, true, true),
(297, false, false),
(298, true, true),
(299, true, true),
(300, true, true),
(301, false, false),
(302, true, true),
(303, true, true),
(304, true, true),
(305, true, true),
(306, false, false),
(307, true, true),
(308, false, false),
(309, true, true),
(310, true, true),
(311, false, false),
(312, true, true),
(313, true, true),
(314, true, true),
(315, true, true),
(316, true, true),
(317, true, true),
(318, true, true),
(319, true, true),
(320, false, false),
(321, true, true),
(322, true, true),
(323, true, true),
(324, true, true),
(325, true, true),
(326, true, true),
(327, true, true),
(328, true, true),
(329, true, true),
(330, true, true),
(331, true, true),
(332, true, true),
(333, true, true),
(334, true, true),
(335, true, true),
(336, false, false),
(337, true, true),
(338, true, true),
(339, true, true),
(340, true, true),
(341, true, true),
(342, true, true),
(343, false, false),
(344, false, false),
(345, true, true),
(346, true, true),
(347, true, true),
(348, true, true),
(349, true, true),
(350, true, true),
(351, true, true),
(352, true, true),
(353, true, true),
(354, true, true),
(355, true, true),
(356, true, true),
(357, true, true),
(358, true, true),
(359, true, true),
(360, true, true),
(361, true, true),
(362, false, false),
(363, true, true),
(364, false, false),
(365, false, false),
(366, false, false),
(367, false, false),
(368, true, true),
(369, true, true),
(370, true, true),
(371, true, true),
(372, true, true),
(373, true, true),
(374, true, true),
(375, false, false),
(376, false, false),
(377, true, true),
(378, false, false),
(379, false, false),
(380, true, true),
(381, true, true),
(382, true, true),
(383, false, false),
(384, true, true),
(385, false, false),
(386, true, true),
(387, true, true),
(388, true, true),
(389, true, true),
(390, true, true),
(391, true, true),
(392, true, true),
(393, true, true),
(394, true, true),
(395, true, true),
(396, true, true),
(397, false, false),
(398, true, true),
(399, true, true),
(400, true, true),
(401, true, true),
(402, true, true),
(403, true, true),
(404, false, false),
(405, false, false),
(406, false, false),
(407, true, true),
(408, true, true),
(409, true, true),
(410, true, true),
(411, true, true),
(412, true, true),
(413, true, true),
(414, true, true),
(415, true, true),
(416, false, false),
(417, false, false),
(418, true, true),
(419, true, true),
(420, true, true),
(421, false, false),
(422, true, true),
(423, true, true),
(424, true, true),
(425, true, true),
(426, true, true),
(427, true, true),
(428, true, true),
(429, true, true),
(430, true, true),
(431, true, true),
(432, true, true),
(433, false, false),
(434, true, true),
(435, true, true),
(436, true, true),
(437, true, true),
(438, true, true),
(439, true, true),
(440, true, true),
(441, true, true),
(442, true, true),
(443, true, true),
(444, false, false),
(445, true, true),
(446, true, true),
(447, true, true),
(448, true, true),
(449, true, true),
(450, false, false),
(451, true, true),
(452, true, true),
(453, true, true),
(454, true, true),
(455, true, true),
(456, true, true),
(457, true, true),
(458, true, true),
(459, true, true),
(460, true, true),
(461, true, true),
(462, true, true),
(463, true, true),
(464, true, true),
(465, true, true),
(466, false, false),
(467, true, true),
(468, true, true),
(469, true, true),
(470, true, true),
(471, true, true),
(472, true, true),
(473, true, true),
(474, true, true),
(475, true, true),
(476, true, true),
(477, true, true),
(478, true, true),
(479, false, false),
(480, false, false),
(481, false, false),
(482, false, false),
(483, false, false),
(484, false, false),
(485, false, false),
(486, false, false),
(487, false, false),
(488, false, false),
(489, false, false),
(490, false, false),
(491, false, false),
(492, false, false),
(493, false, false),
(494, false, false),
(495, false, false),
(496, false, false),
(497, false, false),
(498, false, false),
(499, false, false),
(500, false, false),
(501, false, false),
(502, false, false),
(503, false, false),
(504, false, false),
(505, false, false),
(506, false, false),
(507, false, false),
(508, false, false),
(509, false, false),
(510, false, false),
(511, false, false),
(512, false, false),
(513, false, false),
(514, false, false),
(515, false, false),
(516, false, false),
(517, false, false),
(518, false, false),
(519, false, false),
(520, false, false),
(521, false, false),
(522, false, false),
(523, false, false),
(524, false, false),
(525, false, false),
(526, false, false),
(527, false, false),
(528, false, false),
(529, false, false),
(530, true, true),
(531, true, true),
(532, true, true),
];
impl From<Csharp> for &'static str {
#[inline]
fn from(tok: Csharp) -> Self {
match tok {
Csharp::End => "end",
Csharp::IdentifierToken => "_identifier_token",
Csharp::Extern => "extern",
Csharp::Alias => "alias",
Csharp::SEMI => ";",
Csharp::Global => "global",
Csharp::Using => "using",
Csharp::Unsafe => "unsafe",
Csharp::EQ => "=",
Csharp::Static => "static",
Csharp::LBRACK => "[",
Csharp::Assembly => "assembly",
Csharp::Module => "module",
Csharp::COLON => ":",
Csharp::COMMA => ",",
Csharp::RBRACK => "]",
Csharp::LPAREN => "(",
Csharp::RPAREN => ")",
Csharp::Field => "field",
Csharp::Event => "event",
Csharp::Method => "method",
Csharp::Param => "param",
Csharp::Property => "property",
Csharp::Return => "return",
Csharp::Type => "type",
Csharp::Typevar => "typevar",
Csharp::Namespace => "namespace",
Csharp::Class => "class",
Csharp::Ref => "ref",
Csharp::Struct => "struct",
Csharp::Enum => "enum",
Csharp::LBRACE => "{",
Csharp::RBRACE => "}",
Csharp::Interface => "interface",
Csharp::Delegate => "delegate",
Csharp::Record => "record",
Csharp::Abstract => "abstract",
Csharp::Async => "async",
Csharp::Const => "const",
Csharp::File => "file",
Csharp::Fixed => "fixed",
Csharp::Internal => "internal",
Csharp::New => "new",
Csharp::Override => "override",
Csharp::Partial => "partial",
Csharp::Private => "private",
Csharp::Protected => "protected",
Csharp::Public => "public",
Csharp::Readonly => "readonly",
Csharp::Required => "required",
Csharp::Sealed => "sealed",
Csharp::Virtual => "virtual",
Csharp::Volatile => "volatile",
Csharp::LT => "<",
Csharp::GT => ">",
Csharp::In => "in",
Csharp::Out => "out",
Csharp::Where => "where",
Csharp::QMARK => "?",
Csharp::Notnull => "notnull",
Csharp::Unmanaged => "unmanaged",
Csharp::Operator => "operator",
Csharp::Checked => "checked",
Csharp::BANG => "!",
Csharp::TILDE => "~",
Csharp::PLUSPLUS => "++",
Csharp::DASHDASH => "--",
Csharp::True => "true",
Csharp::False => "false",
Csharp::PLUS => "+",
Csharp::DASH => "-",
Csharp::STAR => "*",
Csharp::SLASH => "/",
Csharp::PERCENT => "%",
Csharp::CARET => "^",
Csharp::PIPE => "|",
Csharp::AMP => "&",
Csharp::LTLT => "<<",
Csharp::GTGT => ">>",
Csharp::GTGTGT => ">>>",
Csharp::EQEQ => "==",
Csharp::BANGEQ => "!=",
Csharp::GTEQ => ">=",
Csharp::LTEQ => "<=",
Csharp::Implicit => "implicit",
Csharp::Explicit => "explicit",
Csharp::Get => "get",
Csharp::Set => "set",
Csharp::Add => "add",
Csharp::Remove => "remove",
Csharp::Init => "init",
Csharp::This => "this",
Csharp::DOT => ".",
Csharp::Scoped => "scoped",
Csharp::Params => "params",
Csharp::Base => "base",
Csharp::EQGT => "=>",
Csharp::COLONCOLON => "::",
Csharp::Var => "var",
Csharp::Managed => "managed",
Csharp::Cdecl => "Cdecl",
Csharp::Stdcall => "Stdcall",
Csharp::Thiscall => "Thiscall",
Csharp::Fastcall => "Fastcall",
Csharp::PredefinedType => "predefined_type",
Csharp::Break => "break",
Csharp::Unchecked => "unchecked",
Csharp::Continue => "continue",
Csharp::Do => "do",
Csharp::While => "while",
Csharp::For => "for",
Csharp::Lock => "lock",
Csharp::Yield => "yield",
Csharp::Switch => "switch",
Csharp::Case => "case",
Csharp::Default => "default",
Csharp::Throw => "throw",
Csharp::Try => "try",
Csharp::Catch => "catch",
Csharp::When => "when",
Csharp::Finally => "finally",
Csharp::Await => "await",
Csharp::Foreach => "foreach",
Csharp::Goto => "goto",
Csharp::If => "if",
Csharp::Else => "else",
Csharp::Discard => "discard",
Csharp::DOTDOT => "..",
Csharp::Not => "not",
Csharp::And => "and",
Csharp::Or => "or",
Csharp::PLUSEQ => "+=",
Csharp::DASHEQ => "-=",
Csharp::STAREQ => "*=",
Csharp::SLASHEQ => "/=",
Csharp::PERCENTEQ => "%=",
Csharp::AMPEQ => "&=",
Csharp::CARETEQ => "^=",
Csharp::PIPEEQ => "|=",
Csharp::LTLTEQ => "<<=",
Csharp::GTGTEQ => ">>=",
Csharp::GTGTGTEQ => ">>>=",
Csharp::QMARKQMARKEQ => "??=",
Csharp::AMPAMP => "&&",
Csharp::PIPEPIPE => "||",
Csharp::QMARKQMARK => "??",
Csharp::From => "from",
Csharp::Into => "into",
Csharp::Join => "join",
Csharp::On => "on",
Csharp::Equals => "equals",
Csharp::Let => "let",
Csharp::Orderby => "orderby",
Csharp::Ascending => "ascending",
Csharp::Descending => "descending",
Csharp::Group => "group",
Csharp::By => "by",
Csharp::Select => "select",
Csharp::As => "as",
Csharp::Is => "is",
Csharp::InterpolationFormatClauseToken1 => "interpolation_format_clause_token1",
Csharp::DASHGT => "->",
Csharp::Stackalloc => "stackalloc",
Csharp::With => "with",
Csharp::Sizeof => "sizeof",
Csharp::Typeof => "typeof",
Csharp::Makeref => "__makeref",
Csharp::Reftype => "__reftype",
Csharp::Refvalue => "__refvalue",
Csharp::NullLiteral => "null_literal",
Csharp::SQUOTE => "'",
Csharp::CharacterLiteralContent => "character_literal_content",
Csharp::IntegerLiteral => "integer_literal",
Csharp::RealLiteral => "real_literal",
Csharp::DQUOTE => "\"",
Csharp::StringLiteralContent => "string_literal_content",
Csharp::EscapeSequence => "escape_sequence",
Csharp::StringLiteralEncoding => "string_literal_encoding",
Csharp::VerbatimStringLiteral => "verbatim_string_literal",
Csharp::RawStringLiteralToken1 => "raw_string_literal_token1",
Csharp::HASHif => "#if",
Csharp::PreprocIfToken2 => "preproc_if_token2",
Csharp::HASHendif => "#endif",
Csharp::HASHelse => "#else",
Csharp::HASHelif => "#elif",
Csharp::PreprocArg => "preproc_arg",
Csharp::HASHregion => "#region",
Csharp::HASHendregion => "#endregion",
Csharp::HASHline => "#line",
Csharp::Hidden => "hidden",
Csharp::HASHpragma => "#pragma",
Csharp::Warning => "warning",
Csharp::Disable => "disable",
Csharp::Restore => "restore",
Csharp::Checksum => "checksum",
Csharp::HASHnullable => "#nullable",
Csharp::Enable => "enable",
Csharp::Annotations => "annotations",
Csharp::Warnings => "warnings",
Csharp::HASHerror => "#error",
Csharp::HASHwarning => "#warning",
Csharp::HASHdefine => "#define",
Csharp::HASHundef => "#undef",
Csharp::ShebangDirective => "shebang_directive",
Csharp::Comment => "comment",
Csharp::OptionalSemi => "_optional_semi",
Csharp::InterpolationStart => "interpolation_start",
Csharp::InterpolationStart2 => "interpolation_start",
Csharp::InterpolationStart3 => "interpolation_start",
Csharp::DQUOTE2 => "\"",
Csharp::DQUOTE3 => "\"",
Csharp::InterpolationBrace => "interpolation_brace",
Csharp::InterpolationBrace2 => "interpolation_brace",
Csharp::StringContent => "string_content",
Csharp::RawStringStart => "raw_string_start",
Csharp::RawStringEnd => "raw_string_end",
Csharp::RawStringContent => "raw_string_content",
Csharp::CompilationUnit => "compilation_unit",
Csharp::TopLevelItem => "_top_level_item",
Csharp::GlobalStatement => "global_statement",
Csharp::ExternAliasDirective => "extern_alias_directive",
Csharp::UsingDirective => "using_directive",
Csharp::GlobalAttribute => "global_attribute",
Csharp::Attribute => "attribute",
Csharp::AttributeArgumentList => "attribute_argument_list",
Csharp::AttributeArgument => "attribute_argument",
Csharp::AttributeList => "attribute_list",
Csharp::AttributeList2 => "_attribute_list",
Csharp::AttributeTargetSpecifier => "attribute_target_specifier",
Csharp::NamespaceDeclaration => "namespace_declaration",
Csharp::FileScopedNamespaceDeclaration => "file_scoped_namespace_declaration",
Csharp::TypeDeclaration => "type_declaration",
Csharp::ClassDeclaration => "class_declaration",
Csharp::ClassDeclarationInitializer => "_class_declaration_initializer",
Csharp::StructDeclaration => "struct_declaration",
Csharp::StructDeclarationInitializer => "_struct_declaration_initializer",
Csharp::EnumDeclaration => "enum_declaration",
Csharp::EnumDeclarationInitializer => "_enum_declaration_initializer",
Csharp::EnumMemberDeclarationList => "enum_member_declaration_list",
Csharp::EnumMemberDeclaration => "enum_member_declaration",
Csharp::InterfaceDeclaration => "interface_declaration",
Csharp::InterfaceDeclarationInitializer => "_interface_declaration_initializer",
Csharp::DelegateDeclaration => "delegate_declaration",
Csharp::DelegateDeclarationInitializer => "_delegate_declaration_initializer",
Csharp::RecordDeclaration => "record_declaration",
Csharp::RecordDeclarationInitializer => "_record_declaration_initializer",
Csharp::BaseList => "base_list",
Csharp::DeclarationListBody => "_declaration_list_body",
Csharp::PrimaryConstructorBaseType => "primary_constructor_base_type",
Csharp::Modifier => "modifier",
Csharp::TypeParameterList => "type_parameter_list",
Csharp::TypeParameter => "type_parameter",
Csharp::BaseList2 => "base_list",
Csharp::TypeParameterConstraintsClause => "type_parameter_constraints_clause",
Csharp::TypeParameterConstraint => "type_parameter_constraint",
Csharp::ConstructorConstraint => "constructor_constraint",
Csharp::OperatorDeclaration => "operator_declaration",
Csharp::ConversionOperatorDeclaration => "conversion_operator_declaration",
Csharp::DeclarationList => "declaration_list",
Csharp::Declaration => "declaration",
Csharp::FieldDeclaration => "field_declaration",
Csharp::ConstructorDeclaration => "constructor_declaration",
Csharp::ConstructorDeclarationInitializer => "_constructor_declaration_initializer",
Csharp::DestructorDeclaration => "destructor_declaration",
Csharp::MethodDeclaration => "method_declaration",
Csharp::EventDeclaration => "event_declaration",
Csharp::EventFieldDeclaration => "event_field_declaration",
Csharp::AccessorList => "accessor_list",
Csharp::AccessorDeclaration => "accessor_declaration",
Csharp::IndexerDeclaration => "indexer_declaration",
Csharp::BracketedParameterList => "bracketed_parameter_list",
Csharp::PropertyDeclaration => "property_declaration",
Csharp::ExplicitInterfaceSpecifier => "explicit_interface_specifier",
Csharp::ParameterList => "parameter_list",
Csharp::Parameter => "parameter",
Csharp::ParameterArray => "_parameter_array",
Csharp::ConstructorInitializer => "constructor_initializer",
Csharp::ArgumentList => "argument_list",
Csharp::TuplePattern => "tuple_pattern",
Csharp::Argument => "argument",
Csharp::Block => "block",
Csharp::ArrowExpressionClause => "arrow_expression_clause",
Csharp::FunctionBody => "_function_body",
Csharp::VariableDeclaration => "variable_declaration",
Csharp::VariableDeclaration2 => "variable_declaration",
Csharp::VariableDeclarator => "variable_declarator",
Csharp::VariableDeclarator2 => "variable_declarator",
Csharp::BracketedArgumentList => "bracketed_argument_list",
Csharp::Name => "_name",
Csharp::AliasQualifiedName => "alias_qualified_name",
Csharp::SimpleName => "_simple_name",
Csharp::QualifiedName => "qualified_name",
Csharp::GenericName => "generic_name",
Csharp::TypeArgumentList => "type_argument_list",
Csharp::Type2 => "type",
Csharp::ImplicitType => "implicit_type",
Csharp::ArrayType => "array_type",
Csharp::ArrayBaseType => "_array_base_type",
Csharp::ArrayRankSpecifier => "array_rank_specifier",
Csharp::NullableType => "nullable_type",
Csharp::PointerType => "pointer_type",
Csharp::PointerBaseType => "_pointer_base_type",
Csharp::FunctionPointerType => "function_pointer_type",
Csharp::CallingConvention => "calling_convention",
Csharp::FunctionPointerParameter => "function_pointer_parameter",
Csharp::RefType => "ref_type",
Csharp::RefBaseType => "_ref_base_type",
Csharp::ScopedType => "scoped_type",
Csharp::ScopedBaseType => "_scoped_base_type",
Csharp::TupleType => "tuple_type",
Csharp::TupleElement => "tuple_element",
Csharp::Statement => "statement",
Csharp::BreakStatement => "break_statement",
Csharp::CheckedStatement => "checked_statement",
Csharp::ContinueStatement => "continue_statement",
Csharp::DoStatement => "do_statement",
Csharp::EmptyStatement => "empty_statement",
Csharp::ExpressionStatement => "expression_statement",
Csharp::FixedStatement => "fixed_statement",
Csharp::ForStatement => "for_statement",
Csharp::ForStatementConditions => "_for_statement_conditions",
Csharp::ReturnStatement => "return_statement",
Csharp::LockStatement => "lock_statement",
Csharp::YieldStatement => "yield_statement",
Csharp::SwitchStatement => "switch_statement",
Csharp::SwitchBody => "switch_body",
Csharp::SwitchSection => "switch_section",
Csharp::ThrowStatement => "throw_statement",
Csharp::TryStatement => "try_statement",
Csharp::CatchClause => "catch_clause",
Csharp::CatchDeclaration => "catch_declaration",
Csharp::CatchFilterClause => "catch_filter_clause",
Csharp::FinallyClause => "finally_clause",
Csharp::UnsafeStatement => "unsafe_statement",
Csharp::UsingStatement => "using_statement",
Csharp::ForeachStatement => "foreach_statement",
Csharp::ForeachStatementInitializer => "_foreach_statement_initializer",
Csharp::GotoStatement => "goto_statement",
Csharp::LabeledStatement => "labeled_statement",
Csharp::IfStatement => "if_statement",
Csharp::WhileStatement => "while_statement",
Csharp::LocalDeclarationStatement => "local_declaration_statement",
Csharp::LocalFunctionStatement => "local_function_statement",
Csharp::LocalFunctionDeclaration => "_local_function_declaration",
Csharp::Pattern => "pattern",
Csharp::RecursivePattern => "recursive_pattern",
Csharp::ConstantPattern => "constant_pattern",
Csharp::InvocationExpression => "invocation_expression",
Csharp::InvocationExpression2 => "invocation_expression",
Csharp::ParenthesizedPattern => "parenthesized_pattern",
Csharp::VarPattern => "var_pattern",
Csharp::TypePattern => "type_pattern",
Csharp::ListPattern => "list_pattern",
Csharp::RecursivePattern2 => "recursive_pattern",
Csharp::PositionalPatternClause => "positional_pattern_clause",
Csharp::PropertyPatternClause => "property_pattern_clause",
Csharp::Subpattern => "subpattern",
Csharp::RelationalPattern => "relational_pattern",
Csharp::NegatedPattern => "negated_pattern",
Csharp::AndPattern => "and_pattern",
Csharp::OrPattern => "or_pattern",
Csharp::DeclarationPattern => "declaration_pattern",
Csharp::VariableDesignation => "_variable_designation",
Csharp::ParenthesizedVariableDesignation => "parenthesized_variable_designation",
Csharp::Expression => "expression",
Csharp::NonLvalueExpression => "non_lvalue_expression",
Csharp::LvalueExpression => "lvalue_expression",
Csharp::ExpressionStatementExpression => "_expression_statement_expression",
Csharp::AssignmentExpression => "assignment_expression",
Csharp::BinaryExpression => "binary_expression",
Csharp::PostfixUnaryExpression => "postfix_unary_expression",
Csharp::PrefixUnaryExpression => "prefix_unary_expression",
Csharp::PrefixUnaryExpression2 => "prefix_unary_expression",
Csharp::QueryExpression => "query_expression",
Csharp::FromClause => "from_clause",
Csharp::QueryBody => "_query_body",
Csharp::QueryClause => "_query_clause",
Csharp::JoinClause => "join_clause",
Csharp::JoinHeader => "_join_header",
Csharp::JoinBody => "_join_body",
Csharp::JoinIntoClause => "join_into_clause",
Csharp::LetClause => "let_clause",
Csharp::OrderByClause => "order_by_clause",
Csharp::Ordering => "_ordering",
Csharp::WhereClause => "where_clause",
Csharp::SelectOrGroupClause => "_select_or_group_clause",
Csharp::GroupClause => "group_clause",
Csharp::SelectClause => "select_clause",
Csharp::ConditionalExpression => "conditional_expression",
Csharp::ConditionalAccessExpression => "conditional_access_expression",
Csharp::AsExpression => "as_expression",
Csharp::IsExpression => "is_expression",
Csharp::IsPatternExpression => "is_pattern_expression",
Csharp::CastExpression => "cast_expression",
Csharp::CheckedExpression => "checked_expression",
Csharp::InvocationExpression3 => "invocation_expression",
Csharp::SwitchExpression => "switch_expression",
Csharp::SwitchExpressionBody => "_switch_expression_body",
Csharp::SwitchExpressionArm => "switch_expression_arm",
Csharp::WhenClause => "when_clause",
Csharp::AwaitExpression => "await_expression",
Csharp::ThrowExpression => "throw_expression",
Csharp::ElementAccessExpression => "element_access_expression",
Csharp::InterpolatedStringExpression => "interpolated_string_expression",
Csharp::InterpolatedStringContent => "_interpolated_string_content",
Csharp::InterpolatedVerbatimStringContent => "_interpolated_verbatim_string_content",
Csharp::InterpolatedRawStringContent => "_interpolated_raw_string_content",
Csharp::Interpolation => "interpolation",
Csharp::InterpolationAlignmentClause => "interpolation_alignment_clause",
Csharp::InterpolationFormatClause => "interpolation_format_clause",
Csharp::MemberAccessExpression => "member_access_expression",
Csharp::MemberBindingExpression => "member_binding_expression",
Csharp::ObjectCreationExpression => "object_creation_expression",
Csharp::ParenthesizedExpression => "parenthesized_expression",
Csharp::ParenthesizedExpression2 => "parenthesized_expression",
Csharp::LambdaExpression => "lambda_expression",
Csharp::LambdaExpressionInit => "_lambda_expression_init",
Csharp::LambdaParameters => "_lambda_parameters",
Csharp::ArrayCreationExpression => "array_creation_expression",
Csharp::AnonymousMethodExpression => "anonymous_method_expression",
Csharp::AnonymousObjectCreationExpression => "anonymous_object_creation_expression",
Csharp::AnonymousObjectMemberDeclarator => "_anonymous_object_member_declarator",
Csharp::ImplicitArrayCreationExpression => "implicit_array_creation_expression",
Csharp::ImplicitObjectCreationExpression => "implicit_object_creation_expression",
Csharp::ImplicitStackallocExpression => "implicit_stackalloc_expression",
Csharp::CollectionExpression => "collection_expression",
Csharp::CollectionElement => "collection_element",
Csharp::ExpressionElement => "expression_element",
Csharp::SpreadElement => "spread_element",
Csharp::InitializerExpression => "initializer_expression",
Csharp::DeclarationExpression => "declaration_expression",
Csharp::DefaultExpression => "default_expression",
Csharp::WithExpression => "with_expression",
Csharp::WithBody => "_with_body",
Csharp::WithInitializer => "with_initializer",
Csharp::SizeofExpression => "sizeof_expression",
Csharp::TypeofExpression => "typeof_expression",
Csharp::MakerefExpression => "makeref_expression",
Csharp::RefExpression => "ref_expression",
Csharp::ReftypeExpression => "reftype_expression",
Csharp::RefvalueExpression => "refvalue_expression",
Csharp::StackallocExpression => "stackalloc_expression",
Csharp::RangeExpression => "range_expression",
Csharp::TupleExpression => "tuple_expression",
Csharp::Literal => "literal",
Csharp::CharacterLiteral => "character_literal",
Csharp::StringLiteral => "string_literal",
Csharp::RawStringLiteral => "raw_string_literal",
Csharp::BooleanLiteral => "boolean_literal",
Csharp::Identifier => "identifier",
Csharp::ReservedIdentifier => "_reserved_identifier",
Csharp::PreprocIf => "preproc_if",
Csharp::PreprocElse => "preproc_else",
Csharp::PreprocElif => "preproc_elif",
Csharp::PreprocIf2 => "preproc_if",
Csharp::PreprocElse2 => "preproc_else",
Csharp::PreprocElif2 => "preproc_elif",
Csharp::PreprocIf3 => "preproc_if",
Csharp::PreprocElse3 => "preproc_else",
Csharp::PreprocElif3 => "preproc_elif",
Csharp::PreprocIf4 => "preproc_if",
Csharp::PreprocElse4 => "preproc_else",
Csharp::PreprocElif4 => "preproc_elif",
Csharp::PreprocIfInAttributeList => "preproc_if_in_attribute_list",
Csharp::PreprocElse5 => "preproc_else",
Csharp::PreprocElif5 => "preproc_elif",
Csharp::PreprocExpression => "_preproc_expression",
Csharp::ParenthesizedExpression3 => "parenthesized_expression",
Csharp::UnaryExpression => "unary_expression",
Csharp::BinaryExpression2 => "binary_expression",
Csharp::PreprocRegion => "preproc_region",
Csharp::PreprocEndregion => "preproc_endregion",
Csharp::PreprocLine => "preproc_line",
Csharp::PreprocPragma => "preproc_pragma",
Csharp::PreprocNullable => "preproc_nullable",
Csharp::PreprocError => "preproc_error",
Csharp::PreprocWarning => "preproc_warning",
Csharp::PreprocDefine => "preproc_define",
Csharp::PreprocUndef => "preproc_undef",
Csharp::CompilationUnitRepeat1 => "compilation_unit_repeat1",
Csharp::UsingDirectiveRepeat1 => "using_directive_repeat1",
Csharp::GlobalAttributeRepeat1 => "global_attribute_repeat1",
Csharp::AttributeArgumentListRepeat1 => "attribute_argument_list_repeat1",
Csharp::ClassDeclarationInitializerRepeat1 => "_class_declaration_initializer_repeat1",
Csharp::ClassDeclarationInitializerRepeat2 => "_class_declaration_initializer_repeat2",
Csharp::ClassDeclarationInitializerRepeat3 => "_class_declaration_initializer_repeat3",
Csharp::ClassDeclarationInitializerRepeat4 => "_class_declaration_initializer_repeat4",
Csharp::EnumMemberDeclarationListRepeat1 => "enum_member_declaration_list_repeat1",
Csharp::RecordDeclarationInitializerRepeat1 => {
"_record_declaration_initializer_repeat1"
}
Csharp::RecordBaseRepeat1 => "record_base_repeat1",
Csharp::TypeParameterListRepeat1 => "type_parameter_list_repeat1",
Csharp::BaseListRepeat1 => "base_list_repeat1",
Csharp::TypeParameterConstraintsClauseRepeat1 => {
"type_parameter_constraints_clause_repeat1"
}
Csharp::ConversionOperatorDeclarationRepeat1 => {
"conversion_operator_declaration_repeat1"
}
Csharp::DeclarationListRepeat1 => "declaration_list_repeat1",
Csharp::AccessorListRepeat1 => "accessor_list_repeat1",
Csharp::BracketedParameterListRepeat1 => "bracketed_parameter_list_repeat1",
Csharp::ParameterTypeWithModifiersRepeat1 => "_parameter_type_with_modifiers_repeat1",
Csharp::ArgumentListRepeat1 => "argument_list_repeat1",
Csharp::TuplePatternRepeat1 => "tuple_pattern_repeat1",
Csharp::BlockRepeat1 => "block_repeat1",
Csharp::VariableDeclarationRepeat1 => "variable_declaration_repeat1",
Csharp::UsingVariableDeclarationRepeat1 => "using_variable_declaration_repeat1",
Csharp::TypeArgumentListRepeat1 => "type_argument_list_repeat1",
Csharp::TypeArgumentListRepeat2 => "type_argument_list_repeat2",
Csharp::ArrayRankSpecifierRepeat1 => "array_rank_specifier_repeat1",
Csharp::FunctionPointerTypeRepeat1 => "function_pointer_type_repeat1",
Csharp::CallingConventionRepeat1 => "calling_convention_repeat1",
Csharp::TupleTypeRepeat1 => "tuple_type_repeat1",
Csharp::ForStatementConditionsRepeat1 => "_for_statement_conditions_repeat1",
Csharp::SwitchBodyRepeat1 => "switch_body_repeat1",
Csharp::TryStatementRepeat1 => "try_statement_repeat1",
Csharp::CatchClauseRepeat1 => "catch_clause_repeat1",
Csharp::ListPatternRepeat1 => "list_pattern_repeat1",
Csharp::PositionalPatternClauseRepeat1 => "positional_pattern_clause_repeat1",
Csharp::ParenthesizedVariableDesignationRepeat1 => {
"parenthesized_variable_designation_repeat1"
}
Csharp::QueryBodyRepeat1 => "_query_body_repeat1",
Csharp::QueryBodyRepeat2 => "_query_body_repeat2",
Csharp::OrderByClauseRepeat1 => "order_by_clause_repeat1",
Csharp::SwitchExpressionBodyRepeat1 => "_switch_expression_body_repeat1",
Csharp::InterpolatedStringExpressionRepeat1 => "interpolated_string_expression_repeat1",
Csharp::InterpolatedStringExpressionRepeat2 => "interpolated_string_expression_repeat2",
Csharp::InterpolatedStringExpressionRepeat3 => "interpolated_string_expression_repeat3",
Csharp::LambdaExpressionInitRepeat1 => "_lambda_expression_init_repeat1",
Csharp::AnonymousObjectCreationExpressionRepeat1 => {
"anonymous_object_creation_expression_repeat1"
}
Csharp::CollectionExpressionRepeat1 => "collection_expression_repeat1",
Csharp::WithBodyRepeat1 => "_with_body_repeat1",
Csharp::StringLiteralRepeat1 => "string_literal_repeat1",
Csharp::PreprocIfInTopLevelRepeat1 => "preproc_if_in_top_level_repeat1",
Csharp::PreprocPragmaRepeat1 => "preproc_pragma_repeat1",
Csharp::ElementBindingExpression => "element_binding_expression",
Csharp::ImplicitParameter => "implicit_parameter",
Csharp::InterpolationQuote => "interpolation_quote",
Csharp::Error => "ERROR",
}
}
}
impl From<u16> for Csharp {
#[inline]
fn from(x: u16) -> Self {
num_traits::FromPrimitive::from_u16(x).unwrap_or(Self::Error)
}
}
impl PartialEq<u16> for Csharp {
#[inline]
fn eq(&self, x: &u16) -> bool {
*self == Into::<Self>::into(*x)
}
}
impl PartialEq<Csharp> for u16 {
#[inline]
fn eq(&self, x: &Csharp) -> bool {
*x == *self
}
}