1 #include "nit__parser_prod.sep.0.h"
2 /* method parser_prod#AFalseExpr#n_annotations= for (self: AFalseExpr, nullable AAnnotations) */
3 void nit__parser_prod___AFalseExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
4 val
* var_node
/* var node: nullable AAnnotations */;
5 short int var
/* : Bool */;
6 short int var1
/* : Bool */;
7 val
* var_other
/* var other: nullable Object */;
8 short int var3
/* : Bool */;
9 short int var4
/* : Bool */;
11 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFalseExpr> */
12 if (var_node
== NULL
) {
13 var
= 0; /* is null */
15 var
= 1; /* arg is null and recv is not */
18 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
19 var_other
= ((val
*)NULL
);
21 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)>*/
32 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
33 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
41 /* method parser_prod#AFalseExpr#visit_all for (self: AFalseExpr, Visitor) */
42 void nit__parser_prod___AFalseExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
43 val
* var_v
/* var v: Visitor */;
44 val
* var
/* : TKwfalse */;
45 val
* var1
/* : nullable AAnnotations */;
47 var
= self
->attrs
[COLOR_nit__parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
48 if (unlikely(var
== NULL
)) {
49 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
50 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6309);
54 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
56 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
58 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
62 /* method parser_prod#ANullExpr#init_anullexpr for (self: ANullExpr, nullable TKwnull, nullable AAnnotations) */
63 void nit__parser_prod___ANullExpr___init_anullexpr(val
* self
, val
* p0
, val
* p1
) {
64 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
65 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
66 short int var
/* : Bool */;
67 short int var3
/* : Bool */;
68 val
* var_other
/* var other: nullable Object */;
69 short int var5
/* : Bool */;
70 short int var6
/* : Bool */;
72 { /* Inline kernel#Object#init (self) on <self:ANullExpr> */
77 var_n_annotations
= p1
;
78 if (unlikely(var_n_kwnull
== NULL
)) {
79 PRINT_ERROR("Runtime error: %s", "Cast failed");
80 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6319);
83 self
->attrs
[COLOR_nit__parser_nodes__ANullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:ANullExpr> */
84 if (var_n_kwnull
== NULL
) {
85 PRINT_ERROR("Runtime error: %s", "Receiver is null");
86 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6320);
89 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
90 if (unlikely(var_n_kwnull
== NULL
)) {
91 PRINT_ERROR("Runtime error: %s", "Receiver is null");
92 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
95 var_n_kwnull
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
99 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ANullExpr> */
100 if (var_n_annotations
== NULL
) {
101 var
= 0; /* is null */
103 var
= 1; /* arg is null and recv is not */
106 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
107 var_other
= ((val
*)NULL
);
109 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)>*/
120 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
121 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
129 /* method parser_prod#ANullExpr#replace_child for (self: ANullExpr, ANode, nullable ANode) */
130 void nit__parser_prod___ANullExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
131 val
* var_old_child
/* var old_child: ANode */;
132 val
* var_new_child
/* var new_child: nullable ANode */;
133 val
* var
/* : TKwnull */;
134 short int var1
/* : Bool */;
135 val
* var_other
/* var other: nullable Object */;
136 short int var3
/* : Bool */;
137 short int var5
/* : Bool */;
138 short int var6
/* : Bool */;
141 const char* var_class_name
;
142 val
* var7
/* : nullable AAnnotations */;
143 short int var8
/* : Bool */;
144 short int var9
/* : Bool */;
145 short int var11
/* : Bool */;
146 short int var13
/* : Bool */;
147 short int var14
/* : Bool */;
150 const char* var_class_name17
;
153 var
= self
->attrs
[COLOR_nit__parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
154 if (unlikely(var
== NULL
)) {
155 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
156 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6327);
160 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwnull> */
161 var_other
= var_old_child
;
163 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwnull> */
164 var5
= var
== var_other
;
176 /* <var_new_child:nullable ANode> isa TKwnull */
177 cltype
= type_nit__TKwnull
.color
;
178 idtype
= type_nit__TKwnull
.id
;
179 if(var_new_child
== NULL
) {
182 if(cltype
>= var_new_child
->type
->table_size
) {
185 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
188 if (unlikely(!var6
)) {
189 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
190 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name
);
191 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6328);
195 nit__parser_prod___ANullExpr___n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_kwnull= on <self:ANullExpr>*/
200 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
202 var8
= 0; /* <var_old_child:ANode> cannot be null */
204 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
205 var_other
= var_old_child
;
207 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
208 var13
= var7
== var_other
;
221 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
222 cltype15
= type_nullable__nit__AAnnotations
.color
;
223 idtype16
= type_nullable__nit__AAnnotations
.id
;
224 if(var_new_child
== NULL
) {
227 if(cltype15
>= var_new_child
->type
->table_size
) {
230 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
233 if (unlikely(!var14
)) {
234 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
235 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
236 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6332);
240 nit__parser_prod___ANullExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_annotations= on <self:ANullExpr>*/
247 /* method parser_prod#ANullExpr#n_kwnull= for (self: ANullExpr, TKwnull) */
248 void nit__parser_prod___ANullExpr___n_kwnull_61d(val
* self
, val
* p0
) {
249 val
* var_node
/* var node: TKwnull */;
251 self
->attrs
[COLOR_nit__parser_nodes__ANullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:ANullExpr> */
253 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
254 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
260 /* method parser_prod#ANullExpr#n_annotations= for (self: ANullExpr, nullable AAnnotations) */
261 void nit__parser_prod___ANullExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
262 val
* var_node
/* var node: nullable AAnnotations */;
263 short int var
/* : Bool */;
264 short int var1
/* : Bool */;
265 val
* var_other
/* var other: nullable Object */;
266 short int var3
/* : Bool */;
267 short int var4
/* : Bool */;
269 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ANullExpr> */
270 if (var_node
== NULL
) {
271 var
= 0; /* is null */
273 var
= 1; /* arg is null and recv is not */
276 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
277 var_other
= ((val
*)NULL
);
279 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)>*/
290 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
291 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
299 /* method parser_prod#ANullExpr#visit_all for (self: ANullExpr, Visitor) */
300 void nit__parser_prod___ANullExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
301 val
* var_v
/* var v: Visitor */;
302 val
* var
/* : TKwnull */;
303 val
* var1
/* : nullable AAnnotations */;
305 var
= self
->attrs
[COLOR_nit__parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
306 if (unlikely(var
== NULL
)) {
307 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
308 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6351);
312 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
314 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
316 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
320 /* method parser_prod#ADecIntExpr#init_adecintexpr for (self: ADecIntExpr, nullable TNumber, nullable AAnnotations) */
321 void nit__parser_prod___ADecIntExpr___init_adecintexpr(val
* self
, val
* p0
, val
* p1
) {
322 val
* var_n_number
/* var n_number: nullable TNumber */;
323 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
324 short int var
/* : Bool */;
325 short int var3
/* : Bool */;
326 val
* var_other
/* var other: nullable Object */;
327 short int var5
/* : Bool */;
328 short int var6
/* : Bool */;
330 { /* Inline kernel#Object#init (self) on <self:ADecIntExpr> */
335 var_n_annotations
= p1
;
336 if (unlikely(var_n_number
== NULL
)) {
337 PRINT_ERROR("Runtime error: %s", "Cast failed");
338 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6361);
341 self
->attrs
[COLOR_nit__parser_nodes__ADecIntExpr___n_number
].val
= var_n_number
; /* _n_number on <self:ADecIntExpr> */
342 if (var_n_number
== NULL
) {
343 PRINT_ERROR("Runtime error: %s", "Receiver is null");
344 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6362);
347 { /* Inline parser_nodes#ANode#parent= (var_n_number,self) on <var_n_number:nullable TNumber> */
348 if (unlikely(var_n_number
== NULL
)) {
349 PRINT_ERROR("Runtime error: %s", "Receiver is null");
350 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
353 var_n_number
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_number:nullable TNumber> */
357 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADecIntExpr> */
358 if (var_n_annotations
== NULL
) {
359 var
= 0; /* is null */
361 var
= 1; /* arg is null and recv is not */
364 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
365 var_other
= ((val
*)NULL
);
367 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)>*/
378 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
379 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
387 /* method parser_prod#ADecIntExpr#replace_child for (self: ADecIntExpr, ANode, nullable ANode) */
388 void nit__parser_prod___ADecIntExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
389 val
* var_old_child
/* var old_child: ANode */;
390 val
* var_new_child
/* var new_child: nullable ANode */;
391 val
* var
/* : TNumber */;
392 short int var1
/* : Bool */;
393 val
* var_other
/* var other: nullable Object */;
394 short int var3
/* : Bool */;
395 short int var5
/* : Bool */;
396 short int var6
/* : Bool */;
399 const char* var_class_name
;
400 val
* var7
/* : nullable AAnnotations */;
401 short int var8
/* : Bool */;
402 short int var9
/* : Bool */;
403 short int var11
/* : Bool */;
404 short int var13
/* : Bool */;
405 short int var14
/* : Bool */;
408 const char* var_class_name17
;
411 var
= self
->attrs
[COLOR_nit__parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
412 if (unlikely(var
== NULL
)) {
413 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
414 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6369);
418 { /* Inline kernel#Object#== (var,var_old_child) on <var:TNumber> */
419 var_other
= var_old_child
;
421 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TNumber> */
422 var5
= var
== var_other
;
434 /* <var_new_child:nullable ANode> isa TNumber */
435 cltype
= type_nit__TNumber
.color
;
436 idtype
= type_nit__TNumber
.id
;
437 if(var_new_child
== NULL
) {
440 if(cltype
>= var_new_child
->type
->table_size
) {
443 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
446 if (unlikely(!var6
)) {
447 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
448 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNumber", var_class_name
);
449 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6370);
453 nit__parser_prod___ADecIntExpr___n_number_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_number= on <self:ADecIntExpr>*/
458 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
460 var8
= 0; /* <var_old_child:ANode> cannot be null */
462 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
463 var_other
= var_old_child
;
465 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
466 var13
= var7
== var_other
;
479 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
480 cltype15
= type_nullable__nit__AAnnotations
.color
;
481 idtype16
= type_nullable__nit__AAnnotations
.id
;
482 if(var_new_child
== NULL
) {
485 if(cltype15
>= var_new_child
->type
->table_size
) {
488 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
491 if (unlikely(!var14
)) {
492 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
493 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
494 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6374);
498 nit__parser_prod___ADecIntExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_annotations= on <self:ADecIntExpr>*/
505 /* method parser_prod#ADecIntExpr#n_number= for (self: ADecIntExpr, TNumber) */
506 void nit__parser_prod___ADecIntExpr___n_number_61d(val
* self
, val
* p0
) {
507 val
* var_node
/* var node: TNumber */;
509 self
->attrs
[COLOR_nit__parser_nodes__ADecIntExpr___n_number
].val
= var_node
; /* _n_number on <self:ADecIntExpr> */
511 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TNumber> */
512 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TNumber> */
518 /* method parser_prod#ADecIntExpr#n_annotations= for (self: ADecIntExpr, nullable AAnnotations) */
519 void nit__parser_prod___ADecIntExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
520 val
* var_node
/* var node: nullable AAnnotations */;
521 short int var
/* : Bool */;
522 short int var1
/* : Bool */;
523 val
* var_other
/* var other: nullable Object */;
524 short int var3
/* : Bool */;
525 short int var4
/* : Bool */;
527 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADecIntExpr> */
528 if (var_node
== NULL
) {
529 var
= 0; /* is null */
531 var
= 1; /* arg is null and recv is not */
534 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
535 var_other
= ((val
*)NULL
);
537 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)>*/
548 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
549 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
557 /* method parser_prod#ADecIntExpr#visit_all for (self: ADecIntExpr, Visitor) */
558 void nit__parser_prod___ADecIntExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
559 val
* var_v
/* var v: Visitor */;
560 val
* var
/* : TNumber */;
561 val
* var1
/* : nullable AAnnotations */;
563 var
= self
->attrs
[COLOR_nit__parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
564 if (unlikely(var
== NULL
)) {
565 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
566 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6393);
570 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
572 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
574 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
578 /* method parser_prod#AHexIntExpr#init_ahexintexpr for (self: AHexIntExpr, nullable THexNumber, nullable AAnnotations) */
579 void nit__parser_prod___AHexIntExpr___init_ahexintexpr(val
* self
, val
* p0
, val
* p1
) {
580 val
* var_n_hex_number
/* var n_hex_number: nullable THexNumber */;
581 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
582 short int var
/* : Bool */;
583 short int var3
/* : Bool */;
584 val
* var_other
/* var other: nullable Object */;
585 short int var5
/* : Bool */;
586 short int var6
/* : Bool */;
588 { /* Inline kernel#Object#init (self) on <self:AHexIntExpr> */
592 var_n_hex_number
= p0
;
593 var_n_annotations
= p1
;
594 if (unlikely(var_n_hex_number
== NULL
)) {
595 PRINT_ERROR("Runtime error: %s", "Cast failed");
596 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6403);
599 self
->attrs
[COLOR_nit__parser_nodes__AHexIntExpr___n_hex_number
].val
= var_n_hex_number
; /* _n_hex_number on <self:AHexIntExpr> */
600 if (var_n_hex_number
== NULL
) {
601 PRINT_ERROR("Runtime error: %s", "Receiver is null");
602 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6404);
605 { /* Inline parser_nodes#ANode#parent= (var_n_hex_number,self) on <var_n_hex_number:nullable THexNumber> */
606 if (unlikely(var_n_hex_number
== NULL
)) {
607 PRINT_ERROR("Runtime error: %s", "Receiver is null");
608 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
611 var_n_hex_number
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_hex_number:nullable THexNumber> */
615 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AHexIntExpr> */
616 if (var_n_annotations
== NULL
) {
617 var
= 0; /* is null */
619 var
= 1; /* arg is null and recv is not */
622 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
623 var_other
= ((val
*)NULL
);
625 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)>*/
636 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
637 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
645 /* method parser_prod#AHexIntExpr#replace_child for (self: AHexIntExpr, ANode, nullable ANode) */
646 void nit__parser_prod___AHexIntExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
647 val
* var_old_child
/* var old_child: ANode */;
648 val
* var_new_child
/* var new_child: nullable ANode */;
649 val
* var
/* : THexNumber */;
650 short int var1
/* : Bool */;
651 val
* var_other
/* var other: nullable Object */;
652 short int var3
/* : Bool */;
653 short int var5
/* : Bool */;
654 short int var6
/* : Bool */;
657 const char* var_class_name
;
658 val
* var7
/* : nullable AAnnotations */;
659 short int var8
/* : Bool */;
660 short int var9
/* : Bool */;
661 short int var11
/* : Bool */;
662 short int var13
/* : Bool */;
663 short int var14
/* : Bool */;
666 const char* var_class_name17
;
669 var
= self
->attrs
[COLOR_nit__parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
670 if (unlikely(var
== NULL
)) {
671 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
672 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6411);
676 { /* Inline kernel#Object#== (var,var_old_child) on <var:THexNumber> */
677 var_other
= var_old_child
;
679 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:THexNumber> */
680 var5
= var
== var_other
;
692 /* <var_new_child:nullable ANode> isa THexNumber */
693 cltype
= type_nit__THexNumber
.color
;
694 idtype
= type_nit__THexNumber
.id
;
695 if(var_new_child
== NULL
) {
698 if(cltype
>= var_new_child
->type
->table_size
) {
701 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
704 if (unlikely(!var6
)) {
705 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
706 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "THexNumber", var_class_name
);
707 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6412);
711 nit__parser_prod___AHexIntExpr___n_hex_number_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_hex_number= on <self:AHexIntExpr>*/
716 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
718 var8
= 0; /* <var_old_child:ANode> cannot be null */
720 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
721 var_other
= var_old_child
;
723 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
724 var13
= var7
== var_other
;
737 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
738 cltype15
= type_nullable__nit__AAnnotations
.color
;
739 idtype16
= type_nullable__nit__AAnnotations
.id
;
740 if(var_new_child
== NULL
) {
743 if(cltype15
>= var_new_child
->type
->table_size
) {
746 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
749 if (unlikely(!var14
)) {
750 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
751 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
752 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6416);
756 nit__parser_prod___AHexIntExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_annotations= on <self:AHexIntExpr>*/
763 /* method parser_prod#AHexIntExpr#n_hex_number= for (self: AHexIntExpr, THexNumber) */
764 void nit__parser_prod___AHexIntExpr___n_hex_number_61d(val
* self
, val
* p0
) {
765 val
* var_node
/* var node: THexNumber */;
767 self
->attrs
[COLOR_nit__parser_nodes__AHexIntExpr___n_hex_number
].val
= var_node
; /* _n_hex_number on <self:AHexIntExpr> */
769 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:THexNumber> */
770 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:THexNumber> */
776 /* method parser_prod#AHexIntExpr#n_annotations= for (self: AHexIntExpr, nullable AAnnotations) */
777 void nit__parser_prod___AHexIntExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
778 val
* var_node
/* var node: nullable AAnnotations */;
779 short int var
/* : Bool */;
780 short int var1
/* : Bool */;
781 val
* var_other
/* var other: nullable Object */;
782 short int var3
/* : Bool */;
783 short int var4
/* : Bool */;
785 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AHexIntExpr> */
786 if (var_node
== NULL
) {
787 var
= 0; /* is null */
789 var
= 1; /* arg is null and recv is not */
792 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
793 var_other
= ((val
*)NULL
);
795 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)>*/
806 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
807 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
815 /* method parser_prod#AHexIntExpr#visit_all for (self: AHexIntExpr, Visitor) */
816 void nit__parser_prod___AHexIntExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
817 val
* var_v
/* var v: Visitor */;
818 val
* var
/* : THexNumber */;
819 val
* var1
/* : nullable AAnnotations */;
821 var
= self
->attrs
[COLOR_nit__parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
822 if (unlikely(var
== NULL
)) {
823 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
824 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6435);
828 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
830 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
832 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
836 /* method parser_prod#ABinIntExpr#init_abinintexpr for (self: ABinIntExpr, nullable TBinNumber, nullable AAnnotations) */
837 void nit__parser_prod___ABinIntExpr___init_abinintexpr(val
* self
, val
* p0
, val
* p1
) {
838 val
* var_n_bin_number
/* var n_bin_number: nullable TBinNumber */;
839 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
840 short int var
/* : Bool */;
841 short int var3
/* : Bool */;
842 val
* var_other
/* var other: nullable Object */;
843 short int var5
/* : Bool */;
844 short int var6
/* : Bool */;
846 { /* Inline kernel#Object#init (self) on <self:ABinIntExpr> */
850 var_n_bin_number
= p0
;
851 var_n_annotations
= p1
;
852 if (unlikely(var_n_bin_number
== NULL
)) {
853 PRINT_ERROR("Runtime error: %s", "Cast failed");
854 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6445);
857 self
->attrs
[COLOR_nit__parser_nodes__ABinIntExpr___n_bin_number
].val
= var_n_bin_number
; /* _n_bin_number on <self:ABinIntExpr> */
858 if (var_n_bin_number
== NULL
) {
859 PRINT_ERROR("Runtime error: %s", "Receiver is null");
860 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6446);
863 { /* Inline parser_nodes#ANode#parent= (var_n_bin_number,self) on <var_n_bin_number:nullable TBinNumber> */
864 if (unlikely(var_n_bin_number
== NULL
)) {
865 PRINT_ERROR("Runtime error: %s", "Receiver is null");
866 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
869 var_n_bin_number
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_bin_number:nullable TBinNumber> */
873 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ABinIntExpr> */
874 if (var_n_annotations
== NULL
) {
875 var
= 0; /* is null */
877 var
= 1; /* arg is null and recv is not */
880 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
881 var_other
= ((val
*)NULL
);
883 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)>*/
894 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
895 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
903 /* method parser_prod#ABinIntExpr#replace_child for (self: ABinIntExpr, ANode, nullable ANode) */
904 void nit__parser_prod___ABinIntExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
905 val
* var_old_child
/* var old_child: ANode */;
906 val
* var_new_child
/* var new_child: nullable ANode */;
907 val
* var
/* : TBinNumber */;
908 short int var1
/* : Bool */;
909 val
* var_other
/* var other: nullable Object */;
910 short int var3
/* : Bool */;
911 short int var5
/* : Bool */;
912 short int var6
/* : Bool */;
915 const char* var_class_name
;
916 val
* var7
/* : nullable AAnnotations */;
917 short int var8
/* : Bool */;
918 short int var9
/* : Bool */;
919 short int var11
/* : Bool */;
920 short int var13
/* : Bool */;
921 short int var14
/* : Bool */;
924 const char* var_class_name17
;
927 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinIntExpr___n_bin_number
].val
; /* _n_bin_number on <self:ABinIntExpr> */
928 if (unlikely(var
== NULL
)) {
929 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bin_number");
930 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6453);
934 { /* Inline kernel#Object#== (var,var_old_child) on <var:TBinNumber> */
935 var_other
= var_old_child
;
937 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TBinNumber> */
938 var5
= var
== var_other
;
950 /* <var_new_child:nullable ANode> isa TBinNumber */
951 cltype
= type_nit__TBinNumber
.color
;
952 idtype
= type_nit__TBinNumber
.id
;
953 if(var_new_child
== NULL
) {
956 if(cltype
>= var_new_child
->type
->table_size
) {
959 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
962 if (unlikely(!var6
)) {
963 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
964 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TBinNumber", var_class_name
);
965 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6454);
969 nit__parser_prod___ABinIntExpr___n_bin_number_61d(self
, var_new_child
); /* Direct call parser_prod#ABinIntExpr#n_bin_number= on <self:ABinIntExpr>*/
974 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ABinIntExpr> */
976 var8
= 0; /* <var_old_child:ANode> cannot be null */
978 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
979 var_other
= var_old_child
;
981 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
982 var13
= var7
== var_other
;
995 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
996 cltype15
= type_nullable__nit__AAnnotations
.color
;
997 idtype16
= type_nullable__nit__AAnnotations
.id
;
998 if(var_new_child
== NULL
) {
1001 if(cltype15
>= var_new_child
->type
->table_size
) {
1004 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
1007 if (unlikely(!var14
)) {
1008 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1009 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
1010 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6458);
1014 nit__parser_prod___ABinIntExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ABinIntExpr#n_annotations= on <self:ABinIntExpr>*/
1021 /* method parser_prod#ABinIntExpr#n_bin_number= for (self: ABinIntExpr, TBinNumber) */
1022 void nit__parser_prod___ABinIntExpr___n_bin_number_61d(val
* self
, val
* p0
) {
1023 val
* var_node
/* var node: TBinNumber */;
1025 self
->attrs
[COLOR_nit__parser_nodes__ABinIntExpr___n_bin_number
].val
= var_node
; /* _n_bin_number on <self:ABinIntExpr> */
1027 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TBinNumber> */
1028 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TBinNumber> */
1034 /* method parser_prod#ABinIntExpr#n_annotations= for (self: ABinIntExpr, nullable AAnnotations) */
1035 void nit__parser_prod___ABinIntExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1036 val
* var_node
/* var node: nullable AAnnotations */;
1037 short int var
/* : Bool */;
1038 short int var1
/* : Bool */;
1039 val
* var_other
/* var other: nullable Object */;
1040 short int var3
/* : Bool */;
1041 short int var4
/* : Bool */;
1043 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ABinIntExpr> */
1044 if (var_node
== NULL
) {
1045 var
= 0; /* is null */
1047 var
= 1; /* arg is null and recv is not */
1050 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1051 var_other
= ((val
*)NULL
);
1053 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)>*/
1064 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1065 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1073 /* method parser_prod#ABinIntExpr#visit_all for (self: ABinIntExpr, Visitor) */
1074 void nit__parser_prod___ABinIntExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1075 val
* var_v
/* var v: Visitor */;
1076 val
* var
/* : TBinNumber */;
1077 val
* var1
/* : nullable AAnnotations */;
1079 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinIntExpr___n_bin_number
].val
; /* _n_bin_number on <self:ABinIntExpr> */
1080 if (unlikely(var
== NULL
)) {
1081 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bin_number");
1082 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6477);
1086 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1088 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ABinIntExpr> */
1090 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1094 /* method parser_prod#AOctIntExpr#init_aoctintexpr for (self: AOctIntExpr, nullable TOctNumber, nullable AAnnotations) */
1095 void nit__parser_prod___AOctIntExpr___init_aoctintexpr(val
* self
, val
* p0
, val
* p1
) {
1096 val
* var_n_oct_number
/* var n_oct_number: nullable TOctNumber */;
1097 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1098 short int var
/* : Bool */;
1099 short int var3
/* : Bool */;
1100 val
* var_other
/* var other: nullable Object */;
1101 short int var5
/* : Bool */;
1102 short int var6
/* : Bool */;
1104 { /* Inline kernel#Object#init (self) on <self:AOctIntExpr> */
1108 var_n_oct_number
= p0
;
1109 var_n_annotations
= p1
;
1110 if (unlikely(var_n_oct_number
== NULL
)) {
1111 PRINT_ERROR("Runtime error: %s", "Cast failed");
1112 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6487);
1115 self
->attrs
[COLOR_nit__parser_nodes__AOctIntExpr___n_oct_number
].val
= var_n_oct_number
; /* _n_oct_number on <self:AOctIntExpr> */
1116 if (var_n_oct_number
== NULL
) {
1117 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1118 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6488);
1121 { /* Inline parser_nodes#ANode#parent= (var_n_oct_number,self) on <var_n_oct_number:nullable TOctNumber> */
1122 if (unlikely(var_n_oct_number
== NULL
)) {
1123 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1124 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1127 var_n_oct_number
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_oct_number:nullable TOctNumber> */
1131 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOctIntExpr> */
1132 if (var_n_annotations
== NULL
) {
1133 var
= 0; /* is null */
1135 var
= 1; /* arg is null and recv is not */
1138 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
1139 var_other
= ((val
*)NULL
);
1141 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)>*/
1152 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1153 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1161 /* method parser_prod#AOctIntExpr#replace_child for (self: AOctIntExpr, ANode, nullable ANode) */
1162 void nit__parser_prod___AOctIntExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1163 val
* var_old_child
/* var old_child: ANode */;
1164 val
* var_new_child
/* var new_child: nullable ANode */;
1165 val
* var
/* : TOctNumber */;
1166 short int var1
/* : Bool */;
1167 val
* var_other
/* var other: nullable Object */;
1168 short int var3
/* : Bool */;
1169 short int var5
/* : Bool */;
1170 short int var6
/* : Bool */;
1173 const char* var_class_name
;
1174 val
* var7
/* : nullable AAnnotations */;
1175 short int var8
/* : Bool */;
1176 short int var9
/* : Bool */;
1177 short int var11
/* : Bool */;
1178 short int var13
/* : Bool */;
1179 short int var14
/* : Bool */;
1182 const char* var_class_name17
;
1185 var
= self
->attrs
[COLOR_nit__parser_nodes__AOctIntExpr___n_oct_number
].val
; /* _n_oct_number on <self:AOctIntExpr> */
1186 if (unlikely(var
== NULL
)) {
1187 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_oct_number");
1188 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6495);
1192 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOctNumber> */
1193 var_other
= var_old_child
;
1195 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOctNumber> */
1196 var5
= var
== var_other
;
1208 /* <var_new_child:nullable ANode> isa TOctNumber */
1209 cltype
= type_nit__TOctNumber
.color
;
1210 idtype
= type_nit__TOctNumber
.id
;
1211 if(var_new_child
== NULL
) {
1214 if(cltype
>= var_new_child
->type
->table_size
) {
1217 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1220 if (unlikely(!var6
)) {
1221 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1222 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOctNumber", var_class_name
);
1223 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6496);
1227 nit__parser_prod___AOctIntExpr___n_oct_number_61d(self
, var_new_child
); /* Direct call parser_prod#AOctIntExpr#n_oct_number= on <self:AOctIntExpr>*/
1232 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOctIntExpr> */
1234 var8
= 0; /* <var_old_child:ANode> cannot be null */
1236 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
1237 var_other
= var_old_child
;
1239 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
1240 var13
= var7
== var_other
;
1243 RET_LABEL12
:(void)0;
1248 RET_LABEL10
:(void)0;
1253 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1254 cltype15
= type_nullable__nit__AAnnotations
.color
;
1255 idtype16
= type_nullable__nit__AAnnotations
.id
;
1256 if(var_new_child
== NULL
) {
1259 if(cltype15
>= var_new_child
->type
->table_size
) {
1262 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
1265 if (unlikely(!var14
)) {
1266 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1267 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
1268 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6500);
1272 nit__parser_prod___AOctIntExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOctIntExpr#n_annotations= on <self:AOctIntExpr>*/
1279 /* method parser_prod#AOctIntExpr#n_oct_number= for (self: AOctIntExpr, TOctNumber) */
1280 void nit__parser_prod___AOctIntExpr___n_oct_number_61d(val
* self
, val
* p0
) {
1281 val
* var_node
/* var node: TOctNumber */;
1283 self
->attrs
[COLOR_nit__parser_nodes__AOctIntExpr___n_oct_number
].val
= var_node
; /* _n_oct_number on <self:AOctIntExpr> */
1285 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOctNumber> */
1286 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOctNumber> */
1292 /* method parser_prod#AOctIntExpr#n_annotations= for (self: AOctIntExpr, nullable AAnnotations) */
1293 void nit__parser_prod___AOctIntExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1294 val
* var_node
/* var node: nullable AAnnotations */;
1295 short int var
/* : Bool */;
1296 short int var1
/* : Bool */;
1297 val
* var_other
/* var other: nullable Object */;
1298 short int var3
/* : Bool */;
1299 short int var4
/* : Bool */;
1301 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOctIntExpr> */
1302 if (var_node
== NULL
) {
1303 var
= 0; /* is null */
1305 var
= 1; /* arg is null and recv is not */
1308 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1309 var_other
= ((val
*)NULL
);
1311 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)>*/
1322 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1323 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1331 /* method parser_prod#AOctIntExpr#visit_all for (self: AOctIntExpr, Visitor) */
1332 void nit__parser_prod___AOctIntExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1333 val
* var_v
/* var v: Visitor */;
1334 val
* var
/* : TOctNumber */;
1335 val
* var1
/* : nullable AAnnotations */;
1337 var
= self
->attrs
[COLOR_nit__parser_nodes__AOctIntExpr___n_oct_number
].val
; /* _n_oct_number on <self:AOctIntExpr> */
1338 if (unlikely(var
== NULL
)) {
1339 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_oct_number");
1340 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6519);
1344 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1346 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOctIntExpr> */
1348 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1352 /* method parser_prod#ADecByteExpr#init_adecbyteexpr for (self: ADecByteExpr, nullable TBytenum, nullable AAnnotations) */
1353 void nit__parser_prod___ADecByteExpr___init_adecbyteexpr(val
* self
, val
* p0
, val
* p1
) {
1354 val
* var_n_bytenum
/* var n_bytenum: nullable TBytenum */;
1355 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1356 short int var
/* : Bool */;
1357 short int var3
/* : Bool */;
1358 val
* var_other
/* var other: nullable Object */;
1359 short int var5
/* : Bool */;
1360 short int var6
/* : Bool */;
1362 { /* Inline kernel#Object#init (self) on <self:ADecByteExpr> */
1367 var_n_annotations
= p1
;
1368 if (unlikely(var_n_bytenum
== NULL
)) {
1369 PRINT_ERROR("Runtime error: %s", "Cast failed");
1370 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6529);
1373 self
->attrs
[COLOR_nit__parser_nodes__ADecByteExpr___n_bytenum
].val
= var_n_bytenum
; /* _n_bytenum on <self:ADecByteExpr> */
1374 if (var_n_bytenum
== NULL
) {
1375 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1376 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6530);
1379 { /* Inline parser_nodes#ANode#parent= (var_n_bytenum,self) on <var_n_bytenum:nullable TBytenum> */
1380 if (unlikely(var_n_bytenum
== NULL
)) {
1381 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1382 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1385 var_n_bytenum
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_bytenum:nullable TBytenum> */
1389 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADecByteExpr> */
1390 if (var_n_annotations
== NULL
) {
1391 var
= 0; /* is null */
1393 var
= 1; /* arg is null and recv is not */
1396 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
1397 var_other
= ((val
*)NULL
);
1399 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)>*/
1410 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1411 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1419 /* method parser_prod#ADecByteExpr#replace_child for (self: ADecByteExpr, ANode, nullable ANode) */
1420 void nit__parser_prod___ADecByteExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1421 val
* var_old_child
/* var old_child: ANode */;
1422 val
* var_new_child
/* var new_child: nullable ANode */;
1423 val
* var
/* : TBytenum */;
1424 short int var1
/* : Bool */;
1425 val
* var_other
/* var other: nullable Object */;
1426 short int var3
/* : Bool */;
1427 short int var5
/* : Bool */;
1428 short int var6
/* : Bool */;
1431 const char* var_class_name
;
1432 val
* var7
/* : nullable AAnnotations */;
1433 short int var8
/* : Bool */;
1434 short int var9
/* : Bool */;
1435 short int var11
/* : Bool */;
1436 short int var13
/* : Bool */;
1437 short int var14
/* : Bool */;
1440 const char* var_class_name17
;
1443 var
= self
->attrs
[COLOR_nit__parser_nodes__ADecByteExpr___n_bytenum
].val
; /* _n_bytenum on <self:ADecByteExpr> */
1444 if (unlikely(var
== NULL
)) {
1445 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bytenum");
1446 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6537);
1450 { /* Inline kernel#Object#== (var,var_old_child) on <var:TBytenum> */
1451 var_other
= var_old_child
;
1453 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TBytenum> */
1454 var5
= var
== var_other
;
1466 /* <var_new_child:nullable ANode> isa TBytenum */
1467 cltype
= type_nit__TBytenum
.color
;
1468 idtype
= type_nit__TBytenum
.id
;
1469 if(var_new_child
== NULL
) {
1472 if(cltype
>= var_new_child
->type
->table_size
) {
1475 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1478 if (unlikely(!var6
)) {
1479 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1480 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TBytenum", var_class_name
);
1481 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6538);
1485 nit__parser_prod___ADecByteExpr___n_bytenum_61d(self
, var_new_child
); /* Direct call parser_prod#ADecByteExpr#n_bytenum= on <self:ADecByteExpr>*/
1490 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecByteExpr> */
1492 var8
= 0; /* <var_old_child:ANode> cannot be null */
1494 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
1495 var_other
= var_old_child
;
1497 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
1498 var13
= var7
== var_other
;
1501 RET_LABEL12
:(void)0;
1506 RET_LABEL10
:(void)0;
1511 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1512 cltype15
= type_nullable__nit__AAnnotations
.color
;
1513 idtype16
= type_nullable__nit__AAnnotations
.id
;
1514 if(var_new_child
== NULL
) {
1517 if(cltype15
>= var_new_child
->type
->table_size
) {
1520 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
1523 if (unlikely(!var14
)) {
1524 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1525 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
1526 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6542);
1530 nit__parser_prod___ADecByteExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ADecByteExpr#n_annotations= on <self:ADecByteExpr>*/
1537 /* method parser_prod#ADecByteExpr#n_bytenum= for (self: ADecByteExpr, TBytenum) */
1538 void nit__parser_prod___ADecByteExpr___n_bytenum_61d(val
* self
, val
* p0
) {
1539 val
* var_node
/* var node: TBytenum */;
1541 self
->attrs
[COLOR_nit__parser_nodes__ADecByteExpr___n_bytenum
].val
= var_node
; /* _n_bytenum on <self:ADecByteExpr> */
1543 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TBytenum> */
1544 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TBytenum> */
1550 /* method parser_prod#ADecByteExpr#n_annotations= for (self: ADecByteExpr, nullable AAnnotations) */
1551 void nit__parser_prod___ADecByteExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1552 val
* var_node
/* var node: nullable AAnnotations */;
1553 short int var
/* : Bool */;
1554 short int var1
/* : Bool */;
1555 val
* var_other
/* var other: nullable Object */;
1556 short int var3
/* : Bool */;
1557 short int var4
/* : Bool */;
1559 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADecByteExpr> */
1560 if (var_node
== NULL
) {
1561 var
= 0; /* is null */
1563 var
= 1; /* arg is null and recv is not */
1566 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1567 var_other
= ((val
*)NULL
);
1569 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)>*/
1580 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1581 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1589 /* method parser_prod#ADecByteExpr#visit_all for (self: ADecByteExpr, Visitor) */
1590 void nit__parser_prod___ADecByteExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1591 val
* var_v
/* var v: Visitor */;
1592 val
* var
/* : TBytenum */;
1593 val
* var1
/* : nullable AAnnotations */;
1595 var
= self
->attrs
[COLOR_nit__parser_nodes__ADecByteExpr___n_bytenum
].val
; /* _n_bytenum on <self:ADecByteExpr> */
1596 if (unlikely(var
== NULL
)) {
1597 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bytenum");
1598 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6561);
1602 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1604 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecByteExpr> */
1606 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1610 /* method parser_prod#AHexByteExpr#init_ahexbyteexpr for (self: AHexByteExpr, nullable THexBytenum, nullable AAnnotations) */
1611 void nit__parser_prod___AHexByteExpr___init_ahexbyteexpr(val
* self
, val
* p0
, val
* p1
) {
1612 val
* var_n_hex_bytenum
/* var n_hex_bytenum: nullable THexBytenum */;
1613 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1614 short int var
/* : Bool */;
1615 short int var3
/* : Bool */;
1616 val
* var_other
/* var other: nullable Object */;
1617 short int var5
/* : Bool */;
1618 short int var6
/* : Bool */;
1620 { /* Inline kernel#Object#init (self) on <self:AHexByteExpr> */
1624 var_n_hex_bytenum
= p0
;
1625 var_n_annotations
= p1
;
1626 if (unlikely(var_n_hex_bytenum
== NULL
)) {
1627 PRINT_ERROR("Runtime error: %s", "Cast failed");
1628 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6571);
1631 self
->attrs
[COLOR_nit__parser_nodes__AHexByteExpr___n_hex_bytenum
].val
= var_n_hex_bytenum
; /* _n_hex_bytenum on <self:AHexByteExpr> */
1632 if (var_n_hex_bytenum
== NULL
) {
1633 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1634 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6572);
1637 { /* Inline parser_nodes#ANode#parent= (var_n_hex_bytenum,self) on <var_n_hex_bytenum:nullable THexBytenum> */
1638 if (unlikely(var_n_hex_bytenum
== NULL
)) {
1639 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1640 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1643 var_n_hex_bytenum
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_hex_bytenum:nullable THexBytenum> */
1647 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AHexByteExpr> */
1648 if (var_n_annotations
== NULL
) {
1649 var
= 0; /* is null */
1651 var
= 1; /* arg is null and recv is not */
1654 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
1655 var_other
= ((val
*)NULL
);
1657 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)>*/
1668 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1669 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1677 /* method parser_prod#AHexByteExpr#replace_child for (self: AHexByteExpr, ANode, nullable ANode) */
1678 void nit__parser_prod___AHexByteExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1679 val
* var_old_child
/* var old_child: ANode */;
1680 val
* var_new_child
/* var new_child: nullable ANode */;
1681 val
* var
/* : THexBytenum */;
1682 short int var1
/* : Bool */;
1683 val
* var_other
/* var other: nullable Object */;
1684 short int var3
/* : Bool */;
1685 short int var5
/* : Bool */;
1686 short int var6
/* : Bool */;
1689 const char* var_class_name
;
1690 val
* var7
/* : nullable AAnnotations */;
1691 short int var8
/* : Bool */;
1692 short int var9
/* : Bool */;
1693 short int var11
/* : Bool */;
1694 short int var13
/* : Bool */;
1695 short int var14
/* : Bool */;
1698 const char* var_class_name17
;
1701 var
= self
->attrs
[COLOR_nit__parser_nodes__AHexByteExpr___n_hex_bytenum
].val
; /* _n_hex_bytenum on <self:AHexByteExpr> */
1702 if (unlikely(var
== NULL
)) {
1703 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_bytenum");
1704 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6579);
1708 { /* Inline kernel#Object#== (var,var_old_child) on <var:THexBytenum> */
1709 var_other
= var_old_child
;
1711 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:THexBytenum> */
1712 var5
= var
== var_other
;
1724 /* <var_new_child:nullable ANode> isa THexBytenum */
1725 cltype
= type_nit__THexBytenum
.color
;
1726 idtype
= type_nit__THexBytenum
.id
;
1727 if(var_new_child
== NULL
) {
1730 if(cltype
>= var_new_child
->type
->table_size
) {
1733 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1736 if (unlikely(!var6
)) {
1737 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1738 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "THexBytenum", var_class_name
);
1739 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6580);
1743 nit__parser_prod___AHexByteExpr___n_hex_bytenum_61d(self
, var_new_child
); /* Direct call parser_prod#AHexByteExpr#n_hex_bytenum= on <self:AHexByteExpr>*/
1748 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexByteExpr> */
1750 var8
= 0; /* <var_old_child:ANode> cannot be null */
1752 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
1753 var_other
= var_old_child
;
1755 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
1756 var13
= var7
== var_other
;
1759 RET_LABEL12
:(void)0;
1764 RET_LABEL10
:(void)0;
1769 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1770 cltype15
= type_nullable__nit__AAnnotations
.color
;
1771 idtype16
= type_nullable__nit__AAnnotations
.id
;
1772 if(var_new_child
== NULL
) {
1775 if(cltype15
>= var_new_child
->type
->table_size
) {
1778 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
1781 if (unlikely(!var14
)) {
1782 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1783 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
1784 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6584);
1788 nit__parser_prod___AHexByteExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AHexByteExpr#n_annotations= on <self:AHexByteExpr>*/
1795 /* method parser_prod#AHexByteExpr#n_hex_bytenum= for (self: AHexByteExpr, THexBytenum) */
1796 void nit__parser_prod___AHexByteExpr___n_hex_bytenum_61d(val
* self
, val
* p0
) {
1797 val
* var_node
/* var node: THexBytenum */;
1799 self
->attrs
[COLOR_nit__parser_nodes__AHexByteExpr___n_hex_bytenum
].val
= var_node
; /* _n_hex_bytenum on <self:AHexByteExpr> */
1801 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:THexBytenum> */
1802 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:THexBytenum> */
1808 /* method parser_prod#AHexByteExpr#n_annotations= for (self: AHexByteExpr, nullable AAnnotations) */
1809 void nit__parser_prod___AHexByteExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1810 val
* var_node
/* var node: nullable AAnnotations */;
1811 short int var
/* : Bool */;
1812 short int var1
/* : Bool */;
1813 val
* var_other
/* var other: nullable Object */;
1814 short int var3
/* : Bool */;
1815 short int var4
/* : Bool */;
1817 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AHexByteExpr> */
1818 if (var_node
== NULL
) {
1819 var
= 0; /* is null */
1821 var
= 1; /* arg is null and recv is not */
1824 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1825 var_other
= ((val
*)NULL
);
1827 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)>*/
1838 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1839 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1847 /* method parser_prod#AHexByteExpr#visit_all for (self: AHexByteExpr, Visitor) */
1848 void nit__parser_prod___AHexByteExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1849 val
* var_v
/* var v: Visitor */;
1850 val
* var
/* : THexBytenum */;
1851 val
* var1
/* : nullable AAnnotations */;
1853 var
= self
->attrs
[COLOR_nit__parser_nodes__AHexByteExpr___n_hex_bytenum
].val
; /* _n_hex_bytenum on <self:AHexByteExpr> */
1854 if (unlikely(var
== NULL
)) {
1855 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_bytenum");
1856 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6603);
1860 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1862 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexByteExpr> */
1864 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1868 /* method parser_prod#ABinByteExpr#init_abinbyteexpr for (self: ABinByteExpr, nullable TBinBytenum, nullable AAnnotations) */
1869 void nit__parser_prod___ABinByteExpr___init_abinbyteexpr(val
* self
, val
* p0
, val
* p1
) {
1870 val
* var_n_bin_bytenum
/* var n_bin_bytenum: nullable TBinBytenum */;
1871 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1872 short int var
/* : Bool */;
1873 short int var3
/* : Bool */;
1874 val
* var_other
/* var other: nullable Object */;
1875 short int var5
/* : Bool */;
1876 short int var6
/* : Bool */;
1878 { /* Inline kernel#Object#init (self) on <self:ABinByteExpr> */
1882 var_n_bin_bytenum
= p0
;
1883 var_n_annotations
= p1
;
1884 if (unlikely(var_n_bin_bytenum
== NULL
)) {
1885 PRINT_ERROR("Runtime error: %s", "Cast failed");
1886 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6613);
1889 self
->attrs
[COLOR_nit__parser_nodes__ABinByteExpr___n_bin_bytenum
].val
= var_n_bin_bytenum
; /* _n_bin_bytenum on <self:ABinByteExpr> */
1890 if (var_n_bin_bytenum
== NULL
) {
1891 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1892 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6614);
1895 { /* Inline parser_nodes#ANode#parent= (var_n_bin_bytenum,self) on <var_n_bin_bytenum:nullable TBinBytenum> */
1896 if (unlikely(var_n_bin_bytenum
== NULL
)) {
1897 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1898 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1901 var_n_bin_bytenum
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_bin_bytenum:nullable TBinBytenum> */
1905 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ABinByteExpr> */
1906 if (var_n_annotations
== NULL
) {
1907 var
= 0; /* is null */
1909 var
= 1; /* arg is null and recv is not */
1912 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
1913 var_other
= ((val
*)NULL
);
1915 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)>*/
1926 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1927 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1935 /* method parser_prod#ABinByteExpr#replace_child for (self: ABinByteExpr, ANode, nullable ANode) */
1936 void nit__parser_prod___ABinByteExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1937 val
* var_old_child
/* var old_child: ANode */;
1938 val
* var_new_child
/* var new_child: nullable ANode */;
1939 val
* var
/* : TBinBytenum */;
1940 short int var1
/* : Bool */;
1941 val
* var_other
/* var other: nullable Object */;
1942 short int var3
/* : Bool */;
1943 short int var5
/* : Bool */;
1944 short int var6
/* : Bool */;
1947 const char* var_class_name
;
1948 val
* var7
/* : nullable AAnnotations */;
1949 short int var8
/* : Bool */;
1950 short int var9
/* : Bool */;
1951 short int var11
/* : Bool */;
1952 short int var13
/* : Bool */;
1953 short int var14
/* : Bool */;
1956 const char* var_class_name17
;
1959 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinByteExpr___n_bin_bytenum
].val
; /* _n_bin_bytenum on <self:ABinByteExpr> */
1960 if (unlikely(var
== NULL
)) {
1961 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bin_bytenum");
1962 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6621);
1966 { /* Inline kernel#Object#== (var,var_old_child) on <var:TBinBytenum> */
1967 var_other
= var_old_child
;
1969 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TBinBytenum> */
1970 var5
= var
== var_other
;
1982 /* <var_new_child:nullable ANode> isa TBinBytenum */
1983 cltype
= type_nit__TBinBytenum
.color
;
1984 idtype
= type_nit__TBinBytenum
.id
;
1985 if(var_new_child
== NULL
) {
1988 if(cltype
>= var_new_child
->type
->table_size
) {
1991 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1994 if (unlikely(!var6
)) {
1995 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1996 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TBinBytenum", var_class_name
);
1997 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6622);
2001 nit__parser_prod___ABinByteExpr___n_bin_bytenum_61d(self
, var_new_child
); /* Direct call parser_prod#ABinByteExpr#n_bin_bytenum= on <self:ABinByteExpr>*/
2006 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ABinByteExpr> */
2008 var8
= 0; /* <var_old_child:ANode> cannot be null */
2010 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
2011 var_other
= var_old_child
;
2013 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
2014 var13
= var7
== var_other
;
2017 RET_LABEL12
:(void)0;
2022 RET_LABEL10
:(void)0;
2027 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2028 cltype15
= type_nullable__nit__AAnnotations
.color
;
2029 idtype16
= type_nullable__nit__AAnnotations
.id
;
2030 if(var_new_child
== NULL
) {
2033 if(cltype15
>= var_new_child
->type
->table_size
) {
2036 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
2039 if (unlikely(!var14
)) {
2040 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2041 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
2042 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6626);
2046 nit__parser_prod___ABinByteExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ABinByteExpr#n_annotations= on <self:ABinByteExpr>*/
2053 /* method parser_prod#ABinByteExpr#n_bin_bytenum= for (self: ABinByteExpr, TBinBytenum) */
2054 void nit__parser_prod___ABinByteExpr___n_bin_bytenum_61d(val
* self
, val
* p0
) {
2055 val
* var_node
/* var node: TBinBytenum */;
2057 self
->attrs
[COLOR_nit__parser_nodes__ABinByteExpr___n_bin_bytenum
].val
= var_node
; /* _n_bin_bytenum on <self:ABinByteExpr> */
2059 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TBinBytenum> */
2060 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TBinBytenum> */
2066 /* method parser_prod#ABinByteExpr#n_annotations= for (self: ABinByteExpr, nullable AAnnotations) */
2067 void nit__parser_prod___ABinByteExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
2068 val
* var_node
/* var node: nullable AAnnotations */;
2069 short int var
/* : Bool */;
2070 short int var1
/* : Bool */;
2071 val
* var_other
/* var other: nullable Object */;
2072 short int var3
/* : Bool */;
2073 short int var4
/* : Bool */;
2075 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ABinByteExpr> */
2076 if (var_node
== NULL
) {
2077 var
= 0; /* is null */
2079 var
= 1; /* arg is null and recv is not */
2082 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
2083 var_other
= ((val
*)NULL
);
2085 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)>*/
2096 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2097 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2105 /* method parser_prod#ABinByteExpr#visit_all for (self: ABinByteExpr, Visitor) */
2106 void nit__parser_prod___ABinByteExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2107 val
* var_v
/* var v: Visitor */;
2108 val
* var
/* : TBinBytenum */;
2109 val
* var1
/* : nullable AAnnotations */;
2111 var
= self
->attrs
[COLOR_nit__parser_nodes__ABinByteExpr___n_bin_bytenum
].val
; /* _n_bin_bytenum on <self:ABinByteExpr> */
2112 if (unlikely(var
== NULL
)) {
2113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_bin_bytenum");
2114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6645);
2118 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2120 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ABinByteExpr> */
2122 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2126 /* method parser_prod#AOctByteExpr#init_aoctbyteexpr for (self: AOctByteExpr, nullable TOctBytenum, nullable AAnnotations) */
2127 void nit__parser_prod___AOctByteExpr___init_aoctbyteexpr(val
* self
, val
* p0
, val
* p1
) {
2128 val
* var_n_oct_bytenum
/* var n_oct_bytenum: nullable TOctBytenum */;
2129 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2130 short int var
/* : Bool */;
2131 short int var3
/* : Bool */;
2132 val
* var_other
/* var other: nullable Object */;
2133 short int var5
/* : Bool */;
2134 short int var6
/* : Bool */;
2136 { /* Inline kernel#Object#init (self) on <self:AOctByteExpr> */
2140 var_n_oct_bytenum
= p0
;
2141 var_n_annotations
= p1
;
2142 if (unlikely(var_n_oct_bytenum
== NULL
)) {
2143 PRINT_ERROR("Runtime error: %s", "Cast failed");
2144 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6655);
2147 self
->attrs
[COLOR_nit__parser_nodes__AOctByteExpr___n_oct_bytenum
].val
= var_n_oct_bytenum
; /* _n_oct_bytenum on <self:AOctByteExpr> */
2148 if (var_n_oct_bytenum
== NULL
) {
2149 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2150 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6656);
2153 { /* Inline parser_nodes#ANode#parent= (var_n_oct_bytenum,self) on <var_n_oct_bytenum:nullable TOctBytenum> */
2154 if (unlikely(var_n_oct_bytenum
== NULL
)) {
2155 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2156 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2159 var_n_oct_bytenum
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_oct_bytenum:nullable TOctBytenum> */
2163 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOctByteExpr> */
2164 if (var_n_annotations
== NULL
) {
2165 var
= 0; /* is null */
2167 var
= 1; /* arg is null and recv is not */
2170 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
2171 var_other
= ((val
*)NULL
);
2173 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)>*/
2184 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2185 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2193 /* method parser_prod#AOctByteExpr#replace_child for (self: AOctByteExpr, ANode, nullable ANode) */
2194 void nit__parser_prod___AOctByteExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2195 val
* var_old_child
/* var old_child: ANode */;
2196 val
* var_new_child
/* var new_child: nullable ANode */;
2197 val
* var
/* : TOctBytenum */;
2198 short int var1
/* : Bool */;
2199 val
* var_other
/* var other: nullable Object */;
2200 short int var3
/* : Bool */;
2201 short int var5
/* : Bool */;
2202 short int var6
/* : Bool */;
2205 const char* var_class_name
;
2206 val
* var7
/* : nullable AAnnotations */;
2207 short int var8
/* : Bool */;
2208 short int var9
/* : Bool */;
2209 short int var11
/* : Bool */;
2210 short int var13
/* : Bool */;
2211 short int var14
/* : Bool */;
2214 const char* var_class_name17
;
2217 var
= self
->attrs
[COLOR_nit__parser_nodes__AOctByteExpr___n_oct_bytenum
].val
; /* _n_oct_bytenum on <self:AOctByteExpr> */
2218 if (unlikely(var
== NULL
)) {
2219 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_oct_bytenum");
2220 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6663);
2224 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOctBytenum> */
2225 var_other
= var_old_child
;
2227 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOctBytenum> */
2228 var5
= var
== var_other
;
2240 /* <var_new_child:nullable ANode> isa TOctBytenum */
2241 cltype
= type_nit__TOctBytenum
.color
;
2242 idtype
= type_nit__TOctBytenum
.id
;
2243 if(var_new_child
== NULL
) {
2246 if(cltype
>= var_new_child
->type
->table_size
) {
2249 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2252 if (unlikely(!var6
)) {
2253 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2254 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOctBytenum", var_class_name
);
2255 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6664);
2259 nit__parser_prod___AOctByteExpr___n_oct_bytenum_61d(self
, var_new_child
); /* Direct call parser_prod#AOctByteExpr#n_oct_bytenum= on <self:AOctByteExpr>*/
2264 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOctByteExpr> */
2266 var8
= 0; /* <var_old_child:ANode> cannot be null */
2268 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
2269 var_other
= var_old_child
;
2271 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
2272 var13
= var7
== var_other
;
2275 RET_LABEL12
:(void)0;
2280 RET_LABEL10
:(void)0;
2285 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2286 cltype15
= type_nullable__nit__AAnnotations
.color
;
2287 idtype16
= type_nullable__nit__AAnnotations
.id
;
2288 if(var_new_child
== NULL
) {
2291 if(cltype15
>= var_new_child
->type
->table_size
) {
2294 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
2297 if (unlikely(!var14
)) {
2298 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2299 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
2300 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6668);
2304 nit__parser_prod___AOctByteExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOctByteExpr#n_annotations= on <self:AOctByteExpr>*/
2311 /* method parser_prod#AOctByteExpr#n_oct_bytenum= for (self: AOctByteExpr, TOctBytenum) */
2312 void nit__parser_prod___AOctByteExpr___n_oct_bytenum_61d(val
* self
, val
* p0
) {
2313 val
* var_node
/* var node: TOctBytenum */;
2315 self
->attrs
[COLOR_nit__parser_nodes__AOctByteExpr___n_oct_bytenum
].val
= var_node
; /* _n_oct_bytenum on <self:AOctByteExpr> */
2317 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOctBytenum> */
2318 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOctBytenum> */
2324 /* method parser_prod#AOctByteExpr#n_annotations= for (self: AOctByteExpr, nullable AAnnotations) */
2325 void nit__parser_prod___AOctByteExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
2326 val
* var_node
/* var node: nullable AAnnotations */;
2327 short int var
/* : Bool */;
2328 short int var1
/* : Bool */;
2329 val
* var_other
/* var other: nullable Object */;
2330 short int var3
/* : Bool */;
2331 short int var4
/* : Bool */;
2333 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOctByteExpr> */
2334 if (var_node
== NULL
) {
2335 var
= 0; /* is null */
2337 var
= 1; /* arg is null and recv is not */
2340 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
2341 var_other
= ((val
*)NULL
);
2343 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)>*/
2354 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2355 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2363 /* method parser_prod#AOctByteExpr#visit_all for (self: AOctByteExpr, Visitor) */
2364 void nit__parser_prod___AOctByteExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2365 val
* var_v
/* var v: Visitor */;
2366 val
* var
/* : TOctBytenum */;
2367 val
* var1
/* : nullable AAnnotations */;
2369 var
= self
->attrs
[COLOR_nit__parser_nodes__AOctByteExpr___n_oct_bytenum
].val
; /* _n_oct_bytenum on <self:AOctByteExpr> */
2370 if (unlikely(var
== NULL
)) {
2371 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_oct_bytenum");
2372 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6687);
2376 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2378 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOctByteExpr> */
2380 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2384 /* method parser_prod#AFloatExpr#init_afloatexpr for (self: AFloatExpr, nullable TFloat, nullable AAnnotations) */
2385 void nit__parser_prod___AFloatExpr___init_afloatexpr(val
* self
, val
* p0
, val
* p1
) {
2386 val
* var_n_float
/* var n_float: nullable TFloat */;
2387 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2388 short int var
/* : Bool */;
2389 short int var3
/* : Bool */;
2390 val
* var_other
/* var other: nullable Object */;
2391 short int var5
/* : Bool */;
2392 short int var6
/* : Bool */;
2394 { /* Inline kernel#Object#init (self) on <self:AFloatExpr> */
2399 var_n_annotations
= p1
;
2400 if (unlikely(var_n_float
== NULL
)) {
2401 PRINT_ERROR("Runtime error: %s", "Cast failed");
2402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6697);
2405 self
->attrs
[COLOR_nit__parser_nodes__AFloatExpr___n_float
].val
= var_n_float
; /* _n_float on <self:AFloatExpr> */
2406 if (var_n_float
== NULL
) {
2407 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2408 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6698);
2411 { /* Inline parser_nodes#ANode#parent= (var_n_float,self) on <var_n_float:nullable TFloat> */
2412 if (unlikely(var_n_float
== NULL
)) {
2413 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2414 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2417 var_n_float
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_float:nullable TFloat> */
2421 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFloatExpr> */
2422 if (var_n_annotations
== NULL
) {
2423 var
= 0; /* is null */
2425 var
= 1; /* arg is null and recv is not */
2428 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
2429 var_other
= ((val
*)NULL
);
2431 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)>*/
2442 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2443 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2451 /* method parser_prod#AFloatExpr#replace_child for (self: AFloatExpr, ANode, nullable ANode) */
2452 void nit__parser_prod___AFloatExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2453 val
* var_old_child
/* var old_child: ANode */;
2454 val
* var_new_child
/* var new_child: nullable ANode */;
2455 val
* var
/* : TFloat */;
2456 short int var1
/* : Bool */;
2457 val
* var_other
/* var other: nullable Object */;
2458 short int var3
/* : Bool */;
2459 short int var5
/* : Bool */;
2460 short int var6
/* : Bool */;
2463 const char* var_class_name
;
2464 val
* var7
/* : nullable AAnnotations */;
2465 short int var8
/* : Bool */;
2466 short int var9
/* : Bool */;
2467 short int var11
/* : Bool */;
2468 short int var13
/* : Bool */;
2469 short int var14
/* : Bool */;
2472 const char* var_class_name17
;
2475 var
= self
->attrs
[COLOR_nit__parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
2476 if (unlikely(var
== NULL
)) {
2477 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
2478 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6705);
2482 { /* Inline kernel#Object#== (var,var_old_child) on <var:TFloat> */
2483 var_other
= var_old_child
;
2485 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TFloat> */
2486 var5
= var
== var_other
;
2498 /* <var_new_child:nullable ANode> isa TFloat */
2499 cltype
= type_nit__TFloat
.color
;
2500 idtype
= type_nit__TFloat
.id
;
2501 if(var_new_child
== NULL
) {
2504 if(cltype
>= var_new_child
->type
->table_size
) {
2507 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2510 if (unlikely(!var6
)) {
2511 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2512 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TFloat", var_class_name
);
2513 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6706);
2517 nit__parser_prod___AFloatExpr___n_float_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_float= on <self:AFloatExpr>*/
2522 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
2524 var8
= 0; /* <var_old_child:ANode> cannot be null */
2526 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
2527 var_other
= var_old_child
;
2529 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
2530 var13
= var7
== var_other
;
2533 RET_LABEL12
:(void)0;
2538 RET_LABEL10
:(void)0;
2543 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2544 cltype15
= type_nullable__nit__AAnnotations
.color
;
2545 idtype16
= type_nullable__nit__AAnnotations
.id
;
2546 if(var_new_child
== NULL
) {
2549 if(cltype15
>= var_new_child
->type
->table_size
) {
2552 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
2555 if (unlikely(!var14
)) {
2556 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2557 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
2558 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6710);
2562 nit__parser_prod___AFloatExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_annotations= on <self:AFloatExpr>*/
2569 /* method parser_prod#AFloatExpr#n_float= for (self: AFloatExpr, TFloat) */
2570 void nit__parser_prod___AFloatExpr___n_float_61d(val
* self
, val
* p0
) {
2571 val
* var_node
/* var node: TFloat */;
2573 self
->attrs
[COLOR_nit__parser_nodes__AFloatExpr___n_float
].val
= var_node
; /* _n_float on <self:AFloatExpr> */
2575 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TFloat> */
2576 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TFloat> */
2582 /* method parser_prod#AFloatExpr#n_annotations= for (self: AFloatExpr, nullable AAnnotations) */
2583 void nit__parser_prod___AFloatExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
2584 val
* var_node
/* var node: nullable AAnnotations */;
2585 short int var
/* : Bool */;
2586 short int var1
/* : Bool */;
2587 val
* var_other
/* var other: nullable Object */;
2588 short int var3
/* : Bool */;
2589 short int var4
/* : Bool */;
2591 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFloatExpr> */
2592 if (var_node
== NULL
) {
2593 var
= 0; /* is null */
2595 var
= 1; /* arg is null and recv is not */
2598 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
2599 var_other
= ((val
*)NULL
);
2601 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)>*/
2612 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2613 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2621 /* method parser_prod#AFloatExpr#visit_all for (self: AFloatExpr, Visitor) */
2622 void nit__parser_prod___AFloatExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2623 val
* var_v
/* var v: Visitor */;
2624 val
* var
/* : TFloat */;
2625 val
* var1
/* : nullable AAnnotations */;
2627 var
= self
->attrs
[COLOR_nit__parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
2628 if (unlikely(var
== NULL
)) {
2629 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
2630 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6729);
2634 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2636 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
2638 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2642 /* method parser_prod#ACharExpr#init_acharexpr for (self: ACharExpr, nullable TChar, nullable AAnnotations) */
2643 void nit__parser_prod___ACharExpr___init_acharexpr(val
* self
, val
* p0
, val
* p1
) {
2644 val
* var_n_char
/* var n_char: nullable TChar */;
2645 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2646 short int var
/* : Bool */;
2647 short int var3
/* : Bool */;
2648 val
* var_other
/* var other: nullable Object */;
2649 short int var5
/* : Bool */;
2650 short int var6
/* : Bool */;
2652 { /* Inline kernel#Object#init (self) on <self:ACharExpr> */
2657 var_n_annotations
= p1
;
2658 if (unlikely(var_n_char
== NULL
)) {
2659 PRINT_ERROR("Runtime error: %s", "Cast failed");
2660 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6739);
2663 self
->attrs
[COLOR_nit__parser_nodes__ACharExpr___n_char
].val
= var_n_char
; /* _n_char on <self:ACharExpr> */
2664 if (var_n_char
== NULL
) {
2665 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2666 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6740);
2669 { /* Inline parser_nodes#ANode#parent= (var_n_char,self) on <var_n_char:nullable TChar> */
2670 if (unlikely(var_n_char
== NULL
)) {
2671 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2672 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2675 var_n_char
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_char:nullable TChar> */
2679 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACharExpr> */
2680 if (var_n_annotations
== NULL
) {
2681 var
= 0; /* is null */
2683 var
= 1; /* arg is null and recv is not */
2686 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
2687 var_other
= ((val
*)NULL
);
2689 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)>*/
2700 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2701 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2709 /* method parser_prod#ACharExpr#replace_child for (self: ACharExpr, ANode, nullable ANode) */
2710 void nit__parser_prod___ACharExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2711 val
* var_old_child
/* var old_child: ANode */;
2712 val
* var_new_child
/* var new_child: nullable ANode */;
2713 val
* var
/* : TChar */;
2714 short int var1
/* : Bool */;
2715 val
* var_other
/* var other: nullable Object */;
2716 short int var3
/* : Bool */;
2717 short int var5
/* : Bool */;
2718 short int var6
/* : Bool */;
2721 const char* var_class_name
;
2722 val
* var7
/* : nullable AAnnotations */;
2723 short int var8
/* : Bool */;
2724 short int var9
/* : Bool */;
2725 short int var11
/* : Bool */;
2726 short int var13
/* : Bool */;
2727 short int var14
/* : Bool */;
2730 const char* var_class_name17
;
2733 var
= self
->attrs
[COLOR_nit__parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
2734 if (unlikely(var
== NULL
)) {
2735 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
2736 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6747);
2740 { /* Inline kernel#Object#== (var,var_old_child) on <var:TChar> */
2741 var_other
= var_old_child
;
2743 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TChar> */
2744 var5
= var
== var_other
;
2756 /* <var_new_child:nullable ANode> isa TChar */
2757 cltype
= type_nit__TChar
.color
;
2758 idtype
= type_nit__TChar
.id
;
2759 if(var_new_child
== NULL
) {
2762 if(cltype
>= var_new_child
->type
->table_size
) {
2765 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2768 if (unlikely(!var6
)) {
2769 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2770 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TChar", var_class_name
);
2771 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6748);
2775 nit__parser_prod___ACharExpr___n_char_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_char= on <self:ACharExpr>*/
2780 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
2782 var8
= 0; /* <var_old_child:ANode> cannot be null */
2784 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
2785 var_other
= var_old_child
;
2787 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
2788 var13
= var7
== var_other
;
2791 RET_LABEL12
:(void)0;
2796 RET_LABEL10
:(void)0;
2801 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2802 cltype15
= type_nullable__nit__AAnnotations
.color
;
2803 idtype16
= type_nullable__nit__AAnnotations
.id
;
2804 if(var_new_child
== NULL
) {
2807 if(cltype15
>= var_new_child
->type
->table_size
) {
2810 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
2813 if (unlikely(!var14
)) {
2814 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2815 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
2816 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6752);
2820 nit__parser_prod___ACharExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_annotations= on <self:ACharExpr>*/
2827 /* method parser_prod#ACharExpr#n_char= for (self: ACharExpr, TChar) */
2828 void nit__parser_prod___ACharExpr___n_char_61d(val
* self
, val
* p0
) {
2829 val
* var_node
/* var node: TChar */;
2831 self
->attrs
[COLOR_nit__parser_nodes__ACharExpr___n_char
].val
= var_node
; /* _n_char on <self:ACharExpr> */
2833 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TChar> */
2834 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TChar> */
2840 /* method parser_prod#ACharExpr#n_annotations= for (self: ACharExpr, nullable AAnnotations) */
2841 void nit__parser_prod___ACharExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
2842 val
* var_node
/* var node: nullable AAnnotations */;
2843 short int var
/* : Bool */;
2844 short int var1
/* : Bool */;
2845 val
* var_other
/* var other: nullable Object */;
2846 short int var3
/* : Bool */;
2847 short int var4
/* : Bool */;
2849 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACharExpr> */
2850 if (var_node
== NULL
) {
2851 var
= 0; /* is null */
2853 var
= 1; /* arg is null and recv is not */
2856 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
2857 var_other
= ((val
*)NULL
);
2859 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)>*/
2870 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2871 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2879 /* method parser_prod#ACharExpr#visit_all for (self: ACharExpr, Visitor) */
2880 void nit__parser_prod___ACharExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2881 val
* var_v
/* var v: Visitor */;
2882 val
* var
/* : TChar */;
2883 val
* var1
/* : nullable AAnnotations */;
2885 var
= self
->attrs
[COLOR_nit__parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
2886 if (unlikely(var
== NULL
)) {
2887 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
2888 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6771);
2892 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2894 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
2896 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2900 /* method parser_prod#AStringExpr#init_astringexpr for (self: AStringExpr, nullable TString, nullable AAnnotations) */
2901 void nit__parser_prod___AStringExpr___init_astringexpr(val
* self
, val
* p0
, val
* p1
) {
2902 val
* var_n_string
/* var n_string: nullable TString */;
2903 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2904 short int var
/* : Bool */;
2905 short int var3
/* : Bool */;
2906 val
* var_other
/* var other: nullable Object */;
2907 short int var5
/* : Bool */;
2908 short int var6
/* : Bool */;
2910 { /* Inline kernel#Object#init (self) on <self:AStringExpr> */
2915 var_n_annotations
= p1
;
2916 if (unlikely(var_n_string
== NULL
)) {
2917 PRINT_ERROR("Runtime error: %s", "Cast failed");
2918 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6781);
2921 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStringExpr> */
2922 if (var_n_string
== NULL
) {
2923 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2924 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6782);
2927 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TString> */
2928 if (unlikely(var_n_string
== NULL
)) {
2929 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2930 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2933 var_n_string
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TString> */
2937 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStringExpr> */
2938 if (var_n_annotations
== NULL
) {
2939 var
= 0; /* is null */
2941 var
= 1; /* arg is null and recv is not */
2944 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
2945 var_other
= ((val
*)NULL
);
2947 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)>*/
2958 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2959 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2967 /* method parser_prod#AStringExpr#replace_child for (self: AStringExpr, ANode, nullable ANode) */
2968 void nit__parser_prod___AStringExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2969 val
* var_old_child
/* var old_child: ANode */;
2970 val
* var_new_child
/* var new_child: nullable ANode */;
2971 val
* var
/* : Token */;
2972 short int var1
/* : Bool */;
2973 val
* var_other
/* var other: nullable Object */;
2974 short int var3
/* : Bool */;
2975 short int var5
/* : Bool */;
2976 short int var6
/* : Bool */;
2979 const char* var_class_name
;
2980 val
* var7
/* : nullable AAnnotations */;
2981 short int var8
/* : Bool */;
2982 short int var9
/* : Bool */;
2983 short int var11
/* : Bool */;
2984 short int var13
/* : Bool */;
2985 short int var14
/* : Bool */;
2988 const char* var_class_name17
;
2991 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
2992 if (unlikely(var
== NULL
)) {
2993 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
2994 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6789);
2998 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2999 var_other
= var_old_child
;
3001 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3002 var5
= var
== var_other
;
3014 /* <var_new_child:nullable ANode> isa TString */
3015 cltype
= type_nit__TString
.color
;
3016 idtype
= type_nit__TString
.id
;
3017 if(var_new_child
== NULL
) {
3020 if(cltype
>= var_new_child
->type
->table_size
) {
3023 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3026 if (unlikely(!var6
)) {
3027 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3028 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name
);
3029 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6790);
3033 nit__parser_prod___AStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_string= on <self:AStringExpr>*/
3038 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
3040 var8
= 0; /* <var_old_child:ANode> cannot be null */
3042 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AAnnotations> */
3043 var_other
= var_old_child
;
3045 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AAnnotations(AAnnotations)> */
3046 var13
= var7
== var_other
;
3049 RET_LABEL12
:(void)0;
3054 RET_LABEL10
:(void)0;
3059 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3060 cltype15
= type_nullable__nit__AAnnotations
.color
;
3061 idtype16
= type_nullable__nit__AAnnotations
.id
;
3062 if(var_new_child
== NULL
) {
3065 if(cltype15
>= var_new_child
->type
->table_size
) {
3068 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
3071 if (unlikely(!var14
)) {
3072 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3073 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name17
);
3074 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6794);
3078 nit__parser_prod___AStringExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_annotations= on <self:AStringExpr>*/
3085 /* method parser_prod#AStringExpr#n_string= for (self: AStringExpr, Token) */
3086 void nit__parser_prod___AStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(val
* self
, val
* p0
) {
3087 val
* var_node
/* var node: Token */;
3089 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStringExpr> */
3091 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3092 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3098 /* method parser_prod#AStringExpr#n_annotations= for (self: AStringExpr, nullable AAnnotations) */
3099 void nit__parser_prod___AStringExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
3100 val
* var_node
/* var node: nullable AAnnotations */;
3101 short int var
/* : Bool */;
3102 short int var1
/* : Bool */;
3103 val
* var_other
/* var other: nullable Object */;
3104 short int var3
/* : Bool */;
3105 short int var4
/* : Bool */;
3107 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStringExpr> */
3108 if (var_node
== NULL
) {
3109 var
= 0; /* is null */
3111 var
= 1; /* arg is null and recv is not */
3114 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
3115 var_other
= ((val
*)NULL
);
3117 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)>*/
3128 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3129 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3137 /* method parser_prod#AStringExpr#visit_all for (self: AStringExpr, Visitor) */
3138 void nit__parser_prod___AStringExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3139 val
* var_v
/* var v: Visitor */;
3140 val
* var
/* : Token */;
3141 val
* var1
/* : nullable AAnnotations */;
3143 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
3144 if (unlikely(var
== NULL
)) {
3145 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3146 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6813);
3150 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3152 var1
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
3154 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3158 /* method parser_prod#AStartStringExpr#init_astartstringexpr for (self: AStartStringExpr, nullable TStartString) */
3159 void nit__parser_prod___AStartStringExpr___init_astartstringexpr(val
* self
, val
* p0
) {
3160 val
* var_n_string
/* var n_string: nullable TStartString */;
3162 { /* Inline kernel#Object#init (self) on <self:AStartStringExpr> */
3167 if (unlikely(var_n_string
== NULL
)) {
3168 PRINT_ERROR("Runtime error: %s", "Cast failed");
3169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6822);
3172 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStartStringExpr> */
3173 if (var_n_string
== NULL
) {
3174 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6823);
3178 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TStartString> */
3179 if (unlikely(var_n_string
== NULL
)) {
3180 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3181 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3184 var_n_string
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TStartString> */
3190 /* method parser_prod#AStartStringExpr#replace_child for (self: AStartStringExpr, ANode, nullable ANode) */
3191 void nit__parser_prod___AStartStringExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3192 val
* var_old_child
/* var old_child: ANode */;
3193 val
* var_new_child
/* var new_child: nullable ANode */;
3194 val
* var
/* : Token */;
3195 short int var1
/* : Bool */;
3196 val
* var_other
/* var other: nullable Object */;
3197 short int var3
/* : Bool */;
3198 short int var5
/* : Bool */;
3199 short int var6
/* : Bool */;
3202 const char* var_class_name
;
3205 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
3206 if (unlikely(var
== NULL
)) {
3207 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3208 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6828);
3212 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3213 var_other
= var_old_child
;
3215 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3216 var5
= var
== var_other
;
3228 /* <var_new_child:nullable ANode> isa TStartString */
3229 cltype
= type_nit__TStartString
.color
;
3230 idtype
= type_nit__TStartString
.id
;
3231 if(var_new_child
== NULL
) {
3234 if(cltype
>= var_new_child
->type
->table_size
) {
3237 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3240 if (unlikely(!var6
)) {
3241 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3242 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStartString", var_class_name
);
3243 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6829);
3247 nit__parser_prod___AStartStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStartStringExpr#n_string= on <self:AStartStringExpr>*/
3254 /* method parser_prod#AStartStringExpr#n_string= for (self: AStartStringExpr, Token) */
3255 void nit__parser_prod___AStartStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(val
* self
, val
* p0
) {
3256 val
* var_node
/* var node: Token */;
3258 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStartStringExpr> */
3260 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3261 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3267 /* method parser_prod#AStartStringExpr#visit_all for (self: AStartStringExpr, Visitor) */
3268 void nit__parser_prod___AStartStringExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3269 val
* var_v
/* var v: Visitor */;
3270 val
* var
/* : Token */;
3272 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
3273 if (unlikely(var
== NULL
)) {
3274 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3275 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6843);
3279 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3283 /* method parser_prod#AMidStringExpr#init_amidstringexpr for (self: AMidStringExpr, nullable TMidString) */
3284 void nit__parser_prod___AMidStringExpr___init_amidstringexpr(val
* self
, val
* p0
) {
3285 val
* var_n_string
/* var n_string: nullable TMidString */;
3287 { /* Inline kernel#Object#init (self) on <self:AMidStringExpr> */
3292 if (unlikely(var_n_string
== NULL
)) {
3293 PRINT_ERROR("Runtime error: %s", "Cast failed");
3294 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6851);
3297 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AMidStringExpr> */
3298 if (var_n_string
== NULL
) {
3299 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3300 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6852);
3303 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TMidString> */
3304 if (unlikely(var_n_string
== NULL
)) {
3305 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3309 var_n_string
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TMidString> */
3315 /* method parser_prod#AMidStringExpr#replace_child for (self: AMidStringExpr, ANode, nullable ANode) */
3316 void nit__parser_prod___AMidStringExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3317 val
* var_old_child
/* var old_child: ANode */;
3318 val
* var_new_child
/* var new_child: nullable ANode */;
3319 val
* var
/* : Token */;
3320 short int var1
/* : Bool */;
3321 val
* var_other
/* var other: nullable Object */;
3322 short int var3
/* : Bool */;
3323 short int var5
/* : Bool */;
3324 short int var6
/* : Bool */;
3327 const char* var_class_name
;
3330 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
3331 if (unlikely(var
== NULL
)) {
3332 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3333 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6857);
3337 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3338 var_other
= var_old_child
;
3340 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3341 var5
= var
== var_other
;
3353 /* <var_new_child:nullable ANode> isa TMidString */
3354 cltype
= type_nit__TMidString
.color
;
3355 idtype
= type_nit__TMidString
.id
;
3356 if(var_new_child
== NULL
) {
3359 if(cltype
>= var_new_child
->type
->table_size
) {
3362 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3365 if (unlikely(!var6
)) {
3366 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3367 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMidString", var_class_name
);
3368 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6858);
3372 nit__parser_prod___AMidStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AMidStringExpr#n_string= on <self:AMidStringExpr>*/
3379 /* method parser_prod#AMidStringExpr#n_string= for (self: AMidStringExpr, Token) */
3380 void nit__parser_prod___AMidStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(val
* self
, val
* p0
) {
3381 val
* var_node
/* var node: Token */;
3383 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AMidStringExpr> */
3385 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3386 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3392 /* method parser_prod#AMidStringExpr#visit_all for (self: AMidStringExpr, Visitor) */
3393 void nit__parser_prod___AMidStringExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3394 val
* var_v
/* var v: Visitor */;
3395 val
* var
/* : Token */;
3397 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
3398 if (unlikely(var
== NULL
)) {
3399 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3400 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6872);
3404 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3408 /* method parser_prod#AEndStringExpr#init_aendstringexpr for (self: AEndStringExpr, nullable TEndString) */
3409 void nit__parser_prod___AEndStringExpr___init_aendstringexpr(val
* self
, val
* p0
) {
3410 val
* var_n_string
/* var n_string: nullable TEndString */;
3412 { /* Inline kernel#Object#init (self) on <self:AEndStringExpr> */
3417 if (unlikely(var_n_string
== NULL
)) {
3418 PRINT_ERROR("Runtime error: %s", "Cast failed");
3419 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6880);
3422 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AEndStringExpr> */
3423 if (var_n_string
== NULL
) {
3424 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3425 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6881);
3428 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TEndString> */
3429 if (unlikely(var_n_string
== NULL
)) {
3430 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3434 var_n_string
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TEndString> */
3440 /* method parser_prod#AEndStringExpr#replace_child for (self: AEndStringExpr, ANode, nullable ANode) */
3441 void nit__parser_prod___AEndStringExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3442 val
* var_old_child
/* var old_child: ANode */;
3443 val
* var_new_child
/* var new_child: nullable ANode */;
3444 val
* var
/* : Token */;
3445 short int var1
/* : Bool */;
3446 val
* var_other
/* var other: nullable Object */;
3447 short int var3
/* : Bool */;
3448 short int var5
/* : Bool */;
3449 short int var6
/* : Bool */;
3452 const char* var_class_name
;
3455 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
3456 if (unlikely(var
== NULL
)) {
3457 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3458 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6886);
3462 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3463 var_other
= var_old_child
;
3465 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3466 var5
= var
== var_other
;
3478 /* <var_new_child:nullable ANode> isa TEndString */
3479 cltype
= type_nit__TEndString
.color
;
3480 idtype
= type_nit__TEndString
.id
;
3481 if(var_new_child
== NULL
) {
3484 if(cltype
>= var_new_child
->type
->table_size
) {
3487 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3490 if (unlikely(!var6
)) {
3491 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3492 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEndString", var_class_name
);
3493 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6887);
3497 nit__parser_prod___AEndStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AEndStringExpr#n_string= on <self:AEndStringExpr>*/
3504 /* method parser_prod#AEndStringExpr#n_string= for (self: AEndStringExpr, Token) */
3505 void nit__parser_prod___AEndStringExpr___nit__parser_nodes__AStringFormExpr__n_string_61d(val
* self
, val
* p0
) {
3506 val
* var_node
/* var node: Token */;
3508 self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AEndStringExpr> */
3510 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3511 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3517 /* method parser_prod#AEndStringExpr#visit_all for (self: AEndStringExpr, Visitor) */
3518 void nit__parser_prod___AEndStringExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3519 val
* var_v
/* var v: Visitor */;
3520 val
* var
/* : Token */;
3522 var
= self
->attrs
[COLOR_nit__parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
3523 if (unlikely(var
== NULL
)) {
3524 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3525 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6901);
3529 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3533 /* method parser_prod#ASuperstringExpr#init_asuperstringexpr for (self: ASuperstringExpr, Collection[Object], nullable AAnnotations) */
3534 void nit__parser_prod___ASuperstringExpr___init_asuperstringexpr(val
* self
, val
* p0
, val
* p1
) {
3535 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
3536 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3537 val
* var
/* : ANodes[AExpr] */;
3538 val
* var3
/* : ANodes[AExpr] */;
3539 short int var4
/* : Bool */;
3540 short int var5
/* : Bool */;
3541 val
* var_other
/* var other: nullable Object */;
3542 short int var7
/* : Bool */;
3543 short int var8
/* : Bool */;
3545 { /* Inline kernel#Object#init (self) on <self:ASuperstringExpr> */
3550 var_n_annotations
= p1
;
3552 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
3553 var3
= self
->attrs
[COLOR_nit__parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
3554 if (unlikely(var3
== NULL
)) {
3555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
3556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2626);
3564 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
3566 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperstringExpr> */
3567 if (var_n_annotations
== NULL
) {
3568 var4
= 0; /* is null */
3570 var4
= 1; /* arg is null and recv is not */
3573 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
3574 var_other
= ((val
*)NULL
);
3576 var7
= ((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)>*/
3587 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3588 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3596 /* method parser_prod#ASuperstringExpr#replace_child for (self: ASuperstringExpr, ANode, nullable ANode) */
3597 void nit__parser_prod___ASuperstringExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3598 val
* var_old_child
/* var old_child: ANode */;
3599 val
* var_new_child
/* var new_child: nullable ANode */;
3600 val
* var
/* : ANodes[AExpr] */;
3601 val
* var2
/* : ANodes[AExpr] */;
3602 short int var3
/* : Bool */;
3603 val
* var4
/* : nullable AAnnotations */;
3604 short int var5
/* : Bool */;
3605 short int var6
/* : Bool */;
3606 val
* var_other
/* var other: nullable Object */;
3607 short int var8
/* : Bool */;
3608 short int var10
/* : Bool */;
3609 short int var11
/* : Bool */;
3612 const char* var_class_name
;
3616 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
3617 var2
= self
->attrs
[COLOR_nit__parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
3618 if (unlikely(var2
== NULL
)) {
3619 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
3620 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2626);
3628 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3634 var4
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
3636 var5
= 0; /* <var_old_child:ANode> cannot be null */
3638 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable AAnnotations> */
3639 var_other
= var_old_child
;
3641 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable AAnnotations(AAnnotations)> */
3642 var10
= var4
== var_other
;
3655 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3656 cltype
= type_nullable__nit__AAnnotations
.color
;
3657 idtype
= type_nullable__nit__AAnnotations
.id
;
3658 if(var_new_child
== NULL
) {
3661 if(cltype
>= var_new_child
->type
->table_size
) {
3664 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3667 if (unlikely(!var11
)) {
3668 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name
);
3670 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6919);
3674 nit__parser_prod___ASuperstringExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperstringExpr#n_annotations= on <self:ASuperstringExpr>*/
3681 /* method parser_prod#ASuperstringExpr#n_annotations= for (self: ASuperstringExpr, nullable AAnnotations) */
3682 void nit__parser_prod___ASuperstringExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
3683 val
* var_node
/* var node: nullable AAnnotations */;
3684 short int var
/* : Bool */;
3685 short int var1
/* : Bool */;
3686 val
* var_other
/* var other: nullable Object */;
3687 short int var3
/* : Bool */;
3688 short int var4
/* : Bool */;
3690 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperstringExpr> */
3691 if (var_node
== NULL
) {
3692 var
= 0; /* is null */
3694 var
= 1; /* arg is null and recv is not */
3697 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
3698 var_other
= ((val
*)NULL
);
3700 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)>*/
3711 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3712 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3720 /* method parser_prod#ASuperstringExpr#visit_all for (self: ASuperstringExpr, Visitor) */
3721 void nit__parser_prod___ASuperstringExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3722 val
* var_v
/* var v: Visitor */;
3723 val
* var
/* : ANodes[AExpr] */;
3724 val
* var2
/* : ANodes[AExpr] */;
3725 val
* var3
/* : nullable AAnnotations */;
3728 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
3729 var2
= self
->attrs
[COLOR_nit__parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
3730 if (unlikely(var2
== NULL
)) {
3731 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
3732 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2626);
3740 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
3742 var3
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
3744 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3748 /* method parser_prod#AParExpr#init_aparexpr for (self: AParExpr, nullable TOpar, nullable AExpr, nullable TCpar, nullable AAnnotations) */
3749 void nit__parser_prod___AParExpr___init_aparexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
3750 val
* var_n_opar
/* var n_opar: nullable TOpar */;
3751 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3752 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
3753 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3754 short int var
/* : Bool */;
3755 short int var5
/* : Bool */;
3756 val
* var_other
/* var other: nullable Object */;
3757 short int var7
/* : Bool */;
3758 short int var8
/* : Bool */;
3760 { /* Inline kernel#Object#init (self) on <self:AParExpr> */
3767 var_n_annotations
= p3
;
3768 if (unlikely(var_n_opar
== NULL
)) {
3769 PRINT_ERROR("Runtime error: %s", "Cast failed");
3770 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6945);
3773 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExpr> */
3774 if (var_n_opar
== NULL
) {
3775 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3776 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6946);
3779 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
3780 if (unlikely(var_n_opar
== NULL
)) {
3781 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3782 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3785 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
3789 if (unlikely(var_n_expr
== NULL
)) {
3790 PRINT_ERROR("Runtime error: %s", "Cast failed");
3791 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6947);
3794 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AParExpr> */
3795 if (var_n_expr
== NULL
) {
3796 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3797 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6948);
3800 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3801 if (unlikely(var_n_expr
== NULL
)) {
3802 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3803 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3806 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3810 if (unlikely(var_n_cpar
== NULL
)) {
3811 PRINT_ERROR("Runtime error: %s", "Cast failed");
3812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6949);
3815 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExpr> */
3816 if (var_n_cpar
== NULL
) {
3817 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3818 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6950);
3821 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
3822 if (unlikely(var_n_cpar
== NULL
)) {
3823 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3824 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3827 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
3831 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParExpr> */
3832 if (var_n_annotations
== NULL
) {
3833 var
= 0; /* is null */
3835 var
= 1; /* arg is null and recv is not */
3838 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
3839 var_other
= ((val
*)NULL
);
3841 var7
= ((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)>*/
3852 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3853 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3861 /* method parser_prod#AParExpr#replace_child for (self: AParExpr, ANode, nullable ANode) */
3862 void nit__parser_prod___AParExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3863 val
* var_old_child
/* var old_child: ANode */;
3864 val
* var_new_child
/* var new_child: nullable ANode */;
3865 val
* var
/* : TOpar */;
3866 short int var1
/* : Bool */;
3867 val
* var_other
/* var other: nullable Object */;
3868 short int var3
/* : Bool */;
3869 short int var5
/* : Bool */;
3870 short int var6
/* : Bool */;
3873 const char* var_class_name
;
3874 val
* var7
/* : AExpr */;
3875 short int var8
/* : Bool */;
3876 short int var10
/* : Bool */;
3877 short int var12
/* : Bool */;
3878 short int var13
/* : Bool */;
3881 const char* var_class_name16
;
3882 val
* var17
/* : TCpar */;
3883 short int var18
/* : Bool */;
3884 short int var20
/* : Bool */;
3885 short int var22
/* : Bool */;
3886 short int var23
/* : Bool */;
3889 const char* var_class_name26
;
3890 val
* var27
/* : nullable AAnnotations */;
3891 short int var28
/* : Bool */;
3892 short int var29
/* : Bool */;
3893 short int var31
/* : Bool */;
3894 short int var33
/* : Bool */;
3895 short int var34
/* : Bool */;
3898 const char* var_class_name37
;
3901 var
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
3902 if (unlikely(var
== NULL
)) {
3903 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
3904 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6957);
3908 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
3909 var_other
= var_old_child
;
3911 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
3912 var5
= var
== var_other
;
3924 /* <var_new_child:nullable ANode> isa TOpar */
3925 cltype
= type_nit__TOpar
.color
;
3926 idtype
= type_nit__TOpar
.id
;
3927 if(var_new_child
== NULL
) {
3930 if(cltype
>= var_new_child
->type
->table_size
) {
3933 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3936 if (unlikely(!var6
)) {
3937 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3938 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
3939 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6958);
3943 nit__parser_prod___AParExpr___n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_opar= on <self:AParExpr>*/
3948 var7
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
3949 if (unlikely(var7
== NULL
)) {
3950 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3951 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6961);
3955 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
3956 var_other
= var_old_child
;
3958 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
3959 var12
= var7
== var_other
;
3962 RET_LABEL11
:(void)0;
3971 /* <var_new_child:nullable ANode> isa AExpr */
3972 cltype14
= type_nit__AExpr
.color
;
3973 idtype15
= type_nit__AExpr
.id
;
3974 if(var_new_child
== NULL
) {
3977 if(cltype14
>= var_new_child
->type
->table_size
) {
3980 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3983 if (unlikely(!var13
)) {
3984 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3985 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
3986 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6962);
3990 nit__parser_prod___AParExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_expr= on <self:AParExpr>*/
3995 var17
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
3996 if (unlikely(var17
== NULL
)) {
3997 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
3998 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6965);
4002 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TCpar> */
4003 var_other
= var_old_child
;
4005 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TCpar> */
4006 var22
= var17
== var_other
;
4009 RET_LABEL21
:(void)0;
4014 RET_LABEL19
:(void)0;
4018 /* <var_new_child:nullable ANode> isa TCpar */
4019 cltype24
= type_nit__TCpar
.color
;
4020 idtype25
= type_nit__TCpar
.id
;
4021 if(var_new_child
== NULL
) {
4024 if(cltype24
>= var_new_child
->type
->table_size
) {
4027 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4030 if (unlikely(!var23
)) {
4031 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4032 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name26
);
4033 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6966);
4037 nit__parser_prod___AParExpr___n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_cpar= on <self:AParExpr>*/
4042 var27
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
4043 if (var27
== NULL
) {
4044 var28
= 0; /* <var_old_child:ANode> cannot be null */
4046 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AAnnotations> */
4047 var_other
= var_old_child
;
4049 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AAnnotations(AAnnotations)> */
4050 var33
= var27
== var_other
;
4053 RET_LABEL32
:(void)0;
4058 RET_LABEL30
:(void)0;
4063 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4064 cltype35
= type_nullable__nit__AAnnotations
.color
;
4065 idtype36
= type_nullable__nit__AAnnotations
.id
;
4066 if(var_new_child
== NULL
) {
4069 if(cltype35
>= var_new_child
->type
->table_size
) {
4072 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
4075 if (unlikely(!var34
)) {
4076 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4077 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name37
);
4078 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6970);
4082 nit__parser_prod___AParExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_annotations= on <self:AParExpr>*/
4089 /* method parser_prod#AParExpr#n_opar= for (self: AParExpr, TOpar) */
4090 void nit__parser_prod___AParExpr___n_opar_61d(val
* self
, val
* p0
) {
4091 val
* var_node
/* var node: TOpar */;
4093 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AParExpr> */
4095 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
4096 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
4102 /* method parser_prod#AParExpr#n_expr= for (self: AParExpr, AExpr) */
4103 void nit__parser_prod___AParExpr___n_expr_61d(val
* self
, val
* p0
) {
4104 val
* var_node
/* var node: AExpr */;
4106 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AParExpr> */
4108 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4109 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4115 /* method parser_prod#AParExpr#n_cpar= for (self: AParExpr, TCpar) */
4116 void nit__parser_prod___AParExpr___n_cpar_61d(val
* self
, val
* p0
) {
4117 val
* var_node
/* var node: TCpar */;
4119 self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExpr> */
4121 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
4122 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
4128 /* method parser_prod#AParExpr#n_annotations= for (self: AParExpr, nullable AAnnotations) */
4129 void nit__parser_prod___AParExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
4130 val
* var_node
/* var node: nullable AAnnotations */;
4131 short int var
/* : Bool */;
4132 short int var1
/* : Bool */;
4133 val
* var_other
/* var other: nullable Object */;
4134 short int var3
/* : Bool */;
4135 short int var4
/* : Bool */;
4137 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParExpr> */
4138 if (var_node
== NULL
) {
4139 var
= 0; /* is null */
4141 var
= 1; /* arg is null and recv is not */
4144 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
4145 var_other
= ((val
*)NULL
);
4147 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)>*/
4158 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4159 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4167 /* method parser_prod#AParExpr#visit_all for (self: AParExpr, Visitor) */
4168 void nit__parser_prod___AParExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4169 val
* var_v
/* var v: Visitor */;
4170 val
* var
/* : TOpar */;
4171 val
* var1
/* : AExpr */;
4172 val
* var2
/* : TCpar */;
4173 val
* var3
/* : nullable AAnnotations */;
4175 var
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
4176 if (unlikely(var
== NULL
)) {
4177 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
4178 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 6999);
4182 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4184 var1
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
4185 if (unlikely(var1
== NULL
)) {
4186 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4187 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7000);
4191 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4193 var2
= self
->attrs
[COLOR_nit__parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
4194 if (unlikely(var2
== NULL
)) {
4195 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
4196 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7001);
4200 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4202 var3
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
4204 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4208 /* method parser_prod#AAsCastExpr#init_aascastexpr for (self: AAsCastExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable AType, nullable TCpar) */
4209 void nit__parser_prod___AAsCastExpr___init_aascastexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4210 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4211 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
4212 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4213 val
* var_n_type
/* var n_type: nullable AType */;
4214 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4215 short int var
/* : Bool */;
4216 short int var4
/* : Bool */;
4217 val
* var_other
/* var other: nullable Object */;
4218 short int var6
/* : Bool */;
4219 short int var7
/* : Bool */;
4220 short int var10
/* : Bool */;
4221 short int var11
/* : Bool */;
4222 short int var13
/* : Bool */;
4223 short int var14
/* : Bool */;
4225 { /* Inline kernel#Object#init (self) on <self:AAsCastExpr> */
4234 if (unlikely(var_n_expr
== NULL
)) {
4235 PRINT_ERROR("Runtime error: %s", "Cast failed");
4236 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7014);
4239 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsCastExpr> */
4240 if (var_n_expr
== NULL
) {
4241 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4242 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7015);
4245 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4246 if (unlikely(var_n_expr
== NULL
)) {
4247 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4248 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4251 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4255 if (unlikely(var_n_kwas
== NULL
)) {
4256 PRINT_ERROR("Runtime error: %s", "Cast failed");
4257 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7016);
4260 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsCastExpr> */
4261 if (var_n_kwas
== NULL
) {
4262 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4263 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7017);
4266 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
4267 if (unlikely(var_n_kwas
== NULL
)) {
4268 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4269 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4272 var_n_kwas
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
4276 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsCastExpr> */
4277 if (var_n_opar
== NULL
) {
4278 var
= 0; /* is null */
4280 var
= 1; /* arg is null and recv is not */
4283 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
4284 var_other
= ((val
*)NULL
);
4286 var6
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
4297 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
4298 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
4304 if (unlikely(var_n_type
== NULL
)) {
4305 PRINT_ERROR("Runtime error: %s", "Cast failed");
4306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7020);
4309 self
->attrs
[COLOR_nit__parser_nodes__AAsCastExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AAsCastExpr> */
4310 if (var_n_type
== NULL
) {
4311 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4312 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7021);
4315 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
4316 if (unlikely(var_n_type
== NULL
)) {
4317 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4318 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4321 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
4325 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsCastExpr> */
4326 if (var_n_cpar
== NULL
) {
4327 var10
= 0; /* is null */
4329 var10
= 1; /* arg is null and recv is not */
4332 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
4333 var_other
= ((val
*)NULL
);
4335 var13
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
4340 RET_LABEL12
:(void)0;
4346 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
4347 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
4348 RET_LABEL15
:(void)0;
4355 /* method parser_prod#AAsCastExpr#replace_child for (self: AAsCastExpr, ANode, nullable ANode) */
4356 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4357 val
* var_old_child
/* var old_child: ANode */;
4358 val
* var_new_child
/* var new_child: nullable ANode */;
4359 val
* var
/* : AExpr */;
4360 short int var1
/* : Bool */;
4361 val
* var_other
/* var other: nullable Object */;
4362 short int var3
/* : Bool */;
4363 short int var5
/* : Bool */;
4364 short int var6
/* : Bool */;
4367 const char* var_class_name
;
4368 val
* var7
/* : TKwas */;
4369 short int var8
/* : Bool */;
4370 short int var10
/* : Bool */;
4371 short int var12
/* : Bool */;
4372 short int var13
/* : Bool */;
4375 const char* var_class_name16
;
4376 val
* var17
/* : nullable TOpar */;
4377 short int var18
/* : Bool */;
4378 short int var19
/* : Bool */;
4379 short int var21
/* : Bool */;
4380 short int var23
/* : Bool */;
4381 short int var24
/* : Bool */;
4384 const char* var_class_name27
;
4385 val
* var28
/* : AType */;
4386 short int var29
/* : Bool */;
4387 short int var31
/* : Bool */;
4388 short int var33
/* : Bool */;
4389 short int var34
/* : Bool */;
4392 const char* var_class_name37
;
4393 val
* var38
/* : nullable TCpar */;
4394 short int var39
/* : Bool */;
4395 short int var40
/* : Bool */;
4396 short int var42
/* : Bool */;
4397 short int var44
/* : Bool */;
4398 short int var45
/* : Bool */;
4401 const char* var_class_name48
;
4404 var
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
4405 if (unlikely(var
== NULL
)) {
4406 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4407 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7028);
4411 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
4412 var_other
= var_old_child
;
4414 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
4415 var5
= var
== var_other
;
4427 /* <var_new_child:nullable ANode> isa AExpr */
4428 cltype
= type_nit__AExpr
.color
;
4429 idtype
= type_nit__AExpr
.id
;
4430 if(var_new_child
== NULL
) {
4433 if(cltype
>= var_new_child
->type
->table_size
) {
4436 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4439 if (unlikely(!var6
)) {
4440 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4441 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
4442 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7029);
4446 nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_expr= on <self:AAsCastExpr>*/
4451 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
4452 if (unlikely(var7
== NULL
)) {
4453 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
4454 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7032);
4458 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwas> */
4459 var_other
= var_old_child
;
4461 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwas> */
4462 var12
= var7
== var_other
;
4465 RET_LABEL11
:(void)0;
4474 /* <var_new_child:nullable ANode> isa TKwas */
4475 cltype14
= type_nit__TKwas
.color
;
4476 idtype15
= type_nit__TKwas
.id
;
4477 if(var_new_child
== NULL
) {
4480 if(cltype14
>= var_new_child
->type
->table_size
) {
4483 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4486 if (unlikely(!var13
)) {
4487 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4488 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name16
);
4489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7033);
4493 nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_kwas= on <self:AAsCastExpr>*/
4498 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
4499 if (var17
== NULL
) {
4500 var18
= 0; /* <var_old_child:ANode> cannot be null */
4502 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable TOpar> */
4503 var_other
= var_old_child
;
4505 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable TOpar(TOpar)> */
4506 var23
= var17
== var_other
;
4509 RET_LABEL22
:(void)0;
4514 RET_LABEL20
:(void)0;
4519 /* <var_new_child:nullable ANode> isa nullable TOpar */
4520 cltype25
= type_nullable__nit__TOpar
.color
;
4521 idtype26
= type_nullable__nit__TOpar
.id
;
4522 if(var_new_child
== NULL
) {
4525 if(cltype25
>= var_new_child
->type
->table_size
) {
4528 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
4531 if (unlikely(!var24
)) {
4532 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4533 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name27
);
4534 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7037);
4538 nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_opar= on <self:AAsCastExpr>*/
4543 var28
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
4544 if (unlikely(var28
== NULL
)) {
4545 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4546 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7040);
4550 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:AType> */
4551 var_other
= var_old_child
;
4553 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:AType> */
4554 var33
= var28
== var_other
;
4557 RET_LABEL32
:(void)0;
4562 RET_LABEL30
:(void)0;
4566 /* <var_new_child:nullable ANode> isa AType */
4567 cltype35
= type_nit__AType
.color
;
4568 idtype36
= type_nit__AType
.id
;
4569 if(var_new_child
== NULL
) {
4572 if(cltype35
>= var_new_child
->type
->table_size
) {
4575 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
4578 if (unlikely(!var34
)) {
4579 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4580 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name37
);
4581 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7041);
4585 nit__parser_prod___AAsCastExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_type= on <self:AAsCastExpr>*/
4590 var38
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
4591 if (var38
== NULL
) {
4592 var39
= 0; /* <var_old_child:ANode> cannot be null */
4594 { /* Inline kernel#Object#== (var38,var_old_child) on <var38:nullable TCpar> */
4595 var_other
= var_old_child
;
4597 { /* Inline kernel#Object#is_same_instance (var38,var_other) on <var38:nullable TCpar(TCpar)> */
4598 var44
= var38
== var_other
;
4601 RET_LABEL43
:(void)0;
4606 RET_LABEL41
:(void)0;
4611 /* <var_new_child:nullable ANode> isa nullable TCpar */
4612 cltype46
= type_nullable__nit__TCpar
.color
;
4613 idtype47
= type_nullable__nit__TCpar
.id
;
4614 if(var_new_child
== NULL
) {
4617 if(cltype46
>= var_new_child
->type
->table_size
) {
4620 var45
= var_new_child
->type
->type_table
[cltype46
] == idtype47
;
4623 if (unlikely(!var45
)) {
4624 var_class_name48
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4625 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name48
);
4626 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7045);
4630 nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_cpar= on <self:AAsCastExpr>*/
4637 /* method parser_prod#AAsCastExpr#n_expr= for (self: AAsCastExpr, AExpr) */
4638 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_expr_61d(val
* self
, val
* p0
) {
4639 val
* var_node
/* var node: AExpr */;
4641 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
= var_node
; /* _n_expr on <self:AAsCastExpr> */
4643 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4644 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4650 /* method parser_prod#AAsCastExpr#n_kwas= for (self: AAsCastExpr, TKwas) */
4651 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_kwas_61d(val
* self
, val
* p0
) {
4652 val
* var_node
/* var node: TKwas */;
4654 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsCastExpr> */
4656 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
4657 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
4663 /* method parser_prod#AAsCastExpr#n_opar= for (self: AAsCastExpr, nullable TOpar) */
4664 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_opar_61d(val
* self
, val
* p0
) {
4665 val
* var_node
/* var node: nullable TOpar */;
4666 short int var
/* : Bool */;
4667 short int var1
/* : Bool */;
4668 val
* var_other
/* var other: nullable Object */;
4669 short int var3
/* : Bool */;
4670 short int var4
/* : Bool */;
4672 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
= var_node
; /* _n_opar on <self:AAsCastExpr> */
4673 if (var_node
== NULL
) {
4674 var
= 0; /* is null */
4676 var
= 1; /* arg is null and recv is not */
4679 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
4680 var_other
= ((val
*)NULL
);
4682 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 TOpar(TOpar)>*/
4693 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
4694 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
4702 /* method parser_prod#AAsCastExpr#n_type= for (self: AAsCastExpr, AType) */
4703 void nit__parser_prod___AAsCastExpr___n_type_61d(val
* self
, val
* p0
) {
4704 val
* var_node
/* var node: AType */;
4706 self
->attrs
[COLOR_nit__parser_nodes__AAsCastExpr___n_type
].val
= var_node
; /* _n_type on <self:AAsCastExpr> */
4708 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
4709 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
4715 /* method parser_prod#AAsCastExpr#n_cpar= for (self: AAsCastExpr, nullable TCpar) */
4716 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__AAsCastForm__n_cpar_61d(val
* self
, val
* p0
) {
4717 val
* var_node
/* var node: nullable TCpar */;
4718 short int var
/* : Bool */;
4719 short int var1
/* : Bool */;
4720 val
* var_other
/* var other: nullable Object */;
4721 short int var3
/* : Bool */;
4722 short int var4
/* : Bool */;
4724 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsCastExpr> */
4725 if (var_node
== NULL
) {
4726 var
= 0; /* is null */
4728 var
= 1; /* arg is null and recv is not */
4731 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
4732 var_other
= ((val
*)NULL
);
4734 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 TCpar(TCpar)>*/
4745 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
4746 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
4754 /* method parser_prod#AAsCastExpr#visit_all for (self: AAsCastExpr, Visitor) */
4755 void nit__parser_prod___AAsCastExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4756 val
* var_v
/* var v: Visitor */;
4757 val
* var
/* : AExpr */;
4758 val
* var1
/* : TKwas */;
4759 val
* var2
/* : nullable TOpar */;
4760 val
* var3
/* : AType */;
4761 val
* var4
/* : nullable TCpar */;
4763 var
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
4764 if (unlikely(var
== NULL
)) {
4765 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4766 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7079);
4770 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4772 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
4773 if (unlikely(var1
== NULL
)) {
4774 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
4775 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7080);
4779 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4781 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
4783 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4785 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
4786 if (unlikely(var3
== NULL
)) {
4787 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4788 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7082);
4792 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4794 var4
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
4796 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4800 /* method parser_prod#AAsNotnullExpr#init_aasnotnullexpr for (self: AAsNotnullExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable TKwnot, nullable TKwnull, nullable TCpar) */
4801 void nit__parser_prod___AAsNotnullExpr___init_aasnotnullexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
4802 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4803 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
4804 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4805 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
4806 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
4807 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4808 short int var
/* : Bool */;
4809 short int var4
/* : Bool */;
4810 val
* var_other
/* var other: nullable Object */;
4811 short int var6
/* : Bool */;
4812 short int var7
/* : Bool */;
4813 short int var11
/* : Bool */;
4814 short int var12
/* : Bool */;
4815 short int var14
/* : Bool */;
4816 short int var15
/* : Bool */;
4818 { /* Inline kernel#Object#init (self) on <self:AAsNotnullExpr> */
4828 if (unlikely(var_n_expr
== NULL
)) {
4829 PRINT_ERROR("Runtime error: %s", "Cast failed");
4830 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7096);
4833 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsNotnullExpr> */
4834 if (var_n_expr
== NULL
) {
4835 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4836 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7097);
4839 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4840 if (unlikely(var_n_expr
== NULL
)) {
4841 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4842 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4845 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4849 if (unlikely(var_n_kwas
== NULL
)) {
4850 PRINT_ERROR("Runtime error: %s", "Cast failed");
4851 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7098);
4854 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotnullExpr> */
4855 if (var_n_kwas
== NULL
) {
4856 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4857 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7099);
4860 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
4861 if (unlikely(var_n_kwas
== NULL
)) {
4862 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4863 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4866 var_n_kwas
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
4870 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsNotnullExpr> */
4871 if (var_n_opar
== NULL
) {
4872 var
= 0; /* is null */
4874 var
= 1; /* arg is null and recv is not */
4877 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
4878 var_other
= ((val
*)NULL
);
4880 var6
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
4891 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
4892 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
4898 if (unlikely(var_n_kwnot
== NULL
)) {
4899 PRINT_ERROR("Runtime error: %s", "Cast failed");
4900 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7102);
4903 self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotnullExpr> */
4904 if (var_n_kwnot
== NULL
) {
4905 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4906 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7103);
4909 { /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on <var_n_kwnot:nullable TKwnot> */
4910 if (unlikely(var_n_kwnot
== NULL
)) {
4911 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4912 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4915 var_n_kwnot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnot:nullable TKwnot> */
4919 if (unlikely(var_n_kwnull
== NULL
)) {
4920 PRINT_ERROR("Runtime error: %s", "Cast failed");
4921 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7104);
4924 self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:AAsNotnullExpr> */
4925 if (var_n_kwnull
== NULL
) {
4926 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4927 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7105);
4930 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
4931 if (unlikely(var_n_kwnull
== NULL
)) {
4932 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4933 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4936 var_n_kwnull
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
4937 RET_LABEL10
:(void)0;
4940 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsNotnullExpr> */
4941 if (var_n_cpar
== NULL
) {
4942 var11
= 0; /* is null */
4944 var11
= 1; /* arg is null and recv is not */
4947 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
4948 var_other
= ((val
*)NULL
);
4950 var14
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
4955 RET_LABEL13
:(void)0;
4961 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
4962 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
4963 RET_LABEL16
:(void)0;
4970 /* method parser_prod#AAsNotnullExpr#replace_child for (self: AAsNotnullExpr, ANode, nullable ANode) */
4971 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4972 val
* var_old_child
/* var old_child: ANode */;
4973 val
* var_new_child
/* var new_child: nullable ANode */;
4974 val
* var
/* : AExpr */;
4975 short int var1
/* : Bool */;
4976 val
* var_other
/* var other: nullable Object */;
4977 short int var3
/* : Bool */;
4978 short int var5
/* : Bool */;
4979 short int var6
/* : Bool */;
4982 const char* var_class_name
;
4983 val
* var7
/* : TKwas */;
4984 short int var8
/* : Bool */;
4985 short int var10
/* : Bool */;
4986 short int var12
/* : Bool */;
4987 short int var13
/* : Bool */;
4990 const char* var_class_name16
;
4991 val
* var17
/* : nullable TOpar */;
4992 short int var18
/* : Bool */;
4993 short int var19
/* : Bool */;
4994 short int var21
/* : Bool */;
4995 short int var23
/* : Bool */;
4996 short int var24
/* : Bool */;
4999 const char* var_class_name27
;
5000 val
* var28
/* : TKwnot */;
5001 short int var29
/* : Bool */;
5002 short int var31
/* : Bool */;
5003 short int var33
/* : Bool */;
5004 short int var34
/* : Bool */;
5007 const char* var_class_name37
;
5008 val
* var38
/* : TKwnull */;
5009 short int var39
/* : Bool */;
5010 short int var41
/* : Bool */;
5011 short int var43
/* : Bool */;
5012 short int var44
/* : Bool */;
5015 const char* var_class_name47
;
5016 val
* var48
/* : nullable TCpar */;
5017 short int var49
/* : Bool */;
5018 short int var50
/* : Bool */;
5019 short int var52
/* : Bool */;
5020 short int var54
/* : Bool */;
5021 short int var55
/* : Bool */;
5024 const char* var_class_name58
;
5027 var
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
5028 if (unlikely(var
== NULL
)) {
5029 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5030 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7112);
5034 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5035 var_other
= var_old_child
;
5037 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5038 var5
= var
== var_other
;
5050 /* <var_new_child:nullable ANode> isa AExpr */
5051 cltype
= type_nit__AExpr
.color
;
5052 idtype
= type_nit__AExpr
.id
;
5053 if(var_new_child
== NULL
) {
5056 if(cltype
>= var_new_child
->type
->table_size
) {
5059 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5062 if (unlikely(!var6
)) {
5063 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5064 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5065 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7113);
5069 nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on <self:AAsNotnullExpr>*/
5074 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
5075 if (unlikely(var7
== NULL
)) {
5076 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5077 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7116);
5081 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwas> */
5082 var_other
= var_old_child
;
5084 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwas> */
5085 var12
= var7
== var_other
;
5088 RET_LABEL11
:(void)0;
5097 /* <var_new_child:nullable ANode> isa TKwas */
5098 cltype14
= type_nit__TKwas
.color
;
5099 idtype15
= type_nit__TKwas
.id
;
5100 if(var_new_child
== NULL
) {
5103 if(cltype14
>= var_new_child
->type
->table_size
) {
5106 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5109 if (unlikely(!var13
)) {
5110 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5111 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name16
);
5112 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7117);
5116 nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on <self:AAsNotnullExpr>*/
5121 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
5122 if (var17
== NULL
) {
5123 var18
= 0; /* <var_old_child:ANode> cannot be null */
5125 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable TOpar> */
5126 var_other
= var_old_child
;
5128 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable TOpar(TOpar)> */
5129 var23
= var17
== var_other
;
5132 RET_LABEL22
:(void)0;
5137 RET_LABEL20
:(void)0;
5142 /* <var_new_child:nullable ANode> isa nullable TOpar */
5143 cltype25
= type_nullable__nit__TOpar
.color
;
5144 idtype26
= type_nullable__nit__TOpar
.id
;
5145 if(var_new_child
== NULL
) {
5148 if(cltype25
>= var_new_child
->type
->table_size
) {
5151 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
5154 if (unlikely(!var24
)) {
5155 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5156 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name27
);
5157 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7121);
5161 nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on <self:AAsNotnullExpr>*/
5166 var28
= self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
5167 if (unlikely(var28
== NULL
)) {
5168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
5169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7124);
5173 { /* Inline kernel#Object#== (var28,var_old_child) on <var28:TKwnot> */
5174 var_other
= var_old_child
;
5176 { /* Inline kernel#Object#is_same_instance (var28,var_other) on <var28:TKwnot> */
5177 var33
= var28
== var_other
;
5180 RET_LABEL32
:(void)0;
5185 RET_LABEL30
:(void)0;
5189 /* <var_new_child:nullable ANode> isa TKwnot */
5190 cltype35
= type_nit__TKwnot
.color
;
5191 idtype36
= type_nit__TKwnot
.id
;
5192 if(var_new_child
== NULL
) {
5195 if(cltype35
>= var_new_child
->type
->table_size
) {
5198 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
5201 if (unlikely(!var34
)) {
5202 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5203 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name37
);
5204 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7125);
5208 nit__parser_prod___AAsNotnullExpr___n_kwnot_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on <self:AAsNotnullExpr>*/
5213 var38
= self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
5214 if (unlikely(var38
== NULL
)) {
5215 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
5216 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7128);
5220 { /* Inline kernel#Object#== (var38,var_old_child) on <var38:TKwnull> */
5221 var_other
= var_old_child
;
5223 { /* Inline kernel#Object#is_same_instance (var38,var_other) on <var38:TKwnull> */
5224 var43
= var38
== var_other
;
5227 RET_LABEL42
:(void)0;
5232 RET_LABEL40
:(void)0;
5236 /* <var_new_child:nullable ANode> isa TKwnull */
5237 cltype45
= type_nit__TKwnull
.color
;
5238 idtype46
= type_nit__TKwnull
.id
;
5239 if(var_new_child
== NULL
) {
5242 if(cltype45
>= var_new_child
->type
->table_size
) {
5245 var44
= var_new_child
->type
->type_table
[cltype45
] == idtype46
;
5248 if (unlikely(!var44
)) {
5249 var_class_name47
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name47
);
5251 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7129);
5255 nit__parser_prod___AAsNotnullExpr___n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on <self:AAsNotnullExpr>*/
5260 var48
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
5261 if (var48
== NULL
) {
5262 var49
= 0; /* <var_old_child:ANode> cannot be null */
5264 { /* Inline kernel#Object#== (var48,var_old_child) on <var48:nullable TCpar> */
5265 var_other
= var_old_child
;
5267 { /* Inline kernel#Object#is_same_instance (var48,var_other) on <var48:nullable TCpar(TCpar)> */
5268 var54
= var48
== var_other
;
5271 RET_LABEL53
:(void)0;
5276 RET_LABEL51
:(void)0;
5281 /* <var_new_child:nullable ANode> isa nullable TCpar */
5282 cltype56
= type_nullable__nit__TCpar
.color
;
5283 idtype57
= type_nullable__nit__TCpar
.id
;
5284 if(var_new_child
== NULL
) {
5287 if(cltype56
>= var_new_child
->type
->table_size
) {
5290 var55
= var_new_child
->type
->type_table
[cltype56
] == idtype57
;
5293 if (unlikely(!var55
)) {
5294 var_class_name58
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5295 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name58
);
5296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7133);
5300 nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on <self:AAsNotnullExpr>*/
5307 /* method parser_prod#AAsNotnullExpr#n_expr= for (self: AAsNotnullExpr, AExpr) */
5308 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_expr_61d(val
* self
, val
* p0
) {
5309 val
* var_node
/* var node: AExpr */;
5311 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
= var_node
; /* _n_expr on <self:AAsNotnullExpr> */
5313 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5314 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5320 /* method parser_prod#AAsNotnullExpr#n_kwas= for (self: AAsNotnullExpr, TKwas) */
5321 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_kwas_61d(val
* self
, val
* p0
) {
5322 val
* var_node
/* var node: TKwas */;
5324 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotnullExpr> */
5326 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5327 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5333 /* method parser_prod#AAsNotnullExpr#n_opar= for (self: AAsNotnullExpr, nullable TOpar) */
5334 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_opar_61d(val
* self
, val
* p0
) {
5335 val
* var_node
/* var node: nullable TOpar */;
5336 short int var
/* : Bool */;
5337 short int var1
/* : Bool */;
5338 val
* var_other
/* var other: nullable Object */;
5339 short int var3
/* : Bool */;
5340 short int var4
/* : Bool */;
5342 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
= var_node
; /* _n_opar on <self:AAsNotnullExpr> */
5343 if (var_node
== NULL
) {
5344 var
= 0; /* is null */
5346 var
= 1; /* arg is null and recv is not */
5349 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
5350 var_other
= ((val
*)NULL
);
5352 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 TOpar(TOpar)>*/
5363 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
5364 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
5372 /* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: AAsNotnullExpr, TKwnot) */
5373 void nit__parser_prod___AAsNotnullExpr___n_kwnot_61d(val
* self
, val
* p0
) {
5374 val
* var_node
/* var node: TKwnot */;
5376 self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotnullExpr> */
5378 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnot> */
5379 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnot> */
5385 /* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: AAsNotnullExpr, TKwnull) */
5386 void nit__parser_prod___AAsNotnullExpr___n_kwnull_61d(val
* self
, val
* p0
) {
5387 val
* var_node
/* var node: TKwnull */;
5389 self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:AAsNotnullExpr> */
5391 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
5392 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
5398 /* method parser_prod#AAsNotnullExpr#n_cpar= for (self: AAsNotnullExpr, nullable TCpar) */
5399 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__AAsCastForm__n_cpar_61d(val
* self
, val
* p0
) {
5400 val
* var_node
/* var node: nullable TCpar */;
5401 short int var
/* : Bool */;
5402 short int var1
/* : Bool */;
5403 val
* var_other
/* var other: nullable Object */;
5404 short int var3
/* : Bool */;
5405 short int var4
/* : Bool */;
5407 self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsNotnullExpr> */
5408 if (var_node
== NULL
) {
5409 var
= 0; /* is null */
5411 var
= 1; /* arg is null and recv is not */
5414 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
5415 var_other
= ((val
*)NULL
);
5417 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 TCpar(TCpar)>*/
5428 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
5429 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
5437 /* method parser_prod#AAsNotnullExpr#visit_all for (self: AAsNotnullExpr, Visitor) */
5438 void nit__parser_prod___AAsNotnullExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5439 val
* var_v
/* var v: Visitor */;
5440 val
* var
/* : AExpr */;
5441 val
* var1
/* : TKwas */;
5442 val
* var2
/* : nullable TOpar */;
5443 val
* var3
/* : TKwnot */;
5444 val
* var4
/* : TKwnull */;
5445 val
* var5
/* : nullable TCpar */;
5447 var
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
5448 if (unlikely(var
== NULL
)) {
5449 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7172);
5454 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5456 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
5457 if (unlikely(var1
== NULL
)) {
5458 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5459 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7173);
5463 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5465 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
5467 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5469 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
5470 if (unlikely(var3
== NULL
)) {
5471 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
5472 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7175);
5476 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5478 var4
= self
->attrs
[COLOR_nit__parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
5479 if (unlikely(var4
== NULL
)) {
5480 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
5481 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7176);
5485 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5487 var5
= self
->attrs
[COLOR_nit__parser_nodes__AAsCastForm___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
5489 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5493 /* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: AIssetAttrExpr, nullable TKwisset, nullable AExpr, nullable TAttrid) */
5494 void nit__parser_prod___AIssetAttrExpr___init_aissetattrexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5495 val
* var_n_kwisset
/* var n_kwisset: nullable TKwisset */;
5496 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5497 val
* var_n_id
/* var n_id: nullable TAttrid */;
5499 { /* Inline kernel#Object#init (self) on <self:AIssetAttrExpr> */
5506 if (unlikely(var_n_kwisset
== NULL
)) {
5507 PRINT_ERROR("Runtime error: %s", "Cast failed");
5508 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7187);
5511 self
->attrs
[COLOR_nit__parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_n_kwisset
; /* _n_kwisset on <self:AIssetAttrExpr> */
5512 if (var_n_kwisset
== NULL
) {
5513 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5514 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7188);
5517 { /* Inline parser_nodes#ANode#parent= (var_n_kwisset,self) on <var_n_kwisset:nullable TKwisset> */
5518 if (unlikely(var_n_kwisset
== NULL
)) {
5519 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5520 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5523 var_n_kwisset
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwisset:nullable TKwisset> */
5527 if (unlikely(var_n_expr
== NULL
)) {
5528 PRINT_ERROR("Runtime error: %s", "Cast failed");
5529 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7189);
5532 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIssetAttrExpr> */
5533 if (var_n_expr
== NULL
) {
5534 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5535 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7190);
5538 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5539 if (unlikely(var_n_expr
== NULL
)) {
5540 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5541 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5544 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5548 if (unlikely(var_n_id
== NULL
)) {
5549 PRINT_ERROR("Runtime error: %s", "Cast failed");
5550 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7191);
5553 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AIssetAttrExpr> */
5554 if (var_n_id
== NULL
) {
5555 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7192);
5559 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
5560 if (unlikely(var_n_id
== NULL
)) {
5561 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5562 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5565 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
5571 /* method parser_prod#AIssetAttrExpr#replace_child for (self: AIssetAttrExpr, ANode, nullable ANode) */
5572 void nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5573 val
* var_old_child
/* var old_child: ANode */;
5574 val
* var_new_child
/* var new_child: nullable ANode */;
5575 val
* var
/* : TKwisset */;
5576 short int var1
/* : Bool */;
5577 val
* var_other
/* var other: nullable Object */;
5578 short int var3
/* : Bool */;
5579 short int var5
/* : Bool */;
5580 short int var6
/* : Bool */;
5583 const char* var_class_name
;
5584 val
* var7
/* : AExpr */;
5585 short int var8
/* : Bool */;
5586 short int var10
/* : Bool */;
5587 short int var12
/* : Bool */;
5588 short int var13
/* : Bool */;
5591 const char* var_class_name16
;
5592 val
* var17
/* : TAttrid */;
5593 short int var18
/* : Bool */;
5594 short int var20
/* : Bool */;
5595 short int var22
/* : Bool */;
5596 short int var23
/* : Bool */;
5599 const char* var_class_name26
;
5602 var
= self
->attrs
[COLOR_nit__parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
5603 if (unlikely(var
== NULL
)) {
5604 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
5605 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7197);
5609 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwisset> */
5610 var_other
= var_old_child
;
5612 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwisset> */
5613 var5
= var
== var_other
;
5625 /* <var_new_child:nullable ANode> isa TKwisset */
5626 cltype
= type_nit__TKwisset
.color
;
5627 idtype
= type_nit__TKwisset
.id
;
5628 if(var_new_child
== NULL
) {
5631 if(cltype
>= var_new_child
->type
->table_size
) {
5634 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5637 if (unlikely(!var6
)) {
5638 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5639 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwisset", var_class_name
);
5640 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7198);
5644 nit__parser_prod___AIssetAttrExpr___n_kwisset_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on <self:AIssetAttrExpr>*/
5649 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
5650 if (unlikely(var7
== NULL
)) {
5651 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5652 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7201);
5656 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
5657 var_other
= var_old_child
;
5659 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
5660 var12
= var7
== var_other
;
5663 RET_LABEL11
:(void)0;
5672 /* <var_new_child:nullable ANode> isa AExpr */
5673 cltype14
= type_nit__AExpr
.color
;
5674 idtype15
= type_nit__AExpr
.id
;
5675 if(var_new_child
== NULL
) {
5678 if(cltype14
>= var_new_child
->type
->table_size
) {
5681 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5684 if (unlikely(!var13
)) {
5685 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5686 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
5687 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7202);
5691 nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on <self:AIssetAttrExpr>*/
5696 var17
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
5697 if (unlikely(var17
== NULL
)) {
5698 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5699 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7205);
5703 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAttrid> */
5704 var_other
= var_old_child
;
5706 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAttrid> */
5707 var22
= var17
== var_other
;
5710 RET_LABEL21
:(void)0;
5715 RET_LABEL19
:(void)0;
5719 /* <var_new_child:nullable ANode> isa TAttrid */
5720 cltype24
= type_nit__TAttrid
.color
;
5721 idtype25
= type_nit__TAttrid
.id
;
5722 if(var_new_child
== NULL
) {
5725 if(cltype24
>= var_new_child
->type
->table_size
) {
5728 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
5731 if (unlikely(!var23
)) {
5732 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5733 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name26
);
5734 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7206);
5738 nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_id= on <self:AIssetAttrExpr>*/
5745 /* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: AIssetAttrExpr, TKwisset) */
5746 void nit__parser_prod___AIssetAttrExpr___n_kwisset_61d(val
* self
, val
* p0
) {
5747 val
* var_node
/* var node: TKwisset */;
5749 self
->attrs
[COLOR_nit__parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_node
; /* _n_kwisset on <self:AIssetAttrExpr> */
5751 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwisset> */
5752 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwisset> */
5758 /* method parser_prod#AIssetAttrExpr#n_expr= for (self: AIssetAttrExpr, AExpr) */
5759 void nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__AAttrFormExpr__n_expr_61d(val
* self
, val
* p0
) {
5760 val
* var_node
/* var node: AExpr */;
5762 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIssetAttrExpr> */
5764 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5765 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5771 /* method parser_prod#AIssetAttrExpr#n_id= for (self: AIssetAttrExpr, TAttrid) */
5772 void nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__AAttrFormExpr__n_id_61d(val
* self
, val
* p0
) {
5773 val
* var_node
/* var node: TAttrid */;
5775 self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AIssetAttrExpr> */
5777 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
5778 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
5784 /* method parser_prod#AIssetAttrExpr#visit_all for (self: AIssetAttrExpr, Visitor) */
5785 void nit__parser_prod___AIssetAttrExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5786 val
* var_v
/* var v: Visitor */;
5787 val
* var
/* : TKwisset */;
5788 val
* var1
/* : AExpr */;
5789 val
* var2
/* : TAttrid */;
5791 var
= self
->attrs
[COLOR_nit__parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
5792 if (unlikely(var
== NULL
)) {
5793 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
5794 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7230);
5798 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5800 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
5801 if (unlikely(var1
== NULL
)) {
5802 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5803 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7231);
5807 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5809 var2
= self
->attrs
[COLOR_nit__parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
5810 if (unlikely(var2
== NULL
)) {
5811 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7232);
5816 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5820 /* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: ADebugTypeExpr, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */
5821 void nit__parser_prod___ADebugTypeExpr___init_adebugtypeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5822 val
* var_n_kwdebug
/* var n_kwdebug: nullable TKwdebug */;
5823 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
5824 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5825 val
* var_n_type
/* var n_type: nullable AType */;
5827 { /* Inline kernel#Object#init (self) on <self:ADebugTypeExpr> */
5835 if (unlikely(var_n_kwdebug
== NULL
)) {
5836 PRINT_ERROR("Runtime error: %s", "Cast failed");
5837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7243);
5840 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_n_kwdebug
; /* _n_kwdebug on <self:ADebugTypeExpr> */
5841 if (var_n_kwdebug
== NULL
) {
5842 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5843 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7244);
5846 { /* Inline parser_nodes#ANode#parent= (var_n_kwdebug,self) on <var_n_kwdebug:nullable TKwdebug> */
5847 if (unlikely(var_n_kwdebug
== NULL
)) {
5848 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5849 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5852 var_n_kwdebug
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdebug:nullable TKwdebug> */
5856 if (unlikely(var_n_kwtype
== NULL
)) {
5857 PRINT_ERROR("Runtime error: %s", "Cast failed");
5858 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7245);
5861 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ADebugTypeExpr> */
5862 if (var_n_kwtype
== NULL
) {
5863 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5864 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7246);
5867 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
5868 if (unlikely(var_n_kwtype
== NULL
)) {
5869 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5870 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5873 var_n_kwtype
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
5877 if (unlikely(var_n_expr
== NULL
)) {
5878 PRINT_ERROR("Runtime error: %s", "Cast failed");
5879 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7247);
5882 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ADebugTypeExpr> */
5883 if (var_n_expr
== NULL
) {
5884 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5885 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7248);
5888 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5889 if (unlikely(var_n_expr
== NULL
)) {
5890 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5891 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5894 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5898 if (unlikely(var_n_type
== NULL
)) {
5899 PRINT_ERROR("Runtime error: %s", "Cast failed");
5900 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7249);
5903 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ADebugTypeExpr> */
5904 if (var_n_type
== NULL
) {
5905 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5906 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7250);
5909 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
5910 if (unlikely(var_n_type
== NULL
)) {
5911 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5912 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5915 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
5921 /* method parser_prod#ADebugTypeExpr#replace_child for (self: ADebugTypeExpr, ANode, nullable ANode) */
5922 void nit__parser_prod___ADebugTypeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5923 val
* var_old_child
/* var old_child: ANode */;
5924 val
* var_new_child
/* var new_child: nullable ANode */;
5925 val
* var
/* : TKwdebug */;
5926 short int var1
/* : Bool */;
5927 val
* var_other
/* var other: nullable Object */;
5928 short int var3
/* : Bool */;
5929 short int var5
/* : Bool */;
5930 short int var6
/* : Bool */;
5933 const char* var_class_name
;
5934 val
* var7
/* : TKwtype */;
5935 short int var8
/* : Bool */;
5936 short int var10
/* : Bool */;
5937 short int var12
/* : Bool */;
5938 short int var13
/* : Bool */;
5941 const char* var_class_name16
;
5942 val
* var17
/* : AExpr */;
5943 short int var18
/* : Bool */;
5944 short int var20
/* : Bool */;
5945 short int var22
/* : Bool */;
5946 short int var23
/* : Bool */;
5949 const char* var_class_name26
;
5950 val
* var27
/* : AType */;
5951 short int var28
/* : Bool */;
5952 short int var30
/* : Bool */;
5953 short int var32
/* : Bool */;
5954 short int var33
/* : Bool */;
5957 const char* var_class_name36
;
5960 var
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
5961 if (unlikely(var
== NULL
)) {
5962 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
5963 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7255);
5967 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdebug> */
5968 var_other
= var_old_child
;
5970 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdebug> */
5971 var5
= var
== var_other
;
5983 /* <var_new_child:nullable ANode> isa TKwdebug */
5984 cltype
= type_nit__TKwdebug
.color
;
5985 idtype
= type_nit__TKwdebug
.id
;
5986 if(var_new_child
== NULL
) {
5989 if(cltype
>= var_new_child
->type
->table_size
) {
5992 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5995 if (unlikely(!var6
)) {
5996 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5997 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdebug", var_class_name
);
5998 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7256);
6002 nit__parser_prod___ADebugTypeExpr___n_kwdebug_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on <self:ADebugTypeExpr>*/
6007 var7
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
6008 if (unlikely(var7
== NULL
)) {
6009 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
6010 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7259);
6014 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwtype> */
6015 var_other
= var_old_child
;
6017 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwtype> */
6018 var12
= var7
== var_other
;
6021 RET_LABEL11
:(void)0;
6030 /* <var_new_child:nullable ANode> isa TKwtype */
6031 cltype14
= type_nit__TKwtype
.color
;
6032 idtype15
= type_nit__TKwtype
.id
;
6033 if(var_new_child
== NULL
) {
6036 if(cltype14
>= var_new_child
->type
->table_size
) {
6039 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6042 if (unlikely(!var13
)) {
6043 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6044 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name16
);
6045 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7260);
6049 nit__parser_prod___ADebugTypeExpr___n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on <self:ADebugTypeExpr>*/
6054 var17
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
6055 if (unlikely(var17
== NULL
)) {
6056 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6057 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7263);
6061 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
6062 var_other
= var_old_child
;
6064 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
6065 var22
= var17
== var_other
;
6068 RET_LABEL21
:(void)0;
6073 RET_LABEL19
:(void)0;
6077 /* <var_new_child:nullable ANode> isa AExpr */
6078 cltype24
= type_nit__AExpr
.color
;
6079 idtype25
= type_nit__AExpr
.id
;
6080 if(var_new_child
== NULL
) {
6083 if(cltype24
>= var_new_child
->type
->table_size
) {
6086 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6089 if (unlikely(!var23
)) {
6090 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6091 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
6092 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7264);
6096 nit__parser_prod___ADebugTypeExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on <self:ADebugTypeExpr>*/
6101 var27
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
6102 if (unlikely(var27
== NULL
)) {
6103 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6104 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7267);
6108 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AType> */
6109 var_other
= var_old_child
;
6111 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AType> */
6112 var32
= var27
== var_other
;
6115 RET_LABEL31
:(void)0;
6120 RET_LABEL29
:(void)0;
6124 /* <var_new_child:nullable ANode> isa AType */
6125 cltype34
= type_nit__AType
.color
;
6126 idtype35
= type_nit__AType
.id
;
6127 if(var_new_child
== NULL
) {
6130 if(cltype34
>= var_new_child
->type
->table_size
) {
6133 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
6136 if (unlikely(!var33
)) {
6137 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6138 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name36
);
6139 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7268);
6143 nit__parser_prod___ADebugTypeExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_type= on <self:ADebugTypeExpr>*/
6150 /* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: ADebugTypeExpr, TKwdebug) */
6151 void nit__parser_prod___ADebugTypeExpr___n_kwdebug_61d(val
* self
, val
* p0
) {
6152 val
* var_node
/* var node: TKwdebug */;
6154 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_node
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6156 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdebug> */
6157 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdebug> */
6163 /* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: ADebugTypeExpr, TKwtype) */
6164 void nit__parser_prod___ADebugTypeExpr___n_kwtype_61d(val
* self
, val
* p0
) {
6165 val
* var_node
/* var node: TKwtype */;
6167 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ADebugTypeExpr> */
6169 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
6170 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
6176 /* method parser_prod#ADebugTypeExpr#n_expr= for (self: ADebugTypeExpr, AExpr) */
6177 void nit__parser_prod___ADebugTypeExpr___n_expr_61d(val
* self
, val
* p0
) {
6178 val
* var_node
/* var node: AExpr */;
6180 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ADebugTypeExpr> */
6182 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6183 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6189 /* method parser_prod#ADebugTypeExpr#n_type= for (self: ADebugTypeExpr, AType) */
6190 void nit__parser_prod___ADebugTypeExpr___n_type_61d(val
* self
, val
* p0
) {
6191 val
* var_node
/* var node: AType */;
6193 self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_type
].val
= var_node
; /* _n_type on <self:ADebugTypeExpr> */
6195 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
6196 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
6202 /* method parser_prod#ADebugTypeExpr#visit_all for (self: ADebugTypeExpr, Visitor) */
6203 void nit__parser_prod___ADebugTypeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6204 val
* var_v
/* var v: Visitor */;
6205 val
* var
/* : TKwdebug */;
6206 val
* var1
/* : TKwtype */;
6207 val
* var2
/* : AExpr */;
6208 val
* var3
/* : AType */;
6210 var
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6211 if (unlikely(var
== NULL
)) {
6212 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
6213 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7297);
6217 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6219 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
6220 if (unlikely(var1
== NULL
)) {
6221 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
6222 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7298);
6226 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6228 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
6229 if (unlikely(var2
== NULL
)) {
6230 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6231 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7299);
6235 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6237 var3
= self
->attrs
[COLOR_nit__parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
6238 if (unlikely(var3
== NULL
)) {
6239 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6240 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7300);
6244 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6248 /* method parser_prod#AVarargExpr#init_avarargexpr for (self: AVarargExpr, nullable AExpr, nullable TDotdotdot) */
6249 void nit__parser_prod___AVarargExpr___init_avarargexpr(val
* self
, val
* p0
, val
* p1
) {
6250 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6251 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
6253 { /* Inline kernel#Object#init (self) on <self:AVarargExpr> */
6258 var_n_dotdotdot
= p1
;
6259 if (unlikely(var_n_expr
== NULL
)) {
6260 PRINT_ERROR("Runtime error: %s", "Cast failed");
6261 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7309);
6264 self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVarargExpr> */
6265 if (var_n_expr
== NULL
) {
6266 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6267 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7310);
6270 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6271 if (unlikely(var_n_expr
== NULL
)) {
6272 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6273 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6276 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6280 if (unlikely(var_n_dotdotdot
== NULL
)) {
6281 PRINT_ERROR("Runtime error: %s", "Cast failed");
6282 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7311);
6285 self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AVarargExpr> */
6286 if (var_n_dotdotdot
== NULL
) {
6287 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6288 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7312);
6291 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot> */
6292 if (unlikely(var_n_dotdotdot
== NULL
)) {
6293 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6294 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6297 var_n_dotdotdot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot> */
6303 /* method parser_prod#AVarargExpr#replace_child for (self: AVarargExpr, ANode, nullable ANode) */
6304 void nit__parser_prod___AVarargExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6305 val
* var_old_child
/* var old_child: ANode */;
6306 val
* var_new_child
/* var new_child: nullable ANode */;
6307 val
* var
/* : AExpr */;
6308 short int var1
/* : Bool */;
6309 val
* var_other
/* var other: nullable Object */;
6310 short int var3
/* : Bool */;
6311 short int var5
/* : Bool */;
6312 short int var6
/* : Bool */;
6315 const char* var_class_name
;
6316 val
* var7
/* : TDotdotdot */;
6317 short int var8
/* : Bool */;
6318 short int var10
/* : Bool */;
6319 short int var12
/* : Bool */;
6320 short int var13
/* : Bool */;
6323 const char* var_class_name16
;
6326 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
6327 if (unlikely(var
== NULL
)) {
6328 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6329 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7317);
6333 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
6334 var_other
= var_old_child
;
6336 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
6337 var5
= var
== var_other
;
6349 /* <var_new_child:nullable ANode> isa AExpr */
6350 cltype
= type_nit__AExpr
.color
;
6351 idtype
= type_nit__AExpr
.id
;
6352 if(var_new_child
== NULL
) {
6355 if(cltype
>= var_new_child
->type
->table_size
) {
6358 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6361 if (unlikely(!var6
)) {
6362 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6363 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
6364 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7318);
6368 nit__parser_prod___AVarargExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_expr= on <self:AVarargExpr>*/
6373 var7
= self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
6374 if (unlikely(var7
== NULL
)) {
6375 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
6376 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7321);
6380 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TDotdotdot> */
6381 var_other
= var_old_child
;
6383 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TDotdotdot> */
6384 var12
= var7
== var_other
;
6387 RET_LABEL11
:(void)0;
6396 /* <var_new_child:nullable ANode> isa TDotdotdot */
6397 cltype14
= type_nit__TDotdotdot
.color
;
6398 idtype15
= type_nit__TDotdotdot
.id
;
6399 if(var_new_child
== NULL
) {
6402 if(cltype14
>= var_new_child
->type
->table_size
) {
6405 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6408 if (unlikely(!var13
)) {
6409 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6410 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdotdot", var_class_name16
);
6411 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7322);
6415 nit__parser_prod___AVarargExpr___n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on <self:AVarargExpr>*/
6422 /* method parser_prod#AVarargExpr#n_expr= for (self: AVarargExpr, AExpr) */
6423 void nit__parser_prod___AVarargExpr___n_expr_61d(val
* self
, val
* p0
) {
6424 val
* var_node
/* var node: AExpr */;
6426 self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVarargExpr> */
6428 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6429 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6435 /* method parser_prod#AVarargExpr#n_dotdotdot= for (self: AVarargExpr, TDotdotdot) */
6436 void nit__parser_prod___AVarargExpr___n_dotdotdot_61d(val
* self
, val
* p0
) {
6437 val
* var_node
/* var node: TDotdotdot */;
6439 self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AVarargExpr> */
6441 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdotdot> */
6442 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdotdot> */
6448 /* method parser_prod#AVarargExpr#visit_all for (self: AVarargExpr, Visitor) */
6449 void nit__parser_prod___AVarargExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6450 val
* var_v
/* var v: Visitor */;
6451 val
* var
/* : AExpr */;
6452 val
* var1
/* : TDotdotdot */;
6454 var
= self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
6455 if (unlikely(var
== NULL
)) {
6456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6457 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7341);
6461 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6463 var1
= self
->attrs
[COLOR_nit__parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
6464 if (unlikely(var1
== NULL
)) {
6465 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
6466 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7342);
6470 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6474 /* method parser_prod#ANamedargExpr#init_anamedargexpr for (self: ANamedargExpr, nullable TId, nullable TAssign, nullable AExpr) */
6475 void nit__parser_prod___ANamedargExpr___init_anamedargexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
6476 val
* var_n_id
/* var n_id: nullable TId */;
6477 val
* var_n_assign
/* var n_assign: nullable TAssign */;
6478 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6480 { /* Inline kernel#Object#init (self) on <self:ANamedargExpr> */
6487 if (unlikely(var_n_id
== NULL
)) {
6488 PRINT_ERROR("Runtime error: %s", "Cast failed");
6489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7352);
6492 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_id
].val
= var_n_id
; /* _n_id on <self:ANamedargExpr> */
6493 if (var_n_id
== NULL
) {
6494 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6495 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7353);
6498 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
6499 if (unlikely(var_n_id
== NULL
)) {
6500 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6501 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6504 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
6508 if (unlikely(var_n_assign
== NULL
)) {
6509 PRINT_ERROR("Runtime error: %s", "Cast failed");
6510 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7354);
6513 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ANamedargExpr> */
6514 if (var_n_assign
== NULL
) {
6515 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6516 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7355);
6519 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
6520 if (unlikely(var_n_assign
== NULL
)) {
6521 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6522 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6525 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
6529 if (unlikely(var_n_expr
== NULL
)) {
6530 PRINT_ERROR("Runtime error: %s", "Cast failed");
6531 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7356);
6534 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ANamedargExpr> */
6535 if (var_n_expr
== NULL
) {
6536 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6537 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7357);
6540 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6541 if (unlikely(var_n_expr
== NULL
)) {
6542 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6543 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6546 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6552 /* method parser_prod#ANamedargExpr#replace_child for (self: ANamedargExpr, ANode, nullable ANode) */
6553 void nit__parser_prod___ANamedargExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6554 val
* var_old_child
/* var old_child: ANode */;
6555 val
* var_new_child
/* var new_child: nullable ANode */;
6556 val
* var
/* : TId */;
6557 short int var1
/* : Bool */;
6558 val
* var_other
/* var other: nullable Object */;
6559 short int var3
/* : Bool */;
6560 short int var5
/* : Bool */;
6561 short int var6
/* : Bool */;
6564 const char* var_class_name
;
6565 val
* var7
/* : TAssign */;
6566 short int var8
/* : Bool */;
6567 short int var10
/* : Bool */;
6568 short int var12
/* : Bool */;
6569 short int var13
/* : Bool */;
6572 const char* var_class_name16
;
6573 val
* var17
/* : AExpr */;
6574 short int var18
/* : Bool */;
6575 short int var20
/* : Bool */;
6576 short int var22
/* : Bool */;
6577 short int var23
/* : Bool */;
6580 const char* var_class_name26
;
6583 var
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_id
].val
; /* _n_id on <self:ANamedargExpr> */
6584 if (unlikely(var
== NULL
)) {
6585 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6586 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7362);
6590 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
6591 var_other
= var_old_child
;
6593 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
6594 var5
= var
== var_other
;
6606 /* <var_new_child:nullable ANode> isa TId */
6607 cltype
= type_nit__TId
.color
;
6608 idtype
= type_nit__TId
.id
;
6609 if(var_new_child
== NULL
) {
6612 if(cltype
>= var_new_child
->type
->table_size
) {
6615 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6618 if (unlikely(!var6
)) {
6619 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6620 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
6621 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7363);
6625 nit__parser_prod___ANamedargExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ANamedargExpr#n_id= on <self:ANamedargExpr>*/
6630 var7
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_assign
].val
; /* _n_assign on <self:ANamedargExpr> */
6631 if (unlikely(var7
== NULL
)) {
6632 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6633 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7366);
6637 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
6638 var_other
= var_old_child
;
6640 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
6641 var12
= var7
== var_other
;
6644 RET_LABEL11
:(void)0;
6653 /* <var_new_child:nullable ANode> isa TAssign */
6654 cltype14
= type_nit__TAssign
.color
;
6655 idtype15
= type_nit__TAssign
.id
;
6656 if(var_new_child
== NULL
) {
6659 if(cltype14
>= var_new_child
->type
->table_size
) {
6662 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
6665 if (unlikely(!var13
)) {
6666 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6667 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
6668 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7367);
6672 nit__parser_prod___ANamedargExpr___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ANamedargExpr#n_assign= on <self:ANamedargExpr>*/
6677 var17
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_expr
].val
; /* _n_expr on <self:ANamedargExpr> */
6678 if (unlikely(var17
== NULL
)) {
6679 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6680 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7370);
6684 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AExpr> */
6685 var_other
= var_old_child
;
6687 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AExpr> */
6688 var22
= var17
== var_other
;
6691 RET_LABEL21
:(void)0;
6696 RET_LABEL19
:(void)0;
6700 /* <var_new_child:nullable ANode> isa AExpr */
6701 cltype24
= type_nit__AExpr
.color
;
6702 idtype25
= type_nit__AExpr
.id
;
6703 if(var_new_child
== NULL
) {
6706 if(cltype24
>= var_new_child
->type
->table_size
) {
6709 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
6712 if (unlikely(!var23
)) {
6713 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6714 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name26
);
6715 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7371);
6719 nit__parser_prod___ANamedargExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ANamedargExpr#n_expr= on <self:ANamedargExpr>*/
6726 /* method parser_prod#ANamedargExpr#n_id= for (self: ANamedargExpr, TId) */
6727 void nit__parser_prod___ANamedargExpr___n_id_61d(val
* self
, val
* p0
) {
6728 val
* var_node
/* var node: TId */;
6730 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_id
].val
= var_node
; /* _n_id on <self:ANamedargExpr> */
6732 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6733 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6739 /* method parser_prod#ANamedargExpr#n_assign= for (self: ANamedargExpr, TAssign) */
6740 void nit__parser_prod___ANamedargExpr___n_assign_61d(val
* self
, val
* p0
) {
6741 val
* var_node
/* var node: TAssign */;
6743 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ANamedargExpr> */
6745 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
6746 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
6752 /* method parser_prod#ANamedargExpr#n_expr= for (self: ANamedargExpr, AExpr) */
6753 void nit__parser_prod___ANamedargExpr___n_expr_61d(val
* self
, val
* p0
) {
6754 val
* var_node
/* var node: AExpr */;
6756 self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ANamedargExpr> */
6758 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6759 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6765 /* method parser_prod#ANamedargExpr#visit_all for (self: ANamedargExpr, Visitor) */
6766 void nit__parser_prod___ANamedargExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6767 val
* var_v
/* var v: Visitor */;
6768 val
* var
/* : TId */;
6769 val
* var1
/* : TAssign */;
6770 val
* var2
/* : AExpr */;
6772 var
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_id
].val
; /* _n_id on <self:ANamedargExpr> */
6773 if (unlikely(var
== NULL
)) {
6774 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6775 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7395);
6779 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6781 var1
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_assign
].val
; /* _n_assign on <self:ANamedargExpr> */
6782 if (unlikely(var1
== NULL
)) {
6783 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
6784 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7396);
6788 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6790 var2
= self
->attrs
[COLOR_nit__parser_nodes__ANamedargExpr___n_expr
].val
; /* _n_expr on <self:ANamedargExpr> */
6791 if (unlikely(var2
== NULL
)) {
6792 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6793 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7397);
6797 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6801 /* method parser_prod#ATypeExpr#init_atypeexpr for (self: ATypeExpr, nullable AType) */
6802 void nit__parser_prod___ATypeExpr___init_atypeexpr(val
* self
, val
* p0
) {
6803 val
* var_n_type
/* var n_type: nullable AType */;
6805 { /* Inline kernel#Object#init (self) on <self:ATypeExpr> */
6810 if (unlikely(var_n_type
== NULL
)) {
6811 PRINT_ERROR("Runtime error: %s", "Cast failed");
6812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7405);
6815 self
->attrs
[COLOR_nit__parser_nodes__ATypeExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ATypeExpr> */
6816 if (var_n_type
== NULL
) {
6817 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6818 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7406);
6821 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
6822 if (unlikely(var_n_type
== NULL
)) {
6823 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6824 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6827 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
6833 /* method parser_prod#ATypeExpr#replace_child for (self: ATypeExpr, ANode, nullable ANode) */
6834 void nit__parser_prod___ATypeExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6835 val
* var_old_child
/* var old_child: ANode */;
6836 val
* var_new_child
/* var new_child: nullable ANode */;
6837 val
* var
/* : AType */;
6838 short int var1
/* : Bool */;
6839 val
* var_other
/* var other: nullable Object */;
6840 short int var3
/* : Bool */;
6841 short int var5
/* : Bool */;
6842 short int var6
/* : Bool */;
6845 const char* var_class_name
;
6848 var
= self
->attrs
[COLOR_nit__parser_nodes__ATypeExpr___n_type
].val
; /* _n_type on <self:ATypeExpr> */
6849 if (unlikely(var
== NULL
)) {
6850 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6851 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7411);
6855 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
6856 var_other
= var_old_child
;
6858 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
6859 var5
= var
== var_other
;
6871 /* <var_new_child:nullable ANode> isa AType */
6872 cltype
= type_nit__AType
.color
;
6873 idtype
= type_nit__AType
.id
;
6874 if(var_new_child
== NULL
) {
6877 if(cltype
>= var_new_child
->type
->table_size
) {
6880 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6883 if (unlikely(!var6
)) {
6884 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6885 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
6886 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7412);
6890 nit__parser_prod___ATypeExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypeExpr#n_type= on <self:ATypeExpr>*/
6897 /* method parser_prod#ATypeExpr#n_type= for (self: ATypeExpr, AType) */
6898 void nit__parser_prod___ATypeExpr___n_type_61d(val
* self
, val
* p0
) {
6899 val
* var_node
/* var node: AType */;
6901 self
->attrs
[COLOR_nit__parser_nodes__ATypeExpr___n_type
].val
= var_node
; /* _n_type on <self:ATypeExpr> */
6903 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
6904 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
6910 /* method parser_prod#ATypeExpr#visit_all for (self: ATypeExpr, Visitor) */
6911 void nit__parser_prod___ATypeExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6912 val
* var_v
/* var v: Visitor */;
6913 val
* var
/* : AType */;
6915 var
= self
->attrs
[COLOR_nit__parser_nodes__ATypeExpr___n_type
].val
; /* _n_type on <self:ATypeExpr> */
6916 if (unlikely(var
== NULL
)) {
6917 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6918 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7426);
6922 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6926 /* method parser_prod#AMethidExpr#init_amethidexpr for (self: AMethidExpr, nullable AExpr, nullable AMethid) */
6927 void nit__parser_prod___AMethidExpr___init_amethidexpr(val
* self
, val
* p0
, val
* p1
) {
6928 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6929 val
* var_n_id
/* var n_id: nullable AMethid */;
6931 { /* Inline kernel#Object#init (self) on <self:AMethidExpr> */
6937 if (unlikely(var_n_expr
== NULL
)) {
6938 PRINT_ERROR("Runtime error: %s", "Cast failed");
6939 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7435);
6942 self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AMethidExpr> */
6943 if (var_n_expr
== NULL
) {
6944 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6945 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7436);
6948 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6949 if (unlikely(var_n_expr
== NULL
)) {
6950 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6951 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6954 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6958 if (unlikely(var_n_id
== NULL
)) {
6959 PRINT_ERROR("Runtime error: %s", "Cast failed");
6960 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7437);
6963 self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AMethidExpr> */
6964 if (var_n_id
== NULL
) {
6965 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6966 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7438);
6969 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable AMethid> */
6970 if (unlikely(var_n_id
== NULL
)) {
6971 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6972 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6975 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable AMethid> */
6981 /* method parser_prod#AMethidExpr#replace_child for (self: AMethidExpr, ANode, nullable ANode) */
6982 void nit__parser_prod___AMethidExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6983 val
* var_old_child
/* var old_child: ANode */;
6984 val
* var_new_child
/* var new_child: nullable ANode */;
6985 val
* var
/* : AExpr */;
6986 short int var1
/* : Bool */;
6987 val
* var_other
/* var other: nullable Object */;
6988 short int var3
/* : Bool */;
6989 short int var5
/* : Bool */;
6990 short int var6
/* : Bool */;
6993 const char* var_class_name
;
6994 val
* var7
/* : AMethid */;
6995 short int var8
/* : Bool */;
6996 short int var10
/* : Bool */;
6997 short int var12
/* : Bool */;
6998 short int var13
/* : Bool */;
7001 const char* var_class_name16
;
7004 var
= self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_expr
].val
; /* _n_expr on <self:AMethidExpr> */
7005 if (unlikely(var
== NULL
)) {
7006 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7007 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7443);
7011 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
7012 var_other
= var_old_child
;
7014 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
7015 var5
= var
== var_other
;
7027 /* <var_new_child:nullable ANode> isa AExpr */
7028 cltype
= type_nit__AExpr
.color
;
7029 idtype
= type_nit__AExpr
.id
;
7030 if(var_new_child
== NULL
) {
7033 if(cltype
>= var_new_child
->type
->table_size
) {
7036 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7039 if (unlikely(!var6
)) {
7040 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7041 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
7042 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7444);
7046 nit__parser_prod___AMethidExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AMethidExpr#n_expr= on <self:AMethidExpr>*/
7051 var7
= self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_id
].val
; /* _n_id on <self:AMethidExpr> */
7052 if (unlikely(var7
== NULL
)) {
7053 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7054 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7447);
7058 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AMethid> */
7059 var_other
= var_old_child
;
7061 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AMethid> */
7062 var12
= var7
== var_other
;
7065 RET_LABEL11
:(void)0;
7074 /* <var_new_child:nullable ANode> isa AMethid */
7075 cltype14
= type_nit__AMethid
.color
;
7076 idtype15
= type_nit__AMethid
.id
;
7077 if(var_new_child
== NULL
) {
7080 if(cltype14
>= var_new_child
->type
->table_size
) {
7083 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
7086 if (unlikely(!var13
)) {
7087 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name16
);
7089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7448);
7093 nit__parser_prod___AMethidExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AMethidExpr#n_id= on <self:AMethidExpr>*/
7100 /* method parser_prod#AMethidExpr#n_expr= for (self: AMethidExpr, AExpr) */
7101 void nit__parser_prod___AMethidExpr___n_expr_61d(val
* self
, val
* p0
) {
7102 val
* var_node
/* var node: AExpr */;
7104 self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AMethidExpr> */
7106 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7107 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7113 /* method parser_prod#AMethidExpr#n_id= for (self: AMethidExpr, AMethid) */
7114 void nit__parser_prod___AMethidExpr___n_id_61d(val
* self
, val
* p0
) {
7115 val
* var_node
/* var node: AMethid */;
7117 self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_id
].val
= var_node
; /* _n_id on <self:AMethidExpr> */
7119 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
7120 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
7126 /* method parser_prod#AMethidExpr#visit_all for (self: AMethidExpr, Visitor) */
7127 void nit__parser_prod___AMethidExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7128 val
* var_v
/* var v: Visitor */;
7129 val
* var
/* : AExpr */;
7130 val
* var1
/* : AMethid */;
7132 var
= self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_expr
].val
; /* _n_expr on <self:AMethidExpr> */
7133 if (unlikely(var
== NULL
)) {
7134 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7135 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7467);
7139 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7141 var1
= self
->attrs
[COLOR_nit__parser_nodes__AMethidExpr___n_id
].val
; /* _n_id on <self:AMethidExpr> */
7142 if (unlikely(var1
== NULL
)) {
7143 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7144 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7468);
7148 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7152 /* method parser_prod#AAtExpr#init_aatexpr for (self: AAtExpr, nullable AAnnotations) */
7153 void nit__parser_prod___AAtExpr___init_aatexpr(val
* self
, val
* p0
) {
7154 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7156 { /* Inline kernel#Object#init (self) on <self:AAtExpr> */
7160 var_n_annotations
= p0
;
7161 if (unlikely(var_n_annotations
== NULL
)) {
7162 PRINT_ERROR("Runtime error: %s", "Cast failed");
7163 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7476);
7166 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAtExpr> */
7167 if (var_n_annotations
== NULL
) {
7168 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7477);
7172 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations> */
7173 if (unlikely(var_n_annotations
== NULL
)) {
7174 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7178 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations> */
7184 /* method parser_prod#AAtExpr#replace_child for (self: AAtExpr, ANode, nullable ANode) */
7185 void nit__parser_prod___AAtExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7186 val
* var_old_child
/* var old_child: ANode */;
7187 val
* var_new_child
/* var new_child: nullable ANode */;
7188 val
* var
/* : nullable AAnnotations */;
7189 short int var1
/* : Bool */;
7190 short int var2
/* : Bool */;
7191 val
* var_other
/* var other: nullable Object */;
7192 short int var4
/* : Bool */;
7193 short int var6
/* : Bool */;
7194 short int var7
/* : Bool */;
7197 const char* var_class_name
;
7200 var
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtExpr> */
7202 var1
= 0; /* <var_old_child:ANode> cannot be null */
7204 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AAnnotations> */
7205 var_other
= var_old_child
;
7207 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AAnnotations(AAnnotations)> */
7208 var6
= var
== var_other
;
7221 /* <var_new_child:nullable ANode> isa AAnnotations */
7222 cltype
= type_nit__AAnnotations
.color
;
7223 idtype
= type_nit__AAnnotations
.id
;
7224 if(var_new_child
== NULL
) {
7227 if(cltype
>= var_new_child
->type
->table_size
) {
7230 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7233 if (unlikely(!var7
)) {
7234 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7235 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAnnotations", var_class_name
);
7236 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7483);
7240 nit__parser_prod___AAtExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAtExpr#n_annotations= on <self:AAtExpr>*/
7247 /* method parser_prod#AAtExpr#n_annotations= for (self: AAtExpr, nullable AAnnotations) */
7248 void nit__parser_prod___AAtExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7249 val
* var_node
/* var node: nullable AAnnotations */;
7251 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAtExpr> */
7252 if (var_node
== NULL
) {
7253 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7254 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7491);
7257 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations> */
7258 if (unlikely(var_node
== NULL
)) {
7259 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7260 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7263 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations> */
7269 /* method parser_prod#AAtExpr#visit_all for (self: AAtExpr, Visitor) */
7270 void nit__parser_prod___AAtExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7271 val
* var_v
/* var v: Visitor */;
7272 val
* var
/* : nullable AAnnotations */;
7274 var
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtExpr> */
7276 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7280 /* method parser_prod#AManyExpr#init_amanyexpr for (self: AManyExpr, Collection[Object]) */
7281 void nit__parser_prod___AManyExpr___init_amanyexpr(val
* self
, val
* p0
) {
7282 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7283 val
* var
/* : ANodes[AExpr] */;
7284 val
* var3
/* : ANodes[AExpr] */;
7286 { /* Inline kernel#Object#init (self) on <self:AManyExpr> */
7292 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
7293 var3
= self
->attrs
[COLOR_nit__parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
7294 if (unlikely(var3
== NULL
)) {
7295 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2717);
7304 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7308 /* method parser_prod#AManyExpr#replace_child for (self: AManyExpr, ANode, nullable ANode) */
7309 void nit__parser_prod___AManyExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7310 val
* var_old_child
/* var old_child: ANode */;
7311 val
* var_new_child
/* var new_child: nullable ANode */;
7312 val
* var
/* : ANodes[AExpr] */;
7313 val
* var2
/* : ANodes[AExpr] */;
7314 short int var3
/* : Bool */;
7318 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
7319 var2
= self
->attrs
[COLOR_nit__parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
7320 if (unlikely(var2
== NULL
)) {
7321 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7322 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2717);
7330 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
7338 /* method parser_prod#AManyExpr#visit_all for (self: AManyExpr, Visitor) */
7339 void nit__parser_prod___AManyExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7340 val
* var_v
/* var v: Visitor */;
7341 val
* var
/* : ANodes[AExpr] */;
7342 val
* var2
/* : ANodes[AExpr] */;
7345 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
7346 var2
= self
->attrs
[COLOR_nit__parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
7347 if (unlikely(var2
== NULL
)) {
7348 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7349 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2717);
7357 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
7361 /* method parser_prod#AListExprs#init_alistexprs for (self: AListExprs, Collection[Object]) */
7362 void nit__parser_prod___AListExprs___init_alistexprs(val
* self
, val
* p0
) {
7363 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7364 val
* var
/* : ANodes[AExpr] */;
7365 val
* var3
/* : ANodes[AExpr] */;
7367 { /* Inline kernel#Object#init (self) on <self:AListExprs> */
7373 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7374 var3
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7375 if (unlikely(var3
== NULL
)) {
7376 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7377 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7385 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7389 /* method parser_prod#AListExprs#replace_child for (self: AListExprs, ANode, nullable ANode) */
7390 void nit__parser_prod___AListExprs___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7391 val
* var_old_child
/* var old_child: ANode */;
7392 val
* var_new_child
/* var new_child: nullable ANode */;
7393 val
* var
/* : ANodes[AExpr] */;
7394 val
* var2
/* : ANodes[AExpr] */;
7395 short int var3
/* : Bool */;
7399 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7400 var2
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7401 if (unlikely(var2
== NULL
)) {
7402 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7403 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7411 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
7419 /* method parser_prod#AListExprs#visit_all for (self: AListExprs, Visitor) */
7420 void nit__parser_prod___AListExprs___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7421 val
* var_v
/* var v: Visitor */;
7422 val
* var
/* : ANodes[AExpr] */;
7423 val
* var2
/* : ANodes[AExpr] */;
7426 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7427 var2
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7428 if (unlikely(var2
== NULL
)) {
7429 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7430 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7438 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
7442 /* method parser_prod#AParExprs#init_aparexprs for (self: AParExprs, nullable TOpar, Collection[Object], nullable TCpar) */
7443 void nit__parser_prod___AParExprs___init_aparexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7444 val
* var_n_opar
/* var n_opar: nullable TOpar */;
7445 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7446 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
7447 val
* var
/* : ANodes[AExpr] */;
7448 val
* var4
/* : ANodes[AExpr] */;
7450 { /* Inline kernel#Object#init (self) on <self:AParExprs> */
7457 if (unlikely(var_n_opar
== NULL
)) {
7458 PRINT_ERROR("Runtime error: %s", "Cast failed");
7459 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7547);
7462 self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExprs> */
7463 if (var_n_opar
== NULL
) {
7464 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7465 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7548);
7468 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
7469 if (unlikely(var_n_opar
== NULL
)) {
7470 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7471 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7474 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
7479 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7480 var4
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7481 if (unlikely(var4
== NULL
)) {
7482 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7483 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7491 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7493 if (unlikely(var_n_cpar
== NULL
)) {
7494 PRINT_ERROR("Runtime error: %s", "Cast failed");
7495 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7550);
7498 self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExprs> */
7499 if (var_n_cpar
== NULL
) {
7500 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7501 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7551);
7504 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
7505 if (unlikely(var_n_cpar
== NULL
)) {
7506 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7507 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7510 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
7516 /* method parser_prod#AParExprs#replace_child for (self: AParExprs, ANode, nullable ANode) */
7517 void nit__parser_prod___AParExprs___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7518 val
* var_old_child
/* var old_child: ANode */;
7519 val
* var_new_child
/* var new_child: nullable ANode */;
7520 val
* var
/* : TOpar */;
7521 short int var1
/* : Bool */;
7522 val
* var_other
/* var other: nullable Object */;
7523 short int var3
/* : Bool */;
7524 short int var5
/* : Bool */;
7525 short int var6
/* : Bool */;
7528 const char* var_class_name
;
7529 val
* var7
/* : ANodes[AExpr] */;
7530 val
* var9
/* : ANodes[AExpr] */;
7531 short int var10
/* : Bool */;
7532 val
* var11
/* : TCpar */;
7533 short int var12
/* : Bool */;
7534 short int var14
/* : Bool */;
7535 short int var16
/* : Bool */;
7536 short int var17
/* : Bool */;
7539 const char* var_class_name20
;
7542 var
= self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
7543 if (unlikely(var
== NULL
)) {
7544 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
7545 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7556);
7549 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
7550 var_other
= var_old_child
;
7552 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
7553 var5
= var
== var_other
;
7565 /* <var_new_child:nullable ANode> isa TOpar */
7566 cltype
= type_nit__TOpar
.color
;
7567 idtype
= type_nit__TOpar
.id
;
7568 if(var_new_child
== NULL
) {
7571 if(cltype
>= var_new_child
->type
->table_size
) {
7574 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7577 if (unlikely(!var6
)) {
7578 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7579 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
7580 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7557);
7584 nit__parser_prod___AParExprs___n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_opar= on <self:AParExprs>*/
7590 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7591 var9
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7592 if (unlikely(var9
== NULL
)) {
7593 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7594 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7602 var10
= nit___nit__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
7608 var11
= self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
7609 if (unlikely(var11
== NULL
)) {
7610 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
7611 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7561);
7615 { /* Inline kernel#Object#== (var11,var_old_child) on <var11:TCpar> */
7616 var_other
= var_old_child
;
7618 { /* Inline kernel#Object#is_same_instance (var11,var_other) on <var11:TCpar> */
7619 var16
= var11
== var_other
;
7622 RET_LABEL15
:(void)0;
7627 RET_LABEL13
:(void)0;
7631 /* <var_new_child:nullable ANode> isa TCpar */
7632 cltype18
= type_nit__TCpar
.color
;
7633 idtype19
= type_nit__TCpar
.id
;
7634 if(var_new_child
== NULL
) {
7637 if(cltype18
>= var_new_child
->type
->table_size
) {
7640 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
7643 if (unlikely(!var17
)) {
7644 var_class_name20
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7645 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name20
);
7646 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7562);
7650 nit__parser_prod___AParExprs___n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_cpar= on <self:AParExprs>*/
7657 /* method parser_prod#AParExprs#n_opar= for (self: AParExprs, TOpar) */
7658 void nit__parser_prod___AParExprs___n_opar_61d(val
* self
, val
* p0
) {
7659 val
* var_node
/* var node: TOpar */;
7661 self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_opar
].val
= var_node
; /* _n_opar on <self:AParExprs> */
7663 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
7664 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
7670 /* method parser_prod#AParExprs#n_cpar= for (self: AParExprs, TCpar) */
7671 void nit__parser_prod___AParExprs___n_cpar_61d(val
* self
, val
* p0
) {
7672 val
* var_node
/* var node: TCpar */;
7674 self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExprs> */
7676 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
7677 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
7683 /* method parser_prod#AParExprs#visit_all for (self: AParExprs, Visitor) */
7684 void nit__parser_prod___AParExprs___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7685 val
* var_v
/* var v: Visitor */;
7686 val
* var
/* : TOpar */;
7687 val
* var1
/* : ANodes[AExpr] */;
7688 val
* var3
/* : ANodes[AExpr] */;
7689 val
* var4
/* : TCpar */;
7691 var
= self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
7692 if (unlikely(var
== NULL
)) {
7693 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
7694 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7581);
7698 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7701 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7702 var3
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7703 if (unlikely(var3
== NULL
)) {
7704 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7705 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7713 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
7715 var4
= self
->attrs
[COLOR_nit__parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
7716 if (unlikely(var4
== NULL
)) {
7717 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
7718 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7583);
7722 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7726 /* method parser_prod#ABraExprs#init_abraexprs for (self: ABraExprs, nullable TObra, Collection[Object], nullable TCbra) */
7727 void nit__parser_prod___ABraExprs___init_abraexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7728 val
* var_n_obra
/* var n_obra: nullable TObra */;
7729 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7730 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
7731 val
* var
/* : ANodes[AExpr] */;
7732 val
* var4
/* : ANodes[AExpr] */;
7734 { /* Inline kernel#Object#init (self) on <self:ABraExprs> */
7741 if (unlikely(var_n_obra
== NULL
)) {
7742 PRINT_ERROR("Runtime error: %s", "Cast failed");
7743 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7593);
7746 self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraExprs> */
7747 if (var_n_obra
== NULL
) {
7748 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7749 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7594);
7752 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
7753 if (unlikely(var_n_obra
== NULL
)) {
7754 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7755 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7758 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
7763 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7764 var4
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7765 if (unlikely(var4
== NULL
)) {
7766 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7767 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7775 nit___nit__ANodes___unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7777 if (unlikely(var_n_cbra
== NULL
)) {
7778 PRINT_ERROR("Runtime error: %s", "Cast failed");
7779 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7596);
7782 self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraExprs> */
7783 if (var_n_cbra
== NULL
) {
7784 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7785 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7597);
7788 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
7789 if (unlikely(var_n_cbra
== NULL
)) {
7790 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7791 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7794 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
7800 /* method parser_prod#ABraExprs#replace_child for (self: ABraExprs, ANode, nullable ANode) */
7801 void nit__parser_prod___ABraExprs___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7802 val
* var_old_child
/* var old_child: ANode */;
7803 val
* var_new_child
/* var new_child: nullable ANode */;
7804 val
* var
/* : TObra */;
7805 short int var1
/* : Bool */;
7806 val
* var_other
/* var other: nullable Object */;
7807 short int var3
/* : Bool */;
7808 short int var5
/* : Bool */;
7809 short int var6
/* : Bool */;
7812 const char* var_class_name
;
7813 val
* var7
/* : ANodes[AExpr] */;
7814 val
* var9
/* : ANodes[AExpr] */;
7815 short int var10
/* : Bool */;
7816 val
* var11
/* : TCbra */;
7817 short int var12
/* : Bool */;
7818 short int var14
/* : Bool */;
7819 short int var16
/* : Bool */;
7820 short int var17
/* : Bool */;
7823 const char* var_class_name20
;
7826 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
7827 if (unlikely(var
== NULL
)) {
7828 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7602);
7833 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
7834 var_other
= var_old_child
;
7836 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
7837 var5
= var
== var_other
;
7849 /* <var_new_child:nullable ANode> isa TObra */
7850 cltype
= type_nit__TObra
.color
;
7851 idtype
= type_nit__TObra
.id
;
7852 if(var_new_child
== NULL
) {
7855 if(cltype
>= var_new_child
->type
->table_size
) {
7858 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7861 if (unlikely(!var6
)) {
7862 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7863 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
7864 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7603);
7868 nit__parser_prod___ABraExprs___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_obra= on <self:ABraExprs>*/
7874 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7875 var9
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7876 if (unlikely(var9
== NULL
)) {
7877 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7878 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7886 var10
= nit___nit__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
7892 var11
= self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
7893 if (unlikely(var11
== NULL
)) {
7894 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
7895 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7607);
7899 { /* Inline kernel#Object#== (var11,var_old_child) on <var11:TCbra> */
7900 var_other
= var_old_child
;
7902 { /* Inline kernel#Object#is_same_instance (var11,var_other) on <var11:TCbra> */
7903 var16
= var11
== var_other
;
7906 RET_LABEL15
:(void)0;
7911 RET_LABEL13
:(void)0;
7915 /* <var_new_child:nullable ANode> isa TCbra */
7916 cltype18
= type_nit__TCbra
.color
;
7917 idtype19
= type_nit__TCbra
.id
;
7918 if(var_new_child
== NULL
) {
7921 if(cltype18
>= var_new_child
->type
->table_size
) {
7924 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
7927 if (unlikely(!var17
)) {
7928 var_class_name20
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7929 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name20
);
7930 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7608);
7934 nit__parser_prod___ABraExprs___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_cbra= on <self:ABraExprs>*/
7941 /* method parser_prod#ABraExprs#n_obra= for (self: ABraExprs, TObra) */
7942 void nit__parser_prod___ABraExprs___n_obra_61d(val
* self
, val
* p0
) {
7943 val
* var_node
/* var node: TObra */;
7945 self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_obra
].val
= var_node
; /* _n_obra on <self:ABraExprs> */
7947 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
7948 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
7954 /* method parser_prod#ABraExprs#n_cbra= for (self: ABraExprs, TCbra) */
7955 void nit__parser_prod___ABraExprs___n_cbra_61d(val
* self
, val
* p0
) {
7956 val
* var_node
/* var node: TCbra */;
7958 self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraExprs> */
7960 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
7961 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
7967 /* method parser_prod#ABraExprs#visit_all for (self: ABraExprs, Visitor) */
7968 void nit__parser_prod___ABraExprs___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7969 val
* var_v
/* var v: Visitor */;
7970 val
* var
/* : TObra */;
7971 val
* var1
/* : ANodes[AExpr] */;
7972 val
* var3
/* : ANodes[AExpr] */;
7973 val
* var4
/* : TCbra */;
7975 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
7976 if (unlikely(var
== NULL
)) {
7977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7978 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7627);
7982 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7985 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7986 var3
= self
->attrs
[COLOR_nit__parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7987 if (unlikely(var3
== NULL
)) {
7988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7989 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2771);
7997 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
7999 var4
= self
->attrs
[COLOR_nit__parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
8000 if (unlikely(var4
== NULL
)) {
8001 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
8002 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7629);
8006 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8010 /* method parser_prod#APlusAssignOp#init_aplusassignop for (self: APlusAssignOp, nullable TPluseq) */
8011 void nit__parser_prod___APlusAssignOp___init_aplusassignop(val
* self
, val
* p0
) {
8012 val
* var_n_op
/* var n_op: nullable TPluseq */;
8014 { /* Inline kernel#Object#init (self) on <self:APlusAssignOp> */
8019 if (unlikely(var_n_op
== NULL
)) {
8020 PRINT_ERROR("Runtime error: %s", "Cast failed");
8021 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7637);
8024 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:APlusAssignOp> */
8025 if (var_n_op
== NULL
) {
8026 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8027 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7638);
8030 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPluseq> */
8031 if (unlikely(var_n_op
== NULL
)) {
8032 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8033 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8036 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPluseq> */
8042 /* method parser_prod#APlusAssignOp#replace_child for (self: APlusAssignOp, ANode, nullable ANode) */
8043 void nit__parser_prod___APlusAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8044 val
* var_old_child
/* var old_child: ANode */;
8045 val
* var_new_child
/* var new_child: nullable ANode */;
8046 val
* var
/* : Token */;
8047 short int var1
/* : Bool */;
8048 val
* var_other
/* var other: nullable Object */;
8049 short int var3
/* : Bool */;
8050 short int var5
/* : Bool */;
8051 short int var6
/* : Bool */;
8054 const char* var_class_name
;
8057 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APlusAssignOp> */
8058 if (unlikely(var
== NULL
)) {
8059 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8060 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7643);
8064 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8065 var_other
= var_old_child
;
8067 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8068 var5
= var
== var_other
;
8080 /* <var_new_child:nullable ANode> isa TPluseq */
8081 cltype
= type_nit__TPluseq
.color
;
8082 idtype
= type_nit__TPluseq
.id
;
8083 if(var_new_child
== NULL
) {
8086 if(cltype
>= var_new_child
->type
->table_size
) {
8089 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8092 if (unlikely(!var6
)) {
8093 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8094 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPluseq", var_class_name
);
8095 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7644);
8099 nit__parser_prod___APlusAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APlusAssignOp#n_op= on <self:APlusAssignOp>*/
8106 /* method parser_prod#APlusAssignOp#n_op= for (self: APlusAssignOp, Token) */
8107 void nit__parser_prod___APlusAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8108 val
* var_node
/* var node: Token */;
8110 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:APlusAssignOp> */
8112 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8113 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8119 /* method parser_prod#APlusAssignOp#visit_all for (self: APlusAssignOp, Visitor) */
8120 void nit__parser_prod___APlusAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8121 val
* var_v
/* var v: Visitor */;
8122 val
* var
/* : Token */;
8124 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APlusAssignOp> */
8125 if (unlikely(var
== NULL
)) {
8126 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8127 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7658);
8131 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8135 /* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: AMinusAssignOp, nullable TMinuseq) */
8136 void nit__parser_prod___AMinusAssignOp___init_aminusassignop(val
* self
, val
* p0
) {
8137 val
* var_n_op
/* var n_op: nullable TMinuseq */;
8139 { /* Inline kernel#Object#init (self) on <self:AMinusAssignOp> */
8144 if (unlikely(var_n_op
== NULL
)) {
8145 PRINT_ERROR("Runtime error: %s", "Cast failed");
8146 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7666);
8149 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:AMinusAssignOp> */
8150 if (var_n_op
== NULL
) {
8151 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8152 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7667);
8155 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TMinuseq> */
8156 if (unlikely(var_n_op
== NULL
)) {
8157 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8158 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8161 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TMinuseq> */
8167 /* method parser_prod#AMinusAssignOp#replace_child for (self: AMinusAssignOp, ANode, nullable ANode) */
8168 void nit__parser_prod___AMinusAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8169 val
* var_old_child
/* var old_child: ANode */;
8170 val
* var_new_child
/* var new_child: nullable ANode */;
8171 val
* var
/* : Token */;
8172 short int var1
/* : Bool */;
8173 val
* var_other
/* var other: nullable Object */;
8174 short int var3
/* : Bool */;
8175 short int var5
/* : Bool */;
8176 short int var6
/* : Bool */;
8179 const char* var_class_name
;
8182 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AMinusAssignOp> */
8183 if (unlikely(var
== NULL
)) {
8184 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8185 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7672);
8189 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8190 var_other
= var_old_child
;
8192 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8193 var5
= var
== var_other
;
8205 /* <var_new_child:nullable ANode> isa TMinuseq */
8206 cltype
= type_nit__TMinuseq
.color
;
8207 idtype
= type_nit__TMinuseq
.id
;
8208 if(var_new_child
== NULL
) {
8211 if(cltype
>= var_new_child
->type
->table_size
) {
8214 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8217 if (unlikely(!var6
)) {
8218 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8219 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinuseq", var_class_name
);
8220 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7673);
8224 nit__parser_prod___AMinusAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusAssignOp#n_op= on <self:AMinusAssignOp>*/
8231 /* method parser_prod#AMinusAssignOp#n_op= for (self: AMinusAssignOp, Token) */
8232 void nit__parser_prod___AMinusAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8233 val
* var_node
/* var node: Token */;
8235 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:AMinusAssignOp> */
8237 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8238 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8244 /* method parser_prod#AMinusAssignOp#visit_all for (self: AMinusAssignOp, Visitor) */
8245 void nit__parser_prod___AMinusAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8246 val
* var_v
/* var v: Visitor */;
8247 val
* var
/* : Token */;
8249 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AMinusAssignOp> */
8250 if (unlikely(var
== NULL
)) {
8251 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8252 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7687);
8256 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8260 /* method parser_prod#AStarAssignOp#init_astarassignop for (self: AStarAssignOp, nullable TStareq) */
8261 void nit__parser_prod___AStarAssignOp___init_astarassignop(val
* self
, val
* p0
) {
8262 val
* var_n_op
/* var n_op: nullable TStareq */;
8264 { /* Inline kernel#Object#init (self) on <self:AStarAssignOp> */
8269 if (unlikely(var_n_op
== NULL
)) {
8270 PRINT_ERROR("Runtime error: %s", "Cast failed");
8271 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7695);
8274 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:AStarAssignOp> */
8275 if (var_n_op
== NULL
) {
8276 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8277 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7696);
8280 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStareq> */
8281 if (unlikely(var_n_op
== NULL
)) {
8282 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8283 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8286 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStareq> */
8292 /* method parser_prod#AStarAssignOp#replace_child for (self: AStarAssignOp, ANode, nullable ANode) */
8293 void nit__parser_prod___AStarAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8294 val
* var_old_child
/* var old_child: ANode */;
8295 val
* var_new_child
/* var new_child: nullable ANode */;
8296 val
* var
/* : Token */;
8297 short int var1
/* : Bool */;
8298 val
* var_other
/* var other: nullable Object */;
8299 short int var3
/* : Bool */;
8300 short int var5
/* : Bool */;
8301 short int var6
/* : Bool */;
8304 const char* var_class_name
;
8307 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AStarAssignOp> */
8308 if (unlikely(var
== NULL
)) {
8309 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8310 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7701);
8314 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8315 var_other
= var_old_child
;
8317 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8318 var5
= var
== var_other
;
8330 /* <var_new_child:nullable ANode> isa TStareq */
8331 cltype
= type_nit__TStareq
.color
;
8332 idtype
= type_nit__TStareq
.id
;
8333 if(var_new_child
== NULL
) {
8336 if(cltype
>= var_new_child
->type
->table_size
) {
8339 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8342 if (unlikely(!var6
)) {
8343 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8344 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStareq", var_class_name
);
8345 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7702);
8349 nit__parser_prod___AStarAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarAssignOp#n_op= on <self:AStarAssignOp>*/
8356 /* method parser_prod#AStarAssignOp#n_op= for (self: AStarAssignOp, Token) */
8357 void nit__parser_prod___AStarAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8358 val
* var_node
/* var node: Token */;
8360 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:AStarAssignOp> */
8362 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8363 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8369 /* method parser_prod#AStarAssignOp#visit_all for (self: AStarAssignOp, Visitor) */
8370 void nit__parser_prod___AStarAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8371 val
* var_v
/* var v: Visitor */;
8372 val
* var
/* : Token */;
8374 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AStarAssignOp> */
8375 if (unlikely(var
== NULL
)) {
8376 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8377 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7716);
8381 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8385 /* method parser_prod#ASlashAssignOp#init_aslashassignop for (self: ASlashAssignOp, nullable TSlasheq) */
8386 void nit__parser_prod___ASlashAssignOp___init_aslashassignop(val
* self
, val
* p0
) {
8387 val
* var_n_op
/* var n_op: nullable TSlasheq */;
8389 { /* Inline kernel#Object#init (self) on <self:ASlashAssignOp> */
8394 if (unlikely(var_n_op
== NULL
)) {
8395 PRINT_ERROR("Runtime error: %s", "Cast failed");
8396 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7724);
8399 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:ASlashAssignOp> */
8400 if (var_n_op
== NULL
) {
8401 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7725);
8405 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TSlasheq> */
8406 if (unlikely(var_n_op
== NULL
)) {
8407 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8408 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8411 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TSlasheq> */
8417 /* method parser_prod#ASlashAssignOp#replace_child for (self: ASlashAssignOp, ANode, nullable ANode) */
8418 void nit__parser_prod___ASlashAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8419 val
* var_old_child
/* var old_child: ANode */;
8420 val
* var_new_child
/* var new_child: nullable ANode */;
8421 val
* var
/* : Token */;
8422 short int var1
/* : Bool */;
8423 val
* var_other
/* var other: nullable Object */;
8424 short int var3
/* : Bool */;
8425 short int var5
/* : Bool */;
8426 short int var6
/* : Bool */;
8429 const char* var_class_name
;
8432 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ASlashAssignOp> */
8433 if (unlikely(var
== NULL
)) {
8434 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8435 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7730);
8439 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8440 var_other
= var_old_child
;
8442 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8443 var5
= var
== var_other
;
8455 /* <var_new_child:nullable ANode> isa TSlasheq */
8456 cltype
= type_nit__TSlasheq
.color
;
8457 idtype
= type_nit__TSlasheq
.id
;
8458 if(var_new_child
== NULL
) {
8461 if(cltype
>= var_new_child
->type
->table_size
) {
8464 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8467 if (unlikely(!var6
)) {
8468 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8469 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlasheq", var_class_name
);
8470 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7731);
8474 nit__parser_prod___ASlashAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashAssignOp#n_op= on <self:ASlashAssignOp>*/
8481 /* method parser_prod#ASlashAssignOp#n_op= for (self: ASlashAssignOp, Token) */
8482 void nit__parser_prod___ASlashAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8483 val
* var_node
/* var node: Token */;
8485 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:ASlashAssignOp> */
8487 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8488 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8494 /* method parser_prod#ASlashAssignOp#visit_all for (self: ASlashAssignOp, Visitor) */
8495 void nit__parser_prod___ASlashAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8496 val
* var_v
/* var v: Visitor */;
8497 val
* var
/* : Token */;
8499 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ASlashAssignOp> */
8500 if (unlikely(var
== NULL
)) {
8501 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8502 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7745);
8506 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8510 /* method parser_prod#APercentAssignOp#init_apercentassignop for (self: APercentAssignOp, nullable TPercenteq) */
8511 void nit__parser_prod___APercentAssignOp___init_apercentassignop(val
* self
, val
* p0
) {
8512 val
* var_n_op
/* var n_op: nullable TPercenteq */;
8514 { /* Inline kernel#Object#init (self) on <self:APercentAssignOp> */
8519 if (unlikely(var_n_op
== NULL
)) {
8520 PRINT_ERROR("Runtime error: %s", "Cast failed");
8521 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7753);
8524 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:APercentAssignOp> */
8525 if (var_n_op
== NULL
) {
8526 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8527 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7754);
8530 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPercenteq> */
8531 if (unlikely(var_n_op
== NULL
)) {
8532 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8533 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8536 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPercenteq> */
8542 /* method parser_prod#APercentAssignOp#replace_child for (self: APercentAssignOp, ANode, nullable ANode) */
8543 void nit__parser_prod___APercentAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8544 val
* var_old_child
/* var old_child: ANode */;
8545 val
* var_new_child
/* var new_child: nullable ANode */;
8546 val
* var
/* : Token */;
8547 short int var1
/* : Bool */;
8548 val
* var_other
/* var other: nullable Object */;
8549 short int var3
/* : Bool */;
8550 short int var5
/* : Bool */;
8551 short int var6
/* : Bool */;
8554 const char* var_class_name
;
8557 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APercentAssignOp> */
8558 if (unlikely(var
== NULL
)) {
8559 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8560 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7759);
8564 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8565 var_other
= var_old_child
;
8567 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8568 var5
= var
== var_other
;
8580 /* <var_new_child:nullable ANode> isa TPercenteq */
8581 cltype
= type_nit__TPercenteq
.color
;
8582 idtype
= type_nit__TPercenteq
.id
;
8583 if(var_new_child
== NULL
) {
8586 if(cltype
>= var_new_child
->type
->table_size
) {
8589 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8592 if (unlikely(!var6
)) {
8593 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8594 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercenteq", var_class_name
);
8595 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7760);
8599 nit__parser_prod___APercentAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APercentAssignOp#n_op= on <self:APercentAssignOp>*/
8606 /* method parser_prod#APercentAssignOp#n_op= for (self: APercentAssignOp, Token) */
8607 void nit__parser_prod___APercentAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8608 val
* var_node
/* var node: Token */;
8610 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:APercentAssignOp> */
8612 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8613 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8619 /* method parser_prod#APercentAssignOp#visit_all for (self: APercentAssignOp, Visitor) */
8620 void nit__parser_prod___APercentAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8621 val
* var_v
/* var v: Visitor */;
8622 val
* var
/* : Token */;
8624 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APercentAssignOp> */
8625 if (unlikely(var
== NULL
)) {
8626 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8627 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7774);
8631 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8635 /* method parser_prod#AStarstarAssignOp#init_astarstarassignop for (self: AStarstarAssignOp, nullable TStarstareq) */
8636 void nit__parser_prod___AStarstarAssignOp___init_astarstarassignop(val
* self
, val
* p0
) {
8637 val
* var_n_op
/* var n_op: nullable TStarstareq */;
8639 { /* Inline kernel#Object#init (self) on <self:AStarstarAssignOp> */
8644 if (unlikely(var_n_op
== NULL
)) {
8645 PRINT_ERROR("Runtime error: %s", "Cast failed");
8646 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7782);
8649 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:AStarstarAssignOp> */
8650 if (var_n_op
== NULL
) {
8651 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8652 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7783);
8655 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStarstareq> */
8656 if (unlikely(var_n_op
== NULL
)) {
8657 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8658 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8661 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStarstareq> */
8667 /* method parser_prod#AStarstarAssignOp#replace_child for (self: AStarstarAssignOp, ANode, nullable ANode) */
8668 void nit__parser_prod___AStarstarAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8669 val
* var_old_child
/* var old_child: ANode */;
8670 val
* var_new_child
/* var new_child: nullable ANode */;
8671 val
* var
/* : Token */;
8672 short int var1
/* : Bool */;
8673 val
* var_other
/* var other: nullable Object */;
8674 short int var3
/* : Bool */;
8675 short int var5
/* : Bool */;
8676 short int var6
/* : Bool */;
8679 const char* var_class_name
;
8682 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AStarstarAssignOp> */
8683 if (unlikely(var
== NULL
)) {
8684 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8685 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7788);
8689 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8690 var_other
= var_old_child
;
8692 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8693 var5
= var
== var_other
;
8705 /* <var_new_child:nullable ANode> isa TStarstareq */
8706 cltype
= type_nit__TStarstareq
.color
;
8707 idtype
= type_nit__TStarstareq
.id
;
8708 if(var_new_child
== NULL
) {
8711 if(cltype
>= var_new_child
->type
->table_size
) {
8714 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8717 if (unlikely(!var6
)) {
8718 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8719 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstareq", var_class_name
);
8720 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7789);
8724 nit__parser_prod___AStarstarAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarstarAssignOp#n_op= on <self:AStarstarAssignOp>*/
8731 /* method parser_prod#AStarstarAssignOp#n_op= for (self: AStarstarAssignOp, Token) */
8732 void nit__parser_prod___AStarstarAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8733 val
* var_node
/* var node: Token */;
8735 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:AStarstarAssignOp> */
8737 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8738 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8744 /* method parser_prod#AStarstarAssignOp#visit_all for (self: AStarstarAssignOp, Visitor) */
8745 void nit__parser_prod___AStarstarAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8746 val
* var_v
/* var v: Visitor */;
8747 val
* var
/* : Token */;
8749 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AStarstarAssignOp> */
8750 if (unlikely(var
== NULL
)) {
8751 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8752 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7803);
8756 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8760 /* method parser_prod#APipeAssignOp#init_apipeassignop for (self: APipeAssignOp, nullable TPipeeq) */
8761 void nit__parser_prod___APipeAssignOp___init_apipeassignop(val
* self
, val
* p0
) {
8762 val
* var_n_op
/* var n_op: nullable TPipeeq */;
8764 { /* Inline kernel#Object#init (self) on <self:APipeAssignOp> */
8769 if (unlikely(var_n_op
== NULL
)) {
8770 PRINT_ERROR("Runtime error: %s", "Cast failed");
8771 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7811);
8774 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:APipeAssignOp> */
8775 if (var_n_op
== NULL
) {
8776 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8777 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7812);
8780 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPipeeq> */
8781 if (unlikely(var_n_op
== NULL
)) {
8782 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8783 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8786 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPipeeq> */
8792 /* method parser_prod#APipeAssignOp#replace_child for (self: APipeAssignOp, ANode, nullable ANode) */
8793 void nit__parser_prod___APipeAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8794 val
* var_old_child
/* var old_child: ANode */;
8795 val
* var_new_child
/* var new_child: nullable ANode */;
8796 val
* var
/* : Token */;
8797 short int var1
/* : Bool */;
8798 val
* var_other
/* var other: nullable Object */;
8799 short int var3
/* : Bool */;
8800 short int var5
/* : Bool */;
8801 short int var6
/* : Bool */;
8804 const char* var_class_name
;
8807 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APipeAssignOp> */
8808 if (unlikely(var
== NULL
)) {
8809 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8810 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7817);
8814 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8815 var_other
= var_old_child
;
8817 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8818 var5
= var
== var_other
;
8830 /* <var_new_child:nullable ANode> isa TPipeeq */
8831 cltype
= type_nit__TPipeeq
.color
;
8832 idtype
= type_nit__TPipeeq
.id
;
8833 if(var_new_child
== NULL
) {
8836 if(cltype
>= var_new_child
->type
->table_size
) {
8839 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8842 if (unlikely(!var6
)) {
8843 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8844 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipeeq", var_class_name
);
8845 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7818);
8849 nit__parser_prod___APipeAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APipeAssignOp#n_op= on <self:APipeAssignOp>*/
8856 /* method parser_prod#APipeAssignOp#n_op= for (self: APipeAssignOp, Token) */
8857 void nit__parser_prod___APipeAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8858 val
* var_node
/* var node: Token */;
8860 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:APipeAssignOp> */
8862 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8863 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8869 /* method parser_prod#APipeAssignOp#visit_all for (self: APipeAssignOp, Visitor) */
8870 void nit__parser_prod___APipeAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8871 val
* var_v
/* var v: Visitor */;
8872 val
* var
/* : Token */;
8874 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:APipeAssignOp> */
8875 if (unlikely(var
== NULL
)) {
8876 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8877 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7832);
8881 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8885 /* method parser_prod#ACaretAssignOp#init_acaretassignop for (self: ACaretAssignOp, nullable TCareteq) */
8886 void nit__parser_prod___ACaretAssignOp___init_acaretassignop(val
* self
, val
* p0
) {
8887 val
* var_n_op
/* var n_op: nullable TCareteq */;
8889 { /* Inline kernel#Object#init (self) on <self:ACaretAssignOp> */
8894 if (unlikely(var_n_op
== NULL
)) {
8895 PRINT_ERROR("Runtime error: %s", "Cast failed");
8896 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7840);
8899 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:ACaretAssignOp> */
8900 if (var_n_op
== NULL
) {
8901 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8902 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7841);
8905 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TCareteq> */
8906 if (unlikely(var_n_op
== NULL
)) {
8907 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8908 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8911 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TCareteq> */
8917 /* method parser_prod#ACaretAssignOp#replace_child for (self: ACaretAssignOp, ANode, nullable ANode) */
8918 void nit__parser_prod___ACaretAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8919 val
* var_old_child
/* var old_child: ANode */;
8920 val
* var_new_child
/* var new_child: nullable ANode */;
8921 val
* var
/* : Token */;
8922 short int var1
/* : Bool */;
8923 val
* var_other
/* var other: nullable Object */;
8924 short int var3
/* : Bool */;
8925 short int var5
/* : Bool */;
8926 short int var6
/* : Bool */;
8929 const char* var_class_name
;
8932 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ACaretAssignOp> */
8933 if (unlikely(var
== NULL
)) {
8934 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
8935 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7846);
8939 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8940 var_other
= var_old_child
;
8942 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8943 var5
= var
== var_other
;
8955 /* <var_new_child:nullable ANode> isa TCareteq */
8956 cltype
= type_nit__TCareteq
.color
;
8957 idtype
= type_nit__TCareteq
.id
;
8958 if(var_new_child
== NULL
) {
8961 if(cltype
>= var_new_child
->type
->table_size
) {
8964 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8967 if (unlikely(!var6
)) {
8968 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8969 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCareteq", var_class_name
);
8970 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7847);
8974 nit__parser_prod___ACaretAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretAssignOp#n_op= on <self:ACaretAssignOp>*/
8981 /* method parser_prod#ACaretAssignOp#n_op= for (self: ACaretAssignOp, Token) */
8982 void nit__parser_prod___ACaretAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
8983 val
* var_node
/* var node: Token */;
8985 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:ACaretAssignOp> */
8987 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8988 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8994 /* method parser_prod#ACaretAssignOp#visit_all for (self: ACaretAssignOp, Visitor) */
8995 void nit__parser_prod___ACaretAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8996 val
* var_v
/* var v: Visitor */;
8997 val
* var
/* : Token */;
8999 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ACaretAssignOp> */
9000 if (unlikely(var
== NULL
)) {
9001 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9002 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7861);
9006 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9010 /* method parser_prod#AAmpAssignOp#init_aampassignop for (self: AAmpAssignOp, nullable TAmpeq) */
9011 void nit__parser_prod___AAmpAssignOp___init_aampassignop(val
* self
, val
* p0
) {
9012 val
* var_n_op
/* var n_op: nullable TAmpeq */;
9014 { /* Inline kernel#Object#init (self) on <self:AAmpAssignOp> */
9019 if (unlikely(var_n_op
== NULL
)) {
9020 PRINT_ERROR("Runtime error: %s", "Cast failed");
9021 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7869);
9024 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:AAmpAssignOp> */
9025 if (var_n_op
== NULL
) {
9026 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9027 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7870);
9030 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TAmpeq> */
9031 if (unlikely(var_n_op
== NULL
)) {
9032 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9033 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9036 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TAmpeq> */
9042 /* method parser_prod#AAmpAssignOp#replace_child for (self: AAmpAssignOp, ANode, nullable ANode) */
9043 void nit__parser_prod___AAmpAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9044 val
* var_old_child
/* var old_child: ANode */;
9045 val
* var_new_child
/* var new_child: nullable ANode */;
9046 val
* var
/* : Token */;
9047 short int var1
/* : Bool */;
9048 val
* var_other
/* var other: nullable Object */;
9049 short int var3
/* : Bool */;
9050 short int var5
/* : Bool */;
9051 short int var6
/* : Bool */;
9054 const char* var_class_name
;
9057 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AAmpAssignOp> */
9058 if (unlikely(var
== NULL
)) {
9059 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9060 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7875);
9064 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
9065 var_other
= var_old_child
;
9067 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
9068 var5
= var
== var_other
;
9080 /* <var_new_child:nullable ANode> isa TAmpeq */
9081 cltype
= type_nit__TAmpeq
.color
;
9082 idtype
= type_nit__TAmpeq
.id
;
9083 if(var_new_child
== NULL
) {
9086 if(cltype
>= var_new_child
->type
->table_size
) {
9089 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9092 if (unlikely(!var6
)) {
9093 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9094 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmpeq", var_class_name
);
9095 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7876);
9099 nit__parser_prod___AAmpAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpAssignOp#n_op= on <self:AAmpAssignOp>*/
9106 /* method parser_prod#AAmpAssignOp#n_op= for (self: AAmpAssignOp, Token) */
9107 void nit__parser_prod___AAmpAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
9108 val
* var_node
/* var node: Token */;
9110 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:AAmpAssignOp> */
9112 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
9113 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
9119 /* method parser_prod#AAmpAssignOp#visit_all for (self: AAmpAssignOp, Visitor) */
9120 void nit__parser_prod___AAmpAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9121 val
* var_v
/* var v: Visitor */;
9122 val
* var
/* : Token */;
9124 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AAmpAssignOp> */
9125 if (unlikely(var
== NULL
)) {
9126 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9127 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7890);
9131 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9135 /* method parser_prod#ALlAssignOp#init_allassignop for (self: ALlAssignOp, nullable TLleq) */
9136 void nit__parser_prod___ALlAssignOp___init_allassignop(val
* self
, val
* p0
) {
9137 val
* var_n_op
/* var n_op: nullable TLleq */;
9139 { /* Inline kernel#Object#init (self) on <self:ALlAssignOp> */
9144 if (unlikely(var_n_op
== NULL
)) {
9145 PRINT_ERROR("Runtime error: %s", "Cast failed");
9146 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7898);
9149 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:ALlAssignOp> */
9150 if (var_n_op
== NULL
) {
9151 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9152 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7899);
9155 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLleq> */
9156 if (unlikely(var_n_op
== NULL
)) {
9157 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9158 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9161 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLleq> */
9167 /* method parser_prod#ALlAssignOp#replace_child for (self: ALlAssignOp, ANode, nullable ANode) */
9168 void nit__parser_prod___ALlAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9169 val
* var_old_child
/* var old_child: ANode */;
9170 val
* var_new_child
/* var new_child: nullable ANode */;
9171 val
* var
/* : Token */;
9172 short int var1
/* : Bool */;
9173 val
* var_other
/* var other: nullable Object */;
9174 short int var3
/* : Bool */;
9175 short int var5
/* : Bool */;
9176 short int var6
/* : Bool */;
9179 const char* var_class_name
;
9182 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ALlAssignOp> */
9183 if (unlikely(var
== NULL
)) {
9184 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9185 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7904);
9189 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
9190 var_other
= var_old_child
;
9192 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
9193 var5
= var
== var_other
;
9205 /* <var_new_child:nullable ANode> isa TLleq */
9206 cltype
= type_nit__TLleq
.color
;
9207 idtype
= type_nit__TLleq
.id
;
9208 if(var_new_child
== NULL
) {
9211 if(cltype
>= var_new_child
->type
->table_size
) {
9214 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9217 if (unlikely(!var6
)) {
9218 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9219 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLleq", var_class_name
);
9220 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7905);
9224 nit__parser_prod___ALlAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALlAssignOp#n_op= on <self:ALlAssignOp>*/
9231 /* method parser_prod#ALlAssignOp#n_op= for (self: ALlAssignOp, Token) */
9232 void nit__parser_prod___ALlAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
9233 val
* var_node
/* var node: Token */;
9235 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:ALlAssignOp> */
9237 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
9238 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
9244 /* method parser_prod#ALlAssignOp#visit_all for (self: ALlAssignOp, Visitor) */
9245 void nit__parser_prod___ALlAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9246 val
* var_v
/* var v: Visitor */;
9247 val
* var
/* : Token */;
9249 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:ALlAssignOp> */
9250 if (unlikely(var
== NULL
)) {
9251 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9252 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7919);
9256 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9260 /* method parser_prod#AGgAssignOp#init_aggassignop for (self: AGgAssignOp, nullable TGgeq) */
9261 void nit__parser_prod___AGgAssignOp___init_aggassignop(val
* self
, val
* p0
) {
9262 val
* var_n_op
/* var n_op: nullable TGgeq */;
9264 { /* Inline kernel#Object#init (self) on <self:AGgAssignOp> */
9269 if (unlikely(var_n_op
== NULL
)) {
9270 PRINT_ERROR("Runtime error: %s", "Cast failed");
9271 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7927);
9274 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_n_op
; /* _n_op on <self:AGgAssignOp> */
9275 if (var_n_op
== NULL
) {
9276 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9277 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7928);
9280 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGgeq> */
9281 if (unlikely(var_n_op
== NULL
)) {
9282 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9283 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9286 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGgeq> */
9292 /* method parser_prod#AGgAssignOp#replace_child for (self: AGgAssignOp, ANode, nullable ANode) */
9293 void nit__parser_prod___AGgAssignOp___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9294 val
* var_old_child
/* var old_child: ANode */;
9295 val
* var_new_child
/* var new_child: nullable ANode */;
9296 val
* var
/* : Token */;
9297 short int var1
/* : Bool */;
9298 val
* var_other
/* var other: nullable Object */;
9299 short int var3
/* : Bool */;
9300 short int var5
/* : Bool */;
9301 short int var6
/* : Bool */;
9304 const char* var_class_name
;
9307 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AGgAssignOp> */
9308 if (unlikely(var
== NULL
)) {
9309 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9310 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7933);
9314 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
9315 var_other
= var_old_child
;
9317 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
9318 var5
= var
== var_other
;
9330 /* <var_new_child:nullable ANode> isa TGgeq */
9331 cltype
= type_nit__TGgeq
.color
;
9332 idtype
= type_nit__TGgeq
.id
;
9333 if(var_new_child
== NULL
) {
9336 if(cltype
>= var_new_child
->type
->table_size
) {
9339 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9342 if (unlikely(!var6
)) {
9343 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9344 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGgeq", var_class_name
);
9345 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7934);
9349 nit__parser_prod___AGgAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGgAssignOp#n_op= on <self:AGgAssignOp>*/
9356 /* method parser_prod#AGgAssignOp#n_op= for (self: AGgAssignOp, Token) */
9357 void nit__parser_prod___AGgAssignOp___nit__parser_nodes__AAssignOp__n_op_61d(val
* self
, val
* p0
) {
9358 val
* var_node
/* var node: Token */;
9360 self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
= var_node
; /* _n_op on <self:AGgAssignOp> */
9362 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
9363 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
9369 /* method parser_prod#AGgAssignOp#visit_all for (self: AGgAssignOp, Visitor) */
9370 void nit__parser_prod___AGgAssignOp___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9371 val
* var_v
/* var v: Visitor */;
9372 val
* var
/* : Token */;
9374 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignOp___n_op
].val
; /* _n_op on <self:AGgAssignOp> */
9375 if (unlikely(var
== NULL
)) {
9376 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
9377 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7948);
9381 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9385 /* method parser_prod#AModuleName#init_amodulename for (self: AModuleName, nullable TQuad, Collection[Object], nullable TId) */
9386 void nit__parser_prod___AModuleName___init_amodulename(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
9387 val
* var_n_quad
/* var n_quad: nullable TQuad */;
9388 val
* var_n_path
/* var n_path: Collection[Object] */;
9389 val
* var_n_id
/* var n_id: nullable TId */;
9390 short int var
/* : Bool */;
9391 short int var2
/* : Bool */;
9392 val
* var_other
/* var other: nullable Object */;
9393 short int var4
/* : Bool */;
9394 short int var5
/* : Bool */;
9395 val
* var7
/* : ANodes[TId] */;
9396 val
* var9
/* : ANodes[TId] */;
9398 { /* Inline kernel#Object#init (self) on <self:AModuleName> */
9405 self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_quad
].val
= var_n_quad
; /* _n_quad on <self:AModuleName> */
9406 if (var_n_quad
== NULL
) {
9407 var
= 0; /* is null */
9409 var
= 1; /* arg is null and recv is not */
9412 { /* Inline kernel#Object#!= (var_n_quad,((val*)NULL)) on <var_n_quad:nullable TQuad> */
9413 var_other
= ((val
*)NULL
);
9415 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_quad
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_quad
, var_other
); /* == on <var_n_quad:nullable TQuad(TQuad)>*/
9426 { /* Inline parser_nodes#ANode#parent= (var_n_quad,self) on <var_n_quad:nullable TQuad(TQuad)> */
9427 var_n_quad
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_quad:nullable TQuad(TQuad)> */
9434 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
9435 var9
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
9436 if (unlikely(var9
== NULL
)) {
9437 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
9438 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2897);
9446 nit___nit__ANodes___unsafe_add_all(var7
, var_n_path
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[TId]>*/
9448 if (unlikely(var_n_id
== NULL
)) {
9449 PRINT_ERROR("Runtime error: %s", "Cast failed");
9450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7961);
9453 self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_id
].val
= var_n_id
; /* _n_id on <self:AModuleName> */
9454 if (var_n_id
== NULL
) {
9455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9456 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7962);
9459 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
9460 if (unlikely(var_n_id
== NULL
)) {
9461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9462 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9465 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
9466 RET_LABEL10
:(void)0;
9471 /* method parser_prod#AModuleName#replace_child for (self: AModuleName, ANode, nullable ANode) */
9472 void nit__parser_prod___AModuleName___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9473 val
* var_old_child
/* var old_child: ANode */;
9474 val
* var_new_child
/* var new_child: nullable ANode */;
9475 val
* var
/* : nullable TQuad */;
9476 short int var1
/* : Bool */;
9477 short int var2
/* : Bool */;
9478 val
* var_other
/* var other: nullable Object */;
9479 short int var4
/* : Bool */;
9480 short int var6
/* : Bool */;
9481 short int var7
/* : Bool */;
9484 const char* var_class_name
;
9485 val
* var8
/* : ANodes[TId] */;
9486 val
* var10
/* : ANodes[TId] */;
9487 short int var11
/* : Bool */;
9488 val
* var12
/* : TId */;
9489 short int var13
/* : Bool */;
9490 short int var15
/* : Bool */;
9491 short int var17
/* : Bool */;
9492 short int var18
/* : Bool */;
9495 const char* var_class_name21
;
9498 var
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
9500 var1
= 0; /* <var_old_child:ANode> cannot be null */
9502 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TQuad> */
9503 var_other
= var_old_child
;
9505 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TQuad(TQuad)> */
9506 var6
= var
== var_other
;
9519 /* <var_new_child:nullable ANode> isa nullable TQuad */
9520 cltype
= type_nullable__nit__TQuad
.color
;
9521 idtype
= type_nullable__nit__TQuad
.id
;
9522 if(var_new_child
== NULL
) {
9525 if(cltype
>= var_new_child
->type
->table_size
) {
9528 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9531 if (unlikely(!var7
)) {
9532 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9533 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TQuad", var_class_name
);
9534 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7968);
9538 nit__parser_prod___AModuleName___n_quad_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_quad= on <self:AModuleName>*/
9544 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
9545 var10
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
9546 if (unlikely(var10
== NULL
)) {
9547 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
9548 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2897);
9556 var11
= nit___nit__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
9562 var12
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
9563 if (unlikely(var12
== NULL
)) {
9564 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
9565 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7972);
9569 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TId> */
9570 var_other
= var_old_child
;
9572 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TId> */
9573 var17
= var12
== var_other
;
9576 RET_LABEL16
:(void)0;
9581 RET_LABEL14
:(void)0;
9585 /* <var_new_child:nullable ANode> isa TId */
9586 cltype19
= type_nit__TId
.color
;
9587 idtype20
= type_nit__TId
.id
;
9588 if(var_new_child
== NULL
) {
9591 if(cltype19
>= var_new_child
->type
->table_size
) {
9594 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
9597 if (unlikely(!var18
)) {
9598 var_class_name21
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9599 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name21
);
9600 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7973);
9604 nit__parser_prod___AModuleName___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_id= on <self:AModuleName>*/
9611 /* method parser_prod#AModuleName#n_quad= for (self: AModuleName, nullable TQuad) */
9612 void nit__parser_prod___AModuleName___n_quad_61d(val
* self
, val
* p0
) {
9613 val
* var_node
/* var node: nullable TQuad */;
9614 short int var
/* : Bool */;
9615 short int var1
/* : Bool */;
9616 val
* var_other
/* var other: nullable Object */;
9617 short int var3
/* : Bool */;
9618 short int var4
/* : Bool */;
9620 self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_quad
].val
= var_node
; /* _n_quad on <self:AModuleName> */
9621 if (var_node
== NULL
) {
9622 var
= 0; /* is null */
9624 var
= 1; /* arg is null and recv is not */
9627 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TQuad> */
9628 var_other
= ((val
*)NULL
);
9630 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 TQuad(TQuad)>*/
9641 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TQuad(TQuad)> */
9642 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TQuad(TQuad)> */
9650 /* method parser_prod#AModuleName#n_id= for (self: AModuleName, TId) */
9651 void nit__parser_prod___AModuleName___n_id_61d(val
* self
, val
* p0
) {
9652 val
* var_node
/* var node: TId */;
9654 self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_id
].val
= var_node
; /* _n_id on <self:AModuleName> */
9656 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
9657 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
9663 /* method parser_prod#AModuleName#visit_all for (self: AModuleName, Visitor) */
9664 void nit__parser_prod___AModuleName___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9665 val
* var_v
/* var v: Visitor */;
9666 val
* var
/* : nullable TQuad */;
9667 val
* var1
/* : ANodes[TId] */;
9668 val
* var3
/* : ANodes[TId] */;
9669 val
* var4
/* : TId */;
9671 var
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
9673 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9676 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
9677 var3
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
9678 if (unlikely(var3
== NULL
)) {
9679 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
9680 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2897);
9688 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[TId]>*/
9690 var4
= self
->attrs
[COLOR_nit__parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
9691 if (unlikely(var4
== NULL
)) {
9692 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
9693 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 7994);
9697 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9701 /* method parser_prod#AExternCalls#init_aexterncalls for (self: AExternCalls, nullable TKwimport, Collection[Object]) */
9702 void nit__parser_prod___AExternCalls___init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
9703 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
9704 val
* var_n_extern_calls
/* var n_extern_calls: Collection[Object] */;
9705 val
* var
/* : ANodes[AExternCall] */;
9706 val
* var4
/* : ANodes[AExternCall] */;
9708 { /* Inline kernel#Object#init (self) on <self:AExternCalls> */
9712 var_n_kwimport
= p0
;
9713 var_n_extern_calls
= p1
;
9714 if (unlikely(var_n_kwimport
== NULL
)) {
9715 PRINT_ERROR("Runtime error: %s", "Cast failed");
9716 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8003);
9719 self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AExternCalls> */
9720 if (var_n_kwimport
== NULL
) {
9721 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9722 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8004);
9725 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
9726 if (unlikely(var_n_kwimport
== NULL
)) {
9727 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9728 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9731 var_n_kwimport
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
9736 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
9737 var4
= self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
9738 if (unlikely(var4
== NULL
)) {
9739 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
9740 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1415);
9748 nit___nit__ANodes___unsafe_add_all(var
, var_n_extern_calls
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExternCall]>*/
9752 /* method parser_prod#AExternCalls#replace_child for (self: AExternCalls, ANode, nullable ANode) */
9753 void nit__parser_prod___AExternCalls___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9754 val
* var_old_child
/* var old_child: ANode */;
9755 val
* var_new_child
/* var new_child: nullable ANode */;
9756 val
* var
/* : TKwimport */;
9757 short int var1
/* : Bool */;
9758 val
* var_other
/* var other: nullable Object */;
9759 short int var3
/* : Bool */;
9760 short int var5
/* : Bool */;
9761 short int var6
/* : Bool */;
9764 const char* var_class_name
;
9765 val
* var7
/* : ANodes[AExternCall] */;
9766 val
* var9
/* : ANodes[AExternCall] */;
9767 short int var10
/* : Bool */;
9770 var
= self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
9771 if (unlikely(var
== NULL
)) {
9772 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
9773 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8010);
9777 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwimport> */
9778 var_other
= var_old_child
;
9780 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwimport> */
9781 var5
= var
== var_other
;
9793 /* <var_new_child:nullable ANode> isa TKwimport */
9794 cltype
= type_nit__TKwimport
.color
;
9795 idtype
= type_nit__TKwimport
.id
;
9796 if(var_new_child
== NULL
) {
9799 if(cltype
>= var_new_child
->type
->table_size
) {
9802 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9805 if (unlikely(!var6
)) {
9806 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9807 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name
);
9808 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8011);
9812 nit__parser_prod___AExternCalls___n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCalls#n_kwimport= on <self:AExternCalls>*/
9818 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
9819 var9
= self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
9820 if (unlikely(var9
== NULL
)) {
9821 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
9822 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1415);
9830 var10
= nit___nit__ANodes___replace_child(var7
, var_old_child
, var_new_child
);
9838 /* method parser_prod#AExternCalls#n_kwimport= for (self: AExternCalls, TKwimport) */
9839 void nit__parser_prod___AExternCalls___n_kwimport_61d(val
* self
, val
* p0
) {
9840 val
* var_node
/* var node: TKwimport */;
9842 self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AExternCalls> */
9844 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
9845 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
9851 /* method parser_prod#AExternCalls#visit_all for (self: AExternCalls, Visitor) */
9852 void nit__parser_prod___AExternCalls___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9853 val
* var_v
/* var v: Visitor */;
9854 val
* var
/* : TKwimport */;
9855 val
* var1
/* : ANodes[AExternCall] */;
9856 val
* var3
/* : ANodes[AExternCall] */;
9858 var
= self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
9859 if (unlikely(var
== NULL
)) {
9860 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
9861 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8026);
9865 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9868 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
9869 var3
= self
->attrs
[COLOR_nit__parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
9870 if (unlikely(var3
== NULL
)) {
9871 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
9872 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1415);
9880 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExternCall]>*/
9884 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: ASuperExternCall, nullable TKwsuper) */
9885 void nit__parser_prod___ASuperExternCall___init_asuperexterncall(val
* self
, val
* p0
) {
9886 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
9888 { /* Inline kernel#Object#init (self) on <self:ASuperExternCall> */
9893 if (unlikely(var_n_kwsuper
== NULL
)) {
9894 PRINT_ERROR("Runtime error: %s", "Cast failed");
9895 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8050);
9898 self
->attrs
[COLOR_nit__parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExternCall> */
9899 if (var_n_kwsuper
== NULL
) {
9900 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9901 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8051);
9904 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
9905 if (unlikely(var_n_kwsuper
== NULL
)) {
9906 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9907 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9910 var_n_kwsuper
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
9916 /* method parser_prod#ASuperExternCall#replace_child for (self: ASuperExternCall, ANode, nullable ANode) */
9917 void nit__parser_prod___ASuperExternCall___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9918 val
* var_old_child
/* var old_child: ANode */;
9919 val
* var_new_child
/* var new_child: nullable ANode */;
9920 val
* var
/* : TKwsuper */;
9921 short int var1
/* : Bool */;
9922 val
* var_other
/* var other: nullable Object */;
9923 short int var3
/* : Bool */;
9924 short int var5
/* : Bool */;
9925 short int var6
/* : Bool */;
9928 const char* var_class_name
;
9931 var
= self
->attrs
[COLOR_nit__parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
9932 if (unlikely(var
== NULL
)) {
9933 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
9934 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8056);
9938 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwsuper> */
9939 var_other
= var_old_child
;
9941 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwsuper> */
9942 var5
= var
== var_other
;
9954 /* <var_new_child:nullable ANode> isa TKwsuper */
9955 cltype
= type_nit__TKwsuper
.color
;
9956 idtype
= type_nit__TKwsuper
.id
;
9957 if(var_new_child
== NULL
) {
9960 if(cltype
>= var_new_child
->type
->table_size
) {
9963 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9966 if (unlikely(!var6
)) {
9967 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9968 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name
);
9969 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 8057);
9973 nit__parser_prod___ASuperExternCall___n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on <self:ASuperExternCall>*/
9980 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: ASuperExternCall, TKwsuper) */
9981 void nit__parser_prod___ASuperExternCall___n_kwsuper_61d(val
* self
, val
* p0
) {
9982 val
* var_node
/* var node: TKwsuper */;
9984 self
->attrs
[COLOR_nit__parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExternCall> */
9986 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
9987 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */