1 #include "nit__parser_prod.sep.0.h"
2 /* method parser_prod#APercentExpr#replace_child for (self: APercentExpr, ANode, nullable ANode) */
3 void nit__parser_prod___APercentExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4 val
* var_old_child
/* var old_child: ANode */;
5 val
* var_new_child
/* var new_child: nullable ANode */;
6 val
* var
/* : AExpr */;
7 short int var1
/* : Bool */;
8 val
* var_other
/* var other: nullable Object */;
9 short int var3
/* : Bool */;
10 short int var5
/* : Bool */;
11 short int var6
/* : Bool */;
14 const char* var_class_name
;
15 val
* var7
/* : Token */;
16 short int var8
/* : Bool */;
17 short int var10
/* : Bool */;
18 short int var12
/* : Bool */;
19 short int var13
/* : Bool */;
22 const char* var_class_name16
;
23 val
* var17
/* : AExpr */;
24 short int var18
/* : Bool */;
25 short int var20
/* : Bool */;
26 short int var22
/* : Bool */;
27 short int var23
/* : Bool */;
30 const char* var_class_name26
;
33 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APercentExpr> */
34 if (unlikely(var
== NULL
)) {
35 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
36 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4638);
40 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
41 var_other
= var_old_child
;
43 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
44 var5
= var
== var_other
;
56 /* <var_new_child:nullable ANode> isa AExpr */
57 cltype
= type_nit__AExpr
.color
;
58 idtype
= type_nit__AExpr
.id
;
59 if(var_new_child
== NULL
) {
62 if(cltype
>= var_new_child
->type
->table_size
) {
65 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
68 if (unlikely(!var6
)) {
69 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
70 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
71 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4639);
75 nit__parser_prod___APercentExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_expr= on <self:APercentExpr>*/
80 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APercentExpr> */
81 if (unlikely(var7
== NULL
)) {
82 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
83 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4642);
87 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
88 var_other
= var_old_child
;
90 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
91 var12
= var7
== var_other
;
103 /* <var_new_child:nullable ANode> isa TPercent */
104 cltype14
= type_nit__TPercent
.color
;
105 idtype15
= type_nit__TPercent
.id
;
106 if(var_new_child
== NULL
) {
109 if(cltype14
>= var_new_child
->type
->table_size
) {
112 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
115 if (unlikely(!var13
)) {
116 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
117 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name16
);
118 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4643);
122 nit__parser_prod___APercentExpr___nit__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_op= on <self:APercentExpr>*/
127 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APercentExpr> */
128 if (unlikely(var17
== NULL
)) {
129 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
130 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4646);
134 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
135 var_other
= var_old_child
;
137 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
138 var22
= var17
== var_other
;
150 /* <var_new_child:nullable ANode> isa AExpr */
151 cltype24
= type_nit__AExpr
.color
;
152 idtype25
= type_nit__AExpr
.id
;
153 if(var_new_child
== NULL
) {
156 if(cltype24
>= var_new_child
->type
->table_size
) {
159 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
162 if (unlikely(!var23
)) {
163 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
164 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
165 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4647);
169 nit__parser_prod___APercentExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#APercentExpr#n_expr2= on <self:APercentExpr>*/
176 /* method parser_prod#APercentExpr#n_expr= for (self: APercentExpr, AExpr) */
177 void nit__parser_prod___APercentExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
178 val
* var_node
/* var node: AExpr */;
180 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:APercentExpr> */
182 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
183 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
189 /* method parser_prod#APercentExpr#n_op= for (self: APercentExpr, Token) */
190 void nit__parser_prod___APercentExpr___nit__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
191 val
* var_node
/* var node: Token */;
193 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:APercentExpr> */
195 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
196 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
202 /* method parser_prod#APercentExpr#n_expr2= for (self: APercentExpr, AExpr) */
203 void nit__parser_prod___APercentExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
204 val
* var_node
/* var node: AExpr */;
206 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:APercentExpr> */
208 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
209 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
215 /* method parser_prod#APercentExpr#visit_all for (self: APercentExpr, Visitor) */
216 void nit__parser_prod___APercentExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
217 val
* var_v
/* var v: Visitor */;
218 val
* var
/* : AExpr */;
219 val
* var1
/* : Token */;
220 val
* var2
/* : AExpr */;
222 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APercentExpr> */
223 if (unlikely(var
== NULL
)) {
224 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
225 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4671);
229 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
231 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APercentExpr> */
232 if (unlikely(var1
== NULL
)) {
233 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
234 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4672);
238 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
240 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APercentExpr> */
241 if (unlikely(var2
== NULL
)) {
242 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
243 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4673);
247 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
251 /* method parser_prod#APipeExpr#init_apipeexpr for (self: APipeExpr, nullable AExpr, nullable TPipe, nullable AExpr) */
252 void nit__parser_prod___APipeExpr___init_apipeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
253 val
* var_n_expr
/* var n_expr: nullable AExpr */;
254 val
* var_n_op
/* var n_op: nullable TPipe */;
255 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
257 { /* Inline kernel#Object#init (self) on <self:APipeExpr> */
264 if (unlikely(var_n_expr
== NULL
)) {
265 PRINT_ERROR("Runtime error: %s", "Cast failed");
266 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4683);
269 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:APipeExpr> */
270 if (var_n_expr
== NULL
) {
271 PRINT_ERROR("Runtime error: %s", "Receiver is null");
272 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4684);
275 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
276 if (unlikely(var_n_expr
== NULL
)) {
277 PRINT_ERROR("Runtime error: %s", "Receiver is null");
278 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
281 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
285 if (unlikely(var_n_op
== NULL
)) {
286 PRINT_ERROR("Runtime error: %s", "Cast failed");
287 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4685);
290 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:APipeExpr> */
291 if (var_n_op
== NULL
) {
292 PRINT_ERROR("Runtime error: %s", "Receiver is null");
293 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4686);
296 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPipe> */
297 if (unlikely(var_n_op
== NULL
)) {
298 PRINT_ERROR("Runtime error: %s", "Receiver is null");
299 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
302 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPipe> */
306 if (unlikely(var_n_expr2
== NULL
)) {
307 PRINT_ERROR("Runtime error: %s", "Cast failed");
308 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4687);
311 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:APipeExpr> */
312 if (var_n_expr2
== NULL
) {
313 PRINT_ERROR("Runtime error: %s", "Receiver is null");
314 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4688);
317 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
318 if (unlikely(var_n_expr2
== NULL
)) {
319 PRINT_ERROR("Runtime error: %s", "Receiver is null");
320 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
323 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
329 /* method parser_prod#APipeExpr#replace_child for (self: APipeExpr, ANode, nullable ANode) */
330 void nit__parser_prod___APipeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
331 val
* var_old_child
/* var old_child: ANode */;
332 val
* var_new_child
/* var new_child: nullable ANode */;
333 val
* var
/* : AExpr */;
334 short int var1
/* : Bool */;
335 val
* var_other
/* var other: nullable Object */;
336 short int var3
/* : Bool */;
337 short int var5
/* : Bool */;
338 short int var6
/* : Bool */;
341 const char* var_class_name
;
342 val
* var7
/* : Token */;
343 short int var8
/* : Bool */;
344 short int var10
/* : Bool */;
345 short int var12
/* : Bool */;
346 short int var13
/* : Bool */;
349 const char* var_class_name16
;
350 val
* var17
/* : AExpr */;
351 short int var18
/* : Bool */;
352 short int var20
/* : Bool */;
353 short int var22
/* : Bool */;
354 short int var23
/* : Bool */;
357 const char* var_class_name26
;
360 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APipeExpr> */
361 if (unlikely(var
== NULL
)) {
362 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
363 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4693);
367 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
368 var_other
= var_old_child
;
370 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
371 var5
= var
== var_other
;
383 /* <var_new_child:nullable ANode> isa AExpr */
384 cltype
= type_nit__AExpr
.color
;
385 idtype
= type_nit__AExpr
.id
;
386 if(var_new_child
== NULL
) {
389 if(cltype
>= var_new_child
->type
->table_size
) {
392 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
395 if (unlikely(!var6
)) {
396 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
397 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
398 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4694);
402 nit__parser_prod___APipeExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_expr= on <self:APipeExpr>*/
407 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APipeExpr> */
408 if (unlikely(var7
== NULL
)) {
409 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
410 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4697);
414 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
415 var_other
= var_old_child
;
417 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
418 var12
= var7
== var_other
;
430 /* <var_new_child:nullable ANode> isa TPipe */
431 cltype14
= type_nit__TPipe
.color
;
432 idtype15
= type_nit__TPipe
.id
;
433 if(var_new_child
== NULL
) {
436 if(cltype14
>= var_new_child
->type
->table_size
) {
439 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
442 if (unlikely(!var13
)) {
443 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
444 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name16
);
445 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4698);
449 nit__parser_prod___APipeExpr___nit__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_op= on <self:APipeExpr>*/
454 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APipeExpr> */
455 if (unlikely(var17
== NULL
)) {
456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
457 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4701);
461 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
462 var_other
= var_old_child
;
464 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
465 var22
= var17
== var_other
;
477 /* <var_new_child:nullable ANode> isa AExpr */
478 cltype24
= type_nit__AExpr
.color
;
479 idtype25
= type_nit__AExpr
.id
;
480 if(var_new_child
== NULL
) {
483 if(cltype24
>= var_new_child
->type
->table_size
) {
486 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
489 if (unlikely(!var23
)) {
490 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
491 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
492 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4702);
496 nit__parser_prod___APipeExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#APipeExpr#n_expr2= on <self:APipeExpr>*/
503 /* method parser_prod#APipeExpr#n_expr= for (self: APipeExpr, AExpr) */
504 void nit__parser_prod___APipeExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
505 val
* var_node
/* var node: AExpr */;
507 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:APipeExpr> */
509 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
510 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
516 /* method parser_prod#APipeExpr#n_op= for (self: APipeExpr, Token) */
517 void nit__parser_prod___APipeExpr___nit__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
518 val
* var_node
/* var node: Token */;
520 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:APipeExpr> */
522 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
523 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
529 /* method parser_prod#APipeExpr#n_expr2= for (self: APipeExpr, AExpr) */
530 void nit__parser_prod___APipeExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
531 val
* var_node
/* var node: AExpr */;
533 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:APipeExpr> */
535 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
536 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
542 /* method parser_prod#APipeExpr#visit_all for (self: APipeExpr, Visitor) */
543 void nit__parser_prod___APipeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
544 val
* var_v
/* var v: Visitor */;
545 val
* var
/* : AExpr */;
546 val
* var1
/* : Token */;
547 val
* var2
/* : AExpr */;
549 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:APipeExpr> */
550 if (unlikely(var
== NULL
)) {
551 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
552 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4726);
556 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
558 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:APipeExpr> */
559 if (unlikely(var1
== NULL
)) {
560 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
561 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4727);
565 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
567 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:APipeExpr> */
568 if (unlikely(var2
== NULL
)) {
569 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
570 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4728);
574 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
578 /* method parser_prod#ACaretExpr#init_acaretexpr for (self: ACaretExpr, nullable AExpr, nullable TCaret, nullable AExpr) */
579 void nit__parser_prod___ACaretExpr___init_acaretexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
580 val
* var_n_expr
/* var n_expr: nullable AExpr */;
581 val
* var_n_op
/* var n_op: nullable TCaret */;
582 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
584 { /* Inline kernel#Object#init (self) on <self:ACaretExpr> */
591 if (unlikely(var_n_expr
== NULL
)) {
592 PRINT_ERROR("Runtime error: %s", "Cast failed");
593 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4738);
596 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACaretExpr> */
597 if (var_n_expr
== NULL
) {
598 PRINT_ERROR("Runtime error: %s", "Receiver is null");
599 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4739);
602 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
603 if (unlikely(var_n_expr
== NULL
)) {
604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
605 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
608 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
612 if (unlikely(var_n_op
== NULL
)) {
613 PRINT_ERROR("Runtime error: %s", "Cast failed");
614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4740);
617 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:ACaretExpr> */
618 if (var_n_op
== NULL
) {
619 PRINT_ERROR("Runtime error: %s", "Receiver is null");
620 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4741);
623 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TCaret> */
624 if (unlikely(var_n_op
== NULL
)) {
625 PRINT_ERROR("Runtime error: %s", "Receiver is null");
626 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
629 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TCaret> */
633 if (unlikely(var_n_expr2
== NULL
)) {
634 PRINT_ERROR("Runtime error: %s", "Cast failed");
635 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4742);
638 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:ACaretExpr> */
639 if (var_n_expr2
== NULL
) {
640 PRINT_ERROR("Runtime error: %s", "Receiver is null");
641 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4743);
644 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
645 if (unlikely(var_n_expr2
== NULL
)) {
646 PRINT_ERROR("Runtime error: %s", "Receiver is null");
647 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
650 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
656 /* method parser_prod#ACaretExpr#replace_child for (self: ACaretExpr, ANode, nullable ANode) */
657 void nit__parser_prod___ACaretExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
658 val
* var_old_child
/* var old_child: ANode */;
659 val
* var_new_child
/* var new_child: nullable ANode */;
660 val
* var
/* : AExpr */;
661 short int var1
/* : Bool */;
662 val
* var_other
/* var other: nullable Object */;
663 short int var3
/* : Bool */;
664 short int var5
/* : Bool */;
665 short int var6
/* : Bool */;
668 const char* var_class_name
;
669 val
* var7
/* : Token */;
670 short int var8
/* : Bool */;
671 short int var10
/* : Bool */;
672 short int var12
/* : Bool */;
673 short int var13
/* : Bool */;
676 const char* var_class_name16
;
677 val
* var17
/* : AExpr */;
678 short int var18
/* : Bool */;
679 short int var20
/* : Bool */;
680 short int var22
/* : Bool */;
681 short int var23
/* : Bool */;
684 const char* var_class_name26
;
687 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACaretExpr> */
688 if (unlikely(var
== NULL
)) {
689 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
690 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4748);
694 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
695 var_other
= var_old_child
;
697 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
698 var5
= var
== var_other
;
710 /* <var_new_child:nullable ANode> isa AExpr */
711 cltype
= type_nit__AExpr
.color
;
712 idtype
= type_nit__AExpr
.id
;
713 if(var_new_child
== NULL
) {
716 if(cltype
>= var_new_child
->type
->table_size
) {
719 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
722 if (unlikely(!var6
)) {
723 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
724 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
725 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4749);
729 nit__parser_prod___ACaretExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_expr= on <self:ACaretExpr>*/
734 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ACaretExpr> */
735 if (unlikely(var7
== NULL
)) {
736 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
737 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4752);
741 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
742 var_other
= var_old_child
;
744 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
745 var12
= var7
== var_other
;
757 /* <var_new_child:nullable ANode> isa TCaret */
758 cltype14
= type_nit__TCaret
.color
;
759 idtype15
= type_nit__TCaret
.id
;
760 if(var_new_child
== NULL
) {
763 if(cltype14
>= var_new_child
->type
->table_size
) {
766 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
769 if (unlikely(!var13
)) {
770 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
771 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name16
);
772 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4753);
776 nit__parser_prod___ACaretExpr___nit__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_op= on <self:ACaretExpr>*/
781 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ACaretExpr> */
782 if (unlikely(var17
== NULL
)) {
783 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
784 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4756);
788 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
789 var_other
= var_old_child
;
791 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
792 var22
= var17
== var_other
;
804 /* <var_new_child:nullable ANode> isa AExpr */
805 cltype24
= type_nit__AExpr
.color
;
806 idtype25
= type_nit__AExpr
.id
;
807 if(var_new_child
== NULL
) {
810 if(cltype24
>= var_new_child
->type
->table_size
) {
813 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
816 if (unlikely(!var23
)) {
817 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
818 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
819 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4757);
823 nit__parser_prod___ACaretExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretExpr#n_expr2= on <self:ACaretExpr>*/
830 /* method parser_prod#ACaretExpr#n_expr= for (self: ACaretExpr, AExpr) */
831 void nit__parser_prod___ACaretExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
832 val
* var_node
/* var node: AExpr */;
834 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACaretExpr> */
836 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
837 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
843 /* method parser_prod#ACaretExpr#n_op= for (self: ACaretExpr, Token) */
844 void nit__parser_prod___ACaretExpr___nit__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
845 val
* var_node
/* var node: Token */;
847 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:ACaretExpr> */
849 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
850 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
856 /* method parser_prod#ACaretExpr#n_expr2= for (self: ACaretExpr, AExpr) */
857 void nit__parser_prod___ACaretExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
858 val
* var_node
/* var node: AExpr */;
860 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ACaretExpr> */
862 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
863 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
869 /* method parser_prod#ACaretExpr#visit_all for (self: ACaretExpr, Visitor) */
870 void nit__parser_prod___ACaretExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
871 val
* var_v
/* var v: Visitor */;
872 val
* var
/* : AExpr */;
873 val
* var1
/* : Token */;
874 val
* var2
/* : AExpr */;
876 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACaretExpr> */
877 if (unlikely(var
== NULL
)) {
878 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
879 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4781);
883 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
885 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:ACaretExpr> */
886 if (unlikely(var1
== NULL
)) {
887 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
888 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4782);
892 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
894 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:ACaretExpr> */
895 if (unlikely(var2
== NULL
)) {
896 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
897 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4783);
901 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
905 /* method parser_prod#AAmpExpr#init_aampexpr for (self: AAmpExpr, nullable AExpr, nullable TAmp, nullable AExpr) */
906 void nit__parser_prod___AAmpExpr___init_aampexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
907 val
* var_n_expr
/* var n_expr: nullable AExpr */;
908 val
* var_n_op
/* var n_op: nullable TAmp */;
909 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
911 { /* Inline kernel#Object#init (self) on <self:AAmpExpr> */
918 if (unlikely(var_n_expr
== NULL
)) {
919 PRINT_ERROR("Runtime error: %s", "Cast failed");
920 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4793);
923 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAmpExpr> */
924 if (var_n_expr
== NULL
) {
925 PRINT_ERROR("Runtime error: %s", "Receiver is null");
926 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4794);
929 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
930 if (unlikely(var_n_expr
== NULL
)) {
931 PRINT_ERROR("Runtime error: %s", "Receiver is null");
932 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
935 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
939 if (unlikely(var_n_op
== NULL
)) {
940 PRINT_ERROR("Runtime error: %s", "Cast failed");
941 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4795);
944 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AAmpExpr> */
945 if (var_n_op
== NULL
) {
946 PRINT_ERROR("Runtime error: %s", "Receiver is null");
947 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4796);
950 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TAmp> */
951 if (unlikely(var_n_op
== NULL
)) {
952 PRINT_ERROR("Runtime error: %s", "Receiver is null");
953 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
956 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TAmp> */
960 if (unlikely(var_n_expr2
== NULL
)) {
961 PRINT_ERROR("Runtime error: %s", "Cast failed");
962 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4797);
965 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AAmpExpr> */
966 if (var_n_expr2
== NULL
) {
967 PRINT_ERROR("Runtime error: %s", "Receiver is null");
968 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4798);
971 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
972 if (unlikely(var_n_expr2
== NULL
)) {
973 PRINT_ERROR("Runtime error: %s", "Receiver is null");
974 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
977 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
983 /* method parser_prod#AAmpExpr#replace_child for (self: AAmpExpr, ANode, nullable ANode) */
984 void nit__parser_prod___AAmpExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
985 val
* var_old_child
/* var old_child: ANode */;
986 val
* var_new_child
/* var new_child: nullable ANode */;
987 val
* var
/* : AExpr */;
988 short int var1
/* : Bool */;
989 val
* var_other
/* var other: nullable Object */;
990 short int var3
/* : Bool */;
991 short int var5
/* : Bool */;
992 short int var6
/* : Bool */;
995 const char* var_class_name
;
996 val
* var7
/* : Token */;
997 short int var8
/* : Bool */;
998 short int var10
/* : Bool */;
999 short int var12
/* : Bool */;
1000 short int var13
/* : Bool */;
1003 const char* var_class_name16
;
1004 val
* var17
/* : AExpr */;
1005 short int var18
/* : Bool */;
1006 short int var20
/* : Bool */;
1007 short int var22
/* : Bool */;
1008 short int var23
/* : Bool */;
1011 const char* var_class_name26
;
1014 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AAmpExpr> */
1015 if (unlikely(var
== NULL
)) {
1016 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1017 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4803);
1021 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1022 var_other
= var_old_child
;
1024 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1025 var5
= var
== var_other
;
1037 /* <var_new_child:nullable ANode> isa AExpr */
1038 cltype
= type_nit__AExpr
.color
;
1039 idtype
= type_nit__AExpr
.id
;
1040 if(var_new_child
== NULL
) {
1043 if(cltype
>= var_new_child
->type
->table_size
) {
1046 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1049 if (unlikely(!var6
)) {
1050 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1051 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1052 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4804);
1056 nit__parser_prod___AAmpExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_expr= on <self:AAmpExpr>*/
1061 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:AAmpExpr> */
1062 if (unlikely(var7
== NULL
)) {
1063 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1064 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4807);
1068 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:Token> */
1069 var_other
= var_old_child
;
1071 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:Token> */
1072 var12
= var7
== var_other
;
1075 RET_LABEL11
:(void)0;
1084 /* <var_new_child:nullable ANode> isa TAmp */
1085 cltype14
= type_nit__TAmp
.color
;
1086 idtype15
= type_nit__TAmp
.id
;
1087 if(var_new_child
== NULL
) {
1090 if(cltype14
>= var_new_child
->type
->table_size
) {
1093 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1096 if (unlikely(!var13
)) {
1097 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1098 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name16
);
1099 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4808);
1103 nit__parser_prod___AAmpExpr___nit__parser_nodes__ABinopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_op= on <self:AAmpExpr>*/
1108 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:AAmpExpr> */
1109 if (unlikely(var17
== NULL
)) {
1110 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1111 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4811);
1115 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
1116 var_other
= var_old_child
;
1118 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
1119 var22
= var17
== var_other
;
1122 RET_LABEL21
:(void)0;
1127 RET_LABEL19
:(void)0;
1131 /* <var_new_child:nullable ANode> isa AExpr */
1132 cltype24
= type_nit__AExpr
.color
;
1133 idtype25
= type_nit__AExpr
.id
;
1134 if(var_new_child
== NULL
) {
1137 if(cltype24
>= var_new_child
->type
->table_size
) {
1140 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1143 if (unlikely(!var23
)) {
1144 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1145 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
1146 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4812);
1150 nit__parser_prod___AAmpExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpExpr#n_expr2= on <self:AAmpExpr>*/
1157 /* method parser_prod#AAmpExpr#n_expr= for (self: AAmpExpr, AExpr) */
1158 void nit__parser_prod___AAmpExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1159 val
* var_node
/* var node: AExpr */;
1161 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAmpExpr> */
1163 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1164 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1170 /* method parser_prod#AAmpExpr#n_op= for (self: AAmpExpr, Token) */
1171 void nit__parser_prod___AAmpExpr___nit__parser_nodes__ABinopExpr__n_op_61d(val
* self
, val
* p0
) {
1172 val
* var_node
/* var node: Token */;
1174 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
= var_node
; /* _n_op on <self:AAmpExpr> */
1176 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1177 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1183 /* method parser_prod#AAmpExpr#n_expr2= for (self: AAmpExpr, AExpr) */
1184 void nit__parser_prod___AAmpExpr___nit__parser_nodes__ABinopExpr__n_expr2_61d(val
* self
, val
* p0
) {
1185 val
* var_node
/* var node: AExpr */;
1187 self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AAmpExpr> */
1189 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1190 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1196 /* method parser_prod#AAmpExpr#visit_all for (self: AAmpExpr, Visitor) */
1197 void nit__parser_prod___AAmpExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1198 val
* var_v
/* var v: Visitor */;
1199 val
* var
/* : AExpr */;
1200 val
* var1
/* : Token */;
1201 val
* var2
/* : AExpr */;
1203 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AAmpExpr> */
1204 if (unlikely(var
== NULL
)) {
1205 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1206 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4836);
1210 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1212 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_op
].val
; /* _n_op on <self:AAmpExpr> */
1213 if (unlikely(var1
== NULL
)) {
1214 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1215 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4837);
1219 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1221 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABinopExpr___n_expr2
].val
; /* _n_expr2 on <self:AAmpExpr> */
1222 if (unlikely(var2
== NULL
)) {
1223 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
1224 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4838);
1228 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1232 /* method parser_prod#AUminusExpr#init_auminusexpr for (self: AUminusExpr, nullable TMinus, nullable AExpr) */
1233 void nit__parser_prod___AUminusExpr___init_auminusexpr(val
* self
, val
* p0
, val
* p1
) {
1234 val
* var_n_op
/* var n_op: nullable TMinus */;
1235 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1237 { /* Inline kernel#Object#init (self) on <self:AUminusExpr> */
1243 if (unlikely(var_n_op
== NULL
)) {
1244 PRINT_ERROR("Runtime error: %s", "Cast failed");
1245 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4847);
1248 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUminusExpr> */
1249 if (var_n_op
== NULL
) {
1250 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1251 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4848);
1254 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TMinus> */
1255 if (unlikely(var_n_op
== NULL
)) {
1256 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1257 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1260 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TMinus> */
1264 if (unlikely(var_n_expr
== NULL
)) {
1265 PRINT_ERROR("Runtime error: %s", "Cast failed");
1266 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4849);
1269 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUminusExpr> */
1270 if (var_n_expr
== NULL
) {
1271 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1272 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4850);
1275 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1276 if (unlikely(var_n_expr
== NULL
)) {
1277 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1278 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1281 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1287 /* method parser_prod#AUminusExpr#replace_child for (self: AUminusExpr, ANode, nullable ANode) */
1288 void nit__parser_prod___AUminusExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1289 val
* var_old_child
/* var old_child: ANode */;
1290 val
* var_new_child
/* var new_child: nullable ANode */;
1291 val
* var
/* : Token */;
1292 short int var1
/* : Bool */;
1293 val
* var_other
/* var other: nullable Object */;
1294 short int var3
/* : Bool */;
1295 short int var5
/* : Bool */;
1296 short int var6
/* : Bool */;
1299 const char* var_class_name
;
1300 val
* var7
/* : AExpr */;
1301 short int var8
/* : Bool */;
1302 short int var10
/* : Bool */;
1303 short int var12
/* : Bool */;
1304 short int var13
/* : Bool */;
1307 const char* var_class_name16
;
1310 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUminusExpr> */
1311 if (unlikely(var
== NULL
)) {
1312 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1313 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4855);
1317 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1318 var_other
= var_old_child
;
1320 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1321 var5
= var
== var_other
;
1333 /* <var_new_child:nullable ANode> isa TMinus */
1334 cltype
= type_nit__TMinus
.color
;
1335 idtype
= type_nit__TMinus
.id
;
1336 if(var_new_child
== NULL
) {
1339 if(cltype
>= var_new_child
->type
->table_size
) {
1342 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1345 if (unlikely(!var6
)) {
1346 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1347 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name
);
1348 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4856);
1352 nit__parser_prod___AUminusExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUminusExpr#n_op= on <self:AUminusExpr>*/
1357 var7
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUminusExpr> */
1358 if (unlikely(var7
== NULL
)) {
1359 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1360 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4859);
1364 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
1365 var_other
= var_old_child
;
1367 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
1368 var12
= var7
== var_other
;
1371 RET_LABEL11
:(void)0;
1380 /* <var_new_child:nullable ANode> isa AExpr */
1381 cltype14
= type_nit__AExpr
.color
;
1382 idtype15
= type_nit__AExpr
.id
;
1383 if(var_new_child
== NULL
) {
1386 if(cltype14
>= var_new_child
->type
->table_size
) {
1389 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1392 if (unlikely(!var13
)) {
1393 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1394 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
1395 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4860);
1399 nit__parser_prod___AUminusExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUminusExpr#n_expr= on <self:AUminusExpr>*/
1406 /* method parser_prod#AUminusExpr#n_op= for (self: AUminusExpr, Token) */
1407 void nit__parser_prod___AUminusExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
1408 val
* var_node
/* var node: Token */;
1410 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUminusExpr> */
1412 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1413 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1419 /* method parser_prod#AUminusExpr#n_expr= for (self: AUminusExpr, AExpr) */
1420 void nit__parser_prod___AUminusExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1421 val
* var_node
/* var node: AExpr */;
1423 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUminusExpr> */
1425 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1426 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1432 /* method parser_prod#AUminusExpr#visit_all for (self: AUminusExpr, Visitor) */
1433 void nit__parser_prod___AUminusExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1434 val
* var_v
/* var v: Visitor */;
1435 val
* var
/* : Token */;
1436 val
* var1
/* : AExpr */;
1438 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUminusExpr> */
1439 if (unlikely(var
== NULL
)) {
1440 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1441 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4879);
1445 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1447 var1
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUminusExpr> */
1448 if (unlikely(var1
== NULL
)) {
1449 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4880);
1454 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1458 /* method parser_prod#AUplusExpr#init_auplusexpr for (self: AUplusExpr, nullable TPlus, nullable AExpr) */
1459 void nit__parser_prod___AUplusExpr___init_auplusexpr(val
* self
, val
* p0
, val
* p1
) {
1460 val
* var_n_op
/* var n_op: nullable TPlus */;
1461 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1463 { /* Inline kernel#Object#init (self) on <self:AUplusExpr> */
1469 if (unlikely(var_n_op
== NULL
)) {
1470 PRINT_ERROR("Runtime error: %s", "Cast failed");
1471 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4889);
1474 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUplusExpr> */
1475 if (var_n_op
== NULL
) {
1476 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1477 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4890);
1480 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPlus> */
1481 if (unlikely(var_n_op
== NULL
)) {
1482 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1483 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1486 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPlus> */
1490 if (unlikely(var_n_expr
== NULL
)) {
1491 PRINT_ERROR("Runtime error: %s", "Cast failed");
1492 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4891);
1495 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUplusExpr> */
1496 if (var_n_expr
== NULL
) {
1497 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1498 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4892);
1501 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1502 if (unlikely(var_n_expr
== NULL
)) {
1503 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1504 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1507 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1513 /* method parser_prod#AUplusExpr#replace_child for (self: AUplusExpr, ANode, nullable ANode) */
1514 void nit__parser_prod___AUplusExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1515 val
* var_old_child
/* var old_child: ANode */;
1516 val
* var_new_child
/* var new_child: nullable ANode */;
1517 val
* var
/* : Token */;
1518 short int var1
/* : Bool */;
1519 val
* var_other
/* var other: nullable Object */;
1520 short int var3
/* : Bool */;
1521 short int var5
/* : Bool */;
1522 short int var6
/* : Bool */;
1525 const char* var_class_name
;
1526 val
* var7
/* : AExpr */;
1527 short int var8
/* : Bool */;
1528 short int var10
/* : Bool */;
1529 short int var12
/* : Bool */;
1530 short int var13
/* : Bool */;
1533 const char* var_class_name16
;
1536 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUplusExpr> */
1537 if (unlikely(var
== NULL
)) {
1538 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1539 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4897);
1543 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1544 var_other
= var_old_child
;
1546 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1547 var5
= var
== var_other
;
1559 /* <var_new_child:nullable ANode> isa TPlus */
1560 cltype
= type_nit__TPlus
.color
;
1561 idtype
= type_nit__TPlus
.id
;
1562 if(var_new_child
== NULL
) {
1565 if(cltype
>= var_new_child
->type
->table_size
) {
1568 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1571 if (unlikely(!var6
)) {
1572 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1573 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name
);
1574 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4898);
1578 nit__parser_prod___AUplusExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUplusExpr#n_op= on <self:AUplusExpr>*/
1583 var7
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUplusExpr> */
1584 if (unlikely(var7
== NULL
)) {
1585 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1586 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4901);
1590 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
1591 var_other
= var_old_child
;
1593 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
1594 var12
= var7
== var_other
;
1597 RET_LABEL11
:(void)0;
1606 /* <var_new_child:nullable ANode> isa AExpr */
1607 cltype14
= type_nit__AExpr
.color
;
1608 idtype15
= type_nit__AExpr
.id
;
1609 if(var_new_child
== NULL
) {
1612 if(cltype14
>= var_new_child
->type
->table_size
) {
1615 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1618 if (unlikely(!var13
)) {
1619 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1620 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
1621 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4902);
1625 nit__parser_prod___AUplusExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUplusExpr#n_expr= on <self:AUplusExpr>*/
1632 /* method parser_prod#AUplusExpr#n_op= for (self: AUplusExpr, Token) */
1633 void nit__parser_prod___AUplusExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
1634 val
* var_node
/* var node: Token */;
1636 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUplusExpr> */
1638 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1639 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1645 /* method parser_prod#AUplusExpr#n_expr= for (self: AUplusExpr, AExpr) */
1646 void nit__parser_prod___AUplusExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1647 val
* var_node
/* var node: AExpr */;
1649 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUplusExpr> */
1651 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1652 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1658 /* method parser_prod#AUplusExpr#visit_all for (self: AUplusExpr, Visitor) */
1659 void nit__parser_prod___AUplusExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1660 val
* var_v
/* var v: Visitor */;
1661 val
* var
/* : Token */;
1662 val
* var1
/* : AExpr */;
1664 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUplusExpr> */
1665 if (unlikely(var
== NULL
)) {
1666 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1667 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4921);
1671 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1673 var1
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUplusExpr> */
1674 if (unlikely(var1
== NULL
)) {
1675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1676 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4922);
1680 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1684 /* method parser_prod#AUtildeExpr#init_autildeexpr for (self: AUtildeExpr, nullable TTilde, nullable AExpr) */
1685 void nit__parser_prod___AUtildeExpr___init_autildeexpr(val
* self
, val
* p0
, val
* p1
) {
1686 val
* var_n_op
/* var n_op: nullable TTilde */;
1687 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1689 { /* Inline kernel#Object#init (self) on <self:AUtildeExpr> */
1695 if (unlikely(var_n_op
== NULL
)) {
1696 PRINT_ERROR("Runtime error: %s", "Cast failed");
1697 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4931);
1700 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_n_op
; /* _n_op on <self:AUtildeExpr> */
1701 if (var_n_op
== NULL
) {
1702 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1703 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4932);
1706 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TTilde> */
1707 if (unlikely(var_n_op
== NULL
)) {
1708 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1709 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1712 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TTilde> */
1716 if (unlikely(var_n_expr
== NULL
)) {
1717 PRINT_ERROR("Runtime error: %s", "Cast failed");
1718 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4933);
1721 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AUtildeExpr> */
1722 if (var_n_expr
== NULL
) {
1723 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1724 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4934);
1727 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1728 if (unlikely(var_n_expr
== NULL
)) {
1729 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1730 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1733 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1739 /* method parser_prod#AUtildeExpr#replace_child for (self: AUtildeExpr, ANode, nullable ANode) */
1740 void nit__parser_prod___AUtildeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1741 val
* var_old_child
/* var old_child: ANode */;
1742 val
* var_new_child
/* var new_child: nullable ANode */;
1743 val
* var
/* : Token */;
1744 short int var1
/* : Bool */;
1745 val
* var_other
/* var other: nullable Object */;
1746 short int var3
/* : Bool */;
1747 short int var5
/* : Bool */;
1748 short int var6
/* : Bool */;
1751 const char* var_class_name
;
1752 val
* var7
/* : AExpr */;
1753 short int var8
/* : Bool */;
1754 short int var10
/* : Bool */;
1755 short int var12
/* : Bool */;
1756 short int var13
/* : Bool */;
1759 const char* var_class_name16
;
1762 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUtildeExpr> */
1763 if (unlikely(var
== NULL
)) {
1764 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1765 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4939);
1769 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1770 var_other
= var_old_child
;
1772 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1773 var5
= var
== var_other
;
1785 /* <var_new_child:nullable ANode> isa TTilde */
1786 cltype
= type_nit__TTilde
.color
;
1787 idtype
= type_nit__TTilde
.id
;
1788 if(var_new_child
== NULL
) {
1791 if(cltype
>= var_new_child
->type
->table_size
) {
1794 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1797 if (unlikely(!var6
)) {
1798 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1799 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name
);
1800 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4940);
1804 nit__parser_prod___AUtildeExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AUtildeExpr#n_op= on <self:AUtildeExpr>*/
1809 var7
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUtildeExpr> */
1810 if (unlikely(var7
== NULL
)) {
1811 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4943);
1816 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
1817 var_other
= var_old_child
;
1819 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
1820 var12
= var7
== var_other
;
1823 RET_LABEL11
:(void)0;
1832 /* <var_new_child:nullable ANode> isa AExpr */
1833 cltype14
= type_nit__AExpr
.color
;
1834 idtype15
= type_nit__AExpr
.id
;
1835 if(var_new_child
== NULL
) {
1838 if(cltype14
>= var_new_child
->type
->table_size
) {
1841 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1844 if (unlikely(!var13
)) {
1845 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1846 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
1847 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4944);
1851 nit__parser_prod___AUtildeExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AUtildeExpr#n_expr= on <self:AUtildeExpr>*/
1858 /* method parser_prod#AUtildeExpr#n_op= for (self: AUtildeExpr, Token) */
1859 void nit__parser_prod___AUtildeExpr___nit__parser_nodes__AUnaryopExpr__n_op_61d(val
* self
, val
* p0
) {
1860 val
* var_node
/* var node: Token */;
1862 self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
= var_node
; /* _n_op on <self:AUtildeExpr> */
1864 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1865 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1871 /* method parser_prod#AUtildeExpr#n_expr= for (self: AUtildeExpr, AExpr) */
1872 void nit__parser_prod___AUtildeExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
1873 val
* var_node
/* var node: AExpr */;
1875 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AUtildeExpr> */
1877 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1878 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1884 /* method parser_prod#AUtildeExpr#visit_all for (self: AUtildeExpr, Visitor) */
1885 void nit__parser_prod___AUtildeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1886 val
* var_v
/* var v: Visitor */;
1887 val
* var
/* : Token */;
1888 val
* var1
/* : AExpr */;
1890 var
= self
->attrs
[COLOR_nit__parser_nodes__AUnaryopExpr___n_op
].val
; /* _n_op on <self:AUtildeExpr> */
1891 if (unlikely(var
== NULL
)) {
1892 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1893 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4963);
1897 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1899 var1
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AUtildeExpr> */
1900 if (unlikely(var1
== NULL
)) {
1901 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1902 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4964);
1906 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1910 /* method parser_prod#ANewExpr#init_anewexpr for (self: ANewExpr, nullable TKwnew, nullable AType, nullable TId, nullable AExprs) */
1911 void nit__parser_prod___ANewExpr___init_anewexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1912 val
* var_n_kwnew
/* var n_kwnew: nullable TKwnew */;
1913 val
* var_n_type
/* var n_type: nullable AType */;
1914 val
* var_n_id
/* var n_id: nullable TId */;
1915 val
* var_n_args
/* var n_args: nullable AExprs */;
1916 short int var
/* : Bool */;
1917 short int var4
/* : Bool */;
1918 val
* var_other
/* var other: nullable Object */;
1919 short int var6
/* : Bool */;
1920 short int var7
/* : Bool */;
1922 { /* Inline kernel#Object#init (self) on <self:ANewExpr> */
1930 if (unlikely(var_n_kwnew
== NULL
)) {
1931 PRINT_ERROR("Runtime error: %s", "Cast failed");
1932 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4975);
1935 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_kwnew
].val
= var_n_kwnew
; /* _n_kwnew on <self:ANewExpr> */
1936 if (var_n_kwnew
== NULL
) {
1937 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1938 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4976);
1941 { /* Inline parser_nodes#ANode#parent= (var_n_kwnew,self) on <var_n_kwnew:nullable TKwnew> */
1942 if (unlikely(var_n_kwnew
== NULL
)) {
1943 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1944 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1947 var_n_kwnew
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnew:nullable TKwnew> */
1951 if (unlikely(var_n_type
== NULL
)) {
1952 PRINT_ERROR("Runtime error: %s", "Cast failed");
1953 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4977);
1956 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ANewExpr> */
1957 if (var_n_type
== NULL
) {
1958 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1959 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4978);
1962 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
1963 if (unlikely(var_n_type
== NULL
)) {
1964 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1965 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1968 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
1972 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_id
].val
= var_n_id
; /* _n_id on <self:ANewExpr> */
1973 if (var_n_id
== NULL
) {
1974 var
= 0; /* is null */
1976 var
= 1; /* arg is null and recv is not */
1979 { /* Inline kernel#Object#!= (var_n_id,((val*)NULL)) on <var_n_id:nullable TId> */
1980 var_other
= ((val
*)NULL
);
1982 var6
= ((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)>*/
1993 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId(TId)> */
1994 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId(TId)> */
2000 if (unlikely(var_n_args
== NULL
)) {
2001 PRINT_ERROR("Runtime error: %s", "Cast failed");
2002 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4981);
2005 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ANewExpr> */
2006 if (var_n_args
== NULL
) {
2007 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2008 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4982);
2011 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
2012 if (unlikely(var_n_args
== NULL
)) {
2013 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2014 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2017 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
2023 /* method parser_prod#ANewExpr#replace_child for (self: ANewExpr, ANode, nullable ANode) */
2024 void nit__parser_prod___ANewExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2025 val
* var_old_child
/* var old_child: ANode */;
2026 val
* var_new_child
/* var new_child: nullable ANode */;
2027 val
* var
/* : TKwnew */;
2028 short int var1
/* : Bool */;
2029 val
* var_other
/* var other: nullable Object */;
2030 short int var3
/* : Bool */;
2031 short int var5
/* : Bool */;
2032 short int var6
/* : Bool */;
2035 const char* var_class_name
;
2036 val
* var7
/* : AType */;
2037 short int var8
/* : Bool */;
2038 short int var10
/* : Bool */;
2039 short int var12
/* : Bool */;
2040 short int var13
/* : Bool */;
2043 const char* var_class_name16
;
2044 val
* var17
/* : nullable TId */;
2045 short int var18
/* : Bool */;
2046 short int var19
/* : Bool */;
2047 short int var21
/* : Bool */;
2048 short int var23
/* : Bool */;
2049 short int var24
/* : Bool */;
2052 const char* var_class_name27
;
2053 val
* var28
/* : AExprs */;
2054 short int var29
/* : Bool */;
2055 short int var31
/* : Bool */;
2056 short int var33
/* : Bool */;
2057 short int var34
/* : Bool */;
2060 const char* var_class_name37
;
2063 var
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_kwnew
].val
; /* _n_kwnew on <self:ANewExpr> */
2064 if (unlikely(var
== NULL
)) {
2065 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnew");
2066 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4987);
2070 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwnew> */
2071 var_other
= var_old_child
;
2073 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwnew> */
2074 var5
= var
== var_other
;
2086 /* <var_new_child:nullable ANode> isa TKwnew */
2087 cltype
= type_nit__TKwnew
.color
;
2088 idtype
= type_nit__TKwnew
.id
;
2089 if(var_new_child
== NULL
) {
2092 if(cltype
>= var_new_child
->type
->table_size
) {
2095 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2098 if (unlikely(!var6
)) {
2099 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2100 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnew", var_class_name
);
2101 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4988);
2105 nit__parser_prod___ANewExpr___n_kwnew_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_kwnew= on <self:ANewExpr>*/
2110 var7
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_type
].val
; /* _n_type on <self:ANewExpr> */
2111 if (unlikely(var7
== NULL
)) {
2112 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
2113 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4991);
2117 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AType> */
2118 var_other
= var_old_child
;
2120 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AType> */
2121 var12
= var7
== var_other
;
2124 RET_LABEL11
:(void)0;
2133 /* <var_new_child:nullable ANode> isa AType */
2134 cltype14
= type_nit__AType
.color
;
2135 idtype15
= type_nit__AType
.id
;
2136 if(var_new_child
== NULL
) {
2139 if(cltype14
>= var_new_child
->type
->table_size
) {
2142 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2145 if (unlikely(!var13
)) {
2146 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2147 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name16
);
2148 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4992);
2152 nit__parser_prod___ANewExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_type= on <self:ANewExpr>*/
2157 var17
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_id
].val
; /* _n_id on <self:ANewExpr> */
2158 if (var17
== NULL
) {
2159 var18
= 0; /* <var_old_child:ANode> cannot be null */
2161 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable TId> */
2162 var_other
= var_old_child
;
2164 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable TId(TId)> */
2165 var23
= var17
== var_other
;
2168 RET_LABEL22
:(void)0;
2173 RET_LABEL20
:(void)0;
2178 /* <var_new_child:nullable ANode> isa nullable TId */
2179 cltype25
= type_nullable__nit__TId
.color
;
2180 idtype26
= type_nullable__nit__TId
.id
;
2181 if(var_new_child
== NULL
) {
2184 if(cltype25
>= var_new_child
->type
->table_size
) {
2187 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
2190 if (unlikely(!var24
)) {
2191 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2192 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name27
);
2193 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4996);
2197 nit__parser_prod___ANewExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_id= on <self:ANewExpr>*/
2202 var28
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_args
].val
; /* _n_args on <self:ANewExpr> */
2203 if (unlikely(var28
== NULL
)) {
2204 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2205 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 4999);
2209 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:AExprs> */
2210 var_other
= var_old_child
;
2212 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:AExprs> */
2213 var33
= var28
== var_other
;
2216 RET_LABEL32
:(void)0;
2221 RET_LABEL30
:(void)0;
2225 /* <var_new_child:nullable ANode> isa AExprs */
2226 cltype35
= type_nit__AExprs
.color
;
2227 idtype36
= type_nit__AExprs
.id
;
2228 if(var_new_child
== NULL
) {
2231 if(cltype35
>= var_new_child
->type
->table_size
) {
2234 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
2237 if (unlikely(!var34
)) {
2238 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2239 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name37
);
2240 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5000);
2244 nit__parser_prod___ANewExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ANewExpr#n_args= on <self:ANewExpr>*/
2251 /* method parser_prod#ANewExpr#n_kwnew= for (self: ANewExpr, TKwnew) */
2252 void nit__parser_prod___ANewExpr___n_kwnew_61d(val
* self
, val
* p0
) {
2253 val
* var_node
/* var node: TKwnew */;
2255 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_kwnew
].val
= var_node
; /* _n_kwnew on <self:ANewExpr> */
2257 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnew> */
2258 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnew> */
2264 /* method parser_prod#ANewExpr#n_type= for (self: ANewExpr, AType) */
2265 void nit__parser_prod___ANewExpr___n_type_61d(val
* self
, val
* p0
) {
2266 val
* var_node
/* var node: AType */;
2268 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_type
].val
= var_node
; /* _n_type on <self:ANewExpr> */
2270 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
2271 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
2277 /* method parser_prod#ANewExpr#n_id= for (self: ANewExpr, nullable TId) */
2278 void nit__parser_prod___ANewExpr___n_id_61d(val
* self
, val
* p0
) {
2279 val
* var_node
/* var node: nullable TId */;
2280 short int var
/* : Bool */;
2281 short int var1
/* : Bool */;
2282 val
* var_other
/* var other: nullable Object */;
2283 short int var3
/* : Bool */;
2284 short int var4
/* : Bool */;
2286 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_id
].val
= var_node
; /* _n_id on <self:ANewExpr> */
2287 if (var_node
== NULL
) {
2288 var
= 0; /* is null */
2290 var
= 1; /* arg is null and recv is not */
2293 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TId> */
2294 var_other
= ((val
*)NULL
);
2296 var3
= ((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)>*/
2307 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TId(TId)> */
2308 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TId(TId)> */
2316 /* method parser_prod#ANewExpr#n_args= for (self: ANewExpr, AExprs) */
2317 void nit__parser_prod___ANewExpr___n_args_61d(val
* self
, val
* p0
) {
2318 val
* var_node
/* var node: AExprs */;
2320 self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_args
].val
= var_node
; /* _n_args on <self:ANewExpr> */
2322 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
2323 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
2329 /* method parser_prod#ANewExpr#visit_all for (self: ANewExpr, Visitor) */
2330 void nit__parser_prod___ANewExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2331 val
* var_v
/* var v: Visitor */;
2332 val
* var
/* : TKwnew */;
2333 val
* var1
/* : AType */;
2334 val
* var2
/* : nullable TId */;
2335 val
* var3
/* : AExprs */;
2337 var
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_kwnew
].val
; /* _n_kwnew on <self:ANewExpr> */
2338 if (unlikely(var
== NULL
)) {
2339 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnew");
2340 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5029);
2344 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2346 var1
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_type
].val
; /* _n_type on <self:ANewExpr> */
2347 if (unlikely(var1
== NULL
)) {
2348 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
2349 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5030);
2353 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2355 var2
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_id
].val
; /* _n_id on <self:ANewExpr> */
2357 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2359 var3
= self
->attrs
[COLOR_nit__parser_nodes__ANewExpr___n_args
].val
; /* _n_args on <self:ANewExpr> */
2360 if (unlikely(var3
== NULL
)) {
2361 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2362 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5032);
2366 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2370 /* method parser_prod#AAttrExpr#init_aattrexpr for (self: AAttrExpr, nullable AExpr, nullable TAttrid) */
2371 void nit__parser_prod___AAttrExpr___init_aattrexpr(val
* self
, val
* p0
, val
* p1
) {
2372 val
* var_n_expr
/* var n_expr: nullable AExpr */;
2373 val
* var_n_id
/* var n_id: nullable TAttrid */;
2375 { /* Inline kernel#Object#init (self) on <self:AAttrExpr> */
2381 if (unlikely(var_n_expr
== NULL
)) {
2382 PRINT_ERROR("Runtime error: %s", "Cast failed");
2383 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5041);
2386 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrExpr> */
2387 if (var_n_expr
== NULL
) {
2388 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2389 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5042);
2392 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
2393 if (unlikely(var_n_expr
== NULL
)) {
2394 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2395 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2398 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
2402 if (unlikely(var_n_id
== NULL
)) {
2403 PRINT_ERROR("Runtime error: %s", "Cast failed");
2404 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5043);
2407 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrExpr> */
2408 if (var_n_id
== NULL
) {
2409 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2410 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5044);
2413 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
2414 if (unlikely(var_n_id
== NULL
)) {
2415 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2416 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2419 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
2425 /* method parser_prod#AAttrExpr#replace_child for (self: AAttrExpr, ANode, nullable ANode) */
2426 void nit__parser_prod___AAttrExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2427 val
* var_old_child
/* var old_child: ANode */;
2428 val
* var_new_child
/* var new_child: nullable ANode */;
2429 val
* var
/* : AExpr */;
2430 short int var1
/* : Bool */;
2431 val
* var_other
/* var other: nullable Object */;
2432 short int var3
/* : Bool */;
2433 short int var5
/* : Bool */;
2434 short int var6
/* : Bool */;
2437 const char* var_class_name
;
2438 val
* var7
/* : TAttrid */;
2439 short int var8
/* : Bool */;
2440 short int var10
/* : Bool */;
2441 short int var12
/* : Bool */;
2442 short int var13
/* : Bool */;
2445 const char* var_class_name16
;
2448 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrExpr> */
2449 if (unlikely(var
== NULL
)) {
2450 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2451 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5049);
2455 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
2456 var_other
= var_old_child
;
2458 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
2459 var5
= var
== var_other
;
2471 /* <var_new_child:nullable ANode> isa AExpr */
2472 cltype
= type_nit__AExpr
.color
;
2473 idtype
= type_nit__AExpr
.id
;
2474 if(var_new_child
== NULL
) {
2477 if(cltype
>= var_new_child
->type
->table_size
) {
2480 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2483 if (unlikely(!var6
)) {
2484 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2485 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
2486 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5050);
2490 nit__parser_prod___AAttrExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrExpr#n_expr= on <self:AAttrExpr>*/
2495 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrExpr> */
2496 if (unlikely(var7
== NULL
)) {
2497 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2498 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5053);
2502 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
2503 var_other
= var_old_child
;
2505 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
2506 var12
= var7
== var_other
;
2509 RET_LABEL11
:(void)0;
2518 /* <var_new_child:nullable ANode> isa TAttrid */
2519 cltype14
= type_nit__TAttrid
.color
;
2520 idtype15
= type_nit__TAttrid
.id
;
2521 if(var_new_child
== NULL
) {
2524 if(cltype14
>= var_new_child
->type
->table_size
) {
2527 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2530 if (unlikely(!var13
)) {
2531 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2532 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
2533 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5054);
2537 nit__parser_prod___AAttrExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrExpr#n_id= on <self:AAttrExpr>*/
2544 /* method parser_prod#AAttrExpr#n_expr= for (self: AAttrExpr, AExpr) */
2545 void nit__parser_prod___AAttrExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
2546 val
* var_node
/* var node: AExpr */;
2548 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrExpr> */
2550 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2551 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2557 /* method parser_prod#AAttrExpr#n_id= for (self: AAttrExpr, TAttrid) */
2558 void nit__parser_prod___AAttrExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
2559 val
* var_node
/* var node: TAttrid */;
2561 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrExpr> */
2563 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
2564 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
2570 /* method parser_prod#AAttrExpr#visit_all for (self: AAttrExpr, Visitor) */
2571 void nit__parser_prod___AAttrExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2572 val
* var_v
/* var v: Visitor */;
2573 val
* var
/* : AExpr */;
2574 val
* var1
/* : TAttrid */;
2576 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrExpr> */
2577 if (unlikely(var
== NULL
)) {
2578 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2579 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5073);
2583 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2585 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrExpr> */
2586 if (unlikely(var1
== NULL
)) {
2587 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2588 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5074);
2592 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2596 /* method parser_prod#AAttrAssignExpr#init_aattrassignexpr for (self: AAttrAssignExpr, nullable AExpr, nullable TAttrid, nullable TAssign, nullable AExpr) */
2597 void nit__parser_prod___AAttrAssignExpr___init_aattrassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2598 val
* var_n_expr
/* var n_expr: nullable AExpr */;
2599 val
* var_n_id
/* var n_id: nullable TAttrid */;
2600 val
* var_n_assign
/* var n_assign: nullable TAssign */;
2601 val
* var_n_value
/* var n_value: nullable AExpr */;
2603 { /* Inline kernel#Object#init (self) on <self:AAttrAssignExpr> */
2611 if (unlikely(var_n_expr
== NULL
)) {
2612 PRINT_ERROR("Runtime error: %s", "Cast failed");
2613 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5085);
2616 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrAssignExpr> */
2617 if (var_n_expr
== NULL
) {
2618 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2619 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5086);
2622 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
2623 if (unlikely(var_n_expr
== NULL
)) {
2624 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2625 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2628 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
2632 if (unlikely(var_n_id
== NULL
)) {
2633 PRINT_ERROR("Runtime error: %s", "Cast failed");
2634 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5087);
2637 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrAssignExpr> */
2638 if (var_n_id
== NULL
) {
2639 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2640 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5088);
2643 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
2644 if (unlikely(var_n_id
== NULL
)) {
2645 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2646 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2649 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
2653 if (unlikely(var_n_assign
== NULL
)) {
2654 PRINT_ERROR("Runtime error: %s", "Cast failed");
2655 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5089);
2658 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAttrAssignExpr> */
2659 if (var_n_assign
== NULL
) {
2660 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2661 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5090);
2664 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
2665 if (unlikely(var_n_assign
== NULL
)) {
2666 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2667 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2670 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
2674 if (unlikely(var_n_value
== NULL
)) {
2675 PRINT_ERROR("Runtime error: %s", "Cast failed");
2676 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5091);
2679 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AAttrAssignExpr> */
2680 if (var_n_value
== NULL
) {
2681 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2682 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5092);
2685 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
2686 if (unlikely(var_n_value
== NULL
)) {
2687 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2688 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2691 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
2697 /* method parser_prod#AAttrAssignExpr#replace_child for (self: AAttrAssignExpr, ANode, nullable ANode) */
2698 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2699 val
* var_old_child
/* var old_child: ANode */;
2700 val
* var_new_child
/* var new_child: nullable ANode */;
2701 val
* var
/* : AExpr */;
2702 short int var1
/* : Bool */;
2703 val
* var_other
/* var other: nullable Object */;
2704 short int var3
/* : Bool */;
2705 short int var5
/* : Bool */;
2706 short int var6
/* : Bool */;
2709 const char* var_class_name
;
2710 val
* var7
/* : TAttrid */;
2711 short int var8
/* : Bool */;
2712 short int var10
/* : Bool */;
2713 short int var12
/* : Bool */;
2714 short int var13
/* : Bool */;
2717 const char* var_class_name16
;
2718 val
* var17
/* : TAssign */;
2719 short int var18
/* : Bool */;
2720 short int var20
/* : Bool */;
2721 short int var22
/* : Bool */;
2722 short int var23
/* : Bool */;
2725 const char* var_class_name26
;
2726 val
* var27
/* : AExpr */;
2727 short int var28
/* : Bool */;
2728 short int var30
/* : Bool */;
2729 short int var32
/* : Bool */;
2730 short int var33
/* : Bool */;
2733 const char* var_class_name36
;
2736 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrAssignExpr> */
2737 if (unlikely(var
== NULL
)) {
2738 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2739 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5097);
2743 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
2744 var_other
= var_old_child
;
2746 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
2747 var5
= var
== var_other
;
2759 /* <var_new_child:nullable ANode> isa AExpr */
2760 cltype
= type_nit__AExpr
.color
;
2761 idtype
= type_nit__AExpr
.id
;
2762 if(var_new_child
== NULL
) {
2765 if(cltype
>= var_new_child
->type
->table_size
) {
2768 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2771 if (unlikely(!var6
)) {
2772 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2773 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
2774 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5098);
2778 nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_expr= on <self:AAttrAssignExpr>*/
2783 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrAssignExpr> */
2784 if (unlikely(var7
== NULL
)) {
2785 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2786 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5101);
2790 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
2791 var_other
= var_old_child
;
2793 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
2794 var12
= var7
== var_other
;
2797 RET_LABEL11
:(void)0;
2806 /* <var_new_child:nullable ANode> isa TAttrid */
2807 cltype14
= type_nit__TAttrid
.color
;
2808 idtype15
= type_nit__TAttrid
.id
;
2809 if(var_new_child
== NULL
) {
2812 if(cltype14
>= var_new_child
->type
->table_size
) {
2815 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
2818 if (unlikely(!var13
)) {
2819 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2820 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
2821 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5102);
2825 nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_id= on <self:AAttrAssignExpr>*/
2830 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AAttrAssignExpr> */
2831 if (unlikely(var17
== NULL
)) {
2832 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
2833 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5105);
2837 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
2838 var_other
= var_old_child
;
2840 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
2841 var22
= var17
== var_other
;
2844 RET_LABEL21
:(void)0;
2849 RET_LABEL19
:(void)0;
2853 /* <var_new_child:nullable ANode> isa TAssign */
2854 cltype24
= type_nit__TAssign
.color
;
2855 idtype25
= type_nit__TAssign
.id
;
2856 if(var_new_child
== NULL
) {
2859 if(cltype24
>= var_new_child
->type
->table_size
) {
2862 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
2865 if (unlikely(!var23
)) {
2866 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2867 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
2868 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5106);
2872 nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_assign= on <self:AAttrAssignExpr>*/
2877 var27
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AAttrAssignExpr> */
2878 if (unlikely(var27
== NULL
)) {
2879 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
2880 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5109);
2884 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
2885 var_other
= var_old_child
;
2887 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
2888 var32
= var27
== var_other
;
2891 RET_LABEL31
:(void)0;
2896 RET_LABEL29
:(void)0;
2900 /* <var_new_child:nullable ANode> isa AExpr */
2901 cltype34
= type_nit__AExpr
.color
;
2902 idtype35
= type_nit__AExpr
.id
;
2903 if(var_new_child
== NULL
) {
2906 if(cltype34
>= var_new_child
->type
->table_size
) {
2909 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
2912 if (unlikely(!var33
)) {
2913 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2914 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
2915 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5110);
2919 nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrAssignExpr#n_value= on <self:AAttrAssignExpr>*/
2926 /* method parser_prod#AAttrAssignExpr#n_expr= for (self: AAttrAssignExpr, AExpr) */
2927 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
2928 val
* var_node
/* var node: AExpr */;
2930 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrAssignExpr> */
2932 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2933 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2939 /* method parser_prod#AAttrAssignExpr#n_id= for (self: AAttrAssignExpr, TAttrid) */
2940 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
2941 val
* var_node
/* var node: TAttrid */;
2943 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrAssignExpr> */
2945 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
2946 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
2952 /* method parser_prod#AAttrAssignExpr#n_assign= for (self: AAttrAssignExpr, TAssign) */
2953 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
2954 val
* var_node
/* var node: TAssign */;
2956 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AAttrAssignExpr> */
2958 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
2959 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
2965 /* method parser_prod#AAttrAssignExpr#n_value= for (self: AAttrAssignExpr, AExpr) */
2966 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
2967 val
* var_node
/* var node: AExpr */;
2969 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AAttrAssignExpr> */
2971 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2972 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2978 /* method parser_prod#AAttrAssignExpr#visit_all for (self: AAttrAssignExpr, Visitor) */
2979 void nit__parser_prod___AAttrAssignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2980 val
* var_v
/* var v: Visitor */;
2981 val
* var
/* : AExpr */;
2982 val
* var1
/* : TAttrid */;
2983 val
* var2
/* : TAssign */;
2984 val
* var3
/* : AExpr */;
2986 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrAssignExpr> */
2987 if (unlikely(var
== NULL
)) {
2988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2989 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5139);
2993 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2995 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrAssignExpr> */
2996 if (unlikely(var1
== NULL
)) {
2997 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2998 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5140);
3002 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3004 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AAttrAssignExpr> */
3005 if (unlikely(var2
== NULL
)) {
3006 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
3007 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5141);
3011 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3013 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AAttrAssignExpr> */
3014 if (unlikely(var3
== NULL
)) {
3015 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3016 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5142);
3020 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3024 /* method parser_prod#AAttrReassignExpr#init_aattrreassignexpr for (self: AAttrReassignExpr, nullable AExpr, nullable TAttrid, nullable AAssignOp, nullable AExpr) */
3025 void nit__parser_prod___AAttrReassignExpr___init_aattrreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
3026 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3027 val
* var_n_id
/* var n_id: nullable TAttrid */;
3028 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
3029 val
* var_n_value
/* var n_value: nullable AExpr */;
3031 { /* Inline kernel#Object#init (self) on <self:AAttrReassignExpr> */
3037 var_n_assign_op
= p2
;
3039 if (unlikely(var_n_expr
== NULL
)) {
3040 PRINT_ERROR("Runtime error: %s", "Cast failed");
3041 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5153);
3044 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrReassignExpr> */
3045 if (var_n_expr
== NULL
) {
3046 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3047 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5154);
3050 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3051 if (unlikely(var_n_expr
== NULL
)) {
3052 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3053 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3056 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3060 if (unlikely(var_n_id
== NULL
)) {
3061 PRINT_ERROR("Runtime error: %s", "Cast failed");
3062 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5155);
3065 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrReassignExpr> */
3066 if (var_n_id
== NULL
) {
3067 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3068 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5156);
3071 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
3072 if (unlikely(var_n_id
== NULL
)) {
3073 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3074 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3077 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
3081 if (unlikely(var_n_assign_op
== NULL
)) {
3082 PRINT_ERROR("Runtime error: %s", "Cast failed");
3083 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5157);
3086 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:AAttrReassignExpr> */
3087 if (var_n_assign_op
== NULL
) {
3088 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5158);
3092 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
3093 if (unlikely(var_n_assign_op
== NULL
)) {
3094 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3095 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3098 var_n_assign_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
3102 if (unlikely(var_n_value
== NULL
)) {
3103 PRINT_ERROR("Runtime error: %s", "Cast failed");
3104 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5159);
3107 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AAttrReassignExpr> */
3108 if (var_n_value
== NULL
) {
3109 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3110 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5160);
3113 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
3114 if (unlikely(var_n_value
== NULL
)) {
3115 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3116 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3119 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
3125 /* method parser_prod#AAttrReassignExpr#replace_child for (self: AAttrReassignExpr, ANode, nullable ANode) */
3126 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3127 val
* var_old_child
/* var old_child: ANode */;
3128 val
* var_new_child
/* var new_child: nullable ANode */;
3129 val
* var
/* : AExpr */;
3130 short int var1
/* : Bool */;
3131 val
* var_other
/* var other: nullable Object */;
3132 short int var3
/* : Bool */;
3133 short int var5
/* : Bool */;
3134 short int var6
/* : Bool */;
3137 const char* var_class_name
;
3138 val
* var7
/* : TAttrid */;
3139 short int var8
/* : Bool */;
3140 short int var10
/* : Bool */;
3141 short int var12
/* : Bool */;
3142 short int var13
/* : Bool */;
3145 const char* var_class_name16
;
3146 val
* var17
/* : AAssignOp */;
3147 short int var18
/* : Bool */;
3148 short int var20
/* : Bool */;
3149 short int var22
/* : Bool */;
3150 short int var23
/* : Bool */;
3153 const char* var_class_name26
;
3154 val
* var27
/* : AExpr */;
3155 short int var28
/* : Bool */;
3156 short int var30
/* : Bool */;
3157 short int var32
/* : Bool */;
3158 short int var33
/* : Bool */;
3161 const char* var_class_name36
;
3164 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrReassignExpr> */
3165 if (unlikely(var
== NULL
)) {
3166 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3167 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5165);
3171 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3172 var_other
= var_old_child
;
3174 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3175 var5
= var
== var_other
;
3187 /* <var_new_child:nullable ANode> isa AExpr */
3188 cltype
= type_nit__AExpr
.color
;
3189 idtype
= type_nit__AExpr
.id
;
3190 if(var_new_child
== NULL
) {
3193 if(cltype
>= var_new_child
->type
->table_size
) {
3196 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3199 if (unlikely(!var6
)) {
3200 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3201 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3202 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5166);
3206 nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_expr= on <self:AAttrReassignExpr>*/
3211 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrReassignExpr> */
3212 if (unlikely(var7
== NULL
)) {
3213 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3214 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5169);
3218 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAttrid> */
3219 var_other
= var_old_child
;
3221 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAttrid> */
3222 var12
= var7
== var_other
;
3225 RET_LABEL11
:(void)0;
3234 /* <var_new_child:nullable ANode> isa TAttrid */
3235 cltype14
= type_nit__TAttrid
.color
;
3236 idtype15
= type_nit__TAttrid
.id
;
3237 if(var_new_child
== NULL
) {
3240 if(cltype14
>= var_new_child
->type
->table_size
) {
3243 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3246 if (unlikely(!var13
)) {
3247 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3248 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name16
);
3249 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5170);
3253 nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_id= on <self:AAttrReassignExpr>*/
3258 var17
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AAttrReassignExpr> */
3259 if (unlikely(var17
== NULL
)) {
3260 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3261 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5173);
3265 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AAssignOp> */
3266 var_other
= var_old_child
;
3268 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AAssignOp> */
3269 var22
= var17
== var_other
;
3272 RET_LABEL21
:(void)0;
3277 RET_LABEL19
:(void)0;
3281 /* <var_new_child:nullable ANode> isa AAssignOp */
3282 cltype24
= type_nit__AAssignOp
.color
;
3283 idtype25
= type_nit__AAssignOp
.id
;
3284 if(var_new_child
== NULL
) {
3287 if(cltype24
>= var_new_child
->type
->table_size
) {
3290 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
3293 if (unlikely(!var23
)) {
3294 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3295 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name26
);
3296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5174);
3300 nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_assign_op= on <self:AAttrReassignExpr>*/
3305 var27
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AAttrReassignExpr> */
3306 if (unlikely(var27
== NULL
)) {
3307 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3308 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5177);
3312 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
3313 var_other
= var_old_child
;
3315 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
3316 var32
= var27
== var_other
;
3319 RET_LABEL31
:(void)0;
3324 RET_LABEL29
:(void)0;
3328 /* <var_new_child:nullable ANode> isa AExpr */
3329 cltype34
= type_nit__AExpr
.color
;
3330 idtype35
= type_nit__AExpr
.id
;
3331 if(var_new_child
== NULL
) {
3334 if(cltype34
>= var_new_child
->type
->table_size
) {
3337 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
3340 if (unlikely(!var33
)) {
3341 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3342 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
3343 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5178);
3347 nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrReassignExpr#n_value= on <self:AAttrReassignExpr>*/
3354 /* method parser_prod#AAttrReassignExpr#n_expr= for (self: AAttrReassignExpr, AExpr) */
3355 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
3356 val
* var_node
/* var node: AExpr */;
3358 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrReassignExpr> */
3360 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3361 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3367 /* method parser_prod#AAttrReassignExpr#n_id= for (self: AAttrReassignExpr, TAttrid) */
3368 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
3369 val
* var_node
/* var node: TAttrid */;
3371 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AAttrReassignExpr> */
3373 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
3374 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
3380 /* method parser_prod#AAttrReassignExpr#n_assign_op= for (self: AAttrReassignExpr, AAssignOp) */
3381 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
3382 val
* var_node
/* var node: AAssignOp */;
3384 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:AAttrReassignExpr> */
3386 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
3387 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
3393 /* method parser_prod#AAttrReassignExpr#n_value= for (self: AAttrReassignExpr, AExpr) */
3394 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
3395 val
* var_node
/* var node: AExpr */;
3397 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AAttrReassignExpr> */
3399 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3400 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3406 /* method parser_prod#AAttrReassignExpr#visit_all for (self: AAttrReassignExpr, Visitor) */
3407 void nit__parser_prod___AAttrReassignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3408 val
* var_v
/* var v: Visitor */;
3409 val
* var
/* : AExpr */;
3410 val
* var1
/* : TAttrid */;
3411 val
* var2
/* : AAssignOp */;
3412 val
* var3
/* : AExpr */;
3414 var
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AAttrReassignExpr> */
3415 if (unlikely(var
== NULL
)) {
3416 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3417 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5207);
3421 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3423 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AAttrReassignExpr> */
3424 if (unlikely(var1
== NULL
)) {
3425 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3426 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5208);
3430 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3432 var2
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AAttrReassignExpr> */
3433 if (unlikely(var2
== NULL
)) {
3434 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3435 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5209);
3439 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3441 var3
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AAttrReassignExpr> */
3442 if (unlikely(var3
== NULL
)) {
3443 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3444 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5210);
3448 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3452 /* method parser_prod#ACallExpr#init_acallexpr for (self: ACallExpr, nullable AExpr, nullable TId, nullable AExprs) */
3453 void nit__parser_prod___ACallExpr___init_acallexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
3454 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3455 val
* var_n_id
/* var n_id: nullable TId */;
3456 val
* var_n_args
/* var n_args: nullable AExprs */;
3458 { /* Inline kernel#Object#init (self) on <self:ACallExpr> */
3465 if (unlikely(var_n_expr
== NULL
)) {
3466 PRINT_ERROR("Runtime error: %s", "Cast failed");
3467 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5220);
3470 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallExpr> */
3471 if (var_n_expr
== NULL
) {
3472 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3473 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5221);
3476 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3477 if (unlikely(var_n_expr
== NULL
)) {
3478 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3479 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3482 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3486 if (unlikely(var_n_id
== NULL
)) {
3487 PRINT_ERROR("Runtime error: %s", "Cast failed");
3488 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5222);
3491 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:ACallExpr> */
3492 if (var_n_id
== NULL
) {
3493 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3494 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5223);
3497 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3498 if (unlikely(var_n_id
== NULL
)) {
3499 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3500 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3503 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3507 if (unlikely(var_n_args
== NULL
)) {
3508 PRINT_ERROR("Runtime error: %s", "Cast failed");
3509 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5224);
3512 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallExpr> */
3513 if (var_n_args
== NULL
) {
3514 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3515 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5225);
3518 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
3519 if (unlikely(var_n_args
== NULL
)) {
3520 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3521 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3524 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
3530 /* method parser_prod#ACallExpr#replace_child for (self: ACallExpr, ANode, nullable ANode) */
3531 void nit__parser_prod___ACallExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3532 val
* var_old_child
/* var old_child: ANode */;
3533 val
* var_new_child
/* var new_child: nullable ANode */;
3534 val
* var
/* : AExpr */;
3535 short int var1
/* : Bool */;
3536 val
* var_other
/* var other: nullable Object */;
3537 short int var3
/* : Bool */;
3538 short int var5
/* : Bool */;
3539 short int var6
/* : Bool */;
3542 const char* var_class_name
;
3543 val
* var7
/* : TId */;
3544 short int var8
/* : Bool */;
3545 short int var10
/* : Bool */;
3546 short int var12
/* : Bool */;
3547 short int var13
/* : Bool */;
3550 const char* var_class_name16
;
3551 val
* var17
/* : AExprs */;
3552 short int var18
/* : Bool */;
3553 short int var20
/* : Bool */;
3554 short int var22
/* : Bool */;
3555 short int var23
/* : Bool */;
3558 const char* var_class_name26
;
3561 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallExpr> */
3562 if (unlikely(var
== NULL
)) {
3563 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3564 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5230);
3568 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3569 var_other
= var_old_child
;
3571 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3572 var5
= var
== var_other
;
3584 /* <var_new_child:nullable ANode> isa AExpr */
3585 cltype
= type_nit__AExpr
.color
;
3586 idtype
= type_nit__AExpr
.id
;
3587 if(var_new_child
== NULL
) {
3590 if(cltype
>= var_new_child
->type
->table_size
) {
3593 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3596 if (unlikely(!var6
)) {
3597 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3598 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3599 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5231);
3603 nit__parser_prod___ACallExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_expr= on <self:ACallExpr>*/
3608 var7
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallExpr> */
3609 if (unlikely(var7
== NULL
)) {
3610 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3611 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5234);
3615 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TId> */
3616 var_other
= var_old_child
;
3618 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TId> */
3619 var12
= var7
== var_other
;
3622 RET_LABEL11
:(void)0;
3631 /* <var_new_child:nullable ANode> isa TId */
3632 cltype14
= type_nit__TId
.color
;
3633 idtype15
= type_nit__TId
.id
;
3634 if(var_new_child
== NULL
) {
3637 if(cltype14
>= var_new_child
->type
->table_size
) {
3640 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3643 if (unlikely(!var13
)) {
3644 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3645 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name16
);
3646 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5235);
3650 nit__parser_prod___ACallExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_id= on <self:ACallExpr>*/
3655 var17
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallExpr> */
3656 if (unlikely(var17
== NULL
)) {
3657 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
3658 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5238);
3662 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
3663 var_other
= var_old_child
;
3665 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
3666 var22
= var17
== var_other
;
3669 RET_LABEL21
:(void)0;
3674 RET_LABEL19
:(void)0;
3678 /* <var_new_child:nullable ANode> isa AExprs */
3679 cltype24
= type_nit__AExprs
.color
;
3680 idtype25
= type_nit__AExprs
.id
;
3681 if(var_new_child
== NULL
) {
3684 if(cltype24
>= var_new_child
->type
->table_size
) {
3687 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
3690 if (unlikely(!var23
)) {
3691 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3692 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
3693 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5239);
3697 nit__parser_prod___ACallExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallExpr#n_args= on <self:ACallExpr>*/
3704 /* method parser_prod#ACallExpr#n_expr= for (self: ACallExpr, AExpr) */
3705 void nit__parser_prod___ACallExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
3706 val
* var_node
/* var node: AExpr */;
3708 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallExpr> */
3710 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3711 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3717 /* method parser_prod#ACallExpr#n_id= for (self: ACallExpr, TId) */
3718 void nit__parser_prod___ACallExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(val
* self
, val
* p0
) {
3719 val
* var_node
/* var node: TId */;
3721 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_node
; /* _n_id on <self:ACallExpr> */
3723 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
3724 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
3730 /* method parser_prod#ACallExpr#n_args= for (self: ACallExpr, AExprs) */
3731 void nit__parser_prod___ACallExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
3732 val
* var_node
/* var node: AExprs */;
3734 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallExpr> */
3736 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
3737 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
3743 /* method parser_prod#ACallExpr#visit_all for (self: ACallExpr, Visitor) */
3744 void nit__parser_prod___ACallExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3745 val
* var_v
/* var v: Visitor */;
3746 val
* var
/* : AExpr */;
3747 val
* var1
/* : TId */;
3748 val
* var2
/* : AExprs */;
3750 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallExpr> */
3751 if (unlikely(var
== NULL
)) {
3752 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3753 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5263);
3757 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3759 var1
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallExpr> */
3760 if (unlikely(var1
== NULL
)) {
3761 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3762 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5264);
3766 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3768 var2
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallExpr> */
3769 if (unlikely(var2
== NULL
)) {
3770 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
3771 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5265);
3775 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3779 /* method parser_prod#ACallAssignExpr#init_acallassignexpr for (self: ACallAssignExpr, nullable AExpr, nullable TId, nullable AExprs, nullable TAssign, nullable AExpr) */
3780 void nit__parser_prod___ACallAssignExpr___init_acallassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3781 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3782 val
* var_n_id
/* var n_id: nullable TId */;
3783 val
* var_n_args
/* var n_args: nullable AExprs */;
3784 val
* var_n_assign
/* var n_assign: nullable TAssign */;
3785 val
* var_n_value
/* var n_value: nullable AExpr */;
3787 { /* Inline kernel#Object#init (self) on <self:ACallAssignExpr> */
3796 if (unlikely(var_n_expr
== NULL
)) {
3797 PRINT_ERROR("Runtime error: %s", "Cast failed");
3798 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5277);
3801 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallAssignExpr> */
3802 if (var_n_expr
== NULL
) {
3803 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3804 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5278);
3807 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3808 if (unlikely(var_n_expr
== NULL
)) {
3809 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3810 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3813 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3817 if (unlikely(var_n_id
== NULL
)) {
3818 PRINT_ERROR("Runtime error: %s", "Cast failed");
3819 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5279);
3822 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:ACallAssignExpr> */
3823 if (var_n_id
== NULL
) {
3824 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5280);
3828 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3829 if (unlikely(var_n_id
== NULL
)) {
3830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3831 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3834 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3838 if (unlikely(var_n_args
== NULL
)) {
3839 PRINT_ERROR("Runtime error: %s", "Cast failed");
3840 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5281);
3843 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallAssignExpr> */
3844 if (var_n_args
== NULL
) {
3845 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3846 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5282);
3849 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
3850 if (unlikely(var_n_args
== NULL
)) {
3851 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3852 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3855 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
3859 if (unlikely(var_n_assign
== NULL
)) {
3860 PRINT_ERROR("Runtime error: %s", "Cast failed");
3861 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5283);
3864 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ACallAssignExpr> */
3865 if (var_n_assign
== NULL
) {
3866 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3867 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5284);
3870 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
3871 if (unlikely(var_n_assign
== NULL
)) {
3872 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3873 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3876 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
3880 if (unlikely(var_n_value
== NULL
)) {
3881 PRINT_ERROR("Runtime error: %s", "Cast failed");
3882 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5285);
3885 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ACallAssignExpr> */
3886 if (var_n_value
== NULL
) {
3887 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3888 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5286);
3891 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
3892 if (unlikely(var_n_value
== NULL
)) {
3893 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3894 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3897 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
3903 /* method parser_prod#ACallAssignExpr#replace_child for (self: ACallAssignExpr, ANode, nullable ANode) */
3904 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3905 val
* var_old_child
/* var old_child: ANode */;
3906 val
* var_new_child
/* var new_child: nullable ANode */;
3907 val
* var
/* : AExpr */;
3908 short int var1
/* : Bool */;
3909 val
* var_other
/* var other: nullable Object */;
3910 short int var3
/* : Bool */;
3911 short int var5
/* : Bool */;
3912 short int var6
/* : Bool */;
3915 const char* var_class_name
;
3916 val
* var7
/* : TId */;
3917 short int var8
/* : Bool */;
3918 short int var10
/* : Bool */;
3919 short int var12
/* : Bool */;
3920 short int var13
/* : Bool */;
3923 const char* var_class_name16
;
3924 val
* var17
/* : AExprs */;
3925 short int var18
/* : Bool */;
3926 short int var20
/* : Bool */;
3927 short int var22
/* : Bool */;
3928 short int var23
/* : Bool */;
3931 const char* var_class_name26
;
3932 val
* var27
/* : TAssign */;
3933 short int var28
/* : Bool */;
3934 short int var30
/* : Bool */;
3935 short int var32
/* : Bool */;
3936 short int var33
/* : Bool */;
3939 const char* var_class_name36
;
3940 val
* var37
/* : AExpr */;
3941 short int var38
/* : Bool */;
3942 short int var40
/* : Bool */;
3943 short int var42
/* : Bool */;
3944 short int var43
/* : Bool */;
3947 const char* var_class_name46
;
3950 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallAssignExpr> */
3951 if (unlikely(var
== NULL
)) {
3952 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3953 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5291);
3957 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3958 var_other
= var_old_child
;
3960 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3961 var5
= var
== var_other
;
3973 /* <var_new_child:nullable ANode> isa AExpr */
3974 cltype
= type_nit__AExpr
.color
;
3975 idtype
= type_nit__AExpr
.id
;
3976 if(var_new_child
== NULL
) {
3979 if(cltype
>= var_new_child
->type
->table_size
) {
3982 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3985 if (unlikely(!var6
)) {
3986 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3987 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3988 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5292);
3992 nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_expr= on <self:ACallAssignExpr>*/
3997 var7
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallAssignExpr> */
3998 if (unlikely(var7
== NULL
)) {
3999 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4000 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5295);
4004 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TId> */
4005 var_other
= var_old_child
;
4007 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TId> */
4008 var12
= var7
== var_other
;
4011 RET_LABEL11
:(void)0;
4020 /* <var_new_child:nullable ANode> isa TId */
4021 cltype14
= type_nit__TId
.color
;
4022 idtype15
= type_nit__TId
.id
;
4023 if(var_new_child
== NULL
) {
4026 if(cltype14
>= var_new_child
->type
->table_size
) {
4029 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4032 if (unlikely(!var13
)) {
4033 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4034 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name16
);
4035 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5296);
4039 nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_id= on <self:ACallAssignExpr>*/
4044 var17
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallAssignExpr> */
4045 if (unlikely(var17
== NULL
)) {
4046 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4047 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5299);
4051 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
4052 var_other
= var_old_child
;
4054 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
4055 var22
= var17
== var_other
;
4058 RET_LABEL21
:(void)0;
4063 RET_LABEL19
:(void)0;
4067 /* <var_new_child:nullable ANode> isa AExprs */
4068 cltype24
= type_nit__AExprs
.color
;
4069 idtype25
= type_nit__AExprs
.id
;
4070 if(var_new_child
== NULL
) {
4073 if(cltype24
>= var_new_child
->type
->table_size
) {
4076 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4079 if (unlikely(!var23
)) {
4080 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4081 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
4082 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5300);
4086 nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_args= on <self:ACallAssignExpr>*/
4091 var27
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ACallAssignExpr> */
4092 if (unlikely(var27
== NULL
)) {
4093 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4094 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5303);
4098 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:TAssign> */
4099 var_other
= var_old_child
;
4101 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:TAssign> */
4102 var32
= var27
== var_other
;
4105 RET_LABEL31
:(void)0;
4110 RET_LABEL29
:(void)0;
4114 /* <var_new_child:nullable ANode> isa TAssign */
4115 cltype34
= type_nit__TAssign
.color
;
4116 idtype35
= type_nit__TAssign
.id
;
4117 if(var_new_child
== NULL
) {
4120 if(cltype34
>= var_new_child
->type
->table_size
) {
4123 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
4126 if (unlikely(!var33
)) {
4127 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4128 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name36
);
4129 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5304);
4133 nit__parser_prod___ACallAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_assign= on <self:ACallAssignExpr>*/
4138 var37
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ACallAssignExpr> */
4139 if (unlikely(var37
== NULL
)) {
4140 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4141 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5307);
4145 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:AExpr> */
4146 var_other
= var_old_child
;
4148 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:AExpr> */
4149 var42
= var37
== var_other
;
4152 RET_LABEL41
:(void)0;
4157 RET_LABEL39
:(void)0;
4161 /* <var_new_child:nullable ANode> isa AExpr */
4162 cltype44
= type_nit__AExpr
.color
;
4163 idtype45
= type_nit__AExpr
.id
;
4164 if(var_new_child
== NULL
) {
4167 if(cltype44
>= var_new_child
->type
->table_size
) {
4170 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
4173 if (unlikely(!var43
)) {
4174 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4175 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name46
);
4176 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5308);
4180 nit__parser_prod___ACallAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ACallAssignExpr#n_value= on <self:ACallAssignExpr>*/
4187 /* method parser_prod#ACallAssignExpr#n_expr= for (self: ACallAssignExpr, AExpr) */
4188 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
4189 val
* var_node
/* var node: AExpr */;
4191 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallAssignExpr> */
4193 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4194 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4200 /* method parser_prod#ACallAssignExpr#n_id= for (self: ACallAssignExpr, TId) */
4201 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(val
* self
, val
* p0
) {
4202 val
* var_node
/* var node: TId */;
4204 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_node
; /* _n_id on <self:ACallAssignExpr> */
4206 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4207 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4213 /* method parser_prod#ACallAssignExpr#n_args= for (self: ACallAssignExpr, AExprs) */
4214 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
4215 val
* var_node
/* var node: AExprs */;
4217 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallAssignExpr> */
4219 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
4220 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
4226 /* method parser_prod#ACallAssignExpr#n_assign= for (self: ACallAssignExpr, TAssign) */
4227 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
4228 val
* var_node
/* var node: TAssign */;
4230 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ACallAssignExpr> */
4232 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4233 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4239 /* method parser_prod#ACallAssignExpr#n_value= for (self: ACallAssignExpr, AExpr) */
4240 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
4241 val
* var_node
/* var node: AExpr */;
4243 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ACallAssignExpr> */
4245 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4246 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4252 /* method parser_prod#ACallAssignExpr#visit_all for (self: ACallAssignExpr, Visitor) */
4253 void nit__parser_prod___ACallAssignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4254 val
* var_v
/* var v: Visitor */;
4255 val
* var
/* : AExpr */;
4256 val
* var1
/* : TId */;
4257 val
* var2
/* : AExprs */;
4258 val
* var3
/* : TAssign */;
4259 val
* var4
/* : AExpr */;
4261 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallAssignExpr> */
4262 if (unlikely(var
== NULL
)) {
4263 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4264 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5342);
4268 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4270 var1
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallAssignExpr> */
4271 if (unlikely(var1
== NULL
)) {
4272 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4273 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5343);
4277 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4279 var2
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallAssignExpr> */
4280 if (unlikely(var2
== NULL
)) {
4281 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4282 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5344);
4286 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4288 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ACallAssignExpr> */
4289 if (unlikely(var3
== NULL
)) {
4290 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4291 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5345);
4295 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4297 var4
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ACallAssignExpr> */
4298 if (unlikely(var4
== NULL
)) {
4299 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4300 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5346);
4304 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4308 /* method parser_prod#ACallReassignExpr#init_acallreassignexpr for (self: ACallReassignExpr, nullable AExpr, nullable TId, nullable AExprs, nullable AAssignOp, nullable AExpr) */
4309 void nit__parser_prod___ACallReassignExpr___init_acallreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4310 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4311 val
* var_n_id
/* var n_id: nullable TId */;
4312 val
* var_n_args
/* var n_args: nullable AExprs */;
4313 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
4314 val
* var_n_value
/* var n_value: nullable AExpr */;
4316 { /* Inline kernel#Object#init (self) on <self:ACallReassignExpr> */
4323 var_n_assign_op
= p3
;
4325 if (unlikely(var_n_expr
== NULL
)) {
4326 PRINT_ERROR("Runtime error: %s", "Cast failed");
4327 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5358);
4330 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACallReassignExpr> */
4331 if (var_n_expr
== NULL
) {
4332 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4333 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5359);
4336 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4337 if (unlikely(var_n_expr
== NULL
)) {
4338 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4339 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4342 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4346 if (unlikely(var_n_id
== NULL
)) {
4347 PRINT_ERROR("Runtime error: %s", "Cast failed");
4348 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5360);
4351 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:ACallReassignExpr> */
4352 if (var_n_id
== NULL
) {
4353 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4354 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5361);
4357 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
4358 if (unlikely(var_n_id
== NULL
)) {
4359 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4360 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4363 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
4367 if (unlikely(var_n_args
== NULL
)) {
4368 PRINT_ERROR("Runtime error: %s", "Cast failed");
4369 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5362);
4372 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ACallReassignExpr> */
4373 if (var_n_args
== NULL
) {
4374 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4375 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5363);
4378 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
4379 if (unlikely(var_n_args
== NULL
)) {
4380 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4381 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4384 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
4388 if (unlikely(var_n_assign_op
== NULL
)) {
4389 PRINT_ERROR("Runtime error: %s", "Cast failed");
4390 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5364);
4393 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:ACallReassignExpr> */
4394 if (var_n_assign_op
== NULL
) {
4395 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4396 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5365);
4399 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
4400 if (unlikely(var_n_assign_op
== NULL
)) {
4401 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4405 var_n_assign_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
4409 if (unlikely(var_n_value
== NULL
)) {
4410 PRINT_ERROR("Runtime error: %s", "Cast failed");
4411 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5366);
4414 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ACallReassignExpr> */
4415 if (var_n_value
== NULL
) {
4416 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4417 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5367);
4420 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
4421 if (unlikely(var_n_value
== NULL
)) {
4422 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4423 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4426 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
4432 /* method parser_prod#ACallReassignExpr#replace_child for (self: ACallReassignExpr, ANode, nullable ANode) */
4433 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4434 val
* var_old_child
/* var old_child: ANode */;
4435 val
* var_new_child
/* var new_child: nullable ANode */;
4436 val
* var
/* : AExpr */;
4437 short int var1
/* : Bool */;
4438 val
* var_other
/* var other: nullable Object */;
4439 short int var3
/* : Bool */;
4440 short int var5
/* : Bool */;
4441 short int var6
/* : Bool */;
4444 const char* var_class_name
;
4445 val
* var7
/* : TId */;
4446 short int var8
/* : Bool */;
4447 short int var10
/* : Bool */;
4448 short int var12
/* : Bool */;
4449 short int var13
/* : Bool */;
4452 const char* var_class_name16
;
4453 val
* var17
/* : AExprs */;
4454 short int var18
/* : Bool */;
4455 short int var20
/* : Bool */;
4456 short int var22
/* : Bool */;
4457 short int var23
/* : Bool */;
4460 const char* var_class_name26
;
4461 val
* var27
/* : AAssignOp */;
4462 short int var28
/* : Bool */;
4463 short int var30
/* : Bool */;
4464 short int var32
/* : Bool */;
4465 short int var33
/* : Bool */;
4468 const char* var_class_name36
;
4469 val
* var37
/* : AExpr */;
4470 short int var38
/* : Bool */;
4471 short int var40
/* : Bool */;
4472 short int var42
/* : Bool */;
4473 short int var43
/* : Bool */;
4476 const char* var_class_name46
;
4479 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
4480 if (unlikely(var
== NULL
)) {
4481 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4482 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5372);
4486 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
4487 var_other
= var_old_child
;
4489 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
4490 var5
= var
== var_other
;
4502 /* <var_new_child:nullable ANode> isa AExpr */
4503 cltype
= type_nit__AExpr
.color
;
4504 idtype
= type_nit__AExpr
.id
;
4505 if(var_new_child
== NULL
) {
4508 if(cltype
>= var_new_child
->type
->table_size
) {
4511 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4514 if (unlikely(!var6
)) {
4515 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4516 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
4517 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5373);
4521 nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_expr= on <self:ACallReassignExpr>*/
4526 var7
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallReassignExpr> */
4527 if (unlikely(var7
== NULL
)) {
4528 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4529 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5376);
4533 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TId> */
4534 var_other
= var_old_child
;
4536 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TId> */
4537 var12
= var7
== var_other
;
4540 RET_LABEL11
:(void)0;
4549 /* <var_new_child:nullable ANode> isa TId */
4550 cltype14
= type_nit__TId
.color
;
4551 idtype15
= type_nit__TId
.id
;
4552 if(var_new_child
== NULL
) {
4555 if(cltype14
>= var_new_child
->type
->table_size
) {
4558 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4561 if (unlikely(!var13
)) {
4562 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4563 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name16
);
4564 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5377);
4568 nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_id= on <self:ACallReassignExpr>*/
4573 var17
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
4574 if (unlikely(var17
== NULL
)) {
4575 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4576 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5380);
4580 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
4581 var_other
= var_old_child
;
4583 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
4584 var22
= var17
== var_other
;
4587 RET_LABEL21
:(void)0;
4592 RET_LABEL19
:(void)0;
4596 /* <var_new_child:nullable ANode> isa AExprs */
4597 cltype24
= type_nit__AExprs
.color
;
4598 idtype25
= type_nit__AExprs
.id
;
4599 if(var_new_child
== NULL
) {
4602 if(cltype24
>= var_new_child
->type
->table_size
) {
4605 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4608 if (unlikely(!var23
)) {
4609 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4610 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
4611 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5381);
4615 nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_args= on <self:ACallReassignExpr>*/
4620 var27
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
4621 if (unlikely(var27
== NULL
)) {
4622 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
4623 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5384);
4627 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AAssignOp> */
4628 var_other
= var_old_child
;
4630 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AAssignOp> */
4631 var32
= var27
== var_other
;
4634 RET_LABEL31
:(void)0;
4639 RET_LABEL29
:(void)0;
4643 /* <var_new_child:nullable ANode> isa AAssignOp */
4644 cltype34
= type_nit__AAssignOp
.color
;
4645 idtype35
= type_nit__AAssignOp
.id
;
4646 if(var_new_child
== NULL
) {
4649 if(cltype34
>= var_new_child
->type
->table_size
) {
4652 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
4655 if (unlikely(!var33
)) {
4656 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4657 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name36
);
4658 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5385);
4662 nit__parser_prod___ACallReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_assign_op= on <self:ACallReassignExpr>*/
4667 var37
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
4668 if (unlikely(var37
== NULL
)) {
4669 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4670 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5388);
4674 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:AExpr> */
4675 var_other
= var_old_child
;
4677 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:AExpr> */
4678 var42
= var37
== var_other
;
4681 RET_LABEL41
:(void)0;
4686 RET_LABEL39
:(void)0;
4690 /* <var_new_child:nullable ANode> isa AExpr */
4691 cltype44
= type_nit__AExpr
.color
;
4692 idtype45
= type_nit__AExpr
.id
;
4693 if(var_new_child
== NULL
) {
4696 if(cltype44
>= var_new_child
->type
->table_size
) {
4699 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
4702 if (unlikely(!var43
)) {
4703 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4704 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name46
);
4705 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5389);
4709 nit__parser_prod___ACallReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_value= on <self:ACallReassignExpr>*/
4716 /* method parser_prod#ACallReassignExpr#n_expr= for (self: ACallReassignExpr, AExpr) */
4717 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
4718 val
* var_node
/* var node: AExpr */;
4720 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallReassignExpr> */
4722 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4723 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4729 /* method parser_prod#ACallReassignExpr#n_id= for (self: ACallReassignExpr, TId) */
4730 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ACallFormExpr__n_id_61d(val
* self
, val
* p0
) {
4731 val
* var_node
/* var node: TId */;
4733 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
= var_node
; /* _n_id on <self:ACallReassignExpr> */
4735 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4736 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4742 /* method parser_prod#ACallReassignExpr#n_args= for (self: ACallReassignExpr, AExprs) */
4743 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ACallFormExpr__n_args_61d(val
* self
, val
* p0
) {
4744 val
* var_node
/* var node: AExprs */;
4746 self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallReassignExpr> */
4748 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
4749 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
4755 /* method parser_prod#ACallReassignExpr#n_assign_op= for (self: ACallReassignExpr, AAssignOp) */
4756 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
4757 val
* var_node
/* var node: AAssignOp */;
4759 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ACallReassignExpr> */
4761 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
4762 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
4768 /* method parser_prod#ACallReassignExpr#n_value= for (self: ACallReassignExpr, AExpr) */
4769 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
4770 val
* var_node
/* var node: AExpr */;
4772 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ACallReassignExpr> */
4774 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4775 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4781 /* method parser_prod#ACallReassignExpr#visit_all for (self: ACallReassignExpr, Visitor) */
4782 void nit__parser_prod___ACallReassignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4783 val
* var_v
/* var v: Visitor */;
4784 val
* var
/* : AExpr */;
4785 val
* var1
/* : TId */;
4786 val
* var2
/* : AExprs */;
4787 val
* var3
/* : AAssignOp */;
4788 val
* var4
/* : AExpr */;
4790 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
4791 if (unlikely(var
== NULL
)) {
4792 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4793 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5423);
4797 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4799 var1
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallReassignExpr> */
4800 if (unlikely(var1
== NULL
)) {
4801 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4802 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5424);
4806 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4808 var2
= self
->attrs
[COLOR_nit__parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
4809 if (unlikely(var2
== NULL
)) {
4810 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
4811 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5425);
4815 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4817 var3
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
4818 if (unlikely(var3
== NULL
)) {
4819 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
4820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5426);
4824 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4826 var4
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
4827 if (unlikely(var4
== NULL
)) {
4828 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
4829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5427);
4833 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4837 /* method parser_prod#ASuperExpr#init_asuperexpr for (self: ASuperExpr, nullable AQualified, nullable TKwsuper, nullable AExprs) */
4838 void nit__parser_prod___ASuperExpr___init_asuperexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4839 val
* var_n_qualified
/* var n_qualified: nullable AQualified */;
4840 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
4841 val
* var_n_args
/* var n_args: nullable AExprs */;
4842 short int var
/* : Bool */;
4843 short int var2
/* : Bool */;
4844 val
* var_other
/* var other: nullable Object */;
4845 short int var4
/* : Bool */;
4846 short int var5
/* : Bool */;
4848 { /* Inline kernel#Object#init (self) on <self:ASuperExpr> */
4852 var_n_qualified
= p0
;
4855 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_qualified
].val
= var_n_qualified
; /* _n_qualified on <self:ASuperExpr> */
4856 if (var_n_qualified
== NULL
) {
4857 var
= 0; /* is null */
4859 var
= 1; /* arg is null and recv is not */
4862 { /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on <var_n_qualified:nullable AQualified> */
4863 var_other
= ((val
*)NULL
);
4865 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_qualified
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_qualified
, var_other
); /* == on <var_n_qualified:nullable AQualified(AQualified)>*/
4876 { /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on <var_n_qualified:nullable AQualified(AQualified)> */
4877 var_n_qualified
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qualified:nullable AQualified(AQualified)> */
4883 if (unlikely(var_n_kwsuper
== NULL
)) {
4884 PRINT_ERROR("Runtime error: %s", "Cast failed");
4885 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5439);
4888 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExpr> */
4889 if (var_n_kwsuper
== NULL
) {
4890 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4891 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5440);
4894 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
4895 if (unlikely(var_n_kwsuper
== NULL
)) {
4896 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4897 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4900 var_n_kwsuper
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
4904 if (unlikely(var_n_args
== NULL
)) {
4905 PRINT_ERROR("Runtime error: %s", "Cast failed");
4906 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5441);
4909 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ASuperExpr> */
4910 if (var_n_args
== NULL
) {
4911 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4912 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5442);
4915 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
4916 if (unlikely(var_n_args
== NULL
)) {
4917 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4918 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4921 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
4927 /* method parser_prod#ASuperExpr#replace_child for (self: ASuperExpr, ANode, nullable ANode) */
4928 void nit__parser_prod___ASuperExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4929 val
* var_old_child
/* var old_child: ANode */;
4930 val
* var_new_child
/* var new_child: nullable ANode */;
4931 val
* var
/* : nullable AQualified */;
4932 short int var1
/* : Bool */;
4933 short int var2
/* : Bool */;
4934 val
* var_other
/* var other: nullable Object */;
4935 short int var4
/* : Bool */;
4936 short int var6
/* : Bool */;
4937 short int var7
/* : Bool */;
4940 const char* var_class_name
;
4941 val
* var8
/* : TKwsuper */;
4942 short int var9
/* : Bool */;
4943 short int var11
/* : Bool */;
4944 short int var13
/* : Bool */;
4945 short int var14
/* : Bool */;
4948 const char* var_class_name17
;
4949 val
* var18
/* : AExprs */;
4950 short int var19
/* : Bool */;
4951 short int var21
/* : Bool */;
4952 short int var23
/* : Bool */;
4953 short int var24
/* : Bool */;
4956 const char* var_class_name27
;
4959 var
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
4961 var1
= 0; /* <var_old_child:ANode> cannot be null */
4963 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AQualified> */
4964 var_other
= var_old_child
;
4966 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AQualified(AQualified)> */
4967 var6
= var
== var_other
;
4980 /* <var_new_child:nullable ANode> isa nullable AQualified */
4981 cltype
= type_nullable__nit__AQualified
.color
;
4982 idtype
= type_nullable__nit__AQualified
.id
;
4983 if(var_new_child
== NULL
) {
4986 if(cltype
>= var_new_child
->type
->table_size
) {
4989 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4992 if (unlikely(!var7
)) {
4993 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4994 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name
);
4995 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5448);
4999 nit__parser_prod___ASuperExpr___n_qualified_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_qualified= on <self:ASuperExpr>*/
5004 var8
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
5005 if (unlikely(var8
== NULL
)) {
5006 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5007 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5451);
5011 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwsuper> */
5012 var_other
= var_old_child
;
5014 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwsuper> */
5015 var13
= var8
== var_other
;
5018 RET_LABEL12
:(void)0;
5023 RET_LABEL10
:(void)0;
5027 /* <var_new_child:nullable ANode> isa TKwsuper */
5028 cltype15
= type_nit__TKwsuper
.color
;
5029 idtype16
= type_nit__TKwsuper
.id
;
5030 if(var_new_child
== NULL
) {
5033 if(cltype15
>= var_new_child
->type
->table_size
) {
5036 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5039 if (unlikely(!var14
)) {
5040 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5041 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name17
);
5042 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5452);
5046 nit__parser_prod___ASuperExpr___n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_kwsuper= on <self:ASuperExpr>*/
5051 var18
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
5052 if (unlikely(var18
== NULL
)) {
5053 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5054 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5455);
5058 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:AExprs> */
5059 var_other
= var_old_child
;
5061 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:AExprs> */
5062 var23
= var18
== var_other
;
5065 RET_LABEL22
:(void)0;
5070 RET_LABEL20
:(void)0;
5074 /* <var_new_child:nullable ANode> isa AExprs */
5075 cltype25
= type_nit__AExprs
.color
;
5076 idtype26
= type_nit__AExprs
.id
;
5077 if(var_new_child
== NULL
) {
5080 if(cltype25
>= var_new_child
->type
->table_size
) {
5083 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
5086 if (unlikely(!var24
)) {
5087 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name27
);
5089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5456);
5093 nit__parser_prod___ASuperExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_args= on <self:ASuperExpr>*/
5100 /* method parser_prod#ASuperExpr#n_qualified= for (self: ASuperExpr, nullable AQualified) */
5101 void nit__parser_prod___ASuperExpr___n_qualified_61d(val
* self
, val
* p0
) {
5102 val
* var_node
/* var node: nullable AQualified */;
5103 short int var
/* : Bool */;
5104 short int var1
/* : Bool */;
5105 val
* var_other
/* var other: nullable Object */;
5106 short int var3
/* : Bool */;
5107 short int var4
/* : Bool */;
5109 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_qualified
].val
= var_node
; /* _n_qualified on <self:ASuperExpr> */
5110 if (var_node
== NULL
) {
5111 var
= 0; /* is null */
5113 var
= 1; /* arg is null and recv is not */
5116 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQualified> */
5117 var_other
= ((val
*)NULL
);
5119 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AQualified(AQualified)>*/
5130 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQualified(AQualified)> */
5131 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQualified(AQualified)> */
5139 /* method parser_prod#ASuperExpr#n_kwsuper= for (self: ASuperExpr, TKwsuper) */
5140 void nit__parser_prod___ASuperExpr___n_kwsuper_61d(val
* self
, val
* p0
) {
5141 val
* var_node
/* var node: TKwsuper */;
5143 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExpr> */
5145 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
5146 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
5152 /* method parser_prod#ASuperExpr#n_args= for (self: ASuperExpr, AExprs) */
5153 void nit__parser_prod___ASuperExpr___n_args_61d(val
* self
, val
* p0
) {
5154 val
* var_node
/* var node: AExprs */;
5156 self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_args
].val
= var_node
; /* _n_args on <self:ASuperExpr> */
5158 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5159 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5165 /* method parser_prod#ASuperExpr#visit_all for (self: ASuperExpr, Visitor) */
5166 void nit__parser_prod___ASuperExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5167 val
* var_v
/* var v: Visitor */;
5168 val
* var
/* : nullable AQualified */;
5169 val
* var1
/* : TKwsuper */;
5170 val
* var2
/* : AExprs */;
5172 var
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
5174 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5176 var1
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
5177 if (unlikely(var1
== NULL
)) {
5178 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5179 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5481);
5183 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5185 var2
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
5186 if (unlikely(var2
== NULL
)) {
5187 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5188 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5482);
5192 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5196 /* method parser_prod#AInitExpr#init_ainitexpr for (self: AInitExpr, nullable AExpr, nullable TKwinit, nullable AExprs) */
5197 void nit__parser_prod___AInitExpr___init_ainitexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5198 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5199 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
5200 val
* var_n_args
/* var n_args: nullable AExprs */;
5202 { /* Inline kernel#Object#init (self) on <self:AInitExpr> */
5209 if (unlikely(var_n_expr
== NULL
)) {
5210 PRINT_ERROR("Runtime error: %s", "Cast failed");
5211 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5492);
5214 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AInitExpr> */
5215 if (var_n_expr
== NULL
) {
5216 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5217 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5493);
5220 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5221 if (unlikely(var_n_expr
== NULL
)) {
5222 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5223 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5226 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5230 if (unlikely(var_n_kwinit
== NULL
)) {
5231 PRINT_ERROR("Runtime error: %s", "Cast failed");
5232 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5494);
5235 self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AInitExpr> */
5236 if (var_n_kwinit
== NULL
) {
5237 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5238 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5495);
5241 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit> */
5242 if (unlikely(var_n_kwinit
== NULL
)) {
5243 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5244 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5247 var_n_kwinit
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit> */
5251 if (unlikely(var_n_args
== NULL
)) {
5252 PRINT_ERROR("Runtime error: %s", "Cast failed");
5253 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5496);
5256 self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_args
].val
= var_n_args
; /* _n_args on <self:AInitExpr> */
5257 if (var_n_args
== NULL
) {
5258 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5259 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5497);
5262 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5263 if (unlikely(var_n_args
== NULL
)) {
5264 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5265 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5268 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5274 /* method parser_prod#AInitExpr#replace_child for (self: AInitExpr, ANode, nullable ANode) */
5275 void nit__parser_prod___AInitExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5276 val
* var_old_child
/* var old_child: ANode */;
5277 val
* var_new_child
/* var new_child: nullable ANode */;
5278 val
* var
/* : AExpr */;
5279 short int var1
/* : Bool */;
5280 val
* var_other
/* var other: nullable Object */;
5281 short int var3
/* : Bool */;
5282 short int var5
/* : Bool */;
5283 short int var6
/* : Bool */;
5286 const char* var_class_name
;
5287 val
* var7
/* : TKwinit */;
5288 short int var8
/* : Bool */;
5289 short int var10
/* : Bool */;
5290 short int var12
/* : Bool */;
5291 short int var13
/* : Bool */;
5294 const char* var_class_name16
;
5295 val
* var17
/* : AExprs */;
5296 short int var18
/* : Bool */;
5297 short int var20
/* : Bool */;
5298 short int var22
/* : Bool */;
5299 short int var23
/* : Bool */;
5302 const char* var_class_name26
;
5305 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
5306 if (unlikely(var
== NULL
)) {
5307 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5308 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5502);
5312 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5313 var_other
= var_old_child
;
5315 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5316 var5
= var
== var_other
;
5328 /* <var_new_child:nullable ANode> isa AExpr */
5329 cltype
= type_nit__AExpr
.color
;
5330 idtype
= type_nit__AExpr
.id
;
5331 if(var_new_child
== NULL
) {
5334 if(cltype
>= var_new_child
->type
->table_size
) {
5337 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5340 if (unlikely(!var6
)) {
5341 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5342 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5343 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5503);
5347 nit__parser_prod___AInitExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_expr= on <self:AInitExpr>*/
5352 var7
= self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
5353 if (unlikely(var7
== NULL
)) {
5354 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
5355 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5506);
5359 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwinit> */
5360 var_other
= var_old_child
;
5362 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwinit> */
5363 var12
= var7
== var_other
;
5366 RET_LABEL11
:(void)0;
5375 /* <var_new_child:nullable ANode> isa TKwinit */
5376 cltype14
= type_nit__TKwinit
.color
;
5377 idtype15
= type_nit__TKwinit
.id
;
5378 if(var_new_child
== NULL
) {
5381 if(cltype14
>= var_new_child
->type
->table_size
) {
5384 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5387 if (unlikely(!var13
)) {
5388 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5389 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinit", var_class_name16
);
5390 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5507);
5394 nit__parser_prod___AInitExpr___n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_kwinit= on <self:AInitExpr>*/
5399 var17
= self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
5400 if (unlikely(var17
== NULL
)) {
5401 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5510);
5406 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExprs> */
5407 var_other
= var_old_child
;
5409 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExprs> */
5410 var22
= var17
== var_other
;
5413 RET_LABEL21
:(void)0;
5418 RET_LABEL19
:(void)0;
5422 /* <var_new_child:nullable ANode> isa AExprs */
5423 cltype24
= type_nit__AExprs
.color
;
5424 idtype25
= type_nit__AExprs
.id
;
5425 if(var_new_child
== NULL
) {
5428 if(cltype24
>= var_new_child
->type
->table_size
) {
5431 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
5434 if (unlikely(!var23
)) {
5435 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5436 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name26
);
5437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5511);
5441 nit__parser_prod___AInitExpr___n_args_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_args= on <self:AInitExpr>*/
5448 /* method parser_prod#AInitExpr#n_expr= for (self: AInitExpr, AExpr) */
5449 void nit__parser_prod___AInitExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
5450 val
* var_node
/* var node: AExpr */;
5452 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AInitExpr> */
5454 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5455 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5461 /* method parser_prod#AInitExpr#n_kwinit= for (self: AInitExpr, TKwinit) */
5462 void nit__parser_prod___AInitExpr___n_kwinit_61d(val
* self
, val
* p0
) {
5463 val
* var_node
/* var node: TKwinit */;
5465 self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AInitExpr> */
5467 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinit> */
5468 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinit> */
5474 /* method parser_prod#AInitExpr#n_args= for (self: AInitExpr, AExprs) */
5475 void nit__parser_prod___AInitExpr___n_args_61d(val
* self
, val
* p0
) {
5476 val
* var_node
/* var node: AExprs */;
5478 self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_args
].val
= var_node
; /* _n_args on <self:AInitExpr> */
5480 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5481 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5487 /* method parser_prod#AInitExpr#visit_all for (self: AInitExpr, Visitor) */
5488 void nit__parser_prod___AInitExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5489 val
* var_v
/* var v: Visitor */;
5490 val
* var
/* : AExpr */;
5491 val
* var1
/* : TKwinit */;
5492 val
* var2
/* : AExprs */;
5494 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
5495 if (unlikely(var
== NULL
)) {
5496 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5497 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5535);
5501 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5503 var1
= self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
5504 if (unlikely(var1
== NULL
)) {
5505 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
5506 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5536);
5510 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5512 var2
= self
->attrs
[COLOR_nit__parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
5513 if (unlikely(var2
== NULL
)) {
5514 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5515 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5537);
5519 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5523 /* method parser_prod#ABraExpr#init_abraexpr for (self: ABraExpr, nullable AExpr, nullable AExprs) */
5524 void nit__parser_prod___ABraExpr___init_abraexpr(val
* self
, val
* p0
, val
* p1
) {
5525 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5526 val
* var_n_args
/* var n_args: nullable AExprs */;
5528 { /* Inline kernel#Object#init (self) on <self:ABraExpr> */
5534 if (unlikely(var_n_expr
== NULL
)) {
5535 PRINT_ERROR("Runtime error: %s", "Cast failed");
5536 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5546);
5539 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraExpr> */
5540 if (var_n_expr
== NULL
) {
5541 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5542 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5547);
5545 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5546 if (unlikely(var_n_expr
== NULL
)) {
5547 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5548 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5551 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5555 if (unlikely(var_n_args
== NULL
)) {
5556 PRINT_ERROR("Runtime error: %s", "Cast failed");
5557 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5548);
5560 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraExpr> */
5561 if (var_n_args
== NULL
) {
5562 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5563 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5549);
5566 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5567 if (unlikely(var_n_args
== NULL
)) {
5568 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5569 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5572 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5578 /* method parser_prod#ABraExpr#replace_child for (self: ABraExpr, ANode, nullable ANode) */
5579 void nit__parser_prod___ABraExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5580 val
* var_old_child
/* var old_child: ANode */;
5581 val
* var_new_child
/* var new_child: nullable ANode */;
5582 val
* var
/* : AExpr */;
5583 short int var1
/* : Bool */;
5584 val
* var_other
/* var other: nullable Object */;
5585 short int var3
/* : Bool */;
5586 short int var5
/* : Bool */;
5587 short int var6
/* : Bool */;
5590 const char* var_class_name
;
5591 val
* var7
/* : AExprs */;
5592 short int var8
/* : Bool */;
5593 short int var10
/* : Bool */;
5594 short int var12
/* : Bool */;
5595 short int var13
/* : Bool */;
5598 const char* var_class_name16
;
5601 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
5602 if (unlikely(var
== NULL
)) {
5603 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5604 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5554);
5608 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5609 var_other
= var_old_child
;
5611 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5612 var5
= var
== var_other
;
5624 /* <var_new_child:nullable ANode> isa AExpr */
5625 cltype
= type_nit__AExpr
.color
;
5626 idtype
= type_nit__AExpr
.id
;
5627 if(var_new_child
== NULL
) {
5630 if(cltype
>= var_new_child
->type
->table_size
) {
5633 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5636 if (unlikely(!var6
)) {
5637 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5638 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5639 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5555);
5643 nit__parser_prod___ABraExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_expr= on <self:ABraExpr>*/
5648 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
5649 if (unlikely(var7
== NULL
)) {
5650 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5651 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5558);
5655 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
5656 var_other
= var_old_child
;
5658 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
5659 var12
= var7
== var_other
;
5662 RET_LABEL11
:(void)0;
5671 /* <var_new_child:nullable ANode> isa AExprs */
5672 cltype14
= type_nit__AExprs
.color
;
5673 idtype15
= type_nit__AExprs
.id
;
5674 if(var_new_child
== NULL
) {
5677 if(cltype14
>= var_new_child
->type
->table_size
) {
5680 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5683 if (unlikely(!var13
)) {
5684 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5685 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
5686 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5559);
5690 nit__parser_prod___ABraExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_args= on <self:ABraExpr>*/
5697 /* method parser_prod#ABraExpr#n_expr= for (self: ABraExpr, AExpr) */
5698 void nit__parser_prod___ABraExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
5699 val
* var_node
/* var node: AExpr */;
5701 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraExpr> */
5703 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5704 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5710 /* method parser_prod#ABraExpr#n_args= for (self: ABraExpr, AExprs) */
5711 void nit__parser_prod___ABraExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
5712 val
* var_node
/* var node: AExprs */;
5714 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraExpr> */
5716 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
5717 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
5723 /* method parser_prod#ABraExpr#visit_all for (self: ABraExpr, Visitor) */
5724 void nit__parser_prod___ABraExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5725 val
* var_v
/* var v: Visitor */;
5726 val
* var
/* : AExpr */;
5727 val
* var1
/* : AExprs */;
5729 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
5730 if (unlikely(var
== NULL
)) {
5731 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5732 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5578);
5736 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5738 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
5739 if (unlikely(var1
== NULL
)) {
5740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5741 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5579);
5745 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5749 /* method parser_prod#ABraAssignExpr#init_abraassignexpr for (self: ABraAssignExpr, nullable AExpr, nullable AExprs, nullable TAssign, nullable AExpr) */
5750 void nit__parser_prod___ABraAssignExpr___init_abraassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5751 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5752 val
* var_n_args
/* var n_args: nullable AExprs */;
5753 val
* var_n_assign
/* var n_assign: nullable TAssign */;
5754 val
* var_n_value
/* var n_value: nullable AExpr */;
5756 { /* Inline kernel#Object#init (self) on <self:ABraAssignExpr> */
5764 if (unlikely(var_n_expr
== NULL
)) {
5765 PRINT_ERROR("Runtime error: %s", "Cast failed");
5766 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5590);
5769 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraAssignExpr> */
5770 if (var_n_expr
== NULL
) {
5771 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5772 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5591);
5775 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5776 if (unlikely(var_n_expr
== NULL
)) {
5777 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5778 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5781 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5785 if (unlikely(var_n_args
== NULL
)) {
5786 PRINT_ERROR("Runtime error: %s", "Cast failed");
5787 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5592);
5790 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraAssignExpr> */
5791 if (var_n_args
== NULL
) {
5792 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5793 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5593);
5796 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
5797 if (unlikely(var_n_args
== NULL
)) {
5798 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5799 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5802 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
5806 if (unlikely(var_n_assign
== NULL
)) {
5807 PRINT_ERROR("Runtime error: %s", "Cast failed");
5808 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5594);
5811 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraAssignExpr> */
5812 if (var_n_assign
== NULL
) {
5813 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5814 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5595);
5817 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
5818 if (unlikely(var_n_assign
== NULL
)) {
5819 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5823 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
5827 if (unlikely(var_n_value
== NULL
)) {
5828 PRINT_ERROR("Runtime error: %s", "Cast failed");
5829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5596);
5832 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraAssignExpr> */
5833 if (var_n_value
== NULL
) {
5834 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5835 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5597);
5838 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
5839 if (unlikely(var_n_value
== NULL
)) {
5840 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5841 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5844 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
5850 /* method parser_prod#ABraAssignExpr#replace_child for (self: ABraAssignExpr, ANode, nullable ANode) */
5851 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5852 val
* var_old_child
/* var old_child: ANode */;
5853 val
* var_new_child
/* var new_child: nullable ANode */;
5854 val
* var
/* : AExpr */;
5855 short int var1
/* : Bool */;
5856 val
* var_other
/* var other: nullable Object */;
5857 short int var3
/* : Bool */;
5858 short int var5
/* : Bool */;
5859 short int var6
/* : Bool */;
5862 const char* var_class_name
;
5863 val
* var7
/* : AExprs */;
5864 short int var8
/* : Bool */;
5865 short int var10
/* : Bool */;
5866 short int var12
/* : Bool */;
5867 short int var13
/* : Bool */;
5870 const char* var_class_name16
;
5871 val
* var17
/* : TAssign */;
5872 short int var18
/* : Bool */;
5873 short int var20
/* : Bool */;
5874 short int var22
/* : Bool */;
5875 short int var23
/* : Bool */;
5878 const char* var_class_name26
;
5879 val
* var27
/* : AExpr */;
5880 short int var28
/* : Bool */;
5881 short int var30
/* : Bool */;
5882 short int var32
/* : Bool */;
5883 short int var33
/* : Bool */;
5886 const char* var_class_name36
;
5889 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
5890 if (unlikely(var
== NULL
)) {
5891 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5892 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5602);
5896 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5897 var_other
= var_old_child
;
5899 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5900 var5
= var
== var_other
;
5912 /* <var_new_child:nullable ANode> isa AExpr */
5913 cltype
= type_nit__AExpr
.color
;
5914 idtype
= type_nit__AExpr
.id
;
5915 if(var_new_child
== NULL
) {
5918 if(cltype
>= var_new_child
->type
->table_size
) {
5921 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5924 if (unlikely(!var6
)) {
5925 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5926 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5927 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5603);
5931 nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_expr= on <self:ABraAssignExpr>*/
5936 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
5937 if (unlikely(var7
== NULL
)) {
5938 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
5939 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5606);
5943 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
5944 var_other
= var_old_child
;
5946 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
5947 var12
= var7
== var_other
;
5950 RET_LABEL11
:(void)0;
5959 /* <var_new_child:nullable ANode> isa AExprs */
5960 cltype14
= type_nit__AExprs
.color
;
5961 idtype15
= type_nit__AExprs
.id
;
5962 if(var_new_child
== NULL
) {
5965 if(cltype14
>= var_new_child
->type
->table_size
) {
5968 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5971 if (unlikely(!var13
)) {
5972 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5973 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
5974 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5607);
5978 nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_args= on <self:ABraAssignExpr>*/
5983 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
5984 if (unlikely(var17
== NULL
)) {
5985 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
5986 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5610);
5990 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
5991 var_other
= var_old_child
;
5993 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
5994 var22
= var17
== var_other
;
5997 RET_LABEL21
:(void)0;
6002 RET_LABEL19
:(void)0;
6006 /* <var_new_child:nullable ANode> isa TAssign */
6007 cltype24
= type_nit__TAssign
.color
;
6008 idtype25
= type_nit__TAssign
.id
;
6009 if(var_new_child
== NULL
) {
6012 if(cltype24
>= var_new_child
->type
->table_size
) {
6015 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6018 if (unlikely(!var23
)) {
6019 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6020 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
6021 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5611);
6025 nit__parser_prod___ABraAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_assign= on <self:ABraAssignExpr>*/
6030 var27
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
6031 if (unlikely(var27
== NULL
)) {
6032 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6033 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5614);
6037 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
6038 var_other
= var_old_child
;
6040 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
6041 var32
= var27
== var_other
;
6044 RET_LABEL31
:(void)0;
6049 RET_LABEL29
:(void)0;
6053 /* <var_new_child:nullable ANode> isa AExpr */
6054 cltype34
= type_nit__AExpr
.color
;
6055 idtype35
= type_nit__AExpr
.id
;
6056 if(var_new_child
== NULL
) {
6059 if(cltype34
>= var_new_child
->type
->table_size
) {
6062 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6065 if (unlikely(!var33
)) {
6066 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6067 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
6068 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5615);
6072 nit__parser_prod___ABraAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_value= on <self:ABraAssignExpr>*/
6079 /* method parser_prod#ABraAssignExpr#n_expr= for (self: ABraAssignExpr, AExpr) */
6080 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
6081 val
* var_node
/* var node: AExpr */;
6083 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraAssignExpr> */
6085 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6086 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6092 /* method parser_prod#ABraAssignExpr#n_args= for (self: ABraAssignExpr, AExprs) */
6093 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
6094 val
* var_node
/* var node: AExprs */;
6096 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraAssignExpr> */
6098 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
6099 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
6105 /* method parser_prod#ABraAssignExpr#n_assign= for (self: ABraAssignExpr, TAssign) */
6106 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
6107 val
* var_node
/* var node: TAssign */;
6109 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ABraAssignExpr> */
6111 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
6112 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
6118 /* method parser_prod#ABraAssignExpr#n_value= for (self: ABraAssignExpr, AExpr) */
6119 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
6120 val
* var_node
/* var node: AExpr */;
6122 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraAssignExpr> */
6124 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6125 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6131 /* method parser_prod#ABraAssignExpr#visit_all for (self: ABraAssignExpr, Visitor) */
6132 void nit__parser_prod___ABraAssignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6133 val
* var_v
/* var v: Visitor */;
6134 val
* var
/* : AExpr */;
6135 val
* var1
/* : AExprs */;
6136 val
* var2
/* : TAssign */;
6137 val
* var3
/* : AExpr */;
6139 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
6140 if (unlikely(var
== NULL
)) {
6141 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6142 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5644);
6146 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6148 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
6149 if (unlikely(var1
== NULL
)) {
6150 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6151 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5645);
6155 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6157 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
6158 if (unlikely(var2
== NULL
)) {
6159 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6160 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5646);
6164 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6166 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
6167 if (unlikely(var3
== NULL
)) {
6168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5647);
6173 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6177 /* method parser_prod#ABraReassignExpr#init_abrareassignexpr for (self: ABraReassignExpr, nullable AExpr, nullable AExprs, nullable AAssignOp, nullable AExpr) */
6178 void nit__parser_prod___ABraReassignExpr___init_abrareassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6179 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6180 val
* var_n_args
/* var n_args: nullable AExprs */;
6181 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
6182 val
* var_n_value
/* var n_value: nullable AExpr */;
6184 { /* Inline kernel#Object#init (self) on <self:ABraReassignExpr> */
6190 var_n_assign_op
= p2
;
6192 if (unlikely(var_n_expr
== NULL
)) {
6193 PRINT_ERROR("Runtime error: %s", "Cast failed");
6194 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5658);
6197 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraReassignExpr> */
6198 if (var_n_expr
== NULL
) {
6199 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6200 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5659);
6203 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6204 if (unlikely(var_n_expr
== NULL
)) {
6205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6206 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6209 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6213 if (unlikely(var_n_args
== NULL
)) {
6214 PRINT_ERROR("Runtime error: %s", "Cast failed");
6215 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5660);
6218 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraReassignExpr> */
6219 if (var_n_args
== NULL
) {
6220 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6221 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5661);
6224 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
6225 if (unlikely(var_n_args
== NULL
)) {
6226 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6227 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6230 var_n_args
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
6234 if (unlikely(var_n_assign_op
== NULL
)) {
6235 PRINT_ERROR("Runtime error: %s", "Cast failed");
6236 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5662);
6239 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:ABraReassignExpr> */
6240 if (var_n_assign_op
== NULL
) {
6241 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6242 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5663);
6245 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
6246 if (unlikely(var_n_assign_op
== NULL
)) {
6247 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6248 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6251 var_n_assign_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
6255 if (unlikely(var_n_value
== NULL
)) {
6256 PRINT_ERROR("Runtime error: %s", "Cast failed");
6257 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5664);
6260 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraReassignExpr> */
6261 if (var_n_value
== NULL
) {
6262 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6263 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5665);
6266 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
6267 if (unlikely(var_n_value
== NULL
)) {
6268 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6269 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6272 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
6278 /* method parser_prod#ABraReassignExpr#replace_child for (self: ABraReassignExpr, ANode, nullable ANode) */
6279 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6280 val
* var_old_child
/* var old_child: ANode */;
6281 val
* var_new_child
/* var new_child: nullable ANode */;
6282 val
* var
/* : AExpr */;
6283 short int var1
/* : Bool */;
6284 val
* var_other
/* var other: nullable Object */;
6285 short int var3
/* : Bool */;
6286 short int var5
/* : Bool */;
6287 short int var6
/* : Bool */;
6290 const char* var_class_name
;
6291 val
* var7
/* : AExprs */;
6292 short int var8
/* : Bool */;
6293 short int var10
/* : Bool */;
6294 short int var12
/* : Bool */;
6295 short int var13
/* : Bool */;
6298 const char* var_class_name16
;
6299 val
* var17
/* : AAssignOp */;
6300 short int var18
/* : Bool */;
6301 short int var20
/* : Bool */;
6302 short int var22
/* : Bool */;
6303 short int var23
/* : Bool */;
6306 const char* var_class_name26
;
6307 val
* var27
/* : AExpr */;
6308 short int var28
/* : Bool */;
6309 short int var30
/* : Bool */;
6310 short int var32
/* : Bool */;
6311 short int var33
/* : Bool */;
6314 const char* var_class_name36
;
6317 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
6318 if (unlikely(var
== NULL
)) {
6319 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6320 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5670);
6324 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
6325 var_other
= var_old_child
;
6327 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
6328 var5
= var
== var_other
;
6340 /* <var_new_child:nullable ANode> isa AExpr */
6341 cltype
= type_nit__AExpr
.color
;
6342 idtype
= type_nit__AExpr
.id
;
6343 if(var_new_child
== NULL
) {
6346 if(cltype
>= var_new_child
->type
->table_size
) {
6349 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6352 if (unlikely(!var6
)) {
6353 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6354 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
6355 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5671);
6359 nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_expr= on <self:ABraReassignExpr>*/
6364 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
6365 if (unlikely(var7
== NULL
)) {
6366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6367 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5674);
6371 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExprs> */
6372 var_other
= var_old_child
;
6374 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExprs> */
6375 var12
= var7
== var_other
;
6378 RET_LABEL11
:(void)0;
6387 /* <var_new_child:nullable ANode> isa AExprs */
6388 cltype14
= type_nit__AExprs
.color
;
6389 idtype15
= type_nit__AExprs
.id
;
6390 if(var_new_child
== NULL
) {
6393 if(cltype14
>= var_new_child
->type
->table_size
) {
6396 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6399 if (unlikely(!var13
)) {
6400 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6401 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name16
);
6402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5675);
6406 nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_args= on <self:ABraReassignExpr>*/
6411 var17
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
6412 if (unlikely(var17
== NULL
)) {
6413 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
6414 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5678);
6418 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AAssignOp> */
6419 var_other
= var_old_child
;
6421 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AAssignOp> */
6422 var22
= var17
== var_other
;
6425 RET_LABEL21
:(void)0;
6430 RET_LABEL19
:(void)0;
6434 /* <var_new_child:nullable ANode> isa AAssignOp */
6435 cltype24
= type_nit__AAssignOp
.color
;
6436 idtype25
= type_nit__AAssignOp
.id
;
6437 if(var_new_child
== NULL
) {
6440 if(cltype24
>= var_new_child
->type
->table_size
) {
6443 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6446 if (unlikely(!var23
)) {
6447 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6448 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name26
);
6449 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5679);
6453 nit__parser_prod___ABraReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_assign_op= on <self:ABraReassignExpr>*/
6458 var27
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
6459 if (unlikely(var27
== NULL
)) {
6460 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6461 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5682);
6465 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
6466 var_other
= var_old_child
;
6468 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
6469 var32
= var27
== var_other
;
6472 RET_LABEL31
:(void)0;
6477 RET_LABEL29
:(void)0;
6481 /* <var_new_child:nullable ANode> isa AExpr */
6482 cltype34
= type_nit__AExpr
.color
;
6483 idtype35
= type_nit__AExpr
.id
;
6484 if(var_new_child
== NULL
) {
6487 if(cltype34
>= var_new_child
->type
->table_size
) {
6490 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6493 if (unlikely(!var33
)) {
6494 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6495 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
6496 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5683);
6500 nit__parser_prod___ABraReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_value= on <self:ABraReassignExpr>*/
6507 /* method parser_prod#ABraReassignExpr#n_expr= for (self: ABraReassignExpr, AExpr) */
6508 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ASendExpr__n_expr_61d(val
* self
, val
* p0
) {
6509 val
* var_node
/* var node: AExpr */;
6511 self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraReassignExpr> */
6513 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6514 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6520 /* method parser_prod#ABraReassignExpr#n_args= for (self: ABraReassignExpr, AExprs) */
6521 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ABraFormExpr__n_args_61d(val
* self
, val
* p0
) {
6522 val
* var_node
/* var node: AExprs */;
6524 self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraReassignExpr> */
6526 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
6527 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
6533 /* method parser_prod#ABraReassignExpr#n_assign_op= for (self: ABraReassignExpr, AAssignOp) */
6534 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
6535 val
* var_node
/* var node: AAssignOp */;
6537 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ABraReassignExpr> */
6539 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
6540 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
6546 /* method parser_prod#ABraReassignExpr#n_value= for (self: ABraReassignExpr, AExpr) */
6547 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
6548 val
* var_node
/* var node: AExpr */;
6550 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraReassignExpr> */
6552 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6553 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6559 /* method parser_prod#ABraReassignExpr#visit_all for (self: ABraReassignExpr, Visitor) */
6560 void nit__parser_prod___ABraReassignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6561 val
* var_v
/* var v: Visitor */;
6562 val
* var
/* : AExpr */;
6563 val
* var1
/* : AExprs */;
6564 val
* var2
/* : AAssignOp */;
6565 val
* var3
/* : AExpr */;
6567 var
= self
->attrs
[COLOR_nit__parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
6568 if (unlikely(var
== NULL
)) {
6569 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6570 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5712);
6574 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6576 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
6577 if (unlikely(var1
== NULL
)) {
6578 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
6579 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5713);
6583 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6585 var2
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
6586 if (unlikely(var2
== NULL
)) {
6587 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
6588 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5714);
6592 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6594 var3
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
6595 if (unlikely(var3
== NULL
)) {
6596 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6597 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5715);
6601 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6605 /* method parser_prod#AVarExpr#init_avarexpr for (self: AVarExpr, nullable TId) */
6606 void nit__parser_prod___AVarExpr___init_avarexpr(val
* self
, val
* p0
) {
6607 val
* var_n_id
/* var n_id: nullable TId */;
6609 { /* Inline kernel#Object#init (self) on <self:AVarExpr> */
6614 if (unlikely(var_n_id
== NULL
)) {
6615 PRINT_ERROR("Runtime error: %s", "Cast failed");
6616 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5723);
6619 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarExpr> */
6620 if (var_n_id
== NULL
) {
6621 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6622 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5724);
6625 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
6626 if (unlikely(var_n_id
== NULL
)) {
6627 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6628 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6631 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
6637 /* method parser_prod#AVarExpr#replace_child for (self: AVarExpr, ANode, nullable ANode) */
6638 void nit__parser_prod___AVarExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6639 val
* var_old_child
/* var old_child: ANode */;
6640 val
* var_new_child
/* var new_child: nullable ANode */;
6641 val
* var
/* : TId */;
6642 short int var1
/* : Bool */;
6643 val
* var_other
/* var other: nullable Object */;
6644 short int var3
/* : Bool */;
6645 short int var5
/* : Bool */;
6646 short int var6
/* : Bool */;
6649 const char* var_class_name
;
6652 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
6653 if (unlikely(var
== NULL
)) {
6654 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6655 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5729);
6659 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
6660 var_other
= var_old_child
;
6662 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
6663 var5
= var
== var_other
;
6675 /* <var_new_child:nullable ANode> isa TId */
6676 cltype
= type_nit__TId
.color
;
6677 idtype
= type_nit__TId
.id
;
6678 if(var_new_child
== NULL
) {
6681 if(cltype
>= var_new_child
->type
->table_size
) {
6684 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6687 if (unlikely(!var6
)) {
6688 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6689 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
6690 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5730);
6694 nit__parser_prod___AVarExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarExpr#n_id= on <self:AVarExpr>*/
6701 /* method parser_prod#AVarExpr#n_id= for (self: AVarExpr, TId) */
6702 void nit__parser_prod___AVarExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
6703 val
* var_node
/* var node: TId */;
6705 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarExpr> */
6707 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6708 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6714 /* method parser_prod#AVarExpr#visit_all for (self: AVarExpr, Visitor) */
6715 void nit__parser_prod___AVarExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6716 val
* var_v
/* var v: Visitor */;
6717 val
* var
/* : TId */;
6719 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
6720 if (unlikely(var
== NULL
)) {
6721 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6722 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5744);
6726 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6730 /* method parser_prod#AVarAssignExpr#init_avarassignexpr for (self: AVarAssignExpr, nullable TId, nullable TAssign, nullable AExpr) */
6731 void nit__parser_prod___AVarAssignExpr___init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
6732 val
* var_n_id
/* var n_id: nullable TId */;
6733 val
* var_n_assign
/* var n_assign: nullable TAssign */;
6734 val
* var_n_value
/* var n_value: nullable AExpr */;
6736 { /* Inline kernel#Object#init (self) on <self:AVarAssignExpr> */
6743 if (unlikely(var_n_id
== NULL
)) {
6744 PRINT_ERROR("Runtime error: %s", "Cast failed");
6745 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5754);
6748 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarAssignExpr> */
6749 if (var_n_id
== NULL
) {
6750 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6751 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5755);
6754 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
6755 if (unlikely(var_n_id
== NULL
)) {
6756 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6757 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6760 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
6764 if (unlikely(var_n_assign
== NULL
)) {
6765 PRINT_ERROR("Runtime error: %s", "Cast failed");
6766 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5756);
6769 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVarAssignExpr> */
6770 if (var_n_assign
== NULL
) {
6771 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6772 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5757);
6775 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
6776 if (unlikely(var_n_assign
== NULL
)) {
6777 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6778 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6781 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
6785 if (unlikely(var_n_value
== NULL
)) {
6786 PRINT_ERROR("Runtime error: %s", "Cast failed");
6787 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5758);
6790 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarAssignExpr> */
6791 if (var_n_value
== NULL
) {
6792 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6793 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5759);
6796 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
6797 if (unlikely(var_n_value
== NULL
)) {
6798 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6799 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6802 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
6808 /* method parser_prod#AVarAssignExpr#replace_child for (self: AVarAssignExpr, ANode, nullable ANode) */
6809 void nit__parser_prod___AVarAssignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6810 val
* var_old_child
/* var old_child: ANode */;
6811 val
* var_new_child
/* var new_child: nullable ANode */;
6812 val
* var
/* : TId */;
6813 short int var1
/* : Bool */;
6814 val
* var_other
/* var other: nullable Object */;
6815 short int var3
/* : Bool */;
6816 short int var5
/* : Bool */;
6817 short int var6
/* : Bool */;
6820 const char* var_class_name
;
6821 val
* var7
/* : TAssign */;
6822 short int var8
/* : Bool */;
6823 short int var10
/* : Bool */;
6824 short int var12
/* : Bool */;
6825 short int var13
/* : Bool */;
6828 const char* var_class_name16
;
6829 val
* var17
/* : AExpr */;
6830 short int var18
/* : Bool */;
6831 short int var20
/* : Bool */;
6832 short int var22
/* : Bool */;
6833 short int var23
/* : Bool */;
6836 const char* var_class_name26
;
6839 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
6840 if (unlikely(var
== NULL
)) {
6841 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6842 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5764);
6846 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
6847 var_other
= var_old_child
;
6849 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
6850 var5
= var
== var_other
;
6862 /* <var_new_child:nullable ANode> isa TId */
6863 cltype
= type_nit__TId
.color
;
6864 idtype
= type_nit__TId
.id
;
6865 if(var_new_child
== NULL
) {
6868 if(cltype
>= var_new_child
->type
->table_size
) {
6871 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6874 if (unlikely(!var6
)) {
6875 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6876 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
6877 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5765);
6881 nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_id= on <self:AVarAssignExpr>*/
6886 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
6887 if (unlikely(var7
== NULL
)) {
6888 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6889 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5768);
6893 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
6894 var_other
= var_old_child
;
6896 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
6897 var12
= var7
== var_other
;
6900 RET_LABEL11
:(void)0;
6909 /* <var_new_child:nullable ANode> isa TAssign */
6910 cltype14
= type_nit__TAssign
.color
;
6911 idtype15
= type_nit__TAssign
.id
;
6912 if(var_new_child
== NULL
) {
6915 if(cltype14
>= var_new_child
->type
->table_size
) {
6918 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6921 if (unlikely(!var13
)) {
6922 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6923 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
6924 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5769);
6928 nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_assign= on <self:AVarAssignExpr>*/
6933 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
6934 if (unlikely(var17
== NULL
)) {
6935 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
6936 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5772);
6940 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
6941 var_other
= var_old_child
;
6943 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
6944 var22
= var17
== var_other
;
6947 RET_LABEL21
:(void)0;
6952 RET_LABEL19
:(void)0;
6956 /* <var_new_child:nullable ANode> isa AExpr */
6957 cltype24
= type_nit__AExpr
.color
;
6958 idtype25
= type_nit__AExpr
.id
;
6959 if(var_new_child
== NULL
) {
6962 if(cltype24
>= var_new_child
->type
->table_size
) {
6965 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6968 if (unlikely(!var23
)) {
6969 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6970 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
6971 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5773);
6975 nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_value= on <self:AVarAssignExpr>*/
6982 /* method parser_prod#AVarAssignExpr#n_id= for (self: AVarAssignExpr, TId) */
6983 void nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
6984 val
* var_node
/* var node: TId */;
6986 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarAssignExpr> */
6988 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6989 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6995 /* method parser_prod#AVarAssignExpr#n_assign= for (self: AVarAssignExpr, TAssign) */
6996 void nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AAssignFormExpr__n_assign_61d(val
* self
, val
* p0
) {
6997 val
* var_node
/* var node: TAssign */;
6999 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVarAssignExpr> */
7001 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
7002 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
7008 /* method parser_prod#AVarAssignExpr#n_value= for (self: AVarAssignExpr, AExpr) */
7009 void nit__parser_prod___AVarAssignExpr___nit__parser_nodes__AAssignFormExpr__n_value_61d(val
* self
, val
* p0
) {
7010 val
* var_node
/* var node: AExpr */;
7012 self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarAssignExpr> */
7014 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7015 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7021 /* method parser_prod#AVarAssignExpr#visit_all for (self: AVarAssignExpr, Visitor) */
7022 void nit__parser_prod___AVarAssignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7023 val
* var_v
/* var v: Visitor */;
7024 val
* var
/* : TId */;
7025 val
* var1
/* : TAssign */;
7026 val
* var2
/* : AExpr */;
7028 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
7029 if (unlikely(var
== NULL
)) {
7030 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7031 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5797);
7035 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7037 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
7038 if (unlikely(var1
== NULL
)) {
7039 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
7040 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5798);
7044 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7046 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
7047 if (unlikely(var2
== NULL
)) {
7048 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7049 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5799);
7053 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7057 /* method parser_prod#AVarReassignExpr#init_avarreassignexpr for (self: AVarReassignExpr, nullable TId, nullable AAssignOp, nullable AExpr) */
7058 void nit__parser_prod___AVarReassignExpr___init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7059 val
* var_n_id
/* var n_id: nullable TId */;
7060 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
7061 val
* var_n_value
/* var n_value: nullable AExpr */;
7063 { /* Inline kernel#Object#init (self) on <self:AVarReassignExpr> */
7068 var_n_assign_op
= p1
;
7070 if (unlikely(var_n_id
== NULL
)) {
7071 PRINT_ERROR("Runtime error: %s", "Cast failed");
7072 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5809);
7075 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarReassignExpr> */
7076 if (var_n_id
== NULL
) {
7077 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7078 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5810);
7081 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
7082 if (unlikely(var_n_id
== NULL
)) {
7083 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7084 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7087 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
7091 if (unlikely(var_n_assign_op
== NULL
)) {
7092 PRINT_ERROR("Runtime error: %s", "Cast failed");
7093 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5811);
7096 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:AVarReassignExpr> */
7097 if (var_n_assign_op
== NULL
) {
7098 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7099 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5812);
7102 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
7103 if (unlikely(var_n_assign_op
== NULL
)) {
7104 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7105 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7108 var_n_assign_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
7112 if (unlikely(var_n_value
== NULL
)) {
7113 PRINT_ERROR("Runtime error: %s", "Cast failed");
7114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5813);
7117 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarReassignExpr> */
7118 if (var_n_value
== NULL
) {
7119 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7120 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5814);
7123 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
7124 if (unlikely(var_n_value
== NULL
)) {
7125 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7126 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7129 var_n_value
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
7135 /* method parser_prod#AVarReassignExpr#replace_child for (self: AVarReassignExpr, ANode, nullable ANode) */
7136 void nit__parser_prod___AVarReassignExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7137 val
* var_old_child
/* var old_child: ANode */;
7138 val
* var_new_child
/* var new_child: nullable ANode */;
7139 val
* var
/* : TId */;
7140 short int var1
/* : Bool */;
7141 val
* var_other
/* var other: nullable Object */;
7142 short int var3
/* : Bool */;
7143 short int var5
/* : Bool */;
7144 short int var6
/* : Bool */;
7147 const char* var_class_name
;
7148 val
* var7
/* : AAssignOp */;
7149 short int var8
/* : Bool */;
7150 short int var10
/* : Bool */;
7151 short int var12
/* : Bool */;
7152 short int var13
/* : Bool */;
7155 const char* var_class_name16
;
7156 val
* var17
/* : AExpr */;
7157 short int var18
/* : Bool */;
7158 short int var20
/* : Bool */;
7159 short int var22
/* : Bool */;
7160 short int var23
/* : Bool */;
7163 const char* var_class_name26
;
7166 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
7167 if (unlikely(var
== NULL
)) {
7168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5819);
7173 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
7174 var_other
= var_old_child
;
7176 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
7177 var5
= var
== var_other
;
7189 /* <var_new_child:nullable ANode> isa TId */
7190 cltype
= type_nit__TId
.color
;
7191 idtype
= type_nit__TId
.id
;
7192 if(var_new_child
== NULL
) {
7195 if(cltype
>= var_new_child
->type
->table_size
) {
7198 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7201 if (unlikely(!var6
)) {
7202 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7203 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
7204 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5820);
7208 nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_id= on <self:AVarReassignExpr>*/
7213 var7
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
7214 if (unlikely(var7
== NULL
)) {
7215 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
7216 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5823);
7220 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AAssignOp> */
7221 var_other
= var_old_child
;
7223 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AAssignOp> */
7224 var12
= var7
== var_other
;
7227 RET_LABEL11
:(void)0;
7236 /* <var_new_child:nullable ANode> isa AAssignOp */
7237 cltype14
= type_nit__AAssignOp
.color
;
7238 idtype15
= type_nit__AAssignOp
.id
;
7239 if(var_new_child
== NULL
) {
7242 if(cltype14
>= var_new_child
->type
->table_size
) {
7245 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7248 if (unlikely(!var13
)) {
7249 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name16
);
7251 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5824);
7255 nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_assign_op= on <self:AVarReassignExpr>*/
7260 var17
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
7261 if (unlikely(var17
== NULL
)) {
7262 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7263 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5827);
7267 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
7268 var_other
= var_old_child
;
7270 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
7271 var22
= var17
== var_other
;
7274 RET_LABEL21
:(void)0;
7279 RET_LABEL19
:(void)0;
7283 /* <var_new_child:nullable ANode> isa AExpr */
7284 cltype24
= type_nit__AExpr
.color
;
7285 idtype25
= type_nit__AExpr
.id
;
7286 if(var_new_child
== NULL
) {
7289 if(cltype24
>= var_new_child
->type
->table_size
) {
7292 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
7295 if (unlikely(!var23
)) {
7296 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7297 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
7298 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5828);
7302 nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_value= on <self:AVarReassignExpr>*/
7309 /* method parser_prod#AVarReassignExpr#n_id= for (self: AVarReassignExpr, TId) */
7310 void nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AVarFormExpr__n_id_61d(val
* self
, val
* p0
) {
7311 val
* var_node
/* var node: TId */;
7313 self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarReassignExpr> */
7315 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7316 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7322 /* method parser_prod#AVarReassignExpr#n_assign_op= for (self: AVarReassignExpr, AAssignOp) */
7323 void nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AReassignFormExpr__n_assign_op_61d(val
* self
, val
* p0
) {
7324 val
* var_node
/* var node: AAssignOp */;
7326 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:AVarReassignExpr> */
7328 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
7329 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
7335 /* method parser_prod#AVarReassignExpr#n_value= for (self: AVarReassignExpr, AExpr) */
7336 void nit__parser_prod___AVarReassignExpr___nit__parser_nodes__AReassignFormExpr__n_value_61d(val
* self
, val
* p0
) {
7337 val
* var_node
/* var node: AExpr */;
7339 self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarReassignExpr> */
7341 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7342 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7348 /* method parser_prod#AVarReassignExpr#visit_all for (self: AVarReassignExpr, Visitor) */
7349 void nit__parser_prod___AVarReassignExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7350 val
* var_v
/* var v: Visitor */;
7351 val
* var
/* : TId */;
7352 val
* var1
/* : AAssignOp */;
7353 val
* var2
/* : AExpr */;
7355 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
7356 if (unlikely(var
== NULL
)) {
7357 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7358 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5852);
7362 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7364 var1
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
7365 if (unlikely(var1
== NULL
)) {
7366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
7367 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5853);
7371 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7373 var2
= self
->attrs
[COLOR_nit__parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
7374 if (unlikely(var2
== NULL
)) {
7375 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
7376 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5854);
7380 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7384 /* method parser_prod#ACrangeExpr#init_acrangeexpr for (self: ACrangeExpr, nullable TObra, nullable AExpr, nullable TDotdot, nullable AExpr, nullable TCbra, nullable AAnnotations) */
7385 void nit__parser_prod___ACrangeExpr___init_acrangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7386 val
* var_n_obra
/* var n_obra: nullable TObra */;
7387 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7388 val
* var_n_dotdot
/* var n_dotdot: nullable TDotdot */;
7389 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
7390 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
7391 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7392 short int var
/* : Bool */;
7393 short int var7
/* : Bool */;
7394 val
* var_other
/* var other: nullable Object */;
7395 short int var9
/* : Bool */;
7396 short int var10
/* : Bool */;
7398 { /* Inline kernel#Object#init (self) on <self:ACrangeExpr> */
7407 var_n_annotations
= p5
;
7408 if (unlikely(var_n_obra
== NULL
)) {
7409 PRINT_ERROR("Runtime error: %s", "Cast failed");
7410 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5922);
7413 self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ACrangeExpr> */
7414 if (var_n_obra
== NULL
) {
7415 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7416 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5923);
7419 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
7420 if (unlikely(var_n_obra
== NULL
)) {
7421 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7422 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7425 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
7429 if (unlikely(var_n_expr
== NULL
)) {
7430 PRINT_ERROR("Runtime error: %s", "Cast failed");
7431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5924);
7434 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACrangeExpr> */
7435 if (var_n_expr
== NULL
) {
7436 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5925);
7440 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
7441 if (unlikely(var_n_expr
== NULL
)) {
7442 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7443 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7446 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
7450 if (unlikely(var_n_dotdot
== NULL
)) {
7451 PRINT_ERROR("Runtime error: %s", "Cast failed");
7452 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5926);
7455 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
= var_n_dotdot
; /* _n_dotdot on <self:ACrangeExpr> */
7456 if (var_n_dotdot
== NULL
) {
7457 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7458 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5927);
7461 { /* Inline parser_nodes#ANode#parent= (var_n_dotdot,self) on <var_n_dotdot:nullable TDotdot> */
7462 if (unlikely(var_n_dotdot
== NULL
)) {
7463 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7464 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7467 var_n_dotdot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdot:nullable TDotdot> */
7471 if (unlikely(var_n_expr2
== NULL
)) {
7472 PRINT_ERROR("Runtime error: %s", "Cast failed");
7473 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5928);
7476 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:ACrangeExpr> */
7477 if (var_n_expr2
== NULL
) {
7478 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7479 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5929);
7482 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
7483 if (unlikely(var_n_expr2
== NULL
)) {
7484 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7485 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7488 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
7492 if (unlikely(var_n_cbra
== NULL
)) {
7493 PRINT_ERROR("Runtime error: %s", "Cast failed");
7494 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5930);
7497 self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ACrangeExpr> */
7498 if (var_n_cbra
== NULL
) {
7499 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7500 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5931);
7503 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
7504 if (unlikely(var_n_cbra
== NULL
)) {
7505 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7506 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7509 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
7513 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACrangeExpr> */
7514 if (var_n_annotations
== NULL
) {
7515 var
= 0; /* is null */
7517 var
= 1; /* arg is null and recv is not */
7520 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
7521 var_other
= ((val
*)NULL
);
7523 var9
= ((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)>*/
7534 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7535 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7536 RET_LABEL11
:(void)0;
7543 /* method parser_prod#ACrangeExpr#replace_child for (self: ACrangeExpr, ANode, nullable ANode) */
7544 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7545 val
* var_old_child
/* var old_child: ANode */;
7546 val
* var_new_child
/* var new_child: nullable ANode */;
7547 val
* var
/* : TObra */;
7548 short int var1
/* : Bool */;
7549 val
* var_other
/* var other: nullable Object */;
7550 short int var3
/* : Bool */;
7551 short int var5
/* : Bool */;
7552 short int var6
/* : Bool */;
7555 const char* var_class_name
;
7556 val
* var7
/* : AExpr */;
7557 short int var8
/* : Bool */;
7558 short int var10
/* : Bool */;
7559 short int var12
/* : Bool */;
7560 short int var13
/* : Bool */;
7563 const char* var_class_name16
;
7564 val
* var17
/* : TDotdot */;
7565 short int var18
/* : Bool */;
7566 short int var20
/* : Bool */;
7567 short int var22
/* : Bool */;
7568 short int var23
/* : Bool */;
7571 const char* var_class_name26
;
7572 val
* var27
/* : AExpr */;
7573 short int var28
/* : Bool */;
7574 short int var30
/* : Bool */;
7575 short int var32
/* : Bool */;
7576 short int var33
/* : Bool */;
7579 const char* var_class_name36
;
7580 val
* var37
/* : TCbra */;
7581 short int var38
/* : Bool */;
7582 short int var40
/* : Bool */;
7583 short int var42
/* : Bool */;
7584 short int var43
/* : Bool */;
7587 const char* var_class_name46
;
7588 val
* var47
/* : nullable AAnnotations */;
7589 short int var48
/* : Bool */;
7590 short int var49
/* : Bool */;
7591 short int var51
/* : Bool */;
7592 short int var53
/* : Bool */;
7593 short int var54
/* : Bool */;
7596 const char* var_class_name57
;
7599 var
= self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
7600 if (unlikely(var
== NULL
)) {
7601 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7602 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5938);
7606 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
7607 var_other
= var_old_child
;
7609 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
7610 var5
= var
== var_other
;
7622 /* <var_new_child:nullable ANode> isa TObra */
7623 cltype
= type_nit__TObra
.color
;
7624 idtype
= type_nit__TObra
.id
;
7625 if(var_new_child
== NULL
) {
7628 if(cltype
>= var_new_child
->type
->table_size
) {
7631 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7634 if (unlikely(!var6
)) {
7635 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7636 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
7637 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5939);
7641 nit__parser_prod___ACrangeExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_obra= on <self:ACrangeExpr>*/
7646 var7
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
7647 if (unlikely(var7
== NULL
)) {
7648 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5942);
7653 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
7654 var_other
= var_old_child
;
7656 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
7657 var12
= var7
== var_other
;
7660 RET_LABEL11
:(void)0;
7669 /* <var_new_child:nullable ANode> isa AExpr */
7670 cltype14
= type_nit__AExpr
.color
;
7671 idtype15
= type_nit__AExpr
.id
;
7672 if(var_new_child
== NULL
) {
7675 if(cltype14
>= var_new_child
->type
->table_size
) {
7678 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7681 if (unlikely(!var13
)) {
7682 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7683 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
7684 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5943);
7688 nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr= on <self:ACrangeExpr>*/
7693 var17
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:ACrangeExpr> */
7694 if (unlikely(var17
== NULL
)) {
7695 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
7696 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5946);
7700 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TDotdot> */
7701 var_other
= var_old_child
;
7703 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TDotdot> */
7704 var22
= var17
== var_other
;
7707 RET_LABEL21
:(void)0;
7712 RET_LABEL19
:(void)0;
7716 /* <var_new_child:nullable ANode> isa TDotdot */
7717 cltype24
= type_nit__TDotdot
.color
;
7718 idtype25
= type_nit__TDotdot
.id
;
7719 if(var_new_child
== NULL
) {
7722 if(cltype24
>= var_new_child
->type
->table_size
) {
7725 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
7728 if (unlikely(!var23
)) {
7729 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7730 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdot", var_class_name26
);
7731 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5947);
7735 nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_dotdot_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_dotdot= on <self:ACrangeExpr>*/
7740 var27
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
7741 if (unlikely(var27
== NULL
)) {
7742 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
7743 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5950);
7747 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
7748 var_other
= var_old_child
;
7750 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
7751 var32
= var27
== var_other
;
7754 RET_LABEL31
:(void)0;
7759 RET_LABEL29
:(void)0;
7763 /* <var_new_child:nullable ANode> isa AExpr */
7764 cltype34
= type_nit__AExpr
.color
;
7765 idtype35
= type_nit__AExpr
.id
;
7766 if(var_new_child
== NULL
) {
7769 if(cltype34
>= var_new_child
->type
->table_size
) {
7772 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
7775 if (unlikely(!var33
)) {
7776 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7777 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
7778 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5951);
7782 nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr2= on <self:ACrangeExpr>*/
7787 var37
= self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
7788 if (unlikely(var37
== NULL
)) {
7789 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
7790 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5954);
7794 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TCbra> */
7795 var_other
= var_old_child
;
7797 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TCbra> */
7798 var42
= var37
== var_other
;
7801 RET_LABEL41
:(void)0;
7806 RET_LABEL39
:(void)0;
7810 /* <var_new_child:nullable ANode> isa TCbra */
7811 cltype44
= type_nit__TCbra
.color
;
7812 idtype45
= type_nit__TCbra
.id
;
7813 if(var_new_child
== NULL
) {
7816 if(cltype44
>= var_new_child
->type
->table_size
) {
7819 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
7822 if (unlikely(!var43
)) {
7823 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7824 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name46
);
7825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5955);
7829 nit__parser_prod___ACrangeExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_cbra= on <self:ACrangeExpr>*/
7834 var47
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
7835 if (var47
== NULL
) {
7836 var48
= 0; /* <var_old_child:ANode> cannot be null */
7838 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:nullable AAnnotations> */
7839 var_other
= var_old_child
;
7841 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:nullable AAnnotations(AAnnotations)> */
7842 var53
= var47
== var_other
;
7845 RET_LABEL52
:(void)0;
7850 RET_LABEL50
:(void)0;
7855 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7856 cltype55
= type_nullable__nit__AAnnotations
.color
;
7857 idtype56
= type_nullable__nit__AAnnotations
.id
;
7858 if(var_new_child
== NULL
) {
7861 if(cltype55
>= var_new_child
->type
->table_size
) {
7864 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
7867 if (unlikely(!var54
)) {
7868 var_class_name57
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7869 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name57
);
7870 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5959);
7874 nit__parser_prod___ACrangeExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_annotations= on <self:ACrangeExpr>*/
7881 /* method parser_prod#ACrangeExpr#n_obra= for (self: ACrangeExpr, TObra) */
7882 void nit__parser_prod___ACrangeExpr___n_obra_61d(val
* self
, val
* p0
) {
7883 val
* var_node
/* var node: TObra */;
7885 self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:ACrangeExpr> */
7887 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
7888 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
7894 /* method parser_prod#ACrangeExpr#n_expr= for (self: ACrangeExpr, AExpr) */
7895 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_expr_61d(val
* self
, val
* p0
) {
7896 val
* var_node
/* var node: AExpr */;
7898 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACrangeExpr> */
7900 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7901 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7907 /* method parser_prod#ACrangeExpr#n_dotdot= for (self: ACrangeExpr, TDotdot) */
7908 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_dotdot_61d(val
* self
, val
* p0
) {
7909 val
* var_node
/* var node: TDotdot */;
7911 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
= var_node
; /* _n_dotdot on <self:ACrangeExpr> */
7913 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdot> */
7914 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdot> */
7920 /* method parser_prod#ACrangeExpr#n_expr2= for (self: ACrangeExpr, AExpr) */
7921 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__ARangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
7922 val
* var_node
/* var node: AExpr */;
7924 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ACrangeExpr> */
7926 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7927 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7933 /* method parser_prod#ACrangeExpr#n_cbra= for (self: ACrangeExpr, TCbra) */
7934 void nit__parser_prod___ACrangeExpr___n_cbra_61d(val
* self
, val
* p0
) {
7935 val
* var_node
/* var node: TCbra */;
7937 self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:ACrangeExpr> */
7939 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
7940 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
7946 /* method parser_prod#ACrangeExpr#n_annotations= for (self: ACrangeExpr, nullable AAnnotations) */
7947 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7948 val
* var_node
/* var node: nullable AAnnotations */;
7949 short int var
/* : Bool */;
7950 short int var1
/* : Bool */;
7951 val
* var_other
/* var other: nullable Object */;
7952 short int var3
/* : Bool */;
7953 short int var4
/* : Bool */;
7955 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACrangeExpr> */
7956 if (var_node
== NULL
) {
7957 var
= 0; /* is null */
7959 var
= 1; /* arg is null and recv is not */
7962 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
7963 var_other
= ((val
*)NULL
);
7965 var3
= ((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)>*/
7976 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7977 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7985 /* method parser_prod#ACrangeExpr#visit_all for (self: ACrangeExpr, Visitor) */
7986 void nit__parser_prod___ACrangeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7987 val
* var_v
/* var v: Visitor */;
7988 val
* var
/* : TObra */;
7989 val
* var1
/* : AExpr */;
7990 val
* var2
/* : TDotdot */;
7991 val
* var3
/* : AExpr */;
7992 val
* var4
/* : TCbra */;
7993 val
* var5
/* : nullable AAnnotations */;
7995 var
= self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
7996 if (unlikely(var
== NULL
)) {
7997 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7998 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5998);
8002 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8004 var1
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
8005 if (unlikely(var1
== NULL
)) {
8006 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8007 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 5999);
8011 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8013 var2
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:ACrangeExpr> */
8014 if (unlikely(var2
== NULL
)) {
8015 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8016 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6000);
8020 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8022 var3
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
8023 if (unlikely(var3
== NULL
)) {
8024 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8025 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6001);
8029 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8031 var4
= self
->attrs
[COLOR_nit__parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
8032 if (unlikely(var4
== NULL
)) {
8033 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8034 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6002);
8038 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8040 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
8042 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8046 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: AOrangeExpr, nullable TObra, nullable AExpr, nullable TDotdot, nullable AExpr, nullable TObra, nullable AAnnotations) */
8047 void nit__parser_prod___AOrangeExpr___init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
8048 val
* var_n_obra
/* var n_obra: nullable TObra */;
8049 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8050 val
* var_n_dotdot
/* var n_dotdot: nullable TDotdot */;
8051 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
8052 val
* var_n_cbra
/* var n_cbra: nullable TObra */;
8053 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8054 short int var
/* : Bool */;
8055 short int var7
/* : Bool */;
8056 val
* var_other
/* var other: nullable Object */;
8057 short int var9
/* : Bool */;
8058 short int var10
/* : Bool */;
8060 { /* Inline kernel#Object#init (self) on <self:AOrangeExpr> */
8069 var_n_annotations
= p5
;
8070 if (unlikely(var_n_obra
== NULL
)) {
8071 PRINT_ERROR("Runtime error: %s", "Cast failed");
8072 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6016);
8075 self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AOrangeExpr> */
8076 if (var_n_obra
== NULL
) {
8077 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8078 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6017);
8081 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
8082 if (unlikely(var_n_obra
== NULL
)) {
8083 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8084 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8087 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
8091 if (unlikely(var_n_expr
== NULL
)) {
8092 PRINT_ERROR("Runtime error: %s", "Cast failed");
8093 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6018);
8096 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrangeExpr> */
8097 if (var_n_expr
== NULL
) {
8098 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8099 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6019);
8102 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8103 if (unlikely(var_n_expr
== NULL
)) {
8104 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8105 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8108 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8112 if (unlikely(var_n_dotdot
== NULL
)) {
8113 PRINT_ERROR("Runtime error: %s", "Cast failed");
8114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6020);
8117 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
= var_n_dotdot
; /* _n_dotdot on <self:AOrangeExpr> */
8118 if (var_n_dotdot
== NULL
) {
8119 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8120 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6021);
8123 { /* Inline parser_nodes#ANode#parent= (var_n_dotdot,self) on <var_n_dotdot:nullable TDotdot> */
8124 if (unlikely(var_n_dotdot
== NULL
)) {
8125 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8126 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8129 var_n_dotdot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdot:nullable TDotdot> */
8133 if (unlikely(var_n_expr2
== NULL
)) {
8134 PRINT_ERROR("Runtime error: %s", "Cast failed");
8135 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6022);
8138 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrangeExpr> */
8139 if (var_n_expr2
== NULL
) {
8140 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8141 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6023);
8144 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
8145 if (unlikely(var_n_expr2
== NULL
)) {
8146 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8147 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8150 var_n_expr2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
8154 if (unlikely(var_n_cbra
== NULL
)) {
8155 PRINT_ERROR("Runtime error: %s", "Cast failed");
8156 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6024);
8159 self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AOrangeExpr> */
8160 if (var_n_cbra
== NULL
) {
8161 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6025);
8165 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TObra> */
8166 if (unlikely(var_n_cbra
== NULL
)) {
8167 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8168 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8171 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TObra> */
8175 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOrangeExpr> */
8176 if (var_n_annotations
== NULL
) {
8177 var
= 0; /* is null */
8179 var
= 1; /* arg is null and recv is not */
8182 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
8183 var_other
= ((val
*)NULL
);
8185 var9
= ((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)>*/
8196 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8197 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8198 RET_LABEL11
:(void)0;
8205 /* method parser_prod#AOrangeExpr#replace_child for (self: AOrangeExpr, ANode, nullable ANode) */
8206 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8207 val
* var_old_child
/* var old_child: ANode */;
8208 val
* var_new_child
/* var new_child: nullable ANode */;
8209 val
* var
/* : TObra */;
8210 short int var1
/* : Bool */;
8211 val
* var_other
/* var other: nullable Object */;
8212 short int var3
/* : Bool */;
8213 short int var5
/* : Bool */;
8214 short int var6
/* : Bool */;
8217 const char* var_class_name
;
8218 val
* var7
/* : AExpr */;
8219 short int var8
/* : Bool */;
8220 short int var10
/* : Bool */;
8221 short int var12
/* : Bool */;
8222 short int var13
/* : Bool */;
8225 const char* var_class_name16
;
8226 val
* var17
/* : TDotdot */;
8227 short int var18
/* : Bool */;
8228 short int var20
/* : Bool */;
8229 short int var22
/* : Bool */;
8230 short int var23
/* : Bool */;
8233 const char* var_class_name26
;
8234 val
* var27
/* : AExpr */;
8235 short int var28
/* : Bool */;
8236 short int var30
/* : Bool */;
8237 short int var32
/* : Bool */;
8238 short int var33
/* : Bool */;
8241 const char* var_class_name36
;
8242 val
* var37
/* : TObra */;
8243 short int var38
/* : Bool */;
8244 short int var40
/* : Bool */;
8245 short int var42
/* : Bool */;
8246 short int var43
/* : Bool */;
8249 const char* var_class_name46
;
8250 val
* var47
/* : nullable AAnnotations */;
8251 short int var48
/* : Bool */;
8252 short int var49
/* : Bool */;
8253 short int var51
/* : Bool */;
8254 short int var53
/* : Bool */;
8255 short int var54
/* : Bool */;
8258 const char* var_class_name57
;
8261 var
= self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
8262 if (unlikely(var
== NULL
)) {
8263 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8264 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6032);
8268 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
8269 var_other
= var_old_child
;
8271 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
8272 var5
= var
== var_other
;
8284 /* <var_new_child:nullable ANode> isa TObra */
8285 cltype
= type_nit__TObra
.color
;
8286 idtype
= type_nit__TObra
.id
;
8287 if(var_new_child
== NULL
) {
8290 if(cltype
>= var_new_child
->type
->table_size
) {
8293 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8296 if (unlikely(!var6
)) {
8297 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8298 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
8299 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6033);
8303 nit__parser_prod___AOrangeExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:AOrangeExpr>*/
8308 var7
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
8309 if (unlikely(var7
== NULL
)) {
8310 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8311 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6036);
8315 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
8316 var_other
= var_old_child
;
8318 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
8319 var12
= var7
== var_other
;
8322 RET_LABEL11
:(void)0;
8331 /* <var_new_child:nullable ANode> isa AExpr */
8332 cltype14
= type_nit__AExpr
.color
;
8333 idtype15
= type_nit__AExpr
.id
;
8334 if(var_new_child
== NULL
) {
8337 if(cltype14
>= var_new_child
->type
->table_size
) {
8340 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
8343 if (unlikely(!var13
)) {
8344 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8345 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
8346 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6037);
8350 nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:AOrangeExpr>*/
8355 var17
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:AOrangeExpr> */
8356 if (unlikely(var17
== NULL
)) {
8357 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8358 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6040);
8362 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TDotdot> */
8363 var_other
= var_old_child
;
8365 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TDotdot> */
8366 var22
= var17
== var_other
;
8369 RET_LABEL21
:(void)0;
8374 RET_LABEL19
:(void)0;
8378 /* <var_new_child:nullable ANode> isa TDotdot */
8379 cltype24
= type_nit__TDotdot
.color
;
8380 idtype25
= type_nit__TDotdot
.id
;
8381 if(var_new_child
== NULL
) {
8384 if(cltype24
>= var_new_child
->type
->table_size
) {
8387 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
8390 if (unlikely(!var23
)) {
8391 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8392 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdot", var_class_name26
);
8393 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6041);
8397 nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_dotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_dotdot= on <self:AOrangeExpr>*/
8402 var27
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
8403 if (unlikely(var27
== NULL
)) {
8404 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8405 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6044);
8409 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
8410 var_other
= var_old_child
;
8412 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
8413 var32
= var27
== var_other
;
8416 RET_LABEL31
:(void)0;
8421 RET_LABEL29
:(void)0;
8425 /* <var_new_child:nullable ANode> isa AExpr */
8426 cltype34
= type_nit__AExpr
.color
;
8427 idtype35
= type_nit__AExpr
.id
;
8428 if(var_new_child
== NULL
) {
8431 if(cltype34
>= var_new_child
->type
->table_size
) {
8434 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
8437 if (unlikely(!var33
)) {
8438 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8439 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
8440 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6045);
8444 nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:AOrangeExpr>*/
8449 var37
= self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
8450 if (unlikely(var37
== NULL
)) {
8451 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8452 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6048);
8456 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TObra> */
8457 var_other
= var_old_child
;
8459 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TObra> */
8460 var42
= var37
== var_other
;
8463 RET_LABEL41
:(void)0;
8468 RET_LABEL39
:(void)0;
8472 /* <var_new_child:nullable ANode> isa TObra */
8473 cltype44
= type_nit__TObra
.color
;
8474 idtype45
= type_nit__TObra
.id
;
8475 if(var_new_child
== NULL
) {
8478 if(cltype44
>= var_new_child
->type
->table_size
) {
8481 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
8484 if (unlikely(!var43
)) {
8485 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8486 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name46
);
8487 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6049);
8491 nit__parser_prod___AOrangeExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:AOrangeExpr>*/
8496 var47
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
8497 if (var47
== NULL
) {
8498 var48
= 0; /* <var_old_child:ANode> cannot be null */
8500 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:nullable AAnnotations> */
8501 var_other
= var_old_child
;
8503 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:nullable AAnnotations(AAnnotations)> */
8504 var53
= var47
== var_other
;
8507 RET_LABEL52
:(void)0;
8512 RET_LABEL50
:(void)0;
8517 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8518 cltype55
= type_nullable__nit__AAnnotations
.color
;
8519 idtype56
= type_nullable__nit__AAnnotations
.id
;
8520 if(var_new_child
== NULL
) {
8523 if(cltype55
>= var_new_child
->type
->table_size
) {
8526 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
8529 if (unlikely(!var54
)) {
8530 var_class_name57
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8531 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name57
);
8532 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6053);
8536 nit__parser_prod___AOrangeExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:AOrangeExpr>*/
8543 /* method parser_prod#AOrangeExpr#n_obra= for (self: AOrangeExpr, TObra) */
8544 void nit__parser_prod___AOrangeExpr___n_obra_61d(val
* self
, val
* p0
) {
8545 val
* var_node
/* var node: TObra */;
8547 self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AOrangeExpr> */
8549 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
8550 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
8556 /* method parser_prod#AOrangeExpr#n_expr= for (self: AOrangeExpr, AExpr) */
8557 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_expr_61d(val
* self
, val
* p0
) {
8558 val
* var_node
/* var node: AExpr */;
8560 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrangeExpr> */
8562 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8563 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8569 /* method parser_prod#AOrangeExpr#n_dotdot= for (self: AOrangeExpr, TDotdot) */
8570 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_dotdot_61d(val
* self
, val
* p0
) {
8571 val
* var_node
/* var node: TDotdot */;
8573 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
= var_node
; /* _n_dotdot on <self:AOrangeExpr> */
8575 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdot> */
8576 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdot> */
8582 /* method parser_prod#AOrangeExpr#n_expr2= for (self: AOrangeExpr, AExpr) */
8583 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__ARangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
8584 val
* var_node
/* var node: AExpr */;
8586 self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AOrangeExpr> */
8588 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8589 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8595 /* method parser_prod#AOrangeExpr#n_cbra= for (self: AOrangeExpr, TObra) */
8596 void nit__parser_prod___AOrangeExpr___n_cbra_61d(val
* self
, val
* p0
) {
8597 val
* var_node
/* var node: TObra */;
8599 self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AOrangeExpr> */
8601 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
8602 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
8608 /* method parser_prod#AOrangeExpr#n_annotations= for (self: AOrangeExpr, nullable AAnnotations) */
8609 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
8610 val
* var_node
/* var node: nullable AAnnotations */;
8611 short int var
/* : Bool */;
8612 short int var1
/* : Bool */;
8613 val
* var_other
/* var other: nullable Object */;
8614 short int var3
/* : Bool */;
8615 short int var4
/* : Bool */;
8617 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOrangeExpr> */
8618 if (var_node
== NULL
) {
8619 var
= 0; /* is null */
8621 var
= 1; /* arg is null and recv is not */
8624 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
8625 var_other
= ((val
*)NULL
);
8627 var3
= ((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)>*/
8638 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8639 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8647 /* method parser_prod#AOrangeExpr#visit_all for (self: AOrangeExpr, Visitor) */
8648 void nit__parser_prod___AOrangeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8649 val
* var_v
/* var v: Visitor */;
8650 val
* var
/* : TObra */;
8651 val
* var1
/* : AExpr */;
8652 val
* var2
/* : TDotdot */;
8653 val
* var3
/* : AExpr */;
8654 val
* var4
/* : TObra */;
8655 val
* var5
/* : nullable AAnnotations */;
8657 var
= self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
8658 if (unlikely(var
== NULL
)) {
8659 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8660 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6092);
8664 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8666 var1
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
8667 if (unlikely(var1
== NULL
)) {
8668 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8669 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6093);
8673 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8675 var2
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_dotdot
].val
; /* _n_dotdot on <self:AOrangeExpr> */
8676 if (unlikely(var2
== NULL
)) {
8677 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdot");
8678 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6094);
8682 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8684 var3
= self
->attrs
[COLOR_nit__parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
8685 if (unlikely(var3
== NULL
)) {
8686 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
8687 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6095);
8691 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8693 var4
= self
->attrs
[COLOR_nit__parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
8694 if (unlikely(var4
== NULL
)) {
8695 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8696 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6096);
8700 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8702 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
8704 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8708 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: AArrayExpr, nullable TObra, Collection[Object], nullable AType, nullable TCbra, nullable AAnnotations) */
8709 void nit__parser_prod___AArrayExpr___init_aarrayexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
8710 val
* var_n_obra
/* var n_obra: nullable TObra */;
8711 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
8712 val
* var_n_type
/* var n_type: nullable AType */;
8713 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
8714 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8715 val
* var
/* : ANodes[AExpr] */;
8716 val
* var4
/* : ANodes[AExpr] */;
8717 short int var5
/* : Bool */;
8718 short int var6
/* : Bool */;
8719 val
* var_other
/* var other: nullable Object */;
8720 short int var8
/* : Bool */;
8721 short int var9
/* : Bool */;
8722 short int var12
/* : Bool */;
8723 short int var13
/* : Bool */;
8724 short int var15
/* : Bool */;
8725 short int var16
/* : Bool */;
8727 { /* Inline kernel#Object#init (self) on <self:AArrayExpr> */
8735 var_n_annotations
= p4
;
8736 if (unlikely(var_n_obra
== NULL
)) {
8737 PRINT_ERROR("Runtime error: %s", "Cast failed");
8738 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6109);
8741 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AArrayExpr> */
8742 if (var_n_obra
== NULL
) {
8743 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8744 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6110);
8747 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
8748 if (unlikely(var_n_obra
== NULL
)) {
8749 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8750 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8753 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
8758 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
8759 var4
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
8760 if (unlikely(var4
== NULL
)) {
8761 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
8762 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2456);
8770 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
8772 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AArrayExpr> */
8773 if (var_n_type
== NULL
) {
8774 var5
= 0; /* is null */
8776 var5
= 1; /* arg is null and recv is not */
8779 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
8780 var_other
= ((val
*)NULL
);
8782 var8
= ((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)>*/
8793 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
8794 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
8795 RET_LABEL10
:(void)0;
8800 if (unlikely(var_n_cbra
== NULL
)) {
8801 PRINT_ERROR("Runtime error: %s", "Cast failed");
8802 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6114);
8805 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AArrayExpr> */
8806 if (var_n_cbra
== NULL
) {
8807 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8808 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6115);
8811 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
8812 if (unlikely(var_n_cbra
== NULL
)) {
8813 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8814 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8817 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
8818 RET_LABEL11
:(void)0;
8821 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AArrayExpr> */
8822 if (var_n_annotations
== NULL
) {
8823 var12
= 0; /* is null */
8825 var12
= 1; /* arg is null and recv is not */
8828 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
8829 var_other
= ((val
*)NULL
);
8831 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)>*/
8836 RET_LABEL14
:(void)0;
8842 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8843 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8844 RET_LABEL17
:(void)0;
8851 /* method parser_prod#AArrayExpr#replace_child for (self: AArrayExpr, ANode, nullable ANode) */
8852 void nit__parser_prod___AArrayExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8853 val
* var_old_child
/* var old_child: ANode */;
8854 val
* var_new_child
/* var new_child: nullable ANode */;
8855 val
* var
/* : TObra */;
8856 short int var1
/* : Bool */;
8857 val
* var_other
/* var other: nullable Object */;
8858 short int var3
/* : Bool */;
8859 short int var5
/* : Bool */;
8860 short int var6
/* : Bool */;
8863 const char* var_class_name
;
8864 val
* var7
/* : ANodes[AExpr] */;
8865 val
* var9
/* : ANodes[AExpr] */;
8866 short int var10
/* : Bool */;
8867 val
* var11
/* : nullable AType */;
8868 short int var12
/* : Bool */;
8869 short int var13
/* : Bool */;
8870 short int var15
/* : Bool */;
8871 short int var17
/* : Bool */;
8872 short int var18
/* : Bool */;
8875 const char* var_class_name21
;
8876 val
* var22
/* : TCbra */;
8877 short int var23
/* : Bool */;
8878 short int var25
/* : Bool */;
8879 short int var27
/* : Bool */;
8880 short int var28
/* : Bool */;
8883 const char* var_class_name31
;
8884 val
* var32
/* : nullable AAnnotations */;
8885 short int var33
/* : Bool */;
8886 short int var34
/* : Bool */;
8887 short int var36
/* : Bool */;
8888 short int var38
/* : Bool */;
8889 short int var39
/* : Bool */;
8892 const char* var_class_name42
;
8895 var
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
8896 if (unlikely(var
== NULL
)) {
8897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
8898 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6122);
8902 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
8903 var_other
= var_old_child
;
8905 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
8906 var5
= var
== var_other
;
8918 /* <var_new_child:nullable ANode> isa TObra */
8919 cltype
= type_nit__TObra
.color
;
8920 idtype
= type_nit__TObra
.id
;
8921 if(var_new_child
== NULL
) {
8924 if(cltype
>= var_new_child
->type
->table_size
) {
8927 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8930 if (unlikely(!var6
)) {
8931 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8932 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
8933 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6123);
8937 nit__parser_prod___AArrayExpr___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_obra= on <self:AArrayExpr>*/
8943 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
8944 var9
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
8945 if (unlikely(var9
== NULL
)) {
8946 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
8947 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2456);
8955 var10
= nit___nit__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
8961 var11
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
8962 if (var11
== NULL
) {
8963 var12
= 0; /* <var_old_child:ANode> cannot be null */
8965 { /* Inline kernel#Object#== (var11,var_old_child) on <var11:nullable AType> */
8966 var_other
= var_old_child
;
8968 { /* Inline kernel#Object#is_same_instance (var11,var_other) on <var11:nullable AType(AType)> */
8969 var17
= var11
== var_other
;
8972 RET_LABEL16
:(void)0;
8977 RET_LABEL14
:(void)0;
8982 /* <var_new_child:nullable ANode> isa nullable AType */
8983 cltype19
= type_nullable__nit__AType
.color
;
8984 idtype20
= type_nullable__nit__AType
.id
;
8985 if(var_new_child
== NULL
) {
8988 if(cltype19
>= var_new_child
->type
->table_size
) {
8991 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
8994 if (unlikely(!var18
)) {
8995 var_class_name21
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8996 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name21
);
8997 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6128);
9001 nit__parser_prod___AArrayExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_type= on <self:AArrayExpr>*/
9006 var22
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
9007 if (unlikely(var22
== NULL
)) {
9008 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
9009 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6131);
9013 { /* Inline kernel#Object#== (var22,var_old_child) on <var22:TCbra> */
9014 var_other
= var_old_child
;
9016 { /* Inline kernel#Object#is_same_instance (var22,var_other) on <var22:TCbra> */
9017 var27
= var22
== var_other
;
9020 RET_LABEL26
:(void)0;
9025 RET_LABEL24
:(void)0;
9029 /* <var_new_child:nullable ANode> isa TCbra */
9030 cltype29
= type_nit__TCbra
.color
;
9031 idtype30
= type_nit__TCbra
.id
;
9032 if(var_new_child
== NULL
) {
9035 if(cltype29
>= var_new_child
->type
->table_size
) {
9038 var28
= var_new_child
->type
->type_table
[cltype29
] == idtype30
;
9041 if (unlikely(!var28
)) {
9042 var_class_name31
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9043 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name31
);
9044 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6132);
9048 nit__parser_prod___AArrayExpr___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_cbra= on <self:AArrayExpr>*/
9053 var32
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
9054 if (var32
== NULL
) {
9055 var33
= 0; /* <var_old_child:ANode> cannot be null */
9057 { /* Inline kernel#Object#== (var32,var_old_child) on <var32:nullable AAnnotations> */
9058 var_other
= var_old_child
;
9060 { /* Inline kernel#Object#is_same_instance (var32,var_other) on <var32:nullable AAnnotations(AAnnotations)> */
9061 var38
= var32
== var_other
;
9064 RET_LABEL37
:(void)0;
9069 RET_LABEL35
:(void)0;
9074 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9075 cltype40
= type_nullable__nit__AAnnotations
.color
;
9076 idtype41
= type_nullable__nit__AAnnotations
.id
;
9077 if(var_new_child
== NULL
) {
9080 if(cltype40
>= var_new_child
->type
->table_size
) {
9083 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
9086 if (unlikely(!var39
)) {
9087 var_class_name42
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name42
);
9089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6136);
9093 nit__parser_prod___AArrayExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:AArrayExpr>*/
9100 /* method parser_prod#AArrayExpr#n_obra= for (self: AArrayExpr, TObra) */
9101 void nit__parser_prod___AArrayExpr___n_obra_61d(val
* self
, val
* p0
) {
9102 val
* var_node
/* var node: TObra */;
9104 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AArrayExpr> */
9106 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
9107 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
9113 /* method parser_prod#AArrayExpr#n_type= for (self: AArrayExpr, nullable AType) */
9114 void nit__parser_prod___AArrayExpr___n_type_61d(val
* self
, val
* p0
) {
9115 val
* var_node
/* var node: nullable AType */;
9116 short int var
/* : Bool */;
9117 short int var1
/* : Bool */;
9118 val
* var_other
/* var other: nullable Object */;
9119 short int var3
/* : Bool */;
9120 short int var4
/* : Bool */;
9122 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_type
].val
= var_node
; /* _n_type on <self:AArrayExpr> */
9123 if (var_node
== NULL
) {
9124 var
= 0; /* is null */
9126 var
= 1; /* arg is null and recv is not */
9129 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
9130 var_other
= ((val
*)NULL
);
9132 var3
= ((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)>*/
9143 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
9144 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
9152 /* method parser_prod#AArrayExpr#n_cbra= for (self: AArrayExpr, TCbra) */
9153 void nit__parser_prod___AArrayExpr___n_cbra_61d(val
* self
, val
* p0
) {
9154 val
* var_node
/* var node: TCbra */;
9156 self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AArrayExpr> */
9158 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
9159 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
9165 /* method parser_prod#AArrayExpr#n_annotations= for (self: AArrayExpr, nullable AAnnotations) */
9166 void nit__parser_prod___AArrayExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9167 val
* var_node
/* var node: nullable AAnnotations */;
9168 short int var
/* : Bool */;
9169 short int var1
/* : Bool */;
9170 val
* var_other
/* var other: nullable Object */;
9171 short int var3
/* : Bool */;
9172 short int var4
/* : Bool */;
9174 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AArrayExpr> */
9175 if (var_node
== NULL
) {
9176 var
= 0; /* is null */
9178 var
= 1; /* arg is null and recv is not */
9181 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9182 var_other
= ((val
*)NULL
);
9184 var3
= ((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)>*/
9195 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9196 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9204 /* method parser_prod#AArrayExpr#visit_all for (self: AArrayExpr, Visitor) */
9205 void nit__parser_prod___AArrayExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9206 val
* var_v
/* var v: Visitor */;
9207 val
* var
/* : TObra */;
9208 val
* var1
/* : ANodes[AExpr] */;
9209 val
* var3
/* : ANodes[AExpr] */;
9210 val
* var4
/* : nullable AType */;
9211 val
* var5
/* : TCbra */;
9212 val
* var6
/* : nullable AAnnotations */;
9214 var
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
9215 if (unlikely(var
== NULL
)) {
9216 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
9217 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6165);
9221 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9224 { /* Inline parser_nodes#AArrayExpr#n_exprs (self) on <self:AArrayExpr> */
9225 var3
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
9226 if (unlikely(var3
== NULL
)) {
9227 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
9228 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2456);
9236 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
9238 var4
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
9240 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9242 var5
= self
->attrs
[COLOR_nit__parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
9243 if (unlikely(var5
== NULL
)) {
9244 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
9245 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6168);
9249 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9251 var6
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
9253 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9257 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: ASelfExpr, nullable TKwself, nullable AAnnotations) */
9258 void nit__parser_prod___ASelfExpr___init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
9259 val
* var_n_kwself
/* var n_kwself: nullable TKwself */;
9260 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9261 short int var
/* : Bool */;
9262 short int var3
/* : Bool */;
9263 val
* var_other
/* var other: nullable Object */;
9264 short int var5
/* : Bool */;
9265 short int var6
/* : Bool */;
9267 { /* Inline kernel#Object#init (self) on <self:ASelfExpr> */
9272 var_n_annotations
= p1
;
9273 if (unlikely(var_n_kwself
== NULL
)) {
9274 PRINT_ERROR("Runtime error: %s", "Cast failed");
9275 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6178);
9278 self
->attrs
[COLOR_nit__parser_nodes__ASelfExpr___n_kwself
].val
= var_n_kwself
; /* _n_kwself on <self:ASelfExpr> */
9279 if (var_n_kwself
== NULL
) {
9280 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9281 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6179);
9284 { /* Inline parser_nodes#ANode#parent= (var_n_kwself,self) on <var_n_kwself:nullable TKwself> */
9285 if (unlikely(var_n_kwself
== NULL
)) {
9286 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9287 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9290 var_n_kwself
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwself:nullable TKwself> */
9294 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASelfExpr> */
9295 if (var_n_annotations
== NULL
) {
9296 var
= 0; /* is null */
9298 var
= 1; /* arg is null and recv is not */
9301 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9302 var_other
= ((val
*)NULL
);
9304 var5
= ((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)>*/
9315 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9316 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9324 /* method parser_prod#ASelfExpr#replace_child for (self: ASelfExpr, ANode, nullable ANode) */
9325 void nit__parser_prod___ASelfExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9326 val
* var_old_child
/* var old_child: ANode */;
9327 val
* var_new_child
/* var new_child: nullable ANode */;
9328 val
* var
/* : nullable TKwself */;
9329 short int var1
/* : Bool */;
9330 short int var2
/* : Bool */;
9331 val
* var_other
/* var other: nullable Object */;
9332 short int var4
/* : Bool */;
9333 short int var6
/* : Bool */;
9334 short int var7
/* : Bool */;
9337 const char* var_class_name
;
9338 val
* var8
/* : nullable AAnnotations */;
9339 short int var9
/* : Bool */;
9340 short int var10
/* : Bool */;
9341 short int var12
/* : Bool */;
9342 short int var14
/* : Bool */;
9343 short int var15
/* : Bool */;
9346 const char* var_class_name18
;
9349 var
= self
->attrs
[COLOR_nit__parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
9351 var1
= 0; /* <var_old_child:ANode> cannot be null */
9353 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwself> */
9354 var_other
= var_old_child
;
9356 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwself(TKwself)> */
9357 var6
= var
== var_other
;
9370 /* <var_new_child:nullable ANode> isa TKwself */
9371 cltype
= type_nit__TKwself
.color
;
9372 idtype
= type_nit__TKwself
.id
;
9373 if(var_new_child
== NULL
) {
9376 if(cltype
>= var_new_child
->type
->table_size
) {
9379 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9382 if (unlikely(!var7
)) {
9383 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9384 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwself", var_class_name
);
9385 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6187);
9389 nit__parser_prod___ASelfExpr___n_kwself_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:ASelfExpr>*/
9394 var8
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
9396 var9
= 0; /* <var_old_child:ANode> cannot be null */
9398 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
9399 var_other
= var_old_child
;
9401 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
9402 var14
= var8
== var_other
;
9405 RET_LABEL13
:(void)0;
9410 RET_LABEL11
:(void)0;
9415 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9416 cltype16
= type_nullable__nit__AAnnotations
.color
;
9417 idtype17
= type_nullable__nit__AAnnotations
.id
;
9418 if(var_new_child
== NULL
) {
9421 if(cltype16
>= var_new_child
->type
->table_size
) {
9424 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9427 if (unlikely(!var15
)) {
9428 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9429 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
9430 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6191);
9434 nit__parser_prod___ASelfExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:ASelfExpr>*/
9441 /* method parser_prod#ASelfExpr#n_kwself= for (self: ASelfExpr, nullable TKwself) */
9442 void nit__parser_prod___ASelfExpr___n_kwself_61d(val
* self
, val
* p0
) {
9443 val
* var_node
/* var node: nullable TKwself */;
9445 self
->attrs
[COLOR_nit__parser_nodes__ASelfExpr___n_kwself
].val
= var_node
; /* _n_kwself on <self:ASelfExpr> */
9446 if (var_node
== NULL
) {
9447 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9448 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6199);
9451 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwself> */
9452 if (unlikely(var_node
== NULL
)) {
9453 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9454 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9457 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwself> */
9463 /* method parser_prod#ASelfExpr#n_annotations= for (self: ASelfExpr, nullable AAnnotations) */
9464 void nit__parser_prod___ASelfExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9465 val
* var_node
/* var node: nullable AAnnotations */;
9466 short int var
/* : Bool */;
9467 short int var1
/* : Bool */;
9468 val
* var_other
/* var other: nullable Object */;
9469 short int var3
/* : Bool */;
9470 short int var4
/* : Bool */;
9472 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASelfExpr> */
9473 if (var_node
== NULL
) {
9474 var
= 0; /* is null */
9476 var
= 1; /* arg is null and recv is not */
9479 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9480 var_other
= ((val
*)NULL
);
9482 var3
= ((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)>*/
9493 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9494 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9502 /* method parser_prod#ASelfExpr#visit_all for (self: ASelfExpr, Visitor) */
9503 void nit__parser_prod___ASelfExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9504 val
* var_v
/* var v: Visitor */;
9505 val
* var
/* : nullable TKwself */;
9506 val
* var1
/* : nullable AAnnotations */;
9508 var
= self
->attrs
[COLOR_nit__parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
9510 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9512 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
9514 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9518 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: AImplicitSelfExpr) */
9519 void nit__parser_prod___AImplicitSelfExpr___init_aimplicitselfexpr(val
* self
) {
9521 { /* Inline kernel#Object#init (self) on <self:AImplicitSelfExpr> */
9527 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: AImplicitSelfExpr, ANode, nullable ANode) */
9528 void nit__parser_prod___AImplicitSelfExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9529 val
* var_old_child
/* var old_child: ANode */;
9530 val
* var_new_child
/* var new_child: nullable ANode */;
9535 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: AImplicitSelfExpr, Visitor) */
9536 void nit__parser_prod___AImplicitSelfExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9537 val
* var_v
/* var v: Visitor */;
9541 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: ATrueExpr, nullable TKwtrue, nullable AAnnotations) */
9542 void nit__parser_prod___ATrueExpr___init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
9543 val
* var_n_kwtrue
/* var n_kwtrue: nullable TKwtrue */;
9544 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9545 short int var
/* : Bool */;
9546 short int var3
/* : Bool */;
9547 val
* var_other
/* var other: nullable Object */;
9548 short int var5
/* : Bool */;
9549 short int var6
/* : Bool */;
9551 { /* Inline kernel#Object#init (self) on <self:ATrueExpr> */
9556 var_n_annotations
= p1
;
9557 if (unlikely(var_n_kwtrue
== NULL
)) {
9558 PRINT_ERROR("Runtime error: %s", "Cast failed");
9559 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6235);
9562 self
->attrs
[COLOR_nit__parser_nodes__ATrueExpr___n_kwtrue
].val
= var_n_kwtrue
; /* _n_kwtrue on <self:ATrueExpr> */
9563 if (var_n_kwtrue
== NULL
) {
9564 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9565 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6236);
9568 { /* Inline parser_nodes#ANode#parent= (var_n_kwtrue,self) on <var_n_kwtrue:nullable TKwtrue> */
9569 if (unlikely(var_n_kwtrue
== NULL
)) {
9570 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9571 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9574 var_n_kwtrue
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtrue:nullable TKwtrue> */
9578 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATrueExpr> */
9579 if (var_n_annotations
== NULL
) {
9580 var
= 0; /* is null */
9582 var
= 1; /* arg is null and recv is not */
9585 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9586 var_other
= ((val
*)NULL
);
9588 var5
= ((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)>*/
9599 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9600 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9608 /* method parser_prod#ATrueExpr#replace_child for (self: ATrueExpr, ANode, nullable ANode) */
9609 void nit__parser_prod___ATrueExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9610 val
* var_old_child
/* var old_child: ANode */;
9611 val
* var_new_child
/* var new_child: nullable ANode */;
9612 val
* var
/* : TKwtrue */;
9613 short int var1
/* : Bool */;
9614 val
* var_other
/* var other: nullable Object */;
9615 short int var3
/* : Bool */;
9616 short int var5
/* : Bool */;
9617 short int var6
/* : Bool */;
9620 const char* var_class_name
;
9621 val
* var7
/* : nullable AAnnotations */;
9622 short int var8
/* : Bool */;
9623 short int var9
/* : Bool */;
9624 short int var11
/* : Bool */;
9625 short int var13
/* : Bool */;
9626 short int var14
/* : Bool */;
9629 const char* var_class_name17
;
9632 var
= self
->attrs
[COLOR_nit__parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
9633 if (unlikely(var
== NULL
)) {
9634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
9635 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6243);
9639 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwtrue> */
9640 var_other
= var_old_child
;
9642 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwtrue> */
9643 var5
= var
== var_other
;
9655 /* <var_new_child:nullable ANode> isa TKwtrue */
9656 cltype
= type_nit__TKwtrue
.color
;
9657 idtype
= type_nit__TKwtrue
.id
;
9658 if(var_new_child
== NULL
) {
9661 if(cltype
>= var_new_child
->type
->table_size
) {
9664 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9667 if (unlikely(!var6
)) {
9668 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtrue", var_class_name
);
9670 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6244);
9674 nit__parser_prod___ATrueExpr___n_kwtrue_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_kwtrue= on <self:ATrueExpr>*/
9679 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
9681 var8
= 0; /* <var_old_child:ANode> cannot be null */
9683 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
9684 var_other
= var_old_child
;
9686 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
9687 var13
= var7
== var_other
;
9690 RET_LABEL12
:(void)0;
9695 RET_LABEL10
:(void)0;
9700 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9701 cltype15
= type_nullable__nit__AAnnotations
.color
;
9702 idtype16
= type_nullable__nit__AAnnotations
.id
;
9703 if(var_new_child
== NULL
) {
9706 if(cltype15
>= var_new_child
->type
->table_size
) {
9709 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
9712 if (unlikely(!var14
)) {
9713 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9714 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
9715 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6248);
9719 nit__parser_prod___ATrueExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_annotations= on <self:ATrueExpr>*/
9726 /* method parser_prod#ATrueExpr#n_kwtrue= for (self: ATrueExpr, TKwtrue) */
9727 void nit__parser_prod___ATrueExpr___n_kwtrue_61d(val
* self
, val
* p0
) {
9728 val
* var_node
/* var node: TKwtrue */;
9730 self
->attrs
[COLOR_nit__parser_nodes__ATrueExpr___n_kwtrue
].val
= var_node
; /* _n_kwtrue on <self:ATrueExpr> */
9732 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtrue> */
9733 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtrue> */
9739 /* method parser_prod#ATrueExpr#n_annotations= for (self: ATrueExpr, nullable AAnnotations) */
9740 void nit__parser_prod___ATrueExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9741 val
* var_node
/* var node: nullable AAnnotations */;
9742 short int var
/* : Bool */;
9743 short int var1
/* : Bool */;
9744 val
* var_other
/* var other: nullable Object */;
9745 short int var3
/* : Bool */;
9746 short int var4
/* : Bool */;
9748 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATrueExpr> */
9749 if (var_node
== NULL
) {
9750 var
= 0; /* is null */
9752 var
= 1; /* arg is null and recv is not */
9755 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9756 var_other
= ((val
*)NULL
);
9758 var3
= ((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)>*/
9769 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9770 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9778 /* method parser_prod#ATrueExpr#visit_all for (self: ATrueExpr, Visitor) */
9779 void nit__parser_prod___ATrueExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9780 val
* var_v
/* var v: Visitor */;
9781 val
* var
/* : TKwtrue */;
9782 val
* var1
/* : nullable AAnnotations */;
9784 var
= self
->attrs
[COLOR_nit__parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
9785 if (unlikely(var
== NULL
)) {
9786 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
9787 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6267);
9791 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9793 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
9795 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9799 /* method parser_prod#AFalseExpr#init_afalseexpr for (self: AFalseExpr, nullable TKwfalse, nullable AAnnotations) */
9800 void nit__parser_prod___AFalseExpr___init_afalseexpr(val
* self
, val
* p0
, val
* p1
) {
9801 val
* var_n_kwfalse
/* var n_kwfalse: nullable TKwfalse */;
9802 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9803 short int var
/* : Bool */;
9804 short int var3
/* : Bool */;
9805 val
* var_other
/* var other: nullable Object */;
9806 short int var5
/* : Bool */;
9807 short int var6
/* : Bool */;
9809 { /* Inline kernel#Object#init (self) on <self:AFalseExpr> */
9814 var_n_annotations
= p1
;
9815 if (unlikely(var_n_kwfalse
== NULL
)) {
9816 PRINT_ERROR("Runtime error: %s", "Cast failed");
9817 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6277);
9820 self
->attrs
[COLOR_nit__parser_nodes__AFalseExpr___n_kwfalse
].val
= var_n_kwfalse
; /* _n_kwfalse on <self:AFalseExpr> */
9821 if (var_n_kwfalse
== NULL
) {
9822 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9823 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6278);
9826 { /* Inline parser_nodes#ANode#parent= (var_n_kwfalse,self) on <var_n_kwfalse:nullable TKwfalse> */
9827 if (unlikely(var_n_kwfalse
== NULL
)) {
9828 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9832 var_n_kwfalse
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwfalse:nullable TKwfalse> */
9836 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFalseExpr> */
9837 if (var_n_annotations
== NULL
) {
9838 var
= 0; /* is null */
9840 var
= 1; /* arg is null and recv is not */
9843 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9844 var_other
= ((val
*)NULL
);
9846 var5
= ((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)>*/
9857 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9858 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9866 /* method parser_prod#AFalseExpr#replace_child for (self: AFalseExpr, ANode, nullable ANode) */
9867 void nit__parser_prod___AFalseExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9868 val
* var_old_child
/* var old_child: ANode */;
9869 val
* var_new_child
/* var new_child: nullable ANode */;
9870 val
* var
/* : TKwfalse */;
9871 short int var1
/* : Bool */;
9872 val
* var_other
/* var other: nullable Object */;
9873 short int var3
/* : Bool */;
9874 short int var5
/* : Bool */;
9875 short int var6
/* : Bool */;
9878 const char* var_class_name
;
9879 val
* var7
/* : nullable AAnnotations */;
9880 short int var8
/* : Bool */;
9881 short int var9
/* : Bool */;
9882 short int var11
/* : Bool */;
9883 short int var13
/* : Bool */;
9884 short int var14
/* : Bool */;
9887 const char* var_class_name17
;
9890 var
= self
->attrs
[COLOR_nit__parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
9891 if (unlikely(var
== NULL
)) {
9892 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
9893 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6285);
9897 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwfalse> */
9898 var_other
= var_old_child
;
9900 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwfalse> */
9901 var5
= var
== var_other
;
9913 /* <var_new_child:nullable ANode> isa TKwfalse */
9914 cltype
= type_nit__TKwfalse
.color
;
9915 idtype
= type_nit__TKwfalse
.id
;
9916 if(var_new_child
== NULL
) {
9919 if(cltype
>= var_new_child
->type
->table_size
) {
9922 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9925 if (unlikely(!var6
)) {
9926 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9927 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwfalse", var_class_name
);
9928 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6286);
9932 nit__parser_prod___AFalseExpr___n_kwfalse_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_kwfalse= on <self:AFalseExpr>*/
9937 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
9939 var8
= 0; /* <var_old_child:ANode> cannot be null */
9941 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
9942 var_other
= var_old_child
;
9944 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
9945 var13
= var7
== var_other
;
9948 RET_LABEL12
:(void)0;
9953 RET_LABEL10
:(void)0;
9958 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9959 cltype15
= type_nullable__nit__AAnnotations
.color
;
9960 idtype16
= type_nullable__nit__AAnnotations
.id
;
9961 if(var_new_child
== NULL
) {
9964 if(cltype15
>= var_new_child
->type
->table_size
) {
9967 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
9970 if (unlikely(!var14
)) {
9971 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9972 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
9973 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6290);
9977 nit__parser_prod___AFalseExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_annotations= on <self:AFalseExpr>*/
9984 /* method parser_prod#AFalseExpr#n_kwfalse= for (self: AFalseExpr, TKwfalse) */
9985 void nit__parser_prod___AFalseExpr___n_kwfalse_61d(val
* self
, val
* p0
) {
9986 val
* var_node
/* var node: TKwfalse */;
9988 self
->attrs
[COLOR_nit__parser_nodes__AFalseExpr___n_kwfalse
].val
= var_node
; /* _n_kwfalse on <self:AFalseExpr> */
9990 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwfalse> */
9991 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwfalse> */