Skip to main content

big_code_analysis_ast/languages/
language_csharp.rs

1// See `src/languages/mod.rs` for the rationale behind the per-file
2// pedantic carve-outs below.
3#![allow(clippy::match_same_arms, clippy::too_many_lines)]
4// One variant per grammar kind id, named after the rule; the name is
5// the documentation and there is nothing per-variant to add.
6#![allow(missing_docs)]
7
8// Code generated; DO NOT EDIT.
9
10use num_derive::FromPrimitive;
11
12#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
13pub enum Csharp {
14    End = 0,
15    IdentifierToken = 1,
16    Extern = 2,
17    Alias = 3,
18    SEMI = 4,
19    Global = 5,
20    Using = 6,
21    Unsafe = 7,
22    EQ = 8,
23    Static = 9,
24    LBRACK = 10,
25    Assembly = 11,
26    Module = 12,
27    COLON = 13,
28    COMMA = 14,
29    RBRACK = 15,
30    LPAREN = 16,
31    RPAREN = 17,
32    Field = 18,
33    Event = 19,
34    Method = 20,
35    Param = 21,
36    Property = 22,
37    Return = 23,
38    Type = 24,
39    Typevar = 25,
40    Namespace = 26,
41    Class = 27,
42    Ref = 28,
43    Struct = 29,
44    Enum = 30,
45    LBRACE = 31,
46    RBRACE = 32,
47    Interface = 33,
48    Delegate = 34,
49    Record = 35,
50    Abstract = 36,
51    Async = 37,
52    Const = 38,
53    File = 39,
54    Fixed = 40,
55    Internal = 41,
56    New = 42,
57    Override = 43,
58    Partial = 44,
59    Private = 45,
60    Protected = 46,
61    Public = 47,
62    Readonly = 48,
63    Required = 49,
64    Sealed = 50,
65    Virtual = 51,
66    Volatile = 52,
67    LT = 53,
68    GT = 54,
69    In = 55,
70    Out = 56,
71    Where = 57,
72    QMARK = 58,
73    Notnull = 59,
74    Unmanaged = 60,
75    Operator = 61,
76    Checked = 62,
77    BANG = 63,
78    TILDE = 64,
79    PLUSPLUS = 65,
80    DASHDASH = 66,
81    True = 67,
82    False = 68,
83    PLUS = 69,
84    DASH = 70,
85    STAR = 71,
86    SLASH = 72,
87    PERCENT = 73,
88    CARET = 74,
89    PIPE = 75,
90    AMP = 76,
91    LTLT = 77,
92    GTGT = 78,
93    GTGTGT = 79,
94    EQEQ = 80,
95    BANGEQ = 81,
96    GTEQ = 82,
97    LTEQ = 83,
98    Implicit = 84,
99    Explicit = 85,
100    Get = 86,
101    Set = 87,
102    Add = 88,
103    Remove = 89,
104    Init = 90,
105    This = 91,
106    DOT = 92,
107    Scoped = 93,
108    Params = 94,
109    Base = 95,
110    EQGT = 96,
111    COLONCOLON = 97,
112    Var = 98,
113    Managed = 99,
114    Cdecl = 100,
115    Stdcall = 101,
116    Thiscall = 102,
117    Fastcall = 103,
118    PredefinedType = 104,
119    Break = 105,
120    Unchecked = 106,
121    Continue = 107,
122    Do = 108,
123    While = 109,
124    For = 110,
125    Lock = 111,
126    Yield = 112,
127    Switch = 113,
128    Case = 114,
129    Default = 115,
130    Throw = 116,
131    Try = 117,
132    Catch = 118,
133    When = 119,
134    Finally = 120,
135    Await = 121,
136    Foreach = 122,
137    Goto = 123,
138    If = 124,
139    Else = 125,
140    Discard = 126,
141    DOTDOT = 127,
142    Not = 128,
143    And = 129,
144    Or = 130,
145    PLUSEQ = 131,
146    DASHEQ = 132,
147    STAREQ = 133,
148    SLASHEQ = 134,
149    PERCENTEQ = 135,
150    AMPEQ = 136,
151    CARETEQ = 137,
152    PIPEEQ = 138,
153    LTLTEQ = 139,
154    GTGTEQ = 140,
155    GTGTGTEQ = 141,
156    QMARKQMARKEQ = 142,
157    AMPAMP = 143,
158    PIPEPIPE = 144,
159    QMARKQMARK = 145,
160    From = 146,
161    Into = 147,
162    Join = 148,
163    On = 149,
164    Equals = 150,
165    Let = 151,
166    Orderby = 152,
167    Ascending = 153,
168    Descending = 154,
169    Group = 155,
170    By = 156,
171    Select = 157,
172    As = 158,
173    Is = 159,
174    InterpolationFormatClauseToken1 = 160,
175    DASHGT = 161,
176    Stackalloc = 162,
177    With = 163,
178    Sizeof = 164,
179    Typeof = 165,
180    Makeref = 166,
181    Reftype = 167,
182    Refvalue = 168,
183    NullLiteral = 169,
184    SQUOTE = 170,
185    CharacterLiteralContent = 171,
186    IntegerLiteral = 172,
187    RealLiteral = 173,
188    DQUOTE = 174,
189    StringLiteralContent = 175,
190    EscapeSequence = 176,
191    StringLiteralEncoding = 177,
192    VerbatimStringLiteral = 178,
193    RawStringLiteralToken1 = 179,
194    HASHif = 180,
195    PreprocIfToken2 = 181,
196    HASHendif = 182,
197    HASHelse = 183,
198    HASHelif = 184,
199    PreprocArg = 185,
200    HASHregion = 186,
201    HASHendregion = 187,
202    HASHline = 188,
203    Hidden = 189,
204    HASHpragma = 190,
205    Warning = 191,
206    Disable = 192,
207    Restore = 193,
208    Checksum = 194,
209    HASHnullable = 195,
210    Enable = 196,
211    Annotations = 197,
212    Warnings = 198,
213    HASHerror = 199,
214    HASHwarning = 200,
215    HASHdefine = 201,
216    HASHundef = 202,
217    ShebangDirective = 203,
218    Comment = 204,
219    OptionalSemi = 205,
220    InterpolationStart = 206,
221    InterpolationStart2 = 207,
222    InterpolationStart3 = 208,
223    DQUOTE2 = 209,
224    DQUOTE3 = 210,
225    InterpolationBrace = 211,
226    InterpolationBrace2 = 212,
227    StringContent = 213,
228    RawStringStart = 214,
229    RawStringEnd = 215,
230    RawStringContent = 216,
231    CompilationUnit = 217,
232    TopLevelItem = 218,
233    GlobalStatement = 219,
234    ExternAliasDirective = 220,
235    UsingDirective = 221,
236    GlobalAttribute = 222,
237    Attribute = 223,
238    AttributeArgumentList = 224,
239    AttributeArgument = 225,
240    AttributeList = 226,
241    AttributeList2 = 227,
242    AttributeTargetSpecifier = 228,
243    NamespaceDeclaration = 229,
244    FileScopedNamespaceDeclaration = 230,
245    TypeDeclaration = 231,
246    ClassDeclaration = 232,
247    ClassDeclarationInitializer = 233,
248    StructDeclaration = 234,
249    StructDeclarationInitializer = 235,
250    EnumDeclaration = 236,
251    EnumDeclarationInitializer = 237,
252    EnumMemberDeclarationList = 238,
253    EnumMemberDeclaration = 239,
254    InterfaceDeclaration = 240,
255    InterfaceDeclarationInitializer = 241,
256    DelegateDeclaration = 242,
257    DelegateDeclarationInitializer = 243,
258    RecordDeclaration = 244,
259    RecordDeclarationInitializer = 245,
260    BaseList = 246,
261    DeclarationListBody = 247,
262    PrimaryConstructorBaseType = 248,
263    Modifier = 249,
264    TypeParameterList = 250,
265    TypeParameter = 251,
266    BaseList2 = 252,
267    TypeParameterConstraintsClause = 253,
268    TypeParameterConstraint = 254,
269    ConstructorConstraint = 255,
270    OperatorDeclaration = 256,
271    ConversionOperatorDeclaration = 257,
272    DeclarationList = 258,
273    Declaration = 259,
274    FieldDeclaration = 260,
275    ConstructorDeclaration = 261,
276    ConstructorDeclarationInitializer = 262,
277    DestructorDeclaration = 263,
278    MethodDeclaration = 264,
279    EventDeclaration = 265,
280    EventFieldDeclaration = 266,
281    AccessorList = 267,
282    AccessorDeclaration = 268,
283    IndexerDeclaration = 269,
284    BracketedParameterList = 270,
285    PropertyDeclaration = 271,
286    ExplicitInterfaceSpecifier = 272,
287    ParameterList = 273,
288    Parameter = 274,
289    ParameterArray = 275,
290    ConstructorInitializer = 276,
291    ArgumentList = 277,
292    TuplePattern = 278,
293    Argument = 279,
294    Block = 280,
295    ArrowExpressionClause = 281,
296    FunctionBody = 282,
297    VariableDeclaration = 283,
298    VariableDeclaration2 = 284,
299    VariableDeclarator = 285,
300    VariableDeclarator2 = 286,
301    BracketedArgumentList = 287,
302    Name = 288,
303    AliasQualifiedName = 289,
304    SimpleName = 290,
305    QualifiedName = 291,
306    GenericName = 292,
307    TypeArgumentList = 293,
308    Type2 = 294,
309    ImplicitType = 295,
310    ArrayType = 296,
311    ArrayBaseType = 297,
312    ArrayRankSpecifier = 298,
313    NullableType = 299,
314    PointerType = 300,
315    PointerBaseType = 301,
316    FunctionPointerType = 302,
317    CallingConvention = 303,
318    FunctionPointerParameter = 304,
319    RefType = 305,
320    RefBaseType = 306,
321    ScopedType = 307,
322    ScopedBaseType = 308,
323    TupleType = 309,
324    TupleElement = 310,
325    Statement = 311,
326    BreakStatement = 312,
327    CheckedStatement = 313,
328    ContinueStatement = 314,
329    DoStatement = 315,
330    EmptyStatement = 316,
331    ExpressionStatement = 317,
332    FixedStatement = 318,
333    ForStatement = 319,
334    ForStatementConditions = 320,
335    ReturnStatement = 321,
336    LockStatement = 322,
337    YieldStatement = 323,
338    SwitchStatement = 324,
339    SwitchBody = 325,
340    SwitchSection = 326,
341    ThrowStatement = 327,
342    TryStatement = 328,
343    CatchClause = 329,
344    CatchDeclaration = 330,
345    CatchFilterClause = 331,
346    FinallyClause = 332,
347    UnsafeStatement = 333,
348    UsingStatement = 334,
349    ForeachStatement = 335,
350    ForeachStatementInitializer = 336,
351    GotoStatement = 337,
352    LabeledStatement = 338,
353    IfStatement = 339,
354    WhileStatement = 340,
355    LocalDeclarationStatement = 341,
356    LocalFunctionStatement = 342,
357    LocalFunctionDeclaration = 343,
358    Pattern = 344,
359    RecursivePattern = 345,
360    ConstantPattern = 346,
361    InvocationExpression = 347,
362    InvocationExpression2 = 348,
363    ParenthesizedPattern = 349,
364    VarPattern = 350,
365    TypePattern = 351,
366    ListPattern = 352,
367    RecursivePattern2 = 353,
368    PositionalPatternClause = 354,
369    PropertyPatternClause = 355,
370    Subpattern = 356,
371    RelationalPattern = 357,
372    NegatedPattern = 358,
373    AndPattern = 359,
374    OrPattern = 360,
375    DeclarationPattern = 361,
376    VariableDesignation = 362,
377    ParenthesizedVariableDesignation = 363,
378    Expression = 364,
379    NonLvalueExpression = 365,
380    LvalueExpression = 366,
381    ExpressionStatementExpression = 367,
382    AssignmentExpression = 368,
383    BinaryExpression = 369,
384    PostfixUnaryExpression = 370,
385    PrefixUnaryExpression = 371,
386    PrefixUnaryExpression2 = 372,
387    QueryExpression = 373,
388    FromClause = 374,
389    QueryBody = 375,
390    QueryClause = 376,
391    JoinClause = 377,
392    JoinHeader = 378,
393    JoinBody = 379,
394    JoinIntoClause = 380,
395    LetClause = 381,
396    OrderByClause = 382,
397    Ordering = 383,
398    WhereClause = 384,
399    SelectOrGroupClause = 385,
400    GroupClause = 386,
401    SelectClause = 387,
402    ConditionalExpression = 388,
403    ConditionalAccessExpression = 389,
404    AsExpression = 390,
405    IsExpression = 391,
406    IsPatternExpression = 392,
407    CastExpression = 393,
408    CheckedExpression = 394,
409    InvocationExpression3 = 395,
410    SwitchExpression = 396,
411    SwitchExpressionBody = 397,
412    SwitchExpressionArm = 398,
413    WhenClause = 399,
414    AwaitExpression = 400,
415    ThrowExpression = 401,
416    ElementAccessExpression = 402,
417    InterpolatedStringExpression = 403,
418    InterpolatedStringContent = 404,
419    InterpolatedVerbatimStringContent = 405,
420    InterpolatedRawStringContent = 406,
421    Interpolation = 407,
422    InterpolationAlignmentClause = 408,
423    InterpolationFormatClause = 409,
424    MemberAccessExpression = 410,
425    MemberBindingExpression = 411,
426    ObjectCreationExpression = 412,
427    ParenthesizedExpression = 413,
428    ParenthesizedExpression2 = 414,
429    LambdaExpression = 415,
430    LambdaExpressionInit = 416,
431    LambdaParameters = 417,
432    ArrayCreationExpression = 418,
433    AnonymousMethodExpression = 419,
434    AnonymousObjectCreationExpression = 420,
435    AnonymousObjectMemberDeclarator = 421,
436    ImplicitArrayCreationExpression = 422,
437    ImplicitObjectCreationExpression = 423,
438    ImplicitStackallocExpression = 424,
439    CollectionExpression = 425,
440    CollectionElement = 426,
441    ExpressionElement = 427,
442    SpreadElement = 428,
443    InitializerExpression = 429,
444    DeclarationExpression = 430,
445    DefaultExpression = 431,
446    WithExpression = 432,
447    WithBody = 433,
448    WithInitializer = 434,
449    SizeofExpression = 435,
450    TypeofExpression = 436,
451    MakerefExpression = 437,
452    RefExpression = 438,
453    ReftypeExpression = 439,
454    RefvalueExpression = 440,
455    StackallocExpression = 441,
456    RangeExpression = 442,
457    TupleExpression = 443,
458    Literal = 444,
459    CharacterLiteral = 445,
460    StringLiteral = 446,
461    RawStringLiteral = 447,
462    BooleanLiteral = 448,
463    Identifier = 449,
464    ReservedIdentifier = 450,
465    PreprocIf = 451,
466    PreprocElse = 452,
467    PreprocElif = 453,
468    PreprocIf2 = 454,
469    PreprocElse2 = 455,
470    PreprocElif2 = 456,
471    PreprocIf3 = 457,
472    PreprocElse3 = 458,
473    PreprocElif3 = 459,
474    PreprocIf4 = 460,
475    PreprocElse4 = 461,
476    PreprocElif4 = 462,
477    PreprocIfInAttributeList = 463,
478    PreprocElse5 = 464,
479    PreprocElif5 = 465,
480    PreprocExpression = 466,
481    ParenthesizedExpression3 = 467,
482    UnaryExpression = 468,
483    BinaryExpression2 = 469,
484    PreprocRegion = 470,
485    PreprocEndregion = 471,
486    PreprocLine = 472,
487    PreprocPragma = 473,
488    PreprocNullable = 474,
489    PreprocError = 475,
490    PreprocWarning = 476,
491    PreprocDefine = 477,
492    PreprocUndef = 478,
493    CompilationUnitRepeat1 = 479,
494    UsingDirectiveRepeat1 = 480,
495    GlobalAttributeRepeat1 = 481,
496    AttributeArgumentListRepeat1 = 482,
497    ClassDeclarationInitializerRepeat1 = 483,
498    ClassDeclarationInitializerRepeat2 = 484,
499    ClassDeclarationInitializerRepeat3 = 485,
500    ClassDeclarationInitializerRepeat4 = 486,
501    EnumMemberDeclarationListRepeat1 = 487,
502    RecordDeclarationInitializerRepeat1 = 488,
503    RecordBaseRepeat1 = 489,
504    TypeParameterListRepeat1 = 490,
505    BaseListRepeat1 = 491,
506    TypeParameterConstraintsClauseRepeat1 = 492,
507    ConversionOperatorDeclarationRepeat1 = 493,
508    DeclarationListRepeat1 = 494,
509    AccessorListRepeat1 = 495,
510    BracketedParameterListRepeat1 = 496,
511    ParameterTypeWithModifiersRepeat1 = 497,
512    ArgumentListRepeat1 = 498,
513    TuplePatternRepeat1 = 499,
514    BlockRepeat1 = 500,
515    VariableDeclarationRepeat1 = 501,
516    UsingVariableDeclarationRepeat1 = 502,
517    TypeArgumentListRepeat1 = 503,
518    TypeArgumentListRepeat2 = 504,
519    ArrayRankSpecifierRepeat1 = 505,
520    FunctionPointerTypeRepeat1 = 506,
521    CallingConventionRepeat1 = 507,
522    TupleTypeRepeat1 = 508,
523    ForStatementConditionsRepeat1 = 509,
524    SwitchBodyRepeat1 = 510,
525    TryStatementRepeat1 = 511,
526    CatchClauseRepeat1 = 512,
527    ListPatternRepeat1 = 513,
528    PositionalPatternClauseRepeat1 = 514,
529    ParenthesizedVariableDesignationRepeat1 = 515,
530    QueryBodyRepeat1 = 516,
531    QueryBodyRepeat2 = 517,
532    OrderByClauseRepeat1 = 518,
533    SwitchExpressionBodyRepeat1 = 519,
534    InterpolatedStringExpressionRepeat1 = 520,
535    InterpolatedStringExpressionRepeat2 = 521,
536    InterpolatedStringExpressionRepeat3 = 522,
537    LambdaExpressionInitRepeat1 = 523,
538    AnonymousObjectCreationExpressionRepeat1 = 524,
539    CollectionExpressionRepeat1 = 525,
540    WithBodyRepeat1 = 526,
541    StringLiteralRepeat1 = 527,
542    PreprocIfInTopLevelRepeat1 = 528,
543    PreprocPragmaRepeat1 = 529,
544    ElementBindingExpression = 530,
545    ImplicitParameter = 531,
546    InterpolationQuote = 532,
547    Error = 533,
548}
549
550/// Each runtime kind id of `Csharp` with tree-sitter's `named` and
551/// `visible` flags, in id order. A label for the id the enum identifies,
552/// read by the role-coverage gate; the generator's ERROR sentinel has no
553/// entry.
554pub const CSHARP_KIND_FLAGS: &[(u16, bool, bool)] = &[
555    (0, false, false),
556    (1, false, false),
557    (2, false, true),
558    (3, false, true),
559    (4, false, true),
560    (5, false, true),
561    (6, false, true),
562    (7, false, true),
563    (8, false, true),
564    (9, false, true),
565    (10, false, true),
566    (11, false, true),
567    (12, false, true),
568    (13, false, true),
569    (14, false, true),
570    (15, false, true),
571    (16, false, true),
572    (17, false, true),
573    (18, false, true),
574    (19, false, true),
575    (20, false, true),
576    (21, false, true),
577    (22, false, true),
578    (23, false, true),
579    (24, false, true),
580    (25, false, true),
581    (26, false, true),
582    (27, false, true),
583    (28, false, true),
584    (29, false, true),
585    (30, false, true),
586    (31, false, true),
587    (32, false, true),
588    (33, false, true),
589    (34, false, true),
590    (35, false, true),
591    (36, false, true),
592    (37, false, true),
593    (38, false, true),
594    (39, false, true),
595    (40, false, true),
596    (41, false, true),
597    (42, false, true),
598    (43, false, true),
599    (44, false, true),
600    (45, false, true),
601    (46, false, true),
602    (47, false, true),
603    (48, false, true),
604    (49, false, true),
605    (50, false, true),
606    (51, false, true),
607    (52, false, true),
608    (53, false, true),
609    (54, false, true),
610    (55, false, true),
611    (56, false, true),
612    (57, false, true),
613    (58, false, true),
614    (59, false, true),
615    (60, false, true),
616    (61, false, true),
617    (62, false, true),
618    (63, false, true),
619    (64, false, true),
620    (65, false, true),
621    (66, false, true),
622    (67, false, true),
623    (68, false, true),
624    (69, false, true),
625    (70, false, true),
626    (71, false, true),
627    (72, false, true),
628    (73, false, true),
629    (74, false, true),
630    (75, false, true),
631    (76, false, true),
632    (77, false, true),
633    (78, false, true),
634    (79, false, true),
635    (80, false, true),
636    (81, false, true),
637    (82, false, true),
638    (83, false, true),
639    (84, false, true),
640    (85, false, true),
641    (86, false, true),
642    (87, false, true),
643    (88, false, true),
644    (89, false, true),
645    (90, false, true),
646    (91, false, true),
647    (92, false, true),
648    (93, false, true),
649    (94, false, true),
650    (95, false, true),
651    (96, false, true),
652    (97, false, true),
653    (98, false, true),
654    (99, false, true),
655    (100, false, true),
656    (101, false, true),
657    (102, false, true),
658    (103, false, true),
659    (104, true, true),
660    (105, false, true),
661    (106, false, true),
662    (107, false, true),
663    (108, false, true),
664    (109, false, true),
665    (110, false, true),
666    (111, false, true),
667    (112, false, true),
668    (113, false, true),
669    (114, false, true),
670    (115, false, true),
671    (116, false, true),
672    (117, false, true),
673    (118, false, true),
674    (119, false, true),
675    (120, false, true),
676    (121, false, true),
677    (122, false, true),
678    (123, false, true),
679    (124, false, true),
680    (125, false, true),
681    (126, true, true),
682    (127, false, true),
683    (128, false, true),
684    (129, false, true),
685    (130, false, true),
686    (131, false, true),
687    (132, false, true),
688    (133, false, true),
689    (134, false, true),
690    (135, false, true),
691    (136, false, true),
692    (137, false, true),
693    (138, false, true),
694    (139, false, true),
695    (140, false, true),
696    (141, false, true),
697    (142, false, true),
698    (143, false, true),
699    (144, false, true),
700    (145, false, true),
701    (146, false, true),
702    (147, false, true),
703    (148, false, true),
704    (149, false, true),
705    (150, false, true),
706    (151, false, true),
707    (152, false, true),
708    (153, false, true),
709    (154, false, true),
710    (155, false, true),
711    (156, false, true),
712    (157, false, true),
713    (158, false, true),
714    (159, false, true),
715    (160, false, false),
716    (161, false, true),
717    (162, false, true),
718    (163, false, true),
719    (164, false, true),
720    (165, false, true),
721    (166, false, true),
722    (167, false, true),
723    (168, false, true),
724    (169, true, true),
725    (170, false, true),
726    (171, true, true),
727    (172, true, true),
728    (173, true, true),
729    (174, false, true),
730    (175, true, true),
731    (176, true, true),
732    (177, true, true),
733    (178, true, true),
734    (179, false, false),
735    (180, false, true),
736    (181, false, false),
737    (182, false, true),
738    (183, false, true),
739    (184, false, true),
740    (185, true, true),
741    (186, false, true),
742    (187, false, true),
743    (188, false, true),
744    (189, false, true),
745    (190, false, true),
746    (191, false, true),
747    (192, false, true),
748    (193, false, true),
749    (194, false, true),
750    (195, false, true),
751    (196, false, true),
752    (197, false, true),
753    (198, false, true),
754    (199, false, true),
755    (200, false, true),
756    (201, false, true),
757    (202, false, true),
758    (203, true, true),
759    (204, true, true),
760    (205, false, false),
761    (206, true, true),
762    (207, true, true),
763    (208, true, true),
764    (209, false, true),
765    (210, false, true),
766    (211, true, true),
767    (212, true, true),
768    (213, true, true),
769    (214, true, true),
770    (215, true, true),
771    (216, true, true),
772    (217, true, true),
773    (218, false, false),
774    (219, true, true),
775    (220, true, true),
776    (221, true, true),
777    (222, true, true),
778    (223, true, true),
779    (224, true, true),
780    (225, true, true),
781    (226, true, true),
782    (227, false, false),
783    (228, true, true),
784    (229, true, true),
785    (230, true, true),
786    (231, false, false),
787    (232, true, true),
788    (233, false, false),
789    (234, true, true),
790    (235, false, false),
791    (236, true, true),
792    (237, false, false),
793    (238, true, true),
794    (239, true, true),
795    (240, true, true),
796    (241, false, false),
797    (242, true, true),
798    (243, false, false),
799    (244, true, true),
800    (245, false, false),
801    (246, true, true),
802    (247, false, false),
803    (248, true, true),
804    (249, true, true),
805    (250, true, true),
806    (251, true, true),
807    (252, true, true),
808    (253, true, true),
809    (254, true, true),
810    (255, true, true),
811    (256, true, true),
812    (257, true, true),
813    (258, true, true),
814    (259, false, false),
815    (260, true, true),
816    (261, true, true),
817    (262, false, false),
818    (263, true, true),
819    (264, true, true),
820    (265, true, true),
821    (266, true, true),
822    (267, true, true),
823    (268, true, true),
824    (269, true, true),
825    (270, true, true),
826    (271, true, true),
827    (272, true, true),
828    (273, true, true),
829    (274, true, true),
830    (275, false, false),
831    (276, true, true),
832    (277, true, true),
833    (278, true, true),
834    (279, true, true),
835    (280, true, true),
836    (281, true, true),
837    (282, false, false),
838    (283, true, true),
839    (284, true, true),
840    (285, true, true),
841    (286, true, true),
842    (287, true, true),
843    (288, false, false),
844    (289, true, true),
845    (290, false, false),
846    (291, true, true),
847    (292, true, true),
848    (293, true, true),
849    (294, false, false),
850    (295, true, true),
851    (296, true, true),
852    (297, false, false),
853    (298, true, true),
854    (299, true, true),
855    (300, true, true),
856    (301, false, false),
857    (302, true, true),
858    (303, true, true),
859    (304, true, true),
860    (305, true, true),
861    (306, false, false),
862    (307, true, true),
863    (308, false, false),
864    (309, true, true),
865    (310, true, true),
866    (311, false, false),
867    (312, true, true),
868    (313, true, true),
869    (314, true, true),
870    (315, true, true),
871    (316, true, true),
872    (317, true, true),
873    (318, true, true),
874    (319, true, true),
875    (320, false, false),
876    (321, true, true),
877    (322, true, true),
878    (323, true, true),
879    (324, true, true),
880    (325, true, true),
881    (326, true, true),
882    (327, true, true),
883    (328, true, true),
884    (329, true, true),
885    (330, true, true),
886    (331, true, true),
887    (332, true, true),
888    (333, true, true),
889    (334, true, true),
890    (335, true, true),
891    (336, false, false),
892    (337, true, true),
893    (338, true, true),
894    (339, true, true),
895    (340, true, true),
896    (341, true, true),
897    (342, true, true),
898    (343, false, false),
899    (344, false, false),
900    (345, true, true),
901    (346, true, true),
902    (347, true, true),
903    (348, true, true),
904    (349, true, true),
905    (350, true, true),
906    (351, true, true),
907    (352, true, true),
908    (353, true, true),
909    (354, true, true),
910    (355, true, true),
911    (356, true, true),
912    (357, true, true),
913    (358, true, true),
914    (359, true, true),
915    (360, true, true),
916    (361, true, true),
917    (362, false, false),
918    (363, true, true),
919    (364, false, false),
920    (365, false, false),
921    (366, false, false),
922    (367, false, false),
923    (368, true, true),
924    (369, true, true),
925    (370, true, true),
926    (371, true, true),
927    (372, true, true),
928    (373, true, true),
929    (374, true, true),
930    (375, false, false),
931    (376, false, false),
932    (377, true, true),
933    (378, false, false),
934    (379, false, false),
935    (380, true, true),
936    (381, true, true),
937    (382, true, true),
938    (383, false, false),
939    (384, true, true),
940    (385, false, false),
941    (386, true, true),
942    (387, true, true),
943    (388, true, true),
944    (389, true, true),
945    (390, true, true),
946    (391, true, true),
947    (392, true, true),
948    (393, true, true),
949    (394, true, true),
950    (395, true, true),
951    (396, true, true),
952    (397, false, false),
953    (398, true, true),
954    (399, true, true),
955    (400, true, true),
956    (401, true, true),
957    (402, true, true),
958    (403, true, true),
959    (404, false, false),
960    (405, false, false),
961    (406, false, false),
962    (407, true, true),
963    (408, true, true),
964    (409, true, true),
965    (410, true, true),
966    (411, true, true),
967    (412, true, true),
968    (413, true, true),
969    (414, true, true),
970    (415, true, true),
971    (416, false, false),
972    (417, false, false),
973    (418, true, true),
974    (419, true, true),
975    (420, true, true),
976    (421, false, false),
977    (422, true, true),
978    (423, true, true),
979    (424, true, true),
980    (425, true, true),
981    (426, true, true),
982    (427, true, true),
983    (428, true, true),
984    (429, true, true),
985    (430, true, true),
986    (431, true, true),
987    (432, true, true),
988    (433, false, false),
989    (434, true, true),
990    (435, true, true),
991    (436, true, true),
992    (437, true, true),
993    (438, true, true),
994    (439, true, true),
995    (440, true, true),
996    (441, true, true),
997    (442, true, true),
998    (443, true, true),
999    (444, false, false),
1000    (445, true, true),
1001    (446, true, true),
1002    (447, true, true),
1003    (448, true, true),
1004    (449, true, true),
1005    (450, false, false),
1006    (451, true, true),
1007    (452, true, true),
1008    (453, true, true),
1009    (454, true, true),
1010    (455, true, true),
1011    (456, true, true),
1012    (457, true, true),
1013    (458, true, true),
1014    (459, true, true),
1015    (460, true, true),
1016    (461, true, true),
1017    (462, true, true),
1018    (463, true, true),
1019    (464, true, true),
1020    (465, true, true),
1021    (466, false, false),
1022    (467, true, true),
1023    (468, true, true),
1024    (469, true, true),
1025    (470, true, true),
1026    (471, true, true),
1027    (472, true, true),
1028    (473, true, true),
1029    (474, true, true),
1030    (475, true, true),
1031    (476, true, true),
1032    (477, true, true),
1033    (478, true, true),
1034    (479, false, false),
1035    (480, false, false),
1036    (481, false, false),
1037    (482, false, false),
1038    (483, false, false),
1039    (484, false, false),
1040    (485, false, false),
1041    (486, false, false),
1042    (487, false, false),
1043    (488, false, false),
1044    (489, false, false),
1045    (490, false, false),
1046    (491, false, false),
1047    (492, false, false),
1048    (493, false, false),
1049    (494, false, false),
1050    (495, false, false),
1051    (496, false, false),
1052    (497, false, false),
1053    (498, false, false),
1054    (499, false, false),
1055    (500, false, false),
1056    (501, false, false),
1057    (502, false, false),
1058    (503, false, false),
1059    (504, false, false),
1060    (505, false, false),
1061    (506, false, false),
1062    (507, false, false),
1063    (508, false, false),
1064    (509, false, false),
1065    (510, false, false),
1066    (511, false, false),
1067    (512, false, false),
1068    (513, false, false),
1069    (514, false, false),
1070    (515, false, false),
1071    (516, false, false),
1072    (517, false, false),
1073    (518, false, false),
1074    (519, false, false),
1075    (520, false, false),
1076    (521, false, false),
1077    (522, false, false),
1078    (523, false, false),
1079    (524, false, false),
1080    (525, false, false),
1081    (526, false, false),
1082    (527, false, false),
1083    (528, false, false),
1084    (529, false, false),
1085    (530, true, true),
1086    (531, true, true),
1087    (532, true, true),
1088];
1089
1090impl From<Csharp> for &'static str {
1091    #[inline]
1092    fn from(tok: Csharp) -> Self {
1093        match tok {
1094            Csharp::End => "end",
1095            Csharp::IdentifierToken => "_identifier_token",
1096            Csharp::Extern => "extern",
1097            Csharp::Alias => "alias",
1098            Csharp::SEMI => ";",
1099            Csharp::Global => "global",
1100            Csharp::Using => "using",
1101            Csharp::Unsafe => "unsafe",
1102            Csharp::EQ => "=",
1103            Csharp::Static => "static",
1104            Csharp::LBRACK => "[",
1105            Csharp::Assembly => "assembly",
1106            Csharp::Module => "module",
1107            Csharp::COLON => ":",
1108            Csharp::COMMA => ",",
1109            Csharp::RBRACK => "]",
1110            Csharp::LPAREN => "(",
1111            Csharp::RPAREN => ")",
1112            Csharp::Field => "field",
1113            Csharp::Event => "event",
1114            Csharp::Method => "method",
1115            Csharp::Param => "param",
1116            Csharp::Property => "property",
1117            Csharp::Return => "return",
1118            Csharp::Type => "type",
1119            Csharp::Typevar => "typevar",
1120            Csharp::Namespace => "namespace",
1121            Csharp::Class => "class",
1122            Csharp::Ref => "ref",
1123            Csharp::Struct => "struct",
1124            Csharp::Enum => "enum",
1125            Csharp::LBRACE => "{",
1126            Csharp::RBRACE => "}",
1127            Csharp::Interface => "interface",
1128            Csharp::Delegate => "delegate",
1129            Csharp::Record => "record",
1130            Csharp::Abstract => "abstract",
1131            Csharp::Async => "async",
1132            Csharp::Const => "const",
1133            Csharp::File => "file",
1134            Csharp::Fixed => "fixed",
1135            Csharp::Internal => "internal",
1136            Csharp::New => "new",
1137            Csharp::Override => "override",
1138            Csharp::Partial => "partial",
1139            Csharp::Private => "private",
1140            Csharp::Protected => "protected",
1141            Csharp::Public => "public",
1142            Csharp::Readonly => "readonly",
1143            Csharp::Required => "required",
1144            Csharp::Sealed => "sealed",
1145            Csharp::Virtual => "virtual",
1146            Csharp::Volatile => "volatile",
1147            Csharp::LT => "<",
1148            Csharp::GT => ">",
1149            Csharp::In => "in",
1150            Csharp::Out => "out",
1151            Csharp::Where => "where",
1152            Csharp::QMARK => "?",
1153            Csharp::Notnull => "notnull",
1154            Csharp::Unmanaged => "unmanaged",
1155            Csharp::Operator => "operator",
1156            Csharp::Checked => "checked",
1157            Csharp::BANG => "!",
1158            Csharp::TILDE => "~",
1159            Csharp::PLUSPLUS => "++",
1160            Csharp::DASHDASH => "--",
1161            Csharp::True => "true",
1162            Csharp::False => "false",
1163            Csharp::PLUS => "+",
1164            Csharp::DASH => "-",
1165            Csharp::STAR => "*",
1166            Csharp::SLASH => "/",
1167            Csharp::PERCENT => "%",
1168            Csharp::CARET => "^",
1169            Csharp::PIPE => "|",
1170            Csharp::AMP => "&",
1171            Csharp::LTLT => "<<",
1172            Csharp::GTGT => ">>",
1173            Csharp::GTGTGT => ">>>",
1174            Csharp::EQEQ => "==",
1175            Csharp::BANGEQ => "!=",
1176            Csharp::GTEQ => ">=",
1177            Csharp::LTEQ => "<=",
1178            Csharp::Implicit => "implicit",
1179            Csharp::Explicit => "explicit",
1180            Csharp::Get => "get",
1181            Csharp::Set => "set",
1182            Csharp::Add => "add",
1183            Csharp::Remove => "remove",
1184            Csharp::Init => "init",
1185            Csharp::This => "this",
1186            Csharp::DOT => ".",
1187            Csharp::Scoped => "scoped",
1188            Csharp::Params => "params",
1189            Csharp::Base => "base",
1190            Csharp::EQGT => "=>",
1191            Csharp::COLONCOLON => "::",
1192            Csharp::Var => "var",
1193            Csharp::Managed => "managed",
1194            Csharp::Cdecl => "Cdecl",
1195            Csharp::Stdcall => "Stdcall",
1196            Csharp::Thiscall => "Thiscall",
1197            Csharp::Fastcall => "Fastcall",
1198            Csharp::PredefinedType => "predefined_type",
1199            Csharp::Break => "break",
1200            Csharp::Unchecked => "unchecked",
1201            Csharp::Continue => "continue",
1202            Csharp::Do => "do",
1203            Csharp::While => "while",
1204            Csharp::For => "for",
1205            Csharp::Lock => "lock",
1206            Csharp::Yield => "yield",
1207            Csharp::Switch => "switch",
1208            Csharp::Case => "case",
1209            Csharp::Default => "default",
1210            Csharp::Throw => "throw",
1211            Csharp::Try => "try",
1212            Csharp::Catch => "catch",
1213            Csharp::When => "when",
1214            Csharp::Finally => "finally",
1215            Csharp::Await => "await",
1216            Csharp::Foreach => "foreach",
1217            Csharp::Goto => "goto",
1218            Csharp::If => "if",
1219            Csharp::Else => "else",
1220            Csharp::Discard => "discard",
1221            Csharp::DOTDOT => "..",
1222            Csharp::Not => "not",
1223            Csharp::And => "and",
1224            Csharp::Or => "or",
1225            Csharp::PLUSEQ => "+=",
1226            Csharp::DASHEQ => "-=",
1227            Csharp::STAREQ => "*=",
1228            Csharp::SLASHEQ => "/=",
1229            Csharp::PERCENTEQ => "%=",
1230            Csharp::AMPEQ => "&=",
1231            Csharp::CARETEQ => "^=",
1232            Csharp::PIPEEQ => "|=",
1233            Csharp::LTLTEQ => "<<=",
1234            Csharp::GTGTEQ => ">>=",
1235            Csharp::GTGTGTEQ => ">>>=",
1236            Csharp::QMARKQMARKEQ => "??=",
1237            Csharp::AMPAMP => "&&",
1238            Csharp::PIPEPIPE => "||",
1239            Csharp::QMARKQMARK => "??",
1240            Csharp::From => "from",
1241            Csharp::Into => "into",
1242            Csharp::Join => "join",
1243            Csharp::On => "on",
1244            Csharp::Equals => "equals",
1245            Csharp::Let => "let",
1246            Csharp::Orderby => "orderby",
1247            Csharp::Ascending => "ascending",
1248            Csharp::Descending => "descending",
1249            Csharp::Group => "group",
1250            Csharp::By => "by",
1251            Csharp::Select => "select",
1252            Csharp::As => "as",
1253            Csharp::Is => "is",
1254            Csharp::InterpolationFormatClauseToken1 => "interpolation_format_clause_token1",
1255            Csharp::DASHGT => "->",
1256            Csharp::Stackalloc => "stackalloc",
1257            Csharp::With => "with",
1258            Csharp::Sizeof => "sizeof",
1259            Csharp::Typeof => "typeof",
1260            Csharp::Makeref => "__makeref",
1261            Csharp::Reftype => "__reftype",
1262            Csharp::Refvalue => "__refvalue",
1263            Csharp::NullLiteral => "null_literal",
1264            Csharp::SQUOTE => "'",
1265            Csharp::CharacterLiteralContent => "character_literal_content",
1266            Csharp::IntegerLiteral => "integer_literal",
1267            Csharp::RealLiteral => "real_literal",
1268            Csharp::DQUOTE => "\"",
1269            Csharp::StringLiteralContent => "string_literal_content",
1270            Csharp::EscapeSequence => "escape_sequence",
1271            Csharp::StringLiteralEncoding => "string_literal_encoding",
1272            Csharp::VerbatimStringLiteral => "verbatim_string_literal",
1273            Csharp::RawStringLiteralToken1 => "raw_string_literal_token1",
1274            Csharp::HASHif => "#if",
1275            Csharp::PreprocIfToken2 => "preproc_if_token2",
1276            Csharp::HASHendif => "#endif",
1277            Csharp::HASHelse => "#else",
1278            Csharp::HASHelif => "#elif",
1279            Csharp::PreprocArg => "preproc_arg",
1280            Csharp::HASHregion => "#region",
1281            Csharp::HASHendregion => "#endregion",
1282            Csharp::HASHline => "#line",
1283            Csharp::Hidden => "hidden",
1284            Csharp::HASHpragma => "#pragma",
1285            Csharp::Warning => "warning",
1286            Csharp::Disable => "disable",
1287            Csharp::Restore => "restore",
1288            Csharp::Checksum => "checksum",
1289            Csharp::HASHnullable => "#nullable",
1290            Csharp::Enable => "enable",
1291            Csharp::Annotations => "annotations",
1292            Csharp::Warnings => "warnings",
1293            Csharp::HASHerror => "#error",
1294            Csharp::HASHwarning => "#warning",
1295            Csharp::HASHdefine => "#define",
1296            Csharp::HASHundef => "#undef",
1297            Csharp::ShebangDirective => "shebang_directive",
1298            Csharp::Comment => "comment",
1299            Csharp::OptionalSemi => "_optional_semi",
1300            Csharp::InterpolationStart => "interpolation_start",
1301            Csharp::InterpolationStart2 => "interpolation_start",
1302            Csharp::InterpolationStart3 => "interpolation_start",
1303            Csharp::DQUOTE2 => "\"",
1304            Csharp::DQUOTE3 => "\"",
1305            Csharp::InterpolationBrace => "interpolation_brace",
1306            Csharp::InterpolationBrace2 => "interpolation_brace",
1307            Csharp::StringContent => "string_content",
1308            Csharp::RawStringStart => "raw_string_start",
1309            Csharp::RawStringEnd => "raw_string_end",
1310            Csharp::RawStringContent => "raw_string_content",
1311            Csharp::CompilationUnit => "compilation_unit",
1312            Csharp::TopLevelItem => "_top_level_item",
1313            Csharp::GlobalStatement => "global_statement",
1314            Csharp::ExternAliasDirective => "extern_alias_directive",
1315            Csharp::UsingDirective => "using_directive",
1316            Csharp::GlobalAttribute => "global_attribute",
1317            Csharp::Attribute => "attribute",
1318            Csharp::AttributeArgumentList => "attribute_argument_list",
1319            Csharp::AttributeArgument => "attribute_argument",
1320            Csharp::AttributeList => "attribute_list",
1321            Csharp::AttributeList2 => "_attribute_list",
1322            Csharp::AttributeTargetSpecifier => "attribute_target_specifier",
1323            Csharp::NamespaceDeclaration => "namespace_declaration",
1324            Csharp::FileScopedNamespaceDeclaration => "file_scoped_namespace_declaration",
1325            Csharp::TypeDeclaration => "type_declaration",
1326            Csharp::ClassDeclaration => "class_declaration",
1327            Csharp::ClassDeclarationInitializer => "_class_declaration_initializer",
1328            Csharp::StructDeclaration => "struct_declaration",
1329            Csharp::StructDeclarationInitializer => "_struct_declaration_initializer",
1330            Csharp::EnumDeclaration => "enum_declaration",
1331            Csharp::EnumDeclarationInitializer => "_enum_declaration_initializer",
1332            Csharp::EnumMemberDeclarationList => "enum_member_declaration_list",
1333            Csharp::EnumMemberDeclaration => "enum_member_declaration",
1334            Csharp::InterfaceDeclaration => "interface_declaration",
1335            Csharp::InterfaceDeclarationInitializer => "_interface_declaration_initializer",
1336            Csharp::DelegateDeclaration => "delegate_declaration",
1337            Csharp::DelegateDeclarationInitializer => "_delegate_declaration_initializer",
1338            Csharp::RecordDeclaration => "record_declaration",
1339            Csharp::RecordDeclarationInitializer => "_record_declaration_initializer",
1340            Csharp::BaseList => "base_list",
1341            Csharp::DeclarationListBody => "_declaration_list_body",
1342            Csharp::PrimaryConstructorBaseType => "primary_constructor_base_type",
1343            Csharp::Modifier => "modifier",
1344            Csharp::TypeParameterList => "type_parameter_list",
1345            Csharp::TypeParameter => "type_parameter",
1346            Csharp::BaseList2 => "base_list",
1347            Csharp::TypeParameterConstraintsClause => "type_parameter_constraints_clause",
1348            Csharp::TypeParameterConstraint => "type_parameter_constraint",
1349            Csharp::ConstructorConstraint => "constructor_constraint",
1350            Csharp::OperatorDeclaration => "operator_declaration",
1351            Csharp::ConversionOperatorDeclaration => "conversion_operator_declaration",
1352            Csharp::DeclarationList => "declaration_list",
1353            Csharp::Declaration => "declaration",
1354            Csharp::FieldDeclaration => "field_declaration",
1355            Csharp::ConstructorDeclaration => "constructor_declaration",
1356            Csharp::ConstructorDeclarationInitializer => "_constructor_declaration_initializer",
1357            Csharp::DestructorDeclaration => "destructor_declaration",
1358            Csharp::MethodDeclaration => "method_declaration",
1359            Csharp::EventDeclaration => "event_declaration",
1360            Csharp::EventFieldDeclaration => "event_field_declaration",
1361            Csharp::AccessorList => "accessor_list",
1362            Csharp::AccessorDeclaration => "accessor_declaration",
1363            Csharp::IndexerDeclaration => "indexer_declaration",
1364            Csharp::BracketedParameterList => "bracketed_parameter_list",
1365            Csharp::PropertyDeclaration => "property_declaration",
1366            Csharp::ExplicitInterfaceSpecifier => "explicit_interface_specifier",
1367            Csharp::ParameterList => "parameter_list",
1368            Csharp::Parameter => "parameter",
1369            Csharp::ParameterArray => "_parameter_array",
1370            Csharp::ConstructorInitializer => "constructor_initializer",
1371            Csharp::ArgumentList => "argument_list",
1372            Csharp::TuplePattern => "tuple_pattern",
1373            Csharp::Argument => "argument",
1374            Csharp::Block => "block",
1375            Csharp::ArrowExpressionClause => "arrow_expression_clause",
1376            Csharp::FunctionBody => "_function_body",
1377            Csharp::VariableDeclaration => "variable_declaration",
1378            Csharp::VariableDeclaration2 => "variable_declaration",
1379            Csharp::VariableDeclarator => "variable_declarator",
1380            Csharp::VariableDeclarator2 => "variable_declarator",
1381            Csharp::BracketedArgumentList => "bracketed_argument_list",
1382            Csharp::Name => "_name",
1383            Csharp::AliasQualifiedName => "alias_qualified_name",
1384            Csharp::SimpleName => "_simple_name",
1385            Csharp::QualifiedName => "qualified_name",
1386            Csharp::GenericName => "generic_name",
1387            Csharp::TypeArgumentList => "type_argument_list",
1388            Csharp::Type2 => "type",
1389            Csharp::ImplicitType => "implicit_type",
1390            Csharp::ArrayType => "array_type",
1391            Csharp::ArrayBaseType => "_array_base_type",
1392            Csharp::ArrayRankSpecifier => "array_rank_specifier",
1393            Csharp::NullableType => "nullable_type",
1394            Csharp::PointerType => "pointer_type",
1395            Csharp::PointerBaseType => "_pointer_base_type",
1396            Csharp::FunctionPointerType => "function_pointer_type",
1397            Csharp::CallingConvention => "calling_convention",
1398            Csharp::FunctionPointerParameter => "function_pointer_parameter",
1399            Csharp::RefType => "ref_type",
1400            Csharp::RefBaseType => "_ref_base_type",
1401            Csharp::ScopedType => "scoped_type",
1402            Csharp::ScopedBaseType => "_scoped_base_type",
1403            Csharp::TupleType => "tuple_type",
1404            Csharp::TupleElement => "tuple_element",
1405            Csharp::Statement => "statement",
1406            Csharp::BreakStatement => "break_statement",
1407            Csharp::CheckedStatement => "checked_statement",
1408            Csharp::ContinueStatement => "continue_statement",
1409            Csharp::DoStatement => "do_statement",
1410            Csharp::EmptyStatement => "empty_statement",
1411            Csharp::ExpressionStatement => "expression_statement",
1412            Csharp::FixedStatement => "fixed_statement",
1413            Csharp::ForStatement => "for_statement",
1414            Csharp::ForStatementConditions => "_for_statement_conditions",
1415            Csharp::ReturnStatement => "return_statement",
1416            Csharp::LockStatement => "lock_statement",
1417            Csharp::YieldStatement => "yield_statement",
1418            Csharp::SwitchStatement => "switch_statement",
1419            Csharp::SwitchBody => "switch_body",
1420            Csharp::SwitchSection => "switch_section",
1421            Csharp::ThrowStatement => "throw_statement",
1422            Csharp::TryStatement => "try_statement",
1423            Csharp::CatchClause => "catch_clause",
1424            Csharp::CatchDeclaration => "catch_declaration",
1425            Csharp::CatchFilterClause => "catch_filter_clause",
1426            Csharp::FinallyClause => "finally_clause",
1427            Csharp::UnsafeStatement => "unsafe_statement",
1428            Csharp::UsingStatement => "using_statement",
1429            Csharp::ForeachStatement => "foreach_statement",
1430            Csharp::ForeachStatementInitializer => "_foreach_statement_initializer",
1431            Csharp::GotoStatement => "goto_statement",
1432            Csharp::LabeledStatement => "labeled_statement",
1433            Csharp::IfStatement => "if_statement",
1434            Csharp::WhileStatement => "while_statement",
1435            Csharp::LocalDeclarationStatement => "local_declaration_statement",
1436            Csharp::LocalFunctionStatement => "local_function_statement",
1437            Csharp::LocalFunctionDeclaration => "_local_function_declaration",
1438            Csharp::Pattern => "pattern",
1439            Csharp::RecursivePattern => "recursive_pattern",
1440            Csharp::ConstantPattern => "constant_pattern",
1441            Csharp::InvocationExpression => "invocation_expression",
1442            Csharp::InvocationExpression2 => "invocation_expression",
1443            Csharp::ParenthesizedPattern => "parenthesized_pattern",
1444            Csharp::VarPattern => "var_pattern",
1445            Csharp::TypePattern => "type_pattern",
1446            Csharp::ListPattern => "list_pattern",
1447            Csharp::RecursivePattern2 => "recursive_pattern",
1448            Csharp::PositionalPatternClause => "positional_pattern_clause",
1449            Csharp::PropertyPatternClause => "property_pattern_clause",
1450            Csharp::Subpattern => "subpattern",
1451            Csharp::RelationalPattern => "relational_pattern",
1452            Csharp::NegatedPattern => "negated_pattern",
1453            Csharp::AndPattern => "and_pattern",
1454            Csharp::OrPattern => "or_pattern",
1455            Csharp::DeclarationPattern => "declaration_pattern",
1456            Csharp::VariableDesignation => "_variable_designation",
1457            Csharp::ParenthesizedVariableDesignation => "parenthesized_variable_designation",
1458            Csharp::Expression => "expression",
1459            Csharp::NonLvalueExpression => "non_lvalue_expression",
1460            Csharp::LvalueExpression => "lvalue_expression",
1461            Csharp::ExpressionStatementExpression => "_expression_statement_expression",
1462            Csharp::AssignmentExpression => "assignment_expression",
1463            Csharp::BinaryExpression => "binary_expression",
1464            Csharp::PostfixUnaryExpression => "postfix_unary_expression",
1465            Csharp::PrefixUnaryExpression => "prefix_unary_expression",
1466            Csharp::PrefixUnaryExpression2 => "prefix_unary_expression",
1467            Csharp::QueryExpression => "query_expression",
1468            Csharp::FromClause => "from_clause",
1469            Csharp::QueryBody => "_query_body",
1470            Csharp::QueryClause => "_query_clause",
1471            Csharp::JoinClause => "join_clause",
1472            Csharp::JoinHeader => "_join_header",
1473            Csharp::JoinBody => "_join_body",
1474            Csharp::JoinIntoClause => "join_into_clause",
1475            Csharp::LetClause => "let_clause",
1476            Csharp::OrderByClause => "order_by_clause",
1477            Csharp::Ordering => "_ordering",
1478            Csharp::WhereClause => "where_clause",
1479            Csharp::SelectOrGroupClause => "_select_or_group_clause",
1480            Csharp::GroupClause => "group_clause",
1481            Csharp::SelectClause => "select_clause",
1482            Csharp::ConditionalExpression => "conditional_expression",
1483            Csharp::ConditionalAccessExpression => "conditional_access_expression",
1484            Csharp::AsExpression => "as_expression",
1485            Csharp::IsExpression => "is_expression",
1486            Csharp::IsPatternExpression => "is_pattern_expression",
1487            Csharp::CastExpression => "cast_expression",
1488            Csharp::CheckedExpression => "checked_expression",
1489            Csharp::InvocationExpression3 => "invocation_expression",
1490            Csharp::SwitchExpression => "switch_expression",
1491            Csharp::SwitchExpressionBody => "_switch_expression_body",
1492            Csharp::SwitchExpressionArm => "switch_expression_arm",
1493            Csharp::WhenClause => "when_clause",
1494            Csharp::AwaitExpression => "await_expression",
1495            Csharp::ThrowExpression => "throw_expression",
1496            Csharp::ElementAccessExpression => "element_access_expression",
1497            Csharp::InterpolatedStringExpression => "interpolated_string_expression",
1498            Csharp::InterpolatedStringContent => "_interpolated_string_content",
1499            Csharp::InterpolatedVerbatimStringContent => "_interpolated_verbatim_string_content",
1500            Csharp::InterpolatedRawStringContent => "_interpolated_raw_string_content",
1501            Csharp::Interpolation => "interpolation",
1502            Csharp::InterpolationAlignmentClause => "interpolation_alignment_clause",
1503            Csharp::InterpolationFormatClause => "interpolation_format_clause",
1504            Csharp::MemberAccessExpression => "member_access_expression",
1505            Csharp::MemberBindingExpression => "member_binding_expression",
1506            Csharp::ObjectCreationExpression => "object_creation_expression",
1507            Csharp::ParenthesizedExpression => "parenthesized_expression",
1508            Csharp::ParenthesizedExpression2 => "parenthesized_expression",
1509            Csharp::LambdaExpression => "lambda_expression",
1510            Csharp::LambdaExpressionInit => "_lambda_expression_init",
1511            Csharp::LambdaParameters => "_lambda_parameters",
1512            Csharp::ArrayCreationExpression => "array_creation_expression",
1513            Csharp::AnonymousMethodExpression => "anonymous_method_expression",
1514            Csharp::AnonymousObjectCreationExpression => "anonymous_object_creation_expression",
1515            Csharp::AnonymousObjectMemberDeclarator => "_anonymous_object_member_declarator",
1516            Csharp::ImplicitArrayCreationExpression => "implicit_array_creation_expression",
1517            Csharp::ImplicitObjectCreationExpression => "implicit_object_creation_expression",
1518            Csharp::ImplicitStackallocExpression => "implicit_stackalloc_expression",
1519            Csharp::CollectionExpression => "collection_expression",
1520            Csharp::CollectionElement => "collection_element",
1521            Csharp::ExpressionElement => "expression_element",
1522            Csharp::SpreadElement => "spread_element",
1523            Csharp::InitializerExpression => "initializer_expression",
1524            Csharp::DeclarationExpression => "declaration_expression",
1525            Csharp::DefaultExpression => "default_expression",
1526            Csharp::WithExpression => "with_expression",
1527            Csharp::WithBody => "_with_body",
1528            Csharp::WithInitializer => "with_initializer",
1529            Csharp::SizeofExpression => "sizeof_expression",
1530            Csharp::TypeofExpression => "typeof_expression",
1531            Csharp::MakerefExpression => "makeref_expression",
1532            Csharp::RefExpression => "ref_expression",
1533            Csharp::ReftypeExpression => "reftype_expression",
1534            Csharp::RefvalueExpression => "refvalue_expression",
1535            Csharp::StackallocExpression => "stackalloc_expression",
1536            Csharp::RangeExpression => "range_expression",
1537            Csharp::TupleExpression => "tuple_expression",
1538            Csharp::Literal => "literal",
1539            Csharp::CharacterLiteral => "character_literal",
1540            Csharp::StringLiteral => "string_literal",
1541            Csharp::RawStringLiteral => "raw_string_literal",
1542            Csharp::BooleanLiteral => "boolean_literal",
1543            Csharp::Identifier => "identifier",
1544            Csharp::ReservedIdentifier => "_reserved_identifier",
1545            Csharp::PreprocIf => "preproc_if",
1546            Csharp::PreprocElse => "preproc_else",
1547            Csharp::PreprocElif => "preproc_elif",
1548            Csharp::PreprocIf2 => "preproc_if",
1549            Csharp::PreprocElse2 => "preproc_else",
1550            Csharp::PreprocElif2 => "preproc_elif",
1551            Csharp::PreprocIf3 => "preproc_if",
1552            Csharp::PreprocElse3 => "preproc_else",
1553            Csharp::PreprocElif3 => "preproc_elif",
1554            Csharp::PreprocIf4 => "preproc_if",
1555            Csharp::PreprocElse4 => "preproc_else",
1556            Csharp::PreprocElif4 => "preproc_elif",
1557            Csharp::PreprocIfInAttributeList => "preproc_if_in_attribute_list",
1558            Csharp::PreprocElse5 => "preproc_else",
1559            Csharp::PreprocElif5 => "preproc_elif",
1560            Csharp::PreprocExpression => "_preproc_expression",
1561            Csharp::ParenthesizedExpression3 => "parenthesized_expression",
1562            Csharp::UnaryExpression => "unary_expression",
1563            Csharp::BinaryExpression2 => "binary_expression",
1564            Csharp::PreprocRegion => "preproc_region",
1565            Csharp::PreprocEndregion => "preproc_endregion",
1566            Csharp::PreprocLine => "preproc_line",
1567            Csharp::PreprocPragma => "preproc_pragma",
1568            Csharp::PreprocNullable => "preproc_nullable",
1569            Csharp::PreprocError => "preproc_error",
1570            Csharp::PreprocWarning => "preproc_warning",
1571            Csharp::PreprocDefine => "preproc_define",
1572            Csharp::PreprocUndef => "preproc_undef",
1573            Csharp::CompilationUnitRepeat1 => "compilation_unit_repeat1",
1574            Csharp::UsingDirectiveRepeat1 => "using_directive_repeat1",
1575            Csharp::GlobalAttributeRepeat1 => "global_attribute_repeat1",
1576            Csharp::AttributeArgumentListRepeat1 => "attribute_argument_list_repeat1",
1577            Csharp::ClassDeclarationInitializerRepeat1 => "_class_declaration_initializer_repeat1",
1578            Csharp::ClassDeclarationInitializerRepeat2 => "_class_declaration_initializer_repeat2",
1579            Csharp::ClassDeclarationInitializerRepeat3 => "_class_declaration_initializer_repeat3",
1580            Csharp::ClassDeclarationInitializerRepeat4 => "_class_declaration_initializer_repeat4",
1581            Csharp::EnumMemberDeclarationListRepeat1 => "enum_member_declaration_list_repeat1",
1582            Csharp::RecordDeclarationInitializerRepeat1 => {
1583                "_record_declaration_initializer_repeat1"
1584            }
1585            Csharp::RecordBaseRepeat1 => "record_base_repeat1",
1586            Csharp::TypeParameterListRepeat1 => "type_parameter_list_repeat1",
1587            Csharp::BaseListRepeat1 => "base_list_repeat1",
1588            Csharp::TypeParameterConstraintsClauseRepeat1 => {
1589                "type_parameter_constraints_clause_repeat1"
1590            }
1591            Csharp::ConversionOperatorDeclarationRepeat1 => {
1592                "conversion_operator_declaration_repeat1"
1593            }
1594            Csharp::DeclarationListRepeat1 => "declaration_list_repeat1",
1595            Csharp::AccessorListRepeat1 => "accessor_list_repeat1",
1596            Csharp::BracketedParameterListRepeat1 => "bracketed_parameter_list_repeat1",
1597            Csharp::ParameterTypeWithModifiersRepeat1 => "_parameter_type_with_modifiers_repeat1",
1598            Csharp::ArgumentListRepeat1 => "argument_list_repeat1",
1599            Csharp::TuplePatternRepeat1 => "tuple_pattern_repeat1",
1600            Csharp::BlockRepeat1 => "block_repeat1",
1601            Csharp::VariableDeclarationRepeat1 => "variable_declaration_repeat1",
1602            Csharp::UsingVariableDeclarationRepeat1 => "using_variable_declaration_repeat1",
1603            Csharp::TypeArgumentListRepeat1 => "type_argument_list_repeat1",
1604            Csharp::TypeArgumentListRepeat2 => "type_argument_list_repeat2",
1605            Csharp::ArrayRankSpecifierRepeat1 => "array_rank_specifier_repeat1",
1606            Csharp::FunctionPointerTypeRepeat1 => "function_pointer_type_repeat1",
1607            Csharp::CallingConventionRepeat1 => "calling_convention_repeat1",
1608            Csharp::TupleTypeRepeat1 => "tuple_type_repeat1",
1609            Csharp::ForStatementConditionsRepeat1 => "_for_statement_conditions_repeat1",
1610            Csharp::SwitchBodyRepeat1 => "switch_body_repeat1",
1611            Csharp::TryStatementRepeat1 => "try_statement_repeat1",
1612            Csharp::CatchClauseRepeat1 => "catch_clause_repeat1",
1613            Csharp::ListPatternRepeat1 => "list_pattern_repeat1",
1614            Csharp::PositionalPatternClauseRepeat1 => "positional_pattern_clause_repeat1",
1615            Csharp::ParenthesizedVariableDesignationRepeat1 => {
1616                "parenthesized_variable_designation_repeat1"
1617            }
1618            Csharp::QueryBodyRepeat1 => "_query_body_repeat1",
1619            Csharp::QueryBodyRepeat2 => "_query_body_repeat2",
1620            Csharp::OrderByClauseRepeat1 => "order_by_clause_repeat1",
1621            Csharp::SwitchExpressionBodyRepeat1 => "_switch_expression_body_repeat1",
1622            Csharp::InterpolatedStringExpressionRepeat1 => "interpolated_string_expression_repeat1",
1623            Csharp::InterpolatedStringExpressionRepeat2 => "interpolated_string_expression_repeat2",
1624            Csharp::InterpolatedStringExpressionRepeat3 => "interpolated_string_expression_repeat3",
1625            Csharp::LambdaExpressionInitRepeat1 => "_lambda_expression_init_repeat1",
1626            Csharp::AnonymousObjectCreationExpressionRepeat1 => {
1627                "anonymous_object_creation_expression_repeat1"
1628            }
1629            Csharp::CollectionExpressionRepeat1 => "collection_expression_repeat1",
1630            Csharp::WithBodyRepeat1 => "_with_body_repeat1",
1631            Csharp::StringLiteralRepeat1 => "string_literal_repeat1",
1632            Csharp::PreprocIfInTopLevelRepeat1 => "preproc_if_in_top_level_repeat1",
1633            Csharp::PreprocPragmaRepeat1 => "preproc_pragma_repeat1",
1634            Csharp::ElementBindingExpression => "element_binding_expression",
1635            Csharp::ImplicitParameter => "implicit_parameter",
1636            Csharp::InterpolationQuote => "interpolation_quote",
1637            Csharp::Error => "ERROR",
1638        }
1639    }
1640}
1641
1642impl From<u16> for Csharp {
1643    #[inline]
1644    fn from(x: u16) -> Self {
1645        num_traits::FromPrimitive::from_u16(x).unwrap_or(Self::Error)
1646    }
1647}
1648
1649// Csharp == u16
1650impl PartialEq<u16> for Csharp {
1651    #[inline]
1652    fn eq(&self, x: &u16) -> bool {
1653        *self == Into::<Self>::into(*x)
1654    }
1655}
1656
1657// u16 == Csharp
1658impl PartialEq<Csharp> for u16 {
1659    #[inline]
1660    fn eq(&self, x: &Csharp) -> bool {
1661        *x == *self
1662    }
1663}