1 #include "nit__parser_prod.sep.0.h"
2 /* method parser_prod#AEqMethid#init_aeqmethid for (self: AEqMethid, nullable TEq) */
3 void nit__parser_prod___AEqMethid___init_aeqmethid(val
* self
, val
* p0
) {
4 val
* var_n_eq
/* var n_eq: nullable TEq */;
6 if (unlikely(var_n_eq
== NULL
)) {
7 PRINT_ERROR("Runtime error: %s", "Cast failed");
8 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1498);
11 self
->attrs
[COLOR_nit__parser_nodes__AEqMethid___n_eq
].val
= var_n_eq
; /* _n_eq on <self:AEqMethid> */
12 if (var_n_eq
== NULL
) {
13 PRINT_ERROR("Runtime error: %s", "Receiver is null");
14 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1499);
17 { /* Inline parser_nodes#ANode#parent= (var_n_eq,self) on <var_n_eq:nullable TEq> */
18 if (unlikely(var_n_eq
== NULL
)) {
19 PRINT_ERROR("Runtime error: %s", "Receiver is null");
20 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
23 var_n_eq
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_eq:nullable TEq> */
29 /* method parser_prod#AEqMethid#replace_child for (self: AEqMethid, ANode, nullable ANode) */
30 void nit__parser_prod___AEqMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
31 val
* var_old_child
/* var old_child: ANode */;
32 val
* var_new_child
/* var new_child: nullable ANode */;
34 short int var1
/* : Bool */;
35 val
* var_other
/* var other: nullable Object */;
36 short int var3
/* : Bool */;
37 short int var5
/* : Bool */;
38 short int var6
/* : Bool */;
41 const char* var_class_name
;
44 var
= self
->attrs
[COLOR_nit__parser_nodes__AEqMethid___n_eq
].val
; /* _n_eq on <self:AEqMethid> */
45 if (unlikely(var
== NULL
)) {
46 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_eq");
47 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1504);
51 { /* Inline kernel#Object#== (var,var_old_child) on <var:TEq> */
52 var_other
= var_old_child
;
54 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TEq> */
55 var5
= var
== var_other
;
67 /* <var_new_child:nullable ANode> isa TEq */
68 cltype
= type_nit__TEq
.color
;
69 idtype
= type_nit__TEq
.id
;
70 if(var_new_child
== NULL
) {
73 if(cltype
>= var_new_child
->type
->table_size
) {
76 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
79 if (unlikely(!var6
)) {
80 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
81 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEq", var_class_name
);
82 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1505);
86 nit__parser_prod___AEqMethid___n_eq_61d(self
, var_new_child
); /* Direct call parser_prod#AEqMethid#n_eq= on <self:AEqMethid>*/
93 /* method parser_prod#AEqMethid#n_eq= for (self: AEqMethid, TEq) */
94 void nit__parser_prod___AEqMethid___n_eq_61d(val
* self
, val
* p0
) {
95 val
* var_node
/* var node: TEq */;
97 self
->attrs
[COLOR_nit__parser_nodes__AEqMethid___n_eq
].val
= var_node
; /* _n_eq on <self:AEqMethid> */
99 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TEq> */
100 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TEq> */
106 /* method parser_prod#AEqMethid#visit_all for (self: AEqMethid, Visitor) */
107 void nit__parser_prod___AEqMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
108 val
* var_v
/* var v: Visitor */;
109 val
* var
/* : TEq */;
111 var
= self
->attrs
[COLOR_nit__parser_nodes__AEqMethid___n_eq
].val
; /* _n_eq on <self:AEqMethid> */
112 if (unlikely(var
== NULL
)) {
113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_eq");
114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1519);
118 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
122 /* method parser_prod#ANeMethid#init_anemethid for (self: ANeMethid, nullable TNe) */
123 void nit__parser_prod___ANeMethid___init_anemethid(val
* self
, val
* p0
) {
124 val
* var_n_ne
/* var n_ne: nullable TNe */;
126 if (unlikely(var_n_ne
== NULL
)) {
127 PRINT_ERROR("Runtime error: %s", "Cast failed");
128 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1527);
131 self
->attrs
[COLOR_nit__parser_nodes__ANeMethid___n_ne
].val
= var_n_ne
; /* _n_ne on <self:ANeMethid> */
132 if (var_n_ne
== NULL
) {
133 PRINT_ERROR("Runtime error: %s", "Receiver is null");
134 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1528);
137 { /* Inline parser_nodes#ANode#parent= (var_n_ne,self) on <var_n_ne:nullable TNe> */
138 if (unlikely(var_n_ne
== NULL
)) {
139 PRINT_ERROR("Runtime error: %s", "Receiver is null");
140 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
143 var_n_ne
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_ne:nullable TNe> */
149 /* method parser_prod#ANeMethid#replace_child for (self: ANeMethid, ANode, nullable ANode) */
150 void nit__parser_prod___ANeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
151 val
* var_old_child
/* var old_child: ANode */;
152 val
* var_new_child
/* var new_child: nullable ANode */;
153 val
* var
/* : TNe */;
154 short int var1
/* : Bool */;
155 val
* var_other
/* var other: nullable Object */;
156 short int var3
/* : Bool */;
157 short int var5
/* : Bool */;
158 short int var6
/* : Bool */;
161 const char* var_class_name
;
164 var
= self
->attrs
[COLOR_nit__parser_nodes__ANeMethid___n_ne
].val
; /* _n_ne on <self:ANeMethid> */
165 if (unlikely(var
== NULL
)) {
166 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ne");
167 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1533);
171 { /* Inline kernel#Object#== (var,var_old_child) on <var:TNe> */
172 var_other
= var_old_child
;
174 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TNe> */
175 var5
= var
== var_other
;
187 /* <var_new_child:nullable ANode> isa TNe */
188 cltype
= type_nit__TNe
.color
;
189 idtype
= type_nit__TNe
.id
;
190 if(var_new_child
== NULL
) {
193 if(cltype
>= var_new_child
->type
->table_size
) {
196 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
199 if (unlikely(!var6
)) {
200 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
201 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNe", var_class_name
);
202 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1534);
206 nit__parser_prod___ANeMethid___n_ne_61d(self
, var_new_child
); /* Direct call parser_prod#ANeMethid#n_ne= on <self:ANeMethid>*/
213 /* method parser_prod#ANeMethid#n_ne= for (self: ANeMethid, TNe) */
214 void nit__parser_prod___ANeMethid___n_ne_61d(val
* self
, val
* p0
) {
215 val
* var_node
/* var node: TNe */;
217 self
->attrs
[COLOR_nit__parser_nodes__ANeMethid___n_ne
].val
= var_node
; /* _n_ne on <self:ANeMethid> */
219 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TNe> */
220 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TNe> */
226 /* method parser_prod#ANeMethid#visit_all for (self: ANeMethid, Visitor) */
227 void nit__parser_prod___ANeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
228 val
* var_v
/* var v: Visitor */;
229 val
* var
/* : TNe */;
231 var
= self
->attrs
[COLOR_nit__parser_nodes__ANeMethid___n_ne
].val
; /* _n_ne on <self:ANeMethid> */
232 if (unlikely(var
== NULL
)) {
233 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ne");
234 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1548);
238 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
242 /* method parser_prod#ALeMethid#init_alemethid for (self: ALeMethid, nullable TLe) */
243 void nit__parser_prod___ALeMethid___init_alemethid(val
* self
, val
* p0
) {
244 val
* var_n_le
/* var n_le: nullable TLe */;
246 if (unlikely(var_n_le
== NULL
)) {
247 PRINT_ERROR("Runtime error: %s", "Cast failed");
248 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1556);
251 self
->attrs
[COLOR_nit__parser_nodes__ALeMethid___n_le
].val
= var_n_le
; /* _n_le on <self:ALeMethid> */
252 if (var_n_le
== NULL
) {
253 PRINT_ERROR("Runtime error: %s", "Receiver is null");
254 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1557);
257 { /* Inline parser_nodes#ANode#parent= (var_n_le,self) on <var_n_le:nullable TLe> */
258 if (unlikely(var_n_le
== NULL
)) {
259 PRINT_ERROR("Runtime error: %s", "Receiver is null");
260 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
263 var_n_le
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_le:nullable TLe> */
269 /* method parser_prod#ALeMethid#replace_child for (self: ALeMethid, ANode, nullable ANode) */
270 void nit__parser_prod___ALeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
271 val
* var_old_child
/* var old_child: ANode */;
272 val
* var_new_child
/* var new_child: nullable ANode */;
273 val
* var
/* : TLe */;
274 short int var1
/* : Bool */;
275 val
* var_other
/* var other: nullable Object */;
276 short int var3
/* : Bool */;
277 short int var5
/* : Bool */;
278 short int var6
/* : Bool */;
281 const char* var_class_name
;
284 var
= self
->attrs
[COLOR_nit__parser_nodes__ALeMethid___n_le
].val
; /* _n_le on <self:ALeMethid> */
285 if (unlikely(var
== NULL
)) {
286 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_le");
287 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1562);
291 { /* Inline kernel#Object#== (var,var_old_child) on <var:TLe> */
292 var_other
= var_old_child
;
294 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TLe> */
295 var5
= var
== var_other
;
307 /* <var_new_child:nullable ANode> isa TLe */
308 cltype
= type_nit__TLe
.color
;
309 idtype
= type_nit__TLe
.id
;
310 if(var_new_child
== NULL
) {
313 if(cltype
>= var_new_child
->type
->table_size
) {
316 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
319 if (unlikely(!var6
)) {
320 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
321 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLe", var_class_name
);
322 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1563);
326 nit__parser_prod___ALeMethid___n_le_61d(self
, var_new_child
); /* Direct call parser_prod#ALeMethid#n_le= on <self:ALeMethid>*/
333 /* method parser_prod#ALeMethid#n_le= for (self: ALeMethid, TLe) */
334 void nit__parser_prod___ALeMethid___n_le_61d(val
* self
, val
* p0
) {
335 val
* var_node
/* var node: TLe */;
337 self
->attrs
[COLOR_nit__parser_nodes__ALeMethid___n_le
].val
= var_node
; /* _n_le on <self:ALeMethid> */
339 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TLe> */
340 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TLe> */
346 /* method parser_prod#ALeMethid#visit_all for (self: ALeMethid, Visitor) */
347 void nit__parser_prod___ALeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
348 val
* var_v
/* var v: Visitor */;
349 val
* var
/* : TLe */;
351 var
= self
->attrs
[COLOR_nit__parser_nodes__ALeMethid___n_le
].val
; /* _n_le on <self:ALeMethid> */
352 if (unlikely(var
== NULL
)) {
353 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_le");
354 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1577);
358 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
362 /* method parser_prod#AGeMethid#init_agemethid for (self: AGeMethid, nullable TGe) */
363 void nit__parser_prod___AGeMethid___init_agemethid(val
* self
, val
* p0
) {
364 val
* var_n_ge
/* var n_ge: nullable TGe */;
366 if (unlikely(var_n_ge
== NULL
)) {
367 PRINT_ERROR("Runtime error: %s", "Cast failed");
368 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1585);
371 self
->attrs
[COLOR_nit__parser_nodes__AGeMethid___n_ge
].val
= var_n_ge
; /* _n_ge on <self:AGeMethid> */
372 if (var_n_ge
== NULL
) {
373 PRINT_ERROR("Runtime error: %s", "Receiver is null");
374 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1586);
377 { /* Inline parser_nodes#ANode#parent= (var_n_ge,self) on <var_n_ge:nullable TGe> */
378 if (unlikely(var_n_ge
== NULL
)) {
379 PRINT_ERROR("Runtime error: %s", "Receiver is null");
380 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
383 var_n_ge
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_ge:nullable TGe> */
389 /* method parser_prod#AGeMethid#replace_child for (self: AGeMethid, ANode, nullable ANode) */
390 void nit__parser_prod___AGeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
391 val
* var_old_child
/* var old_child: ANode */;
392 val
* var_new_child
/* var new_child: nullable ANode */;
393 val
* var
/* : TGe */;
394 short int var1
/* : Bool */;
395 val
* var_other
/* var other: nullable Object */;
396 short int var3
/* : Bool */;
397 short int var5
/* : Bool */;
398 short int var6
/* : Bool */;
401 const char* var_class_name
;
404 var
= self
->attrs
[COLOR_nit__parser_nodes__AGeMethid___n_ge
].val
; /* _n_ge on <self:AGeMethid> */
405 if (unlikely(var
== NULL
)) {
406 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ge");
407 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1591);
411 { /* Inline kernel#Object#== (var,var_old_child) on <var:TGe> */
412 var_other
= var_old_child
;
414 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TGe> */
415 var5
= var
== var_other
;
427 /* <var_new_child:nullable ANode> isa TGe */
428 cltype
= type_nit__TGe
.color
;
429 idtype
= type_nit__TGe
.id
;
430 if(var_new_child
== NULL
) {
433 if(cltype
>= var_new_child
->type
->table_size
) {
436 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
439 if (unlikely(!var6
)) {
440 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
441 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGe", var_class_name
);
442 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1592);
446 nit__parser_prod___AGeMethid___n_ge_61d(self
, var_new_child
); /* Direct call parser_prod#AGeMethid#n_ge= on <self:AGeMethid>*/
453 /* method parser_prod#AGeMethid#n_ge= for (self: AGeMethid, TGe) */
454 void nit__parser_prod___AGeMethid___n_ge_61d(val
* self
, val
* p0
) {
455 val
* var_node
/* var node: TGe */;
457 self
->attrs
[COLOR_nit__parser_nodes__AGeMethid___n_ge
].val
= var_node
; /* _n_ge on <self:AGeMethid> */
459 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TGe> */
460 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TGe> */
466 /* method parser_prod#AGeMethid#visit_all for (self: AGeMethid, Visitor) */
467 void nit__parser_prod___AGeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
468 val
* var_v
/* var v: Visitor */;
469 val
* var
/* : TGe */;
471 var
= self
->attrs
[COLOR_nit__parser_nodes__AGeMethid___n_ge
].val
; /* _n_ge on <self:AGeMethid> */
472 if (unlikely(var
== NULL
)) {
473 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ge");
474 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1606);
478 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
482 /* method parser_prod#ALtMethid#init_altmethid for (self: ALtMethid, nullable TLt) */
483 void nit__parser_prod___ALtMethid___init_altmethid(val
* self
, val
* p0
) {
484 val
* var_n_lt
/* var n_lt: nullable TLt */;
486 if (unlikely(var_n_lt
== NULL
)) {
487 PRINT_ERROR("Runtime error: %s", "Cast failed");
488 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1614);
491 self
->attrs
[COLOR_nit__parser_nodes__ALtMethid___n_lt
].val
= var_n_lt
; /* _n_lt on <self:ALtMethid> */
492 if (var_n_lt
== NULL
) {
493 PRINT_ERROR("Runtime error: %s", "Receiver is null");
494 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1615);
497 { /* Inline parser_nodes#ANode#parent= (var_n_lt,self) on <var_n_lt:nullable TLt> */
498 if (unlikely(var_n_lt
== NULL
)) {
499 PRINT_ERROR("Runtime error: %s", "Receiver is null");
500 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
503 var_n_lt
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_lt:nullable TLt> */
509 /* method parser_prod#ALtMethid#replace_child for (self: ALtMethid, ANode, nullable ANode) */
510 void nit__parser_prod___ALtMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
511 val
* var_old_child
/* var old_child: ANode */;
512 val
* var_new_child
/* var new_child: nullable ANode */;
513 val
* var
/* : TLt */;
514 short int var1
/* : Bool */;
515 val
* var_other
/* var other: nullable Object */;
516 short int var3
/* : Bool */;
517 short int var5
/* : Bool */;
518 short int var6
/* : Bool */;
521 const char* var_class_name
;
524 var
= self
->attrs
[COLOR_nit__parser_nodes__ALtMethid___n_lt
].val
; /* _n_lt on <self:ALtMethid> */
525 if (unlikely(var
== NULL
)) {
526 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_lt");
527 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1620);
531 { /* Inline kernel#Object#== (var,var_old_child) on <var:TLt> */
532 var_other
= var_old_child
;
534 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TLt> */
535 var5
= var
== var_other
;
547 /* <var_new_child:nullable ANode> isa TLt */
548 cltype
= type_nit__TLt
.color
;
549 idtype
= type_nit__TLt
.id
;
550 if(var_new_child
== NULL
) {
553 if(cltype
>= var_new_child
->type
->table_size
) {
556 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
559 if (unlikely(!var6
)) {
560 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
561 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLt", var_class_name
);
562 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1621);
566 nit__parser_prod___ALtMethid___n_lt_61d(self
, var_new_child
); /* Direct call parser_prod#ALtMethid#n_lt= on <self:ALtMethid>*/
573 /* method parser_prod#ALtMethid#n_lt= for (self: ALtMethid, TLt) */
574 void nit__parser_prod___ALtMethid___n_lt_61d(val
* self
, val
* p0
) {
575 val
* var_node
/* var node: TLt */;
577 self
->attrs
[COLOR_nit__parser_nodes__ALtMethid___n_lt
].val
= var_node
; /* _n_lt on <self:ALtMethid> */
579 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TLt> */
580 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TLt> */
586 /* method parser_prod#ALtMethid#visit_all for (self: ALtMethid, Visitor) */
587 void nit__parser_prod___ALtMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
588 val
* var_v
/* var v: Visitor */;
589 val
* var
/* : TLt */;
591 var
= self
->attrs
[COLOR_nit__parser_nodes__ALtMethid___n_lt
].val
; /* _n_lt on <self:ALtMethid> */
592 if (unlikely(var
== NULL
)) {
593 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_lt");
594 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1635);
598 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
602 /* method parser_prod#AGtMethid#init_agtmethid for (self: AGtMethid, nullable TGt) */
603 void nit__parser_prod___AGtMethid___init_agtmethid(val
* self
, val
* p0
) {
604 val
* var_n_gt
/* var n_gt: nullable TGt */;
606 if (unlikely(var_n_gt
== NULL
)) {
607 PRINT_ERROR("Runtime error: %s", "Cast failed");
608 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1643);
611 self
->attrs
[COLOR_nit__parser_nodes__AGtMethid___n_gt
].val
= var_n_gt
; /* _n_gt on <self:AGtMethid> */
612 if (var_n_gt
== NULL
) {
613 PRINT_ERROR("Runtime error: %s", "Receiver is null");
614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1644);
617 { /* Inline parser_nodes#ANode#parent= (var_n_gt,self) on <var_n_gt:nullable TGt> */
618 if (unlikely(var_n_gt
== NULL
)) {
619 PRINT_ERROR("Runtime error: %s", "Receiver is null");
620 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
623 var_n_gt
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_gt:nullable TGt> */
629 /* method parser_prod#AGtMethid#replace_child for (self: AGtMethid, ANode, nullable ANode) */
630 void nit__parser_prod___AGtMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
631 val
* var_old_child
/* var old_child: ANode */;
632 val
* var_new_child
/* var new_child: nullable ANode */;
633 val
* var
/* : TGt */;
634 short int var1
/* : Bool */;
635 val
* var_other
/* var other: nullable Object */;
636 short int var3
/* : Bool */;
637 short int var5
/* : Bool */;
638 short int var6
/* : Bool */;
641 const char* var_class_name
;
644 var
= self
->attrs
[COLOR_nit__parser_nodes__AGtMethid___n_gt
].val
; /* _n_gt on <self:AGtMethid> */
645 if (unlikely(var
== NULL
)) {
646 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_gt");
647 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1649);
651 { /* Inline kernel#Object#== (var,var_old_child) on <var:TGt> */
652 var_other
= var_old_child
;
654 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TGt> */
655 var5
= var
== var_other
;
667 /* <var_new_child:nullable ANode> isa TGt */
668 cltype
= type_nit__TGt
.color
;
669 idtype
= type_nit__TGt
.id
;
670 if(var_new_child
== NULL
) {
673 if(cltype
>= var_new_child
->type
->table_size
) {
676 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
679 if (unlikely(!var6
)) {
680 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
681 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGt", var_class_name
);
682 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1650);
686 nit__parser_prod___AGtMethid___n_gt_61d(self
, var_new_child
); /* Direct call parser_prod#AGtMethid#n_gt= on <self:AGtMethid>*/
693 /* method parser_prod#AGtMethid#n_gt= for (self: AGtMethid, TGt) */
694 void nit__parser_prod___AGtMethid___n_gt_61d(val
* self
, val
* p0
) {
695 val
* var_node
/* var node: TGt */;
697 self
->attrs
[COLOR_nit__parser_nodes__AGtMethid___n_gt
].val
= var_node
; /* _n_gt on <self:AGtMethid> */
699 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TGt> */
700 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TGt> */
706 /* method parser_prod#AGtMethid#visit_all for (self: AGtMethid, Visitor) */
707 void nit__parser_prod___AGtMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
708 val
* var_v
/* var v: Visitor */;
709 val
* var
/* : TGt */;
711 var
= self
->attrs
[COLOR_nit__parser_nodes__AGtMethid___n_gt
].val
; /* _n_gt on <self:AGtMethid> */
712 if (unlikely(var
== NULL
)) {
713 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_gt");
714 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1664);
718 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
722 /* method parser_prod#ALlMethid#init_allmethid for (self: ALlMethid, nullable TLl) */
723 void nit__parser_prod___ALlMethid___init_allmethid(val
* self
, val
* p0
) {
724 val
* var_n_ll
/* var n_ll: nullable TLl */;
726 if (unlikely(var_n_ll
== NULL
)) {
727 PRINT_ERROR("Runtime error: %s", "Cast failed");
728 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1672);
731 self
->attrs
[COLOR_nit__parser_nodes__ALlMethid___n_ll
].val
= var_n_ll
; /* _n_ll on <self:ALlMethid> */
732 if (var_n_ll
== NULL
) {
733 PRINT_ERROR("Runtime error: %s", "Receiver is null");
734 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1673);
737 { /* Inline parser_nodes#ANode#parent= (var_n_ll,self) on <var_n_ll:nullable TLl> */
738 if (unlikely(var_n_ll
== NULL
)) {
739 PRINT_ERROR("Runtime error: %s", "Receiver is null");
740 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
743 var_n_ll
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_ll:nullable TLl> */
749 /* method parser_prod#ALlMethid#replace_child for (self: ALlMethid, ANode, nullable ANode) */
750 void nit__parser_prod___ALlMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
751 val
* var_old_child
/* var old_child: ANode */;
752 val
* var_new_child
/* var new_child: nullable ANode */;
753 val
* var
/* : TLl */;
754 short int var1
/* : Bool */;
755 val
* var_other
/* var other: nullable Object */;
756 short int var3
/* : Bool */;
757 short int var5
/* : Bool */;
758 short int var6
/* : Bool */;
761 const char* var_class_name
;
764 var
= self
->attrs
[COLOR_nit__parser_nodes__ALlMethid___n_ll
].val
; /* _n_ll on <self:ALlMethid> */
765 if (unlikely(var
== NULL
)) {
766 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ll");
767 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1678);
771 { /* Inline kernel#Object#== (var,var_old_child) on <var:TLl> */
772 var_other
= var_old_child
;
774 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TLl> */
775 var5
= var
== var_other
;
787 /* <var_new_child:nullable ANode> isa TLl */
788 cltype
= type_nit__TLl
.color
;
789 idtype
= type_nit__TLl
.id
;
790 if(var_new_child
== NULL
) {
793 if(cltype
>= var_new_child
->type
->table_size
) {
796 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
799 if (unlikely(!var6
)) {
800 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
801 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLl", var_class_name
);
802 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1679);
806 nit__parser_prod___ALlMethid___n_ll_61d(self
, var_new_child
); /* Direct call parser_prod#ALlMethid#n_ll= on <self:ALlMethid>*/
813 /* method parser_prod#ALlMethid#n_ll= for (self: ALlMethid, TLl) */
814 void nit__parser_prod___ALlMethid___n_ll_61d(val
* self
, val
* p0
) {
815 val
* var_node
/* var node: TLl */;
817 self
->attrs
[COLOR_nit__parser_nodes__ALlMethid___n_ll
].val
= var_node
; /* _n_ll on <self:ALlMethid> */
819 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TLl> */
820 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TLl> */
826 /* method parser_prod#ALlMethid#visit_all for (self: ALlMethid, Visitor) */
827 void nit__parser_prod___ALlMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
828 val
* var_v
/* var v: Visitor */;
829 val
* var
/* : TLl */;
831 var
= self
->attrs
[COLOR_nit__parser_nodes__ALlMethid___n_ll
].val
; /* _n_ll on <self:ALlMethid> */
832 if (unlikely(var
== NULL
)) {
833 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ll");
834 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1693);
838 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
842 /* method parser_prod#AGgMethid#init_aggmethid for (self: AGgMethid, nullable TGg) */
843 void nit__parser_prod___AGgMethid___init_aggmethid(val
* self
, val
* p0
) {
844 val
* var_n_gg
/* var n_gg: nullable TGg */;
846 if (unlikely(var_n_gg
== NULL
)) {
847 PRINT_ERROR("Runtime error: %s", "Cast failed");
848 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1701);
851 self
->attrs
[COLOR_nit__parser_nodes__AGgMethid___n_gg
].val
= var_n_gg
; /* _n_gg on <self:AGgMethid> */
852 if (var_n_gg
== NULL
) {
853 PRINT_ERROR("Runtime error: %s", "Receiver is null");
854 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1702);
857 { /* Inline parser_nodes#ANode#parent= (var_n_gg,self) on <var_n_gg:nullable TGg> */
858 if (unlikely(var_n_gg
== NULL
)) {
859 PRINT_ERROR("Runtime error: %s", "Receiver is null");
860 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
863 var_n_gg
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_gg:nullable TGg> */
869 /* method parser_prod#AGgMethid#replace_child for (self: AGgMethid, ANode, nullable ANode) */
870 void nit__parser_prod___AGgMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
871 val
* var_old_child
/* var old_child: ANode */;
872 val
* var_new_child
/* var new_child: nullable ANode */;
873 val
* var
/* : TGg */;
874 short int var1
/* : Bool */;
875 val
* var_other
/* var other: nullable Object */;
876 short int var3
/* : Bool */;
877 short int var5
/* : Bool */;
878 short int var6
/* : Bool */;
881 const char* var_class_name
;
884 var
= self
->attrs
[COLOR_nit__parser_nodes__AGgMethid___n_gg
].val
; /* _n_gg on <self:AGgMethid> */
885 if (unlikely(var
== NULL
)) {
886 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_gg");
887 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1707);
891 { /* Inline kernel#Object#== (var,var_old_child) on <var:TGg> */
892 var_other
= var_old_child
;
894 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TGg> */
895 var5
= var
== var_other
;
907 /* <var_new_child:nullable ANode> isa TGg */
908 cltype
= type_nit__TGg
.color
;
909 idtype
= type_nit__TGg
.id
;
910 if(var_new_child
== NULL
) {
913 if(cltype
>= var_new_child
->type
->table_size
) {
916 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
919 if (unlikely(!var6
)) {
920 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
921 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGg", var_class_name
);
922 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1708);
926 nit__parser_prod___AGgMethid___n_gg_61d(self
, var_new_child
); /* Direct call parser_prod#AGgMethid#n_gg= on <self:AGgMethid>*/
933 /* method parser_prod#AGgMethid#n_gg= for (self: AGgMethid, TGg) */
934 void nit__parser_prod___AGgMethid___n_gg_61d(val
* self
, val
* p0
) {
935 val
* var_node
/* var node: TGg */;
937 self
->attrs
[COLOR_nit__parser_nodes__AGgMethid___n_gg
].val
= var_node
; /* _n_gg on <self:AGgMethid> */
939 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TGg> */
940 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TGg> */
946 /* method parser_prod#AGgMethid#visit_all for (self: AGgMethid, Visitor) */
947 void nit__parser_prod___AGgMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
948 val
* var_v
/* var v: Visitor */;
949 val
* var
/* : TGg */;
951 var
= self
->attrs
[COLOR_nit__parser_nodes__AGgMethid___n_gg
].val
; /* _n_gg on <self:AGgMethid> */
952 if (unlikely(var
== NULL
)) {
953 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_gg");
954 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1722);
958 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
962 /* method parser_prod#ABraMethid#init_abramethid for (self: ABraMethid, nullable TObra, nullable TCbra) */
963 void nit__parser_prod___ABraMethid___init_abramethid(val
* self
, val
* p0
, val
* p1
) {
964 val
* var_n_obra
/* var n_obra: nullable TObra */;
965 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
968 if (unlikely(var_n_obra
== NULL
)) {
969 PRINT_ERROR("Runtime error: %s", "Cast failed");
970 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1731);
973 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraMethid> */
974 if (var_n_obra
== NULL
) {
975 PRINT_ERROR("Runtime error: %s", "Receiver is null");
976 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1732);
979 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
980 if (unlikely(var_n_obra
== NULL
)) {
981 PRINT_ERROR("Runtime error: %s", "Receiver is null");
982 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
985 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
989 if (unlikely(var_n_cbra
== NULL
)) {
990 PRINT_ERROR("Runtime error: %s", "Cast failed");
991 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1733);
994 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraMethid> */
995 if (var_n_cbra
== NULL
) {
996 PRINT_ERROR("Runtime error: %s", "Receiver is null");
997 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1734);
1000 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
1001 if (unlikely(var_n_cbra
== NULL
)) {
1002 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1003 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1006 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
1012 /* method parser_prod#ABraMethid#replace_child for (self: ABraMethid, ANode, nullable ANode) */
1013 void nit__parser_prod___ABraMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1014 val
* var_old_child
/* var old_child: ANode */;
1015 val
* var_new_child
/* var new_child: nullable ANode */;
1016 val
* var
/* : TObra */;
1017 short int var1
/* : Bool */;
1018 val
* var_other
/* var other: nullable Object */;
1019 short int var3
/* : Bool */;
1020 short int var5
/* : Bool */;
1021 short int var6
/* : Bool */;
1024 const char* var_class_name
;
1025 val
* var7
/* : TCbra */;
1026 short int var8
/* : Bool */;
1027 short int var10
/* : Bool */;
1028 short int var12
/* : Bool */;
1029 short int var13
/* : Bool */;
1032 const char* var_class_name16
;
1035 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
1036 if (unlikely(var
== NULL
)) {
1037 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
1038 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1739);
1042 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
1043 var_other
= var_old_child
;
1045 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
1046 var5
= var
== var_other
;
1058 /* <var_new_child:nullable ANode> isa TObra */
1059 cltype
= type_nit__TObra
.color
;
1060 idtype
= type_nit__TObra
.id
;
1061 if(var_new_child
== NULL
) {
1064 if(cltype
>= var_new_child
->type
->table_size
) {
1067 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1070 if (unlikely(!var6
)) {
1071 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1072 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
1073 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1740);
1077 nit__parser_prod___ABraMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_obra= on <self:ABraMethid>*/
1082 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
1083 if (unlikely(var7
== NULL
)) {
1084 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
1085 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1743);
1089 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
1090 var_other
= var_old_child
;
1092 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
1093 var12
= var7
== var_other
;
1096 RET_LABEL11
:(void)0;
1105 /* <var_new_child:nullable ANode> isa TCbra */
1106 cltype14
= type_nit__TCbra
.color
;
1107 idtype15
= type_nit__TCbra
.id
;
1108 if(var_new_child
== NULL
) {
1111 if(cltype14
>= var_new_child
->type
->table_size
) {
1114 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1117 if (unlikely(!var13
)) {
1118 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1119 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
1120 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1744);
1124 nit__parser_prod___ABraMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_cbra= on <self:ABraMethid>*/
1131 /* method parser_prod#ABraMethid#n_obra= for (self: ABraMethid, TObra) */
1132 void nit__parser_prod___ABraMethid___n_obra_61d(val
* self
, val
* p0
) {
1133 val
* var_node
/* var node: TObra */;
1135 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraMethid> */
1137 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
1138 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
1144 /* method parser_prod#ABraMethid#n_cbra= for (self: ABraMethid, TCbra) */
1145 void nit__parser_prod___ABraMethid___n_cbra_61d(val
* self
, val
* p0
) {
1146 val
* var_node
/* var node: TCbra */;
1148 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraMethid> */
1150 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
1151 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
1157 /* method parser_prod#ABraMethid#visit_all for (self: ABraMethid, Visitor) */
1158 void nit__parser_prod___ABraMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1159 val
* var_v
/* var v: Visitor */;
1160 val
* var
/* : TObra */;
1161 val
* var1
/* : TCbra */;
1163 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
1164 if (unlikely(var
== NULL
)) {
1165 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
1166 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1763);
1170 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1172 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
1173 if (unlikely(var1
== NULL
)) {
1174 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
1175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1764);
1179 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1183 /* method parser_prod#AStarshipMethid#init_astarshipmethid for (self: AStarshipMethid, nullable TStarship) */
1184 void nit__parser_prod___AStarshipMethid___init_astarshipmethid(val
* self
, val
* p0
) {
1185 val
* var_n_starship
/* var n_starship: nullable TStarship */;
1186 var_n_starship
= p0
;
1187 if (unlikely(var_n_starship
== NULL
)) {
1188 PRINT_ERROR("Runtime error: %s", "Cast failed");
1189 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1772);
1192 self
->attrs
[COLOR_nit__parser_nodes__AStarshipMethid___n_starship
].val
= var_n_starship
; /* _n_starship on <self:AStarshipMethid> */
1193 if (var_n_starship
== NULL
) {
1194 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1195 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1773);
1198 { /* Inline parser_nodes#ANode#parent= (var_n_starship,self) on <var_n_starship:nullable TStarship> */
1199 if (unlikely(var_n_starship
== NULL
)) {
1200 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1201 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1204 var_n_starship
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_starship:nullable TStarship> */
1210 /* method parser_prod#AStarshipMethid#replace_child for (self: AStarshipMethid, ANode, nullable ANode) */
1211 void nit__parser_prod___AStarshipMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1212 val
* var_old_child
/* var old_child: ANode */;
1213 val
* var_new_child
/* var new_child: nullable ANode */;
1214 val
* var
/* : TStarship */;
1215 short int var1
/* : Bool */;
1216 val
* var_other
/* var other: nullable Object */;
1217 short int var3
/* : Bool */;
1218 short int var5
/* : Bool */;
1219 short int var6
/* : Bool */;
1222 const char* var_class_name
;
1225 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarshipMethid___n_starship
].val
; /* _n_starship on <self:AStarshipMethid> */
1226 if (unlikely(var
== NULL
)) {
1227 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_starship");
1228 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1778);
1232 { /* Inline kernel#Object#== (var,var_old_child) on <var:TStarship> */
1233 var_other
= var_old_child
;
1235 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TStarship> */
1236 var5
= var
== var_other
;
1248 /* <var_new_child:nullable ANode> isa TStarship */
1249 cltype
= type_nit__TStarship
.color
;
1250 idtype
= type_nit__TStarship
.id
;
1251 if(var_new_child
== NULL
) {
1254 if(cltype
>= var_new_child
->type
->table_size
) {
1257 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1260 if (unlikely(!var6
)) {
1261 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1262 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarship", var_class_name
);
1263 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1779);
1267 nit__parser_prod___AStarshipMethid___n_starship_61d(self
, var_new_child
); /* Direct call parser_prod#AStarshipMethid#n_starship= on <self:AStarshipMethid>*/
1274 /* method parser_prod#AStarshipMethid#n_starship= for (self: AStarshipMethid, TStarship) */
1275 void nit__parser_prod___AStarshipMethid___n_starship_61d(val
* self
, val
* p0
) {
1276 val
* var_node
/* var node: TStarship */;
1278 self
->attrs
[COLOR_nit__parser_nodes__AStarshipMethid___n_starship
].val
= var_node
; /* _n_starship on <self:AStarshipMethid> */
1280 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TStarship> */
1281 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TStarship> */
1287 /* method parser_prod#AStarshipMethid#visit_all for (self: AStarshipMethid, Visitor) */
1288 void nit__parser_prod___AStarshipMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1289 val
* var_v
/* var v: Visitor */;
1290 val
* var
/* : TStarship */;
1292 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarshipMethid___n_starship
].val
; /* _n_starship on <self:AStarshipMethid> */
1293 if (unlikely(var
== NULL
)) {
1294 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_starship");
1295 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1793);
1299 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1303 /* method parser_prod#AAssignMethid#init_aassignmethid for (self: AAssignMethid, nullable TId, nullable TAssign) */
1304 void nit__parser_prod___AAssignMethid___init_aassignmethid(val
* self
, val
* p0
, val
* p1
) {
1305 val
* var_n_id
/* var n_id: nullable TId */;
1306 val
* var_n_assign
/* var n_assign: nullable TAssign */;
1309 if (unlikely(var_n_id
== NULL
)) {
1310 PRINT_ERROR("Runtime error: %s", "Cast failed");
1311 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1802);
1314 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AAssignMethid> */
1315 if (var_n_id
== NULL
) {
1316 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1317 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1803);
1320 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
1321 if (unlikely(var_n_id
== NULL
)) {
1322 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1323 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1326 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
1330 if (unlikely(var_n_assign
== NULL
)) {
1331 PRINT_ERROR("Runtime error: %s", "Cast failed");
1332 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1804);
1335 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAssignMethid> */
1336 if (var_n_assign
== NULL
) {
1337 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1338 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1805);
1341 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
1342 if (unlikely(var_n_assign
== NULL
)) {
1343 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1344 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1347 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
1353 /* method parser_prod#AAssignMethid#replace_child for (self: AAssignMethid, ANode, nullable ANode) */
1354 void nit__parser_prod___AAssignMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1355 val
* var_old_child
/* var old_child: ANode */;
1356 val
* var_new_child
/* var new_child: nullable ANode */;
1357 val
* var
/* : TId */;
1358 short int var1
/* : Bool */;
1359 val
* var_other
/* var other: nullable Object */;
1360 short int var3
/* : Bool */;
1361 short int var5
/* : Bool */;
1362 short int var6
/* : Bool */;
1365 const char* var_class_name
;
1366 val
* var7
/* : TAssign */;
1367 short int var8
/* : Bool */;
1368 short int var10
/* : Bool */;
1369 short int var12
/* : Bool */;
1370 short int var13
/* : Bool */;
1373 const char* var_class_name16
;
1376 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
1377 if (unlikely(var
== NULL
)) {
1378 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1379 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1810);
1383 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
1384 var_other
= var_old_child
;
1386 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
1387 var5
= var
== var_other
;
1399 /* <var_new_child:nullable ANode> isa TId */
1400 cltype
= type_nit__TId
.color
;
1401 idtype
= type_nit__TId
.id
;
1402 if(var_new_child
== NULL
) {
1405 if(cltype
>= var_new_child
->type
->table_size
) {
1408 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1411 if (unlikely(!var6
)) {
1412 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1413 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
1414 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1811);
1418 nit__parser_prod___AAssignMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_id= on <self:AAssignMethid>*/
1423 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
1424 if (unlikely(var7
== NULL
)) {
1425 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1426 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1814);
1430 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
1431 var_other
= var_old_child
;
1433 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
1434 var12
= var7
== var_other
;
1437 RET_LABEL11
:(void)0;
1446 /* <var_new_child:nullable ANode> isa TAssign */
1447 cltype14
= type_nit__TAssign
.color
;
1448 idtype15
= type_nit__TAssign
.id
;
1449 if(var_new_child
== NULL
) {
1452 if(cltype14
>= var_new_child
->type
->table_size
) {
1455 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1458 if (unlikely(!var13
)) {
1459 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1460 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
1461 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1815);
1465 nit__parser_prod___AAssignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_assign= on <self:AAssignMethid>*/
1472 /* method parser_prod#AAssignMethid#n_id= for (self: AAssignMethid, TId) */
1473 void nit__parser_prod___AAssignMethid___n_id_61d(val
* self
, val
* p0
) {
1474 val
* var_node
/* var node: TId */;
1476 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
= var_node
; /* _n_id on <self:AAssignMethid> */
1478 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
1479 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
1485 /* method parser_prod#AAssignMethid#n_assign= for (self: AAssignMethid, TAssign) */
1486 void nit__parser_prod___AAssignMethid___n_assign_61d(val
* self
, val
* p0
) {
1487 val
* var_node
/* var node: TAssign */;
1489 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:AAssignMethid> */
1491 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
1492 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
1498 /* method parser_prod#AAssignMethid#visit_all for (self: AAssignMethid, Visitor) */
1499 void nit__parser_prod___AAssignMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1500 val
* var_v
/* var v: Visitor */;
1501 val
* var
/* : TId */;
1502 val
* var1
/* : TAssign */;
1504 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
1505 if (unlikely(var
== NULL
)) {
1506 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1507 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1834);
1511 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1513 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
1514 if (unlikely(var1
== NULL
)) {
1515 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1516 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1835);
1520 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1524 /* method parser_prod#ABraassignMethid#init_abraassignmethid for (self: ABraassignMethid, nullable TObra, nullable TCbra, nullable TAssign) */
1525 void nit__parser_prod___ABraassignMethid___init_abraassignmethid(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1526 val
* var_n_obra
/* var n_obra: nullable TObra */;
1527 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
1528 val
* var_n_assign
/* var n_assign: nullable TAssign */;
1532 if (unlikely(var_n_obra
== NULL
)) {
1533 PRINT_ERROR("Runtime error: %s", "Cast failed");
1534 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1845);
1537 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraassignMethid> */
1538 if (var_n_obra
== NULL
) {
1539 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1540 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1846);
1543 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
1544 if (unlikely(var_n_obra
== NULL
)) {
1545 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1546 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1549 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
1553 if (unlikely(var_n_cbra
== NULL
)) {
1554 PRINT_ERROR("Runtime error: %s", "Cast failed");
1555 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1847);
1558 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraassignMethid> */
1559 if (var_n_cbra
== NULL
) {
1560 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1561 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1848);
1564 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
1565 if (unlikely(var_n_cbra
== NULL
)) {
1566 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1567 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1570 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
1574 if (unlikely(var_n_assign
== NULL
)) {
1575 PRINT_ERROR("Runtime error: %s", "Cast failed");
1576 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1849);
1579 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraassignMethid> */
1580 if (var_n_assign
== NULL
) {
1581 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1582 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1850);
1585 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
1586 if (unlikely(var_n_assign
== NULL
)) {
1587 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1588 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1591 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
1597 /* method parser_prod#ABraassignMethid#replace_child for (self: ABraassignMethid, ANode, nullable ANode) */
1598 void nit__parser_prod___ABraassignMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1599 val
* var_old_child
/* var old_child: ANode */;
1600 val
* var_new_child
/* var new_child: nullable ANode */;
1601 val
* var
/* : TObra */;
1602 short int var1
/* : Bool */;
1603 val
* var_other
/* var other: nullable Object */;
1604 short int var3
/* : Bool */;
1605 short int var5
/* : Bool */;
1606 short int var6
/* : Bool */;
1609 const char* var_class_name
;
1610 val
* var7
/* : TCbra */;
1611 short int var8
/* : Bool */;
1612 short int var10
/* : Bool */;
1613 short int var12
/* : Bool */;
1614 short int var13
/* : Bool */;
1617 const char* var_class_name16
;
1618 val
* var17
/* : TAssign */;
1619 short int var18
/* : Bool */;
1620 short int var20
/* : Bool */;
1621 short int var22
/* : Bool */;
1622 short int var23
/* : Bool */;
1625 const char* var_class_name26
;
1628 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
1629 if (unlikely(var
== NULL
)) {
1630 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
1631 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1855);
1635 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
1636 var_other
= var_old_child
;
1638 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
1639 var5
= var
== var_other
;
1651 /* <var_new_child:nullable ANode> isa TObra */
1652 cltype
= type_nit__TObra
.color
;
1653 idtype
= type_nit__TObra
.id
;
1654 if(var_new_child
== NULL
) {
1657 if(cltype
>= var_new_child
->type
->table_size
) {
1660 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1663 if (unlikely(!var6
)) {
1664 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1665 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
1666 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1856);
1670 nit__parser_prod___ABraassignMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_obra= on <self:ABraassignMethid>*/
1675 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
1676 if (unlikely(var7
== NULL
)) {
1677 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
1678 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1859);
1682 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
1683 var_other
= var_old_child
;
1685 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
1686 var12
= var7
== var_other
;
1689 RET_LABEL11
:(void)0;
1698 /* <var_new_child:nullable ANode> isa TCbra */
1699 cltype14
= type_nit__TCbra
.color
;
1700 idtype15
= type_nit__TCbra
.id
;
1701 if(var_new_child
== NULL
) {
1704 if(cltype14
>= var_new_child
->type
->table_size
) {
1707 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1710 if (unlikely(!var13
)) {
1711 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1712 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
1713 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1860);
1717 nit__parser_prod___ABraassignMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_cbra= on <self:ABraassignMethid>*/
1722 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
1723 if (unlikely(var17
== NULL
)) {
1724 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1725 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1863);
1729 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
1730 var_other
= var_old_child
;
1732 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
1733 var22
= var17
== var_other
;
1736 RET_LABEL21
:(void)0;
1741 RET_LABEL19
:(void)0;
1745 /* <var_new_child:nullable ANode> isa TAssign */
1746 cltype24
= type_nit__TAssign
.color
;
1747 idtype25
= type_nit__TAssign
.id
;
1748 if(var_new_child
== NULL
) {
1751 if(cltype24
>= var_new_child
->type
->table_size
) {
1754 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1757 if (unlikely(!var23
)) {
1758 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1759 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
1760 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1864);
1764 nit__parser_prod___ABraassignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_assign= on <self:ABraassignMethid>*/
1771 /* method parser_prod#ABraassignMethid#n_obra= for (self: ABraassignMethid, TObra) */
1772 void nit__parser_prod___ABraassignMethid___n_obra_61d(val
* self
, val
* p0
) {
1773 val
* var_node
/* var node: TObra */;
1775 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraassignMethid> */
1777 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
1778 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
1784 /* method parser_prod#ABraassignMethid#n_cbra= for (self: ABraassignMethid, TCbra) */
1785 void nit__parser_prod___ABraassignMethid___n_cbra_61d(val
* self
, val
* p0
) {
1786 val
* var_node
/* var node: TCbra */;
1788 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraassignMethid> */
1790 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
1791 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
1797 /* method parser_prod#ABraassignMethid#n_assign= for (self: ABraassignMethid, TAssign) */
1798 void nit__parser_prod___ABraassignMethid___n_assign_61d(val
* self
, val
* p0
) {
1799 val
* var_node
/* var node: TAssign */;
1801 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:ABraassignMethid> */
1803 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
1804 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
1810 /* method parser_prod#ABraassignMethid#visit_all for (self: ABraassignMethid, Visitor) */
1811 void nit__parser_prod___ABraassignMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1812 val
* var_v
/* var v: Visitor */;
1813 val
* var
/* : TObra */;
1814 val
* var1
/* : TCbra */;
1815 val
* var2
/* : TAssign */;
1817 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
1818 if (unlikely(var
== NULL
)) {
1819 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
1820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1888);
1824 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1826 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
1827 if (unlikely(var1
== NULL
)) {
1828 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
1829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1889);
1833 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1835 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
1836 if (unlikely(var2
== NULL
)) {
1837 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1838 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1890);
1842 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1846 /* method parser_prod#ASignature#init_asignature for (self: ASignature, nullable TOpar, Collection[Object], nullable TCpar, nullable AType) */
1847 void nit__parser_prod___ASignature___init_asignature(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1848 val
* var_n_opar
/* var n_opar: nullable TOpar */;
1849 val
* var_n_params
/* var n_params: Collection[Object] */;
1850 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
1851 val
* var_n_type
/* var n_type: nullable AType */;
1852 val
* var
/* : null */;
1853 short int var1
/* : Bool */;
1854 short int var2
/* : Bool */;
1855 val
* var_other
/* var other: nullable Object */;
1856 short int var4
/* : Bool */;
1857 short int var5
/* : Bool */;
1858 val
* var7
/* : ANodes[AParam] */;
1859 val
* var9
/* : ANodes[AParam] */;
1860 val
* var10
/* : null */;
1861 short int var11
/* : Bool */;
1862 short int var12
/* : Bool */;
1863 short int var14
/* : Bool */;
1864 short int var15
/* : Bool */;
1865 val
* var17
/* : null */;
1866 short int var18
/* : Bool */;
1867 short int var19
/* : Bool */;
1868 short int var21
/* : Bool */;
1869 short int var22
/* : Bool */;
1874 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
= var_n_opar
; /* _n_opar on <self:ASignature> */
1876 if (var_n_opar
== NULL
) {
1877 var1
= 0; /* is null */
1879 var1
= 1; /* arg is null and recv is not */
1882 { /* Inline kernel#Object#!= (var_n_opar,var) on <var_n_opar:nullable TOpar> */
1885 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_opar
, var_other
) /* == on <var_n_opar:nullable TOpar(TOpar)>*/;
1896 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
1897 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
1904 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
1905 var9
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
1906 if (unlikely(var9
== NULL
)) {
1907 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
1908 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1506);
1916 nit___nit__ANodes___unsafe_add_all(var7
, var_n_params
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[AParam]>*/
1918 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:ASignature> */
1920 if (var_n_cpar
== NULL
) {
1921 var11
= 0; /* is null */
1923 var11
= 1; /* arg is null and recv is not */
1926 { /* Inline kernel#Object#!= (var_n_cpar,var10) on <var_n_cpar:nullable TCpar> */
1929 var14
= ((short int (*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
) /* == on <var_n_cpar:nullable TCpar(TCpar)>*/;
1934 RET_LABEL13
:(void)0;
1940 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
1941 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
1942 RET_LABEL16
:(void)0;
1947 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
= var_n_type
; /* _n_type on <self:ASignature> */
1949 if (var_n_type
== NULL
) {
1950 var18
= 0; /* is null */
1952 var18
= 1; /* arg is null and recv is not */
1955 { /* Inline kernel#Object#!= (var_n_type,var17) on <var_n_type:nullable AType> */
1958 var21
= ((short int (*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
1963 RET_LABEL20
:(void)0;
1969 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
1970 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
1971 RET_LABEL23
:(void)0;
1978 /* method parser_prod#ASignature#replace_child for (self: ASignature, ANode, nullable ANode) */
1979 void nit__parser_prod___ASignature___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1980 val
* var_old_child
/* var old_child: ANode */;
1981 val
* var_new_child
/* var new_child: nullable ANode */;
1982 val
* var
/* : nullable TOpar */;
1983 short int var1
/* : Bool */;
1984 short int var2
/* : Bool */;
1985 val
* var_other
/* var other: nullable Object */;
1986 short int var4
/* : Bool */;
1987 short int var6
/* : Bool */;
1988 short int var7
/* : Bool */;
1991 const char* var_class_name
;
1992 val
* var8
/* : ANodes[AParam] */;
1993 val
* var10
/* : ANodes[AParam] */;
1994 short int var11
/* : Bool */;
1995 val
* var12
/* : nullable TCpar */;
1996 short int var13
/* : Bool */;
1997 short int var14
/* : Bool */;
1998 short int var16
/* : Bool */;
1999 short int var18
/* : Bool */;
2000 short int var19
/* : Bool */;
2003 const char* var_class_name22
;
2004 val
* var23
/* : nullable AType */;
2005 short int var24
/* : Bool */;
2006 short int var25
/* : Bool */;
2007 short int var27
/* : Bool */;
2008 short int var29
/* : Bool */;
2009 short int var30
/* : Bool */;
2012 const char* var_class_name33
;
2015 var
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
2017 var1
= 0; /* <var_old_child:ANode> cannot be null */
2019 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TOpar> */
2020 var_other
= var_old_child
;
2022 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TOpar(TOpar)> */
2023 var6
= var
== var_other
;
2036 /* <var_new_child:nullable ANode> isa nullable TOpar */
2037 cltype
= type_nullable__nit__TOpar
.color
;
2038 idtype
= type_nullable__nit__TOpar
.id
;
2039 if(var_new_child
== NULL
) {
2042 if(cltype
>= var_new_child
->type
->table_size
) {
2045 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2048 if (unlikely(!var7
)) {
2049 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2050 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name
);
2051 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1913);
2055 nit__parser_prod___ASignature___n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_opar= on <self:ASignature>*/
2061 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
2062 var10
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
2063 if (unlikely(var10
== NULL
)) {
2064 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
2065 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1506);
2073 var11
= nit___nit__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
2079 var12
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
2080 if (var12
== NULL
) {
2081 var13
= 0; /* <var_old_child:ANode> cannot be null */
2083 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:nullable TCpar> */
2084 var_other
= var_old_child
;
2086 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:nullable TCpar(TCpar)> */
2087 var18
= var12
== var_other
;
2090 RET_LABEL17
:(void)0;
2095 RET_LABEL15
:(void)0;
2100 /* <var_new_child:nullable ANode> isa nullable TCpar */
2101 cltype20
= type_nullable__nit__TCpar
.color
;
2102 idtype21
= type_nullable__nit__TCpar
.id
;
2103 if(var_new_child
== NULL
) {
2106 if(cltype20
>= var_new_child
->type
->table_size
) {
2109 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
2112 if (unlikely(!var19
)) {
2113 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2114 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name22
);
2115 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1918);
2119 nit__parser_prod___ASignature___n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_cpar= on <self:ASignature>*/
2124 var23
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
2125 if (var23
== NULL
) {
2126 var24
= 0; /* <var_old_child:ANode> cannot be null */
2128 { /* Inline kernel#Object#== (var23,var_old_child) on <var23:nullable AType> */
2129 var_other
= var_old_child
;
2131 { /* Inline kernel#Object#is_same_instance (var23,var_other) on <var23:nullable AType(AType)> */
2132 var29
= var23
== var_other
;
2135 RET_LABEL28
:(void)0;
2140 RET_LABEL26
:(void)0;
2145 /* <var_new_child:nullable ANode> isa nullable AType */
2146 cltype31
= type_nullable__nit__AType
.color
;
2147 idtype32
= type_nullable__nit__AType
.id
;
2148 if(var_new_child
== NULL
) {
2151 if(cltype31
>= var_new_child
->type
->table_size
) {
2154 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
2157 if (unlikely(!var30
)) {
2158 var_class_name33
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2159 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name33
);
2160 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1922);
2164 nit__parser_prod___ASignature___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_type= on <self:ASignature>*/
2171 /* method parser_prod#ASignature#n_opar= for (self: ASignature, nullable TOpar) */
2172 void nit__parser_prod___ASignature___n_opar_61d(val
* self
, val
* p0
) {
2173 val
* var_node
/* var node: nullable TOpar */;
2174 val
* var
/* : null */;
2175 short int var1
/* : Bool */;
2176 short int var2
/* : Bool */;
2177 val
* var_other
/* var other: nullable Object */;
2178 short int var4
/* : Bool */;
2179 short int var5
/* : Bool */;
2181 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
= var_node
; /* _n_opar on <self:ASignature> */
2183 if (var_node
== NULL
) {
2184 var1
= 0; /* is null */
2186 var1
= 1; /* arg is null and recv is not */
2189 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
2192 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
2203 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
2204 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
2212 /* method parser_prod#ASignature#n_cpar= for (self: ASignature, nullable TCpar) */
2213 void nit__parser_prod___ASignature___n_cpar_61d(val
* self
, val
* p0
) {
2214 val
* var_node
/* var node: nullable TCpar */;
2215 val
* var
/* : null */;
2216 short int var1
/* : Bool */;
2217 short int var2
/* : Bool */;
2218 val
* var_other
/* var other: nullable Object */;
2219 short int var4
/* : Bool */;
2220 short int var5
/* : Bool */;
2222 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
= var_node
; /* _n_cpar on <self:ASignature> */
2224 if (var_node
== NULL
) {
2225 var1
= 0; /* is null */
2227 var1
= 1; /* arg is null and recv is not */
2230 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
2233 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
2244 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
2245 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
2253 /* method parser_prod#ASignature#n_type= for (self: ASignature, nullable AType) */
2254 void nit__parser_prod___ASignature___n_type_61d(val
* self
, val
* p0
) {
2255 val
* var_node
/* var node: nullable AType */;
2256 val
* var
/* : null */;
2257 short int var1
/* : Bool */;
2258 short int var2
/* : Bool */;
2259 val
* var_other
/* var other: nullable Object */;
2260 short int var4
/* : Bool */;
2261 short int var5
/* : Bool */;
2263 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
= var_node
; /* _n_type on <self:ASignature> */
2265 if (var_node
== NULL
) {
2266 var1
= 0; /* is null */
2268 var1
= 1; /* arg is null and recv is not */
2271 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
2274 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
2285 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
2286 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
2294 /* method parser_prod#ASignature#visit_all for (self: ASignature, Visitor) */
2295 void nit__parser_prod___ASignature___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2296 val
* var_v
/* var v: Visitor */;
2297 val
* var
/* : nullable TOpar */;
2298 val
* var1
/* : ANodes[AParam] */;
2299 val
* var3
/* : ANodes[AParam] */;
2300 val
* var4
/* : nullable TCpar */;
2301 val
* var5
/* : nullable AType */;
2303 var
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
2305 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2308 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
2309 var3
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
2310 if (unlikely(var3
== NULL
)) {
2311 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
2312 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1506);
2320 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AParam]>*/
2322 var4
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
2324 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2326 var5
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
2328 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2332 /* method parser_prod#AParam#init_aparam for (self: AParam, nullable TId, nullable AType, nullable TDotdotdot, nullable AAnnotations) */
2333 void nit__parser_prod___AParam___init_aparam(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2334 val
* var_n_id
/* var n_id: nullable TId */;
2335 val
* var_n_type
/* var n_type: nullable AType */;
2336 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
2337 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2338 val
* var
/* : null */;
2339 short int var2
/* : Bool */;
2340 short int var3
/* : Bool */;
2341 val
* var_other
/* var other: nullable Object */;
2342 short int var5
/* : Bool */;
2343 short int var6
/* : Bool */;
2344 val
* var8
/* : null */;
2345 short int var9
/* : Bool */;
2346 short int var10
/* : Bool */;
2347 short int var12
/* : Bool */;
2348 short int var13
/* : Bool */;
2349 val
* var15
/* : null */;
2350 short int var16
/* : Bool */;
2351 short int var17
/* : Bool */;
2352 short int var19
/* : Bool */;
2353 short int var20
/* : Bool */;
2356 var_n_dotdotdot
= p2
;
2357 var_n_annotations
= p3
;
2358 if (unlikely(var_n_id
== NULL
)) {
2359 PRINT_ERROR("Runtime error: %s", "Cast failed");
2360 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1960);
2363 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
= var_n_id
; /* _n_id on <self:AParam> */
2364 if (var_n_id
== NULL
) {
2365 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2366 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1961);
2369 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
2370 if (unlikely(var_n_id
== NULL
)) {
2371 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2372 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2375 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
2379 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
= var_n_type
; /* _n_type on <self:AParam> */
2381 if (var_n_type
== NULL
) {
2382 var2
= 0; /* is null */
2384 var2
= 1; /* arg is null and recv is not */
2387 { /* Inline kernel#Object#!= (var_n_type,var) on <var_n_type:nullable AType> */
2390 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
2401 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
2402 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
2408 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AParam> */
2410 if (var_n_dotdotdot
== NULL
) {
2411 var9
= 0; /* is null */
2413 var9
= 1; /* arg is null and recv is not */
2416 { /* Inline kernel#Object#!= (var_n_dotdotdot,var8) on <var_n_dotdotdot:nullable TDotdotdot> */
2419 var12
= ((short int (*)(val
* self
, val
* p0
))(var_n_dotdotdot
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_dotdotdot
, var_other
) /* == on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)>*/;
2424 RET_LABEL11
:(void)0;
2430 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
2431 var_n_dotdotdot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
2432 RET_LABEL14
:(void)0;
2437 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParam> */
2439 if (var_n_annotations
== NULL
) {
2440 var16
= 0; /* is null */
2442 var16
= 1; /* arg is null and recv is not */
2445 { /* Inline kernel#Object#!= (var_n_annotations,var15) on <var_n_annotations:nullable AAnnotations> */
2448 var19
= ((short int (*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
2453 RET_LABEL18
:(void)0;
2459 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2460 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2461 RET_LABEL21
:(void)0;
2468 /* method parser_prod#AParam#replace_child for (self: AParam, ANode, nullable ANode) */
2469 void nit__parser_prod___AParam___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2470 val
* var_old_child
/* var old_child: ANode */;
2471 val
* var_new_child
/* var new_child: nullable ANode */;
2472 val
* var
/* : TId */;
2473 short int var1
/* : Bool */;
2474 val
* var_other
/* var other: nullable Object */;
2475 short int var3
/* : Bool */;
2476 short int var5
/* : Bool */;
2477 short int var6
/* : Bool */;
2480 const char* var_class_name
;
2481 val
* var7
/* : nullable AType */;
2482 short int var8
/* : Bool */;
2483 short int var9
/* : Bool */;
2484 short int var11
/* : Bool */;
2485 short int var13
/* : Bool */;
2486 short int var14
/* : Bool */;
2489 const char* var_class_name17
;
2490 val
* var18
/* : nullable TDotdotdot */;
2491 short int var19
/* : Bool */;
2492 short int var20
/* : Bool */;
2493 short int var22
/* : Bool */;
2494 short int var24
/* : Bool */;
2495 short int var25
/* : Bool */;
2498 const char* var_class_name28
;
2499 val
* var29
/* : nullable AAnnotations */;
2500 short int var30
/* : Bool */;
2501 short int var31
/* : Bool */;
2502 short int var33
/* : Bool */;
2503 short int var35
/* : Bool */;
2504 short int var36
/* : Bool */;
2507 const char* var_class_name39
;
2510 var
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
2511 if (unlikely(var
== NULL
)) {
2512 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2513 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1972);
2517 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
2518 var_other
= var_old_child
;
2520 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
2521 var5
= var
== var_other
;
2533 /* <var_new_child:nullable ANode> isa TId */
2534 cltype
= type_nit__TId
.color
;
2535 idtype
= type_nit__TId
.id
;
2536 if(var_new_child
== NULL
) {
2539 if(cltype
>= var_new_child
->type
->table_size
) {
2542 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2545 if (unlikely(!var6
)) {
2546 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2547 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
2548 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1973);
2552 nit__parser_prod___AParam___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_id= on <self:AParam>*/
2557 var7
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
2559 var8
= 0; /* <var_old_child:ANode> cannot be null */
2561 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AType> */
2562 var_other
= var_old_child
;
2564 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AType(AType)> */
2565 var13
= var7
== var_other
;
2568 RET_LABEL12
:(void)0;
2573 RET_LABEL10
:(void)0;
2578 /* <var_new_child:nullable ANode> isa nullable AType */
2579 cltype15
= type_nullable__nit__AType
.color
;
2580 idtype16
= type_nullable__nit__AType
.id
;
2581 if(var_new_child
== NULL
) {
2584 if(cltype15
>= var_new_child
->type
->table_size
) {
2587 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
2590 if (unlikely(!var14
)) {
2591 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2592 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17
);
2593 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1977);
2597 nit__parser_prod___AParam___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_type= on <self:AParam>*/
2602 var18
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
2603 if (var18
== NULL
) {
2604 var19
= 0; /* <var_old_child:ANode> cannot be null */
2606 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable TDotdotdot> */
2607 var_other
= var_old_child
;
2609 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable TDotdotdot(TDotdotdot)> */
2610 var24
= var18
== var_other
;
2613 RET_LABEL23
:(void)0;
2618 RET_LABEL21
:(void)0;
2623 /* <var_new_child:nullable ANode> isa nullable TDotdotdot */
2624 cltype26
= type_nullable__nit__TDotdotdot
.color
;
2625 idtype27
= type_nullable__nit__TDotdotdot
.id
;
2626 if(var_new_child
== NULL
) {
2629 if(cltype26
>= var_new_child
->type
->table_size
) {
2632 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
2635 if (unlikely(!var25
)) {
2636 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2637 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDotdotdot", var_class_name28
);
2638 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1981);
2642 nit__parser_prod___AParam___n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_dotdotdot= on <self:AParam>*/
2647 var29
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
2648 if (var29
== NULL
) {
2649 var30
= 0; /* <var_old_child:ANode> cannot be null */
2651 { /* Inline kernel#Object#== (var29,var_old_child) on <var29:nullable AAnnotations> */
2652 var_other
= var_old_child
;
2654 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:nullable AAnnotations(AAnnotations)> */
2655 var35
= var29
== var_other
;
2658 RET_LABEL34
:(void)0;
2663 RET_LABEL32
:(void)0;
2668 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2669 cltype37
= type_nullable__nit__AAnnotations
.color
;
2670 idtype38
= type_nullable__nit__AAnnotations
.id
;
2671 if(var_new_child
== NULL
) {
2674 if(cltype37
>= var_new_child
->type
->table_size
) {
2677 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
2680 if (unlikely(!var36
)) {
2681 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2682 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name39
);
2683 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1985);
2687 nit__parser_prod___AParam___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_annotations= on <self:AParam>*/
2694 /* method parser_prod#AParam#n_id= for (self: AParam, TId) */
2695 void nit__parser_prod___AParam___n_id_61d(val
* self
, val
* p0
) {
2696 val
* var_node
/* var node: TId */;
2698 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
= var_node
; /* _n_id on <self:AParam> */
2700 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
2701 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
2707 /* method parser_prod#AParam#n_type= for (self: AParam, nullable AType) */
2708 void nit__parser_prod___AParam___n_type_61d(val
* self
, val
* p0
) {
2709 val
* var_node
/* var node: nullable AType */;
2710 val
* var
/* : null */;
2711 short int var1
/* : Bool */;
2712 short int var2
/* : Bool */;
2713 val
* var_other
/* var other: nullable Object */;
2714 short int var4
/* : Bool */;
2715 short int var5
/* : Bool */;
2717 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
= var_node
; /* _n_type on <self:AParam> */
2719 if (var_node
== NULL
) {
2720 var1
= 0; /* is null */
2722 var1
= 1; /* arg is null and recv is not */
2725 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
2728 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
2739 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
2740 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
2748 /* method parser_prod#AParam#n_dotdotdot= for (self: AParam, nullable TDotdotdot) */
2749 void nit__parser_prod___AParam___n_dotdotdot_61d(val
* self
, val
* p0
) {
2750 val
* var_node
/* var node: nullable TDotdotdot */;
2751 val
* var
/* : null */;
2752 short int var1
/* : Bool */;
2753 short int var2
/* : Bool */;
2754 val
* var_other
/* var other: nullable Object */;
2755 short int var4
/* : Bool */;
2756 short int var5
/* : Bool */;
2758 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AParam> */
2760 if (var_node
== NULL
) {
2761 var1
= 0; /* is null */
2763 var1
= 1; /* arg is null and recv is not */
2766 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TDotdotdot> */
2769 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TDotdotdot(TDotdotdot)>*/;
2780 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDotdotdot(TDotdotdot)> */
2781 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDotdotdot(TDotdotdot)> */
2789 /* method parser_prod#AParam#n_annotations= for (self: AParam, nullable AAnnotations) */
2790 void nit__parser_prod___AParam___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
2791 val
* var_node
/* var node: nullable AAnnotations */;
2792 val
* var
/* : null */;
2793 short int var1
/* : Bool */;
2794 short int var2
/* : Bool */;
2795 val
* var_other
/* var other: nullable Object */;
2796 short int var4
/* : Bool */;
2797 short int var5
/* : Bool */;
2799 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParam> */
2801 if (var_node
== NULL
) {
2802 var1
= 0; /* is null */
2804 var1
= 1; /* arg is null and recv is not */
2807 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
2810 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
2821 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2822 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2830 /* method parser_prod#AParam#visit_all for (self: AParam, Visitor) */
2831 void nit__parser_prod___AParam___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2832 val
* var_v
/* var v: Visitor */;
2833 val
* var
/* : TId */;
2834 val
* var1
/* : nullable AType */;
2835 val
* var2
/* : nullable TDotdotdot */;
2836 val
* var3
/* : nullable AAnnotations */;
2838 var
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
2839 if (unlikely(var
== NULL
)) {
2840 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2841 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2014);
2845 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2847 var1
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
2849 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2851 var2
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
2853 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2855 var3
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
2857 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2861 /* method parser_prod#AType#init_atype for (self: AType, nullable TKwnullable, nullable TClassid, Collection[Object], nullable AAnnotations) */
2862 void nit__parser_prod___AType___init_atype(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2863 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
2864 val
* var_n_id
/* var n_id: nullable TClassid */;
2865 val
* var_n_types
/* var n_types: Collection[Object] */;
2866 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2867 val
* var
/* : null */;
2868 short int var1
/* : Bool */;
2869 short int var2
/* : Bool */;
2870 val
* var_other
/* var other: nullable Object */;
2871 short int var4
/* : Bool */;
2872 short int var5
/* : Bool */;
2873 val
* var8
/* : ANodes[AType] */;
2874 val
* var10
/* : ANodes[AType] */;
2875 val
* var11
/* : null */;
2876 short int var12
/* : Bool */;
2877 short int var13
/* : Bool */;
2878 short int var15
/* : Bool */;
2879 short int var16
/* : Bool */;
2880 var_n_kwnullable
= p0
;
2883 var_n_annotations
= p3
;
2884 self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AType> */
2886 if (var_n_kwnullable
== NULL
) {
2887 var1
= 0; /* is null */
2889 var1
= 1; /* arg is null and recv is not */
2892 { /* Inline kernel#Object#!= (var_n_kwnullable,var) on <var_n_kwnullable:nullable TKwnullable> */
2895 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwnullable
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwnullable
, var_other
) /* == on <var_n_kwnullable:nullable TKwnullable(TKwnullable)>*/;
2906 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
2907 var_n_kwnullable
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
2913 if (unlikely(var_n_id
== NULL
)) {
2914 PRINT_ERROR("Runtime error: %s", "Cast failed");
2915 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2030);
2918 self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
= var_n_id
; /* _n_id on <self:AType> */
2919 if (var_n_id
== NULL
) {
2920 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2921 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2031);
2924 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
2925 if (unlikely(var_n_id
== NULL
)) {
2926 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2927 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2930 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
2935 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
2936 var10
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
2937 if (unlikely(var10
== NULL
)) {
2938 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
2939 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1539);
2947 nit___nit__ANodes___unsafe_add_all(var8
, var_n_types
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var8:ANodes[AType]>*/
2949 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AType> */
2951 if (var_n_annotations
== NULL
) {
2952 var12
= 0; /* is null */
2954 var12
= 1; /* arg is null and recv is not */
2957 { /* Inline kernel#Object#!= (var_n_annotations,var11) on <var_n_annotations:nullable AAnnotations> */
2960 var15
= ((short int (*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
2965 RET_LABEL14
:(void)0;
2971 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2972 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2973 RET_LABEL17
:(void)0;
2980 /* method parser_prod#AType#replace_child for (self: AType, ANode, nullable ANode) */
2981 void nit__parser_prod___AType___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2982 val
* var_old_child
/* var old_child: ANode */;
2983 val
* var_new_child
/* var new_child: nullable ANode */;
2984 val
* var
/* : nullable TKwnullable */;
2985 short int var1
/* : Bool */;
2986 short int var2
/* : Bool */;
2987 val
* var_other
/* var other: nullable Object */;
2988 short int var4
/* : Bool */;
2989 short int var6
/* : Bool */;
2990 short int var7
/* : Bool */;
2993 const char* var_class_name
;
2994 val
* var8
/* : TClassid */;
2995 short int var9
/* : Bool */;
2996 short int var11
/* : Bool */;
2997 short int var13
/* : Bool */;
2998 short int var14
/* : Bool */;
3001 const char* var_class_name17
;
3002 val
* var18
/* : ANodes[AType] */;
3003 val
* var20
/* : ANodes[AType] */;
3004 short int var21
/* : Bool */;
3005 val
* var22
/* : nullable AAnnotations */;
3006 short int var23
/* : Bool */;
3007 short int var24
/* : Bool */;
3008 short int var26
/* : Bool */;
3009 short int var28
/* : Bool */;
3010 short int var29
/* : Bool */;
3013 const char* var_class_name32
;
3016 var
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
3018 var1
= 0; /* <var_old_child:ANode> cannot be null */
3020 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwnullable> */
3021 var_other
= var_old_child
;
3023 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwnullable(TKwnullable)> */
3024 var6
= var
== var_other
;
3037 /* <var_new_child:nullable ANode> isa nullable TKwnullable */
3038 cltype
= type_nullable__nit__TKwnullable
.color
;
3039 idtype
= type_nullable__nit__TKwnullable
.id
;
3040 if(var_new_child
== NULL
) {
3043 if(cltype
>= var_new_child
->type
->table_size
) {
3046 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3049 if (unlikely(!var7
)) {
3050 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3051 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnullable", var_class_name
);
3052 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2040);
3056 nit__parser_prod___AType___n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_kwnullable= on <self:AType>*/
3061 var8
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
; /* _n_id on <self:AType> */
3062 if (unlikely(var8
== NULL
)) {
3063 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3064 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2043);
3068 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TClassid> */
3069 var_other
= var_old_child
;
3071 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TClassid> */
3072 var13
= var8
== var_other
;
3075 RET_LABEL12
:(void)0;
3080 RET_LABEL10
:(void)0;
3084 /* <var_new_child:nullable ANode> isa TClassid */
3085 cltype15
= type_nit__TClassid
.color
;
3086 idtype16
= type_nit__TClassid
.id
;
3087 if(var_new_child
== NULL
) {
3090 if(cltype15
>= var_new_child
->type
->table_size
) {
3093 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
3096 if (unlikely(!var14
)) {
3097 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3098 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name17
);
3099 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2044);
3103 nit__parser_prod___AType___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_id= on <self:AType>*/
3109 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
3110 var20
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
3111 if (unlikely(var20
== NULL
)) {
3112 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
3113 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1539);
3117 RET_LABEL19
:(void)0;
3121 var21
= nit___nit__ANodes___replace_child(var18
, var_old_child
, var_new_child
);
3127 var22
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
3128 if (var22
== NULL
) {
3129 var23
= 0; /* <var_old_child:ANode> cannot be null */
3131 { /* Inline kernel#Object#== (var22,var_old_child) on <var22:nullable AAnnotations> */
3132 var_other
= var_old_child
;
3134 { /* Inline kernel#Object#is_same_instance (var22,var_other) on <var22:nullable AAnnotations(AAnnotations)> */
3135 var28
= var22
== var_other
;
3138 RET_LABEL27
:(void)0;
3143 RET_LABEL25
:(void)0;
3148 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3149 cltype30
= type_nullable__nit__AAnnotations
.color
;
3150 idtype31
= type_nullable__nit__AAnnotations
.id
;
3151 if(var_new_child
== NULL
) {
3154 if(cltype30
>= var_new_child
->type
->table_size
) {
3157 var29
= var_new_child
->type
->type_table
[cltype30
] == idtype31
;
3160 if (unlikely(!var29
)) {
3161 var_class_name32
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3162 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name32
);
3163 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2049);
3167 nit__parser_prod___AType___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_annotations= on <self:AType>*/
3174 /* method parser_prod#AType#n_kwnullable= for (self: AType, nullable TKwnullable) */
3175 void nit__parser_prod___AType___n_kwnullable_61d(val
* self
, val
* p0
) {
3176 val
* var_node
/* var node: nullable TKwnullable */;
3177 val
* var
/* : null */;
3178 short int var1
/* : Bool */;
3179 short int var2
/* : Bool */;
3180 val
* var_other
/* var other: nullable Object */;
3181 short int var4
/* : Bool */;
3182 short int var5
/* : Bool */;
3184 self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AType> */
3186 if (var_node
== NULL
) {
3187 var1
= 0; /* is null */
3189 var1
= 1; /* arg is null and recv is not */
3192 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwnullable> */
3195 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwnullable(TKwnullable)>*/;
3206 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnullable(TKwnullable)> */
3207 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnullable(TKwnullable)> */
3215 /* method parser_prod#AType#n_id= for (self: AType, TClassid) */
3216 void nit__parser_prod___AType___n_id_61d(val
* self
, val
* p0
) {
3217 val
* var_node
/* var node: TClassid */;
3219 self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
= var_node
; /* _n_id on <self:AType> */
3221 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
3222 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
3228 /* method parser_prod#AType#n_annotations= for (self: AType, nullable AAnnotations) */
3229 void nit__parser_prod___AType___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
3230 val
* var_node
/* var node: nullable AAnnotations */;
3231 val
* var
/* : null */;
3232 short int var1
/* : Bool */;
3233 short int var2
/* : Bool */;
3234 val
* var_other
/* var other: nullable Object */;
3235 short int var4
/* : Bool */;
3236 short int var5
/* : Bool */;
3238 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AType> */
3240 if (var_node
== NULL
) {
3241 var1
= 0; /* is null */
3243 var1
= 1; /* arg is null and recv is not */
3246 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3249 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3260 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3261 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3269 /* method parser_prod#AType#visit_all for (self: AType, Visitor) */
3270 void nit__parser_prod___AType___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3271 val
* var_v
/* var v: Visitor */;
3272 val
* var
/* : nullable TKwnullable */;
3273 val
* var1
/* : TClassid */;
3274 val
* var2
/* : ANodes[AType] */;
3275 val
* var4
/* : ANodes[AType] */;
3276 val
* var5
/* : nullable AAnnotations */;
3278 var
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
3280 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3282 var1
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
; /* _n_id on <self:AType> */
3283 if (unlikely(var1
== NULL
)) {
3284 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3285 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2074);
3289 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3292 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
3293 var4
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
3294 if (unlikely(var4
== NULL
)) {
3295 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
3296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1539);
3304 nit___nit__ANodes___visit_all(var2
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var2:ANodes[AType]>*/
3306 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
3308 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3312 /* method parser_prod#ALabel#init_alabel for (self: ALabel, nullable TKwlabel, nullable TId) */
3313 void nit__parser_prod___ALabel___init_alabel(val
* self
, val
* p0
, val
* p1
) {
3314 val
* var_n_kwlabel
/* var n_kwlabel: nullable TKwlabel */;
3315 val
* var_n_id
/* var n_id: nullable TId */;
3316 val
* var
/* : null */;
3317 short int var2
/* : Bool */;
3318 short int var3
/* : Bool */;
3319 val
* var_other
/* var other: nullable Object */;
3320 short int var5
/* : Bool */;
3321 short int var6
/* : Bool */;
3324 if (unlikely(var_n_kwlabel
== NULL
)) {
3325 PRINT_ERROR("Runtime error: %s", "Cast failed");
3326 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2085);
3329 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
= var_n_kwlabel
; /* _n_kwlabel on <self:ALabel> */
3330 if (var_n_kwlabel
== NULL
) {
3331 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3332 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2086);
3335 { /* Inline parser_nodes#ANode#parent= (var_n_kwlabel,self) on <var_n_kwlabel:nullable TKwlabel> */
3336 if (unlikely(var_n_kwlabel
== NULL
)) {
3337 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3338 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3341 var_n_kwlabel
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwlabel:nullable TKwlabel> */
3345 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
= var_n_id
; /* _n_id on <self:ALabel> */
3347 if (var_n_id
== NULL
) {
3348 var2
= 0; /* is null */
3350 var2
= 1; /* arg is null and recv is not */
3353 { /* Inline kernel#Object#!= (var_n_id,var) on <var_n_id:nullable TId> */
3356 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_id
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_id
, var_other
) /* == on <var_n_id:nullable TId(TId)>*/;
3367 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId(TId)> */
3368 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId(TId)> */
3376 /* method parser_prod#ALabel#replace_child for (self: ALabel, ANode, nullable ANode) */
3377 void nit__parser_prod___ALabel___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3378 val
* var_old_child
/* var old_child: ANode */;
3379 val
* var_new_child
/* var new_child: nullable ANode */;
3380 val
* var
/* : TKwlabel */;
3381 short int var1
/* : Bool */;
3382 val
* var_other
/* var other: nullable Object */;
3383 short int var3
/* : Bool */;
3384 short int var5
/* : Bool */;
3385 short int var6
/* : Bool */;
3388 const char* var_class_name
;
3389 val
* var7
/* : nullable TId */;
3390 short int var8
/* : Bool */;
3391 short int var9
/* : Bool */;
3392 short int var11
/* : Bool */;
3393 short int var13
/* : Bool */;
3394 short int var14
/* : Bool */;
3397 const char* var_class_name17
;
3400 var
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
3401 if (unlikely(var
== NULL
)) {
3402 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
3403 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2093);
3407 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwlabel> */
3408 var_other
= var_old_child
;
3410 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwlabel> */
3411 var5
= var
== var_other
;
3423 /* <var_new_child:nullable ANode> isa TKwlabel */
3424 cltype
= type_nit__TKwlabel
.color
;
3425 idtype
= type_nit__TKwlabel
.id
;
3426 if(var_new_child
== NULL
) {
3429 if(cltype
>= var_new_child
->type
->table_size
) {
3432 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3435 if (unlikely(!var6
)) {
3436 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3437 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwlabel", var_class_name
);
3438 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2094);
3442 nit__parser_prod___ALabel___n_kwlabel_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_kwlabel= on <self:ALabel>*/
3447 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
3449 var8
= 0; /* <var_old_child:ANode> cannot be null */
3451 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TId> */
3452 var_other
= var_old_child
;
3454 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TId(TId)> */
3455 var13
= var7
== var_other
;
3458 RET_LABEL12
:(void)0;
3463 RET_LABEL10
:(void)0;
3468 /* <var_new_child:nullable ANode> isa nullable TId */
3469 cltype15
= type_nullable__nit__TId
.color
;
3470 idtype16
= type_nullable__nit__TId
.id
;
3471 if(var_new_child
== NULL
) {
3474 if(cltype15
>= var_new_child
->type
->table_size
) {
3477 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
3480 if (unlikely(!var14
)) {
3481 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3482 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17
);
3483 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2098);
3487 nit__parser_prod___ALabel___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_id= on <self:ALabel>*/
3494 /* method parser_prod#ALabel#n_kwlabel= for (self: ALabel, TKwlabel) */
3495 void nit__parser_prod___ALabel___n_kwlabel_61d(val
* self
, val
* p0
) {
3496 val
* var_node
/* var node: TKwlabel */;
3498 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
= var_node
; /* _n_kwlabel on <self:ALabel> */
3500 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwlabel> */
3501 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwlabel> */
3507 /* method parser_prod#ALabel#n_id= for (self: ALabel, nullable TId) */
3508 void nit__parser_prod___ALabel___n_id_61d(val
* self
, val
* p0
) {
3509 val
* var_node
/* var node: nullable TId */;
3510 val
* var
/* : null */;
3511 short int var1
/* : Bool */;
3512 short int var2
/* : Bool */;
3513 val
* var_other
/* var other: nullable Object */;
3514 short int var4
/* : Bool */;
3515 short int var5
/* : Bool */;
3517 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
= var_node
; /* _n_id on <self:ALabel> */
3519 if (var_node
== NULL
) {
3520 var1
= 0; /* is null */
3522 var1
= 1; /* arg is null and recv is not */
3525 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TId> */
3528 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TId(TId)>*/;
3539 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TId(TId)> */
3540 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TId(TId)> */
3548 /* method parser_prod#ALabel#visit_all for (self: ALabel, Visitor) */
3549 void nit__parser_prod___ALabel___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3550 val
* var_v
/* var v: Visitor */;
3551 val
* var
/* : TKwlabel */;
3552 val
* var1
/* : nullable TId */;
3554 var
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
3555 if (unlikely(var
== NULL
)) {
3556 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
3557 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2117);
3561 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3563 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
3565 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3569 /* method parser_prod#ABlockExpr#init_ablockexpr for (self: ABlockExpr, Collection[Object], nullable TKwend) */
3570 void nit__parser_prod___ABlockExpr___init_ablockexpr(val
* self
, val
* p0
, val
* p1
) {
3571 val
* var_n_expr
/* var n_expr: Collection[Object] */;
3572 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
3573 val
* var
/* : ANodes[AExpr] */;
3574 val
* var2
/* : ANodes[AExpr] */;
3575 val
* var3
/* : null */;
3576 short int var4
/* : Bool */;
3577 short int var5
/* : Bool */;
3578 val
* var_other
/* var other: nullable Object */;
3579 short int var7
/* : Bool */;
3580 short int var8
/* : Bool */;
3584 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
3585 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
3586 if (unlikely(var2
== NULL
)) {
3587 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3588 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1565);
3596 nit___nit__ANodes___unsafe_add_all(var
, var_n_expr
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
3598 self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ABlockExpr> */
3600 if (var_n_kwend
== NULL
) {
3601 var4
= 0; /* is null */
3603 var4
= 1; /* arg is null and recv is not */
3606 { /* Inline kernel#Object#!= (var_n_kwend,var3) on <var_n_kwend:nullable TKwend> */
3609 var7
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwend
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwend
, var_other
) /* == on <var_n_kwend:nullable TKwend(TKwend)>*/;
3620 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend(TKwend)> */
3621 var_n_kwend
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend(TKwend)> */
3629 /* method parser_prod#ABlockExpr#replace_child for (self: ABlockExpr, ANode, nullable ANode) */
3630 void nit__parser_prod___ABlockExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3631 val
* var_old_child
/* var old_child: ANode */;
3632 val
* var_new_child
/* var new_child: nullable ANode */;
3633 val
* var
/* : ANodes[AExpr] */;
3634 val
* var2
/* : ANodes[AExpr] */;
3635 short int var3
/* : Bool */;
3636 val
* var4
/* : nullable TKwend */;
3637 short int var5
/* : Bool */;
3638 short int var6
/* : Bool */;
3639 val
* var_other
/* var other: nullable Object */;
3640 short int var8
/* : Bool */;
3641 short int var10
/* : Bool */;
3642 short int var11
/* : Bool */;
3645 const char* var_class_name
;
3649 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
3650 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
3651 if (unlikely(var2
== NULL
)) {
3652 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3653 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1565);
3661 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3667 var4
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
3669 var5
= 0; /* <var_old_child:ANode> cannot be null */
3671 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable TKwend> */
3672 var_other
= var_old_child
;
3674 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable TKwend(TKwend)> */
3675 var10
= var4
== var_other
;
3688 /* <var_new_child:nullable ANode> isa nullable TKwend */
3689 cltype
= type_nullable__nit__TKwend
.color
;
3690 idtype
= type_nullable__nit__TKwend
.id
;
3691 if(var_new_child
== NULL
) {
3694 if(cltype
>= var_new_child
->type
->table_size
) {
3697 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3700 if (unlikely(!var11
)) {
3701 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3702 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name
);
3703 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2136);
3707 nit__parser_prod___ABlockExpr___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ABlockExpr#n_kwend= on <self:ABlockExpr>*/
3714 /* method parser_prod#ABlockExpr#n_kwend= for (self: ABlockExpr, nullable TKwend) */
3715 void nit__parser_prod___ABlockExpr___n_kwend_61d(val
* self
, val
* p0
) {
3716 val
* var_node
/* var node: nullable TKwend */;
3717 val
* var
/* : null */;
3718 short int var1
/* : Bool */;
3719 short int var2
/* : Bool */;
3720 val
* var_other
/* var other: nullable Object */;
3721 short int var4
/* : Bool */;
3722 short int var5
/* : Bool */;
3724 self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
= var_node
; /* _n_kwend on <self:ABlockExpr> */
3726 if (var_node
== NULL
) {
3727 var1
= 0; /* is null */
3729 var1
= 1; /* arg is null and recv is not */
3732 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwend> */
3735 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwend(TKwend)>*/;
3746 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwend(TKwend)> */
3747 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwend(TKwend)> */
3755 /* method parser_prod#ABlockExpr#visit_all for (self: ABlockExpr, Visitor) */
3756 void nit__parser_prod___ABlockExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3757 val
* var_v
/* var v: Visitor */;
3758 val
* var
/* : ANodes[AExpr] */;
3759 val
* var2
/* : ANodes[AExpr] */;
3760 val
* var3
/* : nullable TKwend */;
3763 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
3764 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
3765 if (unlikely(var2
== NULL
)) {
3766 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3767 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1565);
3775 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
3777 var3
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
3779 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3783 /* method parser_prod#AVardeclExpr#init_avardeclexpr for (self: AVardeclExpr, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations) */
3784 void nit__parser_prod___AVardeclExpr___init_avardeclexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
3785 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
3786 val
* var_n_id
/* var n_id: nullable TId */;
3787 val
* var_n_type
/* var n_type: nullable AType */;
3788 val
* var_n_assign
/* var n_assign: nullable TAssign */;
3789 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3790 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3791 val
* var
/* : null */;
3792 short int var3
/* : Bool */;
3793 short int var4
/* : Bool */;
3794 val
* var_other
/* var other: nullable Object */;
3795 short int var6
/* : Bool */;
3796 short int var7
/* : Bool */;
3797 val
* var9
/* : null */;
3798 short int var10
/* : Bool */;
3799 short int var11
/* : Bool */;
3800 short int var13
/* : Bool */;
3801 short int var14
/* : Bool */;
3802 val
* var16
/* : null */;
3803 short int var17
/* : Bool */;
3804 short int var18
/* : Bool */;
3805 short int var20
/* : Bool */;
3806 short int var21
/* : Bool */;
3807 val
* var23
/* : null */;
3808 short int var24
/* : Bool */;
3809 short int var25
/* : Bool */;
3810 short int var27
/* : Bool */;
3811 short int var28
/* : Bool */;
3817 var_n_annotations
= p5
;
3818 if (unlikely(var_n_kwvar
== NULL
)) {
3819 PRINT_ERROR("Runtime error: %s", "Cast failed");
3820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2164);
3823 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AVardeclExpr> */
3824 if (var_n_kwvar
== NULL
) {
3825 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3826 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2165);
3829 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar> */
3830 if (unlikely(var_n_kwvar
== NULL
)) {
3831 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3832 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3835 var_n_kwvar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar> */
3839 if (unlikely(var_n_id
== NULL
)) {
3840 PRINT_ERROR("Runtime error: %s", "Cast failed");
3841 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2166);
3844 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVardeclExpr> */
3845 if (var_n_id
== NULL
) {
3846 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3847 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2167);
3850 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3851 if (unlikely(var_n_id
== NULL
)) {
3852 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3853 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3856 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3860 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AVardeclExpr> */
3862 if (var_n_type
== NULL
) {
3863 var3
= 0; /* is null */
3865 var3
= 1; /* arg is null and recv is not */
3868 { /* Inline kernel#Object#!= (var_n_type,var) on <var_n_type:nullable AType> */
3871 var6
= ((short int (*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
3882 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
3883 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
3889 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVardeclExpr> */
3891 if (var_n_assign
== NULL
) {
3892 var10
= 0; /* is null */
3894 var10
= 1; /* arg is null and recv is not */
3897 { /* Inline kernel#Object#!= (var_n_assign,var9) on <var_n_assign:nullable TAssign> */
3900 var13
= ((short int (*)(val
* self
, val
* p0
))(var_n_assign
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_assign
, var_other
) /* == on <var_n_assign:nullable TAssign(TAssign)>*/;
3905 RET_LABEL12
:(void)0;
3911 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign(TAssign)> */
3912 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign(TAssign)> */
3913 RET_LABEL15
:(void)0;
3918 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVardeclExpr> */
3920 if (var_n_expr
== NULL
) {
3921 var17
= 0; /* is null */
3923 var17
= 1; /* arg is null and recv is not */
3926 { /* Inline kernel#Object#!= (var_n_expr,var16) on <var_n_expr:nullable AExpr> */
3929 var20
= ((short int (*)(val
* self
, val
* p0
))(var_n_expr
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_expr
, var_other
) /* == on <var_n_expr:nullable AExpr(AExpr)>*/;
3934 RET_LABEL19
:(void)0;
3940 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
3941 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
3942 RET_LABEL22
:(void)0;
3947 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AVardeclExpr> */
3949 if (var_n_annotations
== NULL
) {
3950 var24
= 0; /* is null */
3952 var24
= 1; /* arg is null and recv is not */
3955 { /* Inline kernel#Object#!= (var_n_annotations,var23) on <var_n_annotations:nullable AAnnotations> */
3958 var27
= ((short int (*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
3963 RET_LABEL26
:(void)0;
3969 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3970 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3971 RET_LABEL29
:(void)0;
3978 /* method parser_prod#AVardeclExpr#replace_child for (self: AVardeclExpr, ANode, nullable ANode) */
3979 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3980 val
* var_old_child
/* var old_child: ANode */;
3981 val
* var_new_child
/* var new_child: nullable ANode */;
3982 val
* var
/* : TKwvar */;
3983 short int var1
/* : Bool */;
3984 val
* var_other
/* var other: nullable Object */;
3985 short int var3
/* : Bool */;
3986 short int var5
/* : Bool */;
3987 short int var6
/* : Bool */;
3990 const char* var_class_name
;
3991 val
* var7
/* : TId */;
3992 short int var8
/* : Bool */;
3993 short int var10
/* : Bool */;
3994 short int var12
/* : Bool */;
3995 short int var13
/* : Bool */;
3998 const char* var_class_name16
;
3999 val
* var17
/* : nullable AType */;
4000 short int var18
/* : Bool */;
4001 short int var19
/* : Bool */;
4002 short int var21
/* : Bool */;
4003 short int var23
/* : Bool */;
4004 short int var24
/* : Bool */;
4007 const char* var_class_name27
;
4008 val
* var28
/* : nullable TAssign */;
4009 short int var29
/* : Bool */;
4010 short int var30
/* : Bool */;
4011 short int var32
/* : Bool */;
4012 short int var34
/* : Bool */;
4013 short int var35
/* : Bool */;
4016 const char* var_class_name38
;
4017 val
* var39
/* : nullable AExpr */;
4018 short int var40
/* : Bool */;
4019 short int var41
/* : Bool */;
4020 short int var43
/* : Bool */;
4021 short int var45
/* : Bool */;
4022 short int var46
/* : Bool */;
4025 const char* var_class_name49
;
4026 val
* var50
/* : nullable AAnnotations */;
4027 short int var51
/* : Bool */;
4028 short int var52
/* : Bool */;
4029 short int var54
/* : Bool */;
4030 short int var56
/* : Bool */;
4031 short int var57
/* : Bool */;
4034 const char* var_class_name60
;
4037 var
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
4038 if (unlikely(var
== NULL
)) {
4039 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
4040 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2180);
4044 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwvar> */
4045 var_other
= var_old_child
;
4047 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwvar> */
4048 var5
= var
== var_other
;
4060 /* <var_new_child:nullable ANode> isa TKwvar */
4061 cltype
= type_nit__TKwvar
.color
;
4062 idtype
= type_nit__TKwvar
.id
;
4063 if(var_new_child
== NULL
) {
4066 if(cltype
>= var_new_child
->type
->table_size
) {
4069 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4072 if (unlikely(!var6
)) {
4073 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4074 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwvar", var_class_name
);
4075 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2181);
4079 nit__parser_prod___AVardeclExpr___n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_kwvar= on <self:AVardeclExpr>*/
4084 var7
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
4085 if (unlikely(var7
== NULL
)) {
4086 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2184);
4091 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TId> */
4092 var_other
= var_old_child
;
4094 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TId> */
4095 var12
= var7
== var_other
;
4098 RET_LABEL11
:(void)0;
4107 /* <var_new_child:nullable ANode> isa TId */
4108 cltype14
= type_nit__TId
.color
;
4109 idtype15
= type_nit__TId
.id
;
4110 if(var_new_child
== NULL
) {
4113 if(cltype14
>= var_new_child
->type
->table_size
) {
4116 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4119 if (unlikely(!var13
)) {
4120 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4121 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name16
);
4122 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2185);
4126 nit__parser_prod___AVardeclExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_id= on <self:AVardeclExpr>*/
4131 var17
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
4132 if (var17
== NULL
) {
4133 var18
= 0; /* <var_old_child:ANode> cannot be null */
4135 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable AType> */
4136 var_other
= var_old_child
;
4138 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable AType(AType)> */
4139 var23
= var17
== var_other
;
4142 RET_LABEL22
:(void)0;
4147 RET_LABEL20
:(void)0;
4152 /* <var_new_child:nullable ANode> isa nullable AType */
4153 cltype25
= type_nullable__nit__AType
.color
;
4154 idtype26
= type_nullable__nit__AType
.id
;
4155 if(var_new_child
== NULL
) {
4158 if(cltype25
>= var_new_child
->type
->table_size
) {
4161 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
4164 if (unlikely(!var24
)) {
4165 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4166 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name27
);
4167 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2189);
4171 nit__parser_prod___AVardeclExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_type= on <self:AVardeclExpr>*/
4176 var28
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
4177 if (var28
== NULL
) {
4178 var29
= 0; /* <var_old_child:ANode> cannot be null */
4180 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:nullable TAssign> */
4181 var_other
= var_old_child
;
4183 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:nullable TAssign(TAssign)> */
4184 var34
= var28
== var_other
;
4187 RET_LABEL33
:(void)0;
4192 RET_LABEL31
:(void)0;
4197 /* <var_new_child:nullable ANode> isa nullable TAssign */
4198 cltype36
= type_nullable__nit__TAssign
.color
;
4199 idtype37
= type_nullable__nit__TAssign
.id
;
4200 if(var_new_child
== NULL
) {
4203 if(cltype36
>= var_new_child
->type
->table_size
) {
4206 var35
= var_new_child
->type
->type_table
[cltype36
] == idtype37
;
4209 if (unlikely(!var35
)) {
4210 var_class_name38
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4211 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name38
);
4212 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2193);
4216 nit__parser_prod___AVardeclExpr___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_assign= on <self:AVardeclExpr>*/
4221 var39
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
4222 if (var39
== NULL
) {
4223 var40
= 0; /* <var_old_child:ANode> cannot be null */
4225 { /* Inline kernel#Object#== (var39,var_old_child) on <var39:nullable AExpr> */
4226 var_other
= var_old_child
;
4228 { /* Inline kernel#Object#is_same_instance (var39,var_other) on <var39:nullable AExpr(AExpr)> */
4229 var45
= var39
== var_other
;
4232 RET_LABEL44
:(void)0;
4237 RET_LABEL42
:(void)0;
4242 /* <var_new_child:nullable ANode> isa nullable AExpr */
4243 cltype47
= type_nullable__nit__AExpr
.color
;
4244 idtype48
= type_nullable__nit__AExpr
.id
;
4245 if(var_new_child
== NULL
) {
4248 if(cltype47
>= var_new_child
->type
->table_size
) {
4251 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
4254 if (unlikely(!var46
)) {
4255 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4256 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name49
);
4257 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2197);
4261 nit__parser_prod___AVardeclExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_expr= on <self:AVardeclExpr>*/
4266 var50
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
4267 if (var50
== NULL
) {
4268 var51
= 0; /* <var_old_child:ANode> cannot be null */
4270 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AAnnotations> */
4271 var_other
= var_old_child
;
4273 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AAnnotations(AAnnotations)> */
4274 var56
= var50
== var_other
;
4277 RET_LABEL55
:(void)0;
4282 RET_LABEL53
:(void)0;
4287 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4288 cltype58
= type_nullable__nit__AAnnotations
.color
;
4289 idtype59
= type_nullable__nit__AAnnotations
.id
;
4290 if(var_new_child
== NULL
) {
4293 if(cltype58
>= var_new_child
->type
->table_size
) {
4296 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
4299 if (unlikely(!var57
)) {
4300 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4301 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name60
);
4302 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2201);
4306 nit__parser_prod___AVardeclExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_annotations= on <self:AVardeclExpr>*/
4313 /* method parser_prod#AVardeclExpr#n_kwvar= for (self: AVardeclExpr, TKwvar) */
4314 void nit__parser_prod___AVardeclExpr___n_kwvar_61d(val
* self
, val
* p0
) {
4315 val
* var_node
/* var node: TKwvar */;
4317 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AVardeclExpr> */
4319 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwvar> */
4320 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwvar> */
4326 /* method parser_prod#AVardeclExpr#n_id= for (self: AVardeclExpr, TId) */
4327 void nit__parser_prod___AVardeclExpr___n_id_61d(val
* self
, val
* p0
) {
4328 val
* var_node
/* var node: TId */;
4330 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
= var_node
; /* _n_id on <self:AVardeclExpr> */
4332 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4333 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4339 /* method parser_prod#AVardeclExpr#n_type= for (self: AVardeclExpr, nullable AType) */
4340 void nit__parser_prod___AVardeclExpr___n_type_61d(val
* self
, val
* p0
) {
4341 val
* var_node
/* var node: nullable AType */;
4342 val
* var
/* : null */;
4343 short int var1
/* : Bool */;
4344 short int var2
/* : Bool */;
4345 val
* var_other
/* var other: nullable Object */;
4346 short int var4
/* : Bool */;
4347 short int var5
/* : Bool */;
4349 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
= var_node
; /* _n_type on <self:AVardeclExpr> */
4351 if (var_node
== NULL
) {
4352 var1
= 0; /* is null */
4354 var1
= 1; /* arg is null and recv is not */
4357 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
4360 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
4371 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
4372 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
4380 /* method parser_prod#AVardeclExpr#n_assign= for (self: AVardeclExpr, nullable TAssign) */
4381 void nit__parser_prod___AVardeclExpr___n_assign_61d(val
* self
, val
* p0
) {
4382 val
* var_node
/* var node: nullable TAssign */;
4383 val
* var
/* : null */;
4384 short int var1
/* : Bool */;
4385 short int var2
/* : Bool */;
4386 val
* var_other
/* var other: nullable Object */;
4387 short int var4
/* : Bool */;
4388 short int var5
/* : Bool */;
4390 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVardeclExpr> */
4392 if (var_node
== NULL
) {
4393 var1
= 0; /* is null */
4395 var1
= 1; /* arg is null and recv is not */
4398 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TAssign> */
4401 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TAssign(TAssign)>*/;
4412 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAssign(TAssign)> */
4413 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAssign(TAssign)> */
4421 /* method parser_prod#AVardeclExpr#n_expr= for (self: AVardeclExpr, nullable AExpr) */
4422 void nit__parser_prod___AVardeclExpr___n_expr_61d(val
* self
, val
* p0
) {
4423 val
* var_node
/* var node: nullable AExpr */;
4424 val
* var
/* : null */;
4425 short int var1
/* : Bool */;
4426 short int var2
/* : Bool */;
4427 val
* var_other
/* var other: nullable Object */;
4428 short int var4
/* : Bool */;
4429 short int var5
/* : Bool */;
4431 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVardeclExpr> */
4433 if (var_node
== NULL
) {
4434 var1
= 0; /* is null */
4436 var1
= 1; /* arg is null and recv is not */
4439 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
4442 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
4453 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
4454 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
4462 /* method parser_prod#AVardeclExpr#n_annotations= for (self: AVardeclExpr, nullable AAnnotations) */
4463 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
4464 val
* var_node
/* var node: nullable AAnnotations */;
4465 val
* var
/* : null */;
4466 short int var1
/* : Bool */;
4467 short int var2
/* : Bool */;
4468 val
* var_other
/* var other: nullable Object */;
4469 short int var4
/* : Bool */;
4470 short int var5
/* : Bool */;
4472 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AVardeclExpr> */
4474 if (var_node
== NULL
) {
4475 var1
= 0; /* is null */
4477 var1
= 1; /* arg is null and recv is not */
4480 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
4483 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
4494 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4495 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4503 /* method parser_prod#AVardeclExpr#visit_all for (self: AVardeclExpr, Visitor) */
4504 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4505 val
* var_v
/* var v: Visitor */;
4506 val
* var
/* : TKwvar */;
4507 val
* var1
/* : TId */;
4508 val
* var2
/* : nullable AType */;
4509 val
* var3
/* : nullable TAssign */;
4510 val
* var4
/* : nullable AExpr */;
4511 val
* var5
/* : nullable AAnnotations */;
4513 var
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
4514 if (unlikely(var
== NULL
)) {
4515 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
4516 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2240);
4520 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4522 var1
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
4523 if (unlikely(var1
== NULL
)) {
4524 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4525 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2241);
4529 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4531 var2
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
4533 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4535 var3
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
4537 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4539 var4
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
4541 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4543 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
4545 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4549 /* method parser_prod#AReturnExpr#init_areturnexpr for (self: AReturnExpr, nullable TKwreturn, nullable AExpr) */
4550 void nit__parser_prod___AReturnExpr___init_areturnexpr(val
* self
, val
* p0
, val
* p1
) {
4551 val
* var_n_kwreturn
/* var n_kwreturn: nullable TKwreturn */;
4552 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4553 val
* var
/* : null */;
4554 short int var1
/* : Bool */;
4555 short int var2
/* : Bool */;
4556 val
* var_other
/* var other: nullable Object */;
4557 short int var4
/* : Bool */;
4558 short int var5
/* : Bool */;
4559 val
* var7
/* : null */;
4560 short int var8
/* : Bool */;
4561 short int var9
/* : Bool */;
4562 short int var11
/* : Bool */;
4563 short int var12
/* : Bool */;
4564 var_n_kwreturn
= p0
;
4566 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_n_kwreturn
; /* _n_kwreturn on <self:AReturnExpr> */
4568 if (var_n_kwreturn
== NULL
) {
4569 var1
= 0; /* is null */
4571 var1
= 1; /* arg is null and recv is not */
4574 { /* Inline kernel#Object#!= (var_n_kwreturn,var) on <var_n_kwreturn:nullable TKwreturn> */
4577 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwreturn
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwreturn
, var_other
) /* == on <var_n_kwreturn:nullable TKwreturn(TKwreturn)>*/;
4588 { /* Inline parser_nodes#ANode#parent= (var_n_kwreturn,self) on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
4589 var_n_kwreturn
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
4595 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AReturnExpr> */
4597 if (var_n_expr
== NULL
) {
4598 var8
= 0; /* is null */
4600 var8
= 1; /* arg is null and recv is not */
4603 { /* Inline kernel#Object#!= (var_n_expr,var7) on <var_n_expr:nullable AExpr> */
4606 var11
= ((short int (*)(val
* self
, val
* p0
))(var_n_expr
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_expr
, var_other
) /* == on <var_n_expr:nullable AExpr(AExpr)>*/;
4611 RET_LABEL10
:(void)0;
4617 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
4618 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
4619 RET_LABEL13
:(void)0;
4626 /* method parser_prod#AReturnExpr#replace_child for (self: AReturnExpr, ANode, nullable ANode) */
4627 void nit__parser_prod___AReturnExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4628 val
* var_old_child
/* var old_child: ANode */;
4629 val
* var_new_child
/* var new_child: nullable ANode */;
4630 val
* var
/* : nullable TKwreturn */;
4631 short int var1
/* : Bool */;
4632 short int var2
/* : Bool */;
4633 val
* var_other
/* var other: nullable Object */;
4634 short int var4
/* : Bool */;
4635 short int var6
/* : Bool */;
4636 short int var7
/* : Bool */;
4639 const char* var_class_name
;
4640 val
* var8
/* : nullable AExpr */;
4641 short int var9
/* : Bool */;
4642 short int var10
/* : Bool */;
4643 short int var12
/* : Bool */;
4644 short int var14
/* : Bool */;
4645 short int var15
/* : Bool */;
4648 const char* var_class_name18
;
4651 var
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
4653 var1
= 0; /* <var_old_child:ANode> cannot be null */
4655 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwreturn> */
4656 var_other
= var_old_child
;
4658 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwreturn(TKwreturn)> */
4659 var6
= var
== var_other
;
4672 /* <var_new_child:nullable ANode> isa nullable TKwreturn */
4673 cltype
= type_nullable__nit__TKwreturn
.color
;
4674 idtype
= type_nullable__nit__TKwreturn
.id
;
4675 if(var_new_child
== NULL
) {
4678 if(cltype
>= var_new_child
->type
->table_size
) {
4681 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4684 if (unlikely(!var7
)) {
4685 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4686 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwreturn", var_class_name
);
4687 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2263);
4691 nit__parser_prod___AReturnExpr___n_kwreturn_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_kwreturn= on <self:AReturnExpr>*/
4696 var8
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
4698 var9
= 0; /* <var_old_child:ANode> cannot be null */
4700 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
4701 var_other
= var_old_child
;
4703 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
4704 var14
= var8
== var_other
;
4707 RET_LABEL13
:(void)0;
4712 RET_LABEL11
:(void)0;
4717 /* <var_new_child:nullable ANode> isa nullable AExpr */
4718 cltype16
= type_nullable__nit__AExpr
.color
;
4719 idtype17
= type_nullable__nit__AExpr
.id
;
4720 if(var_new_child
== NULL
) {
4723 if(cltype16
>= var_new_child
->type
->table_size
) {
4726 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4729 if (unlikely(!var15
)) {
4730 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4731 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
4732 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2267);
4736 nit__parser_prod___AReturnExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_expr= on <self:AReturnExpr>*/
4743 /* method parser_prod#AReturnExpr#n_kwreturn= for (self: AReturnExpr, nullable TKwreturn) */
4744 void nit__parser_prod___AReturnExpr___n_kwreturn_61d(val
* self
, val
* p0
) {
4745 val
* var_node
/* var node: nullable TKwreturn */;
4746 val
* var
/* : null */;
4747 short int var1
/* : Bool */;
4748 short int var2
/* : Bool */;
4749 val
* var_other
/* var other: nullable Object */;
4750 short int var4
/* : Bool */;
4751 short int var5
/* : Bool */;
4753 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_node
; /* _n_kwreturn on <self:AReturnExpr> */
4755 if (var_node
== NULL
) {
4756 var1
= 0; /* is null */
4758 var1
= 1; /* arg is null and recv is not */
4761 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwreturn> */
4764 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwreturn(TKwreturn)>*/;
4775 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwreturn(TKwreturn)> */
4776 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwreturn(TKwreturn)> */
4784 /* method parser_prod#AReturnExpr#n_expr= for (self: AReturnExpr, nullable AExpr) */
4785 void nit__parser_prod___AReturnExpr___n_expr_61d(val
* self
, val
* p0
) {
4786 val
* var_node
/* var node: nullable AExpr */;
4787 val
* var
/* : null */;
4788 short int var1
/* : Bool */;
4789 short int var2
/* : Bool */;
4790 val
* var_other
/* var other: nullable Object */;
4791 short int var4
/* : Bool */;
4792 short int var5
/* : Bool */;
4794 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AReturnExpr> */
4796 if (var_node
== NULL
) {
4797 var1
= 0; /* is null */
4799 var1
= 1; /* arg is null and recv is not */
4802 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
4805 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
4816 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
4817 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
4825 /* method parser_prod#AReturnExpr#visit_all for (self: AReturnExpr, Visitor) */
4826 void nit__parser_prod___AReturnExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4827 val
* var_v
/* var v: Visitor */;
4828 val
* var
/* : nullable TKwreturn */;
4829 val
* var1
/* : nullable AExpr */;
4831 var
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
4833 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4835 var1
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
4837 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4841 /* method parser_prod#ABreakExpr#init_abreakexpr for (self: ABreakExpr, nullable TKwbreak, nullable ALabel) */
4842 void nit__parser_prod___ABreakExpr___init_abreakexpr(val
* self
, val
* p0
, val
* p1
) {
4843 val
* var_n_kwbreak
/* var n_kwbreak: nullable TKwbreak */;
4844 val
* var_n_label
/* var n_label: nullable ALabel */;
4845 val
* var
/* : null */;
4846 short int var2
/* : Bool */;
4847 short int var3
/* : Bool */;
4848 val
* var_other
/* var other: nullable Object */;
4849 short int var5
/* : Bool */;
4850 short int var6
/* : Bool */;
4853 if (unlikely(var_n_kwbreak
== NULL
)) {
4854 PRINT_ERROR("Runtime error: %s", "Cast failed");
4855 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2296);
4858 self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_n_kwbreak
; /* _n_kwbreak on <self:ABreakExpr> */
4859 if (var_n_kwbreak
== NULL
) {
4860 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4861 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2297);
4864 { /* Inline parser_nodes#ANode#parent= (var_n_kwbreak,self) on <var_n_kwbreak:nullable TKwbreak> */
4865 if (unlikely(var_n_kwbreak
== NULL
)) {
4866 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4867 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4870 var_n_kwbreak
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwbreak:nullable TKwbreak> */
4874 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ABreakExpr> */
4876 if (var_n_label
== NULL
) {
4877 var2
= 0; /* is null */
4879 var2
= 1; /* arg is null and recv is not */
4882 { /* Inline kernel#Object#!= (var_n_label,var) on <var_n_label:nullable ALabel> */
4885 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
4896 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
4897 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
4905 /* method parser_prod#ABreakExpr#replace_child for (self: ABreakExpr, ANode, nullable ANode) */
4906 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4907 val
* var_old_child
/* var old_child: ANode */;
4908 val
* var_new_child
/* var new_child: nullable ANode */;
4909 val
* var
/* : TKwbreak */;
4910 short int var1
/* : Bool */;
4911 val
* var_other
/* var other: nullable Object */;
4912 short int var3
/* : Bool */;
4913 short int var5
/* : Bool */;
4914 short int var6
/* : Bool */;
4917 const char* var_class_name
;
4918 val
* var7
/* : nullable ALabel */;
4919 short int var8
/* : Bool */;
4920 short int var9
/* : Bool */;
4921 short int var11
/* : Bool */;
4922 short int var13
/* : Bool */;
4923 short int var14
/* : Bool */;
4926 const char* var_class_name17
;
4929 var
= self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
4930 if (unlikely(var
== NULL
)) {
4931 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
4932 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2304);
4936 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwbreak> */
4937 var_other
= var_old_child
;
4939 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwbreak> */
4940 var5
= var
== var_other
;
4952 /* <var_new_child:nullable ANode> isa TKwbreak */
4953 cltype
= type_nit__TKwbreak
.color
;
4954 idtype
= type_nit__TKwbreak
.id
;
4955 if(var_new_child
== NULL
) {
4958 if(cltype
>= var_new_child
->type
->table_size
) {
4961 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4964 if (unlikely(!var6
)) {
4965 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4966 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwbreak", var_class_name
);
4967 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2305);
4971 nit__parser_prod___ABreakExpr___n_kwbreak_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_kwbreak= on <self:ABreakExpr>*/
4976 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
4978 var8
= 0; /* <var_old_child:ANode> cannot be null */
4980 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable ALabel> */
4981 var_other
= var_old_child
;
4983 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable ALabel(ALabel)> */
4984 var13
= var7
== var_other
;
4987 RET_LABEL12
:(void)0;
4992 RET_LABEL10
:(void)0;
4997 /* <var_new_child:nullable ANode> isa nullable ALabel */
4998 cltype15
= type_nullable__nit__ALabel
.color
;
4999 idtype16
= type_nullable__nit__ALabel
.id
;
5000 if(var_new_child
== NULL
) {
5003 if(cltype15
>= var_new_child
->type
->table_size
) {
5006 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5009 if (unlikely(!var14
)) {
5010 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5011 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name17
);
5012 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2309);
5016 nit__parser_prod___ABreakExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_label= on <self:ABreakExpr>*/
5023 /* method parser_prod#ABreakExpr#n_kwbreak= for (self: ABreakExpr, TKwbreak) */
5024 void nit__parser_prod___ABreakExpr___n_kwbreak_61d(val
* self
, val
* p0
) {
5025 val
* var_node
/* var node: TKwbreak */;
5027 self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_node
; /* _n_kwbreak on <self:ABreakExpr> */
5029 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwbreak> */
5030 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwbreak> */
5036 /* method parser_prod#ABreakExpr#n_label= for (self: ABreakExpr, nullable ALabel) */
5037 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
5038 val
* var_node
/* var node: nullable ALabel */;
5039 val
* var
/* : null */;
5040 short int var1
/* : Bool */;
5041 short int var2
/* : Bool */;
5042 val
* var_other
/* var other: nullable Object */;
5043 short int var4
/* : Bool */;
5044 short int var5
/* : Bool */;
5046 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ABreakExpr> */
5048 if (var_node
== NULL
) {
5049 var1
= 0; /* is null */
5051 var1
= 1; /* arg is null and recv is not */
5054 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
5057 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
5068 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
5069 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
5077 /* method parser_prod#ABreakExpr#visit_all for (self: ABreakExpr, Visitor) */
5078 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5079 val
* var_v
/* var v: Visitor */;
5080 val
* var
/* : TKwbreak */;
5081 val
* var1
/* : nullable ALabel */;
5083 var
= self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
5084 if (unlikely(var
== NULL
)) {
5085 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
5086 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2328);
5090 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5092 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
5094 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5098 /* method parser_prod#AAbortExpr#init_aabortexpr for (self: AAbortExpr, nullable TKwabort) */
5099 void nit__parser_prod___AAbortExpr___init_aabortexpr(val
* self
, val
* p0
) {
5100 val
* var_n_kwabort
/* var n_kwabort: nullable TKwabort */;
5102 if (unlikely(var_n_kwabort
== NULL
)) {
5103 PRINT_ERROR("Runtime error: %s", "Cast failed");
5104 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2337);
5107 self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
= var_n_kwabort
; /* _n_kwabort on <self:AAbortExpr> */
5108 if (var_n_kwabort
== NULL
) {
5109 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5110 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2338);
5113 { /* Inline parser_nodes#ANode#parent= (var_n_kwabort,self) on <var_n_kwabort:nullable TKwabort> */
5114 if (unlikely(var_n_kwabort
== NULL
)) {
5115 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5116 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5119 var_n_kwabort
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabort:nullable TKwabort> */
5125 /* method parser_prod#AAbortExpr#replace_child for (self: AAbortExpr, ANode, nullable ANode) */
5126 void nit__parser_prod___AAbortExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5127 val
* var_old_child
/* var old_child: ANode */;
5128 val
* var_new_child
/* var new_child: nullable ANode */;
5129 val
* var
/* : TKwabort */;
5130 short int var1
/* : Bool */;
5131 val
* var_other
/* var other: nullable Object */;
5132 short int var3
/* : Bool */;
5133 short int var5
/* : Bool */;
5134 short int var6
/* : Bool */;
5137 const char* var_class_name
;
5140 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
5141 if (unlikely(var
== NULL
)) {
5142 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
5143 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2343);
5147 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabort> */
5148 var_other
= var_old_child
;
5150 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabort> */
5151 var5
= var
== var_other
;
5163 /* <var_new_child:nullable ANode> isa TKwabort */
5164 cltype
= type_nit__TKwabort
.color
;
5165 idtype
= type_nit__TKwabort
.id
;
5166 if(var_new_child
== NULL
) {
5169 if(cltype
>= var_new_child
->type
->table_size
) {
5172 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5175 if (unlikely(!var6
)) {
5176 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5177 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabort", var_class_name
);
5178 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2344);
5182 nit__parser_prod___AAbortExpr___n_kwabort_61d(self
, var_new_child
); /* Direct call parser_prod#AAbortExpr#n_kwabort= on <self:AAbortExpr>*/
5189 /* method parser_prod#AAbortExpr#n_kwabort= for (self: AAbortExpr, TKwabort) */
5190 void nit__parser_prod___AAbortExpr___n_kwabort_61d(val
* self
, val
* p0
) {
5191 val
* var_node
/* var node: TKwabort */;
5193 self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
= var_node
; /* _n_kwabort on <self:AAbortExpr> */
5195 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabort> */
5196 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabort> */
5202 /* method parser_prod#AAbortExpr#visit_all for (self: AAbortExpr, Visitor) */
5203 void nit__parser_prod___AAbortExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5204 val
* var_v
/* var v: Visitor */;
5205 val
* var
/* : TKwabort */;
5207 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
5208 if (unlikely(var
== NULL
)) {
5209 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
5210 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2358);
5214 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5218 /* method parser_prod#AContinueExpr#init_acontinueexpr for (self: AContinueExpr, nullable TKwcontinue, nullable ALabel) */
5219 void nit__parser_prod___AContinueExpr___init_acontinueexpr(val
* self
, val
* p0
, val
* p1
) {
5220 val
* var_n_kwcontinue
/* var n_kwcontinue: nullable TKwcontinue */;
5221 val
* var_n_label
/* var n_label: nullable ALabel */;
5222 val
* var
/* : null */;
5223 short int var1
/* : Bool */;
5224 short int var2
/* : Bool */;
5225 val
* var_other
/* var other: nullable Object */;
5226 short int var4
/* : Bool */;
5227 short int var5
/* : Bool */;
5228 val
* var7
/* : null */;
5229 short int var8
/* : Bool */;
5230 short int var9
/* : Bool */;
5231 short int var11
/* : Bool */;
5232 short int var12
/* : Bool */;
5233 var_n_kwcontinue
= p0
;
5235 self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_n_kwcontinue
; /* _n_kwcontinue on <self:AContinueExpr> */
5237 if (var_n_kwcontinue
== NULL
) {
5238 var1
= 0; /* is null */
5240 var1
= 1; /* arg is null and recv is not */
5243 { /* Inline kernel#Object#!= (var_n_kwcontinue,var) on <var_n_kwcontinue:nullable TKwcontinue> */
5246 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwcontinue
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwcontinue
, var_other
) /* == on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)>*/;
5257 { /* Inline parser_nodes#ANode#parent= (var_n_kwcontinue,self) on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
5258 var_n_kwcontinue
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
5264 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:AContinueExpr> */
5266 if (var_n_label
== NULL
) {
5267 var8
= 0; /* is null */
5269 var8
= 1; /* arg is null and recv is not */
5272 { /* Inline kernel#Object#!= (var_n_label,var7) on <var_n_label:nullable ALabel> */
5275 var11
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
5280 RET_LABEL10
:(void)0;
5286 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
5287 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
5288 RET_LABEL13
:(void)0;
5295 /* method parser_prod#AContinueExpr#replace_child for (self: AContinueExpr, ANode, nullable ANode) */
5296 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5297 val
* var_old_child
/* var old_child: ANode */;
5298 val
* var_new_child
/* var new_child: nullable ANode */;
5299 val
* var
/* : nullable TKwcontinue */;
5300 short int var1
/* : Bool */;
5301 short int var2
/* : Bool */;
5302 val
* var_other
/* var other: nullable Object */;
5303 short int var4
/* : Bool */;
5304 short int var6
/* : Bool */;
5305 short int var7
/* : Bool */;
5308 const char* var_class_name
;
5309 val
* var8
/* : nullable ALabel */;
5310 short int var9
/* : Bool */;
5311 short int var10
/* : Bool */;
5312 short int var12
/* : Bool */;
5313 short int var14
/* : Bool */;
5314 short int var15
/* : Bool */;
5317 const char* var_class_name18
;
5320 var
= self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
5322 var1
= 0; /* <var_old_child:ANode> cannot be null */
5324 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwcontinue> */
5325 var_other
= var_old_child
;
5327 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwcontinue(TKwcontinue)> */
5328 var6
= var
== var_other
;
5341 /* <var_new_child:nullable ANode> isa nullable TKwcontinue */
5342 cltype
= type_nullable__nit__TKwcontinue
.color
;
5343 idtype
= type_nullable__nit__TKwcontinue
.id
;
5344 if(var_new_child
== NULL
) {
5347 if(cltype
>= var_new_child
->type
->table_size
) {
5350 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5353 if (unlikely(!var7
)) {
5354 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5355 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwcontinue", var_class_name
);
5356 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2376);
5360 nit__parser_prod___AContinueExpr___n_kwcontinue_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_kwcontinue= on <self:AContinueExpr>*/
5365 var8
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
5367 var9
= 0; /* <var_old_child:ANode> cannot be null */
5369 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable ALabel> */
5370 var_other
= var_old_child
;
5372 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable ALabel(ALabel)> */
5373 var14
= var8
== var_other
;
5376 RET_LABEL13
:(void)0;
5381 RET_LABEL11
:(void)0;
5386 /* <var_new_child:nullable ANode> isa nullable ALabel */
5387 cltype16
= type_nullable__nit__ALabel
.color
;
5388 idtype17
= type_nullable__nit__ALabel
.id
;
5389 if(var_new_child
== NULL
) {
5392 if(cltype16
>= var_new_child
->type
->table_size
) {
5395 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5398 if (unlikely(!var15
)) {
5399 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5400 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name18
);
5401 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2380);
5405 nit__parser_prod___AContinueExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_label= on <self:AContinueExpr>*/
5412 /* method parser_prod#AContinueExpr#n_kwcontinue= for (self: AContinueExpr, nullable TKwcontinue) */
5413 void nit__parser_prod___AContinueExpr___n_kwcontinue_61d(val
* self
, val
* p0
) {
5414 val
* var_node
/* var node: nullable TKwcontinue */;
5415 val
* var
/* : null */;
5416 short int var1
/* : Bool */;
5417 short int var2
/* : Bool */;
5418 val
* var_other
/* var other: nullable Object */;
5419 short int var4
/* : Bool */;
5420 short int var5
/* : Bool */;
5422 self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_node
; /* _n_kwcontinue on <self:AContinueExpr> */
5424 if (var_node
== NULL
) {
5425 var1
= 0; /* is null */
5427 var1
= 1; /* arg is null and recv is not */
5430 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwcontinue> */
5433 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwcontinue(TKwcontinue)>*/;
5444 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwcontinue(TKwcontinue)> */
5445 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwcontinue(TKwcontinue)> */
5453 /* method parser_prod#AContinueExpr#n_label= for (self: AContinueExpr, nullable ALabel) */
5454 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
5455 val
* var_node
/* var node: nullable ALabel */;
5456 val
* var
/* : null */;
5457 short int var1
/* : Bool */;
5458 short int var2
/* : Bool */;
5459 val
* var_other
/* var other: nullable Object */;
5460 short int var4
/* : Bool */;
5461 short int var5
/* : Bool */;
5463 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:AContinueExpr> */
5465 if (var_node
== NULL
) {
5466 var1
= 0; /* is null */
5468 var1
= 1; /* arg is null and recv is not */
5471 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
5474 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
5485 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
5486 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
5494 /* method parser_prod#AContinueExpr#visit_all for (self: AContinueExpr, Visitor) */
5495 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5496 val
* var_v
/* var v: Visitor */;
5497 val
* var
/* : nullable TKwcontinue */;
5498 val
* var1
/* : nullable ALabel */;
5500 var
= self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
5502 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5504 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
5506 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5510 /* method parser_prod#ADoExpr#init_adoexpr for (self: ADoExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */
5511 void nit__parser_prod___ADoExpr___init_adoexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5512 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
5513 val
* var_n_block
/* var n_block: nullable AExpr */;
5514 val
* var_n_label
/* var n_label: nullable ALabel */;
5515 val
* var
/* : null */;
5516 short int var2
/* : Bool */;
5517 short int var3
/* : Bool */;
5518 val
* var_other
/* var other: nullable Object */;
5519 short int var5
/* : Bool */;
5520 short int var6
/* : Bool */;
5521 val
* var8
/* : null */;
5522 short int var9
/* : Bool */;
5523 short int var10
/* : Bool */;
5524 short int var12
/* : Bool */;
5525 short int var13
/* : Bool */;
5529 if (unlikely(var_n_kwdo
== NULL
)) {
5530 PRINT_ERROR("Runtime error: %s", "Cast failed");
5531 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2410);
5534 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:ADoExpr> */
5535 if (var_n_kwdo
== NULL
) {
5536 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5537 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2411);
5540 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo> */
5541 if (unlikely(var_n_kwdo
== NULL
)) {
5542 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5543 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5546 var_n_kwdo
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo> */
5550 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
= var_n_block
; /* _n_block on <self:ADoExpr> */
5552 if (var_n_block
== NULL
) {
5553 var2
= 0; /* is null */
5555 var2
= 1; /* arg is null and recv is not */
5558 { /* Inline kernel#Object#!= (var_n_block,var) on <var_n_block:nullable AExpr> */
5561 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
5572 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
5573 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
5579 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ADoExpr> */
5581 if (var_n_label
== NULL
) {
5582 var9
= 0; /* is null */
5584 var9
= 1; /* arg is null and recv is not */
5587 { /* Inline kernel#Object#!= (var_n_label,var8) on <var_n_label:nullable ALabel> */
5590 var12
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
5595 RET_LABEL11
:(void)0;
5601 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
5602 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
5603 RET_LABEL14
:(void)0;
5610 /* method parser_prod#ADoExpr#replace_child for (self: ADoExpr, ANode, nullable ANode) */
5611 void nit__parser_prod___ADoExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5612 val
* var_old_child
/* var old_child: ANode */;
5613 val
* var_new_child
/* var new_child: nullable ANode */;
5614 val
* var
/* : TKwdo */;
5615 short int var1
/* : Bool */;
5616 val
* var_other
/* var other: nullable Object */;
5617 short int var3
/* : Bool */;
5618 short int var5
/* : Bool */;
5619 short int var6
/* : Bool */;
5622 const char* var_class_name
;
5623 val
* var7
/* : nullable AExpr */;
5624 short int var8
/* : Bool */;
5625 short int var9
/* : Bool */;
5626 short int var11
/* : Bool */;
5627 short int var13
/* : Bool */;
5628 short int var14
/* : Bool */;
5631 const char* var_class_name17
;
5632 val
* var18
/* : nullable ALabel */;
5633 short int var19
/* : Bool */;
5634 short int var20
/* : Bool */;
5635 short int var22
/* : Bool */;
5636 short int var24
/* : Bool */;
5637 short int var25
/* : Bool */;
5640 const char* var_class_name28
;
5643 var
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
5644 if (unlikely(var
== NULL
)) {
5645 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
5646 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2420);
5650 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdo> */
5651 var_other
= var_old_child
;
5653 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdo> */
5654 var5
= var
== var_other
;
5666 /* <var_new_child:nullable ANode> isa TKwdo */
5667 cltype
= type_nit__TKwdo
.color
;
5668 idtype
= type_nit__TKwdo
.id
;
5669 if(var_new_child
== NULL
) {
5672 if(cltype
>= var_new_child
->type
->table_size
) {
5675 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5678 if (unlikely(!var6
)) {
5679 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5680 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name
);
5681 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2421);
5685 nit__parser_prod___ADoExpr___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_kwdo= on <self:ADoExpr>*/
5690 var7
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
5692 var8
= 0; /* <var_old_child:ANode> cannot be null */
5694 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AExpr> */
5695 var_other
= var_old_child
;
5697 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AExpr(AExpr)> */
5698 var13
= var7
== var_other
;
5701 RET_LABEL12
:(void)0;
5706 RET_LABEL10
:(void)0;
5711 /* <var_new_child:nullable ANode> isa nullable AExpr */
5712 cltype15
= type_nullable__nit__AExpr
.color
;
5713 idtype16
= type_nullable__nit__AExpr
.id
;
5714 if(var_new_child
== NULL
) {
5717 if(cltype15
>= var_new_child
->type
->table_size
) {
5720 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5723 if (unlikely(!var14
)) {
5724 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5725 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name17
);
5726 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2425);
5730 nit__parser_prod___ADoExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_block= on <self:ADoExpr>*/
5735 var18
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
5736 if (var18
== NULL
) {
5737 var19
= 0; /* <var_old_child:ANode> cannot be null */
5739 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable ALabel> */
5740 var_other
= var_old_child
;
5742 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable ALabel(ALabel)> */
5743 var24
= var18
== var_other
;
5746 RET_LABEL23
:(void)0;
5751 RET_LABEL21
:(void)0;
5756 /* <var_new_child:nullable ANode> isa nullable ALabel */
5757 cltype26
= type_nullable__nit__ALabel
.color
;
5758 idtype27
= type_nullable__nit__ALabel
.id
;
5759 if(var_new_child
== NULL
) {
5762 if(cltype26
>= var_new_child
->type
->table_size
) {
5765 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
5768 if (unlikely(!var25
)) {
5769 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5770 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name28
);
5771 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2429);
5775 nit__parser_prod___ADoExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_label= on <self:ADoExpr>*/
5782 /* method parser_prod#ADoExpr#n_kwdo= for (self: ADoExpr, TKwdo) */
5783 void nit__parser_prod___ADoExpr___n_kwdo_61d(val
* self
, val
* p0
) {
5784 val
* var_node
/* var node: TKwdo */;
5786 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:ADoExpr> */
5788 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdo> */
5789 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdo> */
5795 /* method parser_prod#ADoExpr#n_block= for (self: ADoExpr, nullable AExpr) */
5796 void nit__parser_prod___ADoExpr___n_block_61d(val
* self
, val
* p0
) {
5797 val
* var_node
/* var node: nullable AExpr */;
5798 val
* var
/* : null */;
5799 short int var1
/* : Bool */;
5800 short int var2
/* : Bool */;
5801 val
* var_other
/* var other: nullable Object */;
5802 short int var4
/* : Bool */;
5803 short int var5
/* : Bool */;
5805 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
= var_node
; /* _n_block on <self:ADoExpr> */
5807 if (var_node
== NULL
) {
5808 var1
= 0; /* is null */
5810 var1
= 1; /* arg is null and recv is not */
5813 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
5816 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
5827 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
5828 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
5836 /* method parser_prod#ADoExpr#n_label= for (self: ADoExpr, nullable ALabel) */
5837 void nit__parser_prod___ADoExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
5838 val
* var_node
/* var node: nullable ALabel */;
5839 val
* var
/* : null */;
5840 short int var1
/* : Bool */;
5841 short int var2
/* : Bool */;
5842 val
* var_other
/* var other: nullable Object */;
5843 short int var4
/* : Bool */;
5844 short int var5
/* : Bool */;
5846 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ADoExpr> */
5848 if (var_node
== NULL
) {
5849 var1
= 0; /* is null */
5851 var1
= 1; /* arg is null and recv is not */
5854 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
5857 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
5868 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
5869 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
5877 /* method parser_prod#ADoExpr#visit_all for (self: ADoExpr, Visitor) */
5878 void nit__parser_prod___ADoExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5879 val
* var_v
/* var v: Visitor */;
5880 val
* var
/* : TKwdo */;
5881 val
* var1
/* : nullable AExpr */;
5882 val
* var2
/* : nullable ALabel */;
5884 var
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
5885 if (unlikely(var
== NULL
)) {
5886 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
5887 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2453);
5891 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5893 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
5895 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5897 var2
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
5899 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5903 /* method parser_prod#AIfExpr#init_aifexpr for (self: AIfExpr, nullable TKwif, nullable AExpr, nullable AExpr, nullable AExpr) */
5904 void nit__parser_prod___AIfExpr___init_aifexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5905 val
* var_n_kwif
/* var n_kwif: nullable TKwif */;
5906 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5907 val
* var_n_then
/* var n_then: nullable AExpr */;
5908 val
* var_n_else
/* var n_else: nullable AExpr */;
5909 val
* var
/* : null */;
5910 short int var3
/* : Bool */;
5911 short int var4
/* : Bool */;
5912 val
* var_other
/* var other: nullable Object */;
5913 short int var6
/* : Bool */;
5914 short int var7
/* : Bool */;
5915 val
* var9
/* : null */;
5916 short int var10
/* : Bool */;
5917 short int var11
/* : Bool */;
5918 short int var13
/* : Bool */;
5919 short int var14
/* : Bool */;
5924 if (unlikely(var_n_kwif
== NULL
)) {
5925 PRINT_ERROR("Runtime error: %s", "Cast failed");
5926 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2466);
5929 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
= var_n_kwif
; /* _n_kwif on <self:AIfExpr> */
5930 if (var_n_kwif
== NULL
) {
5931 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5932 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2467);
5935 { /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on <var_n_kwif:nullable TKwif> */
5936 if (unlikely(var_n_kwif
== NULL
)) {
5937 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5938 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5941 var_n_kwif
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwif:nullable TKwif> */
5945 if (unlikely(var_n_expr
== NULL
)) {
5946 PRINT_ERROR("Runtime error: %s", "Cast failed");
5947 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2468);
5950 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIfExpr> */
5951 if (var_n_expr
== NULL
) {
5952 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5953 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2469);
5956 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5957 if (unlikely(var_n_expr
== NULL
)) {
5958 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5959 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5962 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5966 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
= var_n_then
; /* _n_then on <self:AIfExpr> */
5968 if (var_n_then
== NULL
) {
5969 var3
= 0; /* is null */
5971 var3
= 1; /* arg is null and recv is not */
5974 { /* Inline kernel#Object#!= (var_n_then,var) on <var_n_then:nullable AExpr> */
5977 var6
= ((short int (*)(val
* self
, val
* p0
))(var_n_then
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_then
, var_other
) /* == on <var_n_then:nullable AExpr(AExpr)>*/;
5988 { /* Inline parser_nodes#ANode#parent= (var_n_then,self) on <var_n_then:nullable AExpr(AExpr)> */
5989 var_n_then
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_then:nullable AExpr(AExpr)> */
5995 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AIfExpr> */
5997 if (var_n_else
== NULL
) {
5998 var10
= 0; /* is null */
6000 var10
= 1; /* arg is null and recv is not */
6003 { /* Inline kernel#Object#!= (var_n_else,var9) on <var_n_else:nullable AExpr> */
6006 var13
= ((short int (*)(val
* self
, val
* p0
))(var_n_else
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_else
, var_other
) /* == on <var_n_else:nullable AExpr(AExpr)>*/;
6011 RET_LABEL12
:(void)0;
6017 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr(AExpr)> */
6018 var_n_else
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr(AExpr)> */
6019 RET_LABEL15
:(void)0;
6026 /* method parser_prod#AIfExpr#replace_child for (self: AIfExpr, ANode, nullable ANode) */
6027 void nit__parser_prod___AIfExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6028 val
* var_old_child
/* var old_child: ANode */;
6029 val
* var_new_child
/* var new_child: nullable ANode */;
6030 val
* var
/* : TKwif */;
6031 short int var1
/* : Bool */;
6032 val
* var_other
/* var other: nullable Object */;
6033 short int var3
/* : Bool */;
6034 short int var5
/* : Bool */;
6035 short int var6
/* : Bool */;
6038 const char* var_class_name
;
6039 val
* var7
/* : AExpr */;
6040 short int var8
/* : Bool */;
6041 short int var10
/* : Bool */;
6042 short int var12
/* : Bool */;
6043 short int var13
/* : Bool */;
6046 const char* var_class_name16
;
6047 val
* var17
/* : nullable AExpr */;
6048 short int var18
/* : Bool */;
6049 short int var19
/* : Bool */;
6050 short int var21
/* : Bool */;
6051 short int var23
/* : Bool */;
6052 short int var24
/* : Bool */;
6055 const char* var_class_name27
;
6056 val
* var28
/* : nullable AExpr */;
6057 short int var29
/* : Bool */;
6058 short int var30
/* : Bool */;
6059 short int var32
/* : Bool */;
6060 short int var34
/* : Bool */;
6061 short int var35
/* : Bool */;
6064 const char* var_class_name38
;
6067 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
; /* _n_kwif on <self:AIfExpr> */
6068 if (unlikely(var
== NULL
)) {
6069 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
6070 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2478);
6074 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwif> */
6075 var_other
= var_old_child
;
6077 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwif> */
6078 var5
= var
== var_other
;
6090 /* <var_new_child:nullable ANode> isa TKwif */
6091 cltype
= type_nit__TKwif
.color
;
6092 idtype
= type_nit__TKwif
.id
;
6093 if(var_new_child
== NULL
) {
6096 if(cltype
>= var_new_child
->type
->table_size
) {
6099 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6102 if (unlikely(!var6
)) {
6103 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6104 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name
);
6105 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2479);
6109 nit__parser_prod___AIfExpr___n_kwif_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwif= on <self:AIfExpr>*/
6114 var7
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
; /* _n_expr on <self:AIfExpr> */
6115 if (unlikely(var7
== NULL
)) {
6116 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6117 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2482);
6121 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
6122 var_other
= var_old_child
;
6124 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
6125 var12
= var7
== var_other
;
6128 RET_LABEL11
:(void)0;
6137 /* <var_new_child:nullable ANode> isa AExpr */
6138 cltype14
= type_nit__AExpr
.color
;
6139 idtype15
= type_nit__AExpr
.id
;
6140 if(var_new_child
== NULL
) {
6143 if(cltype14
>= var_new_child
->type
->table_size
) {
6146 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6149 if (unlikely(!var13
)) {
6150 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6151 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
6152 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2483);
6156 nit__parser_prod___AIfExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_expr= on <self:AIfExpr>*/
6161 var17
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
; /* _n_then on <self:AIfExpr> */
6162 if (var17
== NULL
) {
6163 var18
= 0; /* <var_old_child:ANode> cannot be null */
6165 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable AExpr> */
6166 var_other
= var_old_child
;
6168 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable AExpr(AExpr)> */
6169 var23
= var17
== var_other
;
6172 RET_LABEL22
:(void)0;
6177 RET_LABEL20
:(void)0;
6182 /* <var_new_child:nullable ANode> isa nullable AExpr */
6183 cltype25
= type_nullable__nit__AExpr
.color
;
6184 idtype26
= type_nullable__nit__AExpr
.id
;
6185 if(var_new_child
== NULL
) {
6188 if(cltype25
>= var_new_child
->type
->table_size
) {
6191 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
6194 if (unlikely(!var24
)) {
6195 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6196 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name27
);
6197 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2487);
6201 nit__parser_prod___AIfExpr___n_then_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_then= on <self:AIfExpr>*/
6206 var28
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
; /* _n_else on <self:AIfExpr> */
6207 if (var28
== NULL
) {
6208 var29
= 0; /* <var_old_child:ANode> cannot be null */
6210 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:nullable AExpr> */
6211 var_other
= var_old_child
;
6213 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:nullable AExpr(AExpr)> */
6214 var34
= var28
== var_other
;
6217 RET_LABEL33
:(void)0;
6222 RET_LABEL31
:(void)0;
6227 /* <var_new_child:nullable ANode> isa nullable AExpr */
6228 cltype36
= type_nullable__nit__AExpr
.color
;
6229 idtype37
= type_nullable__nit__AExpr
.id
;
6230 if(var_new_child
== NULL
) {
6233 if(cltype36
>= var_new_child
->type
->table_size
) {
6236 var35
= var_new_child
->type
->type_table
[cltype36
] == idtype37
;
6239 if (unlikely(!var35
)) {
6240 var_class_name38
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6241 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name38
);
6242 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2491);
6246 nit__parser_prod___AIfExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_else= on <self:AIfExpr>*/
6253 /* method parser_prod#AIfExpr#n_kwif= for (self: AIfExpr, TKwif) */
6254 void nit__parser_prod___AIfExpr___n_kwif_61d(val
* self
, val
* p0
) {
6255 val
* var_node
/* var node: TKwif */;
6257 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
= var_node
; /* _n_kwif on <self:AIfExpr> */
6259 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwif> */
6260 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwif> */
6266 /* method parser_prod#AIfExpr#n_expr= for (self: AIfExpr, AExpr) */
6267 void nit__parser_prod___AIfExpr___n_expr_61d(val
* self
, val
* p0
) {
6268 val
* var_node
/* var node: AExpr */;
6270 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIfExpr> */
6272 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6273 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6279 /* method parser_prod#AIfExpr#n_then= for (self: AIfExpr, nullable AExpr) */
6280 void nit__parser_prod___AIfExpr___n_then_61d(val
* self
, val
* p0
) {
6281 val
* var_node
/* var node: nullable AExpr */;
6282 val
* var
/* : null */;
6283 short int var1
/* : Bool */;
6284 short int var2
/* : Bool */;
6285 val
* var_other
/* var other: nullable Object */;
6286 short int var4
/* : Bool */;
6287 short int var5
/* : Bool */;
6289 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
= var_node
; /* _n_then on <self:AIfExpr> */
6291 if (var_node
== NULL
) {
6292 var1
= 0; /* is null */
6294 var1
= 1; /* arg is null and recv is not */
6297 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6300 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
6311 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6312 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6320 /* method parser_prod#AIfExpr#n_else= for (self: AIfExpr, nullable AExpr) */
6321 void nit__parser_prod___AIfExpr___n_else_61d(val
* self
, val
* p0
) {
6322 val
* var_node
/* var node: nullable AExpr */;
6323 val
* var
/* : null */;
6324 short int var1
/* : Bool */;
6325 short int var2
/* : Bool */;
6326 val
* var_other
/* var other: nullable Object */;
6327 short int var4
/* : Bool */;
6328 short int var5
/* : Bool */;
6330 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
= var_node
; /* _n_else on <self:AIfExpr> */
6332 if (var_node
== NULL
) {
6333 var1
= 0; /* is null */
6335 var1
= 1; /* arg is null and recv is not */
6338 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6341 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
6352 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6353 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6361 /* method parser_prod#AIfExpr#visit_all for (self: AIfExpr, Visitor) */
6362 void nit__parser_prod___AIfExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6363 val
* var_v
/* var v: Visitor */;
6364 val
* var
/* : TKwif */;
6365 val
* var1
/* : AExpr */;
6366 val
* var2
/* : nullable AExpr */;
6367 val
* var3
/* : nullable AExpr */;
6369 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
; /* _n_kwif on <self:AIfExpr> */
6370 if (unlikely(var
== NULL
)) {
6371 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
6372 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2520);
6376 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6378 var1
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
; /* _n_expr on <self:AIfExpr> */
6379 if (unlikely(var1
== NULL
)) {
6380 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6381 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2521);
6385 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6387 var2
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
; /* _n_then on <self:AIfExpr> */
6389 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6391 var3
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
; /* _n_else on <self:AIfExpr> */
6393 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6397 /* method parser_prod#AIfexprExpr#init_aifexprexpr for (self: AIfexprExpr, nullable TKwif, nullable AExpr, nullable TKwthen, nullable AExpr, nullable TKwelse, nullable AExpr) */
6398 void nit__parser_prod___AIfexprExpr___init_aifexprexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
6399 val
* var_n_kwif
/* var n_kwif: nullable TKwif */;
6400 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6401 val
* var_n_kwthen
/* var n_kwthen: nullable TKwthen */;
6402 val
* var_n_then
/* var n_then: nullable AExpr */;
6403 val
* var_n_kwelse
/* var n_kwelse: nullable TKwelse */;
6404 val
* var_n_else
/* var n_else: nullable AExpr */;
6411 if (unlikely(var_n_kwif
== NULL
)) {
6412 PRINT_ERROR("Runtime error: %s", "Cast failed");
6413 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2536);
6416 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
= var_n_kwif
; /* _n_kwif on <self:AIfexprExpr> */
6417 if (var_n_kwif
== NULL
) {
6418 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6419 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2537);
6422 { /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on <var_n_kwif:nullable TKwif> */
6423 if (unlikely(var_n_kwif
== NULL
)) {
6424 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6425 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6428 var_n_kwif
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwif:nullable TKwif> */
6432 if (unlikely(var_n_expr
== NULL
)) {
6433 PRINT_ERROR("Runtime error: %s", "Cast failed");
6434 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2538);
6437 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIfexprExpr> */
6438 if (var_n_expr
== NULL
) {
6439 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6440 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2539);
6443 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6444 if (unlikely(var_n_expr
== NULL
)) {
6445 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6446 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6449 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6453 if (unlikely(var_n_kwthen
== NULL
)) {
6454 PRINT_ERROR("Runtime error: %s", "Cast failed");
6455 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2540);
6458 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
= var_n_kwthen
; /* _n_kwthen on <self:AIfexprExpr> */
6459 if (var_n_kwthen
== NULL
) {
6460 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6461 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2541);
6464 { /* Inline parser_nodes#ANode#parent= (var_n_kwthen,self) on <var_n_kwthen:nullable TKwthen> */
6465 if (unlikely(var_n_kwthen
== NULL
)) {
6466 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6467 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6470 var_n_kwthen
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwthen:nullable TKwthen> */
6474 if (unlikely(var_n_then
== NULL
)) {
6475 PRINT_ERROR("Runtime error: %s", "Cast failed");
6476 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2542);
6479 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
= var_n_then
; /* _n_then on <self:AIfexprExpr> */
6480 if (var_n_then
== NULL
) {
6481 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6482 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2543);
6485 { /* Inline parser_nodes#ANode#parent= (var_n_then,self) on <var_n_then:nullable AExpr> */
6486 if (unlikely(var_n_then
== NULL
)) {
6487 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6488 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6491 var_n_then
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_then:nullable AExpr> */
6495 if (unlikely(var_n_kwelse
== NULL
)) {
6496 PRINT_ERROR("Runtime error: %s", "Cast failed");
6497 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2544);
6500 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
= var_n_kwelse
; /* _n_kwelse on <self:AIfexprExpr> */
6501 if (var_n_kwelse
== NULL
) {
6502 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6503 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2545);
6506 { /* Inline parser_nodes#ANode#parent= (var_n_kwelse,self) on <var_n_kwelse:nullable TKwelse> */
6507 if (unlikely(var_n_kwelse
== NULL
)) {
6508 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6509 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6512 var_n_kwelse
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwelse:nullable TKwelse> */
6516 if (unlikely(var_n_else
== NULL
)) {
6517 PRINT_ERROR("Runtime error: %s", "Cast failed");
6518 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2546);
6521 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AIfexprExpr> */
6522 if (var_n_else
== NULL
) {
6523 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6524 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2547);
6527 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr> */
6528 if (unlikely(var_n_else
== NULL
)) {
6529 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6530 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6533 var_n_else
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr> */
6539 /* method parser_prod#AIfexprExpr#replace_child for (self: AIfexprExpr, ANode, nullable ANode) */
6540 void nit__parser_prod___AIfexprExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6541 val
* var_old_child
/* var old_child: ANode */;
6542 val
* var_new_child
/* var new_child: nullable ANode */;
6543 val
* var
/* : TKwif */;
6544 short int var1
/* : Bool */;
6545 val
* var_other
/* var other: nullable Object */;
6546 short int var3
/* : Bool */;
6547 short int var5
/* : Bool */;
6548 short int var6
/* : Bool */;
6551 const char* var_class_name
;
6552 val
* var7
/* : AExpr */;
6553 short int var8
/* : Bool */;
6554 short int var10
/* : Bool */;
6555 short int var12
/* : Bool */;
6556 short int var13
/* : Bool */;
6559 const char* var_class_name16
;
6560 val
* var17
/* : TKwthen */;
6561 short int var18
/* : Bool */;
6562 short int var20
/* : Bool */;
6563 short int var22
/* : Bool */;
6564 short int var23
/* : Bool */;
6567 const char* var_class_name26
;
6568 val
* var27
/* : AExpr */;
6569 short int var28
/* : Bool */;
6570 short int var30
/* : Bool */;
6571 short int var32
/* : Bool */;
6572 short int var33
/* : Bool */;
6575 const char* var_class_name36
;
6576 val
* var37
/* : TKwelse */;
6577 short int var38
/* : Bool */;
6578 short int var40
/* : Bool */;
6579 short int var42
/* : Bool */;
6580 short int var43
/* : Bool */;
6583 const char* var_class_name46
;
6584 val
* var47
/* : AExpr */;
6585 short int var48
/* : Bool */;
6586 short int var50
/* : Bool */;
6587 short int var52
/* : Bool */;
6588 short int var53
/* : Bool */;
6591 const char* var_class_name56
;
6594 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
; /* _n_kwif on <self:AIfexprExpr> */
6595 if (unlikely(var
== NULL
)) {
6596 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
6597 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2552);
6601 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwif> */
6602 var_other
= var_old_child
;
6604 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwif> */
6605 var5
= var
== var_other
;
6617 /* <var_new_child:nullable ANode> isa TKwif */
6618 cltype
= type_nit__TKwif
.color
;
6619 idtype
= type_nit__TKwif
.id
;
6620 if(var_new_child
== NULL
) {
6623 if(cltype
>= var_new_child
->type
->table_size
) {
6626 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6629 if (unlikely(!var6
)) {
6630 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6631 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name
);
6632 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2553);
6636 nit__parser_prod___AIfexprExpr___n_kwif_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwif= on <self:AIfexprExpr>*/
6641 var7
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
; /* _n_expr on <self:AIfexprExpr> */
6642 if (unlikely(var7
== NULL
)) {
6643 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6644 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2556);
6648 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
6649 var_other
= var_old_child
;
6651 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
6652 var12
= var7
== var_other
;
6655 RET_LABEL11
:(void)0;
6664 /* <var_new_child:nullable ANode> isa AExpr */
6665 cltype14
= type_nit__AExpr
.color
;
6666 idtype15
= type_nit__AExpr
.id
;
6667 if(var_new_child
== NULL
) {
6670 if(cltype14
>= var_new_child
->type
->table_size
) {
6673 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6676 if (unlikely(!var13
)) {
6677 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6678 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
6679 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2557);
6683 nit__parser_prod___AIfexprExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_expr= on <self:AIfexprExpr>*/
6688 var17
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfexprExpr> */
6689 if (unlikely(var17
== NULL
)) {
6690 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
6691 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2560);
6695 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwthen> */
6696 var_other
= var_old_child
;
6698 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwthen> */
6699 var22
= var17
== var_other
;
6702 RET_LABEL21
:(void)0;
6707 RET_LABEL19
:(void)0;
6711 /* <var_new_child:nullable ANode> isa TKwthen */
6712 cltype24
= type_nit__TKwthen
.color
;
6713 idtype25
= type_nit__TKwthen
.id
;
6714 if(var_new_child
== NULL
) {
6717 if(cltype24
>= var_new_child
->type
->table_size
) {
6720 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6723 if (unlikely(!var23
)) {
6724 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6725 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwthen", var_class_name26
);
6726 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2561);
6730 nit__parser_prod___AIfexprExpr___n_kwthen_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwthen= on <self:AIfexprExpr>*/
6735 var27
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
; /* _n_then on <self:AIfexprExpr> */
6736 if (unlikely(var27
== NULL
)) {
6737 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_then");
6738 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2564);
6742 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
6743 var_other
= var_old_child
;
6745 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
6746 var32
= var27
== var_other
;
6749 RET_LABEL31
:(void)0;
6754 RET_LABEL29
:(void)0;
6758 /* <var_new_child:nullable ANode> isa AExpr */
6759 cltype34
= type_nit__AExpr
.color
;
6760 idtype35
= type_nit__AExpr
.id
;
6761 if(var_new_child
== NULL
) {
6764 if(cltype34
>= var_new_child
->type
->table_size
) {
6767 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6770 if (unlikely(!var33
)) {
6771 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6772 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
6773 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2565);
6777 nit__parser_prod___AIfexprExpr___n_then_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_then= on <self:AIfexprExpr>*/
6782 var37
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfexprExpr> */
6783 if (unlikely(var37
== NULL
)) {
6784 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwelse");
6785 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2568);
6789 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TKwelse> */
6790 var_other
= var_old_child
;
6792 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TKwelse> */
6793 var42
= var37
== var_other
;
6796 RET_LABEL41
:(void)0;
6801 RET_LABEL39
:(void)0;
6805 /* <var_new_child:nullable ANode> isa TKwelse */
6806 cltype44
= type_nit__TKwelse
.color
;
6807 idtype45
= type_nit__TKwelse
.id
;
6808 if(var_new_child
== NULL
) {
6811 if(cltype44
>= var_new_child
->type
->table_size
) {
6814 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
6817 if (unlikely(!var43
)) {
6818 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6819 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwelse", var_class_name46
);
6820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2569);
6824 nit__parser_prod___AIfexprExpr___n_kwelse_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwelse= on <self:AIfexprExpr>*/
6829 var47
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
; /* _n_else on <self:AIfexprExpr> */
6830 if (unlikely(var47
== NULL
)) {
6831 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_else");
6832 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2572);
6836 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:AExpr> */
6837 var_other
= var_old_child
;
6839 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:AExpr> */
6840 var52
= var47
== var_other
;
6843 RET_LABEL51
:(void)0;
6848 RET_LABEL49
:(void)0;
6852 /* <var_new_child:nullable ANode> isa AExpr */
6853 cltype54
= type_nit__AExpr
.color
;
6854 idtype55
= type_nit__AExpr
.id
;
6855 if(var_new_child
== NULL
) {
6858 if(cltype54
>= var_new_child
->type
->table_size
) {
6861 var53
= var_new_child
->type
->type_table
[cltype54
] == idtype55
;
6864 if (unlikely(!var53
)) {
6865 var_class_name56
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6866 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name56
);
6867 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2573);
6871 nit__parser_prod___AIfexprExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_else= on <self:AIfexprExpr>*/
6878 /* method parser_prod#AIfexprExpr#n_kwif= for (self: AIfexprExpr, TKwif) */
6879 void nit__parser_prod___AIfexprExpr___n_kwif_61d(val
* self
, val
* p0
) {
6880 val
* var_node
/* var node: TKwif */;
6882 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
= var_node
; /* _n_kwif on <self:AIfexprExpr> */
6884 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwif> */
6885 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwif> */
6891 /* method parser_prod#AIfexprExpr#n_expr= for (self: AIfexprExpr, AExpr) */
6892 void nit__parser_prod___AIfexprExpr___n_expr_61d(val
* self
, val
* p0
) {
6893 val
* var_node
/* var node: AExpr */;
6895 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIfexprExpr> */
6897 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6898 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6904 /* method parser_prod#AIfexprExpr#n_kwthen= for (self: AIfexprExpr, TKwthen) */
6905 void nit__parser_prod___AIfexprExpr___n_kwthen_61d(val
* self
, val
* p0
) {
6906 val
* var_node
/* var node: TKwthen */;
6908 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
= var_node
; /* _n_kwthen on <self:AIfexprExpr> */
6910 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwthen> */
6911 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwthen> */
6917 /* method parser_prod#AIfexprExpr#n_then= for (self: AIfexprExpr, AExpr) */
6918 void nit__parser_prod___AIfexprExpr___n_then_61d(val
* self
, val
* p0
) {
6919 val
* var_node
/* var node: AExpr */;
6921 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
= var_node
; /* _n_then on <self:AIfexprExpr> */
6923 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6924 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6930 /* method parser_prod#AIfexprExpr#n_kwelse= for (self: AIfexprExpr, TKwelse) */
6931 void nit__parser_prod___AIfexprExpr___n_kwelse_61d(val
* self
, val
* p0
) {
6932 val
* var_node
/* var node: TKwelse */;
6934 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
= var_node
; /* _n_kwelse on <self:AIfexprExpr> */
6936 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwelse> */
6937 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwelse> */
6943 /* method parser_prod#AIfexprExpr#n_else= for (self: AIfexprExpr, AExpr) */
6944 void nit__parser_prod___AIfexprExpr___n_else_61d(val
* self
, val
* p0
) {
6945 val
* var_node
/* var node: AExpr */;
6947 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
= var_node
; /* _n_else on <self:AIfexprExpr> */
6949 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6950 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6956 /* method parser_prod#AIfexprExpr#visit_all for (self: AIfexprExpr, Visitor) */
6957 void nit__parser_prod___AIfexprExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6958 val
* var_v
/* var v: Visitor */;
6959 val
* var
/* : TKwif */;
6960 val
* var1
/* : AExpr */;
6961 val
* var2
/* : TKwthen */;
6962 val
* var3
/* : AExpr */;
6963 val
* var4
/* : TKwelse */;
6964 val
* var5
/* : AExpr */;
6966 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
; /* _n_kwif on <self:AIfexprExpr> */
6967 if (unlikely(var
== NULL
)) {
6968 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
6969 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2612);
6973 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6975 var1
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
; /* _n_expr on <self:AIfexprExpr> */
6976 if (unlikely(var1
== NULL
)) {
6977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6978 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2613);
6982 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6984 var2
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfexprExpr> */
6985 if (unlikely(var2
== NULL
)) {
6986 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
6987 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2614);
6991 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6993 var3
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
; /* _n_then on <self:AIfexprExpr> */
6994 if (unlikely(var3
== NULL
)) {
6995 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_then");
6996 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2615);
7000 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7002 var4
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfexprExpr> */
7003 if (unlikely(var4
== NULL
)) {
7004 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwelse");
7005 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2616);
7009 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7011 var5
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
; /* _n_else on <self:AIfexprExpr> */
7012 if (unlikely(var5
== NULL
)) {
7013 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_else");
7014 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2617);
7018 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7022 /* method parser_prod#AWhileExpr#init_awhileexpr for (self: AWhileExpr, nullable TKwwhile, nullable AExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */
7023 void nit__parser_prod___AWhileExpr___init_awhileexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
7024 val
* var_n_kwwhile
/* var n_kwwhile: nullable TKwwhile */;
7025 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7026 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
7027 val
* var_n_block
/* var n_block: nullable AExpr */;
7028 val
* var_n_label
/* var n_label: nullable ALabel */;
7029 val
* var
/* : null */;
7030 short int var4
/* : Bool */;
7031 short int var5
/* : Bool */;
7032 val
* var_other
/* var other: nullable Object */;
7033 short int var7
/* : Bool */;
7034 short int var8
/* : Bool */;
7035 val
* var10
/* : null */;
7036 short int var11
/* : Bool */;
7037 short int var12
/* : Bool */;
7038 short int var14
/* : Bool */;
7039 short int var15
/* : Bool */;
7045 if (unlikely(var_n_kwwhile
== NULL
)) {
7046 PRINT_ERROR("Runtime error: %s", "Cast failed");
7047 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2629);
7050 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwwhile
].val
= var_n_kwwhile
; /* _n_kwwhile on <self:AWhileExpr> */
7051 if (var_n_kwwhile
== NULL
) {
7052 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7053 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2630);
7056 { /* Inline parser_nodes#ANode#parent= (var_n_kwwhile,self) on <var_n_kwwhile:nullable TKwwhile> */
7057 if (unlikely(var_n_kwwhile
== NULL
)) {
7058 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7059 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7062 var_n_kwwhile
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwwhile:nullable TKwwhile> */
7066 if (unlikely(var_n_expr
== NULL
)) {
7067 PRINT_ERROR("Runtime error: %s", "Cast failed");
7068 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2631);
7071 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AWhileExpr> */
7072 if (var_n_expr
== NULL
) {
7073 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7074 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2632);
7077 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
7078 if (unlikely(var_n_expr
== NULL
)) {
7079 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7080 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7083 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
7087 if (unlikely(var_n_kwdo
== NULL
)) {
7088 PRINT_ERROR("Runtime error: %s", "Cast failed");
7089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2633);
7092 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:AWhileExpr> */
7093 if (var_n_kwdo
== NULL
) {
7094 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7095 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2634);
7098 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo> */
7099 if (unlikely(var_n_kwdo
== NULL
)) {
7100 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7101 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7104 var_n_kwdo
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo> */
7108 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_block
].val
= var_n_block
; /* _n_block on <self:AWhileExpr> */
7110 if (var_n_block
== NULL
) {
7111 var4
= 0; /* is null */
7113 var4
= 1; /* arg is null and recv is not */
7116 { /* Inline kernel#Object#!= (var_n_block,var) on <var_n_block:nullable AExpr> */
7119 var7
= ((short int (*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
7130 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
7131 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
7137 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:AWhileExpr> */
7139 if (var_n_label
== NULL
) {
7140 var11
= 0; /* is null */
7142 var11
= 1; /* arg is null and recv is not */
7145 { /* Inline kernel#Object#!= (var_n_label,var10) on <var_n_label:nullable ALabel> */
7148 var14
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
7153 RET_LABEL13
:(void)0;
7159 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
7160 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
7161 RET_LABEL16
:(void)0;
7168 /* method parser_prod#AWhileExpr#replace_child for (self: AWhileExpr, ANode, nullable ANode) */
7169 void nit__parser_prod___AWhileExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7170 val
* var_old_child
/* var old_child: ANode */;
7171 val
* var_new_child
/* var new_child: nullable ANode */;
7172 val
* var
/* : TKwwhile */;
7173 short int var1
/* : Bool */;
7174 val
* var_other
/* var other: nullable Object */;
7175 short int var3
/* : Bool */;
7176 short int var5
/* : Bool */;
7177 short int var6
/* : Bool */;
7180 const char* var_class_name
;
7181 val
* var7
/* : AExpr */;
7182 short int var8
/* : Bool */;
7183 short int var10
/* : Bool */;
7184 short int var12
/* : Bool */;
7185 short int var13
/* : Bool */;
7188 const char* var_class_name16
;
7189 val
* var17
/* : TKwdo */;
7190 short int var18
/* : Bool */;
7191 short int var20
/* : Bool */;
7192 short int var22
/* : Bool */;
7193 short int var23
/* : Bool */;
7196 const char* var_class_name26
;
7197 val
* var27
/* : nullable AExpr */;
7198 short int var28
/* : Bool */;
7199 short int var29
/* : Bool */;
7200 short int var31
/* : Bool */;
7201 short int var33
/* : Bool */;
7202 short int var34
/* : Bool */;
7205 const char* var_class_name37
;
7206 val
* var38
/* : nullable ALabel */;
7207 short int var39
/* : Bool */;
7208 short int var40
/* : Bool */;
7209 short int var42
/* : Bool */;
7210 short int var44
/* : Bool */;
7211 short int var45
/* : Bool */;
7214 const char* var_class_name48
;
7217 var
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwwhile
].val
; /* _n_kwwhile on <self:AWhileExpr> */
7218 if (unlikely(var
== NULL
)) {
7219 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwwhile");
7220 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2643);
7224 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwwhile> */
7225 var_other
= var_old_child
;
7227 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwwhile> */
7228 var5
= var
== var_other
;
7240 /* <var_new_child:nullable ANode> isa TKwwhile */
7241 cltype
= type_nit__TKwwhile
.color
;
7242 idtype
= type_nit__TKwwhile
.id
;
7243 if(var_new_child
== NULL
) {
7246 if(cltype
>= var_new_child
->type
->table_size
) {
7249 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7252 if (unlikely(!var6
)) {
7253 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7254 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwwhile", var_class_name
);
7255 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2644);
7259 nit__parser_prod___AWhileExpr___n_kwwhile_61d(self
, var_new_child
); /* Direct call parser_prod#AWhileExpr#n_kwwhile= on <self:AWhileExpr>*/
7264 var7
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_expr
].val
; /* _n_expr on <self:AWhileExpr> */
7265 if (unlikely(var7
== NULL
)) {
7266 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7267 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2647);
7271 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
7272 var_other
= var_old_child
;
7274 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
7275 var12
= var7
== var_other
;
7278 RET_LABEL11
:(void)0;
7287 /* <var_new_child:nullable ANode> isa AExpr */
7288 cltype14
= type_nit__AExpr
.color
;
7289 idtype15
= type_nit__AExpr
.id
;
7290 if(var_new_child
== NULL
) {
7293 if(cltype14
>= var_new_child
->type
->table_size
) {
7296 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7299 if (unlikely(!var13
)) {
7300 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7301 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
7302 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2648);
7306 nit__parser_prod___AWhileExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AWhileExpr#n_expr= on <self:AWhileExpr>*/
7311 var17
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwdo
].val
; /* _n_kwdo on <self:AWhileExpr> */
7312 if (unlikely(var17
== NULL
)) {
7313 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
7314 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2651);
7318 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwdo> */
7319 var_other
= var_old_child
;
7321 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwdo> */
7322 var22
= var17
== var_other
;
7325 RET_LABEL21
:(void)0;
7330 RET_LABEL19
:(void)0;
7334 /* <var_new_child:nullable ANode> isa TKwdo */
7335 cltype24
= type_nit__TKwdo
.color
;
7336 idtype25
= type_nit__TKwdo
.id
;
7337 if(var_new_child
== NULL
) {
7340 if(cltype24
>= var_new_child
->type
->table_size
) {
7343 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
7346 if (unlikely(!var23
)) {
7347 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7348 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name26
);
7349 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2652);
7353 nit__parser_prod___AWhileExpr___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#AWhileExpr#n_kwdo= on <self:AWhileExpr>*/
7358 var27
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_block
].val
; /* _n_block on <self:AWhileExpr> */
7359 if (var27
== NULL
) {
7360 var28
= 0; /* <var_old_child:ANode> cannot be null */
7362 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AExpr> */
7363 var_other
= var_old_child
;
7365 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AExpr(AExpr)> */
7366 var33
= var27
== var_other
;
7369 RET_LABEL32
:(void)0;
7374 RET_LABEL30
:(void)0;
7379 /* <var_new_child:nullable ANode> isa nullable AExpr */
7380 cltype35
= type_nullable__nit__AExpr
.color
;
7381 idtype36
= type_nullable__nit__AExpr
.id
;
7382 if(var_new_child
== NULL
) {
7385 if(cltype35
>= var_new_child
->type
->table_size
) {
7388 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
7391 if (unlikely(!var34
)) {
7392 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7393 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name37
);
7394 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2656);
7398 nit__parser_prod___AWhileExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AWhileExpr#n_block= on <self:AWhileExpr>*/
7403 var38
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AWhileExpr> */
7404 if (var38
== NULL
) {
7405 var39
= 0; /* <var_old_child:ANode> cannot be null */
7407 { /* Inline kernel#Object#== (var38,var_old_child) on <var38:nullable ALabel> */
7408 var_other
= var_old_child
;
7410 { /* Inline kernel#Object#is_same_instance (var38,var_other) on <var38:nullable ALabel(ALabel)> */
7411 var44
= var38
== var_other
;
7414 RET_LABEL43
:(void)0;
7419 RET_LABEL41
:(void)0;
7424 /* <var_new_child:nullable ANode> isa nullable ALabel */
7425 cltype46
= type_nullable__nit__ALabel
.color
;
7426 idtype47
= type_nullable__nit__ALabel
.id
;
7427 if(var_new_child
== NULL
) {
7430 if(cltype46
>= var_new_child
->type
->table_size
) {
7433 var45
= var_new_child
->type
->type_table
[cltype46
] == idtype47
;
7436 if (unlikely(!var45
)) {
7437 var_class_name48
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7438 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name48
);
7439 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2660);
7443 nit__parser_prod___AWhileExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#AWhileExpr#n_label= on <self:AWhileExpr>*/
7450 /* method parser_prod#AWhileExpr#n_kwwhile= for (self: AWhileExpr, TKwwhile) */
7451 void nit__parser_prod___AWhileExpr___n_kwwhile_61d(val
* self
, val
* p0
) {
7452 val
* var_node
/* var node: TKwwhile */;
7454 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwwhile
].val
= var_node
; /* _n_kwwhile on <self:AWhileExpr> */
7456 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwwhile> */
7457 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwwhile> */
7463 /* method parser_prod#AWhileExpr#n_expr= for (self: AWhileExpr, AExpr) */
7464 void nit__parser_prod___AWhileExpr___n_expr_61d(val
* self
, val
* p0
) {
7465 val
* var_node
/* var node: AExpr */;
7467 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AWhileExpr> */
7469 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7470 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7476 /* method parser_prod#AWhileExpr#n_kwdo= for (self: AWhileExpr, TKwdo) */
7477 void nit__parser_prod___AWhileExpr___n_kwdo_61d(val
* self
, val
* p0
) {
7478 val
* var_node
/* var node: TKwdo */;
7480 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:AWhileExpr> */
7482 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdo> */
7483 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdo> */
7489 /* method parser_prod#AWhileExpr#n_block= for (self: AWhileExpr, nullable AExpr) */
7490 void nit__parser_prod___AWhileExpr___n_block_61d(val
* self
, val
* p0
) {
7491 val
* var_node
/* var node: nullable AExpr */;
7492 val
* var
/* : null */;
7493 short int var1
/* : Bool */;
7494 short int var2
/* : Bool */;
7495 val
* var_other
/* var other: nullable Object */;
7496 short int var4
/* : Bool */;
7497 short int var5
/* : Bool */;
7499 self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_block
].val
= var_node
; /* _n_block on <self:AWhileExpr> */
7501 if (var_node
== NULL
) {
7502 var1
= 0; /* is null */
7504 var1
= 1; /* arg is null and recv is not */
7507 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
7510 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
7521 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7522 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7530 /* method parser_prod#AWhileExpr#n_label= for (self: AWhileExpr, nullable ALabel) */
7531 void nit__parser_prod___AWhileExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
7532 val
* var_node
/* var node: nullable ALabel */;
7533 val
* var
/* : null */;
7534 short int var1
/* : Bool */;
7535 short int var2
/* : Bool */;
7536 val
* var_other
/* var other: nullable Object */;
7537 short int var4
/* : Bool */;
7538 short int var5
/* : Bool */;
7540 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:AWhileExpr> */
7542 if (var_node
== NULL
) {
7543 var1
= 0; /* is null */
7545 var1
= 1; /* arg is null and recv is not */
7548 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
7551 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
7562 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
7563 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
7571 /* method parser_prod#AWhileExpr#visit_all for (self: AWhileExpr, Visitor) */
7572 void nit__parser_prod___AWhileExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7573 val
* var_v
/* var v: Visitor */;
7574 val
* var
/* : TKwwhile */;
7575 val
* var1
/* : AExpr */;
7576 val
* var2
/* : TKwdo */;
7577 val
* var3
/* : nullable AExpr */;
7578 val
* var4
/* : nullable ALabel */;
7580 var
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwwhile
].val
; /* _n_kwwhile on <self:AWhileExpr> */
7581 if (unlikely(var
== NULL
)) {
7582 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwwhile");
7583 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2694);
7587 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7589 var1
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_expr
].val
; /* _n_expr on <self:AWhileExpr> */
7590 if (unlikely(var1
== NULL
)) {
7591 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7592 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2695);
7596 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7598 var2
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_kwdo
].val
; /* _n_kwdo on <self:AWhileExpr> */
7599 if (unlikely(var2
== NULL
)) {
7600 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
7601 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2696);
7605 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7607 var3
= self
->attrs
[COLOR_nit__parser_nodes__AWhileExpr___n_block
].val
; /* _n_block on <self:AWhileExpr> */
7609 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7611 var4
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AWhileExpr> */
7613 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7617 /* method parser_prod#ALoopExpr#init_aloopexpr for (self: ALoopExpr, nullable TKwloop, nullable AExpr, nullable ALabel) */
7618 void nit__parser_prod___ALoopExpr___init_aloopexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7619 val
* var_n_kwloop
/* var n_kwloop: nullable TKwloop */;
7620 val
* var_n_block
/* var n_block: nullable AExpr */;
7621 val
* var_n_label
/* var n_label: nullable ALabel */;
7622 val
* var
/* : null */;
7623 short int var2
/* : Bool */;
7624 short int var3
/* : Bool */;
7625 val
* var_other
/* var other: nullable Object */;
7626 short int var5
/* : Bool */;
7627 short int var6
/* : Bool */;
7628 val
* var8
/* : null */;
7629 short int var9
/* : Bool */;
7630 short int var10
/* : Bool */;
7631 short int var12
/* : Bool */;
7632 short int var13
/* : Bool */;
7636 if (unlikely(var_n_kwloop
== NULL
)) {
7637 PRINT_ERROR("Runtime error: %s", "Cast failed");
7638 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2708);
7641 self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_kwloop
].val
= var_n_kwloop
; /* _n_kwloop on <self:ALoopExpr> */
7642 if (var_n_kwloop
== NULL
) {
7643 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7644 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2709);
7647 { /* Inline parser_nodes#ANode#parent= (var_n_kwloop,self) on <var_n_kwloop:nullable TKwloop> */
7648 if (unlikely(var_n_kwloop
== NULL
)) {
7649 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7650 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7653 var_n_kwloop
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwloop:nullable TKwloop> */
7657 self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_block
].val
= var_n_block
; /* _n_block on <self:ALoopExpr> */
7659 if (var_n_block
== NULL
) {
7660 var2
= 0; /* is null */
7662 var2
= 1; /* arg is null and recv is not */
7665 { /* Inline kernel#Object#!= (var_n_block,var) on <var_n_block:nullable AExpr> */
7668 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
7679 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
7680 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
7686 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ALoopExpr> */
7688 if (var_n_label
== NULL
) {
7689 var9
= 0; /* is null */
7691 var9
= 1; /* arg is null and recv is not */
7694 { /* Inline kernel#Object#!= (var_n_label,var8) on <var_n_label:nullable ALabel> */
7697 var12
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
7702 RET_LABEL11
:(void)0;
7708 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
7709 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
7710 RET_LABEL14
:(void)0;
7717 /* method parser_prod#ALoopExpr#replace_child for (self: ALoopExpr, ANode, nullable ANode) */
7718 void nit__parser_prod___ALoopExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7719 val
* var_old_child
/* var old_child: ANode */;
7720 val
* var_new_child
/* var new_child: nullable ANode */;
7721 val
* var
/* : TKwloop */;
7722 short int var1
/* : Bool */;
7723 val
* var_other
/* var other: nullable Object */;
7724 short int var3
/* : Bool */;
7725 short int var5
/* : Bool */;
7726 short int var6
/* : Bool */;
7729 const char* var_class_name
;
7730 val
* var7
/* : nullable AExpr */;
7731 short int var8
/* : Bool */;
7732 short int var9
/* : Bool */;
7733 short int var11
/* : Bool */;
7734 short int var13
/* : Bool */;
7735 short int var14
/* : Bool */;
7738 const char* var_class_name17
;
7739 val
* var18
/* : nullable ALabel */;
7740 short int var19
/* : Bool */;
7741 short int var20
/* : Bool */;
7742 short int var22
/* : Bool */;
7743 short int var24
/* : Bool */;
7744 short int var25
/* : Bool */;
7747 const char* var_class_name28
;
7750 var
= self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_kwloop
].val
; /* _n_kwloop on <self:ALoopExpr> */
7751 if (unlikely(var
== NULL
)) {
7752 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwloop");
7753 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2718);
7757 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwloop> */
7758 var_other
= var_old_child
;
7760 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwloop> */
7761 var5
= var
== var_other
;
7773 /* <var_new_child:nullable ANode> isa TKwloop */
7774 cltype
= type_nit__TKwloop
.color
;
7775 idtype
= type_nit__TKwloop
.id
;
7776 if(var_new_child
== NULL
) {
7779 if(cltype
>= var_new_child
->type
->table_size
) {
7782 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7785 if (unlikely(!var6
)) {
7786 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7787 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwloop", var_class_name
);
7788 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2719);
7792 nit__parser_prod___ALoopExpr___n_kwloop_61d(self
, var_new_child
); /* Direct call parser_prod#ALoopExpr#n_kwloop= on <self:ALoopExpr>*/
7797 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_block
].val
; /* _n_block on <self:ALoopExpr> */
7799 var8
= 0; /* <var_old_child:ANode> cannot be null */
7801 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AExpr> */
7802 var_other
= var_old_child
;
7804 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AExpr(AExpr)> */
7805 var13
= var7
== var_other
;
7808 RET_LABEL12
:(void)0;
7813 RET_LABEL10
:(void)0;
7818 /* <var_new_child:nullable ANode> isa nullable AExpr */
7819 cltype15
= type_nullable__nit__AExpr
.color
;
7820 idtype16
= type_nullable__nit__AExpr
.id
;
7821 if(var_new_child
== NULL
) {
7824 if(cltype15
>= var_new_child
->type
->table_size
) {
7827 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
7830 if (unlikely(!var14
)) {
7831 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7832 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name17
);
7833 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2723);
7837 nit__parser_prod___ALoopExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#ALoopExpr#n_block= on <self:ALoopExpr>*/
7842 var18
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ALoopExpr> */
7843 if (var18
== NULL
) {
7844 var19
= 0; /* <var_old_child:ANode> cannot be null */
7846 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable ALabel> */
7847 var_other
= var_old_child
;
7849 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable ALabel(ALabel)> */
7850 var24
= var18
== var_other
;
7853 RET_LABEL23
:(void)0;
7858 RET_LABEL21
:(void)0;
7863 /* <var_new_child:nullable ANode> isa nullable ALabel */
7864 cltype26
= type_nullable__nit__ALabel
.color
;
7865 idtype27
= type_nullable__nit__ALabel
.id
;
7866 if(var_new_child
== NULL
) {
7869 if(cltype26
>= var_new_child
->type
->table_size
) {
7872 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7875 if (unlikely(!var25
)) {
7876 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7877 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name28
);
7878 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2727);
7882 nit__parser_prod___ALoopExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ALoopExpr#n_label= on <self:ALoopExpr>*/
7889 /* method parser_prod#ALoopExpr#n_kwloop= for (self: ALoopExpr, TKwloop) */
7890 void nit__parser_prod___ALoopExpr___n_kwloop_61d(val
* self
, val
* p0
) {
7891 val
* var_node
/* var node: TKwloop */;
7893 self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_kwloop
].val
= var_node
; /* _n_kwloop on <self:ALoopExpr> */
7895 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwloop> */
7896 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwloop> */
7902 /* method parser_prod#ALoopExpr#n_block= for (self: ALoopExpr, nullable AExpr) */
7903 void nit__parser_prod___ALoopExpr___n_block_61d(val
* self
, val
* p0
) {
7904 val
* var_node
/* var node: nullable AExpr */;
7905 val
* var
/* : null */;
7906 short int var1
/* : Bool */;
7907 short int var2
/* : Bool */;
7908 val
* var_other
/* var other: nullable Object */;
7909 short int var4
/* : Bool */;
7910 short int var5
/* : Bool */;
7912 self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_block
].val
= var_node
; /* _n_block on <self:ALoopExpr> */
7914 if (var_node
== NULL
) {
7915 var1
= 0; /* is null */
7917 var1
= 1; /* arg is null and recv is not */
7920 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
7923 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
7934 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7935 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7943 /* method parser_prod#ALoopExpr#n_label= for (self: ALoopExpr, nullable ALabel) */
7944 void nit__parser_prod___ALoopExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
7945 val
* var_node
/* var node: nullable ALabel */;
7946 val
* var
/* : null */;
7947 short int var1
/* : Bool */;
7948 short int var2
/* : Bool */;
7949 val
* var_other
/* var other: nullable Object */;
7950 short int var4
/* : Bool */;
7951 short int var5
/* : Bool */;
7953 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ALoopExpr> */
7955 if (var_node
== NULL
) {
7956 var1
= 0; /* is null */
7958 var1
= 1; /* arg is null and recv is not */
7961 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
7964 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
7975 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
7976 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
7984 /* method parser_prod#ALoopExpr#visit_all for (self: ALoopExpr, Visitor) */
7985 void nit__parser_prod___ALoopExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7986 val
* var_v
/* var v: Visitor */;
7987 val
* var
/* : TKwloop */;
7988 val
* var1
/* : nullable AExpr */;
7989 val
* var2
/* : nullable ALabel */;
7991 var
= self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_kwloop
].val
; /* _n_kwloop on <self:ALoopExpr> */
7992 if (unlikely(var
== NULL
)) {
7993 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwloop");
7994 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2751);
7998 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8000 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALoopExpr___n_block
].val
; /* _n_block on <self:ALoopExpr> */
8002 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8004 var2
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ALoopExpr> */
8006 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8010 /* method parser_prod#AForExpr#init_aforexpr for (self: AForExpr, nullable TKwfor, Collection[Object], nullable AExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */
8011 void nit__parser_prod___AForExpr___init_aforexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
8012 val
* var_n_kwfor
/* var n_kwfor: nullable TKwfor */;
8013 val
* var_n_ids
/* var n_ids: Collection[Object] */;
8014 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8015 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
8016 val
* var_n_block
/* var n_block: nullable AExpr */;
8017 val
* var_n_label
/* var n_label: nullable ALabel */;
8018 val
* var
/* : ANodes[TId] */;
8019 val
* var3
/* : ANodes[TId] */;
8020 val
* var6
/* : null */;
8021 short int var7
/* : Bool */;
8022 short int var8
/* : Bool */;
8023 val
* var_other
/* var other: nullable Object */;
8024 short int var10
/* : Bool */;
8025 short int var11
/* : Bool */;
8026 val
* var13
/* : null */;
8027 short int var14
/* : Bool */;
8028 short int var15
/* : Bool */;
8029 short int var17
/* : Bool */;
8030 short int var18
/* : Bool */;
8037 if (unlikely(var_n_kwfor
== NULL
)) {
8038 PRINT_ERROR("Runtime error: %s", "Cast failed");
8039 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2766);
8042 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwfor
].val
= var_n_kwfor
; /* _n_kwfor on <self:AForExpr> */
8043 if (var_n_kwfor
== NULL
) {
8044 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8045 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2767);
8048 { /* Inline parser_nodes#ANode#parent= (var_n_kwfor,self) on <var_n_kwfor:nullable TKwfor> */
8049 if (unlikely(var_n_kwfor
== NULL
)) {
8050 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8051 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8054 var_n_kwfor
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwfor:nullable TKwfor> */
8059 { /* Inline parser_nodes#AForExpr#n_ids (self) on <self:AForExpr> */
8060 var3
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_ids
].val
; /* _n_ids on <self:AForExpr> */
8061 if (unlikely(var3
== NULL
)) {
8062 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ids");
8063 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1735);
8071 nit___nit__ANodes___unsafe_add_all(var
, var_n_ids
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[TId]>*/
8073 if (unlikely(var_n_expr
== NULL
)) {
8074 PRINT_ERROR("Runtime error: %s", "Cast failed");
8075 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2769);
8078 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AForExpr> */
8079 if (var_n_expr
== NULL
) {
8080 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8081 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2770);
8084 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8085 if (unlikely(var_n_expr
== NULL
)) {
8086 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8090 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8094 if (unlikely(var_n_kwdo
== NULL
)) {
8095 PRINT_ERROR("Runtime error: %s", "Cast failed");
8096 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2771);
8099 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:AForExpr> */
8100 if (var_n_kwdo
== NULL
) {
8101 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8102 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2772);
8105 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo> */
8106 if (unlikely(var_n_kwdo
== NULL
)) {
8107 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8108 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8111 var_n_kwdo
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo> */
8115 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_block
].val
= var_n_block
; /* _n_block on <self:AForExpr> */
8117 if (var_n_block
== NULL
) {
8118 var7
= 0; /* is null */
8120 var7
= 1; /* arg is null and recv is not */
8123 { /* Inline kernel#Object#!= (var_n_block,var6) on <var_n_block:nullable AExpr> */
8126 var10
= ((short int (*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
8137 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
8138 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
8139 RET_LABEL12
:(void)0;
8144 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:AForExpr> */
8146 if (var_n_label
== NULL
) {
8147 var14
= 0; /* is null */
8149 var14
= 1; /* arg is null and recv is not */
8152 { /* Inline kernel#Object#!= (var_n_label,var13) on <var_n_label:nullable ALabel> */
8155 var17
= ((short int (*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
) /* == on <var_n_label:nullable ALabel(ALabel)>*/;
8160 RET_LABEL16
:(void)0;
8166 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
8167 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
8168 RET_LABEL19
:(void)0;
8175 /* method parser_prod#AForExpr#replace_child for (self: AForExpr, ANode, nullable ANode) */
8176 void nit__parser_prod___AForExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8177 val
* var_old_child
/* var old_child: ANode */;
8178 val
* var_new_child
/* var new_child: nullable ANode */;
8179 val
* var
/* : TKwfor */;
8180 short int var1
/* : Bool */;
8181 val
* var_other
/* var other: nullable Object */;
8182 short int var3
/* : Bool */;
8183 short int var5
/* : Bool */;
8184 short int var6
/* : Bool */;
8187 const char* var_class_name
;
8188 val
* var7
/* : ANodes[TId] */;
8189 val
* var9
/* : ANodes[TId] */;
8190 short int var10
/* : Bool */;
8191 val
* var11
/* : AExpr */;
8192 short int var12
/* : Bool */;
8193 short int var14
/* : Bool */;
8194 short int var16
/* : Bool */;
8195 short int var17
/* : Bool */;
8198 const char* var_class_name20
;
8199 val
* var21
/* : TKwdo */;
8200 short int var22
/* : Bool */;
8201 short int var24
/* : Bool */;
8202 short int var26
/* : Bool */;
8203 short int var27
/* : Bool */;
8206 const char* var_class_name30
;
8207 val
* var31
/* : nullable AExpr */;
8208 short int var32
/* : Bool */;
8209 short int var33
/* : Bool */;
8210 short int var35
/* : Bool */;
8211 short int var37
/* : Bool */;
8212 short int var38
/* : Bool */;
8215 const char* var_class_name41
;
8216 val
* var42
/* : nullable ALabel */;
8217 short int var43
/* : Bool */;
8218 short int var44
/* : Bool */;
8219 short int var46
/* : Bool */;
8220 short int var48
/* : Bool */;
8221 short int var49
/* : Bool */;
8224 const char* var_class_name52
;
8227 var
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwfor
].val
; /* _n_kwfor on <self:AForExpr> */
8228 if (unlikely(var
== NULL
)) {
8229 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfor");
8230 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2781);
8234 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwfor> */
8235 var_other
= var_old_child
;
8237 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwfor> */
8238 var5
= var
== var_other
;
8250 /* <var_new_child:nullable ANode> isa TKwfor */
8251 cltype
= type_nit__TKwfor
.color
;
8252 idtype
= type_nit__TKwfor
.id
;
8253 if(var_new_child
== NULL
) {
8256 if(cltype
>= var_new_child
->type
->table_size
) {
8259 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8262 if (unlikely(!var6
)) {
8263 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8264 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwfor", var_class_name
);
8265 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2782);
8269 nit__parser_prod___AForExpr___n_kwfor_61d(self
, var_new_child
); /* Direct call parser_prod#AForExpr#n_kwfor= on <self:AForExpr>*/
8275 { /* Inline parser_nodes#AForExpr#n_ids (self) on <self:AForExpr> */
8276 var9
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_ids
].val
; /* _n_ids on <self:AForExpr> */
8277 if (unlikely(var9
== NULL
)) {
8278 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ids");
8279 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1735);
8287 var10
= nit___nit__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
8293 var11
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_expr
].val
; /* _n_expr on <self:AForExpr> */
8294 if (unlikely(var11
== NULL
)) {
8295 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2786);
8300 { /* Inline kernel#Object#== (var11,var_old_child) on <var11:AExpr> */
8301 var_other
= var_old_child
;
8303 { /* Inline kernel#Object#is_same_instance (var11,var_other) on <var11:AExpr> */
8304 var16
= var11
== var_other
;
8307 RET_LABEL15
:(void)0;
8312 RET_LABEL13
:(void)0;
8316 /* <var_new_child:nullable ANode> isa AExpr */
8317 cltype18
= type_nit__AExpr
.color
;
8318 idtype19
= type_nit__AExpr
.id
;
8319 if(var_new_child
== NULL
) {
8322 if(cltype18
>= var_new_child
->type
->table_size
) {
8325 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
8328 if (unlikely(!var17
)) {
8329 var_class_name20
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8330 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name20
);
8331 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2787);
8335 nit__parser_prod___AForExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AForExpr#n_expr= on <self:AForExpr>*/
8340 var21
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwdo
].val
; /* _n_kwdo on <self:AForExpr> */
8341 if (unlikely(var21
== NULL
)) {
8342 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
8343 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2790);
8347 { /* Inline kernel#Object#== (var21,var_old_child) on <var21:TKwdo> */
8348 var_other
= var_old_child
;
8350 { /* Inline kernel#Object#is_same_instance (var21,var_other) on <var21:TKwdo> */
8351 var26
= var21
== var_other
;
8354 RET_LABEL25
:(void)0;
8359 RET_LABEL23
:(void)0;
8363 /* <var_new_child:nullable ANode> isa TKwdo */
8364 cltype28
= type_nit__TKwdo
.color
;
8365 idtype29
= type_nit__TKwdo
.id
;
8366 if(var_new_child
== NULL
) {
8369 if(cltype28
>= var_new_child
->type
->table_size
) {
8372 var27
= var_new_child
->type
->type_table
[cltype28
] == idtype29
;
8375 if (unlikely(!var27
)) {
8376 var_class_name30
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8377 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name30
);
8378 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2791);
8382 nit__parser_prod___AForExpr___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#AForExpr#n_kwdo= on <self:AForExpr>*/
8387 var31
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_block
].val
; /* _n_block on <self:AForExpr> */
8388 if (var31
== NULL
) {
8389 var32
= 0; /* <var_old_child:ANode> cannot be null */
8391 { /* Inline kernel#Object#== (var31,var_old_child) on <var31:nullable AExpr> */
8392 var_other
= var_old_child
;
8394 { /* Inline kernel#Object#is_same_instance (var31,var_other) on <var31:nullable AExpr(AExpr)> */
8395 var37
= var31
== var_other
;
8398 RET_LABEL36
:(void)0;
8403 RET_LABEL34
:(void)0;
8408 /* <var_new_child:nullable ANode> isa nullable AExpr */
8409 cltype39
= type_nullable__nit__AExpr
.color
;
8410 idtype40
= type_nullable__nit__AExpr
.id
;
8411 if(var_new_child
== NULL
) {
8414 if(cltype39
>= var_new_child
->type
->table_size
) {
8417 var38
= var_new_child
->type
->type_table
[cltype39
] == idtype40
;
8420 if (unlikely(!var38
)) {
8421 var_class_name41
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8422 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name41
);
8423 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2795);
8427 nit__parser_prod___AForExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AForExpr#n_block= on <self:AForExpr>*/
8432 var42
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AForExpr> */
8433 if (var42
== NULL
) {
8434 var43
= 0; /* <var_old_child:ANode> cannot be null */
8436 { /* Inline kernel#Object#== (var42,var_old_child) on <var42:nullable ALabel> */
8437 var_other
= var_old_child
;
8439 { /* Inline kernel#Object#is_same_instance (var42,var_other) on <var42:nullable ALabel(ALabel)> */
8440 var48
= var42
== var_other
;
8443 RET_LABEL47
:(void)0;
8448 RET_LABEL45
:(void)0;
8453 /* <var_new_child:nullable ANode> isa nullable ALabel */
8454 cltype50
= type_nullable__nit__ALabel
.color
;
8455 idtype51
= type_nullable__nit__ALabel
.id
;
8456 if(var_new_child
== NULL
) {
8459 if(cltype50
>= var_new_child
->type
->table_size
) {
8462 var49
= var_new_child
->type
->type_table
[cltype50
] == idtype51
;
8465 if (unlikely(!var49
)) {
8466 var_class_name52
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8467 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name52
);
8468 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2799);
8472 nit__parser_prod___AForExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#AForExpr#n_label= on <self:AForExpr>*/
8479 /* method parser_prod#AForExpr#n_kwfor= for (self: AForExpr, TKwfor) */
8480 void nit__parser_prod___AForExpr___n_kwfor_61d(val
* self
, val
* p0
) {
8481 val
* var_node
/* var node: TKwfor */;
8483 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwfor
].val
= var_node
; /* _n_kwfor on <self:AForExpr> */
8485 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwfor> */
8486 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwfor> */
8492 /* method parser_prod#AForExpr#n_expr= for (self: AForExpr, AExpr) */
8493 void nit__parser_prod___AForExpr___n_expr_61d(val
* self
, val
* p0
) {
8494 val
* var_node
/* var node: AExpr */;
8496 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AForExpr> */
8498 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8499 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8505 /* method parser_prod#AForExpr#n_kwdo= for (self: AForExpr, TKwdo) */
8506 void nit__parser_prod___AForExpr___n_kwdo_61d(val
* self
, val
* p0
) {
8507 val
* var_node
/* var node: TKwdo */;
8509 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:AForExpr> */
8511 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdo> */
8512 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdo> */
8518 /* method parser_prod#AForExpr#n_block= for (self: AForExpr, nullable AExpr) */
8519 void nit__parser_prod___AForExpr___n_block_61d(val
* self
, val
* p0
) {
8520 val
* var_node
/* var node: nullable AExpr */;
8521 val
* var
/* : null */;
8522 short int var1
/* : Bool */;
8523 short int var2
/* : Bool */;
8524 val
* var_other
/* var other: nullable Object */;
8525 short int var4
/* : Bool */;
8526 short int var5
/* : Bool */;
8528 self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_block
].val
= var_node
; /* _n_block on <self:AForExpr> */
8530 if (var_node
== NULL
) {
8531 var1
= 0; /* is null */
8533 var1
= 1; /* arg is null and recv is not */
8536 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
8539 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
8550 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
8551 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
8559 /* method parser_prod#AForExpr#n_label= for (self: AForExpr, nullable ALabel) */
8560 void nit__parser_prod___AForExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
8561 val
* var_node
/* var node: nullable ALabel */;
8562 val
* var
/* : null */;
8563 short int var1
/* : Bool */;
8564 short int var2
/* : Bool */;
8565 val
* var_other
/* var other: nullable Object */;
8566 short int var4
/* : Bool */;
8567 short int var5
/* : Bool */;
8569 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:AForExpr> */
8571 if (var_node
== NULL
) {
8572 var1
= 0; /* is null */
8574 var1
= 1; /* arg is null and recv is not */
8577 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ALabel> */
8580 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ALabel(ALabel)>*/;
8591 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
8592 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
8600 /* method parser_prod#AForExpr#visit_all for (self: AForExpr, Visitor) */
8601 void nit__parser_prod___AForExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8602 val
* var_v
/* var v: Visitor */;
8603 val
* var
/* : TKwfor */;
8604 val
* var1
/* : ANodes[TId] */;
8605 val
* var3
/* : ANodes[TId] */;
8606 val
* var4
/* : AExpr */;
8607 val
* var5
/* : TKwdo */;
8608 val
* var6
/* : nullable AExpr */;
8609 val
* var7
/* : nullable ALabel */;
8611 var
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwfor
].val
; /* _n_kwfor on <self:AForExpr> */
8612 if (unlikely(var
== NULL
)) {
8613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfor");
8614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2833);
8618 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8621 { /* Inline parser_nodes#AForExpr#n_ids (self) on <self:AForExpr> */
8622 var3
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_ids
].val
; /* _n_ids on <self:AForExpr> */
8623 if (unlikely(var3
== NULL
)) {
8624 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_ids");
8625 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1735);
8633 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[TId]>*/
8635 var4
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_expr
].val
; /* _n_expr on <self:AForExpr> */
8636 if (unlikely(var4
== NULL
)) {
8637 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8638 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2835);
8642 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8644 var5
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_kwdo
].val
; /* _n_kwdo on <self:AForExpr> */
8645 if (unlikely(var5
== NULL
)) {
8646 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
8647 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2836);
8651 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8653 var6
= self
->attrs
[COLOR_nit__parser_nodes__AForExpr___n_block
].val
; /* _n_block on <self:AForExpr> */
8655 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8657 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AForExpr> */
8659 nit___nit__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8663 /* method parser_prod#AAssertExpr#init_aassertexpr for (self: AAssertExpr, nullable TKwassert, nullable TId, nullable AExpr, nullable AExpr) */
8664 void nit__parser_prod___AAssertExpr___init_aassertexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
8665 val
* var_n_kwassert
/* var n_kwassert: nullable TKwassert */;
8666 val
* var_n_id
/* var n_id: nullable TId */;
8667 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8668 val
* var_n_else
/* var n_else: nullable AExpr */;
8669 val
* var
/* : null */;
8670 short int var2
/* : Bool */;
8671 short int var3
/* : Bool */;
8672 val
* var_other
/* var other: nullable Object */;
8673 short int var5
/* : Bool */;
8674 short int var6
/* : Bool */;
8675 val
* var9
/* : null */;
8676 short int var10
/* : Bool */;
8677 short int var11
/* : Bool */;
8678 short int var13
/* : Bool */;
8679 short int var14
/* : Bool */;
8680 var_n_kwassert
= p0
;
8684 if (unlikely(var_n_kwassert
== NULL
)) {
8685 PRINT_ERROR("Runtime error: %s", "Cast failed");
8686 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2849);
8689 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_kwassert
].val
= var_n_kwassert
; /* _n_kwassert on <self:AAssertExpr> */
8690 if (var_n_kwassert
== NULL
) {
8691 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8692 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2850);
8695 { /* Inline parser_nodes#ANode#parent= (var_n_kwassert,self) on <var_n_kwassert:nullable TKwassert> */
8696 if (unlikely(var_n_kwassert
== NULL
)) {
8697 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8698 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8701 var_n_kwassert
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwassert:nullable TKwassert> */
8705 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAssertExpr> */
8707 if (var_n_id
== NULL
) {
8708 var2
= 0; /* is null */
8710 var2
= 1; /* arg is null and recv is not */
8713 { /* Inline kernel#Object#!= (var_n_id,var) on <var_n_id:nullable TId> */
8716 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_id
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_id
, var_other
) /* == on <var_n_id:nullable TId(TId)>*/;
8727 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId(TId)> */
8728 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId(TId)> */
8734 if (unlikely(var_n_expr
== NULL
)) {
8735 PRINT_ERROR("Runtime error: %s", "Cast failed");
8736 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2853);
8739 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAssertExpr> */
8740 if (var_n_expr
== NULL
) {
8741 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8742 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2854);
8745 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8746 if (unlikely(var_n_expr
== NULL
)) {
8747 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8748 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8751 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8755 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AAssertExpr> */
8757 if (var_n_else
== NULL
) {
8758 var10
= 0; /* is null */
8760 var10
= 1; /* arg is null and recv is not */
8763 { /* Inline kernel#Object#!= (var_n_else,var9) on <var_n_else:nullable AExpr> */
8766 var13
= ((short int (*)(val
* self
, val
* p0
))(var_n_else
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_else
, var_other
) /* == on <var_n_else:nullable AExpr(AExpr)>*/;
8771 RET_LABEL12
:(void)0;
8777 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr(AExpr)> */
8778 var_n_else
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr(AExpr)> */
8779 RET_LABEL15
:(void)0;
8786 /* method parser_prod#AAssertExpr#replace_child for (self: AAssertExpr, ANode, nullable ANode) */
8787 void nit__parser_prod___AAssertExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8788 val
* var_old_child
/* var old_child: ANode */;
8789 val
* var_new_child
/* var new_child: nullable ANode */;
8790 val
* var
/* : TKwassert */;
8791 short int var1
/* : Bool */;
8792 val
* var_other
/* var other: nullable Object */;
8793 short int var3
/* : Bool */;
8794 short int var5
/* : Bool */;
8795 short int var6
/* : Bool */;
8798 const char* var_class_name
;
8799 val
* var7
/* : nullable TId */;
8800 short int var8
/* : Bool */;
8801 short int var9
/* : Bool */;
8802 short int var11
/* : Bool */;
8803 short int var13
/* : Bool */;
8804 short int var14
/* : Bool */;
8807 const char* var_class_name17
;
8808 val
* var18
/* : AExpr */;
8809 short int var19
/* : Bool */;
8810 short int var21
/* : Bool */;
8811 short int var23
/* : Bool */;
8812 short int var24
/* : Bool */;
8815 const char* var_class_name27
;
8816 val
* var28
/* : nullable AExpr */;
8817 short int var29
/* : Bool */;
8818 short int var30
/* : Bool */;
8819 short int var32
/* : Bool */;
8820 short int var34
/* : Bool */;
8821 short int var35
/* : Bool */;
8824 const char* var_class_name38
;
8827 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_kwassert
].val
; /* _n_kwassert on <self:AAssertExpr> */
8828 if (unlikely(var
== NULL
)) {
8829 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwassert");
8830 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2861);
8834 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwassert> */
8835 var_other
= var_old_child
;
8837 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwassert> */
8838 var5
= var
== var_other
;
8850 /* <var_new_child:nullable ANode> isa TKwassert */
8851 cltype
= type_nit__TKwassert
.color
;
8852 idtype
= type_nit__TKwassert
.id
;
8853 if(var_new_child
== NULL
) {
8856 if(cltype
>= var_new_child
->type
->table_size
) {
8859 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8862 if (unlikely(!var6
)) {
8863 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8864 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwassert", var_class_name
);
8865 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2862);
8869 nit__parser_prod___AAssertExpr___n_kwassert_61d(self
, var_new_child
); /* Direct call parser_prod#AAssertExpr#n_kwassert= on <self:AAssertExpr>*/
8874 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_id
].val
; /* _n_id on <self:AAssertExpr> */
8876 var8
= 0; /* <var_old_child:ANode> cannot be null */
8878 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TId> */
8879 var_other
= var_old_child
;
8881 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TId(TId)> */
8882 var13
= var7
== var_other
;
8885 RET_LABEL12
:(void)0;
8890 RET_LABEL10
:(void)0;
8895 /* <var_new_child:nullable ANode> isa nullable TId */
8896 cltype15
= type_nullable__nit__TId
.color
;
8897 idtype16
= type_nullable__nit__TId
.id
;
8898 if(var_new_child
== NULL
) {
8901 if(cltype15
>= var_new_child
->type
->table_size
) {
8904 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
8907 if (unlikely(!var14
)) {
8908 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8909 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17
);
8910 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2866);
8914 nit__parser_prod___AAssertExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAssertExpr#n_id= on <self:AAssertExpr>*/
8919 var18
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_expr
].val
; /* _n_expr on <self:AAssertExpr> */
8920 if (unlikely(var18
== NULL
)) {
8921 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8922 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2869);
8926 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:AExpr> */
8927 var_other
= var_old_child
;
8929 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:AExpr> */
8930 var23
= var18
== var_other
;
8933 RET_LABEL22
:(void)0;
8938 RET_LABEL20
:(void)0;
8942 /* <var_new_child:nullable ANode> isa AExpr */
8943 cltype25
= type_nit__AExpr
.color
;
8944 idtype26
= type_nit__AExpr
.id
;
8945 if(var_new_child
== NULL
) {
8948 if(cltype25
>= var_new_child
->type
->table_size
) {
8951 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
8954 if (unlikely(!var24
)) {
8955 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8956 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name27
);
8957 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2870);
8961 nit__parser_prod___AAssertExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAssertExpr#n_expr= on <self:AAssertExpr>*/
8966 var28
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_else
].val
; /* _n_else on <self:AAssertExpr> */
8967 if (var28
== NULL
) {
8968 var29
= 0; /* <var_old_child:ANode> cannot be null */
8970 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:nullable AExpr> */
8971 var_other
= var_old_child
;
8973 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:nullable AExpr(AExpr)> */
8974 var34
= var28
== var_other
;
8977 RET_LABEL33
:(void)0;
8982 RET_LABEL31
:(void)0;
8987 /* <var_new_child:nullable ANode> isa nullable AExpr */
8988 cltype36
= type_nullable__nit__AExpr
.color
;
8989 idtype37
= type_nullable__nit__AExpr
.id
;
8990 if(var_new_child
== NULL
) {
8993 if(cltype36
>= var_new_child
->type
->table_size
) {
8996 var35
= var_new_child
->type
->type_table
[cltype36
] == idtype37
;
8999 if (unlikely(!var35
)) {
9000 var_class_name38
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9001 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name38
);
9002 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2874);
9006 nit__parser_prod___AAssertExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AAssertExpr#n_else= on <self:AAssertExpr>*/
9013 /* method parser_prod#AAssertExpr#n_kwassert= for (self: AAssertExpr, TKwassert) */
9014 void nit__parser_prod___AAssertExpr___n_kwassert_61d(val
* self
, val
* p0
) {
9015 val
* var_node
/* var node: TKwassert */;
9017 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_kwassert
].val
= var_node
; /* _n_kwassert on <self:AAssertExpr> */
9019 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwassert> */
9020 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwassert> */
9026 /* method parser_prod#AAssertExpr#n_id= for (self: AAssertExpr, nullable TId) */
9027 void nit__parser_prod___AAssertExpr___n_id_61d(val
* self
, val
* p0
) {
9028 val
* var_node
/* var node: nullable TId */;
9029 val
* var
/* : null */;
9030 short int var1
/* : Bool */;
9031 short int var2
/* : Bool */;
9032 val
* var_other
/* var other: nullable Object */;
9033 short int var4
/* : Bool */;
9034 short int var5
/* : Bool */;
9036 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_id
].val
= var_node
; /* _n_id on <self:AAssertExpr> */
9038 if (var_node
== NULL
) {
9039 var1
= 0; /* is null */
9041 var1
= 1; /* arg is null and recv is not */
9044 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TId> */
9047 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TId(TId)>*/;
9058 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TId(TId)> */
9059 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TId(TId)> */
9067 /* method parser_prod#AAssertExpr#n_expr= for (self: AAssertExpr, AExpr) */
9068 void nit__parser_prod___AAssertExpr___n_expr_61d(val
* self
, val
* p0
) {
9069 val
* var_node
/* var node: AExpr */;
9071 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAssertExpr> */
9073 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9074 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9080 /* method parser_prod#AAssertExpr#n_else= for (self: AAssertExpr, nullable AExpr) */
9081 void nit__parser_prod___AAssertExpr___n_else_61d(val
* self
, val
* p0
) {
9082 val
* var_node
/* var node: nullable AExpr */;
9083 val
* var
/* : null */;
9084 short int var1
/* : Bool */;
9085 short int var2
/* : Bool */;
9086 val
* var_other
/* var other: nullable Object */;
9087 short int var4
/* : Bool */;
9088 short int var5
/* : Bool */;
9090 self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_else
].val
= var_node
; /* _n_else on <self:AAssertExpr> */
9092 if (var_node
== NULL
) {
9093 var1
= 0; /* is null */
9095 var1
= 1; /* arg is null and recv is not */
9098 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
9101 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
9112 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9113 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9121 /* method parser_prod#AAssertExpr#visit_all for (self: AAssertExpr, Visitor) */
9122 void nit__parser_prod___AAssertExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9123 val
* var_v
/* var v: Visitor */;
9124 val
* var
/* : TKwassert */;
9125 val
* var1
/* : nullable TId */;
9126 val
* var2
/* : AExpr */;
9127 val
* var3
/* : nullable AExpr */;
9129 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_kwassert
].val
; /* _n_kwassert on <self:AAssertExpr> */
9130 if (unlikely(var
== NULL
)) {
9131 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwassert");
9132 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2903);
9136 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9138 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_id
].val
; /* _n_id on <self:AAssertExpr> */
9140 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9142 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_expr
].val
; /* _n_expr on <self:AAssertExpr> */
9143 if (unlikely(var2
== NULL
)) {
9144 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9145 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2905);
9149 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9151 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAssertExpr___n_else
].val
; /* _n_else on <self:AAssertExpr> */
9153 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9157 /* method parser_prod#AOnceExpr#init_aonceexpr for (self: AOnceExpr, nullable TKwonce, nullable AExpr) */
9158 void nit__parser_prod___AOnceExpr___init_aonceexpr(val
* self
, val
* p0
, val
* p1
) {
9159 val
* var_n_kwonce
/* var n_kwonce: nullable TKwonce */;
9160 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9163 if (unlikely(var_n_kwonce
== NULL
)) {
9164 PRINT_ERROR("Runtime error: %s", "Cast failed");
9165 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2915);
9168 self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_kwonce
].val
= var_n_kwonce
; /* _n_kwonce on <self:AOnceExpr> */
9169 if (var_n_kwonce
== NULL
) {
9170 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9171 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2916);
9174 { /* Inline parser_nodes#ANode#parent= (var_n_kwonce,self) on <var_n_kwonce:nullable TKwonce> */
9175 if (unlikely(var_n_kwonce
== NULL
)) {
9176 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9177 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9180 var_n_kwonce
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwonce:nullable TKwonce> */
9184 if (unlikely(var_n_expr
== NULL
)) {
9185 PRINT_ERROR("Runtime error: %s", "Cast failed");
9186 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2917);
9189 self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOnceExpr> */
9190 if (var_n_expr
== NULL
) {
9191 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9192 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2918);
9195 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9196 if (unlikely(var_n_expr
== NULL
)) {
9197 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9198 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9201 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9207 /* method parser_prod#AOnceExpr#replace_child for (self: AOnceExpr, ANode, nullable ANode) */
9208 void nit__parser_prod___AOnceExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9209 val
* var_old_child
/* var old_child: ANode */;
9210 val
* var_new_child
/* var new_child: nullable ANode */;
9211 val
* var
/* : TKwonce */;
9212 short int var1
/* : Bool */;
9213 val
* var_other
/* var other: nullable Object */;
9214 short int var3
/* : Bool */;
9215 short int var5
/* : Bool */;
9216 short int var6
/* : Bool */;
9219 const char* var_class_name
;
9220 val
* var7
/* : AExpr */;
9221 short int var8
/* : Bool */;
9222 short int var10
/* : Bool */;
9223 short int var12
/* : Bool */;
9224 short int var13
/* : Bool */;
9227 const char* var_class_name16
;
9230 var
= self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_kwonce
].val
; /* _n_kwonce on <self:AOnceExpr> */
9231 if (unlikely(var
== NULL
)) {
9232 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwonce");
9233 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2923);
9237 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwonce> */
9238 var_other
= var_old_child
;
9240 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwonce> */
9241 var5
= var
== var_other
;
9253 /* <var_new_child:nullable ANode> isa TKwonce */
9254 cltype
= type_nit__TKwonce
.color
;
9255 idtype
= type_nit__TKwonce
.id
;
9256 if(var_new_child
== NULL
) {
9259 if(cltype
>= var_new_child
->type
->table_size
) {
9262 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9265 if (unlikely(!var6
)) {
9266 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9267 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwonce", var_class_name
);
9268 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2924);
9272 nit__parser_prod___AOnceExpr___n_kwonce_61d(self
, var_new_child
); /* Direct call parser_prod#AOnceExpr#n_kwonce= on <self:AOnceExpr>*/
9277 var7
= self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_expr
].val
; /* _n_expr on <self:AOnceExpr> */
9278 if (unlikely(var7
== NULL
)) {
9279 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9280 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2927);
9284 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9285 var_other
= var_old_child
;
9287 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9288 var12
= var7
== var_other
;
9291 RET_LABEL11
:(void)0;
9300 /* <var_new_child:nullable ANode> isa AExpr */
9301 cltype14
= type_nit__AExpr
.color
;
9302 idtype15
= type_nit__AExpr
.id
;
9303 if(var_new_child
== NULL
) {
9306 if(cltype14
>= var_new_child
->type
->table_size
) {
9309 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9312 if (unlikely(!var13
)) {
9313 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9314 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9315 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2928);
9319 nit__parser_prod___AOnceExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOnceExpr#n_expr= on <self:AOnceExpr>*/
9326 /* method parser_prod#AOnceExpr#n_kwonce= for (self: AOnceExpr, TKwonce) */
9327 void nit__parser_prod___AOnceExpr___n_kwonce_61d(val
* self
, val
* p0
) {
9328 val
* var_node
/* var node: TKwonce */;
9330 self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_kwonce
].val
= var_node
; /* _n_kwonce on <self:AOnceExpr> */
9332 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwonce> */
9333 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwonce> */
9339 /* method parser_prod#AOnceExpr#n_expr= for (self: AOnceExpr, AExpr) */
9340 void nit__parser_prod___AOnceExpr___n_expr_61d(val
* self
, val
* p0
) {
9341 val
* var_node
/* var node: AExpr */;
9343 self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOnceExpr> */
9345 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9346 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9352 /* method parser_prod#AOnceExpr#visit_all for (self: AOnceExpr, Visitor) */
9353 void nit__parser_prod___AOnceExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9354 val
* var_v
/* var v: Visitor */;
9355 val
* var
/* : TKwonce */;
9356 val
* var1
/* : AExpr */;
9358 var
= self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_kwonce
].val
; /* _n_kwonce on <self:AOnceExpr> */
9359 if (unlikely(var
== NULL
)) {
9360 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwonce");
9361 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2947);
9365 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9367 var1
= self
->attrs
[COLOR_nit__parser_nodes__AOnceExpr___n_expr
].val
; /* _n_expr on <self:AOnceExpr> */
9368 if (unlikely(var1
== NULL
)) {
9369 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9370 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2948);
9374 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9378 /* method parser_prod#AOrExpr#init_aorexpr for (self: AOrExpr, nullable AExpr, nullable AExpr) */
9379 void nit__parser_prod___AOrExpr___init_aorexpr(val
* self
, val
* p0
, val
* p1
) {
9380 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9381 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
9384 if (unlikely(var_n_expr
== NULL
)) {
9385 PRINT_ERROR("Runtime error: %s", "Cast failed");
9386 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3028);
9389 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrExpr> */
9390 if (var_n_expr
== NULL
) {
9391 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9392 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3029);
9395 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9396 if (unlikely(var_n_expr
== NULL
)) {
9397 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9398 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9401 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9405 if (unlikely(var_n_expr2
== NULL
)) {
9406 PRINT_ERROR("Runtime error: %s", "Cast failed");
9407 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3030);
9410 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrExpr> */
9411 if (var_n_expr2
== NULL
) {
9412 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9413 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3031);
9416 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
9417 if (unlikely(var_n_expr2
== NULL
)) {
9418 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9419 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9422 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
9428 /* method parser_prod#AOrExpr#replace_child for (self: AOrExpr, ANode, nullable ANode) */
9429 void nit__parser_prod___AOrExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9430 val
* var_old_child
/* var old_child: ANode */;
9431 val
* var_new_child
/* var new_child: nullable ANode */;
9432 val
* var
/* : AExpr */;
9433 short int var1
/* : Bool */;
9434 val
* var_other
/* var other: nullable Object */;
9435 short int var3
/* : Bool */;
9436 short int var5
/* : Bool */;
9437 short int var6
/* : Bool */;
9440 const char* var_class_name
;
9441 val
* var7
/* : AExpr */;
9442 short int var8
/* : Bool */;
9443 short int var10
/* : Bool */;
9444 short int var12
/* : Bool */;
9445 short int var13
/* : Bool */;
9448 const char* var_class_name16
;
9451 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
; /* _n_expr on <self:AOrExpr> */
9452 if (unlikely(var
== NULL
)) {
9453 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9454 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3036);
9458 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
9459 var_other
= var_old_child
;
9461 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
9462 var5
= var
== var_other
;
9474 /* <var_new_child:nullable ANode> isa AExpr */
9475 cltype
= type_nit__AExpr
.color
;
9476 idtype
= type_nit__AExpr
.id
;
9477 if(var_new_child
== NULL
) {
9480 if(cltype
>= var_new_child
->type
->table_size
) {
9483 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9486 if (unlikely(!var6
)) {
9487 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9488 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
9489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3037);
9493 nit__parser_prod___AOrExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrExpr#n_expr= on <self:AOrExpr>*/
9498 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrExpr> */
9499 if (unlikely(var7
== NULL
)) {
9500 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9501 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3040);
9505 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9506 var_other
= var_old_child
;
9508 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9509 var12
= var7
== var_other
;
9512 RET_LABEL11
:(void)0;
9521 /* <var_new_child:nullable ANode> isa AExpr */
9522 cltype14
= type_nit__AExpr
.color
;
9523 idtype15
= type_nit__AExpr
.id
;
9524 if(var_new_child
== NULL
) {
9527 if(cltype14
>= var_new_child
->type
->table_size
) {
9530 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9533 if (unlikely(!var13
)) {
9534 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9535 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9536 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3041);
9540 nit__parser_prod___AOrExpr___nit__parser_nodes__ABinBoolExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrExpr#n_expr2= on <self:AOrExpr>*/
9547 /* method parser_prod#AOrExpr#n_expr= for (self: AOrExpr, AExpr) */
9548 void nit__parser_prod___AOrExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(val
* self
, val
* p0
) {
9549 val
* var_node
/* var node: AExpr */;
9551 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrExpr> */
9553 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9554 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9560 /* method parser_prod#AOrExpr#n_expr2= for (self: AOrExpr, AExpr) */
9561 void nit__parser_prod___AOrExpr___nit__parser_nodes__ABinBoolExpr__n_expr2_61d(val
* self
, val
* p0
) {
9562 val
* var_node
/* var node: AExpr */;
9564 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AOrExpr> */
9566 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9567 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9573 /* method parser_prod#AOrExpr#visit_all for (self: AOrExpr, Visitor) */
9574 void nit__parser_prod___AOrExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9575 val
* var_v
/* var v: Visitor */;
9576 val
* var
/* : AExpr */;
9577 val
* var1
/* : AExpr */;
9579 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
; /* _n_expr on <self:AOrExpr> */
9580 if (unlikely(var
== NULL
)) {
9581 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9582 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3060);
9586 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9588 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrExpr> */
9589 if (unlikely(var1
== NULL
)) {
9590 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9591 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3061);
9595 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9599 /* method parser_prod#AAndExpr#init_aandexpr for (self: AAndExpr, nullable AExpr, nullable AExpr) */
9600 void nit__parser_prod___AAndExpr___init_aandexpr(val
* self
, val
* p0
, val
* p1
) {
9601 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9602 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
9605 if (unlikely(var_n_expr
== NULL
)) {
9606 PRINT_ERROR("Runtime error: %s", "Cast failed");
9607 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3070);
9610 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAndExpr> */
9611 if (var_n_expr
== NULL
) {
9612 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9613 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3071);
9616 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9617 if (unlikely(var_n_expr
== NULL
)) {
9618 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9619 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9622 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9626 if (unlikely(var_n_expr2
== NULL
)) {
9627 PRINT_ERROR("Runtime error: %s", "Cast failed");
9628 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3072);
9631 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AAndExpr> */
9632 if (var_n_expr2
== NULL
) {
9633 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9634 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3073);
9637 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
9638 if (unlikely(var_n_expr2
== NULL
)) {
9639 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9640 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9643 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
9649 /* method parser_prod#AAndExpr#replace_child for (self: AAndExpr, ANode, nullable ANode) */
9650 void nit__parser_prod___AAndExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9651 val
* var_old_child
/* var old_child: ANode */;
9652 val
* var_new_child
/* var new_child: nullable ANode */;
9653 val
* var
/* : AExpr */;
9654 short int var1
/* : Bool */;
9655 val
* var_other
/* var other: nullable Object */;
9656 short int var3
/* : Bool */;
9657 short int var5
/* : Bool */;
9658 short int var6
/* : Bool */;
9661 const char* var_class_name
;
9662 val
* var7
/* : AExpr */;
9663 short int var8
/* : Bool */;
9664 short int var10
/* : Bool */;
9665 short int var12
/* : Bool */;
9666 short int var13
/* : Bool */;
9669 const char* var_class_name16
;
9672 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
; /* _n_expr on <self:AAndExpr> */
9673 if (unlikely(var
== NULL
)) {
9674 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9675 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3078);
9679 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
9680 var_other
= var_old_child
;
9682 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
9683 var5
= var
== var_other
;
9695 /* <var_new_child:nullable ANode> isa AExpr */
9696 cltype
= type_nit__AExpr
.color
;
9697 idtype
= type_nit__AExpr
.id
;
9698 if(var_new_child
== NULL
) {
9701 if(cltype
>= var_new_child
->type
->table_size
) {
9704 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9707 if (unlikely(!var6
)) {
9708 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9709 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
9710 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3079);
9714 nit__parser_prod___AAndExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAndExpr#n_expr= on <self:AAndExpr>*/
9719 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
; /* _n_expr2 on <self:AAndExpr> */
9720 if (unlikely(var7
== NULL
)) {
9721 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9722 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3082);
9726 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9727 var_other
= var_old_child
;
9729 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9730 var12
= var7
== var_other
;
9733 RET_LABEL11
:(void)0;
9742 /* <var_new_child:nullable ANode> isa AExpr */
9743 cltype14
= type_nit__AExpr
.color
;
9744 idtype15
= type_nit__AExpr
.id
;
9745 if(var_new_child
== NULL
) {
9748 if(cltype14
>= var_new_child
->type
->table_size
) {
9751 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9754 if (unlikely(!var13
)) {
9755 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9756 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9757 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3083);
9761 nit__parser_prod___AAndExpr___nit__parser_nodes__ABinBoolExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AAndExpr#n_expr2= on <self:AAndExpr>*/
9768 /* method parser_prod#AAndExpr#n_expr= for (self: AAndExpr, AExpr) */
9769 void nit__parser_prod___AAndExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(val
* self
, val
* p0
) {
9770 val
* var_node
/* var node: AExpr */;
9772 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAndExpr> */
9774 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9775 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9781 /* method parser_prod#AAndExpr#n_expr2= for (self: AAndExpr, AExpr) */
9782 void nit__parser_prod___AAndExpr___nit__parser_nodes__ABinBoolExpr__n_expr2_61d(val
* self
, val
* p0
) {
9783 val
* var_node
/* var node: AExpr */;
9785 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AAndExpr> */
9787 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9788 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9794 /* method parser_prod#AAndExpr#visit_all for (self: AAndExpr, Visitor) */
9795 void nit__parser_prod___AAndExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9796 val
* var_v
/* var v: Visitor */;
9797 val
* var
/* : AExpr */;
9798 val
* var1
/* : AExpr */;
9800 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
; /* _n_expr on <self:AAndExpr> */
9801 if (unlikely(var
== NULL
)) {
9802 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9803 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3102);
9807 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9809 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
; /* _n_expr2 on <self:AAndExpr> */
9810 if (unlikely(var1
== NULL
)) {
9811 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3103);
9816 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9820 /* method parser_prod#AOrElseExpr#init_aorelseexpr for (self: AOrElseExpr, nullable AExpr, nullable AExpr) */
9821 void nit__parser_prod___AOrElseExpr___init_aorelseexpr(val
* self
, val
* p0
, val
* p1
) {
9822 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9823 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
9826 if (unlikely(var_n_expr
== NULL
)) {
9827 PRINT_ERROR("Runtime error: %s", "Cast failed");
9828 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3112);
9831 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrElseExpr> */
9832 if (var_n_expr
== NULL
) {
9833 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9834 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3113);
9837 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9838 if (unlikely(var_n_expr
== NULL
)) {
9839 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9840 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9843 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9847 if (unlikely(var_n_expr2
== NULL
)) {
9848 PRINT_ERROR("Runtime error: %s", "Cast failed");
9849 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3114);
9852 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrElseExpr> */
9853 if (var_n_expr2
== NULL
) {
9854 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9855 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3115);
9858 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
9859 if (unlikely(var_n_expr2
== NULL
)) {
9860 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9861 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9864 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
9870 /* method parser_prod#AOrElseExpr#replace_child for (self: AOrElseExpr, ANode, nullable ANode) */
9871 void nit__parser_prod___AOrElseExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9872 val
* var_old_child
/* var old_child: ANode */;
9873 val
* var_new_child
/* var new_child: nullable ANode */;
9874 val
* var
/* : AExpr */;
9875 short int var1
/* : Bool */;
9876 val
* var_other
/* var other: nullable Object */;
9877 short int var3
/* : Bool */;
9878 short int var5
/* : Bool */;
9879 short int var6
/* : Bool */;
9882 const char* var_class_name
;
9883 val
* var7
/* : AExpr */;
9884 short int var8
/* : Bool */;
9885 short int var10
/* : Bool */;
9886 short int var12
/* : Bool */;
9887 short int var13
/* : Bool */;
9890 const char* var_class_name16
;
9893 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
; /* _n_expr on <self:AOrElseExpr> */
9894 if (unlikely(var
== NULL
)) {
9895 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9896 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3120);
9900 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
9901 var_other
= var_old_child
;
9903 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
9904 var5
= var
== var_other
;
9916 /* <var_new_child:nullable ANode> isa AExpr */
9917 cltype
= type_nit__AExpr
.color
;
9918 idtype
= type_nit__AExpr
.id
;
9919 if(var_new_child
== NULL
) {
9922 if(cltype
>= var_new_child
->type
->table_size
) {
9925 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9928 if (unlikely(!var6
)) {
9929 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9930 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
9931 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3121);
9935 nit__parser_prod___AOrElseExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrElseExpr#n_expr= on <self:AOrElseExpr>*/
9940 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrElseExpr> */
9941 if (unlikely(var7
== NULL
)) {
9942 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
9943 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3124);
9947 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9948 var_other
= var_old_child
;
9950 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9951 var12
= var7
== var_other
;
9954 RET_LABEL11
:(void)0;
9963 /* <var_new_child:nullable ANode> isa AExpr */
9964 cltype14
= type_nit__AExpr
.color
;
9965 idtype15
= type_nit__AExpr
.id
;
9966 if(var_new_child
== NULL
) {
9969 if(cltype14
>= var_new_child
->type
->table_size
) {
9972 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9975 if (unlikely(!var13
)) {
9976 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9977 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9978 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 3125);
9982 nit__parser_prod___AOrElseExpr___nit__parser_nodes__ABinBoolExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrElseExpr#n_expr2= on <self:AOrElseExpr>*/
9989 /* method parser_prod#AOrElseExpr#n_expr= for (self: AOrElseExpr, AExpr) */
9990 void nit__parser_prod___AOrElseExpr___nit__parser_nodes__ABinBoolExpr__n_expr_61d(val
* self
, val
* p0
) {
9991 val
* var_node
/* var node: AExpr */;
9993 self
->attrs
[COLOR_nit__parser_nodes__ABinBoolExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrElseExpr> */
9995 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9996 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */