lib-ruby-parser 3.0.11

Ruby parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
// This file is auto-generated by codegen/rust/nodes/node_mod.rs

mod alias;
mod and;
mod and_asgn;
mod arg;
mod args;
mod array;
mod array_pattern;
mod array_pattern_with_tail;
mod back_ref;
mod begin;
mod block;
mod blockarg;
mod block_pass;
mod break_;
mod case;
mod case_match;
mod casgn;
mod cbase;
mod class;
mod complex;
mod const_;
mod const_pattern;
mod c_send;
mod cvar;
mod cvasgn;
mod def;
mod defined;
mod defs;
mod dstr;
mod dsym;
mod e_flip_flop;
mod empty_else;
mod encoding;
mod ensure;
mod erange;
mod false_;
mod file;
mod find_pattern;
mod float;
mod for_;
mod forward_arg;
mod forwarded_args;
mod gvar;
mod gvasgn;
mod hash;
mod hash_pattern;
mod heredoc;
mod if_;
mod if_guard;
mod i_flip_flop;
mod if_mod;
mod if_ternary;
mod index;
mod index_asgn;
mod in_pattern;
mod int;
mod irange;
mod ivar;
mod ivasgn;
mod kwarg;
mod kwargs;
mod kw_begin;
mod kwnilarg;
mod kwoptarg;
mod kwrestarg;
mod kwsplat;
mod lambda;
mod line;
mod lvar;
mod lvasgn;
mod masgn;
mod match_alt;
mod match_as;
mod match_current_line;
mod match_nil_pattern;
mod match_pattern;
mod match_pattern_p;
mod match_rest;
mod match_var;
mod match_with_lvasgn;
mod mlhs;
mod module;
mod next;
mod nil;
mod nth_ref;
mod numblock;
mod op_asgn;
mod optarg;
mod or;
mod or_asgn;
mod pair;
mod pin;
mod postexe;
mod preexe;
mod procarg0;
mod rational;
mod redo;
mod regexp;
mod reg_opt;
mod rescue;
mod rescue_body;
mod restarg;
mod retry;
mod return_;
mod s_class;
mod self_;
mod send;
mod shadowarg;
mod splat;
mod str_;
mod super_;
mod sym;
mod true_;
mod undef;
mod unless_guard;
mod until;
mod until_post;
mod when;
mod while_;
mod while_post;
mod x_heredoc;
mod xstr;
mod yield_;
mod z_super;


pub use alias::Alias;
pub use and::And;
pub use and_asgn::AndAsgn;
pub use arg::Arg;
pub use args::Args;
pub use array::Array;
pub use array_pattern::ArrayPattern;
pub use array_pattern_with_tail::ArrayPatternWithTail;
pub use back_ref::BackRef;
pub use begin::Begin;
pub use block::Block;
pub use blockarg::Blockarg;
pub use block_pass::BlockPass;
pub use break_::Break;
pub use case::Case;
pub use case_match::CaseMatch;
pub use casgn::Casgn;
pub use cbase::Cbase;
pub use class::Class;
pub use complex::Complex;
pub use const_::Const;
pub use const_pattern::ConstPattern;
pub use c_send::CSend;
pub use cvar::Cvar;
pub use cvasgn::Cvasgn;
pub use def::Def;
pub use defined::Defined;
pub use defs::Defs;
pub use dstr::Dstr;
pub use dsym::Dsym;
pub use e_flip_flop::EFlipFlop;
pub use empty_else::EmptyElse;
pub use encoding::Encoding;
pub use ensure::Ensure;
pub use erange::Erange;
pub use false_::False;
pub use file::File;
pub use find_pattern::FindPattern;
pub use float::Float;
pub use for_::For;
pub use forward_arg::ForwardArg;
pub use forwarded_args::ForwardedArgs;
pub use gvar::Gvar;
pub use gvasgn::Gvasgn;
pub use hash::Hash;
pub use hash_pattern::HashPattern;
pub use heredoc::Heredoc;
pub use if_::If;
pub use if_guard::IfGuard;
pub use i_flip_flop::IFlipFlop;
pub use if_mod::IfMod;
pub use if_ternary::IfTernary;
pub use index::Index;
pub use index_asgn::IndexAsgn;
pub use in_pattern::InPattern;
pub use int::Int;
pub use irange::Irange;
pub use ivar::Ivar;
pub use ivasgn::Ivasgn;
pub use kwarg::Kwarg;
pub use kwargs::Kwargs;
pub use kw_begin::KwBegin;
pub use kwnilarg::Kwnilarg;
pub use kwoptarg::Kwoptarg;
pub use kwrestarg::Kwrestarg;
pub use kwsplat::Kwsplat;
pub use lambda::Lambda;
pub use line::Line;
pub use lvar::Lvar;
pub use lvasgn::Lvasgn;
pub use masgn::Masgn;
pub use match_alt::MatchAlt;
pub use match_as::MatchAs;
pub use match_current_line::MatchCurrentLine;
pub use match_nil_pattern::MatchNilPattern;
pub use match_pattern::MatchPattern;
pub use match_pattern_p::MatchPatternP;
pub use match_rest::MatchRest;
pub use match_var::MatchVar;
pub use match_with_lvasgn::MatchWithLvasgn;
pub use mlhs::Mlhs;
pub use module::Module;
pub use next::Next;
pub use nil::Nil;
pub use nth_ref::NthRef;
pub use numblock::Numblock;
pub use op_asgn::OpAsgn;
pub use optarg::Optarg;
pub use or::Or;
pub use or_asgn::OrAsgn;
pub use pair::Pair;
pub use pin::Pin;
pub use postexe::Postexe;
pub use preexe::Preexe;
pub use procarg0::Procarg0;
pub use rational::Rational;
pub use redo::Redo;
pub use regexp::Regexp;
pub use reg_opt::RegOpt;
pub use rescue::Rescue;
pub use rescue_body::RescueBody;
pub use restarg::Restarg;
pub use retry::Retry;
pub use return_::Return;
pub use s_class::SClass;
pub use self_::Self_;
pub use send::Send;
pub use shadowarg::Shadowarg;
pub use splat::Splat;
pub use str_::Str;
pub use super_::Super;
pub use sym::Sym;
pub use true_::True;
pub use undef::Undef;
pub use unless_guard::UnlessGuard;
pub use until::Until;
pub use until_post::UntilPost;
pub use when::When;
pub use while_::While;
pub use while_post::WhilePost;
pub use x_heredoc::XHeredoc;
pub use xstr::Xstr;
pub use yield_::Yield;
pub use z_super::ZSuper;


pub(crate) mod internal {
    #[allow(unused_imports)]
    pub(crate) use super::alias::InternalAlias as Alias;
    #[allow(unused_imports)]
    pub(crate) use super::and::InternalAnd as And;
    #[allow(unused_imports)]
    pub(crate) use super::and_asgn::InternalAndAsgn as AndAsgn;
    #[allow(unused_imports)]
    pub(crate) use super::arg::InternalArg as Arg;
    #[allow(unused_imports)]
    pub(crate) use super::args::InternalArgs as Args;
    #[allow(unused_imports)]
    pub(crate) use super::array::InternalArray as Array;
    #[allow(unused_imports)]
    pub(crate) use super::array_pattern::InternalArrayPattern as ArrayPattern;
    #[allow(unused_imports)]
    pub(crate) use super::array_pattern_with_tail::InternalArrayPatternWithTail as ArrayPatternWithTail;
    #[allow(unused_imports)]
    pub(crate) use super::back_ref::InternalBackRef as BackRef;
    #[allow(unused_imports)]
    pub(crate) use super::begin::InternalBegin as Begin;
    #[allow(unused_imports)]
    pub(crate) use super::block::InternalBlock as Block;
    #[allow(unused_imports)]
    pub(crate) use super::blockarg::InternalBlockarg as Blockarg;
    #[allow(unused_imports)]
    pub(crate) use super::block_pass::InternalBlockPass as BlockPass;
    #[allow(unused_imports)]
    pub(crate) use super::break_::InternalBreak as Break;
    #[allow(unused_imports)]
    pub(crate) use super::case::InternalCase as Case;
    #[allow(unused_imports)]
    pub(crate) use super::case_match::InternalCaseMatch as CaseMatch;
    #[allow(unused_imports)]
    pub(crate) use super::casgn::InternalCasgn as Casgn;
    #[allow(unused_imports)]
    pub(crate) use super::cbase::InternalCbase as Cbase;
    #[allow(unused_imports)]
    pub(crate) use super::class::InternalClass as Class;
    #[allow(unused_imports)]
    pub(crate) use super::complex::InternalComplex as Complex;
    #[allow(unused_imports)]
    pub(crate) use super::const_::InternalConst as Const;
    #[allow(unused_imports)]
    pub(crate) use super::const_pattern::InternalConstPattern as ConstPattern;
    #[allow(unused_imports)]
    pub(crate) use super::c_send::InternalCSend as CSend;
    #[allow(unused_imports)]
    pub(crate) use super::cvar::InternalCvar as Cvar;
    #[allow(unused_imports)]
    pub(crate) use super::cvasgn::InternalCvasgn as Cvasgn;
    #[allow(unused_imports)]
    pub(crate) use super::def::InternalDef as Def;
    #[allow(unused_imports)]
    pub(crate) use super::defined::InternalDefined as Defined;
    #[allow(unused_imports)]
    pub(crate) use super::defs::InternalDefs as Defs;
    #[allow(unused_imports)]
    pub(crate) use super::dstr::InternalDstr as Dstr;
    #[allow(unused_imports)]
    pub(crate) use super::dsym::InternalDsym as Dsym;
    #[allow(unused_imports)]
    pub(crate) use super::e_flip_flop::InternalEFlipFlop as EFlipFlop;
    #[allow(unused_imports)]
    pub(crate) use super::empty_else::InternalEmptyElse as EmptyElse;
    #[allow(unused_imports)]
    pub(crate) use super::encoding::InternalEncoding as Encoding;
    #[allow(unused_imports)]
    pub(crate) use super::ensure::InternalEnsure as Ensure;
    #[allow(unused_imports)]
    pub(crate) use super::erange::InternalErange as Erange;
    #[allow(unused_imports)]
    pub(crate) use super::false_::InternalFalse as False;
    #[allow(unused_imports)]
    pub(crate) use super::file::InternalFile as File;
    #[allow(unused_imports)]
    pub(crate) use super::find_pattern::InternalFindPattern as FindPattern;
    #[allow(unused_imports)]
    pub(crate) use super::float::InternalFloat as Float;
    #[allow(unused_imports)]
    pub(crate) use super::for_::InternalFor as For;
    #[allow(unused_imports)]
    pub(crate) use super::forward_arg::InternalForwardArg as ForwardArg;
    #[allow(unused_imports)]
    pub(crate) use super::forwarded_args::InternalForwardedArgs as ForwardedArgs;
    #[allow(unused_imports)]
    pub(crate) use super::gvar::InternalGvar as Gvar;
    #[allow(unused_imports)]
    pub(crate) use super::gvasgn::InternalGvasgn as Gvasgn;
    #[allow(unused_imports)]
    pub(crate) use super::hash::InternalHash as Hash;
    #[allow(unused_imports)]
    pub(crate) use super::hash_pattern::InternalHashPattern as HashPattern;
    #[allow(unused_imports)]
    pub(crate) use super::heredoc::InternalHeredoc as Heredoc;
    #[allow(unused_imports)]
    pub(crate) use super::if_::InternalIf as If;
    #[allow(unused_imports)]
    pub(crate) use super::if_guard::InternalIfGuard as IfGuard;
    #[allow(unused_imports)]
    pub(crate) use super::i_flip_flop::InternalIFlipFlop as IFlipFlop;
    #[allow(unused_imports)]
    pub(crate) use super::if_mod::InternalIfMod as IfMod;
    #[allow(unused_imports)]
    pub(crate) use super::if_ternary::InternalIfTernary as IfTernary;
    #[allow(unused_imports)]
    pub(crate) use super::index::InternalIndex as Index;
    #[allow(unused_imports)]
    pub(crate) use super::index_asgn::InternalIndexAsgn as IndexAsgn;
    #[allow(unused_imports)]
    pub(crate) use super::in_pattern::InternalInPattern as InPattern;
    #[allow(unused_imports)]
    pub(crate) use super::int::InternalInt as Int;
    #[allow(unused_imports)]
    pub(crate) use super::irange::InternalIrange as Irange;
    #[allow(unused_imports)]
    pub(crate) use super::ivar::InternalIvar as Ivar;
    #[allow(unused_imports)]
    pub(crate) use super::ivasgn::InternalIvasgn as Ivasgn;
    #[allow(unused_imports)]
    pub(crate) use super::kwarg::InternalKwarg as Kwarg;
    #[allow(unused_imports)]
    pub(crate) use super::kwargs::InternalKwargs as Kwargs;
    #[allow(unused_imports)]
    pub(crate) use super::kw_begin::InternalKwBegin as KwBegin;
    #[allow(unused_imports)]
    pub(crate) use super::kwnilarg::InternalKwnilarg as Kwnilarg;
    #[allow(unused_imports)]
    pub(crate) use super::kwoptarg::InternalKwoptarg as Kwoptarg;
    #[allow(unused_imports)]
    pub(crate) use super::kwrestarg::InternalKwrestarg as Kwrestarg;
    #[allow(unused_imports)]
    pub(crate) use super::kwsplat::InternalKwsplat as Kwsplat;
    #[allow(unused_imports)]
    pub(crate) use super::lambda::InternalLambda as Lambda;
    #[allow(unused_imports)]
    pub(crate) use super::line::InternalLine as Line;
    #[allow(unused_imports)]
    pub(crate) use super::lvar::InternalLvar as Lvar;
    #[allow(unused_imports)]
    pub(crate) use super::lvasgn::InternalLvasgn as Lvasgn;
    #[allow(unused_imports)]
    pub(crate) use super::masgn::InternalMasgn as Masgn;
    #[allow(unused_imports)]
    pub(crate) use super::match_alt::InternalMatchAlt as MatchAlt;
    #[allow(unused_imports)]
    pub(crate) use super::match_as::InternalMatchAs as MatchAs;
    #[allow(unused_imports)]
    pub(crate) use super::match_current_line::InternalMatchCurrentLine as MatchCurrentLine;
    #[allow(unused_imports)]
    pub(crate) use super::match_nil_pattern::InternalMatchNilPattern as MatchNilPattern;
    #[allow(unused_imports)]
    pub(crate) use super::match_pattern::InternalMatchPattern as MatchPattern;
    #[allow(unused_imports)]
    pub(crate) use super::match_pattern_p::InternalMatchPatternP as MatchPatternP;
    #[allow(unused_imports)]
    pub(crate) use super::match_rest::InternalMatchRest as MatchRest;
    #[allow(unused_imports)]
    pub(crate) use super::match_var::InternalMatchVar as MatchVar;
    #[allow(unused_imports)]
    pub(crate) use super::match_with_lvasgn::InternalMatchWithLvasgn as MatchWithLvasgn;
    #[allow(unused_imports)]
    pub(crate) use super::mlhs::InternalMlhs as Mlhs;
    #[allow(unused_imports)]
    pub(crate) use super::module::InternalModule as Module;
    #[allow(unused_imports)]
    pub(crate) use super::next::InternalNext as Next;
    #[allow(unused_imports)]
    pub(crate) use super::nil::InternalNil as Nil;
    #[allow(unused_imports)]
    pub(crate) use super::nth_ref::InternalNthRef as NthRef;
    #[allow(unused_imports)]
    pub(crate) use super::numblock::InternalNumblock as Numblock;
    #[allow(unused_imports)]
    pub(crate) use super::op_asgn::InternalOpAsgn as OpAsgn;
    #[allow(unused_imports)]
    pub(crate) use super::optarg::InternalOptarg as Optarg;
    #[allow(unused_imports)]
    pub(crate) use super::or::InternalOr as Or;
    #[allow(unused_imports)]
    pub(crate) use super::or_asgn::InternalOrAsgn as OrAsgn;
    #[allow(unused_imports)]
    pub(crate) use super::pair::InternalPair as Pair;
    #[allow(unused_imports)]
    pub(crate) use super::pin::InternalPin as Pin;
    #[allow(unused_imports)]
    pub(crate) use super::postexe::InternalPostexe as Postexe;
    #[allow(unused_imports)]
    pub(crate) use super::preexe::InternalPreexe as Preexe;
    #[allow(unused_imports)]
    pub(crate) use super::procarg0::InternalProcarg0 as Procarg0;
    #[allow(unused_imports)]
    pub(crate) use super::rational::InternalRational as Rational;
    #[allow(unused_imports)]
    pub(crate) use super::redo::InternalRedo as Redo;
    #[allow(unused_imports)]
    pub(crate) use super::regexp::InternalRegexp as Regexp;
    #[allow(unused_imports)]
    pub(crate) use super::reg_opt::InternalRegOpt as RegOpt;
    #[allow(unused_imports)]
    pub(crate) use super::rescue::InternalRescue as Rescue;
    #[allow(unused_imports)]
    pub(crate) use super::rescue_body::InternalRescueBody as RescueBody;
    #[allow(unused_imports)]
    pub(crate) use super::restarg::InternalRestarg as Restarg;
    #[allow(unused_imports)]
    pub(crate) use super::retry::InternalRetry as Retry;
    #[allow(unused_imports)]
    pub(crate) use super::return_::InternalReturn as Return;
    #[allow(unused_imports)]
    pub(crate) use super::s_class::InternalSClass as SClass;
    #[allow(unused_imports)]
    pub(crate) use super::self_::InternalSelf_ as Self_;
    #[allow(unused_imports)]
    pub(crate) use super::send::InternalSend as Send;
    #[allow(unused_imports)]
    pub(crate) use super::shadowarg::InternalShadowarg as Shadowarg;
    #[allow(unused_imports)]
    pub(crate) use super::splat::InternalSplat as Splat;
    #[allow(unused_imports)]
    pub(crate) use super::str_::InternalStr as Str;
    #[allow(unused_imports)]
    pub(crate) use super::super_::InternalSuper as Super;
    #[allow(unused_imports)]
    pub(crate) use super::sym::InternalSym as Sym;
    #[allow(unused_imports)]
    pub(crate) use super::true_::InternalTrue as True;
    #[allow(unused_imports)]
    pub(crate) use super::undef::InternalUndef as Undef;
    #[allow(unused_imports)]
    pub(crate) use super::unless_guard::InternalUnlessGuard as UnlessGuard;
    #[allow(unused_imports)]
    pub(crate) use super::until::InternalUntil as Until;
    #[allow(unused_imports)]
    pub(crate) use super::until_post::InternalUntilPost as UntilPost;
    #[allow(unused_imports)]
    pub(crate) use super::when::InternalWhen as When;
    #[allow(unused_imports)]
    pub(crate) use super::while_::InternalWhile as While;
    #[allow(unused_imports)]
    pub(crate) use super::while_post::InternalWhilePost as WhilePost;
    #[allow(unused_imports)]
    pub(crate) use super::x_heredoc::InternalXHeredoc as XHeredoc;
    #[allow(unused_imports)]
    pub(crate) use super::xstr::InternalXstr as Xstr;
    #[allow(unused_imports)]
    pub(crate) use super::yield_::InternalYield as Yield;
    #[allow(unused_imports)]
    pub(crate) use super::z_super::InternalZSuper as ZSuper;

}