#![allow(clippy::match_same_arms, clippy::too_many_lines)]
#![allow(missing_docs)]
use num_derive::FromPrimitive;
#[derive(Clone, Debug, PartialEq, Eq, FromPrimitive)]
pub enum Groovy {
End = 0,
Identifier = 1,
SEMI = 2,
Shebang = 3,
COMMA = 4,
COLON = 5,
LBRACE = 6,
RBRACE = 7,
If = 8,
LPAREN = 9,
RPAREN = 10,
Else = 11,
While = 12,
For = 13,
Do = 14,
Return = 15,
Break = 16,
Continue = 17,
Throw = 18,
Yield = 19,
Assert = 20,
Try = 21,
Synchronized = 22,
Final = 23,
Def = 24,
Var = 25,
EQ = 26,
Catch = 27,
PIPE = 28,
Finally = 29,
Sealed = 30,
NonDASHsealed = 31,
Class = 32,
Trait = 33,
Interface = 34,
LT = 35,
GT = 36,
Extends = 37,
AMP = 38,
Implements = 39,
Public = 40,
Private = 41,
Protected = 42,
Static = 43,
Abstract = 44,
Native = 45,
Transient = 46,
Volatile = 47,
Strictfp = 48,
Permits = 49,
AT = 50,
LT2 = 51,
Throws = 52,
Identifier2 = 53,
DOTDOTDOT = 54,
Enum = 55,
Package = 56,
Import = 57,
DOTSTAR = 58,
As = 59,
DOT = 60,
Pipeline = 61,
In = 62,
Switch = 63,
Case = 64,
DASHGT = 65,
Default = 66,
Instanceof = 67,
InstanceofExpressionToken1 = 68,
New = 69,
RBRACK = 70,
QMARK = 71,
Super = 72,
QMARKDOT = 73,
QMARKQMARKDOT = 74,
STARDOT = 75,
DOTAMP = 76,
DOTAT = 77,
COLONCOLON = 78,
PLUSPLUS = 79,
DASHDASH = 80,
STAR = 81,
QMARKLBRACK = 82,
STARSTAR = 83,
EQEQGT = 84,
PLUSEQ = 85,
DASHEQ = 86,
STAREQ = 87,
SLASHEQ = 88,
PERCENTEQ = 89,
STARSTAREQ = 90,
LTLTEQ = 91,
GTGTEQ = 92,
GTGTGTEQ = 93,
AMPEQ = 94,
CARETEQ = 95,
PIPEEQ = 96,
QMARKEQ = 97,
QMARKCOLON = 98,
DOTDOT = 99,
DOTDOTLT = 100,
LTDOTDOT = 101,
LTDOTDOTLT = 102,
EQEQEQ = 103,
BANGEQEQ = 104,
LTEQGT = 105,
EQTILDE = 106,
EQEQTILDE = 107,
PLUS = 108,
DASH = 109,
SLASH = 110,
PERCENT = 111,
LTLT = 112,
GTGT = 113,
GTGTGT = 114,
LTEQ = 115,
GTEQ = 116,
EQEQ = 117,
BANGEQ = 118,
CARET = 119,
AMPAMP = 120,
PIPEPIPE = 121,
LBRACK = 122,
STARCOLON = 123,
BANG = 124,
TILDE = 125,
True = 126,
False = 127,
NullLiteral = 128,
SLASH2 = 129,
StringFragment = 130,
SingleQuotedString = 131,
TripleSingleQuotedString = 132,
DQUOTE = 133,
DQUOTE2 = 134,
StringFragment2 = 135,
StringFragment3 = 136,
DQUOTEDQUOTEDQUOTE = 137,
DQUOTEDQUOTEDQUOTE2 = 138,
StringFragment4 = 139,
Identifier3 = 140,
DOLLARLBRACE = 141,
DOLLARSLASH = 142,
SLASHDOLLAR = 143,
StringFragment5 = 144,
NumberLiteral = 145,
SlashyStringStart = 146,
LineComment = 147,
BlockComment = 148,
GroovydocComment = 149,
Record = 150,
CommandNamedKey = 151,
LBRACK2 = 152,
RPAREN2 = 153,
BANGin = 154,
StringBody = 155,
ErrorSentinel = 156,
SourceFile = 157,
Statement = 158,
CommandChain = 159,
NamedArgument = 160,
NamedArgument2 = 161,
CommandArgument = 162,
LabeledStatement = 163,
Block = 164,
IfStatement = 165,
WhileStatement = 166,
ForStatement = 167,
DoWhileStatement = 168,
ReturnStatement = 169,
BreakStatement = 170,
ContinueStatement = 171,
ThrowStatement = 172,
YieldStatement = 173,
AssertStatement = 174,
TryStatement = 175,
SynchronizedStatement = 176,
ResourceSpecification = 177,
Resource = 178,
CatchClause = 179,
CatchFormalParameter = 180,
MultiType = 181,
FinallyClause = 182,
ClassDeclaration = 183,
TraitDeclaration = 184,
InterfaceDeclaration = 185,
TypeParameters = 186,
TypeParameter = 187,
Superclass = 188,
SuperInterfaces = 189,
ExtendsInterfaces = 190,
Modifier = 191,
PermitsClause = 192,
AnnotationTypeDeclaration = 193,
ClassBody = 194,
ClassMember = 195,
ConstructorDeclaration = 196,
ConstructorDeclaration2 = 197,
StaticInitializer = 198,
FieldDeclaration = 199,
MethodDeclaration = 200,
MethodTypeParameters = 201,
ThrowsClause = 202,
FormalParameters = 203,
FormalParameter = 204,
VarargsType = 205,
EnumDeclaration = 206,
EnumBody = 207,
EnumConstant = 208,
RecordDeclaration = 209,
RecordComponents = 210,
RecordComponent = 211,
PackageDeclaration = 212,
ImportDeclaration = 213,
QualifiedName = 214,
LocalVariableDeclaration = 215,
VariableDeclarator = 216,
InitializedDeclarator = 217,
VariableDeclarator2 = 218,
MultiAssignmentDeclaration = 219,
PipelineStatement = 220,
Annotation = 221,
ForInStatement = 222,
ExpressionStatement = 223,
AssignmentExpression = 224,
Expression = 225,
SwitchExpression = 226,
SwitchBlock = 227,
SwitchCase = 228,
SwitchArrowCase = 229,
SwitchDefault = 230,
CastExpression = 231,
CastType = 232,
QualifiedType = 233,
DottedTypeTail = 234,
MembershipExpression = 235,
InstanceofExpression = 236,
ObjectCreationExpression = 237,
GenericType = 238,
TypeArguments = 239,
ParenthesizedTypeCast = 240,
Type = 241,
QualifiedType2 = 242,
ArrayType = 243,
GenericType2 = 244,
TypeArguments2 = 245,
TypeArgument = 246,
Wildcard = 247,
FieldAccess = 248,
SafeNavigationExpression = 249,
SafeChainDotExpression = 250,
SpreadDotExpression = 251,
MethodPointerExpression = 252,
DirectFieldAccessExpression = 253,
PropertyName = 254,
MethodReferenceExpression = 255,
UpdateExpression = 256,
UnaryUpdateExpression = 257,
MethodInvocation = 258,
ArgumentList = 259,
Argument = 260,
SpreadArguments = 261,
SubscriptExpression = 262,
SafeSubscriptExpression = 263,
PowerExpression = 264,
LogicalImplicationExpression = 265,
AssignmentExpression2 = 266,
TernaryExpression = 267,
ElvisExpression = 268,
RangeExpression = 269,
IdentityExpression = 270,
SpaceshipExpression = 271,
RegexFindExpression = 272,
RegexMatchExpression = 273,
BinaryExpression = 274,
Closure = 275,
ClosureParameters = 276,
ClosureParameter = 277,
ListLiteral = 278,
MapLiteral = 279,
MapEntry = 280,
SpreadMapEntry = 281,
ParenthesizedExpression = 282,
UnaryExpression = 283,
BooleanLiteral = 284,
StringLiteral = 285,
SlashyString = 286,
DoubleQuotedString = 287,
TripleDoubleQuotedString = 288,
GstringDollarInterpolation = 289,
GstringBraceInterpolation = 290,
DollarSlashyString = 291,
SourceFileRepeat1 = 292,
CommandChainRepeat1 = 293,
TryStatementRepeat1 = 294,
ResourceSpecificationRepeat1 = 295,
MultiTypeRepeat1 = 296,
ClassDeclarationRepeat1 = 297,
ClassDeclarationRepeat2 = 298,
TypeParametersRepeat1 = 299,
TypeParameterRepeat1 = 300,
SuperInterfacesRepeat1 = 301,
ClassBodyRepeat1 = 302,
ModifiedConstructorDeclarationRepeat1 = 303,
FieldDeclarationRepeat1 = 304,
FormalParametersRepeat1 = 305,
EnumBodyRepeat1 = 306,
RecordComponentsRepeat1 = 307,
QualifiedNameRepeat1 = 308,
LocalVariableDeclarationRepeat1 = 309,
SwitchBlockRepeat1 = 310,
QualifiedTypeRepeat1 = 311,
TypeArgumentsRepeat1 = 312,
ArgumentListRepeat1 = 313,
ClosureParametersRepeat1 = 314,
ListLiteralRepeat1 = 315,
MapLiteralRepeat1 = 316,
SlashyStringRepeat1 = 317,
DoubleQuotedStringRepeat1 = 318,
TripleDoubleQuotedStringRepeat1 = 319,
DollarSlashyStringRepeat1 = 320,
QuotedIdentifier = 321,
TypeIdentifier = 322,
Error = 323,
}
pub const GROOVY_KIND_FLAGS: &[(u16, bool, bool)] = &[
(0, false, false),
(1, true, true),
(2, false, true),
(3, true, 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, true, 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, false),
(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, false, 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, false, true),
(127, false, true),
(128, true, true),
(129, false, true),
(130, true, true),
(131, false, false),
(132, false, false),
(133, false, true),
(134, false, true),
(135, true, true),
(136, true, true),
(137, false, true),
(138, false, true),
(139, true, true),
(140, true, true),
(141, false, true),
(142, false, true),
(143, false, true),
(144, true, true),
(145, true, true),
(146, false, false),
(147, true, true),
(148, true, true),
(149, true, true),
(150, false, true),
(151, false, false),
(152, false, true),
(153, false, true),
(154, false, true),
(155, false, false),
(156, false, false),
(157, true, true),
(158, false, false),
(159, true, true),
(160, true, true),
(161, true, true),
(162, false, false),
(163, true, true),
(164, true, true),
(165, true, true),
(166, true, true),
(167, true, true),
(168, true, true),
(169, true, true),
(170, true, true),
(171, true, true),
(172, true, true),
(173, true, true),
(174, true, true),
(175, true, true),
(176, true, true),
(177, true, true),
(178, true, true),
(179, true, true),
(180, true, true),
(181, true, true),
(182, true, true),
(183, true, true),
(184, true, true),
(185, true, true),
(186, true, true),
(187, true, true),
(188, true, true),
(189, true, true),
(190, true, true),
(191, false, false),
(192, true, true),
(193, true, true),
(194, true, true),
(195, false, false),
(196, true, true),
(197, true, true),
(198, true, true),
(199, true, true),
(200, true, true),
(201, true, true),
(202, true, true),
(203, true, true),
(204, true, true),
(205, true, true),
(206, true, true),
(207, true, true),
(208, true, true),
(209, true, true),
(210, true, true),
(211, true, true),
(212, true, true),
(213, true, true),
(214, true, true),
(215, true, true),
(216, true, true),
(217, false, false),
(218, true, true),
(219, true, true),
(220, true, true),
(221, true, true),
(222, true, true),
(223, true, true),
(224, true, true),
(225, false, false),
(226, true, true),
(227, true, true),
(228, true, true),
(229, true, true),
(230, true, true),
(231, true, true),
(232, false, false),
(233, true, true),
(234, false, false),
(235, true, true),
(236, true, true),
(237, true, true),
(238, true, true),
(239, true, true),
(240, true, true),
(241, false, false),
(242, true, true),
(243, true, true),
(244, true, true),
(245, true, true),
(246, false, false),
(247, true, true),
(248, true, true),
(249, true, true),
(250, true, true),
(251, true, true),
(252, true, true),
(253, true, true),
(254, false, false),
(255, true, true),
(256, true, true),
(257, true, true),
(258, true, true),
(259, true, true),
(260, false, false),
(261, true, true),
(262, true, true),
(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, true, true),
(276, true, true),
(277, true, true),
(278, true, true),
(279, true, true),
(280, true, true),
(281, true, true),
(282, true, true),
(283, true, true),
(284, true, true),
(285, true, true),
(286, false, false),
(287, false, false),
(288, false, false),
(289, true, true),
(290, true, true),
(291, false, false),
(292, false, false),
(293, false, false),
(294, false, false),
(295, false, false),
(296, false, false),
(297, false, false),
(298, false, false),
(299, false, false),
(300, false, false),
(301, false, false),
(302, false, false),
(303, false, false),
(304, false, false),
(305, false, false),
(306, false, false),
(307, false, false),
(308, false, false),
(309, false, false),
(310, false, false),
(311, false, false),
(312, false, false),
(313, false, false),
(314, false, false),
(315, false, false),
(316, false, false),
(317, false, false),
(318, false, false),
(319, false, false),
(320, false, false),
(321, true, true),
(322, true, true),
];
impl From<Groovy> for &'static str {
#[inline]
fn from(tok: Groovy) -> Self {
match tok {
Groovy::End => "end",
Groovy::Identifier => "identifier",
Groovy::SEMI => ";",
Groovy::Shebang => "shebang",
Groovy::COMMA => ",",
Groovy::COLON => ":",
Groovy::LBRACE => "{",
Groovy::RBRACE => "}",
Groovy::If => "if",
Groovy::LPAREN => "(",
Groovy::RPAREN => ")",
Groovy::Else => "else",
Groovy::While => "while",
Groovy::For => "for",
Groovy::Do => "do",
Groovy::Return => "return",
Groovy::Break => "break",
Groovy::Continue => "continue",
Groovy::Throw => "throw",
Groovy::Yield => "yield",
Groovy::Assert => "assert",
Groovy::Try => "try",
Groovy::Synchronized => "synchronized",
Groovy::Final => "final",
Groovy::Def => "def",
Groovy::Var => "var",
Groovy::EQ => "=",
Groovy::Catch => "catch",
Groovy::PIPE => "|",
Groovy::Finally => "finally",
Groovy::Sealed => "sealed",
Groovy::NonDASHsealed => "non-sealed",
Groovy::Class => "class",
Groovy::Trait => "trait",
Groovy::Interface => "interface",
Groovy::LT => "<",
Groovy::GT => ">",
Groovy::Extends => "extends",
Groovy::AMP => "&",
Groovy::Implements => "implements",
Groovy::Public => "public",
Groovy::Private => "private",
Groovy::Protected => "protected",
Groovy::Static => "static",
Groovy::Abstract => "abstract",
Groovy::Native => "native",
Groovy::Transient => "transient",
Groovy::Volatile => "volatile",
Groovy::Strictfp => "strictfp",
Groovy::Permits => "permits",
Groovy::AT => "@",
Groovy::LT2 => "<",
Groovy::Throws => "throws",
Groovy::Identifier2 => "identifier",
Groovy::DOTDOTDOT => "...",
Groovy::Enum => "enum",
Groovy::Package => "package",
Groovy::Import => "import",
Groovy::DOTSTAR => ".*",
Groovy::As => "as",
Groovy::DOT => ".",
Groovy::Pipeline => "pipeline",
Groovy::In => "in",
Groovy::Switch => "switch",
Groovy::Case => "case",
Groovy::DASHGT => "->",
Groovy::Default => "default",
Groovy::Instanceof => "instanceof",
Groovy::InstanceofExpressionToken1 => "instanceof_expression_token1",
Groovy::New => "new",
Groovy::RBRACK => "]",
Groovy::QMARK => "?",
Groovy::Super => "super",
Groovy::QMARKDOT => "?.",
Groovy::QMARKQMARKDOT => "??.",
Groovy::STARDOT => "*.",
Groovy::DOTAMP => ".&",
Groovy::DOTAT => ".@",
Groovy::COLONCOLON => "::",
Groovy::PLUSPLUS => "++",
Groovy::DASHDASH => "--",
Groovy::STAR => "*",
Groovy::QMARKLBRACK => "?[",
Groovy::STARSTAR => "**",
Groovy::EQEQGT => "==>",
Groovy::PLUSEQ => "+=",
Groovy::DASHEQ => "-=",
Groovy::STAREQ => "*=",
Groovy::SLASHEQ => "/=",
Groovy::PERCENTEQ => "%=",
Groovy::STARSTAREQ => "**=",
Groovy::LTLTEQ => "<<=",
Groovy::GTGTEQ => ">>=",
Groovy::GTGTGTEQ => ">>>=",
Groovy::AMPEQ => "&=",
Groovy::CARETEQ => "^=",
Groovy::PIPEEQ => "|=",
Groovy::QMARKEQ => "?=",
Groovy::QMARKCOLON => "?:",
Groovy::DOTDOT => "..",
Groovy::DOTDOTLT => "..<",
Groovy::LTDOTDOT => "<..",
Groovy::LTDOTDOTLT => "<..<",
Groovy::EQEQEQ => "===",
Groovy::BANGEQEQ => "!==",
Groovy::LTEQGT => "<=>",
Groovy::EQTILDE => "=~",
Groovy::EQEQTILDE => "==~",
Groovy::PLUS => "+",
Groovy::DASH => "-",
Groovy::SLASH => "/",
Groovy::PERCENT => "%",
Groovy::LTLT => "<<",
Groovy::GTGT => ">>",
Groovy::GTGTGT => ">>>",
Groovy::LTEQ => "<=",
Groovy::GTEQ => ">=",
Groovy::EQEQ => "==",
Groovy::BANGEQ => "!=",
Groovy::CARET => "^",
Groovy::AMPAMP => "&&",
Groovy::PIPEPIPE => "||",
Groovy::LBRACK => "[",
Groovy::STARCOLON => "*:",
Groovy::BANG => "!",
Groovy::TILDE => "~",
Groovy::True => "true",
Groovy::False => "false",
Groovy::NullLiteral => "null_literal",
Groovy::SLASH2 => "/",
Groovy::StringFragment => "string_fragment",
Groovy::SingleQuotedString => "_single_quoted_string",
Groovy::TripleSingleQuotedString => "_triple_single_quoted_string",
Groovy::DQUOTE => "\"",
Groovy::DQUOTE2 => "\"",
Groovy::StringFragment2 => "string_fragment",
Groovy::StringFragment3 => "string_fragment",
Groovy::DQUOTEDQUOTEDQUOTE => "\"\"\"",
Groovy::DQUOTEDQUOTEDQUOTE2 => "\"\"\"",
Groovy::StringFragment4 => "string_fragment",
Groovy::Identifier3 => "identifier",
Groovy::DOLLARLBRACE => "${",
Groovy::DOLLARSLASH => "$/",
Groovy::SLASHDOLLAR => "/$",
Groovy::StringFragment5 => "string_fragment",
Groovy::NumberLiteral => "number_literal",
Groovy::SlashyStringStart => "_slashy_string_start",
Groovy::LineComment => "line_comment",
Groovy::BlockComment => "block_comment",
Groovy::GroovydocComment => "groovydoc_comment",
Groovy::Record => "record",
Groovy::CommandNamedKey => "_command_named_key",
Groovy::LBRACK2 => "[",
Groovy::RPAREN2 => ")",
Groovy::BANGin => "!in",
Groovy::StringBody => "_string_body",
Groovy::ErrorSentinel => "_error_sentinel",
Groovy::SourceFile => "source_file",
Groovy::Statement => "_statement",
Groovy::CommandChain => "command_chain",
Groovy::NamedArgument => "named_argument",
Groovy::NamedArgument2 => "named_argument",
Groovy::CommandArgument => "_command_argument",
Groovy::LabeledStatement => "labeled_statement",
Groovy::Block => "block",
Groovy::IfStatement => "if_statement",
Groovy::WhileStatement => "while_statement",
Groovy::ForStatement => "for_statement",
Groovy::DoWhileStatement => "do_while_statement",
Groovy::ReturnStatement => "return_statement",
Groovy::BreakStatement => "break_statement",
Groovy::ContinueStatement => "continue_statement",
Groovy::ThrowStatement => "throw_statement",
Groovy::YieldStatement => "yield_statement",
Groovy::AssertStatement => "assert_statement",
Groovy::TryStatement => "try_statement",
Groovy::SynchronizedStatement => "synchronized_statement",
Groovy::ResourceSpecification => "resource_specification",
Groovy::Resource => "resource",
Groovy::CatchClause => "catch_clause",
Groovy::CatchFormalParameter => "catch_formal_parameter",
Groovy::MultiType => "multi_type",
Groovy::FinallyClause => "finally_clause",
Groovy::ClassDeclaration => "class_declaration",
Groovy::TraitDeclaration => "trait_declaration",
Groovy::InterfaceDeclaration => "interface_declaration",
Groovy::TypeParameters => "type_parameters",
Groovy::TypeParameter => "type_parameter",
Groovy::Superclass => "superclass",
Groovy::SuperInterfaces => "super_interfaces",
Groovy::ExtendsInterfaces => "extends_interfaces",
Groovy::Modifier => "_modifier",
Groovy::PermitsClause => "permits_clause",
Groovy::AnnotationTypeDeclaration => "annotation_type_declaration",
Groovy::ClassBody => "class_body",
Groovy::ClassMember => "_class_member",
Groovy::ConstructorDeclaration => "constructor_declaration",
Groovy::ConstructorDeclaration2 => "constructor_declaration",
Groovy::StaticInitializer => "static_initializer",
Groovy::FieldDeclaration => "field_declaration",
Groovy::MethodDeclaration => "method_declaration",
Groovy::MethodTypeParameters => "method_type_parameters",
Groovy::ThrowsClause => "throws_clause",
Groovy::FormalParameters => "formal_parameters",
Groovy::FormalParameter => "formal_parameter",
Groovy::VarargsType => "varargs_type",
Groovy::EnumDeclaration => "enum_declaration",
Groovy::EnumBody => "enum_body",
Groovy::EnumConstant => "enum_constant",
Groovy::RecordDeclaration => "record_declaration",
Groovy::RecordComponents => "record_components",
Groovy::RecordComponent => "record_component",
Groovy::PackageDeclaration => "package_declaration",
Groovy::ImportDeclaration => "import_declaration",
Groovy::QualifiedName => "qualified_name",
Groovy::LocalVariableDeclaration => "local_variable_declaration",
Groovy::VariableDeclarator => "variable_declarator",
Groovy::InitializedDeclarator => "_initialized_declarator",
Groovy::VariableDeclarator2 => "variable_declarator",
Groovy::MultiAssignmentDeclaration => "multi_assignment_declaration",
Groovy::PipelineStatement => "pipeline_statement",
Groovy::Annotation => "annotation",
Groovy::ForInStatement => "for_in_statement",
Groovy::ExpressionStatement => "expression_statement",
Groovy::AssignmentExpression => "assignment_expression",
Groovy::Expression => "_expression",
Groovy::SwitchExpression => "switch_expression",
Groovy::SwitchBlock => "switch_block",
Groovy::SwitchCase => "switch_case",
Groovy::SwitchArrowCase => "switch_arrow_case",
Groovy::SwitchDefault => "switch_default",
Groovy::CastExpression => "cast_expression",
Groovy::CastType => "_cast_type",
Groovy::QualifiedType => "qualified_type",
Groovy::DottedTypeTail => "_dotted_type_tail",
Groovy::MembershipExpression => "membership_expression",
Groovy::InstanceofExpression => "instanceof_expression",
Groovy::ObjectCreationExpression => "object_creation_expression",
Groovy::GenericType => "generic_type",
Groovy::TypeArguments => "type_arguments",
Groovy::ParenthesizedTypeCast => "parenthesized_type_cast",
Groovy::Type => "_type",
Groovy::QualifiedType2 => "qualified_type",
Groovy::ArrayType => "array_type",
Groovy::GenericType2 => "generic_type",
Groovy::TypeArguments2 => "type_arguments",
Groovy::TypeArgument => "_type_argument",
Groovy::Wildcard => "wildcard",
Groovy::FieldAccess => "field_access",
Groovy::SafeNavigationExpression => "safe_navigation_expression",
Groovy::SafeChainDotExpression => "safe_chain_dot_expression",
Groovy::SpreadDotExpression => "spread_dot_expression",
Groovy::MethodPointerExpression => "method_pointer_expression",
Groovy::DirectFieldAccessExpression => "direct_field_access_expression",
Groovy::PropertyName => "_property_name",
Groovy::MethodReferenceExpression => "method_reference_expression",
Groovy::UpdateExpression => "update_expression",
Groovy::UnaryUpdateExpression => "unary_update_expression",
Groovy::MethodInvocation => "method_invocation",
Groovy::ArgumentList => "argument_list",
Groovy::Argument => "_argument",
Groovy::SpreadArguments => "spread_arguments",
Groovy::SubscriptExpression => "subscript_expression",
Groovy::SafeSubscriptExpression => "safe_subscript_expression",
Groovy::PowerExpression => "power_expression",
Groovy::LogicalImplicationExpression => "logical_implication_expression",
Groovy::AssignmentExpression2 => "assignment_expression",
Groovy::TernaryExpression => "ternary_expression",
Groovy::ElvisExpression => "elvis_expression",
Groovy::RangeExpression => "range_expression",
Groovy::IdentityExpression => "identity_expression",
Groovy::SpaceshipExpression => "spaceship_expression",
Groovy::RegexFindExpression => "regex_find_expression",
Groovy::RegexMatchExpression => "regex_match_expression",
Groovy::BinaryExpression => "binary_expression",
Groovy::Closure => "closure",
Groovy::ClosureParameters => "closure_parameters",
Groovy::ClosureParameter => "closure_parameter",
Groovy::ListLiteral => "list_literal",
Groovy::MapLiteral => "map_literal",
Groovy::MapEntry => "map_entry",
Groovy::SpreadMapEntry => "spread_map_entry",
Groovy::ParenthesizedExpression => "parenthesized_expression",
Groovy::UnaryExpression => "unary_expression",
Groovy::BooleanLiteral => "boolean_literal",
Groovy::StringLiteral => "string_literal",
Groovy::SlashyString => "_slashy_string",
Groovy::DoubleQuotedString => "_double_quoted_string",
Groovy::TripleDoubleQuotedString => "_triple_double_quoted_string",
Groovy::GstringDollarInterpolation => "gstring_dollar_interpolation",
Groovy::GstringBraceInterpolation => "gstring_brace_interpolation",
Groovy::DollarSlashyString => "_dollar_slashy_string",
Groovy::SourceFileRepeat1 => "source_file_repeat1",
Groovy::CommandChainRepeat1 => "command_chain_repeat1",
Groovy::TryStatementRepeat1 => "try_statement_repeat1",
Groovy::ResourceSpecificationRepeat1 => "resource_specification_repeat1",
Groovy::MultiTypeRepeat1 => "multi_type_repeat1",
Groovy::ClassDeclarationRepeat1 => "class_declaration_repeat1",
Groovy::ClassDeclarationRepeat2 => "class_declaration_repeat2",
Groovy::TypeParametersRepeat1 => "type_parameters_repeat1",
Groovy::TypeParameterRepeat1 => "type_parameter_repeat1",
Groovy::SuperInterfacesRepeat1 => "super_interfaces_repeat1",
Groovy::ClassBodyRepeat1 => "class_body_repeat1",
Groovy::ModifiedConstructorDeclarationRepeat1 => {
"_modified_constructor_declaration_repeat1"
}
Groovy::FieldDeclarationRepeat1 => "field_declaration_repeat1",
Groovy::FormalParametersRepeat1 => "formal_parameters_repeat1",
Groovy::EnumBodyRepeat1 => "enum_body_repeat1",
Groovy::RecordComponentsRepeat1 => "record_components_repeat1",
Groovy::QualifiedNameRepeat1 => "qualified_name_repeat1",
Groovy::LocalVariableDeclarationRepeat1 => "local_variable_declaration_repeat1",
Groovy::SwitchBlockRepeat1 => "switch_block_repeat1",
Groovy::QualifiedTypeRepeat1 => "qualified_type_repeat1",
Groovy::TypeArgumentsRepeat1 => "type_arguments_repeat1",
Groovy::ArgumentListRepeat1 => "argument_list_repeat1",
Groovy::ClosureParametersRepeat1 => "closure_parameters_repeat1",
Groovy::ListLiteralRepeat1 => "list_literal_repeat1",
Groovy::MapLiteralRepeat1 => "map_literal_repeat1",
Groovy::SlashyStringRepeat1 => "_slashy_string_repeat1",
Groovy::DoubleQuotedStringRepeat1 => "_double_quoted_string_repeat1",
Groovy::TripleDoubleQuotedStringRepeat1 => "_triple_double_quoted_string_repeat1",
Groovy::DollarSlashyStringRepeat1 => "_dollar_slashy_string_repeat1",
Groovy::QuotedIdentifier => "quoted_identifier",
Groovy::TypeIdentifier => "type_identifier",
Groovy::Error => "ERROR",
}
}
}
impl From<u16> for Groovy {
#[inline]
fn from(x: u16) -> Self {
num_traits::FromPrimitive::from_u16(x).unwrap_or(Self::Error)
}
}
impl PartialEq<u16> for Groovy {
#[inline]
fn eq(&self, x: &u16) -> bool {
*self == Into::<Self>::into(*x)
}
}
impl PartialEq<Groovy> for u16 {
#[inline]
fn eq(&self, x: &Groovy) -> bool {
*x == *self
}
}