1 #include "nitc__parser_prod.sep.0.h"
2 /* method parser_prod#ASlashExpr#replace_child for (self: ASlashExpr, ANode, nullable ANode) */
3 void nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4 val
* var_old_child
/* var old_child: ANode */;
5 val
* var_new_child
/* var new_child: nullable ANode */;
6 val
* var
/* : AExpr */;
7 short int var1
/* : Bool */;
8 val
* var_other
/* var other: nullable Object */;
9 short int var3
/* : Bool */;
10 short int var5
/* : Bool */;
11 short int var6
/* : Bool */;
14 const char* var_class_name
;
15 val
* var7
/* : Token */;
16 short int var8
/* : Bool */;
17 short int var10
/* : Bool */;
18 short int var12
/* : Bool */;
19 short int var13
/* : Bool */;
22 const char* var_class_name16
;
23 val
* var17
/* : AExpr */;
24 short int var18
/* : Bool */;
25 short int var20
/* : Bool */;
26 short int var22
/* : Bool */;
27 short int var23
/* : Bool */;
30 const char* var_class_name26
;
33 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ASlashExpr> */
34 if (unlikely(var
== NULL
)) {
35 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
36 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4641);
40 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
41 var_other
= var_old_child
;
43 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
44 var5
= var
== var_other
;
56 /* <var_new_child:nullable ANode> isa AExpr */
57 cltype
= type_nitc__AExpr
.color
;
58 idtype
= type_nitc__AExpr
.id
;
59 if(var_new_child
== NULL
) {
62 if(cltype
>= var_new_child
->type
->table_size
) {
65 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
68 if (unlikely(!var6
)) {
69 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
70 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
71 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4642);
75 nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashExpr#n_expr= on <self:ASlashExpr>*/
80 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ASlashExpr> */
81 if (unlikely(var7
== NULL
)) {
82 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
83 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4645);
87 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
88 var_other
= var_old_child
;
90 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
91 var12
= var7
== var_other
;
103 /* <var_new_child:nullable ANode> isa TSlash */
104 cltype14
= type_nitc__TSlash
.color
;
105 idtype15
= type_nitc__TSlash
.id
;
106 if(var_new_child
== NULL
) {
109 if(cltype14
>= var_new_child
->type
->table_size
) {
112 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
115 if (unlikely(!var13
)) {
116 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
117 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name16
);
118 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4646);
122 nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashExpr#n_op= on <self:ASlashExpr>*/
127 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ASlashExpr> */
128 if (unlikely(var17
== NULL
)) {
129 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
130 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4649);
134 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
135 var_other
= var_old_child
;
137 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
138 var22
= var17
== var_other
;
150 /* <var_new_child:nullable ANode> isa AExpr */
151 cltype24
= type_nitc__AExpr
.color
;
152 idtype25
= type_nitc__AExpr
.id
;
153 if(var_new_child
== NULL
) {
156 if(cltype24
>= var_new_child
->type
->table_size
) {
159 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
162 if (unlikely(!var23
)) {
163 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
164 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
165 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4650);
169 nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashExpr#n_expr2= on <self:ASlashExpr>*/
176 /* method parser_prod#ASlashExpr#n_expr= for (self: ASlashExpr, AExpr) */
177 void nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
178 val
* var_node
/* var node: AExpr */;
180 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ASlashExpr> */
182 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
183 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
189 /* method parser_prod#ASlashExpr#n_op= for (self: ASlashExpr, Token) */
190 void nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
191 val
* var_node
/* var node: Token */;
193 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:ASlashExpr> */
195 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
196 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
202 /* method parser_prod#ASlashExpr#n_expr2= for (self: ASlashExpr, AExpr) */
203 void nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
204 val
* var_node
/* var node: AExpr */;
206 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ASlashExpr> */
208 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
209 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
215 /* method parser_prod#ASlashExpr#visit_all for (self: ASlashExpr, Visitor) */
216 void nitc__parser_prod___ASlashExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
217 val
* var_v
/* var v: Visitor */;
218 val
* var
/* : AExpr */;
219 val
* var1
/* : Token */;
220 val
* var2
/* : AExpr */;
222 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ASlashExpr> */
223 if (unlikely(var
== NULL
)) {
224 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
225 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4674);
229 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
231 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ASlashExpr> */
232 if (unlikely(var1
== NULL
)) {
233 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
234 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4675);
238 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
240 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ASlashExpr> */
241 if (unlikely(var2
== NULL
)) {
242 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
243 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4676);
247 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
251 /* method parser_prod#APercentExpr#init_apercentexpr for (self: APercentExpr, nullable AExpr, nullable TPercent, nullable AExpr) */
252 void nitc__parser_prod___APercentExpr___init_apercentexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
253 val
* var_n_expr
/* var n_expr: nullable AExpr */;
254 val
* var_n_op
/* var n_op: nullable TPercent */;
255 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
257 { /* Inline kernel#Object#init (self) on <self:APercentExpr> */
264 if (unlikely(var_n_expr
== NULL
)) {
265 PRINT_ERROR("Runtime error: %s", "Cast failed");
266 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4686);
269 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:APercentExpr> */
270 if (var_n_expr
== NULL
) {
271 PRINT_ERROR("Runtime error: %s", "Receiver is null");
272 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4687);
275 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
276 if (unlikely(var_n_expr
== NULL
)) {
277 PRINT_ERROR("Runtime error: %s", "Receiver is null");
278 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
281 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
285 if (unlikely(var_n_op
== NULL
)) {
286 PRINT_ERROR("Runtime error: %s", "Cast failed");
287 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4688);
290 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:APercentExpr> */
291 if (var_n_op
== NULL
) {
292 PRINT_ERROR("Runtime error: %s", "Receiver is null");
293 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4689);
296 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPercent> */
297 if (unlikely(var_n_op
== NULL
)) {
298 PRINT_ERROR("Runtime error: %s", "Receiver is null");
299 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
302 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPercent> */
306 if (unlikely(var_n_expr2
== NULL
)) {
307 PRINT_ERROR("Runtime error: %s", "Cast failed");
308 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4690);
311 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:APercentExpr> */
312 if (var_n_expr2
== NULL
) {
313 PRINT_ERROR("Runtime error: %s", "Receiver is null");
314 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4691);
317 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
318 if (unlikely(var_n_expr2
== NULL
)) {
319 PRINT_ERROR("Runtime error: %s", "Receiver is null");
320 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
323 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
329 /* method parser_prod#APercentExpr#replace_child for (self: APercentExpr, ANode, nullable ANode) */
330 void nitc__parser_prod___APercentExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
331 val
* var_old_child
/* var old_child: ANode */;
332 val
* var_new_child
/* var new_child: nullable ANode */;
333 val
* var
/* : AExpr */;
334 short int var1
/* : Bool */;
335 val
* var_other
/* var other: nullable Object */;
336 short int var3
/* : Bool */;
337 short int var5
/* : Bool */;
338 short int var6
/* : Bool */;
341 const char* var_class_name
;
342 val
* var7
/* : Token */;
343 short int var8
/* : Bool */;
344 short int var10
/* : Bool */;
345 short int var12
/* : Bool */;
346 short int var13
/* : Bool */;
349 const char* var_class_name16
;
350 val
* var17
/* : AExpr */;
351 short int var18
/* : Bool */;
352 short int var20
/* : Bool */;
353 short int var22
/* : Bool */;
354 short int var23
/* : Bool */;
357 const char* var_class_name26
;
360 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APercentExpr> */
361 if (unlikely(var
== NULL
)) {
362 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
363 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4696);
367 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
368 var_other
= var_old_child
;
370 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
371 var5
= var
== var_other
;
383 /* <var_new_child:nullable ANode> isa AExpr */
384 cltype
= type_nitc__AExpr
.color
;
385 idtype
= type_nitc__AExpr
.id
;
386 if(var_new_child
== NULL
) {
389 if(cltype
>= var_new_child
->type
->table_size
) {
392 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
395 if (unlikely(!var6
)) {
396 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
397 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
398 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4697);
402 nitc__parser_prod___APercentExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_expr= on <self:APercentExpr>*/
407 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APercentExpr> */
408 if (unlikely(var7
== NULL
)) {
409 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
410 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4700);
414 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
415 var_other
= var_old_child
;
417 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
418 var12
= var7
== var_other
;
430 /* <var_new_child:nullable ANode> isa TPercent */
431 cltype14
= type_nitc__TPercent
.color
;
432 idtype15
= type_nitc__TPercent
.id
;
433 if(var_new_child
== NULL
) {
436 if(cltype14
>= var_new_child
->type
->table_size
) {
439 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
442 if (unlikely(!var13
)) {
443 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
444 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name16
);
445 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4701);
449 nitc__parser_prod___APercentExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_op= on <self:APercentExpr>*/
454 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APercentExpr> */
455 if (unlikely(var17
== NULL
)) {
456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
457 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4704);
461 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
462 var_other
= var_old_child
;
464 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
465 var22
= var17
== var_other
;
477 /* <var_new_child:nullable ANode> isa AExpr */
478 cltype24
= type_nitc__AExpr
.color
;
479 idtype25
= type_nitc__AExpr
.id
;
480 if(var_new_child
== NULL
) {
483 if(cltype24
>= var_new_child
->type
->table_size
) {
486 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
489 if (unlikely(!var23
)) {
490 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
491 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
492 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4705);
496 nitc__parser_prod___APercentExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_expr2= on <self:APercentExpr>*/
503 /* method parser_prod#APercentExpr#n_expr= for (self: APercentExpr, AExpr) */
504 void nitc__parser_prod___APercentExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
505 val
* var_node
/* var node: AExpr */;
507 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:APercentExpr> */
509 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
510 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
516 /* method parser_prod#APercentExpr#n_op= for (self: APercentExpr, Token) */
517 void nitc__parser_prod___APercentExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
518 val
* var_node
/* var node: Token */;
520 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:APercentExpr> */
522 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
523 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
529 /* method parser_prod#APercentExpr#n_expr2= for (self: APercentExpr, AExpr) */
530 void nitc__parser_prod___APercentExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
531 val
* var_node
/* var node: AExpr */;
533 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:APercentExpr> */
535 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
536 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
542 /* method parser_prod#APercentExpr#visit_all for (self: APercentExpr, Visitor) */
543 void nitc__parser_prod___APercentExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
544 val
* var_v
/* var v: Visitor */;
545 val
* var
/* : AExpr */;
546 val
* var1
/* : Token */;
547 val
* var2
/* : AExpr */;
549 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APercentExpr> */
550 if (unlikely(var
== NULL
)) {
551 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
552 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4729);
556 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
558 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APercentExpr> */
559 if (unlikely(var1
== NULL
)) {
560 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
561 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4730);
565 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
567 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APercentExpr> */
568 if (unlikely(var2
== NULL
)) {
569 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
570 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4731);
574 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
578 /* method parser_prod#APipeExpr#init_apipeexpr for (self: APipeExpr, nullable AExpr, nullable TPipe, nullable AExpr) */
579 void nitc__parser_prod___APipeExpr___init_apipeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
580 val
* var_n_expr
/* var n_expr: nullable AExpr */;
581 val
* var_n_op
/* var n_op: nullable TPipe */;
582 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
584 { /* Inline kernel#Object#init (self) on <self:APipeExpr> */
591 if (unlikely(var_n_expr
== NULL
)) {
592 PRINT_ERROR("Runtime error: %s", "Cast failed");
593 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4741);
596 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:APipeExpr> */
597 if (var_n_expr
== NULL
) {
598 PRINT_ERROR("Runtime error: %s", "Receiver is null");
599 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4742);
602 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
603 if (unlikely(var_n_expr
== NULL
)) {
604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
605 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
608 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
612 if (unlikely(var_n_op
== NULL
)) {
613 PRINT_ERROR("Runtime error: %s", "Cast failed");
614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4743);
617 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:APipeExpr> */
618 if (var_n_op
== NULL
) {
619 PRINT_ERROR("Runtime error: %s", "Receiver is null");
620 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4744);
623 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPipe> */
624 if (unlikely(var_n_op
== NULL
)) {
625 PRINT_ERROR("Runtime error: %s", "Receiver is null");
626 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
629 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPipe> */
633 if (unlikely(var_n_expr2
== NULL
)) {
634 PRINT_ERROR("Runtime error: %s", "Cast failed");
635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4745);
638 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:APipeExpr> */
639 if (var_n_expr2
== NULL
) {
640 PRINT_ERROR("Runtime error: %s", "Receiver is null");
641 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4746);
644 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
645 if (unlikely(var_n_expr2
== NULL
)) {
646 PRINT_ERROR("Runtime error: %s", "Receiver is null");
647 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
650 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
656 /* method parser_prod#APipeExpr#replace_child for (self: APipeExpr, ANode, nullable ANode) */
657 void nitc__parser_prod___APipeExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
658 val
* var_old_child
/* var old_child: ANode */;
659 val
* var_new_child
/* var new_child: nullable ANode */;
660 val
* var
/* : AExpr */;
661 short int var1
/* : Bool */;
662 val
* var_other
/* var other: nullable Object */;
663 short int var3
/* : Bool */;
664 short int var5
/* : Bool */;
665 short int var6
/* : Bool */;
668 const char* var_class_name
;
669 val
* var7
/* : Token */;
670 short int var8
/* : Bool */;
671 short int var10
/* : Bool */;
672 short int var12
/* : Bool */;
673 short int var13
/* : Bool */;
676 const char* var_class_name16
;
677 val
* var17
/* : AExpr */;
678 short int var18
/* : Bool */;
679 short int var20
/* : Bool */;
680 short int var22
/* : Bool */;
681 short int var23
/* : Bool */;
684 const char* var_class_name26
;
687 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APipeExpr> */
688 if (unlikely(var
== NULL
)) {
689 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
690 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4751);
694 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
695 var_other
= var_old_child
;
697 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
698 var5
= var
== var_other
;
710 /* <var_new_child:nullable ANode> isa AExpr */
711 cltype
= type_nitc__AExpr
.color
;
712 idtype
= type_nitc__AExpr
.id
;
713 if(var_new_child
== NULL
) {
716 if(cltype
>= var_new_child
->type
->table_size
) {
719 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
722 if (unlikely(!var6
)) {
723 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
724 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
725 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4752);
729 nitc__parser_prod___APipeExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_expr= on <self:APipeExpr>*/
734 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APipeExpr> */
735 if (unlikely(var7
== NULL
)) {
736 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
737 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4755);
741 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
742 var_other
= var_old_child
;
744 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
745 var12
= var7
== var_other
;
757 /* <var_new_child:nullable ANode> isa TPipe */
758 cltype14
= type_nitc__TPipe
.color
;
759 idtype15
= type_nitc__TPipe
.id
;
760 if(var_new_child
== NULL
) {
763 if(cltype14
>= var_new_child
->type
->table_size
) {
766 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
769 if (unlikely(!var13
)) {
770 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
771 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name16
);
772 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4756);
776 nitc__parser_prod___APipeExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_op= on <self:APipeExpr>*/
781 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APipeExpr> */
782 if (unlikely(var17
== NULL
)) {
783 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
784 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4759);
788 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
789 var_other
= var_old_child
;
791 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
792 var22
= var17
== var_other
;
804 /* <var_new_child:nullable ANode> isa AExpr */
805 cltype24
= type_nitc__AExpr
.color
;
806 idtype25
= type_nitc__AExpr
.id
;
807 if(var_new_child
== NULL
) {
810 if(cltype24
>= var_new_child
->type
->table_size
) {
813 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
816 if (unlikely(!var23
)) {
817 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
818 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
819 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4760);
823 nitc__parser_prod___APipeExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_expr2= on <self:APipeExpr>*/
830 /* method parser_prod#APipeExpr#n_expr= for (self: APipeExpr, AExpr) */
831 void nitc__parser_prod___APipeExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
832 val
* var_node
/* var node: AExpr */;
834 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:APipeExpr> */
836 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
837 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
843 /* method parser_prod#APipeExpr#n_op= for (self: APipeExpr, Token) */
844 void nitc__parser_prod___APipeExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
845 val
* var_node
/* var node: Token */;
847 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:APipeExpr> */
849 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
850 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
856 /* method parser_prod#APipeExpr#n_expr2= for (self: APipeExpr, AExpr) */
857 void nitc__parser_prod___APipeExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
858 val
* var_node
/* var node: AExpr */;
860 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:APipeExpr> */
862 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
863 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
869 /* method parser_prod#APipeExpr#visit_all for (self: APipeExpr, Visitor) */
870 void nitc__parser_prod___APipeExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
871 val
* var_v
/* var v: Visitor */;
872 val
* var
/* : AExpr */;
873 val
* var1
/* : Token */;
874 val
* var2
/* : AExpr */;
876 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APipeExpr> */
877 if (unlikely(var
== NULL
)) {
878 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
879 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4784);
883 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
885 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APipeExpr> */
886 if (unlikely(var1
== NULL
)) {
887 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
888 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4785);
892 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
894 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APipeExpr> */
895 if (unlikely(var2
== NULL
)) {
896 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
897 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4786);
901 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
905 /* method parser_prod#ACaretExpr#init_acaretexpr for (self: ACaretExpr, nullable AExpr, nullable TCaret, nullable AExpr) */
906 void nitc__parser_prod___ACaretExpr___init_acaretexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
907 val
* var_n_expr
/* var n_expr: nullable AExpr */;
908 val
* var_n_op
/* var n_op: nullable TCaret */;
909 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
911 { /* Inline kernel#Object#init (self) on <self:ACaretExpr> */
918 if (unlikely(var_n_expr
== NULL
)) {
919 PRINT_ERROR("Runtime error: %s", "Cast failed");
920 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4796);
923 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACaretExpr> */
924 if (var_n_expr
== NULL
) {
925 PRINT_ERROR("Runtime error: %s", "Receiver is null");
926 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4797);
929 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
930 if (unlikely(var_n_expr
== NULL
)) {
931 PRINT_ERROR("Runtime error: %s", "Receiver is null");
932 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
935 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
939 if (unlikely(var_n_op
== NULL
)) {
940 PRINT_ERROR("Runtime error: %s", "Cast failed");
941 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4798);
944 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:ACaretExpr> */
945 if (var_n_op
== NULL
) {
946 PRINT_ERROR("Runtime error: %s", "Receiver is null");
947 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4799);
950 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TCaret> */
951 if (unlikely(var_n_op
== NULL
)) {
952 PRINT_ERROR("Runtime error: %s", "Receiver is null");
953 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
956 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TCaret> */
960 if (unlikely(var_n_expr2
== NULL
)) {
961 PRINT_ERROR("Runtime error: %s", "Cast failed");
962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4800);
965 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:ACaretExpr> */
966 if (var_n_expr2
== NULL
) {
967 PRINT_ERROR("Runtime error: %s", "Receiver is null");
968 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4801);
971 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
972 if (unlikely(var_n_expr2
== NULL
)) {
973 PRINT_ERROR("Runtime error: %s", "Receiver is null");
974 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
977 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
983 /* method parser_prod#ACaretExpr#replace_child for (self: ACaretExpr, ANode, nullable ANode) */
984 void nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
985 val
* var_old_child
/* var old_child: ANode */;
986 val
* var_new_child
/* var new_child: nullable ANode */;
987 val
* var
/* : AExpr */;
988 short int var1
/* : Bool */;
989 val
* var_other
/* var other: nullable Object */;
990 short int var3
/* : Bool */;
991 short int var5
/* : Bool */;
992 short int var6
/* : Bool */;
995 const char* var_class_name
;
996 val
* var7
/* : Token */;
997 short int var8
/* : Bool */;
998 short int var10
/* : Bool */;
999 short int var12
/* : Bool */;
1000 short int var13
/* : Bool */;
1003 const char* var_class_name16
;
1004 val
* var17
/* : AExpr */;
1005 short int var18
/* : Bool */;
1006 short int var20
/* : Bool */;
1007 short int var22
/* : Bool */;
1008 short int var23
/* : Bool */;
1011 const char* var_class_name26
;
1014 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACaretExpr> */
1015 if (unlikely(var
== NULL
)) {
1016 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1017 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4806);
1021 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1022 var_other
= var_old_child
;
1024 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1025 var5
= var
== var_other
;
1037 /* <var_new_child:nullable ANode> isa AExpr */
1038 cltype
= type_nitc__AExpr
.color
;
1039 idtype
= type_nitc__AExpr
.id
;
1040 if(var_new_child
== NULL
) {
1043 if(cltype
>= var_new_child
->type
->table_size
) {
1046 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1049 if (unlikely(!var6
)) {
1050 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1051 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1052 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4807);
1056 nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_expr= on <self:ACaretExpr>*/
1061 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ACaretExpr> */
1062 if (unlikely(var7
== NULL
)) {
1063 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1064 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4810);
1068 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
1069 var_other
= var_old_child
;
1071 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
1072 var12
= var7
== var_other
;
1075 RET_LABEL11
:(void)0;
1084 /* <var_new_child:nullable ANode> isa TCaret */
1085 cltype14
= type_nitc__TCaret
.color
;
1086 idtype15
= type_nitc__TCaret
.id
;
1087 if(var_new_child
== NULL
) {
1090 if(cltype14
>= var_new_child
->type
->table_size
) {
1093 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1096 if (unlikely(!var13
)) {
1097 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1098 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name16
);
1099 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4811);
1103 nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_op= on <self:ACaretExpr>*/
1108 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ACaretExpr> */
1109 if (unlikely(var17
== NULL
)) {
1110 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1111 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4814);
1115 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
1116 var_other
= var_old_child
;
1118 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
1119 var22
= var17
== var_other
;
1122 RET_LABEL21
:(void)0;
1127 RET_LABEL19
:(void)0;
1131 /* <var_new_child:nullable ANode> isa AExpr */
1132 cltype24
= type_nitc__AExpr
.color
;
1133 idtype25
= type_nitc__AExpr
.id
;
1134 if(var_new_child
== NULL
) {
1137 if(cltype24
>= var_new_child
->type
->table_size
) {
1140 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1143 if (unlikely(!var23
)) {
1144 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1145 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
1146 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4815);
1150 nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_expr2= on <self:ACaretExpr>*/
1157 /* method parser_prod#ACaretExpr#n_expr= for (self: ACaretExpr, AExpr) */
1158 void nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1159 val
* var_node
/* var node: AExpr */;
1161 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACaretExpr> */
1163 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1164 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1170 /* method parser_prod#ACaretExpr#n_op= for (self: ACaretExpr, Token) */
1171 void nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
1172 val
* var_node
/* var node: Token */;
1174 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:ACaretExpr> */
1176 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1177 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1183 /* method parser_prod#ACaretExpr#n_expr2= for (self: ACaretExpr, AExpr) */
1184 void nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
1185 val
* var_node
/* var node: AExpr */;
1187 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ACaretExpr> */
1189 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1190 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1196 /* method parser_prod#ACaretExpr#visit_all for (self: ACaretExpr, Visitor) */
1197 void nitc__parser_prod___ACaretExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1198 val
* var_v
/* var v: Visitor */;
1199 val
* var
/* : AExpr */;
1200 val
* var1
/* : Token */;
1201 val
* var2
/* : AExpr */;
1203 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACaretExpr> */
1204 if (unlikely(var
== NULL
)) {
1205 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1206 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4839);
1210 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1212 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ACaretExpr> */
1213 if (unlikely(var1
== NULL
)) {
1214 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1215 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4840);
1219 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1221 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ACaretExpr> */
1222 if (unlikely(var2
== NULL
)) {
1223 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1224 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4841);
1228 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1232 /* method parser_prod#AAmpExpr#init_aampexpr for (self: AAmpExpr, nullable AExpr, nullable TAmp, nullable AExpr) */
1233 void nitc__parser_prod___AAmpExpr___init_aampexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1234 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1235 val
* var_n_op
/* var n_op: nullable TAmp */;
1236 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
1238 { /* Inline kernel#Object#init (self) on <self:AAmpExpr> */
1245 if (unlikely(var_n_expr
== NULL
)) {
1246 PRINT_ERROR("Runtime error: %s", "Cast failed");
1247 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4851);
1250 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAmpExpr> */
1251 if (var_n_expr
== NULL
) {
1252 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1253 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4852);
1256 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1257 if (unlikely(var_n_expr
== NULL
)) {
1258 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1259 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1262 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1266 if (unlikely(var_n_op
== NULL
)) {
1267 PRINT_ERROR("Runtime error: %s", "Cast failed");
1268 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4853);
1271 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AAmpExpr> */
1272 if (var_n_op
== NULL
) {
1273 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1274 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4854);
1277 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TAmp> */
1278 if (unlikely(var_n_op
== NULL
)) {
1279 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1280 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1283 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TAmp> */
1287 if (unlikely(var_n_expr2
== NULL
)) {
1288 PRINT_ERROR("Runtime error: %s", "Cast failed");
1289 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4855);
1292 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AAmpExpr> */
1293 if (var_n_expr2
== NULL
) {
1294 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1295 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4856);
1298 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
1299 if (unlikely(var_n_expr2
== NULL
)) {
1300 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1301 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1304 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
1310 /* method parser_prod#AAmpExpr#replace_child for (self: AAmpExpr, ANode, nullable ANode) */
1311 void nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1312 val
* var_old_child
/* var old_child: ANode */;
1313 val
* var_new_child
/* var new_child: nullable ANode */;
1314 val
* var
/* : AExpr */;
1315 short int var1
/* : Bool */;
1316 val
* var_other
/* var other: nullable Object */;
1317 short int var3
/* : Bool */;
1318 short int var5
/* : Bool */;
1319 short int var6
/* : Bool */;
1322 const char* var_class_name
;
1323 val
* var7
/* : Token */;
1324 short int var8
/* : Bool */;
1325 short int var10
/* : Bool */;
1326 short int var12
/* : Bool */;
1327 short int var13
/* : Bool */;
1330 const char* var_class_name16
;
1331 val
* var17
/* : AExpr */;
1332 short int var18
/* : Bool */;
1333 short int var20
/* : Bool */;
1334 short int var22
/* : Bool */;
1335 short int var23
/* : Bool */;
1338 const char* var_class_name26
;
1341 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AAmpExpr> */
1342 if (unlikely(var
== NULL
)) {
1343 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1344 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4861);
1348 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1349 var_other
= var_old_child
;
1351 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1352 var5
= var
== var_other
;
1364 /* <var_new_child:nullable ANode> isa AExpr */
1365 cltype
= type_nitc__AExpr
.color
;
1366 idtype
= type_nitc__AExpr
.id
;
1367 if(var_new_child
== NULL
) {
1370 if(cltype
>= var_new_child
->type
->table_size
) {
1373 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1376 if (unlikely(!var6
)) {
1377 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1378 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1379 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4862);
1383 nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_expr= on <self:AAmpExpr>*/
1388 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:AAmpExpr> */
1389 if (unlikely(var7
== NULL
)) {
1390 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1391 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4865);
1395 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
1396 var_other
= var_old_child
;
1398 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
1399 var12
= var7
== var_other
;
1402 RET_LABEL11
:(void)0;
1411 /* <var_new_child:nullable ANode> isa TAmp */
1412 cltype14
= type_nitc__TAmp
.color
;
1413 idtype15
= type_nitc__TAmp
.id
;
1414 if(var_new_child
== NULL
) {
1417 if(cltype14
>= var_new_child
->type
->table_size
) {
1420 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1423 if (unlikely(!var13
)) {
1424 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1425 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name16
);
1426 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4866);
1430 nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_op= on <self:AAmpExpr>*/
1435 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:AAmpExpr> */
1436 if (unlikely(var17
== NULL
)) {
1437 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1438 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4869);
1442 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
1443 var_other
= var_old_child
;
1445 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
1446 var22
= var17
== var_other
;
1449 RET_LABEL21
:(void)0;
1454 RET_LABEL19
:(void)0;
1458 /* <var_new_child:nullable ANode> isa AExpr */
1459 cltype24
= type_nitc__AExpr
.color
;
1460 idtype25
= type_nitc__AExpr
.id
;
1461 if(var_new_child
== NULL
) {
1464 if(cltype24
>= var_new_child
->type
->table_size
) {
1467 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1470 if (unlikely(!var23
)) {
1471 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1472 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
1473 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4870);
1477 nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_expr2= on <self:AAmpExpr>*/
1484 /* method parser_prod#AAmpExpr#n_expr= for (self: AAmpExpr, AExpr) */
1485 void nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1486 val
* var_node
/* var node: AExpr */;
1488 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAmpExpr> */
1490 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1491 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1497 /* method parser_prod#AAmpExpr#n_op= for (self: AAmpExpr, Token) */
1498 void nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
1499 val
* var_node
/* var node: Token */;
1501 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:AAmpExpr> */
1503 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1504 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1510 /* method parser_prod#AAmpExpr#n_expr2= for (self: AAmpExpr, AExpr) */
1511 void nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
1512 val
* var_node
/* var node: AExpr */;
1514 self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AAmpExpr> */
1516 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1517 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1523 /* method parser_prod#AAmpExpr#visit_all for (self: AAmpExpr, Visitor) */
1524 void nitc__parser_prod___AAmpExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1525 val
* var_v
/* var v: Visitor */;
1526 val
* var
/* : AExpr */;
1527 val
* var1
/* : Token */;
1528 val
* var2
/* : AExpr */;
1530 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AAmpExpr> */
1531 if (unlikely(var
== NULL
)) {
1532 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1533 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4894);
1537 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1539 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:AAmpExpr> */
1540 if (unlikely(var1
== NULL
)) {
1541 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1542 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4895);
1546 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1548 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:AAmpExpr> */
1549 if (unlikely(var2
== NULL
)) {
1550 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1551 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4896);
1555 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1559 /* method parser_prod#AUminusExpr#init_auminusexpr for (self: AUminusExpr, nullable TMinus, nullable AExpr) */
1560 void nitc__parser_prod___AUminusExpr___init_auminusexpr(val
* self
, val
* p0
, val
* p1
) {
1561 val
* var_n_op
/* var n_op: nullable TMinus */;
1562 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1564 { /* Inline kernel#Object#init (self) on <self:AUminusExpr> */
1570 if (unlikely(var_n_op
== NULL
)) {
1571 PRINT_ERROR("Runtime error: %s", "Cast failed");
1572 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4905);
1575 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUminusExpr> */
1576 if (var_n_op
== NULL
) {
1577 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1578 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4906);
1581 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TMinus> */
1582 if (unlikely(var_n_op
== NULL
)) {
1583 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1584 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1587 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TMinus> */
1591 if (unlikely(var_n_expr
== NULL
)) {
1592 PRINT_ERROR("Runtime error: %s", "Cast failed");
1593 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4907);
1596 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUminusExpr> */
1597 if (var_n_expr
== NULL
) {
1598 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1599 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4908);
1602 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1603 if (unlikely(var_n_expr
== NULL
)) {
1604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1605 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1608 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1614 /* method parser_prod#AUminusExpr#replace_child for (self: AUminusExpr, ANode, nullable ANode) */
1615 void nitc__parser_prod___AUminusExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1616 val
* var_old_child
/* var old_child: ANode */;
1617 val
* var_new_child
/* var new_child: nullable ANode */;
1618 val
* var
/* : Token */;
1619 short int var1
/* : Bool */;
1620 val
* var_other
/* var other: nullable Object */;
1621 short int var3
/* : Bool */;
1622 short int var5
/* : Bool */;
1623 short int var6
/* : Bool */;
1626 const char* var_class_name
;
1627 val
* var7
/* : AExpr */;
1628 short int var8
/* : Bool */;
1629 short int var10
/* : Bool */;
1630 short int var12
/* : Bool */;
1631 short int var13
/* : Bool */;
1634 const char* var_class_name16
;
1637 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUminusExpr> */
1638 if (unlikely(var
== NULL
)) {
1639 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1640 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4913);
1644 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1645 var_other
= var_old_child
;
1647 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1648 var5
= var
== var_other
;
1660 /* <var_new_child:nullable ANode> isa TMinus */
1661 cltype
= type_nitc__TMinus
.color
;
1662 idtype
= type_nitc__TMinus
.id
;
1663 if(var_new_child
== NULL
) {
1666 if(cltype
>= var_new_child
->type
->table_size
) {
1669 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1672 if (unlikely(!var6
)) {
1673 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1674 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name
);
1675 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4914);
1679 nitc__parser_prod___AUminusExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUminusExpr#n_op= on <self:AUminusExpr>*/
1684 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUminusExpr> */
1685 if (unlikely(var7
== NULL
)) {
1686 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1687 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4917);
1691 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
1692 var_other
= var_old_child
;
1694 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
1695 var12
= var7
== var_other
;
1698 RET_LABEL11
:(void)0;
1707 /* <var_new_child:nullable ANode> isa AExpr */
1708 cltype14
= type_nitc__AExpr
.color
;
1709 idtype15
= type_nitc__AExpr
.id
;
1710 if(var_new_child
== NULL
) {
1713 if(cltype14
>= var_new_child
->type
->table_size
) {
1716 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1719 if (unlikely(!var13
)) {
1720 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1721 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
1722 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4918);
1726 nitc__parser_prod___AUminusExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUminusExpr#n_expr= on <self:AUminusExpr>*/
1733 /* method parser_prod#AUminusExpr#n_op= for (self: AUminusExpr, Token) */
1734 void nitc__parser_prod___AUminusExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
1735 val
* var_node
/* var node: Token */;
1737 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUminusExpr> */
1739 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1740 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1746 /* method parser_prod#AUminusExpr#n_expr= for (self: AUminusExpr, AExpr) */
1747 void nitc__parser_prod___AUminusExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1748 val
* var_node
/* var node: AExpr */;
1750 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUminusExpr> */
1752 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1753 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1759 /* method parser_prod#AUminusExpr#visit_all for (self: AUminusExpr, Visitor) */
1760 void nitc__parser_prod___AUminusExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1761 val
* var_v
/* var v: Visitor */;
1762 val
* var
/* : Token */;
1763 val
* var1
/* : AExpr */;
1765 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUminusExpr> */
1766 if (unlikely(var
== NULL
)) {
1767 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1768 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4937);
1772 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1774 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUminusExpr> */
1775 if (unlikely(var1
== NULL
)) {
1776 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1777 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4938);
1781 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1785 /* method parser_prod#AUplusExpr#init_auplusexpr for (self: AUplusExpr, nullable TPlus, nullable AExpr) */
1786 void nitc__parser_prod___AUplusExpr___init_auplusexpr(val
* self
, val
* p0
, val
* p1
) {
1787 val
* var_n_op
/* var n_op: nullable TPlus */;
1788 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1790 { /* Inline kernel#Object#init (self) on <self:AUplusExpr> */
1796 if (unlikely(var_n_op
== NULL
)) {
1797 PRINT_ERROR("Runtime error: %s", "Cast failed");
1798 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4947);
1801 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUplusExpr> */
1802 if (var_n_op
== NULL
) {
1803 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1804 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4948);
1807 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPlus> */
1808 if (unlikely(var_n_op
== NULL
)) {
1809 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1810 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1813 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPlus> */
1817 if (unlikely(var_n_expr
== NULL
)) {
1818 PRINT_ERROR("Runtime error: %s", "Cast failed");
1819 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4949);
1822 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUplusExpr> */
1823 if (var_n_expr
== NULL
) {
1824 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4950);
1828 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1829 if (unlikely(var_n_expr
== NULL
)) {
1830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1831 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1834 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1840 /* method parser_prod#AUplusExpr#replace_child for (self: AUplusExpr, ANode, nullable ANode) */
1841 void nitc__parser_prod___AUplusExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1842 val
* var_old_child
/* var old_child: ANode */;
1843 val
* var_new_child
/* var new_child: nullable ANode */;
1844 val
* var
/* : Token */;
1845 short int var1
/* : Bool */;
1846 val
* var_other
/* var other: nullable Object */;
1847 short int var3
/* : Bool */;
1848 short int var5
/* : Bool */;
1849 short int var6
/* : Bool */;
1852 const char* var_class_name
;
1853 val
* var7
/* : AExpr */;
1854 short int var8
/* : Bool */;
1855 short int var10
/* : Bool */;
1856 short int var12
/* : Bool */;
1857 short int var13
/* : Bool */;
1860 const char* var_class_name16
;
1863 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUplusExpr> */
1864 if (unlikely(var
== NULL
)) {
1865 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1866 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4955);
1870 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1871 var_other
= var_old_child
;
1873 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1874 var5
= var
== var_other
;
1886 /* <var_new_child:nullable ANode> isa TPlus */
1887 cltype
= type_nitc__TPlus
.color
;
1888 idtype
= type_nitc__TPlus
.id
;
1889 if(var_new_child
== NULL
) {
1892 if(cltype
>= var_new_child
->type
->table_size
) {
1895 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1898 if (unlikely(!var6
)) {
1899 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1900 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name
);
1901 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4956);
1905 nitc__parser_prod___AUplusExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUplusExpr#n_op= on <self:AUplusExpr>*/
1910 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUplusExpr> */
1911 if (unlikely(var7
== NULL
)) {
1912 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1913 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4959);
1917 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
1918 var_other
= var_old_child
;
1920 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
1921 var12
= var7
== var_other
;
1924 RET_LABEL11
:(void)0;
1933 /* <var_new_child:nullable ANode> isa AExpr */
1934 cltype14
= type_nitc__AExpr
.color
;
1935 idtype15
= type_nitc__AExpr
.id
;
1936 if(var_new_child
== NULL
) {
1939 if(cltype14
>= var_new_child
->type
->table_size
) {
1942 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1945 if (unlikely(!var13
)) {
1946 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1947 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
1948 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4960);
1952 nitc__parser_prod___AUplusExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUplusExpr#n_expr= on <self:AUplusExpr>*/
1959 /* method parser_prod#AUplusExpr#n_op= for (self: AUplusExpr, Token) */
1960 void nitc__parser_prod___AUplusExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
1961 val
* var_node
/* var node: Token */;
1963 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUplusExpr> */
1965 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1966 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1972 /* method parser_prod#AUplusExpr#n_expr= for (self: AUplusExpr, AExpr) */
1973 void nitc__parser_prod___AUplusExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1974 val
* var_node
/* var node: AExpr */;
1976 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUplusExpr> */
1978 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1979 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1985 /* method parser_prod#AUplusExpr#visit_all for (self: AUplusExpr, Visitor) */
1986 void nitc__parser_prod___AUplusExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1987 val
* var_v
/* var v: Visitor */;
1988 val
* var
/* : Token */;
1989 val
* var1
/* : AExpr */;
1991 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUplusExpr> */
1992 if (unlikely(var
== NULL
)) {
1993 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1994 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4979);
1998 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2000 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUplusExpr> */
2001 if (unlikely(var1
== NULL
)) {
2002 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2003 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4980);
2007 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2011 /* method parser_prod#AUtildeExpr#init_autildeexpr for (self: AUtildeExpr, nullable TTilde, nullable AExpr) */
2012 void nitc__parser_prod___AUtildeExpr___init_autildeexpr(val
* self
, val
* p0
, val
* p1
) {
2013 val
* var_n_op
/* var n_op: nullable TTilde */;
2014 val
* var_n_expr
/* var n_expr: nullable AExpr */;
2016 { /* Inline kernel#Object#init (self) on <self:AUtildeExpr> */
2022 if (unlikely(var_n_op
== NULL
)) {
2023 PRINT_ERROR("Runtime error: %s", "Cast failed");
2024 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4989);
2027 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUtildeExpr> */
2028 if (var_n_op
== NULL
) {
2029 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2030 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4990);
2033 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TTilde> */
2034 if (unlikely(var_n_op
== NULL
)) {
2035 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2036 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2039 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TTilde> */
2043 if (unlikely(var_n_expr
== NULL
)) {
2044 PRINT_ERROR("Runtime error: %s", "Cast failed");
2045 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4991);
2048 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUtildeExpr> */
2049 if (var_n_expr
== NULL
) {
2050 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2051 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4992);
2054 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
2055 if (unlikely(var_n_expr
== NULL
)) {
2056 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2057 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2060 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
2066 /* method parser_prod#AUtildeExpr#replace_child for (self: AUtildeExpr, ANode, nullable ANode) */
2067 void nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2068 val
* var_old_child
/* var old_child: ANode */;
2069 val
* var_new_child
/* var new_child: nullable ANode */;
2070 val
* var
/* : Token */;
2071 short int var1
/* : Bool */;
2072 val
* var_other
/* var other: nullable Object */;
2073 short int var3
/* : Bool */;
2074 short int var5
/* : Bool */;
2075 short int var6
/* : Bool */;
2078 const char* var_class_name
;
2079 val
* var7
/* : AExpr */;
2080 short int var8
/* : Bool */;
2081 short int var10
/* : Bool */;
2082 short int var12
/* : Bool */;
2083 short int var13
/* : Bool */;
2086 const char* var_class_name16
;
2089 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUtildeExpr> */
2090 if (unlikely(var
== NULL
)) {
2091 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2092 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4997);
2096 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2097 var_other
= var_old_child
;
2099 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2100 var5
= var
== var_other
;
2112 /* <var_new_child:nullable ANode> isa TTilde */
2113 cltype
= type_nitc__TTilde
.color
;
2114 idtype
= type_nitc__TTilde
.id
;
2115 if(var_new_child
== NULL
) {
2118 if(cltype
>= var_new_child
->type
->table_size
) {
2121 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2124 if (unlikely(!var6
)) {
2125 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2126 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name
);
2127 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 4998);
2131 nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUtildeExpr#n_op= on <self:AUtildeExpr>*/
2136 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUtildeExpr> */
2137 if (unlikely(var7
== NULL
)) {
2138 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2139 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5001);
2143 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
2144 var_other
= var_old_child
;
2146 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
2147 var12
= var7
== var_other
;
2150 RET_LABEL11
:(void)0;
2159 /* <var_new_child:nullable ANode> isa AExpr */
2160 cltype14
= type_nitc__AExpr
.color
;
2161 idtype15
= type_nitc__AExpr
.id
;
2162 if(var_new_child
== NULL
) {
2165 if(cltype14
>= var_new_child
->type
->table_size
) {
2168 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2171 if (unlikely(!var13
)) {
2172 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2173 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
2174 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5002);
2178 nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUtildeExpr#n_expr= on <self:AUtildeExpr>*/
2185 /* method parser_prod#AUtildeExpr#n_op= for (self: AUtildeExpr, Token) */
2186 void nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
2187 val
* var_node
/* var node: Token */;
2189 self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUtildeExpr> */
2191 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2192 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2198 /* method parser_prod#AUtildeExpr#n_expr= for (self: AUtildeExpr, AExpr) */
2199 void nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
2200 val
* var_node
/* var node: AExpr */;
2202 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUtildeExpr> */
2204 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2205 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2211 /* method parser_prod#AUtildeExpr#visit_all for (self: AUtildeExpr, Visitor) */
2212 void nitc__parser_prod___AUtildeExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2213 val
* var_v
/* var v: Visitor */;
2214 val
* var
/* : Token */;
2215 val
* var1
/* : AExpr */;
2217 var
= self
->attrs
[COLOR_nitc__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUtildeExpr> */
2218 if (unlikely(var
== NULL
)) {
2219 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2220 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5021);
2224 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2226 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUtildeExpr> */
2227 if (unlikely(var1
== NULL
)) {
2228 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2229 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5022);
2233 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2237 /* method parser_prod#ANewExpr#init_anewexpr for (self: ANewExpr, nullable TKwnew, nullable AType, nullable AQid, nullable AExprs) */
2238 void nitc__parser_prod___ANewExpr___init_anewexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2239 val
* var_n_kwnew
/* var n_kwnew: nullable TKwnew */;
2240 val
* var_n_type
/* var n_type: nullable AType */;
2241 val
* var_n_qid
/* var n_qid: nullable AQid */;
2242 val
* var_n_args
/* var n_args: nullable AExprs */;
2243 short int var
/* : Bool */;
2244 short int var4
/* : Bool */;
2245 val
* var_other
/* var other: nullable Object */;
2246 short int var6
/* : Bool */;
2247 short int var7
/* : Bool */;
2249 { /* Inline kernel#Object#init (self) on <self:ANewExpr> */
2257 if (unlikely(var_n_kwnew
== NULL
)) {
2258 PRINT_ERROR("Runtime error: %s", "Cast failed");
2259 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5033);
2262 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_kwnew
].val
= var_n_kwnew
; /* _n_kwnew on <self:ANewExpr> */
2263 if (var_n_kwnew
== NULL
) {
2264 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2265 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5034);
2268 { /* Inline parser_nodes#ANode#parent= (var_n_kwnew,self) on <var_n_kwnew:nullable TKwnew> */
2269 if (unlikely(var_n_kwnew
== NULL
)) {
2270 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2271 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2274 var_n_kwnew
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnew:nullable TKwnew> */
2278 if (unlikely(var_n_type
== NULL
)) {
2279 PRINT_ERROR("Runtime error: %s", "Cast failed");
2280 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5035);
2283 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ANewExpr> */
2284 if (var_n_type
== NULL
) {
2285 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2286 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5036);
2289 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
2290 if (unlikely(var_n_type
== NULL
)) {
2291 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2292 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2295 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
2299 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_qid
].val
= var_n_qid
; /* _n_qid on <self:ANewExpr> */
2300 if (var_n_qid
== NULL
) {
2301 var
= 0; /* is null */
2303 var
= 1; /* arg is null and recv is not */
2306 { /* Inline kernel#Object#!= (var_n_qid,((val*)NULL)) on <var_n_qid:nullable AQid> */
2307 var_other
= ((val
*)NULL
);
2309 var6
= ((short int(*)(val
* self
, val
* p0
))(var_n_qid
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_qid
, var_other
); /* == on <var_n_qid:nullable AQid(AQid)>*/
2320 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQid(AQid)> */
2321 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQid(AQid)> */
2327 if (unlikely(var_n_args
== NULL
)) {
2328 PRINT_ERROR("Runtime error: %s", "Cast failed");
2329 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5039);
2332 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ANewExpr> */
2333 if (var_n_args
== NULL
) {
2334 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2335 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5040);
2338 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
2339 if (unlikely(var_n_args
== NULL
)) {
2340 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2341 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2344 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
2350 /* method parser_prod#ANewExpr#replace_child for (self: ANewExpr, ANode, nullable ANode) */
2351 void nitc__parser_prod___ANewExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2352 val
* var_old_child
/* var old_child: ANode */;
2353 val
* var_new_child
/* var new_child: nullable ANode */;
2354 val
* var
/* : TKwnew */;
2355 short int var1
/* : Bool */;
2356 val
* var_other
/* var other: nullable Object */;
2357 short int var3
/* : Bool */;
2358 short int var5
/* : Bool */;
2359 short int var6
/* : Bool */;
2362 const char* var_class_name
;
2363 val
* var7
/* : AType */;
2364 short int var8
/* : Bool */;
2365 short int var10
/* : Bool */;
2366 short int var12
/* : Bool */;
2367 short int var13
/* : Bool */;
2370 const char* var_class_name16
;
2371 val
* var17
/* : nullable AQid */;
2372 short int var18
/* : Bool */;
2373 short int var19
/* : Bool */;
2374 short int var21
/* : Bool */;
2375 short int var23
/* : Bool */;
2376 short int var24
/* : Bool */;
2379 const char* var_class_name27
;
2380 val
* var28
/* : AExprs */;
2381 short int var29
/* : Bool */;
2382 short int var31
/* : Bool */;
2383 short int var33
/* : Bool */;
2384 short int var34
/* : Bool */;
2387 const char* var_class_name37
;
2390 var
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_kwnew
].val
; /* _n_kwnew on <self:ANewExpr> */
2391 if (unlikely(var
== NULL
)) {
2392 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnew");
2393 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5045);
2397 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwnew> */
2398 var_other
= var_old_child
;
2400 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwnew> */
2401 var5
= var
== var_other
;
2413 /* <var_new_child:nullable ANode> isa TKwnew */
2414 cltype
= type_nitc__TKwnew
.color
;
2415 idtype
= type_nitc__TKwnew
.id
;
2416 if(var_new_child
== NULL
) {
2419 if(cltype
>= var_new_child
->type
->table_size
) {
2422 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2425 if (unlikely(!var6
)) {
2426 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2427 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnew", var_class_name
);
2428 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5046);
2432 nitc__parser_prod___ANewExpr___n_kwnew_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_kwnew= on <self:ANewExpr>*/
2437 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_type
].val
; /* _n_type on <self:ANewExpr> */
2438 if (unlikely(var7
== NULL
)) {
2439 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
2440 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5049);
2444 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AType> */
2445 var_other
= var_old_child
;
2447 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AType> */
2448 var12
= var7
== var_other
;
2451 RET_LABEL11
:(void)0;
2460 /* <var_new_child:nullable ANode> isa AType */
2461 cltype14
= type_nitc__AType
.color
;
2462 idtype15
= type_nitc__AType
.id
;
2463 if(var_new_child
== NULL
) {
2466 if(cltype14
>= var_new_child
->type
->table_size
) {
2469 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2472 if (unlikely(!var13
)) {
2473 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2474 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name16
);
2475 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5050);
2479 nitc__parser_prod___ANewExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_type= on <self:ANewExpr>*/
2484 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_qid
].val
; /* _n_qid on <self:ANewExpr> */
2485 if (var17
== NULL
) {
2486 var18
= 0; /* <var_old_child:ANode> cannot be null */
2488 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable AQid> */
2489 var_other
= var_old_child
;
2491 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable AQid(AQid)> */
2492 var23
= var17
== var_other
;
2495 RET_LABEL22
:(void)0;
2500 RET_LABEL20
:(void)0;
2505 /* <var_new_child:nullable ANode> isa nullable AQid */
2506 cltype25
= type_nullable__nitc__AQid
.color
;
2507 idtype26
= type_nullable__nitc__AQid
.id
;
2508 if(var_new_child
== NULL
) {
2511 if(cltype25
>= var_new_child
->type
->table_size
) {
2514 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
2517 if (unlikely(!var24
)) {
2518 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2519 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQid", var_class_name27
);
2520 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5054);
2524 nitc__parser_prod___ANewExpr___n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_qid= on <self:ANewExpr>*/
2529 var28
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_args
].val
; /* _n_args on <self:ANewExpr> */
2530 if (unlikely(var28
== NULL
)) {
2531 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2532 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5057);
2536 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:AExprs> */
2537 var_other
= var_old_child
;
2539 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:AExprs> */
2540 var33
= var28
== var_other
;
2543 RET_LABEL32
:(void)0;
2548 RET_LABEL30
:(void)0;
2552 /* <var_new_child:nullable ANode> isa AExprs */
2553 cltype35
= type_nitc__AExprs
.color
;
2554 idtype36
= type_nitc__AExprs
.id
;
2555 if(var_new_child
== NULL
) {
2558 if(cltype35
>= var_new_child
->type
->table_size
) {
2561 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
2564 if (unlikely(!var34
)) {
2565 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2566 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name37
);
2567 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5058);
2571 nitc__parser_prod___ANewExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_args= on <self:ANewExpr>*/
2578 /* method parser_prod#ANewExpr#n_kwnew= for (self: ANewExpr, TKwnew) */
2579 void nitc__parser_prod___ANewExpr___n_kwnew_61d(val
* self
, val
* p0
) {
2580 val
* var_node
/* var node: TKwnew */;
2582 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_kwnew
].val
= var_node
; /* _n_kwnew on <self:ANewExpr> */
2584 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnew> */
2585 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnew> */
2591 /* method parser_prod#ANewExpr#n_type= for (self: ANewExpr, AType) */
2592 void nitc__parser_prod___ANewExpr___n_type_61d(val
* self
, val
* p0
) {
2593 val
* var_node
/* var node: AType */;
2595 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_type
].val
= var_node
; /* _n_type on <self:ANewExpr> */
2597 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
2598 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
2604 /* method parser_prod#ANewExpr#n_qid= for (self: ANewExpr, nullable AQid) */
2605 void nitc__parser_prod___ANewExpr___n_qid_61d(val
* self
, val
* p0
) {
2606 val
* var_node
/* var node: nullable AQid */;
2607 short int var
/* : Bool */;
2608 short int var1
/* : Bool */;
2609 val
* var_other
/* var other: nullable Object */;
2610 short int var3
/* : Bool */;
2611 short int var4
/* : Bool */;
2613 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_qid
].val
= var_node
; /* _n_qid on <self:ANewExpr> */
2614 if (var_node
== NULL
) {
2615 var
= 0; /* is null */
2617 var
= 1; /* arg is null and recv is not */
2620 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQid> */
2621 var_other
= ((val
*)NULL
);
2623 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AQid(AQid)>*/
2634 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQid(AQid)> */
2635 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQid(AQid)> */
2643 /* method parser_prod#ANewExpr#n_args= for (self: ANewExpr, AExprs) */
2644 void nitc__parser_prod___ANewExpr___n_args_61d(val
* self
, val
* p0
) {
2645 val
* var_node
/* var node: AExprs */;
2647 self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_args
].val
= var_node
; /* _n_args on <self:ANewExpr> */
2649 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
2650 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
2656 /* method parser_prod#ANewExpr#visit_all for (self: ANewExpr, Visitor) */
2657 void nitc__parser_prod___ANewExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2658 val
* var_v
/* var v: Visitor */;
2659 val
* var
/* : TKwnew */;
2660 val
* var1
/* : AType */;
2661 val
* var2
/* : nullable AQid */;
2662 val
* var3
/* : AExprs */;
2664 var
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_kwnew
].val
; /* _n_kwnew on <self:ANewExpr> */
2665 if (unlikely(var
== NULL
)) {
2666 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnew");
2667 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5087);
2671 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2673 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_type
].val
; /* _n_type on <self:ANewExpr> */
2674 if (unlikely(var1
== NULL
)) {
2675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
2676 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5088);
2680 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2682 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_qid
].val
; /* _n_qid on <self:ANewExpr> */
2684 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2686 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ANewExpr___n_args
].val
; /* _n_args on <self:ANewExpr> */
2687 if (unlikely(var3
== NULL
)) {
2688 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2689 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5090);
2693 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2697 /* method parser_prod#AAttrExpr#init_aattrexpr for (self: AAttrExpr, nullable AExpr, nullable TAttrid) */
2698 void nitc__parser_prod___AAttrExpr___init_aattrexpr(val
* self
, val
* p0
, val
* p1
) {
2699 val
* var_n_expr
/* var n_expr: nullable AExpr */;
2700 val
* var_n_id
/* var n_id: nullable TAttrid */;
2702 { /* Inline kernel#Object#init (self) on <self:AAttrExpr> */
2708 if (unlikely(var_n_expr
== NULL
)) {
2709 PRINT_ERROR("Runtime error: %s", "Cast failed");
2710 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5099);
2713 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrExpr> */
2714 if (var_n_expr
== NULL
) {
2715 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2716 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5100);
2719 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
2720 if (unlikely(var_n_expr
== NULL
)) {
2721 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2722 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2725 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
2729 if (unlikely(var_n_id
== NULL
)) {
2730 PRINT_ERROR("Runtime error: %s", "Cast failed");
2731 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5101);
2734 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrExpr> */
2735 if (var_n_id
== NULL
) {
2736 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2737 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5102);
2740 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
2741 if (unlikely(var_n_id
== NULL
)) {
2742 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2743 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2746 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
2752 /* method parser_prod#AAttrExpr#replace_child for (self: AAttrExpr, ANode, nullable ANode) */
2753 void nitc__parser_prod___AAttrExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2754 val
* var_old_child
/* var old_child: ANode */;
2755 val
* var_new_child
/* var new_child: nullable ANode */;
2756 val
* var
/* : AExpr */;
2757 short int var1
/* : Bool */;
2758 val
* var_other
/* var other: nullable Object */;
2759 short int var3
/* : Bool */;
2760 short int var5
/* : Bool */;
2761 short int var6
/* : Bool */;
2764 const char* var_class_name
;
2765 val
* var7
/* : TAttrid */;
2766 short int var8
/* : Bool */;
2767 short int var10
/* : Bool */;
2768 short int var12
/* : Bool */;
2769 short int var13
/* : Bool */;
2772 const char* var_class_name16
;
2775 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrExpr> */
2776 if (unlikely(var
== NULL
)) {
2777 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2778 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5107);
2782 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
2783 var_other
= var_old_child
;
2785 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
2786 var5
= var
== var_other
;
2798 /* <var_new_child:nullable ANode> isa AExpr */
2799 cltype
= type_nitc__AExpr
.color
;
2800 idtype
= type_nitc__AExpr
.id
;
2801 if(var_new_child
== NULL
) {
2804 if(cltype
>= var_new_child
->type
->table_size
) {
2807 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2810 if (unlikely(!var6
)) {
2811 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2812 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
2813 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5108);
2817 nitc__parser_prod___AAttrExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrExpr#n_expr= on <self:AAttrExpr>*/
2822 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrExpr> */
2823 if (unlikely(var7
== NULL
)) {
2824 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5111);
2829 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
2830 var_other
= var_old_child
;
2832 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
2833 var12
= var7
== var_other
;
2836 RET_LABEL11
:(void)0;
2845 /* <var_new_child:nullable ANode> isa TAttrid */
2846 cltype14
= type_nitc__TAttrid
.color
;
2847 idtype15
= type_nitc__TAttrid
.id
;
2848 if(var_new_child
== NULL
) {
2851 if(cltype14
>= var_new_child
->type
->table_size
) {
2854 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2857 if (unlikely(!var13
)) {
2858 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2859 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
2860 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5112);
2864 nitc__parser_prod___AAttrExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrExpr#n_id= on <self:AAttrExpr>*/
2871 /* method parser_prod#AAttrExpr#n_expr= for (self: AAttrExpr, AExpr) */
2872 void nitc__parser_prod___AAttrExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
2873 val
* var_node
/* var node: AExpr */;
2875 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrExpr> */
2877 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2878 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2884 /* method parser_prod#AAttrExpr#n_id= for (self: AAttrExpr, TAttrid) */
2885 void nitc__parser_prod___AAttrExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
2886 val
* var_node
/* var node: TAttrid */;
2888 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrExpr> */
2890 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
2891 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
2897 /* method parser_prod#AAttrExpr#visit_all for (self: AAttrExpr, Visitor) */
2898 void nitc__parser_prod___AAttrExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2899 val
* var_v
/* var v: Visitor */;
2900 val
* var
/* : AExpr */;
2901 val
* var1
/* : TAttrid */;
2903 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrExpr> */
2904 if (unlikely(var
== NULL
)) {
2905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2906 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5131);
2910 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2912 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrExpr> */
2913 if (unlikely(var1
== NULL
)) {
2914 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2915 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5132);
2919 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2923 /* method parser_prod#AAttrAssignExpr#init_aattrassignexpr for (self: AAttrAssignExpr, nullable AExpr, nullable TAttrid, nullable TAssign, nullable AExpr) */
2924 void nitc__parser_prod___AAttrAssignExpr___init_aattrassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2925 val
* var_n_expr
/* var n_expr: nullable AExpr */;
2926 val
* var_n_id
/* var n_id: nullable TAttrid */;
2927 val
* var_n_assign
/* var n_assign: nullable TAssign */;
2928 val
* var_n_value
/* var n_value: nullable AExpr */;
2930 { /* Inline kernel#Object#init (self) on <self:AAttrAssignExpr> */
2938 if (unlikely(var_n_expr
== NULL
)) {
2939 PRINT_ERROR("Runtime error: %s", "Cast failed");
2940 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5143);
2943 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrAssignExpr> */
2944 if (var_n_expr
== NULL
) {
2945 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2946 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5144);
2949 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
2950 if (unlikely(var_n_expr
== NULL
)) {
2951 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2952 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2955 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
2959 if (unlikely(var_n_id
== NULL
)) {
2960 PRINT_ERROR("Runtime error: %s", "Cast failed");
2961 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5145);
2964 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrAssignExpr> */
2965 if (var_n_id
== NULL
) {
2966 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2967 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5146);
2970 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
2971 if (unlikely(var_n_id
== NULL
)) {
2972 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2973 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2976 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
2980 if (unlikely(var_n_assign
== NULL
)) {
2981 PRINT_ERROR("Runtime error: %s", "Cast failed");
2982 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5147);
2985 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAttrAssignExpr> */
2986 if (var_n_assign
== NULL
) {
2987 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2988 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5148);
2991 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
2992 if (unlikely(var_n_assign
== NULL
)) {
2993 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2994 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2997 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
3001 if (unlikely(var_n_value
== NULL
)) {
3002 PRINT_ERROR("Runtime error: %s", "Cast failed");
3003 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5149);
3006 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AAttrAssignExpr> */
3007 if (var_n_value
== NULL
) {
3008 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3009 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5150);
3012 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
3013 if (unlikely(var_n_value
== NULL
)) {
3014 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3015 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3018 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
3024 /* method parser_prod#AAttrAssignExpr#replace_child for (self: AAttrAssignExpr, ANode, nullable ANode) */
3025 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3026 val
* var_old_child
/* var old_child: ANode */;
3027 val
* var_new_child
/* var new_child: nullable ANode */;
3028 val
* var
/* : AExpr */;
3029 short int var1
/* : Bool */;
3030 val
* var_other
/* var other: nullable Object */;
3031 short int var3
/* : Bool */;
3032 short int var5
/* : Bool */;
3033 short int var6
/* : Bool */;
3036 const char* var_class_name
;
3037 val
* var7
/* : TAttrid */;
3038 short int var8
/* : Bool */;
3039 short int var10
/* : Bool */;
3040 short int var12
/* : Bool */;
3041 short int var13
/* : Bool */;
3044 const char* var_class_name16
;
3045 val
* var17
/* : TAssign */;
3046 short int var18
/* : Bool */;
3047 short int var20
/* : Bool */;
3048 short int var22
/* : Bool */;
3049 short int var23
/* : Bool */;
3052 const char* var_class_name26
;
3053 val
* var27
/* : AExpr */;
3054 short int var28
/* : Bool */;
3055 short int var30
/* : Bool */;
3056 short int var32
/* : Bool */;
3057 short int var33
/* : Bool */;
3060 const char* var_class_name36
;
3063 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrAssignExpr> */
3064 if (unlikely(var
== NULL
)) {
3065 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3066 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5155);
3070 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3071 var_other
= var_old_child
;
3073 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3074 var5
= var
== var_other
;
3086 /* <var_new_child:nullable ANode> isa AExpr */
3087 cltype
= type_nitc__AExpr
.color
;
3088 idtype
= type_nitc__AExpr
.id
;
3089 if(var_new_child
== NULL
) {
3092 if(cltype
>= var_new_child
->type
->table_size
) {
3095 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3098 if (unlikely(!var6
)) {
3099 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3100 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3101 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5156);
3105 nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_expr= on <self:AAttrAssignExpr>*/
3110 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrAssignExpr> */
3111 if (unlikely(var7
== NULL
)) {
3112 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3113 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5159);
3117 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
3118 var_other
= var_old_child
;
3120 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
3121 var12
= var7
== var_other
;
3124 RET_LABEL11
:(void)0;
3133 /* <var_new_child:nullable ANode> isa TAttrid */
3134 cltype14
= type_nitc__TAttrid
.color
;
3135 idtype15
= type_nitc__TAttrid
.id
;
3136 if(var_new_child
== NULL
) {
3139 if(cltype14
>= var_new_child
->type
->table_size
) {
3142 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3145 if (unlikely(!var13
)) {
3146 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3147 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
3148 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5160);
3152 nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_id= on <self:AAttrAssignExpr>*/
3157 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AAttrAssignExpr> */
3158 if (unlikely(var17
== NULL
)) {
3159 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
3160 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5163);
3164 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
3165 var_other
= var_old_child
;
3167 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
3168 var22
= var17
== var_other
;
3171 RET_LABEL21
:(void)0;
3176 RET_LABEL19
:(void)0;
3180 /* <var_new_child:nullable ANode> isa TAssign */
3181 cltype24
= type_nitc__TAssign
.color
;
3182 idtype25
= type_nitc__TAssign
.id
;
3183 if(var_new_child
== NULL
) {
3186 if(cltype24
>= var_new_child
->type
->table_size
) {
3189 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
3192 if (unlikely(!var23
)) {
3193 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3194 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
3195 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5164);
3199 nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_assign= on <self:AAttrAssignExpr>*/
3204 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AAttrAssignExpr> */
3205 if (unlikely(var27
== NULL
)) {
3206 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3207 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5167);
3211 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
3212 var_other
= var_old_child
;
3214 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
3215 var32
= var27
== var_other
;
3218 RET_LABEL31
:(void)0;
3223 RET_LABEL29
:(void)0;
3227 /* <var_new_child:nullable ANode> isa AExpr */
3228 cltype34
= type_nitc__AExpr
.color
;
3229 idtype35
= type_nitc__AExpr
.id
;
3230 if(var_new_child
== NULL
) {
3233 if(cltype34
>= var_new_child
->type
->table_size
) {
3236 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
3239 if (unlikely(!var33
)) {
3240 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3241 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
3242 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5168);
3246 nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_value= on <self:AAttrAssignExpr>*/
3253 /* method parser_prod#AAttrAssignExpr#n_expr= for (self: AAttrAssignExpr, AExpr) */
3254 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
3255 val
* var_node
/* var node: AExpr */;
3257 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrAssignExpr> */
3259 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3260 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3266 /* method parser_prod#AAttrAssignExpr#n_id= for (self: AAttrAssignExpr, TAttrid) */
3267 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
3268 val
* var_node
/* var node: TAttrid */;
3270 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrAssignExpr> */
3272 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
3273 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
3279 /* method parser_prod#AAttrAssignExpr#n_assign= for (self: AAttrAssignExpr, TAssign) */
3280 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
3281 val
* var_node
/* var node: TAssign */;
3283 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AAttrAssignExpr> */
3285 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
3286 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
3292 /* method parser_prod#AAttrAssignExpr#n_value= for (self: AAttrAssignExpr, AExpr) */
3293 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
3294 val
* var_node
/* var node: AExpr */;
3296 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AAttrAssignExpr> */
3298 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3299 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3305 /* method parser_prod#AAttrAssignExpr#visit_all for (self: AAttrAssignExpr, Visitor) */
3306 void nitc__parser_prod___AAttrAssignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3307 val
* var_v
/* var v: Visitor */;
3308 val
* var
/* : AExpr */;
3309 val
* var1
/* : TAttrid */;
3310 val
* var2
/* : TAssign */;
3311 val
* var3
/* : AExpr */;
3313 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrAssignExpr> */
3314 if (unlikely(var
== NULL
)) {
3315 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3316 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5197);
3320 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3322 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrAssignExpr> */
3323 if (unlikely(var1
== NULL
)) {
3324 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3325 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5198);
3329 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3331 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AAttrAssignExpr> */
3332 if (unlikely(var2
== NULL
)) {
3333 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
3334 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5199);
3338 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3340 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AAttrAssignExpr> */
3341 if (unlikely(var3
== NULL
)) {
3342 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3343 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5200);
3347 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3351 /* method parser_prod#AAttrReassignExpr#init_aattrreassignexpr for (self: AAttrReassignExpr, nullable AExpr, nullable TAttrid, nullable AAssignOp, nullable AExpr) */
3352 void nitc__parser_prod___AAttrReassignExpr___init_aattrreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
3353 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3354 val
* var_n_id
/* var n_id: nullable TAttrid */;
3355 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
3356 val
* var_n_value
/* var n_value: nullable AExpr */;
3358 { /* Inline kernel#Object#init (self) on <self:AAttrReassignExpr> */
3364 var_n_assign_op
= p2
;
3366 if (unlikely(var_n_expr
== NULL
)) {
3367 PRINT_ERROR("Runtime error: %s", "Cast failed");
3368 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5211);
3371 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrReassignExpr> */
3372 if (var_n_expr
== NULL
) {
3373 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3374 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5212);
3377 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3378 if (unlikely(var_n_expr
== NULL
)) {
3379 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3380 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3383 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3387 if (unlikely(var_n_id
== NULL
)) {
3388 PRINT_ERROR("Runtime error: %s", "Cast failed");
3389 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5213);
3392 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrReassignExpr> */
3393 if (var_n_id
== NULL
) {
3394 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3395 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5214);
3398 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
3399 if (unlikely(var_n_id
== NULL
)) {
3400 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3401 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3404 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
3408 if (unlikely(var_n_assign_op
== NULL
)) {
3409 PRINT_ERROR("Runtime error: %s", "Cast failed");
3410 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5215);
3413 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:AAttrReassignExpr> */
3414 if (var_n_assign_op
== NULL
) {
3415 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3416 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5216);
3419 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
3420 if (unlikely(var_n_assign_op
== NULL
)) {
3421 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3422 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3425 var_n_assign_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
3429 if (unlikely(var_n_value
== NULL
)) {
3430 PRINT_ERROR("Runtime error: %s", "Cast failed");
3431 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5217);
3434 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AAttrReassignExpr> */
3435 if (var_n_value
== NULL
) {
3436 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3437 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5218);
3440 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
3441 if (unlikely(var_n_value
== NULL
)) {
3442 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3443 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3446 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
3452 /* method parser_prod#AAttrReassignExpr#replace_child for (self: AAttrReassignExpr, ANode, nullable ANode) */
3453 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3454 val
* var_old_child
/* var old_child: ANode */;
3455 val
* var_new_child
/* var new_child: nullable ANode */;
3456 val
* var
/* : AExpr */;
3457 short int var1
/* : Bool */;
3458 val
* var_other
/* var other: nullable Object */;
3459 short int var3
/* : Bool */;
3460 short int var5
/* : Bool */;
3461 short int var6
/* : Bool */;
3464 const char* var_class_name
;
3465 val
* var7
/* : TAttrid */;
3466 short int var8
/* : Bool */;
3467 short int var10
/* : Bool */;
3468 short int var12
/* : Bool */;
3469 short int var13
/* : Bool */;
3472 const char* var_class_name16
;
3473 val
* var17
/* : AAssignOp */;
3474 short int var18
/* : Bool */;
3475 short int var20
/* : Bool */;
3476 short int var22
/* : Bool */;
3477 short int var23
/* : Bool */;
3480 const char* var_class_name26
;
3481 val
* var27
/* : AExpr */;
3482 short int var28
/* : Bool */;
3483 short int var30
/* : Bool */;
3484 short int var32
/* : Bool */;
3485 short int var33
/* : Bool */;
3488 const char* var_class_name36
;
3491 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrReassignExpr> */
3492 if (unlikely(var
== NULL
)) {
3493 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3494 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5223);
3498 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3499 var_other
= var_old_child
;
3501 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3502 var5
= var
== var_other
;
3514 /* <var_new_child:nullable ANode> isa AExpr */
3515 cltype
= type_nitc__AExpr
.color
;
3516 idtype
= type_nitc__AExpr
.id
;
3517 if(var_new_child
== NULL
) {
3520 if(cltype
>= var_new_child
->type
->table_size
) {
3523 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3526 if (unlikely(!var6
)) {
3527 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3528 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3529 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5224);
3533 nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_expr= on <self:AAttrReassignExpr>*/
3538 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrReassignExpr> */
3539 if (unlikely(var7
== NULL
)) {
3540 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3541 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5227);
3545 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
3546 var_other
= var_old_child
;
3548 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
3549 var12
= var7
== var_other
;
3552 RET_LABEL11
:(void)0;
3561 /* <var_new_child:nullable ANode> isa TAttrid */
3562 cltype14
= type_nitc__TAttrid
.color
;
3563 idtype15
= type_nitc__TAttrid
.id
;
3564 if(var_new_child
== NULL
) {
3567 if(cltype14
>= var_new_child
->type
->table_size
) {
3570 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3573 if (unlikely(!var13
)) {
3574 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3575 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
3576 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5228);
3580 nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_id= on <self:AAttrReassignExpr>*/
3585 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AAttrReassignExpr> */
3586 if (unlikely(var17
== NULL
)) {
3587 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3588 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5231);
3592 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AAssignOp> */
3593 var_other
= var_old_child
;
3595 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AAssignOp> */
3596 var22
= var17
== var_other
;
3599 RET_LABEL21
:(void)0;
3604 RET_LABEL19
:(void)0;
3608 /* <var_new_child:nullable ANode> isa AAssignOp */
3609 cltype24
= type_nitc__AAssignOp
.color
;
3610 idtype25
= type_nitc__AAssignOp
.id
;
3611 if(var_new_child
== NULL
) {
3614 if(cltype24
>= var_new_child
->type
->table_size
) {
3617 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
3620 if (unlikely(!var23
)) {
3621 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3622 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name26
);
3623 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5232);
3627 nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_assign_op= on <self:AAttrReassignExpr>*/
3632 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AAttrReassignExpr> */
3633 if (unlikely(var27
== NULL
)) {
3634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5235);
3639 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
3640 var_other
= var_old_child
;
3642 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
3643 var32
= var27
== var_other
;
3646 RET_LABEL31
:(void)0;
3651 RET_LABEL29
:(void)0;
3655 /* <var_new_child:nullable ANode> isa AExpr */
3656 cltype34
= type_nitc__AExpr
.color
;
3657 idtype35
= type_nitc__AExpr
.id
;
3658 if(var_new_child
== NULL
) {
3661 if(cltype34
>= var_new_child
->type
->table_size
) {
3664 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
3667 if (unlikely(!var33
)) {
3668 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
3670 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5236);
3674 nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_value= on <self:AAttrReassignExpr>*/
3681 /* method parser_prod#AAttrReassignExpr#n_expr= for (self: AAttrReassignExpr, AExpr) */
3682 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
3683 val
* var_node
/* var node: AExpr */;
3685 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrReassignExpr> */
3687 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3688 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3694 /* method parser_prod#AAttrReassignExpr#n_id= for (self: AAttrReassignExpr, TAttrid) */
3695 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
3696 val
* var_node
/* var node: TAttrid */;
3698 self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrReassignExpr> */
3700 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
3701 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
3707 /* method parser_prod#AAttrReassignExpr#n_assign_op= for (self: AAttrReassignExpr, AAssignOp) */
3708 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
3709 val
* var_node
/* var node: AAssignOp */;
3711 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:AAttrReassignExpr> */
3713 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
3714 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
3720 /* method parser_prod#AAttrReassignExpr#n_value= for (self: AAttrReassignExpr, AExpr) */
3721 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
3722 val
* var_node
/* var node: AExpr */;
3724 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AAttrReassignExpr> */
3726 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3727 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3733 /* method parser_prod#AAttrReassignExpr#visit_all for (self: AAttrReassignExpr, Visitor) */
3734 void nitc__parser_prod___AAttrReassignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3735 val
* var_v
/* var v: Visitor */;
3736 val
* var
/* : AExpr */;
3737 val
* var1
/* : TAttrid */;
3738 val
* var2
/* : AAssignOp */;
3739 val
* var3
/* : AExpr */;
3741 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrReassignExpr> */
3742 if (unlikely(var
== NULL
)) {
3743 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3744 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5265);
3748 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3750 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrReassignExpr> */
3751 if (unlikely(var1
== NULL
)) {
3752 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3753 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5266);
3757 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3759 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AAttrReassignExpr> */
3760 if (unlikely(var2
== NULL
)) {
3761 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3762 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5267);
3766 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3768 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AAttrReassignExpr> */
3769 if (unlikely(var3
== NULL
)) {
3770 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3771 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5268);
3775 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3779 /* method parser_prod#ACallExpr#init_acallexpr for (self: ACallExpr, nullable AExpr, nullable AQid, nullable AExprs) */
3780 void nitc__parser_prod___ACallExpr___init_acallexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
3781 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3782 val
* var_n_qid
/* var n_qid: nullable AQid */;
3783 val
* var_n_args
/* var n_args: nullable AExprs */;
3785 { /* Inline kernel#Object#init (self) on <self:ACallExpr> */
3792 if (unlikely(var_n_expr
== NULL
)) {
3793 PRINT_ERROR("Runtime error: %s", "Cast failed");
3794 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5278);
3797 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallExpr> */
3798 if (var_n_expr
== NULL
) {
3799 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3800 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5279);
3803 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3804 if (unlikely(var_n_expr
== NULL
)) {
3805 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3806 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3809 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3813 if (unlikely(var_n_qid
== NULL
)) {
3814 PRINT_ERROR("Runtime error: %s", "Cast failed");
3815 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5280);
3818 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_n_qid
; /* _n_qid on <self:ACallExpr> */
3819 if (var_n_qid
== NULL
) {
3820 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3821 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5281);
3824 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQid> */
3825 if (unlikely(var_n_qid
== NULL
)) {
3826 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3827 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3830 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQid> */
3834 if (unlikely(var_n_args
== NULL
)) {
3835 PRINT_ERROR("Runtime error: %s", "Cast failed");
3836 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5282);
3839 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallExpr> */
3840 if (var_n_args
== NULL
) {
3841 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3842 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5283);
3845 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
3846 if (unlikely(var_n_args
== NULL
)) {
3847 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3848 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3851 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
3857 /* method parser_prod#ACallExpr#replace_child for (self: ACallExpr, ANode, nullable ANode) */
3858 void nitc__parser_prod___ACallExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3859 val
* var_old_child
/* var old_child: ANode */;
3860 val
* var_new_child
/* var new_child: nullable ANode */;
3861 val
* var
/* : AExpr */;
3862 short int var1
/* : Bool */;
3863 val
* var_other
/* var other: nullable Object */;
3864 short int var3
/* : Bool */;
3865 short int var5
/* : Bool */;
3866 short int var6
/* : Bool */;
3869 const char* var_class_name
;
3870 val
* var7
/* : AQid */;
3871 short int var8
/* : Bool */;
3872 short int var10
/* : Bool */;
3873 short int var12
/* : Bool */;
3874 short int var13
/* : Bool */;
3877 const char* var_class_name16
;
3878 val
* var17
/* : AExprs */;
3879 short int var18
/* : Bool */;
3880 short int var20
/* : Bool */;
3881 short int var22
/* : Bool */;
3882 short int var23
/* : Bool */;
3885 const char* var_class_name26
;
3888 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallExpr> */
3889 if (unlikely(var
== NULL
)) {
3890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3891 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5288);
3895 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3896 var_other
= var_old_child
;
3898 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3899 var5
= var
== var_other
;
3911 /* <var_new_child:nullable ANode> isa AExpr */
3912 cltype
= type_nitc__AExpr
.color
;
3913 idtype
= type_nitc__AExpr
.id
;
3914 if(var_new_child
== NULL
) {
3917 if(cltype
>= var_new_child
->type
->table_size
) {
3920 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3923 if (unlikely(!var6
)) {
3924 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3925 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3926 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5289);
3930 nitc__parser_prod___ACallExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_expr= on <self:ACallExpr>*/
3935 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallExpr> */
3936 if (unlikely(var7
== NULL
)) {
3937 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
3938 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5292);
3942 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AQid> */
3943 var_other
= var_old_child
;
3945 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AQid> */
3946 var12
= var7
== var_other
;
3949 RET_LABEL11
:(void)0;
3958 /* <var_new_child:nullable ANode> isa AQid */
3959 cltype14
= type_nitc__AQid
.color
;
3960 idtype15
= type_nitc__AQid
.id
;
3961 if(var_new_child
== NULL
) {
3964 if(cltype14
>= var_new_child
->type
->table_size
) {
3967 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3970 if (unlikely(!var13
)) {
3971 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3972 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQid", var_class_name16
);
3973 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5293);
3977 nitc__parser_prod___ACallExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_qid= on <self:ACallExpr>*/
3982 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallExpr> */
3983 if (unlikely(var17
== NULL
)) {
3984 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
3985 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5296);
3989 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
3990 var_other
= var_old_child
;
3992 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
3993 var22
= var17
== var_other
;
3996 RET_LABEL21
:(void)0;
4001 RET_LABEL19
:(void)0;
4005 /* <var_new_child:nullable ANode> isa AExprs */
4006 cltype24
= type_nitc__AExprs
.color
;
4007 idtype25
= type_nitc__AExprs
.id
;
4008 if(var_new_child
== NULL
) {
4011 if(cltype24
>= var_new_child
->type
->table_size
) {
4014 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4017 if (unlikely(!var23
)) {
4018 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4019 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
4020 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5297);
4024 nitc__parser_prod___ACallExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_args= on <self:ACallExpr>*/
4031 /* method parser_prod#ACallExpr#n_expr= for (self: ACallExpr, AExpr) */
4032 void nitc__parser_prod___ACallExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
4033 val
* var_node
/* var node: AExpr */;
4035 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallExpr> */
4037 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4038 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4044 /* method parser_prod#ACallExpr#n_qid= for (self: ACallExpr, AQid) */
4045 void nitc__parser_prod___ACallExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(val
* self
, val
* p0
) {
4046 val
* var_node
/* var node: AQid */;
4048 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_node
; /* _n_qid on <self:ACallExpr> */
4050 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AQid> */
4051 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AQid> */
4057 /* method parser_prod#ACallExpr#n_args= for (self: ACallExpr, AExprs) */
4058 void nitc__parser_prod___ACallExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
4059 val
* var_node
/* var node: AExprs */;
4061 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallExpr> */
4063 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
4064 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
4070 /* method parser_prod#ACallExpr#visit_all for (self: ACallExpr, Visitor) */
4071 void nitc__parser_prod___ACallExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4072 val
* var_v
/* var v: Visitor */;
4073 val
* var
/* : AExpr */;
4074 val
* var1
/* : AQid */;
4075 val
* var2
/* : AExprs */;
4077 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallExpr> */
4078 if (unlikely(var
== NULL
)) {
4079 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4080 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5321);
4084 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4086 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallExpr> */
4087 if (unlikely(var1
== NULL
)) {
4088 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
4089 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5322);
4093 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4095 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallExpr> */
4096 if (unlikely(var2
== NULL
)) {
4097 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4098 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5323);
4102 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4106 /* method parser_prod#ACallAssignExpr#init_acallassignexpr for (self: ACallAssignExpr, nullable AExpr, nullable AQid, nullable AExprs, nullable TAssign, nullable AExpr) */
4107 void nitc__parser_prod___ACallAssignExpr___init_acallassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4108 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4109 val
* var_n_qid
/* var n_qid: nullable AQid */;
4110 val
* var_n_args
/* var n_args: nullable AExprs */;
4111 val
* var_n_assign
/* var n_assign: nullable TAssign */;
4112 val
* var_n_value
/* var n_value: nullable AExpr */;
4114 { /* Inline kernel#Object#init (self) on <self:ACallAssignExpr> */
4123 if (unlikely(var_n_expr
== NULL
)) {
4124 PRINT_ERROR("Runtime error: %s", "Cast failed");
4125 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5335);
4128 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallAssignExpr> */
4129 if (var_n_expr
== NULL
) {
4130 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4131 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5336);
4134 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4135 if (unlikely(var_n_expr
== NULL
)) {
4136 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4137 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4140 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4144 if (unlikely(var_n_qid
== NULL
)) {
4145 PRINT_ERROR("Runtime error: %s", "Cast failed");
4146 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5337);
4149 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_n_qid
; /* _n_qid on <self:ACallAssignExpr> */
4150 if (var_n_qid
== NULL
) {
4151 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4152 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5338);
4155 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQid> */
4156 if (unlikely(var_n_qid
== NULL
)) {
4157 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4158 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4161 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQid> */
4165 if (unlikely(var_n_args
== NULL
)) {
4166 PRINT_ERROR("Runtime error: %s", "Cast failed");
4167 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5339);
4170 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallAssignExpr> */
4171 if (var_n_args
== NULL
) {
4172 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4173 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5340);
4176 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
4177 if (unlikely(var_n_args
== NULL
)) {
4178 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4179 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4182 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
4186 if (unlikely(var_n_assign
== NULL
)) {
4187 PRINT_ERROR("Runtime error: %s", "Cast failed");
4188 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5341);
4191 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ACallAssignExpr> */
4192 if (var_n_assign
== NULL
) {
4193 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4194 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5342);
4197 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
4198 if (unlikely(var_n_assign
== NULL
)) {
4199 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4200 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4203 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
4207 if (unlikely(var_n_value
== NULL
)) {
4208 PRINT_ERROR("Runtime error: %s", "Cast failed");
4209 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5343);
4212 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ACallAssignExpr> */
4213 if (var_n_value
== NULL
) {
4214 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4215 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5344);
4218 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
4219 if (unlikely(var_n_value
== NULL
)) {
4220 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4221 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4224 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
4230 /* method parser_prod#ACallAssignExpr#replace_child for (self: ACallAssignExpr, ANode, nullable ANode) */
4231 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4232 val
* var_old_child
/* var old_child: ANode */;
4233 val
* var_new_child
/* var new_child: nullable ANode */;
4234 val
* var
/* : AExpr */;
4235 short int var1
/* : Bool */;
4236 val
* var_other
/* var other: nullable Object */;
4237 short int var3
/* : Bool */;
4238 short int var5
/* : Bool */;
4239 short int var6
/* : Bool */;
4242 const char* var_class_name
;
4243 val
* var7
/* : AQid */;
4244 short int var8
/* : Bool */;
4245 short int var10
/* : Bool */;
4246 short int var12
/* : Bool */;
4247 short int var13
/* : Bool */;
4250 const char* var_class_name16
;
4251 val
* var17
/* : AExprs */;
4252 short int var18
/* : Bool */;
4253 short int var20
/* : Bool */;
4254 short int var22
/* : Bool */;
4255 short int var23
/* : Bool */;
4258 const char* var_class_name26
;
4259 val
* var27
/* : TAssign */;
4260 short int var28
/* : Bool */;
4261 short int var30
/* : Bool */;
4262 short int var32
/* : Bool */;
4263 short int var33
/* : Bool */;
4266 const char* var_class_name36
;
4267 val
* var37
/* : AExpr */;
4268 short int var38
/* : Bool */;
4269 short int var40
/* : Bool */;
4270 short int var42
/* : Bool */;
4271 short int var43
/* : Bool */;
4274 const char* var_class_name46
;
4277 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallAssignExpr> */
4278 if (unlikely(var
== NULL
)) {
4279 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4280 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5349);
4284 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
4285 var_other
= var_old_child
;
4287 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
4288 var5
= var
== var_other
;
4300 /* <var_new_child:nullable ANode> isa AExpr */
4301 cltype
= type_nitc__AExpr
.color
;
4302 idtype
= type_nitc__AExpr
.id
;
4303 if(var_new_child
== NULL
) {
4306 if(cltype
>= var_new_child
->type
->table_size
) {
4309 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4312 if (unlikely(!var6
)) {
4313 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4314 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
4315 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5350);
4319 nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_expr= on <self:ACallAssignExpr>*/
4324 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallAssignExpr> */
4325 if (unlikely(var7
== NULL
)) {
4326 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
4327 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5353);
4331 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AQid> */
4332 var_other
= var_old_child
;
4334 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AQid> */
4335 var12
= var7
== var_other
;
4338 RET_LABEL11
:(void)0;
4347 /* <var_new_child:nullable ANode> isa AQid */
4348 cltype14
= type_nitc__AQid
.color
;
4349 idtype15
= type_nitc__AQid
.id
;
4350 if(var_new_child
== NULL
) {
4353 if(cltype14
>= var_new_child
->type
->table_size
) {
4356 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4359 if (unlikely(!var13
)) {
4360 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4361 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQid", var_class_name16
);
4362 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5354);
4366 nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_qid= on <self:ACallAssignExpr>*/
4371 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallAssignExpr> */
4372 if (unlikely(var17
== NULL
)) {
4373 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4374 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5357);
4378 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
4379 var_other
= var_old_child
;
4381 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
4382 var22
= var17
== var_other
;
4385 RET_LABEL21
:(void)0;
4390 RET_LABEL19
:(void)0;
4394 /* <var_new_child:nullable ANode> isa AExprs */
4395 cltype24
= type_nitc__AExprs
.color
;
4396 idtype25
= type_nitc__AExprs
.id
;
4397 if(var_new_child
== NULL
) {
4400 if(cltype24
>= var_new_child
->type
->table_size
) {
4403 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4406 if (unlikely(!var23
)) {
4407 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4408 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
4409 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5358);
4413 nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_args= on <self:ACallAssignExpr>*/
4418 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ACallAssignExpr> */
4419 if (unlikely(var27
== NULL
)) {
4420 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4421 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5361);
4425 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:TAssign> */
4426 var_other
= var_old_child
;
4428 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:TAssign> */
4429 var32
= var27
== var_other
;
4432 RET_LABEL31
:(void)0;
4437 RET_LABEL29
:(void)0;
4441 /* <var_new_child:nullable ANode> isa TAssign */
4442 cltype34
= type_nitc__TAssign
.color
;
4443 idtype35
= type_nitc__TAssign
.id
;
4444 if(var_new_child
== NULL
) {
4447 if(cltype34
>= var_new_child
->type
->table_size
) {
4450 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
4453 if (unlikely(!var33
)) {
4454 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4455 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name36
);
4456 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5362);
4460 nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_assign= on <self:ACallAssignExpr>*/
4465 var37
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ACallAssignExpr> */
4466 if (unlikely(var37
== NULL
)) {
4467 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4468 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5365);
4472 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:AExpr> */
4473 var_other
= var_old_child
;
4475 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:AExpr> */
4476 var42
= var37
== var_other
;
4479 RET_LABEL41
:(void)0;
4484 RET_LABEL39
:(void)0;
4488 /* <var_new_child:nullable ANode> isa AExpr */
4489 cltype44
= type_nitc__AExpr
.color
;
4490 idtype45
= type_nitc__AExpr
.id
;
4491 if(var_new_child
== NULL
) {
4494 if(cltype44
>= var_new_child
->type
->table_size
) {
4497 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
4500 if (unlikely(!var43
)) {
4501 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4502 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name46
);
4503 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5366);
4507 nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_value= on <self:ACallAssignExpr>*/
4514 /* method parser_prod#ACallAssignExpr#n_expr= for (self: ACallAssignExpr, AExpr) */
4515 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
4516 val
* var_node
/* var node: AExpr */;
4518 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallAssignExpr> */
4520 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4521 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4527 /* method parser_prod#ACallAssignExpr#n_qid= for (self: ACallAssignExpr, AQid) */
4528 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(val
* self
, val
* p0
) {
4529 val
* var_node
/* var node: AQid */;
4531 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_node
; /* _n_qid on <self:ACallAssignExpr> */
4533 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AQid> */
4534 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AQid> */
4540 /* method parser_prod#ACallAssignExpr#n_args= for (self: ACallAssignExpr, AExprs) */
4541 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
4542 val
* var_node
/* var node: AExprs */;
4544 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallAssignExpr> */
4546 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
4547 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
4553 /* method parser_prod#ACallAssignExpr#n_assign= for (self: ACallAssignExpr, TAssign) */
4554 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
4555 val
* var_node
/* var node: TAssign */;
4557 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ACallAssignExpr> */
4559 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4560 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4566 /* method parser_prod#ACallAssignExpr#n_value= for (self: ACallAssignExpr, AExpr) */
4567 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
4568 val
* var_node
/* var node: AExpr */;
4570 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ACallAssignExpr> */
4572 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4573 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4579 /* method parser_prod#ACallAssignExpr#visit_all for (self: ACallAssignExpr, Visitor) */
4580 void nitc__parser_prod___ACallAssignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4581 val
* var_v
/* var v: Visitor */;
4582 val
* var
/* : AExpr */;
4583 val
* var1
/* : AQid */;
4584 val
* var2
/* : AExprs */;
4585 val
* var3
/* : TAssign */;
4586 val
* var4
/* : AExpr */;
4588 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallAssignExpr> */
4589 if (unlikely(var
== NULL
)) {
4590 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4591 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5400);
4595 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4597 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallAssignExpr> */
4598 if (unlikely(var1
== NULL
)) {
4599 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
4600 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5401);
4604 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4606 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallAssignExpr> */
4607 if (unlikely(var2
== NULL
)) {
4608 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4609 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5402);
4613 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4615 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ACallAssignExpr> */
4616 if (unlikely(var3
== NULL
)) {
4617 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4618 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5403);
4622 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4624 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ACallAssignExpr> */
4625 if (unlikely(var4
== NULL
)) {
4626 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4627 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5404);
4631 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4635 /* method parser_prod#ACallReassignExpr#init_acallreassignexpr for (self: ACallReassignExpr, nullable AExpr, nullable AQid, nullable AExprs, nullable AAssignOp, nullable AExpr) */
4636 void nitc__parser_prod___ACallReassignExpr___init_acallreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4637 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4638 val
* var_n_qid
/* var n_qid: nullable AQid */;
4639 val
* var_n_args
/* var n_args: nullable AExprs */;
4640 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
4641 val
* var_n_value
/* var n_value: nullable AExpr */;
4643 { /* Inline kernel#Object#init (self) on <self:ACallReassignExpr> */
4650 var_n_assign_op
= p3
;
4652 if (unlikely(var_n_expr
== NULL
)) {
4653 PRINT_ERROR("Runtime error: %s", "Cast failed");
4654 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5416);
4657 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallReassignExpr> */
4658 if (var_n_expr
== NULL
) {
4659 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4660 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5417);
4663 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4664 if (unlikely(var_n_expr
== NULL
)) {
4665 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4666 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4669 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4673 if (unlikely(var_n_qid
== NULL
)) {
4674 PRINT_ERROR("Runtime error: %s", "Cast failed");
4675 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5418);
4678 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_n_qid
; /* _n_qid on <self:ACallReassignExpr> */
4679 if (var_n_qid
== NULL
) {
4680 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4681 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5419);
4684 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQid> */
4685 if (unlikely(var_n_qid
== NULL
)) {
4686 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4687 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4690 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQid> */
4694 if (unlikely(var_n_args
== NULL
)) {
4695 PRINT_ERROR("Runtime error: %s", "Cast failed");
4696 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5420);
4699 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallReassignExpr> */
4700 if (var_n_args
== NULL
) {
4701 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4702 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5421);
4705 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
4706 if (unlikely(var_n_args
== NULL
)) {
4707 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4708 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4711 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
4715 if (unlikely(var_n_assign_op
== NULL
)) {
4716 PRINT_ERROR("Runtime error: %s", "Cast failed");
4717 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5422);
4720 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:ACallReassignExpr> */
4721 if (var_n_assign_op
== NULL
) {
4722 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4723 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5423);
4726 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
4727 if (unlikely(var_n_assign_op
== NULL
)) {
4728 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4729 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4732 var_n_assign_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
4736 if (unlikely(var_n_value
== NULL
)) {
4737 PRINT_ERROR("Runtime error: %s", "Cast failed");
4738 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5424);
4741 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ACallReassignExpr> */
4742 if (var_n_value
== NULL
) {
4743 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4744 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5425);
4747 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
4748 if (unlikely(var_n_value
== NULL
)) {
4749 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4750 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4753 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
4759 /* method parser_prod#ACallReassignExpr#replace_child for (self: ACallReassignExpr, ANode, nullable ANode) */
4760 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4761 val
* var_old_child
/* var old_child: ANode */;
4762 val
* var_new_child
/* var new_child: nullable ANode */;
4763 val
* var
/* : AExpr */;
4764 short int var1
/* : Bool */;
4765 val
* var_other
/* var other: nullable Object */;
4766 short int var3
/* : Bool */;
4767 short int var5
/* : Bool */;
4768 short int var6
/* : Bool */;
4771 const char* var_class_name
;
4772 val
* var7
/* : AQid */;
4773 short int var8
/* : Bool */;
4774 short int var10
/* : Bool */;
4775 short int var12
/* : Bool */;
4776 short int var13
/* : Bool */;
4779 const char* var_class_name16
;
4780 val
* var17
/* : AExprs */;
4781 short int var18
/* : Bool */;
4782 short int var20
/* : Bool */;
4783 short int var22
/* : Bool */;
4784 short int var23
/* : Bool */;
4787 const char* var_class_name26
;
4788 val
* var27
/* : AAssignOp */;
4789 short int var28
/* : Bool */;
4790 short int var30
/* : Bool */;
4791 short int var32
/* : Bool */;
4792 short int var33
/* : Bool */;
4795 const char* var_class_name36
;
4796 val
* var37
/* : AExpr */;
4797 short int var38
/* : Bool */;
4798 short int var40
/* : Bool */;
4799 short int var42
/* : Bool */;
4800 short int var43
/* : Bool */;
4803 const char* var_class_name46
;
4806 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
4807 if (unlikely(var
== NULL
)) {
4808 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4809 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5430);
4813 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
4814 var_other
= var_old_child
;
4816 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
4817 var5
= var
== var_other
;
4829 /* <var_new_child:nullable ANode> isa AExpr */
4830 cltype
= type_nitc__AExpr
.color
;
4831 idtype
= type_nitc__AExpr
.id
;
4832 if(var_new_child
== NULL
) {
4835 if(cltype
>= var_new_child
->type
->table_size
) {
4838 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4841 if (unlikely(!var6
)) {
4842 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4843 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
4844 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5431);
4848 nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_expr= on <self:ACallReassignExpr>*/
4853 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallReassignExpr> */
4854 if (unlikely(var7
== NULL
)) {
4855 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
4856 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5434);
4860 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AQid> */
4861 var_other
= var_old_child
;
4863 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AQid> */
4864 var12
= var7
== var_other
;
4867 RET_LABEL11
:(void)0;
4876 /* <var_new_child:nullable ANode> isa AQid */
4877 cltype14
= type_nitc__AQid
.color
;
4878 idtype15
= type_nitc__AQid
.id
;
4879 if(var_new_child
== NULL
) {
4882 if(cltype14
>= var_new_child
->type
->table_size
) {
4885 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4888 if (unlikely(!var13
)) {
4889 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4890 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQid", var_class_name16
);
4891 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5435);
4895 nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_qid= on <self:ACallReassignExpr>*/
4900 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
4901 if (unlikely(var17
== NULL
)) {
4902 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4903 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5438);
4907 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
4908 var_other
= var_old_child
;
4910 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
4911 var22
= var17
== var_other
;
4914 RET_LABEL21
:(void)0;
4919 RET_LABEL19
:(void)0;
4923 /* <var_new_child:nullable ANode> isa AExprs */
4924 cltype24
= type_nitc__AExprs
.color
;
4925 idtype25
= type_nitc__AExprs
.id
;
4926 if(var_new_child
== NULL
) {
4929 if(cltype24
>= var_new_child
->type
->table_size
) {
4932 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4935 if (unlikely(!var23
)) {
4936 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4937 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
4938 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5439);
4942 nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_args= on <self:ACallReassignExpr>*/
4947 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
4948 if (unlikely(var27
== NULL
)) {
4949 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
4950 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5442);
4954 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AAssignOp> */
4955 var_other
= var_old_child
;
4957 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AAssignOp> */
4958 var32
= var27
== var_other
;
4961 RET_LABEL31
:(void)0;
4966 RET_LABEL29
:(void)0;
4970 /* <var_new_child:nullable ANode> isa AAssignOp */
4971 cltype34
= type_nitc__AAssignOp
.color
;
4972 idtype35
= type_nitc__AAssignOp
.id
;
4973 if(var_new_child
== NULL
) {
4976 if(cltype34
>= var_new_child
->type
->table_size
) {
4979 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
4982 if (unlikely(!var33
)) {
4983 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4984 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name36
);
4985 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5443);
4989 nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_assign_op= on <self:ACallReassignExpr>*/
4994 var37
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
4995 if (unlikely(var37
== NULL
)) {
4996 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4997 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5446);
5001 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:AExpr> */
5002 var_other
= var_old_child
;
5004 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:AExpr> */
5005 var42
= var37
== var_other
;
5008 RET_LABEL41
:(void)0;
5013 RET_LABEL39
:(void)0;
5017 /* <var_new_child:nullable ANode> isa AExpr */
5018 cltype44
= type_nitc__AExpr
.color
;
5019 idtype45
= type_nitc__AExpr
.id
;
5020 if(var_new_child
== NULL
) {
5023 if(cltype44
>= var_new_child
->type
->table_size
) {
5026 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
5029 if (unlikely(!var43
)) {
5030 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5031 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name46
);
5032 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5447);
5036 nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_value= on <self:ACallReassignExpr>*/
5043 /* method parser_prod#ACallReassignExpr#n_expr= for (self: ACallReassignExpr, AExpr) */
5044 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
5045 val
* var_node
/* var node: AExpr */;
5047 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallReassignExpr> */
5049 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5050 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5056 /* method parser_prod#ACallReassignExpr#n_qid= for (self: ACallReassignExpr, AQid) */
5057 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ACallFormExpr__n_qid_61d(val
* self
, val
* p0
) {
5058 val
* var_node
/* var node: AQid */;
5060 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
= var_node
; /* _n_qid on <self:ACallReassignExpr> */
5062 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AQid> */
5063 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AQid> */
5069 /* method parser_prod#ACallReassignExpr#n_args= for (self: ACallReassignExpr, AExprs) */
5070 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
5071 val
* var_node
/* var node: AExprs */;
5073 self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallReassignExpr> */
5075 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5076 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5082 /* method parser_prod#ACallReassignExpr#n_assign_op= for (self: ACallReassignExpr, AAssignOp) */
5083 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
5084 val
* var_node
/* var node: AAssignOp */;
5086 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ACallReassignExpr> */
5088 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
5089 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
5095 /* method parser_prod#ACallReassignExpr#n_value= for (self: ACallReassignExpr, AExpr) */
5096 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
5097 val
* var_node
/* var node: AExpr */;
5099 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ACallReassignExpr> */
5101 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5102 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5108 /* method parser_prod#ACallReassignExpr#visit_all for (self: ACallReassignExpr, Visitor) */
5109 void nitc__parser_prod___ACallReassignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5110 val
* var_v
/* var v: Visitor */;
5111 val
* var
/* : AExpr */;
5112 val
* var1
/* : AQid */;
5113 val
* var2
/* : AExprs */;
5114 val
* var3
/* : AAssignOp */;
5115 val
* var4
/* : AExpr */;
5117 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
5118 if (unlikely(var
== NULL
)) {
5119 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5120 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5481);
5124 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5126 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_qid
].val
; /* _n_qid on <self:ACallReassignExpr> */
5127 if (unlikely(var1
== NULL
)) {
5128 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
5129 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5482);
5133 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5135 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
5136 if (unlikely(var2
== NULL
)) {
5137 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5138 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5483);
5142 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5144 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
5145 if (unlikely(var3
== NULL
)) {
5146 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
5147 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5484);
5151 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5153 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
5154 if (unlikely(var4
== NULL
)) {
5155 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
5156 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5485);
5160 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5164 /* method parser_prod#ASuperExpr#init_asuperexpr for (self: ASuperExpr, nullable AQualified, nullable TKwsuper, nullable AExprs) */
5165 void nitc__parser_prod___ASuperExpr___init_asuperexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5166 val
* var_n_qualified
/* var n_qualified: nullable AQualified */;
5167 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
5168 val
* var_n_args
/* var n_args: nullable AExprs */;
5169 short int var
/* : Bool */;
5170 short int var2
/* : Bool */;
5171 val
* var_other
/* var other: nullable Object */;
5172 short int var4
/* : Bool */;
5173 short int var5
/* : Bool */;
5175 { /* Inline kernel#Object#init (self) on <self:ASuperExpr> */
5179 var_n_qualified
= p0
;
5182 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_qualified
].val
= var_n_qualified
; /* _n_qualified on <self:ASuperExpr> */
5183 if (var_n_qualified
== NULL
) {
5184 var
= 0; /* is null */
5186 var
= 1; /* arg is null and recv is not */
5189 { /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on <var_n_qualified:nullable AQualified> */
5190 var_other
= ((val
*)NULL
);
5192 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_qualified
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_qualified
, var_other
); /* == on <var_n_qualified:nullable AQualified(AQualified)>*/
5203 { /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on <var_n_qualified:nullable AQualified(AQualified)> */
5204 var_n_qualified
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qualified:nullable AQualified(AQualified)> */
5210 if (unlikely(var_n_kwsuper
== NULL
)) {
5211 PRINT_ERROR("Runtime error: %s", "Cast failed");
5212 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5497);
5215 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExpr> */
5216 if (var_n_kwsuper
== NULL
) {
5217 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5218 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5498);
5221 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
5222 if (unlikely(var_n_kwsuper
== NULL
)) {
5223 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5224 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5227 var_n_kwsuper
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
5231 if (unlikely(var_n_args
== NULL
)) {
5232 PRINT_ERROR("Runtime error: %s", "Cast failed");
5233 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5499);
5236 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ASuperExpr> */
5237 if (var_n_args
== NULL
) {
5238 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5239 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5500);
5242 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5243 if (unlikely(var_n_args
== NULL
)) {
5244 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5245 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5248 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5254 /* method parser_prod#ASuperExpr#replace_child for (self: ASuperExpr, ANode, nullable ANode) */
5255 void nitc__parser_prod___ASuperExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5256 val
* var_old_child
/* var old_child: ANode */;
5257 val
* var_new_child
/* var new_child: nullable ANode */;
5258 val
* var
/* : nullable AQualified */;
5259 short int var1
/* : Bool */;
5260 short int var2
/* : Bool */;
5261 val
* var_other
/* var other: nullable Object */;
5262 short int var4
/* : Bool */;
5263 short int var6
/* : Bool */;
5264 short int var7
/* : Bool */;
5267 const char* var_class_name
;
5268 val
* var8
/* : TKwsuper */;
5269 short int var9
/* : Bool */;
5270 short int var11
/* : Bool */;
5271 short int var13
/* : Bool */;
5272 short int var14
/* : Bool */;
5275 const char* var_class_name17
;
5276 val
* var18
/* : AExprs */;
5277 short int var19
/* : Bool */;
5278 short int var21
/* : Bool */;
5279 short int var23
/* : Bool */;
5280 short int var24
/* : Bool */;
5283 const char* var_class_name27
;
5286 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
5288 var1
= 0; /* <var_old_child:ANode> cannot be null */
5290 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AQualified> */
5291 var_other
= var_old_child
;
5293 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AQualified(AQualified)> */
5294 var6
= var
== var_other
;
5307 /* <var_new_child:nullable ANode> isa nullable AQualified */
5308 cltype
= type_nullable__nitc__AQualified
.color
;
5309 idtype
= type_nullable__nitc__AQualified
.id
;
5310 if(var_new_child
== NULL
) {
5313 if(cltype
>= var_new_child
->type
->table_size
) {
5316 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5319 if (unlikely(!var7
)) {
5320 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5321 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name
);
5322 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5506);
5326 nitc__parser_prod___ASuperExpr___n_qualified_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_qualified= on <self:ASuperExpr>*/
5331 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
5332 if (unlikely(var8
== NULL
)) {
5333 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5334 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5509);
5338 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwsuper> */
5339 var_other
= var_old_child
;
5341 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwsuper> */
5342 var13
= var8
== var_other
;
5345 RET_LABEL12
:(void)0;
5350 RET_LABEL10
:(void)0;
5354 /* <var_new_child:nullable ANode> isa TKwsuper */
5355 cltype15
= type_nitc__TKwsuper
.color
;
5356 idtype16
= type_nitc__TKwsuper
.id
;
5357 if(var_new_child
== NULL
) {
5360 if(cltype15
>= var_new_child
->type
->table_size
) {
5363 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5366 if (unlikely(!var14
)) {
5367 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5368 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name17
);
5369 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5510);
5373 nitc__parser_prod___ASuperExpr___n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_kwsuper= on <self:ASuperExpr>*/
5378 var18
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
5379 if (unlikely(var18
== NULL
)) {
5380 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5381 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5513);
5385 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:AExprs> */
5386 var_other
= var_old_child
;
5388 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:AExprs> */
5389 var23
= var18
== var_other
;
5392 RET_LABEL22
:(void)0;
5397 RET_LABEL20
:(void)0;
5401 /* <var_new_child:nullable ANode> isa AExprs */
5402 cltype25
= type_nitc__AExprs
.color
;
5403 idtype26
= type_nitc__AExprs
.id
;
5404 if(var_new_child
== NULL
) {
5407 if(cltype25
>= var_new_child
->type
->table_size
) {
5410 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
5413 if (unlikely(!var24
)) {
5414 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5415 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name27
);
5416 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5514);
5420 nitc__parser_prod___ASuperExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_args= on <self:ASuperExpr>*/
5427 /* method parser_prod#ASuperExpr#n_qualified= for (self: ASuperExpr, nullable AQualified) */
5428 void nitc__parser_prod___ASuperExpr___n_qualified_61d(val
* self
, val
* p0
) {
5429 val
* var_node
/* var node: nullable AQualified */;
5430 short int var
/* : Bool */;
5431 short int var1
/* : Bool */;
5432 val
* var_other
/* var other: nullable Object */;
5433 short int var3
/* : Bool */;
5434 short int var4
/* : Bool */;
5436 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_qualified
].val
= var_node
; /* _n_qualified on <self:ASuperExpr> */
5437 if (var_node
== NULL
) {
5438 var
= 0; /* is null */
5440 var
= 1; /* arg is null and recv is not */
5443 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQualified> */
5444 var_other
= ((val
*)NULL
);
5446 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AQualified(AQualified)>*/
5457 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQualified(AQualified)> */
5458 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQualified(AQualified)> */
5466 /* method parser_prod#ASuperExpr#n_kwsuper= for (self: ASuperExpr, TKwsuper) */
5467 void nitc__parser_prod___ASuperExpr___n_kwsuper_61d(val
* self
, val
* p0
) {
5468 val
* var_node
/* var node: TKwsuper */;
5470 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExpr> */
5472 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
5473 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
5479 /* method parser_prod#ASuperExpr#n_args= for (self: ASuperExpr, AExprs) */
5480 void nitc__parser_prod___ASuperExpr___n_args_61d(val
* self
, val
* p0
) {
5481 val
* var_node
/* var node: AExprs */;
5483 self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_args
].val
= var_node
; /* _n_args on <self:ASuperExpr> */
5485 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5486 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5492 /* method parser_prod#ASuperExpr#visit_all for (self: ASuperExpr, Visitor) */
5493 void nitc__parser_prod___ASuperExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5494 val
* var_v
/* var v: Visitor */;
5495 val
* var
/* : nullable AQualified */;
5496 val
* var1
/* : TKwsuper */;
5497 val
* var2
/* : AExprs */;
5499 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
5501 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5503 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
5504 if (unlikely(var1
== NULL
)) {
5505 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5506 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5539);
5510 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5512 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
5513 if (unlikely(var2
== NULL
)) {
5514 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5515 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5540);
5519 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5523 /* method parser_prod#AInitExpr#init_ainitexpr for (self: AInitExpr, nullable AExpr, nullable TKwinit, nullable AExprs) */
5524 void nitc__parser_prod___AInitExpr___init_ainitexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5525 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5526 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
5527 val
* var_n_args
/* var n_args: nullable AExprs */;
5529 { /* Inline kernel#Object#init (self) on <self:AInitExpr> */
5536 if (unlikely(var_n_expr
== NULL
)) {
5537 PRINT_ERROR("Runtime error: %s", "Cast failed");
5538 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5550);
5541 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AInitExpr> */
5542 if (var_n_expr
== NULL
) {
5543 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5544 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5551);
5547 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5548 if (unlikely(var_n_expr
== NULL
)) {
5549 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5550 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5553 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5557 if (unlikely(var_n_kwinit
== NULL
)) {
5558 PRINT_ERROR("Runtime error: %s", "Cast failed");
5559 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5552);
5562 self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AInitExpr> */
5563 if (var_n_kwinit
== NULL
) {
5564 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5565 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5553);
5568 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit> */
5569 if (unlikely(var_n_kwinit
== NULL
)) {
5570 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5571 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5574 var_n_kwinit
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit> */
5578 if (unlikely(var_n_args
== NULL
)) {
5579 PRINT_ERROR("Runtime error: %s", "Cast failed");
5580 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5554);
5583 self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_args
].val
= var_n_args
; /* _n_args on <self:AInitExpr> */
5584 if (var_n_args
== NULL
) {
5585 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5586 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5555);
5589 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5590 if (unlikely(var_n_args
== NULL
)) {
5591 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5592 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5595 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5601 /* method parser_prod#AInitExpr#replace_child for (self: AInitExpr, ANode, nullable ANode) */
5602 void nitc__parser_prod___AInitExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5603 val
* var_old_child
/* var old_child: ANode */;
5604 val
* var_new_child
/* var new_child: nullable ANode */;
5605 val
* var
/* : AExpr */;
5606 short int var1
/* : Bool */;
5607 val
* var_other
/* var other: nullable Object */;
5608 short int var3
/* : Bool */;
5609 short int var5
/* : Bool */;
5610 short int var6
/* : Bool */;
5613 const char* var_class_name
;
5614 val
* var7
/* : TKwinit */;
5615 short int var8
/* : Bool */;
5616 short int var10
/* : Bool */;
5617 short int var12
/* : Bool */;
5618 short int var13
/* : Bool */;
5621 const char* var_class_name16
;
5622 val
* var17
/* : AExprs */;
5623 short int var18
/* : Bool */;
5624 short int var20
/* : Bool */;
5625 short int var22
/* : Bool */;
5626 short int var23
/* : Bool */;
5629 const char* var_class_name26
;
5632 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
5633 if (unlikely(var
== NULL
)) {
5634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5560);
5639 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5640 var_other
= var_old_child
;
5642 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5643 var5
= var
== var_other
;
5655 /* <var_new_child:nullable ANode> isa AExpr */
5656 cltype
= type_nitc__AExpr
.color
;
5657 idtype
= type_nitc__AExpr
.id
;
5658 if(var_new_child
== NULL
) {
5661 if(cltype
>= var_new_child
->type
->table_size
) {
5664 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5667 if (unlikely(!var6
)) {
5668 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5670 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5561);
5674 nitc__parser_prod___AInitExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_expr= on <self:AInitExpr>*/
5679 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
5680 if (unlikely(var7
== NULL
)) {
5681 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
5682 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5564);
5686 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwinit> */
5687 var_other
= var_old_child
;
5689 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwinit> */
5690 var12
= var7
== var_other
;
5693 RET_LABEL11
:(void)0;
5702 /* <var_new_child:nullable ANode> isa TKwinit */
5703 cltype14
= type_nitc__TKwinit
.color
;
5704 idtype15
= type_nitc__TKwinit
.id
;
5705 if(var_new_child
== NULL
) {
5708 if(cltype14
>= var_new_child
->type
->table_size
) {
5711 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5714 if (unlikely(!var13
)) {
5715 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5716 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinit", var_class_name16
);
5717 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5565);
5721 nitc__parser_prod___AInitExpr___n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_kwinit= on <self:AInitExpr>*/
5726 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
5727 if (unlikely(var17
== NULL
)) {
5728 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5729 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5568);
5733 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
5734 var_other
= var_old_child
;
5736 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
5737 var22
= var17
== var_other
;
5740 RET_LABEL21
:(void)0;
5745 RET_LABEL19
:(void)0;
5749 /* <var_new_child:nullable ANode> isa AExprs */
5750 cltype24
= type_nitc__AExprs
.color
;
5751 idtype25
= type_nitc__AExprs
.id
;
5752 if(var_new_child
== NULL
) {
5755 if(cltype24
>= var_new_child
->type
->table_size
) {
5758 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
5761 if (unlikely(!var23
)) {
5762 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5763 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
5764 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5569);
5768 nitc__parser_prod___AInitExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_args= on <self:AInitExpr>*/
5775 /* method parser_prod#AInitExpr#n_expr= for (self: AInitExpr, AExpr) */
5776 void nitc__parser_prod___AInitExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
5777 val
* var_node
/* var node: AExpr */;
5779 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AInitExpr> */
5781 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5782 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5788 /* method parser_prod#AInitExpr#n_kwinit= for (self: AInitExpr, TKwinit) */
5789 void nitc__parser_prod___AInitExpr___n_kwinit_61d(val
* self
, val
* p0
) {
5790 val
* var_node
/* var node: TKwinit */;
5792 self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AInitExpr> */
5794 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinit> */
5795 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinit> */
5801 /* method parser_prod#AInitExpr#n_args= for (self: AInitExpr, AExprs) */
5802 void nitc__parser_prod___AInitExpr___n_args_61d(val
* self
, val
* p0
) {
5803 val
* var_node
/* var node: AExprs */;
5805 self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_args
].val
= var_node
; /* _n_args on <self:AInitExpr> */
5807 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5808 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5814 /* method parser_prod#AInitExpr#visit_all for (self: AInitExpr, Visitor) */
5815 void nitc__parser_prod___AInitExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5816 val
* var_v
/* var v: Visitor */;
5817 val
* var
/* : AExpr */;
5818 val
* var1
/* : TKwinit */;
5819 val
* var2
/* : AExprs */;
5821 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
5822 if (unlikely(var
== NULL
)) {
5823 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5824 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5593);
5828 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5830 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
5831 if (unlikely(var1
== NULL
)) {
5832 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
5833 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5594);
5837 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5839 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
5840 if (unlikely(var2
== NULL
)) {
5841 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5842 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5595);
5846 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5850 /* method parser_prod#ABraExpr#init_abraexpr for (self: ABraExpr, nullable AExpr, nullable AExprs) */
5851 void nitc__parser_prod___ABraExpr___init_abraexpr(val
* self
, val
* p0
, val
* p1
) {
5852 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5853 val
* var_n_args
/* var n_args: nullable AExprs */;
5855 { /* Inline kernel#Object#init (self) on <self:ABraExpr> */
5861 if (unlikely(var_n_expr
== NULL
)) {
5862 PRINT_ERROR("Runtime error: %s", "Cast failed");
5863 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5604);
5866 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraExpr> */
5867 if (var_n_expr
== NULL
) {
5868 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5869 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5605);
5872 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5873 if (unlikely(var_n_expr
== NULL
)) {
5874 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5875 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5878 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5882 if (unlikely(var_n_args
== NULL
)) {
5883 PRINT_ERROR("Runtime error: %s", "Cast failed");
5884 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5606);
5887 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraExpr> */
5888 if (var_n_args
== NULL
) {
5889 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5890 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5607);
5893 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5894 if (unlikely(var_n_args
== NULL
)) {
5895 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5896 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5899 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5905 /* method parser_prod#ABraExpr#replace_child for (self: ABraExpr, ANode, nullable ANode) */
5906 void nitc__parser_prod___ABraExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5907 val
* var_old_child
/* var old_child: ANode */;
5908 val
* var_new_child
/* var new_child: nullable ANode */;
5909 val
* var
/* : AExpr */;
5910 short int var1
/* : Bool */;
5911 val
* var_other
/* var other: nullable Object */;
5912 short int var3
/* : Bool */;
5913 short int var5
/* : Bool */;
5914 short int var6
/* : Bool */;
5917 const char* var_class_name
;
5918 val
* var7
/* : AExprs */;
5919 short int var8
/* : Bool */;
5920 short int var10
/* : Bool */;
5921 short int var12
/* : Bool */;
5922 short int var13
/* : Bool */;
5925 const char* var_class_name16
;
5928 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
5929 if (unlikely(var
== NULL
)) {
5930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5931 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5612);
5935 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5936 var_other
= var_old_child
;
5938 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5939 var5
= var
== var_other
;
5951 /* <var_new_child:nullable ANode> isa AExpr */
5952 cltype
= type_nitc__AExpr
.color
;
5953 idtype
= type_nitc__AExpr
.id
;
5954 if(var_new_child
== NULL
) {
5957 if(cltype
>= var_new_child
->type
->table_size
) {
5960 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5963 if (unlikely(!var6
)) {
5964 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5965 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5966 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5613);
5970 nitc__parser_prod___ABraExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_expr= on <self:ABraExpr>*/
5975 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
5976 if (unlikely(var7
== NULL
)) {
5977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5978 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5616);
5982 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
5983 var_other
= var_old_child
;
5985 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
5986 var12
= var7
== var_other
;
5989 RET_LABEL11
:(void)0;
5998 /* <var_new_child:nullable ANode> isa AExprs */
5999 cltype14
= type_nitc__AExprs
.color
;
6000 idtype15
= type_nitc__AExprs
.id
;
6001 if(var_new_child
== NULL
) {
6004 if(cltype14
>= var_new_child
->type
->table_size
) {
6007 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6010 if (unlikely(!var13
)) {
6011 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6012 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
6013 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5617);
6017 nitc__parser_prod___ABraExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_args= on <self:ABraExpr>*/
6024 /* method parser_prod#ABraExpr#n_expr= for (self: ABraExpr, AExpr) */
6025 void nitc__parser_prod___ABraExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
6026 val
* var_node
/* var node: AExpr */;
6028 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraExpr> */
6030 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6031 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6037 /* method parser_prod#ABraExpr#n_args= for (self: ABraExpr, AExprs) */
6038 void nitc__parser_prod___ABraExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
6039 val
* var_node
/* var node: AExprs */;
6041 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraExpr> */
6043 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
6044 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
6050 /* method parser_prod#ABraExpr#visit_all for (self: ABraExpr, Visitor) */
6051 void nitc__parser_prod___ABraExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6052 val
* var_v
/* var v: Visitor */;
6053 val
* var
/* : AExpr */;
6054 val
* var1
/* : AExprs */;
6056 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
6057 if (unlikely(var
== NULL
)) {
6058 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6059 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5636);
6063 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6065 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
6066 if (unlikely(var1
== NULL
)) {
6067 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6068 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5637);
6072 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6076 /* method parser_prod#ABraAssignExpr#init_abraassignexpr for (self: ABraAssignExpr, nullable AExpr, nullable AExprs, nullable TAssign, nullable AExpr) */
6077 void nitc__parser_prod___ABraAssignExpr___init_abraassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6078 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6079 val
* var_n_args
/* var n_args: nullable AExprs */;
6080 val
* var_n_assign
/* var n_assign: nullable TAssign */;
6081 val
* var_n_value
/* var n_value: nullable AExpr */;
6083 { /* Inline kernel#Object#init (self) on <self:ABraAssignExpr> */
6091 if (unlikely(var_n_expr
== NULL
)) {
6092 PRINT_ERROR("Runtime error: %s", "Cast failed");
6093 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5648);
6096 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraAssignExpr> */
6097 if (var_n_expr
== NULL
) {
6098 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6099 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5649);
6102 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6103 if (unlikely(var_n_expr
== NULL
)) {
6104 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6105 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6108 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6112 if (unlikely(var_n_args
== NULL
)) {
6113 PRINT_ERROR("Runtime error: %s", "Cast failed");
6114 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5650);
6117 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraAssignExpr> */
6118 if (var_n_args
== NULL
) {
6119 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6120 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5651);
6123 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
6124 if (unlikely(var_n_args
== NULL
)) {
6125 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6126 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6129 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
6133 if (unlikely(var_n_assign
== NULL
)) {
6134 PRINT_ERROR("Runtime error: %s", "Cast failed");
6135 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5652);
6138 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraAssignExpr> */
6139 if (var_n_assign
== NULL
) {
6140 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6141 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5653);
6144 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
6145 if (unlikely(var_n_assign
== NULL
)) {
6146 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6147 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6150 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
6154 if (unlikely(var_n_value
== NULL
)) {
6155 PRINT_ERROR("Runtime error: %s", "Cast failed");
6156 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5654);
6159 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraAssignExpr> */
6160 if (var_n_value
== NULL
) {
6161 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6162 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5655);
6165 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
6166 if (unlikely(var_n_value
== NULL
)) {
6167 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6168 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6171 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
6177 /* method parser_prod#ABraAssignExpr#replace_child for (self: ABraAssignExpr, ANode, nullable ANode) */
6178 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6179 val
* var_old_child
/* var old_child: ANode */;
6180 val
* var_new_child
/* var new_child: nullable ANode */;
6181 val
* var
/* : AExpr */;
6182 short int var1
/* : Bool */;
6183 val
* var_other
/* var other: nullable Object */;
6184 short int var3
/* : Bool */;
6185 short int var5
/* : Bool */;
6186 short int var6
/* : Bool */;
6189 const char* var_class_name
;
6190 val
* var7
/* : AExprs */;
6191 short int var8
/* : Bool */;
6192 short int var10
/* : Bool */;
6193 short int var12
/* : Bool */;
6194 short int var13
/* : Bool */;
6197 const char* var_class_name16
;
6198 val
* var17
/* : TAssign */;
6199 short int var18
/* : Bool */;
6200 short int var20
/* : Bool */;
6201 short int var22
/* : Bool */;
6202 short int var23
/* : Bool */;
6205 const char* var_class_name26
;
6206 val
* var27
/* : AExpr */;
6207 short int var28
/* : Bool */;
6208 short int var30
/* : Bool */;
6209 short int var32
/* : Bool */;
6210 short int var33
/* : Bool */;
6213 const char* var_class_name36
;
6216 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
6217 if (unlikely(var
== NULL
)) {
6218 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6219 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5660);
6223 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
6224 var_other
= var_old_child
;
6226 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
6227 var5
= var
== var_other
;
6239 /* <var_new_child:nullable ANode> isa AExpr */
6240 cltype
= type_nitc__AExpr
.color
;
6241 idtype
= type_nitc__AExpr
.id
;
6242 if(var_new_child
== NULL
) {
6245 if(cltype
>= var_new_child
->type
->table_size
) {
6248 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6251 if (unlikely(!var6
)) {
6252 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6253 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
6254 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5661);
6258 nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_expr= on <self:ABraAssignExpr>*/
6263 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
6264 if (unlikely(var7
== NULL
)) {
6265 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6266 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5664);
6270 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
6271 var_other
= var_old_child
;
6273 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
6274 var12
= var7
== var_other
;
6277 RET_LABEL11
:(void)0;
6286 /* <var_new_child:nullable ANode> isa AExprs */
6287 cltype14
= type_nitc__AExprs
.color
;
6288 idtype15
= type_nitc__AExprs
.id
;
6289 if(var_new_child
== NULL
) {
6292 if(cltype14
>= var_new_child
->type
->table_size
) {
6295 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6298 if (unlikely(!var13
)) {
6299 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6300 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
6301 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5665);
6305 nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_args= on <self:ABraAssignExpr>*/
6310 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
6311 if (unlikely(var17
== NULL
)) {
6312 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6313 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5668);
6317 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
6318 var_other
= var_old_child
;
6320 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
6321 var22
= var17
== var_other
;
6324 RET_LABEL21
:(void)0;
6329 RET_LABEL19
:(void)0;
6333 /* <var_new_child:nullable ANode> isa TAssign */
6334 cltype24
= type_nitc__TAssign
.color
;
6335 idtype25
= type_nitc__TAssign
.id
;
6336 if(var_new_child
== NULL
) {
6339 if(cltype24
>= var_new_child
->type
->table_size
) {
6342 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6345 if (unlikely(!var23
)) {
6346 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6347 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
6348 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5669);
6352 nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_assign= on <self:ABraAssignExpr>*/
6357 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
6358 if (unlikely(var27
== NULL
)) {
6359 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6360 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5672);
6364 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
6365 var_other
= var_old_child
;
6367 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
6368 var32
= var27
== var_other
;
6371 RET_LABEL31
:(void)0;
6376 RET_LABEL29
:(void)0;
6380 /* <var_new_child:nullable ANode> isa AExpr */
6381 cltype34
= type_nitc__AExpr
.color
;
6382 idtype35
= type_nitc__AExpr
.id
;
6383 if(var_new_child
== NULL
) {
6386 if(cltype34
>= var_new_child
->type
->table_size
) {
6389 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6392 if (unlikely(!var33
)) {
6393 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6394 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
6395 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5673);
6399 nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_value= on <self:ABraAssignExpr>*/
6406 /* method parser_prod#ABraAssignExpr#n_expr= for (self: ABraAssignExpr, AExpr) */
6407 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
6408 val
* var_node
/* var node: AExpr */;
6410 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraAssignExpr> */
6412 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6413 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6419 /* method parser_prod#ABraAssignExpr#n_args= for (self: ABraAssignExpr, AExprs) */
6420 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
6421 val
* var_node
/* var node: AExprs */;
6423 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraAssignExpr> */
6425 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
6426 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
6432 /* method parser_prod#ABraAssignExpr#n_assign= for (self: ABraAssignExpr, TAssign) */
6433 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
6434 val
* var_node
/* var node: TAssign */;
6436 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ABraAssignExpr> */
6438 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
6439 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
6445 /* method parser_prod#ABraAssignExpr#n_value= for (self: ABraAssignExpr, AExpr) */
6446 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
6447 val
* var_node
/* var node: AExpr */;
6449 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraAssignExpr> */
6451 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6452 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6458 /* method parser_prod#ABraAssignExpr#visit_all for (self: ABraAssignExpr, Visitor) */
6459 void nitc__parser_prod___ABraAssignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6460 val
* var_v
/* var v: Visitor */;
6461 val
* var
/* : AExpr */;
6462 val
* var1
/* : AExprs */;
6463 val
* var2
/* : TAssign */;
6464 val
* var3
/* : AExpr */;
6466 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
6467 if (unlikely(var
== NULL
)) {
6468 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6469 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5702);
6473 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6475 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
6476 if (unlikely(var1
== NULL
)) {
6477 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6478 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5703);
6482 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6484 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
6485 if (unlikely(var2
== NULL
)) {
6486 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6487 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5704);
6491 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6493 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
6494 if (unlikely(var3
== NULL
)) {
6495 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6496 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5705);
6500 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6504 /* method parser_prod#ABraReassignExpr#init_abrareassignexpr for (self: ABraReassignExpr, nullable AExpr, nullable AExprs, nullable AAssignOp, nullable AExpr) */
6505 void nitc__parser_prod___ABraReassignExpr___init_abrareassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6506 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6507 val
* var_n_args
/* var n_args: nullable AExprs */;
6508 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
6509 val
* var_n_value
/* var n_value: nullable AExpr */;
6511 { /* Inline kernel#Object#init (self) on <self:ABraReassignExpr> */
6517 var_n_assign_op
= p2
;
6519 if (unlikely(var_n_expr
== NULL
)) {
6520 PRINT_ERROR("Runtime error: %s", "Cast failed");
6521 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5716);
6524 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraReassignExpr> */
6525 if (var_n_expr
== NULL
) {
6526 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6527 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5717);
6530 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6531 if (unlikely(var_n_expr
== NULL
)) {
6532 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6533 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6536 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6540 if (unlikely(var_n_args
== NULL
)) {
6541 PRINT_ERROR("Runtime error: %s", "Cast failed");
6542 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5718);
6545 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraReassignExpr> */
6546 if (var_n_args
== NULL
) {
6547 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6548 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5719);
6551 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
6552 if (unlikely(var_n_args
== NULL
)) {
6553 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6554 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6557 var_n_args
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
6561 if (unlikely(var_n_assign_op
== NULL
)) {
6562 PRINT_ERROR("Runtime error: %s", "Cast failed");
6563 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5720);
6566 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:ABraReassignExpr> */
6567 if (var_n_assign_op
== NULL
) {
6568 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6569 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5721);
6572 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
6573 if (unlikely(var_n_assign_op
== NULL
)) {
6574 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6575 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6578 var_n_assign_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
6582 if (unlikely(var_n_value
== NULL
)) {
6583 PRINT_ERROR("Runtime error: %s", "Cast failed");
6584 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5722);
6587 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraReassignExpr> */
6588 if (var_n_value
== NULL
) {
6589 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6590 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5723);
6593 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
6594 if (unlikely(var_n_value
== NULL
)) {
6595 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6596 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6599 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
6605 /* method parser_prod#ABraReassignExpr#replace_child for (self: ABraReassignExpr, ANode, nullable ANode) */
6606 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6607 val
* var_old_child
/* var old_child: ANode */;
6608 val
* var_new_child
/* var new_child: nullable ANode */;
6609 val
* var
/* : AExpr */;
6610 short int var1
/* : Bool */;
6611 val
* var_other
/* var other: nullable Object */;
6612 short int var3
/* : Bool */;
6613 short int var5
/* : Bool */;
6614 short int var6
/* : Bool */;
6617 const char* var_class_name
;
6618 val
* var7
/* : AExprs */;
6619 short int var8
/* : Bool */;
6620 short int var10
/* : Bool */;
6621 short int var12
/* : Bool */;
6622 short int var13
/* : Bool */;
6625 const char* var_class_name16
;
6626 val
* var17
/* : AAssignOp */;
6627 short int var18
/* : Bool */;
6628 short int var20
/* : Bool */;
6629 short int var22
/* : Bool */;
6630 short int var23
/* : Bool */;
6633 const char* var_class_name26
;
6634 val
* var27
/* : AExpr */;
6635 short int var28
/* : Bool */;
6636 short int var30
/* : Bool */;
6637 short int var32
/* : Bool */;
6638 short int var33
/* : Bool */;
6641 const char* var_class_name36
;
6644 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
6645 if (unlikely(var
== NULL
)) {
6646 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6647 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5728);
6651 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
6652 var_other
= var_old_child
;
6654 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
6655 var5
= var
== var_other
;
6667 /* <var_new_child:nullable ANode> isa AExpr */
6668 cltype
= type_nitc__AExpr
.color
;
6669 idtype
= type_nitc__AExpr
.id
;
6670 if(var_new_child
== NULL
) {
6673 if(cltype
>= var_new_child
->type
->table_size
) {
6676 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6679 if (unlikely(!var6
)) {
6680 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6681 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
6682 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5729);
6686 nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_expr= on <self:ABraReassignExpr>*/
6691 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
6692 if (unlikely(var7
== NULL
)) {
6693 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6694 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5732);
6698 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
6699 var_other
= var_old_child
;
6701 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
6702 var12
= var7
== var_other
;
6705 RET_LABEL11
:(void)0;
6714 /* <var_new_child:nullable ANode> isa AExprs */
6715 cltype14
= type_nitc__AExprs
.color
;
6716 idtype15
= type_nitc__AExprs
.id
;
6717 if(var_new_child
== NULL
) {
6720 if(cltype14
>= var_new_child
->type
->table_size
) {
6723 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6726 if (unlikely(!var13
)) {
6727 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6728 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
6729 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5733);
6733 nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_args= on <self:ABraReassignExpr>*/
6738 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
6739 if (unlikely(var17
== NULL
)) {
6740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
6741 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5736);
6745 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AAssignOp> */
6746 var_other
= var_old_child
;
6748 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AAssignOp> */
6749 var22
= var17
== var_other
;
6752 RET_LABEL21
:(void)0;
6757 RET_LABEL19
:(void)0;
6761 /* <var_new_child:nullable ANode> isa AAssignOp */
6762 cltype24
= type_nitc__AAssignOp
.color
;
6763 idtype25
= type_nitc__AAssignOp
.id
;
6764 if(var_new_child
== NULL
) {
6767 if(cltype24
>= var_new_child
->type
->table_size
) {
6770 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6773 if (unlikely(!var23
)) {
6774 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6775 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name26
);
6776 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5737);
6780 nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_assign_op= on <self:ABraReassignExpr>*/
6785 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
6786 if (unlikely(var27
== NULL
)) {
6787 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6788 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5740);
6792 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
6793 var_other
= var_old_child
;
6795 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
6796 var32
= var27
== var_other
;
6799 RET_LABEL31
:(void)0;
6804 RET_LABEL29
:(void)0;
6808 /* <var_new_child:nullable ANode> isa AExpr */
6809 cltype34
= type_nitc__AExpr
.color
;
6810 idtype35
= type_nitc__AExpr
.id
;
6811 if(var_new_child
== NULL
) {
6814 if(cltype34
>= var_new_child
->type
->table_size
) {
6817 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6820 if (unlikely(!var33
)) {
6821 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6822 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
6823 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5741);
6827 nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_value= on <self:ABraReassignExpr>*/
6834 /* method parser_prod#ABraReassignExpr#n_expr= for (self: ABraReassignExpr, AExpr) */
6835 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
6836 val
* var_node
/* var node: AExpr */;
6838 self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraReassignExpr> */
6840 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6841 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6847 /* method parser_prod#ABraReassignExpr#n_args= for (self: ABraReassignExpr, AExprs) */
6848 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
6849 val
* var_node
/* var node: AExprs */;
6851 self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraReassignExpr> */
6853 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
6854 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
6860 /* method parser_prod#ABraReassignExpr#n_assign_op= for (self: ABraReassignExpr, AAssignOp) */
6861 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
6862 val
* var_node
/* var node: AAssignOp */;
6864 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ABraReassignExpr> */
6866 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
6867 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
6873 /* method parser_prod#ABraReassignExpr#n_value= for (self: ABraReassignExpr, AExpr) */
6874 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
6875 val
* var_node
/* var node: AExpr */;
6877 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraReassignExpr> */
6879 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6880 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6886 /* method parser_prod#ABraReassignExpr#visit_all for (self: ABraReassignExpr, Visitor) */
6887 void nitc__parser_prod___ABraReassignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6888 val
* var_v
/* var v: Visitor */;
6889 val
* var
/* : AExpr */;
6890 val
* var1
/* : AExprs */;
6891 val
* var2
/* : AAssignOp */;
6892 val
* var3
/* : AExpr */;
6894 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
6895 if (unlikely(var
== NULL
)) {
6896 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6897 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5770);
6901 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6903 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
6904 if (unlikely(var1
== NULL
)) {
6905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6906 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5771);
6910 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6912 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
6913 if (unlikely(var2
== NULL
)) {
6914 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
6915 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5772);
6919 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6921 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
6922 if (unlikely(var3
== NULL
)) {
6923 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6924 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5773);
6928 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6932 /* method parser_prod#AVarExpr#init_avarexpr for (self: AVarExpr, nullable TId) */
6933 void nitc__parser_prod___AVarExpr___init_avarexpr(val
* self
, val
* p0
) {
6934 val
* var_n_id
/* var n_id: nullable TId */;
6936 { /* Inline kernel#Object#init (self) on <self:AVarExpr> */
6941 if (unlikely(var_n_id
== NULL
)) {
6942 PRINT_ERROR("Runtime error: %s", "Cast failed");
6943 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5781);
6946 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarExpr> */
6947 if (var_n_id
== NULL
) {
6948 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6949 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5782);
6952 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
6953 if (unlikely(var_n_id
== NULL
)) {
6954 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6955 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6958 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
6964 /* method parser_prod#AVarExpr#replace_child for (self: AVarExpr, ANode, nullable ANode) */
6965 void nitc__parser_prod___AVarExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6966 val
* var_old_child
/* var old_child: ANode */;
6967 val
* var_new_child
/* var new_child: nullable ANode */;
6968 val
* var
/* : TId */;
6969 short int var1
/* : Bool */;
6970 val
* var_other
/* var other: nullable Object */;
6971 short int var3
/* : Bool */;
6972 short int var5
/* : Bool */;
6973 short int var6
/* : Bool */;
6976 const char* var_class_name
;
6979 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
6980 if (unlikely(var
== NULL
)) {
6981 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6982 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5787);
6986 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
6987 var_other
= var_old_child
;
6989 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
6990 var5
= var
== var_other
;
7002 /* <var_new_child:nullable ANode> isa TId */
7003 cltype
= type_nitc__TId
.color
;
7004 idtype
= type_nitc__TId
.id
;
7005 if(var_new_child
== NULL
) {
7008 if(cltype
>= var_new_child
->type
->table_size
) {
7011 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7014 if (unlikely(!var6
)) {
7015 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7016 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
7017 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5788);
7021 nitc__parser_prod___AVarExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarExpr#n_id= on <self:AVarExpr>*/
7028 /* method parser_prod#AVarExpr#n_id= for (self: AVarExpr, TId) */
7029 void nitc__parser_prod___AVarExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
7030 val
* var_node
/* var node: TId */;
7032 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarExpr> */
7034 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7035 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7041 /* method parser_prod#AVarExpr#visit_all for (self: AVarExpr, Visitor) */
7042 void nitc__parser_prod___AVarExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7043 val
* var_v
/* var v: Visitor */;
7044 val
* var
/* : TId */;
7046 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
7047 if (unlikely(var
== NULL
)) {
7048 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7049 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5802);
7053 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7057 /* method parser_prod#AVarAssignExpr#init_avarassignexpr for (self: AVarAssignExpr, nullable TId, nullable TAssign, nullable AExpr) */
7058 void nitc__parser_prod___AVarAssignExpr___init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7059 val
* var_n_id
/* var n_id: nullable TId */;
7060 val
* var_n_assign
/* var n_assign: nullable TAssign */;
7061 val
* var_n_value
/* var n_value: nullable AExpr */;
7063 { /* Inline kernel#Object#init (self) on <self:AVarAssignExpr> */
7070 if (unlikely(var_n_id
== NULL
)) {
7071 PRINT_ERROR("Runtime error: %s", "Cast failed");
7072 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5812);
7075 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarAssignExpr> */
7076 if (var_n_id
== NULL
) {
7077 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7078 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5813);
7081 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
7082 if (unlikely(var_n_id
== NULL
)) {
7083 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7084 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7087 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
7091 if (unlikely(var_n_assign
== NULL
)) {
7092 PRINT_ERROR("Runtime error: %s", "Cast failed");
7093 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5814);
7096 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVarAssignExpr> */
7097 if (var_n_assign
== NULL
) {
7098 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7099 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5815);
7102 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
7103 if (unlikely(var_n_assign
== NULL
)) {
7104 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7105 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7108 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
7112 if (unlikely(var_n_value
== NULL
)) {
7113 PRINT_ERROR("Runtime error: %s", "Cast failed");
7114 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5816);
7117 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarAssignExpr> */
7118 if (var_n_value
== NULL
) {
7119 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7120 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5817);
7123 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
7124 if (unlikely(var_n_value
== NULL
)) {
7125 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7126 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7129 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
7135 /* method parser_prod#AVarAssignExpr#replace_child for (self: AVarAssignExpr, ANode, nullable ANode) */
7136 void nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7137 val
* var_old_child
/* var old_child: ANode */;
7138 val
* var_new_child
/* var new_child: nullable ANode */;
7139 val
* var
/* : TId */;
7140 short int var1
/* : Bool */;
7141 val
* var_other
/* var other: nullable Object */;
7142 short int var3
/* : Bool */;
7143 short int var5
/* : Bool */;
7144 short int var6
/* : Bool */;
7147 const char* var_class_name
;
7148 val
* var7
/* : TAssign */;
7149 short int var8
/* : Bool */;
7150 short int var10
/* : Bool */;
7151 short int var12
/* : Bool */;
7152 short int var13
/* : Bool */;
7155 const char* var_class_name16
;
7156 val
* var17
/* : AExpr */;
7157 short int var18
/* : Bool */;
7158 short int var20
/* : Bool */;
7159 short int var22
/* : Bool */;
7160 short int var23
/* : Bool */;
7163 const char* var_class_name26
;
7166 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
7167 if (unlikely(var
== NULL
)) {
7168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7169 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5822);
7173 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
7174 var_other
= var_old_child
;
7176 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
7177 var5
= var
== var_other
;
7189 /* <var_new_child:nullable ANode> isa TId */
7190 cltype
= type_nitc__TId
.color
;
7191 idtype
= type_nitc__TId
.id
;
7192 if(var_new_child
== NULL
) {
7195 if(cltype
>= var_new_child
->type
->table_size
) {
7198 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7201 if (unlikely(!var6
)) {
7202 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7203 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
7204 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5823);
7208 nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_id= on <self:AVarAssignExpr>*/
7213 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
7214 if (unlikely(var7
== NULL
)) {
7215 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
7216 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5826);
7220 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
7221 var_other
= var_old_child
;
7223 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
7224 var12
= var7
== var_other
;
7227 RET_LABEL11
:(void)0;
7236 /* <var_new_child:nullable ANode> isa TAssign */
7237 cltype14
= type_nitc__TAssign
.color
;
7238 idtype15
= type_nitc__TAssign
.id
;
7239 if(var_new_child
== NULL
) {
7242 if(cltype14
>= var_new_child
->type
->table_size
) {
7245 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7248 if (unlikely(!var13
)) {
7249 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
7251 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5827);
7255 nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_assign= on <self:AVarAssignExpr>*/
7260 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
7261 if (unlikely(var17
== NULL
)) {
7262 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7263 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5830);
7267 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
7268 var_other
= var_old_child
;
7270 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
7271 var22
= var17
== var_other
;
7274 RET_LABEL21
:(void)0;
7279 RET_LABEL19
:(void)0;
7283 /* <var_new_child:nullable ANode> isa AExpr */
7284 cltype24
= type_nitc__AExpr
.color
;
7285 idtype25
= type_nitc__AExpr
.id
;
7286 if(var_new_child
== NULL
) {
7289 if(cltype24
>= var_new_child
->type
->table_size
) {
7292 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
7295 if (unlikely(!var23
)) {
7296 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7297 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
7298 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5831);
7302 nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_value= on <self:AVarAssignExpr>*/
7309 /* method parser_prod#AVarAssignExpr#n_id= for (self: AVarAssignExpr, TId) */
7310 void nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
7311 val
* var_node
/* var node: TId */;
7313 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarAssignExpr> */
7315 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7316 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7322 /* method parser_prod#AVarAssignExpr#n_assign= for (self: AVarAssignExpr, TAssign) */
7323 void nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
7324 val
* var_node
/* var node: TAssign */;
7326 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVarAssignExpr> */
7328 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
7329 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
7335 /* method parser_prod#AVarAssignExpr#n_value= for (self: AVarAssignExpr, AExpr) */
7336 void nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
7337 val
* var_node
/* var node: AExpr */;
7339 self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarAssignExpr> */
7341 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7342 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7348 /* method parser_prod#AVarAssignExpr#visit_all for (self: AVarAssignExpr, Visitor) */
7349 void nitc__parser_prod___AVarAssignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7350 val
* var_v
/* var v: Visitor */;
7351 val
* var
/* : TId */;
7352 val
* var1
/* : TAssign */;
7353 val
* var2
/* : AExpr */;
7355 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
7356 if (unlikely(var
== NULL
)) {
7357 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7358 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5855);
7362 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7364 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
7365 if (unlikely(var1
== NULL
)) {
7366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
7367 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5856);
7371 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7373 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
7374 if (unlikely(var2
== NULL
)) {
7375 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7376 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5857);
7380 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7384 /* method parser_prod#AVarReassignExpr#init_avarreassignexpr for (self: AVarReassignExpr, nullable TId, nullable AAssignOp, nullable AExpr) */
7385 void nitc__parser_prod___AVarReassignExpr___init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7386 val
* var_n_id
/* var n_id: nullable TId */;
7387 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
7388 val
* var_n_value
/* var n_value: nullable AExpr */;
7390 { /* Inline kernel#Object#init (self) on <self:AVarReassignExpr> */
7395 var_n_assign_op
= p1
;
7397 if (unlikely(var_n_id
== NULL
)) {
7398 PRINT_ERROR("Runtime error: %s", "Cast failed");
7399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5867);
7402 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarReassignExpr> */
7403 if (var_n_id
== NULL
) {
7404 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7405 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5868);
7408 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
7409 if (unlikely(var_n_id
== NULL
)) {
7410 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7411 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7414 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
7418 if (unlikely(var_n_assign_op
== NULL
)) {
7419 PRINT_ERROR("Runtime error: %s", "Cast failed");
7420 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5869);
7423 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:AVarReassignExpr> */
7424 if (var_n_assign_op
== NULL
) {
7425 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7426 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5870);
7429 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
7430 if (unlikely(var_n_assign_op
== NULL
)) {
7431 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7432 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7435 var_n_assign_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
7439 if (unlikely(var_n_value
== NULL
)) {
7440 PRINT_ERROR("Runtime error: %s", "Cast failed");
7441 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5871);
7444 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarReassignExpr> */
7445 if (var_n_value
== NULL
) {
7446 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7447 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5872);
7450 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
7451 if (unlikely(var_n_value
== NULL
)) {
7452 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7453 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7456 var_n_value
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
7462 /* method parser_prod#AVarReassignExpr#replace_child for (self: AVarReassignExpr, ANode, nullable ANode) */
7463 void nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7464 val
* var_old_child
/* var old_child: ANode */;
7465 val
* var_new_child
/* var new_child: nullable ANode */;
7466 val
* var
/* : TId */;
7467 short int var1
/* : Bool */;
7468 val
* var_other
/* var other: nullable Object */;
7469 short int var3
/* : Bool */;
7470 short int var5
/* : Bool */;
7471 short int var6
/* : Bool */;
7474 const char* var_class_name
;
7475 val
* var7
/* : AAssignOp */;
7476 short int var8
/* : Bool */;
7477 short int var10
/* : Bool */;
7478 short int var12
/* : Bool */;
7479 short int var13
/* : Bool */;
7482 const char* var_class_name16
;
7483 val
* var17
/* : AExpr */;
7484 short int var18
/* : Bool */;
7485 short int var20
/* : Bool */;
7486 short int var22
/* : Bool */;
7487 short int var23
/* : Bool */;
7490 const char* var_class_name26
;
7493 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
7494 if (unlikely(var
== NULL
)) {
7495 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7496 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5877);
7500 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
7501 var_other
= var_old_child
;
7503 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
7504 var5
= var
== var_other
;
7516 /* <var_new_child:nullable ANode> isa TId */
7517 cltype
= type_nitc__TId
.color
;
7518 idtype
= type_nitc__TId
.id
;
7519 if(var_new_child
== NULL
) {
7522 if(cltype
>= var_new_child
->type
->table_size
) {
7525 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7528 if (unlikely(!var6
)) {
7529 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7530 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
7531 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5878);
7535 nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_id= on <self:AVarReassignExpr>*/
7540 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
7541 if (unlikely(var7
== NULL
)) {
7542 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
7543 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5881);
7547 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AAssignOp> */
7548 var_other
= var_old_child
;
7550 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AAssignOp> */
7551 var12
= var7
== var_other
;
7554 RET_LABEL11
:(void)0;
7563 /* <var_new_child:nullable ANode> isa AAssignOp */
7564 cltype14
= type_nitc__AAssignOp
.color
;
7565 idtype15
= type_nitc__AAssignOp
.id
;
7566 if(var_new_child
== NULL
) {
7569 if(cltype14
>= var_new_child
->type
->table_size
) {
7572 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7575 if (unlikely(!var13
)) {
7576 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7577 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name16
);
7578 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5882);
7582 nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_assign_op= on <self:AVarReassignExpr>*/
7587 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
7588 if (unlikely(var17
== NULL
)) {
7589 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7590 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5885);
7594 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
7595 var_other
= var_old_child
;
7597 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
7598 var22
= var17
== var_other
;
7601 RET_LABEL21
:(void)0;
7606 RET_LABEL19
:(void)0;
7610 /* <var_new_child:nullable ANode> isa AExpr */
7611 cltype24
= type_nitc__AExpr
.color
;
7612 idtype25
= type_nitc__AExpr
.id
;
7613 if(var_new_child
== NULL
) {
7616 if(cltype24
>= var_new_child
->type
->table_size
) {
7619 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
7622 if (unlikely(!var23
)) {
7623 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7624 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
7625 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5886);
7629 nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_value= on <self:AVarReassignExpr>*/
7636 /* method parser_prod#AVarReassignExpr#n_id= for (self: AVarReassignExpr, TId) */
7637 void nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
7638 val
* var_node
/* var node: TId */;
7640 self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarReassignExpr> */
7642 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7643 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7649 /* method parser_prod#AVarReassignExpr#n_assign_op= for (self: AVarReassignExpr, AAssignOp) */
7650 void nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
7651 val
* var_node
/* var node: AAssignOp */;
7653 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:AVarReassignExpr> */
7655 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
7656 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
7662 /* method parser_prod#AVarReassignExpr#n_value= for (self: AVarReassignExpr, AExpr) */
7663 void nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
7664 val
* var_node
/* var node: AExpr */;
7666 self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarReassignExpr> */
7668 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7669 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7675 /* method parser_prod#AVarReassignExpr#visit_all for (self: AVarReassignExpr, Visitor) */
7676 void nitc__parser_prod___AVarReassignExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7677 val
* var_v
/* var v: Visitor */;
7678 val
* var
/* : TId */;
7679 val
* var1
/* : AAssignOp */;
7680 val
* var2
/* : AExpr */;
7682 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
7683 if (unlikely(var
== NULL
)) {
7684 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7685 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5910);
7689 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7691 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
7692 if (unlikely(var1
== NULL
)) {
7693 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
7694 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5911);
7698 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7700 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
7701 if (unlikely(var2
== NULL
)) {
7702 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7703 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5912);
7707 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7711 /* method parser_prod#ACrangeExpr#init_acrangeexpr for (self: ACrangeExpr, nullable TObra, nullable AExpr, nullable TDotdot, nullable AExpr, nullable TCbra, nullable AAnnotations) */
7712 void nitc__parser_prod___ACrangeExpr___init_acrangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7713 val
* var_n_obra
/* var n_obra: nullable TObra */;
7714 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7715 val
* var_n_dotdot
/* var n_dotdot: nullable TDotdot */;
7716 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
7717 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
7718 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7719 short int var
/* : Bool */;
7720 short int var7
/* : Bool */;
7721 val
* var_other
/* var other: nullable Object */;
7722 short int var9
/* : Bool */;
7723 short int var10
/* : Bool */;
7725 { /* Inline kernel#Object#init (self) on <self:ACrangeExpr> */
7734 var_n_annotations
= p5
;
7735 if (unlikely(var_n_obra
== NULL
)) {
7736 PRINT_ERROR("Runtime error: %s", "Cast failed");
7737 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5980);
7740 self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ACrangeExpr> */
7741 if (var_n_obra
== NULL
) {
7742 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7743 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5981);
7746 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
7747 if (unlikely(var_n_obra
== NULL
)) {
7748 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7749 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7752 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
7756 if (unlikely(var_n_expr
== NULL
)) {
7757 PRINT_ERROR("Runtime error: %s", "Cast failed");
7758 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5982);
7761 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACrangeExpr> */
7762 if (var_n_expr
== NULL
) {
7763 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7764 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5983);
7767 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
7768 if (unlikely(var_n_expr
== NULL
)) {
7769 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7770 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7773 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
7777 if (unlikely(var_n_dotdot
== NULL
)) {
7778 PRINT_ERROR("Runtime error: %s", "Cast failed");
7779 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5984);
7782 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
= var_n_dotdot
; /* _n_dotdot on <self:ACrangeExpr> */
7783 if (var_n_dotdot
== NULL
) {
7784 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7785 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5985);
7788 { /* Inline parser_nodes#ANode#parent= (var_n_dotdot,self) on <var_n_dotdot:nullable TDotdot> */
7789 if (unlikely(var_n_dotdot
== NULL
)) {
7790 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7791 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7794 var_n_dotdot
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdot:nullable TDotdot> */
7798 if (unlikely(var_n_expr2
== NULL
)) {
7799 PRINT_ERROR("Runtime error: %s", "Cast failed");
7800 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5986);
7803 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:ACrangeExpr> */
7804 if (var_n_expr2
== NULL
) {
7805 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7806 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5987);
7809 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
7810 if (unlikely(var_n_expr2
== NULL
)) {
7811 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7812 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7815 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
7819 if (unlikely(var_n_cbra
== NULL
)) {
7820 PRINT_ERROR("Runtime error: %s", "Cast failed");
7821 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5988);
7824 self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ACrangeExpr> */
7825 if (var_n_cbra
== NULL
) {
7826 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7827 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5989);
7830 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
7831 if (unlikely(var_n_cbra
== NULL
)) {
7832 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7833 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7836 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
7840 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACrangeExpr> */
7841 if (var_n_annotations
== NULL
) {
7842 var
= 0; /* is null */
7844 var
= 1; /* arg is null and recv is not */
7847 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
7848 var_other
= ((val
*)NULL
);
7850 var9
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
7861 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7862 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7863 RET_LABEL11
:(void)0;
7870 /* method parser_prod#ACrangeExpr#replace_child for (self: ACrangeExpr, ANode, nullable ANode) */
7871 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7872 val
* var_old_child
/* var old_child: ANode */;
7873 val
* var_new_child
/* var new_child: nullable ANode */;
7874 val
* var
/* : TObra */;
7875 short int var1
/* : Bool */;
7876 val
* var_other
/* var other: nullable Object */;
7877 short int var3
/* : Bool */;
7878 short int var5
/* : Bool */;
7879 short int var6
/* : Bool */;
7882 const char* var_class_name
;
7883 val
* var7
/* : AExpr */;
7884 short int var8
/* : Bool */;
7885 short int var10
/* : Bool */;
7886 short int var12
/* : Bool */;
7887 short int var13
/* : Bool */;
7890 const char* var_class_name16
;
7891 val
* var17
/* : TDotdot */;
7892 short int var18
/* : Bool */;
7893 short int var20
/* : Bool */;
7894 short int var22
/* : Bool */;
7895 short int var23
/* : Bool */;
7898 const char* var_class_name26
;
7899 val
* var27
/* : AExpr */;
7900 short int var28
/* : Bool */;
7901 short int var30
/* : Bool */;
7902 short int var32
/* : Bool */;
7903 short int var33
/* : Bool */;
7906 const char* var_class_name36
;
7907 val
* var37
/* : TCbra */;
7908 short int var38
/* : Bool */;
7909 short int var40
/* : Bool */;
7910 short int var42
/* : Bool */;
7911 short int var43
/* : Bool */;
7914 const char* var_class_name46
;
7915 val
* var47
/* : nullable AAnnotations */;
7916 short int var48
/* : Bool */;
7917 short int var49
/* : Bool */;
7918 short int var51
/* : Bool */;
7919 short int var53
/* : Bool */;
7920 short int var54
/* : Bool */;
7923 const char* var_class_name57
;
7926 var
= self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
7927 if (unlikely(var
== NULL
)) {
7928 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7929 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5996);
7933 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
7934 var_other
= var_old_child
;
7936 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
7937 var5
= var
== var_other
;
7949 /* <var_new_child:nullable ANode> isa TObra */
7950 cltype
= type_nitc__TObra
.color
;
7951 idtype
= type_nitc__TObra
.id
;
7952 if(var_new_child
== NULL
) {
7955 if(cltype
>= var_new_child
->type
->table_size
) {
7958 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7961 if (unlikely(!var6
)) {
7962 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7963 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
7964 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 5997);
7968 nitc__parser_prod___ACrangeExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_obra= on <self:ACrangeExpr>*/
7973 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
7974 if (unlikely(var7
== NULL
)) {
7975 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7976 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6000);
7980 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
7981 var_other
= var_old_child
;
7983 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
7984 var12
= var7
== var_other
;
7987 RET_LABEL11
:(void)0;
7996 /* <var_new_child:nullable ANode> isa AExpr */
7997 cltype14
= type_nitc__AExpr
.color
;
7998 idtype15
= type_nitc__AExpr
.id
;
7999 if(var_new_child
== NULL
) {
8002 if(cltype14
>= var_new_child
->type
->table_size
) {
8005 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
8008 if (unlikely(!var13
)) {
8009 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8010 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
8011 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6001);
8015 nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr= on <self:ACrangeExpr>*/
8020 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:ACrangeExpr> */
8021 if (unlikely(var17
== NULL
)) {
8022 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8023 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6004);
8027 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TDotdot> */
8028 var_other
= var_old_child
;
8030 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TDotdot> */
8031 var22
= var17
== var_other
;
8034 RET_LABEL21
:(void)0;
8039 RET_LABEL19
:(void)0;
8043 /* <var_new_child:nullable ANode> isa TDotdot */
8044 cltype24
= type_nitc__TDotdot
.color
;
8045 idtype25
= type_nitc__TDotdot
.id
;
8046 if(var_new_child
== NULL
) {
8049 if(cltype24
>= var_new_child
->type
->table_size
) {
8052 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
8055 if (unlikely(!var23
)) {
8056 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8057 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdot", var_class_name26
);
8058 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6005);
8062 nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_dotdot_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_dotdot= on <self:ACrangeExpr>*/
8067 var27
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
8068 if (unlikely(var27
== NULL
)) {
8069 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8070 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6008);
8074 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
8075 var_other
= var_old_child
;
8077 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
8078 var32
= var27
== var_other
;
8081 RET_LABEL31
:(void)0;
8086 RET_LABEL29
:(void)0;
8090 /* <var_new_child:nullable ANode> isa AExpr */
8091 cltype34
= type_nitc__AExpr
.color
;
8092 idtype35
= type_nitc__AExpr
.id
;
8093 if(var_new_child
== NULL
) {
8096 if(cltype34
>= var_new_child
->type
->table_size
) {
8099 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
8102 if (unlikely(!var33
)) {
8103 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8104 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
8105 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6009);
8109 nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr2= on <self:ACrangeExpr>*/
8114 var37
= self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
8115 if (unlikely(var37
== NULL
)) {
8116 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8117 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6012);
8121 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TCbra> */
8122 var_other
= var_old_child
;
8124 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TCbra> */
8125 var42
= var37
== var_other
;
8128 RET_LABEL41
:(void)0;
8133 RET_LABEL39
:(void)0;
8137 /* <var_new_child:nullable ANode> isa TCbra */
8138 cltype44
= type_nitc__TCbra
.color
;
8139 idtype45
= type_nitc__TCbra
.id
;
8140 if(var_new_child
== NULL
) {
8143 if(cltype44
>= var_new_child
->type
->table_size
) {
8146 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
8149 if (unlikely(!var43
)) {
8150 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8151 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name46
);
8152 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6013);
8156 nitc__parser_prod___ACrangeExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_cbra= on <self:ACrangeExpr>*/
8161 var47
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
8162 if (var47
== NULL
) {
8163 var48
= 0; /* <var_old_child:ANode> cannot be null */
8165 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:nullable AAnnotations> */
8166 var_other
= var_old_child
;
8168 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:nullable AAnnotations(AAnnotations)> */
8169 var53
= var47
== var_other
;
8172 RET_LABEL52
:(void)0;
8177 RET_LABEL50
:(void)0;
8182 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8183 cltype55
= type_nullable__nitc__AAnnotations
.color
;
8184 idtype56
= type_nullable__nitc__AAnnotations
.id
;
8185 if(var_new_child
== NULL
) {
8188 if(cltype55
>= var_new_child
->type
->table_size
) {
8191 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
8194 if (unlikely(!var54
)) {
8195 var_class_name57
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8196 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name57
);
8197 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6017);
8201 nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_annotations= on <self:ACrangeExpr>*/
8208 /* method parser_prod#ACrangeExpr#n_obra= for (self: ACrangeExpr, TObra) */
8209 void nitc__parser_prod___ACrangeExpr___n_obra_61d(val
* self
, val
* p0
) {
8210 val
* var_node
/* var node: TObra */;
8212 self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:ACrangeExpr> */
8214 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
8215 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
8221 /* method parser_prod#ACrangeExpr#n_expr= for (self: ACrangeExpr, AExpr) */
8222 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr_61d(val
* self
, val
* p0
) {
8223 val
* var_node
/* var node: AExpr */;
8225 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACrangeExpr> */
8227 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8228 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8234 /* method parser_prod#ACrangeExpr#n_dotdot= for (self: ACrangeExpr, TDotdot) */
8235 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_dotdot_61d(val
* self
, val
* p0
) {
8236 val
* var_node
/* var node: TDotdot */;
8238 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
= var_node
; /* _n_dotdot on <self:ACrangeExpr> */
8240 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdot> */
8241 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdot> */
8247 /* method parser_prod#ACrangeExpr#n_expr2= for (self: ACrangeExpr, AExpr) */
8248 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
8249 val
* var_node
/* var node: AExpr */;
8251 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ACrangeExpr> */
8253 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8254 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8260 /* method parser_prod#ACrangeExpr#n_cbra= for (self: ACrangeExpr, TCbra) */
8261 void nitc__parser_prod___ACrangeExpr___n_cbra_61d(val
* self
, val
* p0
) {
8262 val
* var_node
/* var node: TCbra */;
8264 self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:ACrangeExpr> */
8266 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
8267 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
8273 /* method parser_prod#ACrangeExpr#n_annotations= for (self: ACrangeExpr, nullable AAnnotations) */
8274 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
8275 val
* var_node
/* var node: nullable AAnnotations */;
8276 short int var
/* : Bool */;
8277 short int var1
/* : Bool */;
8278 val
* var_other
/* var other: nullable Object */;
8279 short int var3
/* : Bool */;
8280 short int var4
/* : Bool */;
8282 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACrangeExpr> */
8283 if (var_node
== NULL
) {
8284 var
= 0; /* is null */
8286 var
= 1; /* arg is null and recv is not */
8289 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
8290 var_other
= ((val
*)NULL
);
8292 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
8303 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8304 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8312 /* method parser_prod#ACrangeExpr#visit_all for (self: ACrangeExpr, Visitor) */
8313 void nitc__parser_prod___ACrangeExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8314 val
* var_v
/* var v: Visitor */;
8315 val
* var
/* : TObra */;
8316 val
* var1
/* : AExpr */;
8317 val
* var2
/* : TDotdot */;
8318 val
* var3
/* : AExpr */;
8319 val
* var4
/* : TCbra */;
8320 val
* var5
/* : nullable AAnnotations */;
8322 var
= self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
8323 if (unlikely(var
== NULL
)) {
8324 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8325 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6056);
8329 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8331 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
8332 if (unlikely(var1
== NULL
)) {
8333 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8334 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6057);
8338 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8340 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:ACrangeExpr> */
8341 if (unlikely(var2
== NULL
)) {
8342 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8343 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6058);
8347 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8349 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
8350 if (unlikely(var3
== NULL
)) {
8351 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8352 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6059);
8356 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8358 var4
= self
->attrs
[COLOR_nitc__parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
8359 if (unlikely(var4
== NULL
)) {
8360 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8361 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6060);
8365 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8367 var5
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
8369 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8373 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: AOrangeExpr, nullable TObra, nullable AExpr, nullable TDotdot, nullable AExpr, nullable TObra, nullable AAnnotations) */
8374 void nitc__parser_prod___AOrangeExpr___init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
8375 val
* var_n_obra
/* var n_obra: nullable TObra */;
8376 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8377 val
* var_n_dotdot
/* var n_dotdot: nullable TDotdot */;
8378 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
8379 val
* var_n_cbra
/* var n_cbra: nullable TObra */;
8380 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8381 short int var
/* : Bool */;
8382 short int var7
/* : Bool */;
8383 val
* var_other
/* var other: nullable Object */;
8384 short int var9
/* : Bool */;
8385 short int var10
/* : Bool */;
8387 { /* Inline kernel#Object#init (self) on <self:AOrangeExpr> */
8396 var_n_annotations
= p5
;
8397 if (unlikely(var_n_obra
== NULL
)) {
8398 PRINT_ERROR("Runtime error: %s", "Cast failed");
8399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6074);
8402 self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AOrangeExpr> */
8403 if (var_n_obra
== NULL
) {
8404 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8405 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6075);
8408 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
8409 if (unlikely(var_n_obra
== NULL
)) {
8410 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8411 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8414 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
8418 if (unlikely(var_n_expr
== NULL
)) {
8419 PRINT_ERROR("Runtime error: %s", "Cast failed");
8420 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6076);
8423 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrangeExpr> */
8424 if (var_n_expr
== NULL
) {
8425 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8426 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6077);
8429 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8430 if (unlikely(var_n_expr
== NULL
)) {
8431 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8432 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8435 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8439 if (unlikely(var_n_dotdot
== NULL
)) {
8440 PRINT_ERROR("Runtime error: %s", "Cast failed");
8441 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6078);
8444 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
= var_n_dotdot
; /* _n_dotdot on <self:AOrangeExpr> */
8445 if (var_n_dotdot
== NULL
) {
8446 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8447 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6079);
8450 { /* Inline parser_nodes#ANode#parent= (var_n_dotdot,self) on <var_n_dotdot:nullable TDotdot> */
8451 if (unlikely(var_n_dotdot
== NULL
)) {
8452 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8453 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8456 var_n_dotdot
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdot:nullable TDotdot> */
8460 if (unlikely(var_n_expr2
== NULL
)) {
8461 PRINT_ERROR("Runtime error: %s", "Cast failed");
8462 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6080);
8465 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrangeExpr> */
8466 if (var_n_expr2
== NULL
) {
8467 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8468 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6081);
8471 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
8472 if (unlikely(var_n_expr2
== NULL
)) {
8473 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8474 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8477 var_n_expr2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
8481 if (unlikely(var_n_cbra
== NULL
)) {
8482 PRINT_ERROR("Runtime error: %s", "Cast failed");
8483 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6082);
8486 self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AOrangeExpr> */
8487 if (var_n_cbra
== NULL
) {
8488 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8489 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6083);
8492 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TObra> */
8493 if (unlikely(var_n_cbra
== NULL
)) {
8494 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8495 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8498 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TObra> */
8502 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOrangeExpr> */
8503 if (var_n_annotations
== NULL
) {
8504 var
= 0; /* is null */
8506 var
= 1; /* arg is null and recv is not */
8509 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
8510 var_other
= ((val
*)NULL
);
8512 var9
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
8523 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8524 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8525 RET_LABEL11
:(void)0;
8532 /* method parser_prod#AOrangeExpr#replace_child for (self: AOrangeExpr, ANode, nullable ANode) */
8533 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8534 val
* var_old_child
/* var old_child: ANode */;
8535 val
* var_new_child
/* var new_child: nullable ANode */;
8536 val
* var
/* : TObra */;
8537 short int var1
/* : Bool */;
8538 val
* var_other
/* var other: nullable Object */;
8539 short int var3
/* : Bool */;
8540 short int var5
/* : Bool */;
8541 short int var6
/* : Bool */;
8544 const char* var_class_name
;
8545 val
* var7
/* : AExpr */;
8546 short int var8
/* : Bool */;
8547 short int var10
/* : Bool */;
8548 short int var12
/* : Bool */;
8549 short int var13
/* : Bool */;
8552 const char* var_class_name16
;
8553 val
* var17
/* : TDotdot */;
8554 short int var18
/* : Bool */;
8555 short int var20
/* : Bool */;
8556 short int var22
/* : Bool */;
8557 short int var23
/* : Bool */;
8560 const char* var_class_name26
;
8561 val
* var27
/* : AExpr */;
8562 short int var28
/* : Bool */;
8563 short int var30
/* : Bool */;
8564 short int var32
/* : Bool */;
8565 short int var33
/* : Bool */;
8568 const char* var_class_name36
;
8569 val
* var37
/* : TObra */;
8570 short int var38
/* : Bool */;
8571 short int var40
/* : Bool */;
8572 short int var42
/* : Bool */;
8573 short int var43
/* : Bool */;
8576 const char* var_class_name46
;
8577 val
* var47
/* : nullable AAnnotations */;
8578 short int var48
/* : Bool */;
8579 short int var49
/* : Bool */;
8580 short int var51
/* : Bool */;
8581 short int var53
/* : Bool */;
8582 short int var54
/* : Bool */;
8585 const char* var_class_name57
;
8588 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
8589 if (unlikely(var
== NULL
)) {
8590 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8591 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6090);
8595 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
8596 var_other
= var_old_child
;
8598 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
8599 var5
= var
== var_other
;
8611 /* <var_new_child:nullable ANode> isa TObra */
8612 cltype
= type_nitc__TObra
.color
;
8613 idtype
= type_nitc__TObra
.id
;
8614 if(var_new_child
== NULL
) {
8617 if(cltype
>= var_new_child
->type
->table_size
) {
8620 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8623 if (unlikely(!var6
)) {
8624 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8625 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
8626 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6091);
8630 nitc__parser_prod___AOrangeExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:AOrangeExpr>*/
8635 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
8636 if (unlikely(var7
== NULL
)) {
8637 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8638 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6094);
8642 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
8643 var_other
= var_old_child
;
8645 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
8646 var12
= var7
== var_other
;
8649 RET_LABEL11
:(void)0;
8658 /* <var_new_child:nullable ANode> isa AExpr */
8659 cltype14
= type_nitc__AExpr
.color
;
8660 idtype15
= type_nitc__AExpr
.id
;
8661 if(var_new_child
== NULL
) {
8664 if(cltype14
>= var_new_child
->type
->table_size
) {
8667 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
8670 if (unlikely(!var13
)) {
8671 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8672 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
8673 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6095);
8677 nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:AOrangeExpr>*/
8682 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:AOrangeExpr> */
8683 if (unlikely(var17
== NULL
)) {
8684 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8685 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6098);
8689 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TDotdot> */
8690 var_other
= var_old_child
;
8692 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TDotdot> */
8693 var22
= var17
== var_other
;
8696 RET_LABEL21
:(void)0;
8701 RET_LABEL19
:(void)0;
8705 /* <var_new_child:nullable ANode> isa TDotdot */
8706 cltype24
= type_nitc__TDotdot
.color
;
8707 idtype25
= type_nitc__TDotdot
.id
;
8708 if(var_new_child
== NULL
) {
8711 if(cltype24
>= var_new_child
->type
->table_size
) {
8714 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
8717 if (unlikely(!var23
)) {
8718 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8719 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdot", var_class_name26
);
8720 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6099);
8724 nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_dotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_dotdot= on <self:AOrangeExpr>*/
8729 var27
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
8730 if (unlikely(var27
== NULL
)) {
8731 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8732 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6102);
8736 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
8737 var_other
= var_old_child
;
8739 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
8740 var32
= var27
== var_other
;
8743 RET_LABEL31
:(void)0;
8748 RET_LABEL29
:(void)0;
8752 /* <var_new_child:nullable ANode> isa AExpr */
8753 cltype34
= type_nitc__AExpr
.color
;
8754 idtype35
= type_nitc__AExpr
.id
;
8755 if(var_new_child
== NULL
) {
8758 if(cltype34
>= var_new_child
->type
->table_size
) {
8761 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
8764 if (unlikely(!var33
)) {
8765 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8766 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
8767 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6103);
8771 nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:AOrangeExpr>*/
8776 var37
= self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
8777 if (unlikely(var37
== NULL
)) {
8778 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8779 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6106);
8783 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TObra> */
8784 var_other
= var_old_child
;
8786 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TObra> */
8787 var42
= var37
== var_other
;
8790 RET_LABEL41
:(void)0;
8795 RET_LABEL39
:(void)0;
8799 /* <var_new_child:nullable ANode> isa TObra */
8800 cltype44
= type_nitc__TObra
.color
;
8801 idtype45
= type_nitc__TObra
.id
;
8802 if(var_new_child
== NULL
) {
8805 if(cltype44
>= var_new_child
->type
->table_size
) {
8808 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
8811 if (unlikely(!var43
)) {
8812 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8813 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name46
);
8814 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6107);
8818 nitc__parser_prod___AOrangeExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:AOrangeExpr>*/
8823 var47
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
8824 if (var47
== NULL
) {
8825 var48
= 0; /* <var_old_child:ANode> cannot be null */
8827 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:nullable AAnnotations> */
8828 var_other
= var_old_child
;
8830 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:nullable AAnnotations(AAnnotations)> */
8831 var53
= var47
== var_other
;
8834 RET_LABEL52
:(void)0;
8839 RET_LABEL50
:(void)0;
8844 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8845 cltype55
= type_nullable__nitc__AAnnotations
.color
;
8846 idtype56
= type_nullable__nitc__AAnnotations
.id
;
8847 if(var_new_child
== NULL
) {
8850 if(cltype55
>= var_new_child
->type
->table_size
) {
8853 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
8856 if (unlikely(!var54
)) {
8857 var_class_name57
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8858 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name57
);
8859 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6111);
8863 nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:AOrangeExpr>*/
8870 /* method parser_prod#AOrangeExpr#n_obra= for (self: AOrangeExpr, TObra) */
8871 void nitc__parser_prod___AOrangeExpr___n_obra_61d(val
* self
, val
* p0
) {
8872 val
* var_node
/* var node: TObra */;
8874 self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AOrangeExpr> */
8876 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
8877 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
8883 /* method parser_prod#AOrangeExpr#n_expr= for (self: AOrangeExpr, AExpr) */
8884 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr_61d(val
* self
, val
* p0
) {
8885 val
* var_node
/* var node: AExpr */;
8887 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrangeExpr> */
8889 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8890 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8896 /* method parser_prod#AOrangeExpr#n_dotdot= for (self: AOrangeExpr, TDotdot) */
8897 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_dotdot_61d(val
* self
, val
* p0
) {
8898 val
* var_node
/* var node: TDotdot */;
8900 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
= var_node
; /* _n_dotdot on <self:AOrangeExpr> */
8902 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdot> */
8903 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdot> */
8909 /* method parser_prod#AOrangeExpr#n_expr2= for (self: AOrangeExpr, AExpr) */
8910 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ARangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
8911 val
* var_node
/* var node: AExpr */;
8913 self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AOrangeExpr> */
8915 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8916 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8922 /* method parser_prod#AOrangeExpr#n_cbra= for (self: AOrangeExpr, TObra) */
8923 void nitc__parser_prod___AOrangeExpr___n_cbra_61d(val
* self
, val
* p0
) {
8924 val
* var_node
/* var node: TObra */;
8926 self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AOrangeExpr> */
8928 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
8929 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
8935 /* method parser_prod#AOrangeExpr#n_annotations= for (self: AOrangeExpr, nullable AAnnotations) */
8936 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
8937 val
* var_node
/* var node: nullable AAnnotations */;
8938 short int var
/* : Bool */;
8939 short int var1
/* : Bool */;
8940 val
* var_other
/* var other: nullable Object */;
8941 short int var3
/* : Bool */;
8942 short int var4
/* : Bool */;
8944 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOrangeExpr> */
8945 if (var_node
== NULL
) {
8946 var
= 0; /* is null */
8948 var
= 1; /* arg is null and recv is not */
8951 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
8952 var_other
= ((val
*)NULL
);
8954 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
8965 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8966 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8974 /* method parser_prod#AOrangeExpr#visit_all for (self: AOrangeExpr, Visitor) */
8975 void nitc__parser_prod___AOrangeExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8976 val
* var_v
/* var v: Visitor */;
8977 val
* var
/* : TObra */;
8978 val
* var1
/* : AExpr */;
8979 val
* var2
/* : TDotdot */;
8980 val
* var3
/* : AExpr */;
8981 val
* var4
/* : TObra */;
8982 val
* var5
/* : nullable AAnnotations */;
8984 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
8985 if (unlikely(var
== NULL
)) {
8986 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8987 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6150);
8991 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8993 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
8994 if (unlikely(var1
== NULL
)) {
8995 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8996 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6151);
9000 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9002 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:AOrangeExpr> */
9003 if (unlikely(var2
== NULL
)) {
9004 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
9005 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6152);
9009 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9011 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
9012 if (unlikely(var3
== NULL
)) {
9013 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9014 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6153);
9018 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9020 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
9021 if (unlikely(var4
== NULL
)) {
9022 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
9023 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6154);
9027 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9029 var5
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
9031 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9035 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: AArrayExpr, nullable TObra, Collection[Object], nullable AType, nullable TCbra, nullable AAnnotations) */
9036 void nitc__parser_prod___AArrayExpr___init_aarrayexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
9037 val
* var_n_obra
/* var n_obra: nullable TObra */;
9038 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
9039 val
* var_n_type
/* var n_type: nullable AType */;
9040 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
9041 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9042 val
* var
/* : ANodes[AExpr] */;
9043 val
* var4
/* : ANodes[AExpr] */;
9044 short int var5
/* : Bool */;
9045 short int var6
/* : Bool */;
9046 val
* var_other
/* var other: nullable Object */;
9047 short int var8
/* : Bool */;
9048 short int var9
/* : Bool */;
9049 short int var12
/* : Bool */;
9050 short int var13
/* : Bool */;
9051 short int var15
/* : Bool */;
9052 short int var16
/* : Bool */;
9054 { /* Inline kernel#Object#init (self) on <self:AArrayExpr> */
9062 var_n_annotations
= p4
;
9063 if (unlikely(var_n_obra
== NULL
)) {
9064 PRINT_ERROR("Runtime error: %s", "Cast failed");
9065 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6167);
9068 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AArrayExpr> */
9069 if (var_n_obra
== NULL
) {
9070 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9071 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6168);
9074 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
9075 if (unlikely(var_n_obra
== NULL
)) {
9076 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9077 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9080 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
9085 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
9086 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
9087 if (unlikely(var4
== NULL
)) {
9088 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
9089 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2460);
9097 nitc___nitc__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
9099 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AArrayExpr> */
9100 if (var_n_type
== NULL
) {
9101 var5
= 0; /* is null */
9103 var5
= 1; /* arg is null and recv is not */
9106 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
9107 var_other
= ((val
*)NULL
);
9109 var8
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
9120 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
9121 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
9122 RET_LABEL10
:(void)0;
9127 if (unlikely(var_n_cbra
== NULL
)) {
9128 PRINT_ERROR("Runtime error: %s", "Cast failed");
9129 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6172);
9132 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AArrayExpr> */
9133 if (var_n_cbra
== NULL
) {
9134 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9135 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6173);
9138 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
9139 if (unlikely(var_n_cbra
== NULL
)) {
9140 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9141 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9144 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
9145 RET_LABEL11
:(void)0;
9148 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AArrayExpr> */
9149 if (var_n_annotations
== NULL
) {
9150 var12
= 0; /* is null */
9152 var12
= 1; /* arg is null and recv is not */
9155 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9156 var_other
= ((val
*)NULL
);
9158 var15
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
9163 RET_LABEL14
:(void)0;
9169 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9170 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9171 RET_LABEL17
:(void)0;
9178 /* method parser_prod#AArrayExpr#replace_child for (self: AArrayExpr, ANode, nullable ANode) */
9179 void nitc__parser_prod___AArrayExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9180 val
* var_old_child
/* var old_child: ANode */;
9181 val
* var_new_child
/* var new_child: nullable ANode */;
9182 val
* var
/* : TObra */;
9183 short int var1
/* : Bool */;
9184 val
* var_other
/* var other: nullable Object */;
9185 short int var3
/* : Bool */;
9186 short int var5
/* : Bool */;
9187 short int var6
/* : Bool */;
9190 const char* var_class_name
;
9191 val
* var7
/* : ANodes[AExpr] */;
9192 val
* var9
/* : ANodes[AExpr] */;
9193 short int var10
/* : Bool */;
9194 val
* var11
/* : nullable AType */;
9195 short int var12
/* : Bool */;
9196 short int var13
/* : Bool */;
9197 short int var15
/* : Bool */;
9198 short int var17
/* : Bool */;
9199 short int var18
/* : Bool */;
9202 const char* var_class_name21
;
9203 val
* var22
/* : TCbra */;
9204 short int var23
/* : Bool */;
9205 short int var25
/* : Bool */;
9206 short int var27
/* : Bool */;
9207 short int var28
/* : Bool */;
9210 const char* var_class_name31
;
9211 val
* var32
/* : nullable AAnnotations */;
9212 short int var33
/* : Bool */;
9213 short int var34
/* : Bool */;
9214 short int var36
/* : Bool */;
9215 short int var38
/* : Bool */;
9216 short int var39
/* : Bool */;
9219 const char* var_class_name42
;
9222 var
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
9223 if (unlikely(var
== NULL
)) {
9224 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
9225 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6180);
9229 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
9230 var_other
= var_old_child
;
9232 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
9233 var5
= var
== var_other
;
9245 /* <var_new_child:nullable ANode> isa TObra */
9246 cltype
= type_nitc__TObra
.color
;
9247 idtype
= type_nitc__TObra
.id
;
9248 if(var_new_child
== NULL
) {
9251 if(cltype
>= var_new_child
->type
->table_size
) {
9254 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9257 if (unlikely(!var6
)) {
9258 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9259 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
9260 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6181);
9264 nitc__parser_prod___AArrayExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_obra= on <self:AArrayExpr>*/
9270 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
9271 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
9272 if (unlikely(var9
== NULL
)) {
9273 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
9274 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2460);
9282 var10
= nitc___nitc__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
9288 var11
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
9289 if (var11
== NULL
) {
9290 var12
= 0; /* <var_old_child:ANode> cannot be null */
9292 { /* Inline kernel#Object#== (var11,var_old_child) on <var11:nullable AType> */
9293 var_other
= var_old_child
;
9295 { /* Inline kernel#Object#is_same_instance (var11,var_other) on <var11:nullable AType(AType)> */
9296 var17
= var11
== var_other
;
9299 RET_LABEL16
:(void)0;
9304 RET_LABEL14
:(void)0;
9309 /* <var_new_child:nullable ANode> isa nullable AType */
9310 cltype19
= type_nullable__nitc__AType
.color
;
9311 idtype20
= type_nullable__nitc__AType
.id
;
9312 if(var_new_child
== NULL
) {
9315 if(cltype19
>= var_new_child
->type
->table_size
) {
9318 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
9321 if (unlikely(!var18
)) {
9322 var_class_name21
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9323 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name21
);
9324 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6186);
9328 nitc__parser_prod___AArrayExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_type= on <self:AArrayExpr>*/
9333 var22
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
9334 if (unlikely(var22
== NULL
)) {
9335 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
9336 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6189);
9340 { /* Inline kernel#Object#== (var22,var_old_child) on <var22:TCbra> */
9341 var_other
= var_old_child
;
9343 { /* Inline kernel#Object#is_same_instance (var22,var_other) on <var22:TCbra> */
9344 var27
= var22
== var_other
;
9347 RET_LABEL26
:(void)0;
9352 RET_LABEL24
:(void)0;
9356 /* <var_new_child:nullable ANode> isa TCbra */
9357 cltype29
= type_nitc__TCbra
.color
;
9358 idtype30
= type_nitc__TCbra
.id
;
9359 if(var_new_child
== NULL
) {
9362 if(cltype29
>= var_new_child
->type
->table_size
) {
9365 var28
= var_new_child
->type
->type_table
[cltype29
] == idtype30
;
9368 if (unlikely(!var28
)) {
9369 var_class_name31
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9370 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name31
);
9371 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6190);
9375 nitc__parser_prod___AArrayExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_cbra= on <self:AArrayExpr>*/
9380 var32
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
9381 if (var32
== NULL
) {
9382 var33
= 0; /* <var_old_child:ANode> cannot be null */
9384 { /* Inline kernel#Object#== (var32,var_old_child) on <var32:nullable AAnnotations> */
9385 var_other
= var_old_child
;
9387 { /* Inline kernel#Object#is_same_instance (var32,var_other) on <var32:nullable AAnnotations(AAnnotations)> */
9388 var38
= var32
== var_other
;
9391 RET_LABEL37
:(void)0;
9396 RET_LABEL35
:(void)0;
9401 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9402 cltype40
= type_nullable__nitc__AAnnotations
.color
;
9403 idtype41
= type_nullable__nitc__AAnnotations
.id
;
9404 if(var_new_child
== NULL
) {
9407 if(cltype40
>= var_new_child
->type
->table_size
) {
9410 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
9413 if (unlikely(!var39
)) {
9414 var_class_name42
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9415 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name42
);
9416 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6194);
9420 nitc__parser_prod___AArrayExpr___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:AArrayExpr>*/
9427 /* method parser_prod#AArrayExpr#n_obra= for (self: AArrayExpr, TObra) */
9428 void nitc__parser_prod___AArrayExpr___n_obra_61d(val
* self
, val
* p0
) {
9429 val
* var_node
/* var node: TObra */;
9431 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AArrayExpr> */
9433 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
9434 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
9440 /* method parser_prod#AArrayExpr#n_type= for (self: AArrayExpr, nullable AType) */
9441 void nitc__parser_prod___AArrayExpr___n_type_61d(val
* self
, val
* p0
) {
9442 val
* var_node
/* var node: nullable AType */;
9443 short int var
/* : Bool */;
9444 short int var1
/* : Bool */;
9445 val
* var_other
/* var other: nullable Object */;
9446 short int var3
/* : Bool */;
9447 short int var4
/* : Bool */;
9449 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_type
].val
= var_node
; /* _n_type on <self:AArrayExpr> */
9450 if (var_node
== NULL
) {
9451 var
= 0; /* is null */
9453 var
= 1; /* arg is null and recv is not */
9456 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
9457 var_other
= ((val
*)NULL
);
9459 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
9470 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
9471 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
9479 /* method parser_prod#AArrayExpr#n_cbra= for (self: AArrayExpr, TCbra) */
9480 void nitc__parser_prod___AArrayExpr___n_cbra_61d(val
* self
, val
* p0
) {
9481 val
* var_node
/* var node: TCbra */;
9483 self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AArrayExpr> */
9485 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
9486 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
9492 /* method parser_prod#AArrayExpr#n_annotations= for (self: AArrayExpr, nullable AAnnotations) */
9493 void nitc__parser_prod___AArrayExpr___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9494 val
* var_node
/* var node: nullable AAnnotations */;
9495 short int var
/* : Bool */;
9496 short int var1
/* : Bool */;
9497 val
* var_other
/* var other: nullable Object */;
9498 short int var3
/* : Bool */;
9499 short int var4
/* : Bool */;
9501 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AArrayExpr> */
9502 if (var_node
== NULL
) {
9503 var
= 0; /* is null */
9505 var
= 1; /* arg is null and recv is not */
9508 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9509 var_other
= ((val
*)NULL
);
9511 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
9522 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9523 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9531 /* method parser_prod#AArrayExpr#visit_all for (self: AArrayExpr, Visitor) */
9532 void nitc__parser_prod___AArrayExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9533 val
* var_v
/* var v: Visitor */;
9534 val
* var
/* : TObra */;
9535 val
* var1
/* : ANodes[AExpr] */;
9536 val
* var3
/* : ANodes[AExpr] */;
9537 val
* var4
/* : nullable AType */;
9538 val
* var5
/* : TCbra */;
9539 val
* var6
/* : nullable AAnnotations */;
9541 var
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
9542 if (unlikely(var
== NULL
)) {
9543 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
9544 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6223);
9548 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9551 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
9552 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
9553 if (unlikely(var3
== NULL
)) {
9554 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
9555 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2460);
9563 nitc___nitc__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
9565 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
9567 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9569 var5
= self
->attrs
[COLOR_nitc__parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
9570 if (unlikely(var5
== NULL
)) {
9571 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
9572 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6226);
9576 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9578 var6
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
9580 nitc___nitc__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9584 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: ASelfExpr, nullable TKwself, nullable AAnnotations) */
9585 void nitc__parser_prod___ASelfExpr___init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
9586 val
* var_n_kwself
/* var n_kwself: nullable TKwself */;
9587 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9588 short int var
/* : Bool */;
9589 short int var3
/* : Bool */;
9590 val
* var_other
/* var other: nullable Object */;
9591 short int var5
/* : Bool */;
9592 short int var6
/* : Bool */;
9594 { /* Inline kernel#Object#init (self) on <self:ASelfExpr> */
9599 var_n_annotations
= p1
;
9600 if (unlikely(var_n_kwself
== NULL
)) {
9601 PRINT_ERROR("Runtime error: %s", "Cast failed");
9602 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6236);
9605 self
->attrs
[COLOR_nitc__parser_nodes__ASelfExpr___n_kwself
].val
= var_n_kwself
; /* _n_kwself on <self:ASelfExpr> */
9606 if (var_n_kwself
== NULL
) {
9607 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9608 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6237);
9611 { /* Inline parser_nodes#ANode#parent= (var_n_kwself,self) on <var_n_kwself:nullable TKwself> */
9612 if (unlikely(var_n_kwself
== NULL
)) {
9613 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9617 var_n_kwself
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwself:nullable TKwself> */
9621 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASelfExpr> */
9622 if (var_n_annotations
== NULL
) {
9623 var
= 0; /* is null */
9625 var
= 1; /* arg is null and recv is not */
9628 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9629 var_other
= ((val
*)NULL
);
9631 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
9642 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9643 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9651 /* method parser_prod#ASelfExpr#replace_child for (self: ASelfExpr, ANode, nullable ANode) */
9652 void nitc__parser_prod___ASelfExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9653 val
* var_old_child
/* var old_child: ANode */;
9654 val
* var_new_child
/* var new_child: nullable ANode */;
9655 val
* var
/* : nullable TKwself */;
9656 short int var1
/* : Bool */;
9657 short int var2
/* : Bool */;
9658 val
* var_other
/* var other: nullable Object */;
9659 short int var4
/* : Bool */;
9660 short int var6
/* : Bool */;
9661 short int var7
/* : Bool */;
9664 const char* var_class_name
;
9665 val
* var8
/* : nullable AAnnotations */;
9666 short int var9
/* : Bool */;
9667 short int var10
/* : Bool */;
9668 short int var12
/* : Bool */;
9669 short int var14
/* : Bool */;
9670 short int var15
/* : Bool */;
9673 const char* var_class_name18
;
9676 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
9678 var1
= 0; /* <var_old_child:ANode> cannot be null */
9680 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwself> */
9681 var_other
= var_old_child
;
9683 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwself(TKwself)> */
9684 var6
= var
== var_other
;
9697 /* <var_new_child:nullable ANode> isa TKwself */
9698 cltype
= type_nitc__TKwself
.color
;
9699 idtype
= type_nitc__TKwself
.id
;
9700 if(var_new_child
== NULL
) {
9703 if(cltype
>= var_new_child
->type
->table_size
) {
9706 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9709 if (unlikely(!var7
)) {
9710 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9711 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwself", var_class_name
);
9712 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6245);
9716 nitc__parser_prod___ASelfExpr___n_kwself_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:ASelfExpr>*/
9721 var8
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
9723 var9
= 0; /* <var_old_child:ANode> cannot be null */
9725 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
9726 var_other
= var_old_child
;
9728 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
9729 var14
= var8
== var_other
;
9732 RET_LABEL13
:(void)0;
9737 RET_LABEL11
:(void)0;
9742 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9743 cltype16
= type_nullable__nitc__AAnnotations
.color
;
9744 idtype17
= type_nullable__nitc__AAnnotations
.id
;
9745 if(var_new_child
== NULL
) {
9748 if(cltype16
>= var_new_child
->type
->table_size
) {
9751 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9754 if (unlikely(!var15
)) {
9755 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9756 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
9757 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6249);
9761 nitc__parser_prod___ASelfExpr___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:ASelfExpr>*/
9768 /* method parser_prod#ASelfExpr#n_kwself= for (self: ASelfExpr, nullable TKwself) */
9769 void nitc__parser_prod___ASelfExpr___n_kwself_61d(val
* self
, val
* p0
) {
9770 val
* var_node
/* var node: nullable TKwself */;
9772 self
->attrs
[COLOR_nitc__parser_nodes__ASelfExpr___n_kwself
].val
= var_node
; /* _n_kwself on <self:ASelfExpr> */
9773 if (var_node
== NULL
) {
9774 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9775 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6257);
9778 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwself> */
9779 if (unlikely(var_node
== NULL
)) {
9780 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9781 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9784 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwself> */
9790 /* method parser_prod#ASelfExpr#n_annotations= for (self: ASelfExpr, nullable AAnnotations) */
9791 void nitc__parser_prod___ASelfExpr___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9792 val
* var_node
/* var node: nullable AAnnotations */;
9793 short int var
/* : Bool */;
9794 short int var1
/* : Bool */;
9795 val
* var_other
/* var other: nullable Object */;
9796 short int var3
/* : Bool */;
9797 short int var4
/* : Bool */;
9799 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASelfExpr> */
9800 if (var_node
== NULL
) {
9801 var
= 0; /* is null */
9803 var
= 1; /* arg is null and recv is not */
9806 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9807 var_other
= ((val
*)NULL
);
9809 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
9820 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9821 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9829 /* method parser_prod#ASelfExpr#visit_all for (self: ASelfExpr, Visitor) */
9830 void nitc__parser_prod___ASelfExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9831 val
* var_v
/* var v: Visitor */;
9832 val
* var
/* : nullable TKwself */;
9833 val
* var1
/* : nullable AAnnotations */;
9835 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
9837 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9839 var1
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
9841 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9845 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: AImplicitSelfExpr) */
9846 void nitc__parser_prod___AImplicitSelfExpr___init_aimplicitselfexpr(val
* self
) {
9848 { /* Inline kernel#Object#init (self) on <self:AImplicitSelfExpr> */
9854 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: AImplicitSelfExpr, ANode, nullable ANode) */
9855 void nitc__parser_prod___AImplicitSelfExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9856 val
* var_old_child
/* var old_child: ANode */;
9857 val
* var_new_child
/* var new_child: nullable ANode */;
9862 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: AImplicitSelfExpr, Visitor) */
9863 void nitc__parser_prod___AImplicitSelfExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9864 val
* var_v
/* var v: Visitor */;
9868 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: ATrueExpr, nullable TKwtrue, nullable AAnnotations) */
9869 void nitc__parser_prod___ATrueExpr___init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
9870 val
* var_n_kwtrue
/* var n_kwtrue: nullable TKwtrue */;
9871 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9872 short int var
/* : Bool */;
9873 short int var3
/* : Bool */;
9874 val
* var_other
/* var other: nullable Object */;
9875 short int var5
/* : Bool */;
9876 short int var6
/* : Bool */;
9878 { /* Inline kernel#Object#init (self) on <self:ATrueExpr> */
9883 var_n_annotations
= p1
;
9884 if (unlikely(var_n_kwtrue
== NULL
)) {
9885 PRINT_ERROR("Runtime error: %s", "Cast failed");
9886 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6293);
9889 self
->attrs
[COLOR_nitc__parser_nodes__ATrueExpr___n_kwtrue
].val
= var_n_kwtrue
; /* _n_kwtrue on <self:ATrueExpr> */
9890 if (var_n_kwtrue
== NULL
) {
9891 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9892 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 6294);
9895 { /* Inline parser_nodes#ANode#parent= (var_n_kwtrue,self) on <var_n_kwtrue:nullable TKwtrue> */
9896 if (unlikely(var_n_kwtrue
== NULL
)) {
9897 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9898 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9901 var_n_kwtrue
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtrue:nullable TKwtrue> */
9905 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATrueExpr> */
9906 if (var_n_annotations
== NULL
) {
9907 var
= 0; /* is null */
9909 var
= 1; /* arg is null and recv is not */
9912 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9913 var_other
= ((val
*)NULL
);
9915 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
9926 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9927 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */