@@ -311,15 +311,15 @@ module Ruby {
311
311
/** Gets the name of the primary QL class for this element. */
312
312
final override string getAPrimaryQlClass ( ) { result = "Block" }
313
313
314
+ /** Gets the node corresponding to the field `body`. */
315
+ final BlockBody getBody ( ) { ruby_block_body ( this , result ) }
316
+
314
317
/** Gets the node corresponding to the field `parameters`. */
315
318
final BlockParameters getParameters ( ) { ruby_block_parameters ( this , result ) }
316
319
317
- /** Gets the `i`th child of this node. */
318
- final AstNode getChild ( int i ) { ruby_block_child ( this , i , result ) }
319
-
320
320
/** Gets a field or child node of this node. */
321
321
final override AstNode getAFieldOrChild ( ) {
322
- ruby_block_parameters ( this , result ) or ruby_block_child ( this , _ , result )
322
+ ruby_block_body ( this , result ) or ruby_block_parameters ( this , result )
323
323
}
324
324
}
325
325
@@ -335,6 +335,18 @@ module Ruby {
335
335
final override AstNode getAFieldOrChild ( ) { ruby_block_argument_child ( this , result ) }
336
336
}
337
337
338
+ /** A class representing `block_body` nodes. */
339
+ class BlockBody extends @ruby_block_body, AstNode {
340
+ /** Gets the name of the primary QL class for this element. */
341
+ final override string getAPrimaryQlClass ( ) { result = "BlockBody" }
342
+
343
+ /** Gets the `i`th child of this node. */
344
+ final AstNode getChild ( int i ) { ruby_block_body_child ( this , i , result ) }
345
+
346
+ /** Gets a field or child node of this node. */
347
+ final override AstNode getAFieldOrChild ( ) { ruby_block_body_child ( this , _, result ) }
348
+ }
349
+
338
350
/** A class representing `block_parameter` nodes. */
339
351
class BlockParameter extends @ruby_block_parameter, AstNode {
340
352
/** Gets the name of the primary QL class for this element. */
@@ -364,6 +376,18 @@ module Ruby {
364
376
}
365
377
}
366
378
379
+ /** A class representing `body_statement` nodes. */
380
+ class BodyStatement extends @ruby_body_statement, AstNode {
381
+ /** Gets the name of the primary QL class for this element. */
382
+ final override string getAPrimaryQlClass ( ) { result = "BodyStatement" }
383
+
384
+ /** Gets the `i`th child of this node. */
385
+ final AstNode getChild ( int i ) { ruby_body_statement_child ( this , i , result ) }
386
+
387
+ /** Gets a field or child node of this node. */
388
+ final override AstNode getAFieldOrChild ( ) { ruby_body_statement_child ( this , _, result ) }
389
+ }
390
+
367
391
/** A class representing `break` nodes. */
368
392
class Break extends @ruby_break, AstNode {
369
393
/** Gets the name of the primary QL class for this element. */
@@ -468,20 +492,20 @@ module Ruby {
468
492
/** Gets the name of the primary QL class for this element. */
469
493
final override string getAPrimaryQlClass ( ) { result = "Class" }
470
494
495
+ /** Gets the node corresponding to the field `body`. */
496
+ final BodyStatement getBody ( ) { ruby_class_body ( this , result ) }
497
+
471
498
/** Gets the node corresponding to the field `name`. */
472
499
final AstNode getName ( ) { ruby_class_def ( this , result ) }
473
500
474
501
/** Gets the node corresponding to the field `superclass`. */
475
502
final Superclass getSuperclass ( ) { ruby_class_superclass ( this , result ) }
476
503
477
- /** Gets the `i`th child of this node. */
478
- final AstNode getChild ( int i ) { ruby_class_child ( this , i , result ) }
479
-
480
504
/** Gets a field or child node of this node. */
481
505
final override AstNode getAFieldOrChild ( ) {
506
+ ruby_class_body ( this , result ) or
482
507
ruby_class_def ( this , result ) or
483
- ruby_class_superclass ( this , result ) or
484
- ruby_class_child ( this , _, result )
508
+ ruby_class_superclass ( this , result )
485
509
}
486
510
}
487
511
@@ -592,15 +616,15 @@ module Ruby {
592
616
/** Gets the name of the primary QL class for this element. */
593
617
final override string getAPrimaryQlClass ( ) { result = "DoBlock" }
594
618
619
+ /** Gets the node corresponding to the field `body`. */
620
+ final BodyStatement getBody ( ) { ruby_do_block_body ( this , result ) }
621
+
595
622
/** Gets the node corresponding to the field `parameters`. */
596
623
final BlockParameters getParameters ( ) { ruby_do_block_parameters ( this , result ) }
597
624
598
- /** Gets the `i`th child of this node. */
599
- final AstNode getChild ( int i ) { ruby_do_block_child ( this , i , result ) }
600
-
601
625
/** Gets a field or child node of this node. */
602
626
final override AstNode getAFieldOrChild ( ) {
603
- ruby_do_block_parameters ( this , result ) or ruby_do_block_child ( this , _ , result )
627
+ ruby_do_block_body ( this , result ) or ruby_do_block_parameters ( this , result )
604
628
}
605
629
}
606
630
@@ -1106,20 +1130,20 @@ module Ruby {
1106
1130
/** Gets the name of the primary QL class for this element. */
1107
1131
final override string getAPrimaryQlClass ( ) { result = "Method" }
1108
1132
1133
+ /** Gets the node corresponding to the field `body`. */
1134
+ final AstNode getBody ( ) { ruby_method_body ( this , result ) }
1135
+
1109
1136
/** Gets the node corresponding to the field `name`. */
1110
1137
final UnderscoreMethodName getName ( ) { ruby_method_def ( this , result ) }
1111
1138
1112
1139
/** Gets the node corresponding to the field `parameters`. */
1113
1140
final MethodParameters getParameters ( ) { ruby_method_parameters ( this , result ) }
1114
1141
1115
- /** Gets the `i`th child of this node. */
1116
- final AstNode getChild ( int i ) { ruby_method_child ( this , i , result ) }
1117
-
1118
1142
/** Gets a field or child node of this node. */
1119
1143
final override AstNode getAFieldOrChild ( ) {
1144
+ ruby_method_body ( this , result ) or
1120
1145
ruby_method_def ( this , result ) or
1121
- ruby_method_parameters ( this , result ) or
1122
- ruby_method_child ( this , _, result )
1146
+ ruby_method_parameters ( this , result )
1123
1147
}
1124
1148
}
1125
1149
@@ -1140,15 +1164,15 @@ module Ruby {
1140
1164
/** Gets the name of the primary QL class for this element. */
1141
1165
final override string getAPrimaryQlClass ( ) { result = "Module" }
1142
1166
1167
+ /** Gets the node corresponding to the field `body`. */
1168
+ final BodyStatement getBody ( ) { ruby_module_body ( this , result ) }
1169
+
1143
1170
/** Gets the node corresponding to the field `name`. */
1144
1171
final AstNode getName ( ) { ruby_module_def ( this , result ) }
1145
1172
1146
- /** Gets the `i`th child of this node. */
1147
- final AstNode getChild ( int i ) { ruby_module_child ( this , i , result ) }
1148
-
1149
1173
/** Gets a field or child node of this node. */
1150
1174
final override AstNode getAFieldOrChild ( ) {
1151
- ruby_module_def ( this , result ) or ruby_module_child ( this , _ , result )
1175
+ ruby_module_body ( this , result ) or ruby_module_def ( this , result )
1152
1176
}
1153
1177
}
1154
1178
@@ -1504,15 +1528,15 @@ module Ruby {
1504
1528
/** Gets the name of the primary QL class for this element. */
1505
1529
final override string getAPrimaryQlClass ( ) { result = "SingletonClass" }
1506
1530
1531
+ /** Gets the node corresponding to the field `body`. */
1532
+ final BodyStatement getBody ( ) { ruby_singleton_class_body ( this , result ) }
1533
+
1507
1534
/** Gets the node corresponding to the field `value`. */
1508
1535
final UnderscoreArg getValue ( ) { ruby_singleton_class_def ( this , result ) }
1509
1536
1510
- /** Gets the `i`th child of this node. */
1511
- final AstNode getChild ( int i ) { ruby_singleton_class_child ( this , i , result ) }
1512
-
1513
1537
/** Gets a field or child node of this node. */
1514
1538
final override AstNode getAFieldOrChild ( ) {
1515
- ruby_singleton_class_def ( this , result ) or ruby_singleton_class_child ( this , _ , result )
1539
+ ruby_singleton_class_body ( this , result ) or ruby_singleton_class_def ( this , result )
1516
1540
}
1517
1541
}
1518
1542
@@ -1521,6 +1545,9 @@ module Ruby {
1521
1545
/** Gets the name of the primary QL class for this element. */
1522
1546
final override string getAPrimaryQlClass ( ) { result = "SingletonMethod" }
1523
1547
1548
+ /** Gets the node corresponding to the field `body`. */
1549
+ final AstNode getBody ( ) { ruby_singleton_method_body ( this , result ) }
1550
+
1524
1551
/** Gets the node corresponding to the field `name`. */
1525
1552
final UnderscoreMethodName getName ( ) { ruby_singleton_method_def ( this , result , _) }
1526
1553
@@ -1530,15 +1557,12 @@ module Ruby {
1530
1557
/** Gets the node corresponding to the field `parameters`. */
1531
1558
final MethodParameters getParameters ( ) { ruby_singleton_method_parameters ( this , result ) }
1532
1559
1533
- /** Gets the `i`th child of this node. */
1534
- final AstNode getChild ( int i ) { ruby_singleton_method_child ( this , i , result ) }
1535
-
1536
1560
/** Gets a field or child node of this node. */
1537
1561
final override AstNode getAFieldOrChild ( ) {
1562
+ ruby_singleton_method_body ( this , result ) or
1538
1563
ruby_singleton_method_def ( this , result , _) or
1539
1564
ruby_singleton_method_def ( this , _, result ) or
1540
- ruby_singleton_method_parameters ( this , result ) or
1541
- ruby_singleton_method_child ( this , _, result )
1565
+ ruby_singleton_method_parameters ( this , result )
1542
1566
}
1543
1567
}
1544
1568
0 commit comments