1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#ACallReassignExpr#replace_child for (self: ACallReassignExpr, ANode, nullable ANode) */
3 void parser_prod__ACallReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4 val
* var_old_child
/* var old_child: ANode */;
5 val
* var_new_child
/* var new_child: nullable ANode */;
6 val
* var
/* : AExpr */;
7 short int var1
/* : Bool */;
8 short int var2
/* : Bool */;
9 val
* var_other
/* var other: nullable Object */;
10 short int var4
/* : Bool */;
11 short int var6
/* : Bool */;
12 short int var7
/* : Bool */;
15 const char* var_class_name
;
16 val
* var8
/* : TId */;
17 short int var9
/* : Bool */;
18 short int var10
/* : Bool */;
19 short int var12
/* : Bool */;
20 short int var14
/* : Bool */;
21 short int var15
/* : Bool */;
24 const char* var_class_name18
;
25 val
* var19
/* : AExprs */;
26 short int var20
/* : Bool */;
27 short int var21
/* : Bool */;
28 short int var23
/* : Bool */;
29 short int var25
/* : Bool */;
30 short int var26
/* : Bool */;
33 const char* var_class_name29
;
34 val
* var30
/* : AAssignOp */;
35 short int var31
/* : Bool */;
36 short int var32
/* : Bool */;
37 short int var34
/* : Bool */;
38 short int var36
/* : Bool */;
39 short int var37
/* : Bool */;
42 const char* var_class_name40
;
43 val
* var41
/* : AExpr */;
44 short int var42
/* : Bool */;
45 short int var43
/* : Bool */;
46 short int var45
/* : Bool */;
47 short int var47
/* : Bool */;
48 short int var48
/* : Bool */;
51 const char* var_class_name51
;
54 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
55 if (unlikely(var
== NULL
)) {
56 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
57 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4351);
61 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
62 var_other
= var_old_child
;
64 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
65 var6
= var
== var_other
;
78 /* <var_new_child:nullable ANode> isa AExpr */
79 cltype
= type_parser_nodes__AExpr
.color
;
80 idtype
= type_parser_nodes__AExpr
.id
;
81 if(var_new_child
== NULL
) {
84 if(cltype
>= var_new_child
->type
->table_size
) {
87 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
90 if (unlikely(!var7
)) {
91 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
92 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
93 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4352);
97 parser_prod__ACallReassignExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_expr= on <self:ACallReassignExpr>*/
102 var8
= self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallReassignExpr> */
103 if (unlikely(var8
== NULL
)) {
104 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
105 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4355);
109 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TId> */
110 var_other
= var_old_child
;
112 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TId> */
113 var14
= var8
== var_other
;
126 /* <var_new_child:nullable ANode> isa TId */
127 cltype16
= type_parser_nodes__TId
.color
;
128 idtype17
= type_parser_nodes__TId
.id
;
129 if(var_new_child
== NULL
) {
132 if(cltype16
>= var_new_child
->type
->table_size
) {
135 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
138 if (unlikely(!var15
)) {
139 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
140 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name18
);
141 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4356);
145 parser_prod__ACallReassignExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_id= on <self:ACallReassignExpr>*/
150 var19
= self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
151 if (unlikely(var19
== NULL
)) {
152 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
153 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4359);
157 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExprs> */
158 var_other
= var_old_child
;
160 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExprs> */
161 var25
= var19
== var_other
;
174 /* <var_new_child:nullable ANode> isa AExprs */
175 cltype27
= type_parser_nodes__AExprs
.color
;
176 idtype28
= type_parser_nodes__AExprs
.id
;
177 if(var_new_child
== NULL
) {
180 if(cltype27
>= var_new_child
->type
->table_size
) {
183 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
186 if (unlikely(!var26
)) {
187 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
188 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name29
);
189 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4360);
193 parser_prod__ACallReassignExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_args= on <self:ACallReassignExpr>*/
198 var30
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
199 if (unlikely(var30
== NULL
)) {
200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
201 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4363);
205 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AAssignOp> */
206 var_other
= var_old_child
;
208 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AAssignOp> */
209 var36
= var30
== var_other
;
222 /* <var_new_child:nullable ANode> isa AAssignOp */
223 cltype38
= type_parser_nodes__AAssignOp
.color
;
224 idtype39
= type_parser_nodes__AAssignOp
.id
;
225 if(var_new_child
== NULL
) {
228 if(cltype38
>= var_new_child
->type
->table_size
) {
231 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
234 if (unlikely(!var37
)) {
235 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
236 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name40
);
237 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4364);
241 parser_prod__ACallReassignExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_assign_op= on <self:ACallReassignExpr>*/
246 var41
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
247 if (unlikely(var41
== NULL
)) {
248 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
249 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4367);
253 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:AExpr> */
254 var_other
= var_old_child
;
256 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:AExpr> */
257 var47
= var41
== var_other
;
270 /* <var_new_child:nullable ANode> isa AExpr */
271 cltype49
= type_parser_nodes__AExpr
.color
;
272 idtype50
= type_parser_nodes__AExpr
.id
;
273 if(var_new_child
== NULL
) {
276 if(cltype49
>= var_new_child
->type
->table_size
) {
279 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
282 if (unlikely(!var48
)) {
283 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
284 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name51
);
285 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4368);
289 parser_prod__ACallReassignExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ACallReassignExpr#n_value= on <self:ACallReassignExpr>*/
296 /* method parser_prod#ACallReassignExpr#replace_child for (self: Object, ANode, nullable ANode) */
297 void VIRTUAL_parser_prod__ACallReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
298 parser_prod__ACallReassignExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACallReassignExpr#replace_child on <self:Object(ACallReassignExpr)>*/
301 /* method parser_prod#ACallReassignExpr#n_expr= for (self: ACallReassignExpr, AExpr) */
302 void parser_prod__ACallReassignExpr__n_expr_61d(val
* self
, val
* p0
) {
303 val
* var_node
/* var node: AExpr */;
305 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACallReassignExpr> */
307 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
308 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
314 /* method parser_prod#ACallReassignExpr#n_expr= for (self: Object, AExpr) */
315 void VIRTUAL_parser_prod__ACallReassignExpr__n_expr_61d(val
* self
, val
* p0
) {
316 parser_prod__ACallReassignExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#n_expr= on <self:Object(ACallReassignExpr)>*/
319 /* method parser_prod#ACallReassignExpr#n_id= for (self: ACallReassignExpr, TId) */
320 void parser_prod__ACallReassignExpr__n_id_61d(val
* self
, val
* p0
) {
321 val
* var_node
/* var node: TId */;
323 self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_id
].val
= var_node
; /* _n_id on <self:ACallReassignExpr> */
325 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
326 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
332 /* method parser_prod#ACallReassignExpr#n_id= for (self: Object, TId) */
333 void VIRTUAL_parser_prod__ACallReassignExpr__n_id_61d(val
* self
, val
* p0
) {
334 parser_prod__ACallReassignExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#n_id= on <self:Object(ACallReassignExpr)>*/
337 /* method parser_prod#ACallReassignExpr#n_args= for (self: ACallReassignExpr, AExprs) */
338 void parser_prod__ACallReassignExpr__n_args_61d(val
* self
, val
* p0
) {
339 val
* var_node
/* var node: AExprs */;
341 self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ACallReassignExpr> */
343 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
344 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
350 /* method parser_prod#ACallReassignExpr#n_args= for (self: Object, AExprs) */
351 void VIRTUAL_parser_prod__ACallReassignExpr__n_args_61d(val
* self
, val
* p0
) {
352 parser_prod__ACallReassignExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#n_args= on <self:Object(ACallReassignExpr)>*/
355 /* method parser_prod#ACallReassignExpr#n_assign_op= for (self: ACallReassignExpr, AAssignOp) */
356 void parser_prod__ACallReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
357 val
* var_node
/* var node: AAssignOp */;
359 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ACallReassignExpr> */
361 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
362 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
368 /* method parser_prod#ACallReassignExpr#n_assign_op= for (self: Object, AAssignOp) */
369 void VIRTUAL_parser_prod__ACallReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
370 parser_prod__ACallReassignExpr__n_assign_op_61d(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#n_assign_op= on <self:Object(ACallReassignExpr)>*/
373 /* method parser_prod#ACallReassignExpr#n_value= for (self: ACallReassignExpr, AExpr) */
374 void parser_prod__ACallReassignExpr__n_value_61d(val
* self
, val
* p0
) {
375 val
* var_node
/* var node: AExpr */;
377 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ACallReassignExpr> */
379 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
380 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
386 /* method parser_prod#ACallReassignExpr#n_value= for (self: Object, AExpr) */
387 void VIRTUAL_parser_prod__ACallReassignExpr__n_value_61d(val
* self
, val
* p0
) {
388 parser_prod__ACallReassignExpr__n_value_61d(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#n_value= on <self:Object(ACallReassignExpr)>*/
391 /* method parser_prod#ACallReassignExpr#visit_all for (self: ACallReassignExpr, Visitor) */
392 void parser_prod__ACallReassignExpr__visit_all(val
* self
, val
* p0
) {
393 val
* var_v
/* var v: Visitor */;
394 val
* var
/* : AExpr */;
395 val
* var1
/* : TId */;
396 val
* var2
/* : AExprs */;
397 val
* var3
/* : AAssignOp */;
398 val
* var4
/* : AExpr */;
400 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ACallReassignExpr> */
401 if (unlikely(var
== NULL
)) {
402 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
403 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4402);
407 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
409 var1
= self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_id
].val
; /* _n_id on <self:ACallReassignExpr> */
410 if (unlikely(var1
== NULL
)) {
411 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
412 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4403);
416 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
418 var2
= self
->attrs
[COLOR_parser_nodes__ACallFormExpr___n_args
].val
; /* _n_args on <self:ACallReassignExpr> */
419 if (unlikely(var2
== NULL
)) {
420 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
421 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4404);
425 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
427 var3
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ACallReassignExpr> */
428 if (unlikely(var3
== NULL
)) {
429 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
430 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4405);
434 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
436 var4
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ACallReassignExpr> */
437 if (unlikely(var4
== NULL
)) {
438 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
439 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4406);
443 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
447 /* method parser_prod#ACallReassignExpr#visit_all for (self: Object, Visitor) */
448 void VIRTUAL_parser_prod__ACallReassignExpr__visit_all(val
* self
, val
* p0
) {
449 parser_prod__ACallReassignExpr__visit_all(self
, p0
); /* Direct call parser_prod#ACallReassignExpr#visit_all on <self:Object(ACallReassignExpr)>*/
452 /* method parser_prod#ASuperExpr#init_asuperexpr for (self: ASuperExpr, nullable AQualified, nullable TKwsuper, nullable AExprs) */
453 void parser_prod__ASuperExpr__init_asuperexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
454 val
* var_n_qualified
/* var n_qualified: nullable AQualified */;
455 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
456 val
* var_n_args
/* var n_args: nullable AExprs */;
457 val
* var
/* : null */;
458 short int var1
/* : Bool */;
459 short int var2
/* : Bool */;
460 val
* var_other
/* var other: nullable Object */;
461 short int var4
/* : Bool */;
462 short int var5
/* : Bool */;
463 short int var6
/* : Bool */;
464 var_n_qualified
= p0
;
467 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_qualified
].val
= var_n_qualified
; /* _n_qualified on <self:ASuperExpr> */
469 if (var_n_qualified
== NULL
) {
470 var1
= 0; /* is null */
472 var1
= 1; /* arg is null and recv is not */
475 { /* Inline kernel#Object#!= (var_n_qualified,var) on <var_n_qualified:nullable AQualified> */
478 var5
= ((short int (*)(val
*, val
*))(var_n_qualified
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_qualified
, var_other
) /* == on <var_n_qualified:nullable AQualified(AQualified)>*/;
490 { /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on <var_n_qualified:nullable AQualified(AQualified)> */
491 var_n_qualified
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qualified:nullable AQualified(AQualified)> */
497 if (unlikely(var_n_kwsuper
== NULL
)) {
498 PRINT_ERROR("Runtime error: %s", "Cast failed");
499 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4418);
502 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExpr> */
503 if (var_n_kwsuper
== NULL
) {
504 PRINT_ERROR("Runtime error: %s", "Receiver is null");
505 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4419);
508 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
509 if (unlikely(var_n_kwsuper
== NULL
)) {
510 PRINT_ERROR("Runtime error: %s", "Receiver is null");
511 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
514 var_n_kwsuper
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
518 if (unlikely(var_n_args
== NULL
)) {
519 PRINT_ERROR("Runtime error: %s", "Cast failed");
520 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4420);
523 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ASuperExpr> */
524 if (var_n_args
== NULL
) {
525 PRINT_ERROR("Runtime error: %s", "Receiver is null");
526 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4421);
529 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
530 if (unlikely(var_n_args
== NULL
)) {
531 PRINT_ERROR("Runtime error: %s", "Receiver is null");
532 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
535 var_n_args
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
541 /* method parser_prod#ASuperExpr#init_asuperexpr for (self: Object, nullable AQualified, nullable TKwsuper, nullable AExprs) */
542 void VIRTUAL_parser_prod__ASuperExpr__init_asuperexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
543 parser_prod__ASuperExpr__init_asuperexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#ASuperExpr#init_asuperexpr on <self:Object(ASuperExpr)>*/
546 /* method parser_prod#ASuperExpr#replace_child for (self: ASuperExpr, ANode, nullable ANode) */
547 void parser_prod__ASuperExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
548 val
* var_old_child
/* var old_child: ANode */;
549 val
* var_new_child
/* var new_child: nullable ANode */;
550 val
* var
/* : nullable AQualified */;
551 short int var1
/* : Bool */;
552 short int var2
/* : Bool */;
553 val
* var_other
/* var other: nullable Object */;
554 short int var4
/* : Bool */;
555 short int var6
/* : Bool */;
556 short int var7
/* : Bool */;
559 const char* var_class_name
;
560 val
* var8
/* : TKwsuper */;
561 short int var9
/* : Bool */;
562 short int var10
/* : Bool */;
563 short int var12
/* : Bool */;
564 short int var14
/* : Bool */;
565 short int var15
/* : Bool */;
568 const char* var_class_name18
;
569 val
* var19
/* : AExprs */;
570 short int var20
/* : Bool */;
571 short int var21
/* : Bool */;
572 short int var23
/* : Bool */;
573 short int var25
/* : Bool */;
574 short int var26
/* : Bool */;
577 const char* var_class_name29
;
580 var
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
582 var1
= 0; /* <var_old_child:ANode> cannot be null */
584 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AQualified> */
585 var_other
= var_old_child
;
587 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AQualified(AQualified)> */
588 var6
= var
== var_other
;
601 /* <var_new_child:nullable ANode> isa nullable AQualified */
602 cltype
= type_nullable_parser_nodes__AQualified
.color
;
603 idtype
= type_nullable_parser_nodes__AQualified
.id
;
604 if(var_new_child
== NULL
) {
607 if(cltype
>= var_new_child
->type
->table_size
) {
610 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
613 if (unlikely(!var7
)) {
614 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
615 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name
);
616 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4427);
620 parser_prod__ASuperExpr__n_qualified_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_qualified= on <self:ASuperExpr>*/
625 var8
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
626 if (unlikely(var8
== NULL
)) {
627 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
628 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4430);
632 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwsuper> */
633 var_other
= var_old_child
;
635 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwsuper> */
636 var14
= var8
== var_other
;
649 /* <var_new_child:nullable ANode> isa TKwsuper */
650 cltype16
= type_parser_nodes__TKwsuper
.color
;
651 idtype17
= type_parser_nodes__TKwsuper
.id
;
652 if(var_new_child
== NULL
) {
655 if(cltype16
>= var_new_child
->type
->table_size
) {
658 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
661 if (unlikely(!var15
)) {
662 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
663 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name18
);
664 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4431);
668 parser_prod__ASuperExpr__n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_kwsuper= on <self:ASuperExpr>*/
673 var19
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
674 if (unlikely(var19
== NULL
)) {
675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
676 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4434);
680 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExprs> */
681 var_other
= var_old_child
;
683 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExprs> */
684 var25
= var19
== var_other
;
697 /* <var_new_child:nullable ANode> isa AExprs */
698 cltype27
= type_parser_nodes__AExprs
.color
;
699 idtype28
= type_parser_nodes__AExprs
.id
;
700 if(var_new_child
== NULL
) {
703 if(cltype27
>= var_new_child
->type
->table_size
) {
706 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
709 if (unlikely(!var26
)) {
710 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
711 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name29
);
712 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4435);
716 parser_prod__ASuperExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExpr#n_args= on <self:ASuperExpr>*/
723 /* method parser_prod#ASuperExpr#replace_child for (self: Object, ANode, nullable ANode) */
724 void VIRTUAL_parser_prod__ASuperExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
725 parser_prod__ASuperExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperExpr#replace_child on <self:Object(ASuperExpr)>*/
728 /* method parser_prod#ASuperExpr#n_qualified= for (self: ASuperExpr, nullable AQualified) */
729 void parser_prod__ASuperExpr__n_qualified_61d(val
* self
, val
* p0
) {
730 val
* var_node
/* var node: nullable AQualified */;
731 val
* var
/* : null */;
732 short int var1
/* : Bool */;
733 short int var2
/* : Bool */;
734 val
* var_other
/* var other: nullable Object */;
735 short int var4
/* : Bool */;
736 short int var5
/* : Bool */;
737 short int var6
/* : Bool */;
739 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_qualified
].val
= var_node
; /* _n_qualified on <self:ASuperExpr> */
741 if (var_node
== NULL
) {
742 var1
= 0; /* is null */
744 var1
= 1; /* arg is null and recv is not */
747 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AQualified> */
750 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AQualified(AQualified)>*/;
762 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQualified(AQualified)> */
763 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQualified(AQualified)> */
771 /* method parser_prod#ASuperExpr#n_qualified= for (self: Object, nullable AQualified) */
772 void VIRTUAL_parser_prod__ASuperExpr__n_qualified_61d(val
* self
, val
* p0
) {
773 parser_prod__ASuperExpr__n_qualified_61d(self
, p0
); /* Direct call parser_prod#ASuperExpr#n_qualified= on <self:Object(ASuperExpr)>*/
776 /* method parser_prod#ASuperExpr#n_kwsuper= for (self: ASuperExpr, TKwsuper) */
777 void parser_prod__ASuperExpr__n_kwsuper_61d(val
* self
, val
* p0
) {
778 val
* var_node
/* var node: TKwsuper */;
780 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExpr> */
782 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
783 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
789 /* method parser_prod#ASuperExpr#n_kwsuper= for (self: Object, TKwsuper) */
790 void VIRTUAL_parser_prod__ASuperExpr__n_kwsuper_61d(val
* self
, val
* p0
) {
791 parser_prod__ASuperExpr__n_kwsuper_61d(self
, p0
); /* Direct call parser_prod#ASuperExpr#n_kwsuper= on <self:Object(ASuperExpr)>*/
794 /* method parser_prod#ASuperExpr#n_args= for (self: ASuperExpr, AExprs) */
795 void parser_prod__ASuperExpr__n_args_61d(val
* self
, val
* p0
) {
796 val
* var_node
/* var node: AExprs */;
798 self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_args
].val
= var_node
; /* _n_args on <self:ASuperExpr> */
800 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
801 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
807 /* method parser_prod#ASuperExpr#n_args= for (self: Object, AExprs) */
808 void VIRTUAL_parser_prod__ASuperExpr__n_args_61d(val
* self
, val
* p0
) {
809 parser_prod__ASuperExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#ASuperExpr#n_args= on <self:Object(ASuperExpr)>*/
812 /* method parser_prod#ASuperExpr#visit_all for (self: ASuperExpr, Visitor) */
813 void parser_prod__ASuperExpr__visit_all(val
* self
, val
* p0
) {
814 val
* var_v
/* var v: Visitor */;
815 val
* var
/* : nullable AQualified */;
816 val
* var1
/* : TKwsuper */;
817 val
* var2
/* : AExprs */;
819 var
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_qualified
].val
; /* _n_qualified on <self:ASuperExpr> */
821 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
823 var1
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExpr> */
824 if (unlikely(var1
== NULL
)) {
825 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
826 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4460);
830 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
832 var2
= self
->attrs
[COLOR_parser_nodes__ASuperExpr___n_args
].val
; /* _n_args on <self:ASuperExpr> */
833 if (unlikely(var2
== NULL
)) {
834 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
835 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4461);
839 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
843 /* method parser_prod#ASuperExpr#visit_all for (self: Object, Visitor) */
844 void VIRTUAL_parser_prod__ASuperExpr__visit_all(val
* self
, val
* p0
) {
845 parser_prod__ASuperExpr__visit_all(self
, p0
); /* Direct call parser_prod#ASuperExpr#visit_all on <self:Object(ASuperExpr)>*/
848 /* method parser_prod#AInitExpr#init_ainitexpr for (self: AInitExpr, nullable AExpr, nullable TKwinit, nullable AExprs) */
849 void parser_prod__AInitExpr__init_ainitexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
850 val
* var_n_expr
/* var n_expr: nullable AExpr */;
851 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
852 val
* var_n_args
/* var n_args: nullable AExprs */;
856 if (unlikely(var_n_expr
== NULL
)) {
857 PRINT_ERROR("Runtime error: %s", "Cast failed");
858 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4471);
861 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AInitExpr> */
862 if (var_n_expr
== NULL
) {
863 PRINT_ERROR("Runtime error: %s", "Receiver is null");
864 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4472);
867 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
868 if (unlikely(var_n_expr
== NULL
)) {
869 PRINT_ERROR("Runtime error: %s", "Receiver is null");
870 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
873 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
877 if (unlikely(var_n_kwinit
== NULL
)) {
878 PRINT_ERROR("Runtime error: %s", "Cast failed");
879 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4473);
882 self
->attrs
[COLOR_parser_nodes__AInitExpr___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AInitExpr> */
883 if (var_n_kwinit
== NULL
) {
884 PRINT_ERROR("Runtime error: %s", "Receiver is null");
885 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4474);
888 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit> */
889 if (unlikely(var_n_kwinit
== NULL
)) {
890 PRINT_ERROR("Runtime error: %s", "Receiver is null");
891 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
894 var_n_kwinit
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit> */
898 if (unlikely(var_n_args
== NULL
)) {
899 PRINT_ERROR("Runtime error: %s", "Cast failed");
900 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4475);
903 self
->attrs
[COLOR_parser_nodes__AInitExpr___n_args
].val
= var_n_args
; /* _n_args on <self:AInitExpr> */
904 if (var_n_args
== NULL
) {
905 PRINT_ERROR("Runtime error: %s", "Receiver is null");
906 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4476);
909 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
910 if (unlikely(var_n_args
== NULL
)) {
911 PRINT_ERROR("Runtime error: %s", "Receiver is null");
912 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
915 var_n_args
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
921 /* method parser_prod#AInitExpr#init_ainitexpr for (self: Object, nullable AExpr, nullable TKwinit, nullable AExprs) */
922 void VIRTUAL_parser_prod__AInitExpr__init_ainitexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
923 parser_prod__AInitExpr__init_ainitexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#AInitExpr#init_ainitexpr on <self:Object(AInitExpr)>*/
926 /* method parser_prod#AInitExpr#replace_child for (self: AInitExpr, ANode, nullable ANode) */
927 void parser_prod__AInitExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
928 val
* var_old_child
/* var old_child: ANode */;
929 val
* var_new_child
/* var new_child: nullable ANode */;
930 val
* var
/* : AExpr */;
931 short int var1
/* : Bool */;
932 short int var2
/* : Bool */;
933 val
* var_other
/* var other: nullable Object */;
934 short int var4
/* : Bool */;
935 short int var6
/* : Bool */;
936 short int var7
/* : Bool */;
939 const char* var_class_name
;
940 val
* var8
/* : TKwinit */;
941 short int var9
/* : Bool */;
942 short int var10
/* : Bool */;
943 short int var12
/* : Bool */;
944 short int var14
/* : Bool */;
945 short int var15
/* : Bool */;
948 const char* var_class_name18
;
949 val
* var19
/* : AExprs */;
950 short int var20
/* : Bool */;
951 short int var21
/* : Bool */;
952 short int var23
/* : Bool */;
953 short int var25
/* : Bool */;
954 short int var26
/* : Bool */;
957 const char* var_class_name29
;
960 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
961 if (unlikely(var
== NULL
)) {
962 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
963 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4481);
967 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
968 var_other
= var_old_child
;
970 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
971 var6
= var
== var_other
;
984 /* <var_new_child:nullable ANode> isa AExpr */
985 cltype
= type_parser_nodes__AExpr
.color
;
986 idtype
= type_parser_nodes__AExpr
.id
;
987 if(var_new_child
== NULL
) {
990 if(cltype
>= var_new_child
->type
->table_size
) {
993 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
996 if (unlikely(!var7
)) {
997 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
998 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
999 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4482);
1003 parser_prod__AInitExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_expr= on <self:AInitExpr>*/
1008 var8
= self
->attrs
[COLOR_parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
1009 if (unlikely(var8
== NULL
)) {
1010 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
1011 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4485);
1015 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwinit> */
1016 var_other
= var_old_child
;
1018 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwinit> */
1019 var14
= var8
== var_other
;
1022 RET_LABEL13
:(void)0;
1027 RET_LABEL11
:(void)0;
1032 /* <var_new_child:nullable ANode> isa TKwinit */
1033 cltype16
= type_parser_nodes__TKwinit
.color
;
1034 idtype17
= type_parser_nodes__TKwinit
.id
;
1035 if(var_new_child
== NULL
) {
1038 if(cltype16
>= var_new_child
->type
->table_size
) {
1041 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1044 if (unlikely(!var15
)) {
1045 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1046 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinit", var_class_name18
);
1047 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4486);
1051 parser_prod__AInitExpr__n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_kwinit= on <self:AInitExpr>*/
1056 var19
= self
->attrs
[COLOR_parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
1057 if (unlikely(var19
== NULL
)) {
1058 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1059 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4489);
1063 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExprs> */
1064 var_other
= var_old_child
;
1066 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExprs> */
1067 var25
= var19
== var_other
;
1070 RET_LABEL24
:(void)0;
1075 RET_LABEL22
:(void)0;
1080 /* <var_new_child:nullable ANode> isa AExprs */
1081 cltype27
= type_parser_nodes__AExprs
.color
;
1082 idtype28
= type_parser_nodes__AExprs
.id
;
1083 if(var_new_child
== NULL
) {
1086 if(cltype27
>= var_new_child
->type
->table_size
) {
1089 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
1092 if (unlikely(!var26
)) {
1093 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1094 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name29
);
1095 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4490);
1099 parser_prod__AInitExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#AInitExpr#n_args= on <self:AInitExpr>*/
1106 /* method parser_prod#AInitExpr#replace_child for (self: Object, ANode, nullable ANode) */
1107 void VIRTUAL_parser_prod__AInitExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1108 parser_prod__AInitExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInitExpr#replace_child on <self:Object(AInitExpr)>*/
1111 /* method parser_prod#AInitExpr#n_expr= for (self: AInitExpr, AExpr) */
1112 void parser_prod__AInitExpr__n_expr_61d(val
* self
, val
* p0
) {
1113 val
* var_node
/* var node: AExpr */;
1115 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AInitExpr> */
1117 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1118 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1124 /* method parser_prod#AInitExpr#n_expr= for (self: Object, AExpr) */
1125 void VIRTUAL_parser_prod__AInitExpr__n_expr_61d(val
* self
, val
* p0
) {
1126 parser_prod__AInitExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AInitExpr#n_expr= on <self:Object(AInitExpr)>*/
1129 /* method parser_prod#AInitExpr#n_kwinit= for (self: AInitExpr, TKwinit) */
1130 void parser_prod__AInitExpr__n_kwinit_61d(val
* self
, val
* p0
) {
1131 val
* var_node
/* var node: TKwinit */;
1133 self
->attrs
[COLOR_parser_nodes__AInitExpr___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AInitExpr> */
1135 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinit> */
1136 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinit> */
1142 /* method parser_prod#AInitExpr#n_kwinit= for (self: Object, TKwinit) */
1143 void VIRTUAL_parser_prod__AInitExpr__n_kwinit_61d(val
* self
, val
* p0
) {
1144 parser_prod__AInitExpr__n_kwinit_61d(self
, p0
); /* Direct call parser_prod#AInitExpr#n_kwinit= on <self:Object(AInitExpr)>*/
1147 /* method parser_prod#AInitExpr#n_args= for (self: AInitExpr, AExprs) */
1148 void parser_prod__AInitExpr__n_args_61d(val
* self
, val
* p0
) {
1149 val
* var_node
/* var node: AExprs */;
1151 self
->attrs
[COLOR_parser_nodes__AInitExpr___n_args
].val
= var_node
; /* _n_args on <self:AInitExpr> */
1153 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
1154 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
1160 /* method parser_prod#AInitExpr#n_args= for (self: Object, AExprs) */
1161 void VIRTUAL_parser_prod__AInitExpr__n_args_61d(val
* self
, val
* p0
) {
1162 parser_prod__AInitExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#AInitExpr#n_args= on <self:Object(AInitExpr)>*/
1165 /* method parser_prod#AInitExpr#visit_all for (self: AInitExpr, Visitor) */
1166 void parser_prod__AInitExpr__visit_all(val
* self
, val
* p0
) {
1167 val
* var_v
/* var v: Visitor */;
1168 val
* var
/* : AExpr */;
1169 val
* var1
/* : TKwinit */;
1170 val
* var2
/* : AExprs */;
1172 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:AInitExpr> */
1173 if (unlikely(var
== NULL
)) {
1174 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1175 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4514);
1179 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1181 var1
= self
->attrs
[COLOR_parser_nodes__AInitExpr___n_kwinit
].val
; /* _n_kwinit on <self:AInitExpr> */
1182 if (unlikely(var1
== NULL
)) {
1183 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinit");
1184 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4515);
1188 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1190 var2
= self
->attrs
[COLOR_parser_nodes__AInitExpr___n_args
].val
; /* _n_args on <self:AInitExpr> */
1191 if (unlikely(var2
== NULL
)) {
1192 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1193 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4516);
1197 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1201 /* method parser_prod#AInitExpr#visit_all for (self: Object, Visitor) */
1202 void VIRTUAL_parser_prod__AInitExpr__visit_all(val
* self
, val
* p0
) {
1203 parser_prod__AInitExpr__visit_all(self
, p0
); /* Direct call parser_prod#AInitExpr#visit_all on <self:Object(AInitExpr)>*/
1206 /* method parser_prod#ABraExpr#init_abraexpr for (self: ABraExpr, nullable AExpr, nullable AExprs) */
1207 void parser_prod__ABraExpr__init_abraexpr(val
* self
, val
* p0
, val
* p1
) {
1208 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1209 val
* var_n_args
/* var n_args: nullable AExprs */;
1212 if (unlikely(var_n_expr
== NULL
)) {
1213 PRINT_ERROR("Runtime error: %s", "Cast failed");
1214 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4525);
1217 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraExpr> */
1218 if (var_n_expr
== NULL
) {
1219 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1220 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4526);
1223 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1224 if (unlikely(var_n_expr
== NULL
)) {
1225 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1226 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1229 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1233 if (unlikely(var_n_args
== NULL
)) {
1234 PRINT_ERROR("Runtime error: %s", "Cast failed");
1235 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4527);
1238 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraExpr> */
1239 if (var_n_args
== NULL
) {
1240 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1241 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4528);
1244 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
1245 if (unlikely(var_n_args
== NULL
)) {
1246 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1247 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1250 var_n_args
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
1256 /* method parser_prod#ABraExpr#init_abraexpr for (self: Object, nullable AExpr, nullable AExprs) */
1257 void VIRTUAL_parser_prod__ABraExpr__init_abraexpr(val
* self
, val
* p0
, val
* p1
) {
1258 parser_prod__ABraExpr__init_abraexpr(self
, p0
, p1
); /* Direct call parser_prod#ABraExpr#init_abraexpr on <self:Object(ABraExpr)>*/
1261 /* method parser_prod#ABraExpr#replace_child for (self: ABraExpr, ANode, nullable ANode) */
1262 void parser_prod__ABraExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1263 val
* var_old_child
/* var old_child: ANode */;
1264 val
* var_new_child
/* var new_child: nullable ANode */;
1265 val
* var
/* : AExpr */;
1266 short int var1
/* : Bool */;
1267 short int var2
/* : Bool */;
1268 val
* var_other
/* var other: nullable Object */;
1269 short int var4
/* : Bool */;
1270 short int var6
/* : Bool */;
1271 short int var7
/* : Bool */;
1274 const char* var_class_name
;
1275 val
* var8
/* : AExprs */;
1276 short int var9
/* : Bool */;
1277 short int var10
/* : Bool */;
1278 short int var12
/* : Bool */;
1279 short int var14
/* : Bool */;
1280 short int var15
/* : Bool */;
1283 const char* var_class_name18
;
1286 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
1287 if (unlikely(var
== NULL
)) {
1288 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1289 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4533);
1293 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1294 var_other
= var_old_child
;
1296 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1297 var6
= var
== var_other
;
1310 /* <var_new_child:nullable ANode> isa AExpr */
1311 cltype
= type_parser_nodes__AExpr
.color
;
1312 idtype
= type_parser_nodes__AExpr
.id
;
1313 if(var_new_child
== NULL
) {
1316 if(cltype
>= var_new_child
->type
->table_size
) {
1319 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1322 if (unlikely(!var7
)) {
1323 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1324 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1325 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4534);
1329 parser_prod__ABraExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_expr= on <self:ABraExpr>*/
1334 var8
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
1335 if (unlikely(var8
== NULL
)) {
1336 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1337 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4537);
1341 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExprs> */
1342 var_other
= var_old_child
;
1344 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExprs> */
1345 var14
= var8
== var_other
;
1348 RET_LABEL13
:(void)0;
1353 RET_LABEL11
:(void)0;
1358 /* <var_new_child:nullable ANode> isa AExprs */
1359 cltype16
= type_parser_nodes__AExprs
.color
;
1360 idtype17
= type_parser_nodes__AExprs
.id
;
1361 if(var_new_child
== NULL
) {
1364 if(cltype16
>= var_new_child
->type
->table_size
) {
1367 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1370 if (unlikely(!var15
)) {
1371 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1372 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name18
);
1373 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4538);
1377 parser_prod__ABraExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExpr#n_args= on <self:ABraExpr>*/
1384 /* method parser_prod#ABraExpr#replace_child for (self: Object, ANode, nullable ANode) */
1385 void VIRTUAL_parser_prod__ABraExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1386 parser_prod__ABraExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ABraExpr#replace_child on <self:Object(ABraExpr)>*/
1389 /* method parser_prod#ABraExpr#n_expr= for (self: ABraExpr, AExpr) */
1390 void parser_prod__ABraExpr__n_expr_61d(val
* self
, val
* p0
) {
1391 val
* var_node
/* var node: AExpr */;
1393 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraExpr> */
1395 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1396 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1402 /* method parser_prod#ABraExpr#n_expr= for (self: Object, AExpr) */
1403 void VIRTUAL_parser_prod__ABraExpr__n_expr_61d(val
* self
, val
* p0
) {
1404 parser_prod__ABraExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ABraExpr#n_expr= on <self:Object(ABraExpr)>*/
1407 /* method parser_prod#ABraExpr#n_args= for (self: ABraExpr, AExprs) */
1408 void parser_prod__ABraExpr__n_args_61d(val
* self
, val
* p0
) {
1409 val
* var_node
/* var node: AExprs */;
1411 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraExpr> */
1413 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
1414 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
1420 /* method parser_prod#ABraExpr#n_args= for (self: Object, AExprs) */
1421 void VIRTUAL_parser_prod__ABraExpr__n_args_61d(val
* self
, val
* p0
) {
1422 parser_prod__ABraExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#ABraExpr#n_args= on <self:Object(ABraExpr)>*/
1425 /* method parser_prod#ABraExpr#visit_all for (self: ABraExpr, Visitor) */
1426 void parser_prod__ABraExpr__visit_all(val
* self
, val
* p0
) {
1427 val
* var_v
/* var v: Visitor */;
1428 val
* var
/* : AExpr */;
1429 val
* var1
/* : AExprs */;
1431 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraExpr> */
1432 if (unlikely(var
== NULL
)) {
1433 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1434 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4557);
1438 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1440 var1
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraExpr> */
1441 if (unlikely(var1
== NULL
)) {
1442 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1443 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4558);
1447 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1451 /* method parser_prod#ABraExpr#visit_all for (self: Object, Visitor) */
1452 void VIRTUAL_parser_prod__ABraExpr__visit_all(val
* self
, val
* p0
) {
1453 parser_prod__ABraExpr__visit_all(self
, p0
); /* Direct call parser_prod#ABraExpr#visit_all on <self:Object(ABraExpr)>*/
1456 /* method parser_prod#ABraAssignExpr#init_abraassignexpr for (self: ABraAssignExpr, nullable AExpr, nullable AExprs, nullable TAssign, nullable AExpr) */
1457 void parser_prod__ABraAssignExpr__init_abraassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1458 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1459 val
* var_n_args
/* var n_args: nullable AExprs */;
1460 val
* var_n_assign
/* var n_assign: nullable TAssign */;
1461 val
* var_n_value
/* var n_value: nullable AExpr */;
1466 if (unlikely(var_n_expr
== NULL
)) {
1467 PRINT_ERROR("Runtime error: %s", "Cast failed");
1468 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4569);
1471 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraAssignExpr> */
1472 if (var_n_expr
== NULL
) {
1473 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1474 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4570);
1477 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1478 if (unlikely(var_n_expr
== NULL
)) {
1479 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1480 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1483 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1487 if (unlikely(var_n_args
== NULL
)) {
1488 PRINT_ERROR("Runtime error: %s", "Cast failed");
1489 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4571);
1492 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraAssignExpr> */
1493 if (var_n_args
== NULL
) {
1494 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1495 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4572);
1498 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
1499 if (unlikely(var_n_args
== NULL
)) {
1500 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1501 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1504 var_n_args
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
1508 if (unlikely(var_n_assign
== NULL
)) {
1509 PRINT_ERROR("Runtime error: %s", "Cast failed");
1510 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4573);
1513 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraAssignExpr> */
1514 if (var_n_assign
== NULL
) {
1515 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1516 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4574);
1519 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
1520 if (unlikely(var_n_assign
== NULL
)) {
1521 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1522 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1525 var_n_assign
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
1529 if (unlikely(var_n_value
== NULL
)) {
1530 PRINT_ERROR("Runtime error: %s", "Cast failed");
1531 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4575);
1534 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraAssignExpr> */
1535 if (var_n_value
== NULL
) {
1536 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1537 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4576);
1540 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
1541 if (unlikely(var_n_value
== NULL
)) {
1542 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1543 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1546 var_n_value
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
1552 /* method parser_prod#ABraAssignExpr#init_abraassignexpr for (self: Object, nullable AExpr, nullable AExprs, nullable TAssign, nullable AExpr) */
1553 void VIRTUAL_parser_prod__ABraAssignExpr__init_abraassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1554 parser_prod__ABraAssignExpr__init_abraassignexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ABraAssignExpr#init_abraassignexpr on <self:Object(ABraAssignExpr)>*/
1557 /* method parser_prod#ABraAssignExpr#replace_child for (self: ABraAssignExpr, ANode, nullable ANode) */
1558 void parser_prod__ABraAssignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1559 val
* var_old_child
/* var old_child: ANode */;
1560 val
* var_new_child
/* var new_child: nullable ANode */;
1561 val
* var
/* : AExpr */;
1562 short int var1
/* : Bool */;
1563 short int var2
/* : Bool */;
1564 val
* var_other
/* var other: nullable Object */;
1565 short int var4
/* : Bool */;
1566 short int var6
/* : Bool */;
1567 short int var7
/* : Bool */;
1570 const char* var_class_name
;
1571 val
* var8
/* : AExprs */;
1572 short int var9
/* : Bool */;
1573 short int var10
/* : Bool */;
1574 short int var12
/* : Bool */;
1575 short int var14
/* : Bool */;
1576 short int var15
/* : Bool */;
1579 const char* var_class_name18
;
1580 val
* var19
/* : TAssign */;
1581 short int var20
/* : Bool */;
1582 short int var21
/* : Bool */;
1583 short int var23
/* : Bool */;
1584 short int var25
/* : Bool */;
1585 short int var26
/* : Bool */;
1588 const char* var_class_name29
;
1589 val
* var30
/* : AExpr */;
1590 short int var31
/* : Bool */;
1591 short int var32
/* : Bool */;
1592 short int var34
/* : Bool */;
1593 short int var36
/* : Bool */;
1594 short int var37
/* : Bool */;
1597 const char* var_class_name40
;
1600 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
1601 if (unlikely(var
== NULL
)) {
1602 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1603 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4581);
1607 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1608 var_other
= var_old_child
;
1610 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1611 var6
= var
== var_other
;
1624 /* <var_new_child:nullable ANode> isa AExpr */
1625 cltype
= type_parser_nodes__AExpr
.color
;
1626 idtype
= type_parser_nodes__AExpr
.id
;
1627 if(var_new_child
== NULL
) {
1630 if(cltype
>= var_new_child
->type
->table_size
) {
1633 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1636 if (unlikely(!var7
)) {
1637 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1638 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1639 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4582);
1643 parser_prod__ABraAssignExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_expr= on <self:ABraAssignExpr>*/
1648 var8
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
1649 if (unlikely(var8
== NULL
)) {
1650 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1651 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4585);
1655 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExprs> */
1656 var_other
= var_old_child
;
1658 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExprs> */
1659 var14
= var8
== var_other
;
1662 RET_LABEL13
:(void)0;
1667 RET_LABEL11
:(void)0;
1672 /* <var_new_child:nullable ANode> isa AExprs */
1673 cltype16
= type_parser_nodes__AExprs
.color
;
1674 idtype17
= type_parser_nodes__AExprs
.id
;
1675 if(var_new_child
== NULL
) {
1678 if(cltype16
>= var_new_child
->type
->table_size
) {
1681 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1684 if (unlikely(!var15
)) {
1685 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1686 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name18
);
1687 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4586);
1691 parser_prod__ABraAssignExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_args= on <self:ABraAssignExpr>*/
1696 var19
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
1697 if (unlikely(var19
== NULL
)) {
1698 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1699 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4589);
1703 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TAssign> */
1704 var_other
= var_old_child
;
1706 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TAssign> */
1707 var25
= var19
== var_other
;
1710 RET_LABEL24
:(void)0;
1715 RET_LABEL22
:(void)0;
1720 /* <var_new_child:nullable ANode> isa TAssign */
1721 cltype27
= type_parser_nodes__TAssign
.color
;
1722 idtype28
= type_parser_nodes__TAssign
.id
;
1723 if(var_new_child
== NULL
) {
1726 if(cltype27
>= var_new_child
->type
->table_size
) {
1729 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
1732 if (unlikely(!var26
)) {
1733 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1734 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name29
);
1735 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4590);
1739 parser_prod__ABraAssignExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_assign= on <self:ABraAssignExpr>*/
1744 var30
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
1745 if (unlikely(var30
== NULL
)) {
1746 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
1747 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4593);
1751 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AExpr> */
1752 var_other
= var_old_child
;
1754 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AExpr> */
1755 var36
= var30
== var_other
;
1758 RET_LABEL35
:(void)0;
1763 RET_LABEL33
:(void)0;
1768 /* <var_new_child:nullable ANode> isa AExpr */
1769 cltype38
= type_parser_nodes__AExpr
.color
;
1770 idtype39
= type_parser_nodes__AExpr
.id
;
1771 if(var_new_child
== NULL
) {
1774 if(cltype38
>= var_new_child
->type
->table_size
) {
1777 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
1780 if (unlikely(!var37
)) {
1781 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1782 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name40
);
1783 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4594);
1787 parser_prod__ABraAssignExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraAssignExpr#n_value= on <self:ABraAssignExpr>*/
1794 /* method parser_prod#ABraAssignExpr#replace_child for (self: Object, ANode, nullable ANode) */
1795 void VIRTUAL_parser_prod__ABraAssignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1796 parser_prod__ABraAssignExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ABraAssignExpr#replace_child on <self:Object(ABraAssignExpr)>*/
1799 /* method parser_prod#ABraAssignExpr#n_expr= for (self: ABraAssignExpr, AExpr) */
1800 void parser_prod__ABraAssignExpr__n_expr_61d(val
* self
, val
* p0
) {
1801 val
* var_node
/* var node: AExpr */;
1803 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraAssignExpr> */
1805 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1806 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1812 /* method parser_prod#ABraAssignExpr#n_expr= for (self: Object, AExpr) */
1813 void VIRTUAL_parser_prod__ABraAssignExpr__n_expr_61d(val
* self
, val
* p0
) {
1814 parser_prod__ABraAssignExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ABraAssignExpr#n_expr= on <self:Object(ABraAssignExpr)>*/
1817 /* method parser_prod#ABraAssignExpr#n_args= for (self: ABraAssignExpr, AExprs) */
1818 void parser_prod__ABraAssignExpr__n_args_61d(val
* self
, val
* p0
) {
1819 val
* var_node
/* var node: AExprs */;
1821 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraAssignExpr> */
1823 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
1824 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
1830 /* method parser_prod#ABraAssignExpr#n_args= for (self: Object, AExprs) */
1831 void VIRTUAL_parser_prod__ABraAssignExpr__n_args_61d(val
* self
, val
* p0
) {
1832 parser_prod__ABraAssignExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#ABraAssignExpr#n_args= on <self:Object(ABraAssignExpr)>*/
1835 /* method parser_prod#ABraAssignExpr#n_assign= for (self: ABraAssignExpr, TAssign) */
1836 void parser_prod__ABraAssignExpr__n_assign_61d(val
* self
, val
* p0
) {
1837 val
* var_node
/* var node: TAssign */;
1839 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:ABraAssignExpr> */
1841 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
1842 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
1848 /* method parser_prod#ABraAssignExpr#n_assign= for (self: Object, TAssign) */
1849 void VIRTUAL_parser_prod__ABraAssignExpr__n_assign_61d(val
* self
, val
* p0
) {
1850 parser_prod__ABraAssignExpr__n_assign_61d(self
, p0
); /* Direct call parser_prod#ABraAssignExpr#n_assign= on <self:Object(ABraAssignExpr)>*/
1853 /* method parser_prod#ABraAssignExpr#n_value= for (self: ABraAssignExpr, AExpr) */
1854 void parser_prod__ABraAssignExpr__n_value_61d(val
* self
, val
* p0
) {
1855 val
* var_node
/* var node: AExpr */;
1857 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraAssignExpr> */
1859 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1860 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1866 /* method parser_prod#ABraAssignExpr#n_value= for (self: Object, AExpr) */
1867 void VIRTUAL_parser_prod__ABraAssignExpr__n_value_61d(val
* self
, val
* p0
) {
1868 parser_prod__ABraAssignExpr__n_value_61d(self
, p0
); /* Direct call parser_prod#ABraAssignExpr#n_value= on <self:Object(ABraAssignExpr)>*/
1871 /* method parser_prod#ABraAssignExpr#visit_all for (self: ABraAssignExpr, Visitor) */
1872 void parser_prod__ABraAssignExpr__visit_all(val
* self
, val
* p0
) {
1873 val
* var_v
/* var v: Visitor */;
1874 val
* var
/* : AExpr */;
1875 val
* var1
/* : AExprs */;
1876 val
* var2
/* : TAssign */;
1877 val
* var3
/* : AExpr */;
1879 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraAssignExpr> */
1880 if (unlikely(var
== NULL
)) {
1881 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1882 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4623);
1886 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1888 var1
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraAssignExpr> */
1889 if (unlikely(var1
== NULL
)) {
1890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1891 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4624);
1895 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1897 var2
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:ABraAssignExpr> */
1898 if (unlikely(var2
== NULL
)) {
1899 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
1900 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4625);
1904 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1906 var3
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:ABraAssignExpr> */
1907 if (unlikely(var3
== NULL
)) {
1908 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
1909 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4626);
1913 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1917 /* method parser_prod#ABraAssignExpr#visit_all for (self: Object, Visitor) */
1918 void VIRTUAL_parser_prod__ABraAssignExpr__visit_all(val
* self
, val
* p0
) {
1919 parser_prod__ABraAssignExpr__visit_all(self
, p0
); /* Direct call parser_prod#ABraAssignExpr#visit_all on <self:Object(ABraAssignExpr)>*/
1922 /* method parser_prod#ABraReassignExpr#init_abrareassignexpr for (self: ABraReassignExpr, nullable AExpr, nullable AExprs, nullable AAssignOp, nullable AExpr) */
1923 void parser_prod__ABraReassignExpr__init_abrareassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1924 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1925 val
* var_n_args
/* var n_args: nullable AExprs */;
1926 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
1927 val
* var_n_value
/* var n_value: nullable AExpr */;
1930 var_n_assign_op
= p2
;
1932 if (unlikely(var_n_expr
== NULL
)) {
1933 PRINT_ERROR("Runtime error: %s", "Cast failed");
1934 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4637);
1937 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ABraReassignExpr> */
1938 if (var_n_expr
== NULL
) {
1939 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1940 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4638);
1943 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1944 if (unlikely(var_n_expr
== NULL
)) {
1945 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1946 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1949 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1953 if (unlikely(var_n_args
== NULL
)) {
1954 PRINT_ERROR("Runtime error: %s", "Cast failed");
1955 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4639);
1958 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_n_args
; /* _n_args on <self:ABraReassignExpr> */
1959 if (var_n_args
== NULL
) {
1960 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1961 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4640);
1964 { /* Inline parser_nodes#ANode#parent= (var_n_args,self) on <var_n_args:nullable AExprs> */
1965 if (unlikely(var_n_args
== NULL
)) {
1966 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1967 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1970 var_n_args
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_args:nullable AExprs> */
1974 if (unlikely(var_n_assign_op
== NULL
)) {
1975 PRINT_ERROR("Runtime error: %s", "Cast failed");
1976 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4641);
1979 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:ABraReassignExpr> */
1980 if (var_n_assign_op
== NULL
) {
1981 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1982 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4642);
1985 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
1986 if (unlikely(var_n_assign_op
== NULL
)) {
1987 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1988 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1991 var_n_assign_op
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
1995 if (unlikely(var_n_value
== NULL
)) {
1996 PRINT_ERROR("Runtime error: %s", "Cast failed");
1997 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4643);
2000 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:ABraReassignExpr> */
2001 if (var_n_value
== NULL
) {
2002 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2003 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4644);
2006 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
2007 if (unlikely(var_n_value
== NULL
)) {
2008 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2009 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2012 var_n_value
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
2018 /* method parser_prod#ABraReassignExpr#init_abrareassignexpr for (self: Object, nullable AExpr, nullable AExprs, nullable AAssignOp, nullable AExpr) */
2019 void VIRTUAL_parser_prod__ABraReassignExpr__init_abrareassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
2020 parser_prod__ABraReassignExpr__init_abrareassignexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ABraReassignExpr#init_abrareassignexpr on <self:Object(ABraReassignExpr)>*/
2023 /* method parser_prod#ABraReassignExpr#replace_child for (self: ABraReassignExpr, ANode, nullable ANode) */
2024 void parser_prod__ABraReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2025 val
* var_old_child
/* var old_child: ANode */;
2026 val
* var_new_child
/* var new_child: nullable ANode */;
2027 val
* var
/* : AExpr */;
2028 short int var1
/* : Bool */;
2029 short int var2
/* : Bool */;
2030 val
* var_other
/* var other: nullable Object */;
2031 short int var4
/* : Bool */;
2032 short int var6
/* : Bool */;
2033 short int var7
/* : Bool */;
2036 const char* var_class_name
;
2037 val
* var8
/* : AExprs */;
2038 short int var9
/* : Bool */;
2039 short int var10
/* : Bool */;
2040 short int var12
/* : Bool */;
2041 short int var14
/* : Bool */;
2042 short int var15
/* : Bool */;
2045 const char* var_class_name18
;
2046 val
* var19
/* : AAssignOp */;
2047 short int var20
/* : Bool */;
2048 short int var21
/* : Bool */;
2049 short int var23
/* : Bool */;
2050 short int var25
/* : Bool */;
2051 short int var26
/* : Bool */;
2054 const char* var_class_name29
;
2055 val
* var30
/* : AExpr */;
2056 short int var31
/* : Bool */;
2057 short int var32
/* : Bool */;
2058 short int var34
/* : Bool */;
2059 short int var36
/* : Bool */;
2060 short int var37
/* : Bool */;
2063 const char* var_class_name40
;
2066 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
2067 if (unlikely(var
== NULL
)) {
2068 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2069 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4649);
2073 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
2074 var_other
= var_old_child
;
2076 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
2077 var6
= var
== var_other
;
2090 /* <var_new_child:nullable ANode> isa AExpr */
2091 cltype
= type_parser_nodes__AExpr
.color
;
2092 idtype
= type_parser_nodes__AExpr
.id
;
2093 if(var_new_child
== NULL
) {
2096 if(cltype
>= var_new_child
->type
->table_size
) {
2099 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2102 if (unlikely(!var7
)) {
2103 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2104 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
2105 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4650);
2109 parser_prod__ABraReassignExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_expr= on <self:ABraReassignExpr>*/
2114 var8
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
2115 if (unlikely(var8
== NULL
)) {
2116 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2117 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4653);
2121 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExprs> */
2122 var_other
= var_old_child
;
2124 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExprs> */
2125 var14
= var8
== var_other
;
2128 RET_LABEL13
:(void)0;
2133 RET_LABEL11
:(void)0;
2138 /* <var_new_child:nullable ANode> isa AExprs */
2139 cltype16
= type_parser_nodes__AExprs
.color
;
2140 idtype17
= type_parser_nodes__AExprs
.id
;
2141 if(var_new_child
== NULL
) {
2144 if(cltype16
>= var_new_child
->type
->table_size
) {
2147 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2150 if (unlikely(!var15
)) {
2151 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2152 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name18
);
2153 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4654);
2157 parser_prod__ABraReassignExpr__n_args_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_args= on <self:ABraReassignExpr>*/
2162 var19
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
2163 if (unlikely(var19
== NULL
)) {
2164 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
2165 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4657);
2169 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AAssignOp> */
2170 var_other
= var_old_child
;
2172 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AAssignOp> */
2173 var25
= var19
== var_other
;
2176 RET_LABEL24
:(void)0;
2181 RET_LABEL22
:(void)0;
2186 /* <var_new_child:nullable ANode> isa AAssignOp */
2187 cltype27
= type_parser_nodes__AAssignOp
.color
;
2188 idtype28
= type_parser_nodes__AAssignOp
.id
;
2189 if(var_new_child
== NULL
) {
2192 if(cltype27
>= var_new_child
->type
->table_size
) {
2195 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
2198 if (unlikely(!var26
)) {
2199 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2200 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name29
);
2201 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4658);
2205 parser_prod__ABraReassignExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_assign_op= on <self:ABraReassignExpr>*/
2210 var30
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
2211 if (unlikely(var30
== NULL
)) {
2212 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
2213 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4661);
2217 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AExpr> */
2218 var_other
= var_old_child
;
2220 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AExpr> */
2221 var36
= var30
== var_other
;
2224 RET_LABEL35
:(void)0;
2229 RET_LABEL33
:(void)0;
2234 /* <var_new_child:nullable ANode> isa AExpr */
2235 cltype38
= type_parser_nodes__AExpr
.color
;
2236 idtype39
= type_parser_nodes__AExpr
.id
;
2237 if(var_new_child
== NULL
) {
2240 if(cltype38
>= var_new_child
->type
->table_size
) {
2243 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
2246 if (unlikely(!var37
)) {
2247 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2248 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name40
);
2249 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4662);
2253 parser_prod__ABraReassignExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#ABraReassignExpr#n_value= on <self:ABraReassignExpr>*/
2260 /* method parser_prod#ABraReassignExpr#replace_child for (self: Object, ANode, nullable ANode) */
2261 void VIRTUAL_parser_prod__ABraReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2262 parser_prod__ABraReassignExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ABraReassignExpr#replace_child on <self:Object(ABraReassignExpr)>*/
2265 /* method parser_prod#ABraReassignExpr#n_expr= for (self: ABraReassignExpr, AExpr) */
2266 void parser_prod__ABraReassignExpr__n_expr_61d(val
* self
, val
* p0
) {
2267 val
* var_node
/* var node: AExpr */;
2269 self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ABraReassignExpr> */
2271 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2272 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2278 /* method parser_prod#ABraReassignExpr#n_expr= for (self: Object, AExpr) */
2279 void VIRTUAL_parser_prod__ABraReassignExpr__n_expr_61d(val
* self
, val
* p0
) {
2280 parser_prod__ABraReassignExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ABraReassignExpr#n_expr= on <self:Object(ABraReassignExpr)>*/
2283 /* method parser_prod#ABraReassignExpr#n_args= for (self: ABraReassignExpr, AExprs) */
2284 void parser_prod__ABraReassignExpr__n_args_61d(val
* self
, val
* p0
) {
2285 val
* var_node
/* var node: AExprs */;
2287 self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
= var_node
; /* _n_args on <self:ABraReassignExpr> */
2289 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
2290 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
2296 /* method parser_prod#ABraReassignExpr#n_args= for (self: Object, AExprs) */
2297 void VIRTUAL_parser_prod__ABraReassignExpr__n_args_61d(val
* self
, val
* p0
) {
2298 parser_prod__ABraReassignExpr__n_args_61d(self
, p0
); /* Direct call parser_prod#ABraReassignExpr#n_args= on <self:Object(ABraReassignExpr)>*/
2301 /* method parser_prod#ABraReassignExpr#n_assign_op= for (self: ABraReassignExpr, AAssignOp) */
2302 void parser_prod__ABraReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
2303 val
* var_node
/* var node: AAssignOp */;
2305 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:ABraReassignExpr> */
2307 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
2308 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
2314 /* method parser_prod#ABraReassignExpr#n_assign_op= for (self: Object, AAssignOp) */
2315 void VIRTUAL_parser_prod__ABraReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
2316 parser_prod__ABraReassignExpr__n_assign_op_61d(self
, p0
); /* Direct call parser_prod#ABraReassignExpr#n_assign_op= on <self:Object(ABraReassignExpr)>*/
2319 /* method parser_prod#ABraReassignExpr#n_value= for (self: ABraReassignExpr, AExpr) */
2320 void parser_prod__ABraReassignExpr__n_value_61d(val
* self
, val
* p0
) {
2321 val
* var_node
/* var node: AExpr */;
2323 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:ABraReassignExpr> */
2325 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2326 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2332 /* method parser_prod#ABraReassignExpr#n_value= for (self: Object, AExpr) */
2333 void VIRTUAL_parser_prod__ABraReassignExpr__n_value_61d(val
* self
, val
* p0
) {
2334 parser_prod__ABraReassignExpr__n_value_61d(self
, p0
); /* Direct call parser_prod#ABraReassignExpr#n_value= on <self:Object(ABraReassignExpr)>*/
2337 /* method parser_prod#ABraReassignExpr#visit_all for (self: ABraReassignExpr, Visitor) */
2338 void parser_prod__ABraReassignExpr__visit_all(val
* self
, val
* p0
) {
2339 val
* var_v
/* var v: Visitor */;
2340 val
* var
/* : AExpr */;
2341 val
* var1
/* : AExprs */;
2342 val
* var2
/* : AAssignOp */;
2343 val
* var3
/* : AExpr */;
2345 var
= self
->attrs
[COLOR_parser_nodes__ASendExpr___n_expr
].val
; /* _n_expr on <self:ABraReassignExpr> */
2346 if (unlikely(var
== NULL
)) {
2347 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2348 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4691);
2352 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2354 var1
= self
->attrs
[COLOR_parser_nodes__ABraFormExpr___n_args
].val
; /* _n_args on <self:ABraReassignExpr> */
2355 if (unlikely(var1
== NULL
)) {
2356 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2357 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4692);
2361 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2363 var2
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:ABraReassignExpr> */
2364 if (unlikely(var2
== NULL
)) {
2365 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
2366 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4693);
2370 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2372 var3
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:ABraReassignExpr> */
2373 if (unlikely(var3
== NULL
)) {
2374 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
2375 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4694);
2379 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2383 /* method parser_prod#ABraReassignExpr#visit_all for (self: Object, Visitor) */
2384 void VIRTUAL_parser_prod__ABraReassignExpr__visit_all(val
* self
, val
* p0
) {
2385 parser_prod__ABraReassignExpr__visit_all(self
, p0
); /* Direct call parser_prod#ABraReassignExpr#visit_all on <self:Object(ABraReassignExpr)>*/
2388 /* method parser_prod#AVarExpr#init_avarexpr for (self: AVarExpr, nullable TId) */
2389 void parser_prod__AVarExpr__init_avarexpr(val
* self
, val
* p0
) {
2390 val
* var_n_id
/* var n_id: nullable TId */;
2392 if (unlikely(var_n_id
== NULL
)) {
2393 PRINT_ERROR("Runtime error: %s", "Cast failed");
2394 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4702);
2397 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarExpr> */
2398 if (var_n_id
== NULL
) {
2399 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2400 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4703);
2403 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
2404 if (unlikely(var_n_id
== NULL
)) {
2405 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2406 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2409 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
2415 /* method parser_prod#AVarExpr#init_avarexpr for (self: Object, nullable TId) */
2416 void VIRTUAL_parser_prod__AVarExpr__init_avarexpr(val
* self
, val
* p0
) {
2417 parser_prod__AVarExpr__init_avarexpr(self
, p0
); /* Direct call parser_prod#AVarExpr#init_avarexpr on <self:Object(AVarExpr)>*/
2420 /* method parser_prod#AVarExpr#replace_child for (self: AVarExpr, ANode, nullable ANode) */
2421 void parser_prod__AVarExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2422 val
* var_old_child
/* var old_child: ANode */;
2423 val
* var_new_child
/* var new_child: nullable ANode */;
2424 val
* var
/* : TId */;
2425 short int var1
/* : Bool */;
2426 short int var2
/* : Bool */;
2427 val
* var_other
/* var other: nullable Object */;
2428 short int var4
/* : Bool */;
2429 short int var6
/* : Bool */;
2430 short int var7
/* : Bool */;
2433 const char* var_class_name
;
2436 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
2437 if (unlikely(var
== NULL
)) {
2438 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2439 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4708);
2443 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
2444 var_other
= var_old_child
;
2446 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
2447 var6
= var
== var_other
;
2460 /* <var_new_child:nullable ANode> isa TId */
2461 cltype
= type_parser_nodes__TId
.color
;
2462 idtype
= type_parser_nodes__TId
.id
;
2463 if(var_new_child
== NULL
) {
2466 if(cltype
>= var_new_child
->type
->table_size
) {
2469 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2472 if (unlikely(!var7
)) {
2473 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2474 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
2475 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4709);
2479 parser_prod__AVarExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarExpr#n_id= on <self:AVarExpr>*/
2486 /* method parser_prod#AVarExpr#replace_child for (self: Object, ANode, nullable ANode) */
2487 void VIRTUAL_parser_prod__AVarExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2488 parser_prod__AVarExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AVarExpr#replace_child on <self:Object(AVarExpr)>*/
2491 /* method parser_prod#AVarExpr#n_id= for (self: AVarExpr, TId) */
2492 void parser_prod__AVarExpr__n_id_61d(val
* self
, val
* p0
) {
2493 val
* var_node
/* var node: TId */;
2495 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarExpr> */
2497 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
2498 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
2504 /* method parser_prod#AVarExpr#n_id= for (self: Object, TId) */
2505 void VIRTUAL_parser_prod__AVarExpr__n_id_61d(val
* self
, val
* p0
) {
2506 parser_prod__AVarExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AVarExpr#n_id= on <self:Object(AVarExpr)>*/
2509 /* method parser_prod#AVarExpr#visit_all for (self: AVarExpr, Visitor) */
2510 void parser_prod__AVarExpr__visit_all(val
* self
, val
* p0
) {
2511 val
* var_v
/* var v: Visitor */;
2512 val
* var
/* : TId */;
2514 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarExpr> */
2515 if (unlikely(var
== NULL
)) {
2516 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2517 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4723);
2521 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2525 /* method parser_prod#AVarExpr#visit_all for (self: Object, Visitor) */
2526 void VIRTUAL_parser_prod__AVarExpr__visit_all(val
* self
, val
* p0
) {
2527 parser_prod__AVarExpr__visit_all(self
, p0
); /* Direct call parser_prod#AVarExpr#visit_all on <self:Object(AVarExpr)>*/
2530 /* method parser_prod#AVarAssignExpr#init_avarassignexpr for (self: AVarAssignExpr, nullable TId, nullable TAssign, nullable AExpr) */
2531 void parser_prod__AVarAssignExpr__init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2532 val
* var_n_id
/* var n_id: nullable TId */;
2533 val
* var_n_assign
/* var n_assign: nullable TAssign */;
2534 val
* var_n_value
/* var n_value: nullable AExpr */;
2538 if (unlikely(var_n_id
== NULL
)) {
2539 PRINT_ERROR("Runtime error: %s", "Cast failed");
2540 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4733);
2543 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarAssignExpr> */
2544 if (var_n_id
== NULL
) {
2545 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2546 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4734);
2549 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
2550 if (unlikely(var_n_id
== NULL
)) {
2551 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2552 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2555 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
2559 if (unlikely(var_n_assign
== NULL
)) {
2560 PRINT_ERROR("Runtime error: %s", "Cast failed");
2561 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4735);
2564 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVarAssignExpr> */
2565 if (var_n_assign
== NULL
) {
2566 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2567 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4736);
2570 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
2571 if (unlikely(var_n_assign
== NULL
)) {
2572 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2573 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2576 var_n_assign
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
2580 if (unlikely(var_n_value
== NULL
)) {
2581 PRINT_ERROR("Runtime error: %s", "Cast failed");
2582 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4737);
2585 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarAssignExpr> */
2586 if (var_n_value
== NULL
) {
2587 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2588 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4738);
2591 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
2592 if (unlikely(var_n_value
== NULL
)) {
2593 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2594 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2597 var_n_value
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
2603 /* method parser_prod#AVarAssignExpr#init_avarassignexpr for (self: Object, nullable TId, nullable TAssign, nullable AExpr) */
2604 void VIRTUAL_parser_prod__AVarAssignExpr__init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2605 parser_prod__AVarAssignExpr__init_avarassignexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#AVarAssignExpr#init_avarassignexpr on <self:Object(AVarAssignExpr)>*/
2608 /* method parser_prod#AVarAssignExpr#replace_child for (self: AVarAssignExpr, ANode, nullable ANode) */
2609 void parser_prod__AVarAssignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2610 val
* var_old_child
/* var old_child: ANode */;
2611 val
* var_new_child
/* var new_child: nullable ANode */;
2612 val
* var
/* : TId */;
2613 short int var1
/* : Bool */;
2614 short int var2
/* : Bool */;
2615 val
* var_other
/* var other: nullable Object */;
2616 short int var4
/* : Bool */;
2617 short int var6
/* : Bool */;
2618 short int var7
/* : Bool */;
2621 const char* var_class_name
;
2622 val
* var8
/* : TAssign */;
2623 short int var9
/* : Bool */;
2624 short int var10
/* : Bool */;
2625 short int var12
/* : Bool */;
2626 short int var14
/* : Bool */;
2627 short int var15
/* : Bool */;
2630 const char* var_class_name18
;
2631 val
* var19
/* : AExpr */;
2632 short int var20
/* : Bool */;
2633 short int var21
/* : Bool */;
2634 short int var23
/* : Bool */;
2635 short int var25
/* : Bool */;
2636 short int var26
/* : Bool */;
2639 const char* var_class_name29
;
2642 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
2643 if (unlikely(var
== NULL
)) {
2644 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2645 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4743);
2649 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
2650 var_other
= var_old_child
;
2652 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
2653 var6
= var
== var_other
;
2666 /* <var_new_child:nullable ANode> isa TId */
2667 cltype
= type_parser_nodes__TId
.color
;
2668 idtype
= type_parser_nodes__TId
.id
;
2669 if(var_new_child
== NULL
) {
2672 if(cltype
>= var_new_child
->type
->table_size
) {
2675 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2678 if (unlikely(!var7
)) {
2679 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2680 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
2681 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4744);
2685 parser_prod__AVarAssignExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_id= on <self:AVarAssignExpr>*/
2690 var8
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
2691 if (unlikely(var8
== NULL
)) {
2692 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
2693 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4747);
2697 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TAssign> */
2698 var_other
= var_old_child
;
2700 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TAssign> */
2701 var14
= var8
== var_other
;
2704 RET_LABEL13
:(void)0;
2709 RET_LABEL11
:(void)0;
2714 /* <var_new_child:nullable ANode> isa TAssign */
2715 cltype16
= type_parser_nodes__TAssign
.color
;
2716 idtype17
= type_parser_nodes__TAssign
.id
;
2717 if(var_new_child
== NULL
) {
2720 if(cltype16
>= var_new_child
->type
->table_size
) {
2723 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2726 if (unlikely(!var15
)) {
2727 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2728 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name18
);
2729 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4748);
2733 parser_prod__AVarAssignExpr__n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_assign= on <self:AVarAssignExpr>*/
2738 var19
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
2739 if (unlikely(var19
== NULL
)) {
2740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
2741 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4751);
2745 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
2746 var_other
= var_old_child
;
2748 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
2749 var25
= var19
== var_other
;
2752 RET_LABEL24
:(void)0;
2757 RET_LABEL22
:(void)0;
2762 /* <var_new_child:nullable ANode> isa AExpr */
2763 cltype27
= type_parser_nodes__AExpr
.color
;
2764 idtype28
= type_parser_nodes__AExpr
.id
;
2765 if(var_new_child
== NULL
) {
2768 if(cltype27
>= var_new_child
->type
->table_size
) {
2771 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
2774 if (unlikely(!var26
)) {
2775 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2776 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
2777 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4752);
2781 parser_prod__AVarAssignExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarAssignExpr#n_value= on <self:AVarAssignExpr>*/
2788 /* method parser_prod#AVarAssignExpr#replace_child for (self: Object, ANode, nullable ANode) */
2789 void VIRTUAL_parser_prod__AVarAssignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2790 parser_prod__AVarAssignExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AVarAssignExpr#replace_child on <self:Object(AVarAssignExpr)>*/
2793 /* method parser_prod#AVarAssignExpr#n_id= for (self: AVarAssignExpr, TId) */
2794 void parser_prod__AVarAssignExpr__n_id_61d(val
* self
, val
* p0
) {
2795 val
* var_node
/* var node: TId */;
2797 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarAssignExpr> */
2799 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
2800 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
2806 /* method parser_prod#AVarAssignExpr#n_id= for (self: Object, TId) */
2807 void VIRTUAL_parser_prod__AVarAssignExpr__n_id_61d(val
* self
, val
* p0
) {
2808 parser_prod__AVarAssignExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AVarAssignExpr#n_id= on <self:Object(AVarAssignExpr)>*/
2811 /* method parser_prod#AVarAssignExpr#n_assign= for (self: AVarAssignExpr, TAssign) */
2812 void parser_prod__AVarAssignExpr__n_assign_61d(val
* self
, val
* p0
) {
2813 val
* var_node
/* var node: TAssign */;
2815 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVarAssignExpr> */
2817 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
2818 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
2824 /* method parser_prod#AVarAssignExpr#n_assign= for (self: Object, TAssign) */
2825 void VIRTUAL_parser_prod__AVarAssignExpr__n_assign_61d(val
* self
, val
* p0
) {
2826 parser_prod__AVarAssignExpr__n_assign_61d(self
, p0
); /* Direct call parser_prod#AVarAssignExpr#n_assign= on <self:Object(AVarAssignExpr)>*/
2829 /* method parser_prod#AVarAssignExpr#n_value= for (self: AVarAssignExpr, AExpr) */
2830 void parser_prod__AVarAssignExpr__n_value_61d(val
* self
, val
* p0
) {
2831 val
* var_node
/* var node: AExpr */;
2833 self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarAssignExpr> */
2835 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
2836 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
2842 /* method parser_prod#AVarAssignExpr#n_value= for (self: Object, AExpr) */
2843 void VIRTUAL_parser_prod__AVarAssignExpr__n_value_61d(val
* self
, val
* p0
) {
2844 parser_prod__AVarAssignExpr__n_value_61d(self
, p0
); /* Direct call parser_prod#AVarAssignExpr#n_value= on <self:Object(AVarAssignExpr)>*/
2847 /* method parser_prod#AVarAssignExpr#visit_all for (self: AVarAssignExpr, Visitor) */
2848 void parser_prod__AVarAssignExpr__visit_all(val
* self
, val
* p0
) {
2849 val
* var_v
/* var v: Visitor */;
2850 val
* var
/* : TId */;
2851 val
* var1
/* : TAssign */;
2852 val
* var2
/* : AExpr */;
2854 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarAssignExpr> */
2855 if (unlikely(var
== NULL
)) {
2856 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2857 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4776);
2861 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2863 var1
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_assign
].val
; /* _n_assign on <self:AVarAssignExpr> */
2864 if (unlikely(var1
== NULL
)) {
2865 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
2866 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4777);
2870 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2872 var2
= self
->attrs
[COLOR_parser_nodes__AAssignFormExpr___n_value
].val
; /* _n_value on <self:AVarAssignExpr> */
2873 if (unlikely(var2
== NULL
)) {
2874 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
2875 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4778);
2879 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2883 /* method parser_prod#AVarAssignExpr#visit_all for (self: Object, Visitor) */
2884 void VIRTUAL_parser_prod__AVarAssignExpr__visit_all(val
* self
, val
* p0
) {
2885 parser_prod__AVarAssignExpr__visit_all(self
, p0
); /* Direct call parser_prod#AVarAssignExpr#visit_all on <self:Object(AVarAssignExpr)>*/
2888 /* method parser_prod#AVarReassignExpr#init_avarreassignexpr for (self: AVarReassignExpr, nullable TId, nullable AAssignOp, nullable AExpr) */
2889 void parser_prod__AVarReassignExpr__init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2890 val
* var_n_id
/* var n_id: nullable TId */;
2891 val
* var_n_assign_op
/* var n_assign_op: nullable AAssignOp */;
2892 val
* var_n_value
/* var n_value: nullable AExpr */;
2894 var_n_assign_op
= p1
;
2896 if (unlikely(var_n_id
== NULL
)) {
2897 PRINT_ERROR("Runtime error: %s", "Cast failed");
2898 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4788);
2901 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVarReassignExpr> */
2902 if (var_n_id
== NULL
) {
2903 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2904 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4789);
2907 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
2908 if (unlikely(var_n_id
== NULL
)) {
2909 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2910 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2913 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
2917 if (unlikely(var_n_assign_op
== NULL
)) {
2918 PRINT_ERROR("Runtime error: %s", "Cast failed");
2919 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4790);
2922 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_n_assign_op
; /* _n_assign_op on <self:AVarReassignExpr> */
2923 if (var_n_assign_op
== NULL
) {
2924 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2925 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4791);
2928 { /* Inline parser_nodes#ANode#parent= (var_n_assign_op,self) on <var_n_assign_op:nullable AAssignOp> */
2929 if (unlikely(var_n_assign_op
== NULL
)) {
2930 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2931 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2934 var_n_assign_op
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign_op:nullable AAssignOp> */
2938 if (unlikely(var_n_value
== NULL
)) {
2939 PRINT_ERROR("Runtime error: %s", "Cast failed");
2940 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4792);
2943 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
= var_n_value
; /* _n_value on <self:AVarReassignExpr> */
2944 if (var_n_value
== NULL
) {
2945 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2946 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4793);
2949 { /* Inline parser_nodes#ANode#parent= (var_n_value,self) on <var_n_value:nullable AExpr> */
2950 if (unlikely(var_n_value
== NULL
)) {
2951 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2952 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2955 var_n_value
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_value:nullable AExpr> */
2961 /* method parser_prod#AVarReassignExpr#init_avarreassignexpr for (self: Object, nullable TId, nullable AAssignOp, nullable AExpr) */
2962 void VIRTUAL_parser_prod__AVarReassignExpr__init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2963 parser_prod__AVarReassignExpr__init_avarreassignexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#AVarReassignExpr#init_avarreassignexpr on <self:Object(AVarReassignExpr)>*/
2966 /* method parser_prod#AVarReassignExpr#replace_child for (self: AVarReassignExpr, ANode, nullable ANode) */
2967 void parser_prod__AVarReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2968 val
* var_old_child
/* var old_child: ANode */;
2969 val
* var_new_child
/* var new_child: nullable ANode */;
2970 val
* var
/* : TId */;
2971 short int var1
/* : Bool */;
2972 short int var2
/* : Bool */;
2973 val
* var_other
/* var other: nullable Object */;
2974 short int var4
/* : Bool */;
2975 short int var6
/* : Bool */;
2976 short int var7
/* : Bool */;
2979 const char* var_class_name
;
2980 val
* var8
/* : AAssignOp */;
2981 short int var9
/* : Bool */;
2982 short int var10
/* : Bool */;
2983 short int var12
/* : Bool */;
2984 short int var14
/* : Bool */;
2985 short int var15
/* : Bool */;
2988 const char* var_class_name18
;
2989 val
* var19
/* : AExpr */;
2990 short int var20
/* : Bool */;
2991 short int var21
/* : Bool */;
2992 short int var23
/* : Bool */;
2993 short int var25
/* : Bool */;
2994 short int var26
/* : Bool */;
2997 const char* var_class_name29
;
3000 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
3001 if (unlikely(var
== NULL
)) {
3002 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3003 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4798);
3007 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
3008 var_other
= var_old_child
;
3010 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
3011 var6
= var
== var_other
;
3024 /* <var_new_child:nullable ANode> isa TId */
3025 cltype
= type_parser_nodes__TId
.color
;
3026 idtype
= type_parser_nodes__TId
.id
;
3027 if(var_new_child
== NULL
) {
3030 if(cltype
>= var_new_child
->type
->table_size
) {
3033 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3036 if (unlikely(!var7
)) {
3037 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3038 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
3039 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4799);
3043 parser_prod__AVarReassignExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_id= on <self:AVarReassignExpr>*/
3048 var8
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
3049 if (unlikely(var8
== NULL
)) {
3050 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3051 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4802);
3055 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AAssignOp> */
3056 var_other
= var_old_child
;
3058 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AAssignOp> */
3059 var14
= var8
== var_other
;
3062 RET_LABEL13
:(void)0;
3067 RET_LABEL11
:(void)0;
3072 /* <var_new_child:nullable ANode> isa AAssignOp */
3073 cltype16
= type_parser_nodes__AAssignOp
.color
;
3074 idtype17
= type_parser_nodes__AAssignOp
.id
;
3075 if(var_new_child
== NULL
) {
3078 if(cltype16
>= var_new_child
->type
->table_size
) {
3081 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
3084 if (unlikely(!var15
)) {
3085 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3086 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAssignOp", var_class_name18
);
3087 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4803);
3091 parser_prod__AVarReassignExpr__n_assign_op_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_assign_op= on <self:AVarReassignExpr>*/
3096 var19
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
3097 if (unlikely(var19
== NULL
)) {
3098 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3099 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4806);
3103 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
3104 var_other
= var_old_child
;
3106 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
3107 var25
= var19
== var_other
;
3110 RET_LABEL24
:(void)0;
3115 RET_LABEL22
:(void)0;
3120 /* <var_new_child:nullable ANode> isa AExpr */
3121 cltype27
= type_parser_nodes__AExpr
.color
;
3122 idtype28
= type_parser_nodes__AExpr
.id
;
3123 if(var_new_child
== NULL
) {
3126 if(cltype27
>= var_new_child
->type
->table_size
) {
3129 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
3132 if (unlikely(!var26
)) {
3133 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3134 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
3135 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4807);
3139 parser_prod__AVarReassignExpr__n_value_61d(self
, var_new_child
); /* Direct call parser_prod#AVarReassignExpr#n_value= on <self:AVarReassignExpr>*/
3146 /* method parser_prod#AVarReassignExpr#replace_child for (self: Object, ANode, nullable ANode) */
3147 void VIRTUAL_parser_prod__AVarReassignExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3148 parser_prod__AVarReassignExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AVarReassignExpr#replace_child on <self:Object(AVarReassignExpr)>*/
3151 /* method parser_prod#AVarReassignExpr#n_id= for (self: AVarReassignExpr, TId) */
3152 void parser_prod__AVarReassignExpr__n_id_61d(val
* self
, val
* p0
) {
3153 val
* var_node
/* var node: TId */;
3155 self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AVarReassignExpr> */
3157 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
3158 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
3164 /* method parser_prod#AVarReassignExpr#n_id= for (self: Object, TId) */
3165 void VIRTUAL_parser_prod__AVarReassignExpr__n_id_61d(val
* self
, val
* p0
) {
3166 parser_prod__AVarReassignExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AVarReassignExpr#n_id= on <self:Object(AVarReassignExpr)>*/
3169 /* method parser_prod#AVarReassignExpr#n_assign_op= for (self: AVarReassignExpr, AAssignOp) */
3170 void parser_prod__AVarReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
3171 val
* var_node
/* var node: AAssignOp */;
3173 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
= var_node
; /* _n_assign_op on <self:AVarReassignExpr> */
3175 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAssignOp> */
3176 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAssignOp> */
3182 /* method parser_prod#AVarReassignExpr#n_assign_op= for (self: Object, AAssignOp) */
3183 void VIRTUAL_parser_prod__AVarReassignExpr__n_assign_op_61d(val
* self
, val
* p0
) {
3184 parser_prod__AVarReassignExpr__n_assign_op_61d(self
, p0
); /* Direct call parser_prod#AVarReassignExpr#n_assign_op= on <self:Object(AVarReassignExpr)>*/
3187 /* method parser_prod#AVarReassignExpr#n_value= for (self: AVarReassignExpr, AExpr) */
3188 void parser_prod__AVarReassignExpr__n_value_61d(val
* self
, val
* p0
) {
3189 val
* var_node
/* var node: AExpr */;
3191 self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
= var_node
; /* _n_value on <self:AVarReassignExpr> */
3193 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3194 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3200 /* method parser_prod#AVarReassignExpr#n_value= for (self: Object, AExpr) */
3201 void VIRTUAL_parser_prod__AVarReassignExpr__n_value_61d(val
* self
, val
* p0
) {
3202 parser_prod__AVarReassignExpr__n_value_61d(self
, p0
); /* Direct call parser_prod#AVarReassignExpr#n_value= on <self:Object(AVarReassignExpr)>*/
3205 /* method parser_prod#AVarReassignExpr#visit_all for (self: AVarReassignExpr, Visitor) */
3206 void parser_prod__AVarReassignExpr__visit_all(val
* self
, val
* p0
) {
3207 val
* var_v
/* var v: Visitor */;
3208 val
* var
/* : TId */;
3209 val
* var1
/* : AAssignOp */;
3210 val
* var2
/* : AExpr */;
3212 var
= self
->attrs
[COLOR_parser_nodes__AVarFormExpr___n_id
].val
; /* _n_id on <self:AVarReassignExpr> */
3213 if (unlikely(var
== NULL
)) {
3214 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3215 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4831);
3219 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3221 var1
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_assign_op
].val
; /* _n_assign_op on <self:AVarReassignExpr> */
3222 if (unlikely(var1
== NULL
)) {
3223 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign_op");
3224 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4832);
3228 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3230 var2
= self
->attrs
[COLOR_parser_nodes__AReassignFormExpr___n_value
].val
; /* _n_value on <self:AVarReassignExpr> */
3231 if (unlikely(var2
== NULL
)) {
3232 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_value");
3233 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4833);
3237 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3241 /* method parser_prod#AVarReassignExpr#visit_all for (self: Object, Visitor) */
3242 void VIRTUAL_parser_prod__AVarReassignExpr__visit_all(val
* self
, val
* p0
) {
3243 parser_prod__AVarReassignExpr__visit_all(self
, p0
); /* Direct call parser_prod#AVarReassignExpr#visit_all on <self:Object(AVarReassignExpr)>*/
3246 /* method parser_prod#ACrangeExpr#init_acrangeexpr for (self: ACrangeExpr, nullable TObra, nullable AExpr, nullable AExpr, nullable TCbra, nullable AAnnotations) */
3247 void parser_prod__ACrangeExpr__init_acrangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3248 val
* var_n_obra
/* var n_obra: nullable TObra */;
3249 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3250 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
3251 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
3252 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3253 val
* var
/* : null */;
3254 short int var5
/* : Bool */;
3255 short int var6
/* : Bool */;
3256 val
* var_other
/* var other: nullable Object */;
3257 short int var8
/* : Bool */;
3258 short int var9
/* : Bool */;
3259 short int var10
/* : Bool */;
3264 var_n_annotations
= p4
;
3265 if (unlikely(var_n_obra
== NULL
)) {
3266 PRINT_ERROR("Runtime error: %s", "Cast failed");
3267 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4900);
3270 self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ACrangeExpr> */
3271 if (var_n_obra
== NULL
) {
3272 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3273 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4901);
3276 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
3277 if (unlikely(var_n_obra
== NULL
)) {
3278 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3279 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3282 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
3286 if (unlikely(var_n_expr
== NULL
)) {
3287 PRINT_ERROR("Runtime error: %s", "Cast failed");
3288 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4902);
3291 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ACrangeExpr> */
3292 if (var_n_expr
== NULL
) {
3293 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3294 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4903);
3297 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3298 if (unlikely(var_n_expr
== NULL
)) {
3299 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3300 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3303 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3307 if (unlikely(var_n_expr2
== NULL
)) {
3308 PRINT_ERROR("Runtime error: %s", "Cast failed");
3309 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4904);
3312 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:ACrangeExpr> */
3313 if (var_n_expr2
== NULL
) {
3314 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3315 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4905);
3318 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
3319 if (unlikely(var_n_expr2
== NULL
)) {
3320 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3321 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3324 var_n_expr2
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
3328 if (unlikely(var_n_cbra
== NULL
)) {
3329 PRINT_ERROR("Runtime error: %s", "Cast failed");
3330 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4906);
3333 self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ACrangeExpr> */
3334 if (var_n_cbra
== NULL
) {
3335 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3336 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4907);
3339 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
3340 if (unlikely(var_n_cbra
== NULL
)) {
3341 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3342 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3345 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
3349 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACrangeExpr> */
3351 if (var_n_annotations
== NULL
) {
3352 var5
= 0; /* is null */
3354 var5
= 1; /* arg is null and recv is not */
3357 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
3360 var9
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
3372 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3373 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3374 RET_LABEL11
:(void)0;
3381 /* method parser_prod#ACrangeExpr#init_acrangeexpr for (self: Object, nullable TObra, nullable AExpr, nullable AExpr, nullable TCbra, nullable AAnnotations) */
3382 void VIRTUAL_parser_prod__ACrangeExpr__init_acrangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3383 parser_prod__ACrangeExpr__init_acrangeexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#ACrangeExpr#init_acrangeexpr on <self:Object(ACrangeExpr)>*/
3386 /* method parser_prod#ACrangeExpr#replace_child for (self: ACrangeExpr, ANode, nullable ANode) */
3387 void parser_prod__ACrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3388 val
* var_old_child
/* var old_child: ANode */;
3389 val
* var_new_child
/* var new_child: nullable ANode */;
3390 val
* var
/* : TObra */;
3391 short int var1
/* : Bool */;
3392 short int var2
/* : Bool */;
3393 val
* var_other
/* var other: nullable Object */;
3394 short int var4
/* : Bool */;
3395 short int var6
/* : Bool */;
3396 short int var7
/* : Bool */;
3399 const char* var_class_name
;
3400 val
* var8
/* : AExpr */;
3401 short int var9
/* : Bool */;
3402 short int var10
/* : Bool */;
3403 short int var12
/* : Bool */;
3404 short int var14
/* : Bool */;
3405 short int var15
/* : Bool */;
3408 const char* var_class_name18
;
3409 val
* var19
/* : AExpr */;
3410 short int var20
/* : Bool */;
3411 short int var21
/* : Bool */;
3412 short int var23
/* : Bool */;
3413 short int var25
/* : Bool */;
3414 short int var26
/* : Bool */;
3417 const char* var_class_name29
;
3418 val
* var30
/* : TCbra */;
3419 short int var31
/* : Bool */;
3420 short int var32
/* : Bool */;
3421 short int var34
/* : Bool */;
3422 short int var36
/* : Bool */;
3423 short int var37
/* : Bool */;
3426 const char* var_class_name40
;
3427 val
* var41
/* : nullable AAnnotations */;
3428 short int var42
/* : Bool */;
3429 short int var43
/* : Bool */;
3430 short int var45
/* : Bool */;
3431 short int var47
/* : Bool */;
3432 short int var48
/* : Bool */;
3435 const char* var_class_name51
;
3438 var
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
3439 if (unlikely(var
== NULL
)) {
3440 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3441 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4914);
3445 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
3446 var_other
= var_old_child
;
3448 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
3449 var6
= var
== var_other
;
3462 /* <var_new_child:nullable ANode> isa TObra */
3463 cltype
= type_parser_nodes__TObra
.color
;
3464 idtype
= type_parser_nodes__TObra
.id
;
3465 if(var_new_child
== NULL
) {
3468 if(cltype
>= var_new_child
->type
->table_size
) {
3471 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3474 if (unlikely(!var7
)) {
3475 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3476 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
3477 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4915);
3481 parser_prod__ACrangeExpr__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_obra= on <self:ACrangeExpr>*/
3486 var8
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
3487 if (unlikely(var8
== NULL
)) {
3488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3489 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4918);
3493 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
3494 var_other
= var_old_child
;
3496 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
3497 var14
= var8
== var_other
;
3500 RET_LABEL13
:(void)0;
3505 RET_LABEL11
:(void)0;
3510 /* <var_new_child:nullable ANode> isa AExpr */
3511 cltype16
= type_parser_nodes__AExpr
.color
;
3512 idtype17
= type_parser_nodes__AExpr
.id
;
3513 if(var_new_child
== NULL
) {
3516 if(cltype16
>= var_new_child
->type
->table_size
) {
3519 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
3522 if (unlikely(!var15
)) {
3523 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3524 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
3525 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4919);
3529 parser_prod__ACrangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr= on <self:ACrangeExpr>*/
3534 var19
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
3535 if (unlikely(var19
== NULL
)) {
3536 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
3537 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4922);
3541 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
3542 var_other
= var_old_child
;
3544 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
3545 var25
= var19
== var_other
;
3548 RET_LABEL24
:(void)0;
3553 RET_LABEL22
:(void)0;
3558 /* <var_new_child:nullable ANode> isa AExpr */
3559 cltype27
= type_parser_nodes__AExpr
.color
;
3560 idtype28
= type_parser_nodes__AExpr
.id
;
3561 if(var_new_child
== NULL
) {
3564 if(cltype27
>= var_new_child
->type
->table_size
) {
3567 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
3570 if (unlikely(!var26
)) {
3571 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3572 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
3573 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4923);
3577 parser_prod__ACrangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_expr2= on <self:ACrangeExpr>*/
3582 var30
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
3583 if (unlikely(var30
== NULL
)) {
3584 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3585 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4926);
3589 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TCbra> */
3590 var_other
= var_old_child
;
3592 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TCbra> */
3593 var36
= var30
== var_other
;
3596 RET_LABEL35
:(void)0;
3601 RET_LABEL33
:(void)0;
3606 /* <var_new_child:nullable ANode> isa TCbra */
3607 cltype38
= type_parser_nodes__TCbra
.color
;
3608 idtype39
= type_parser_nodes__TCbra
.id
;
3609 if(var_new_child
== NULL
) {
3612 if(cltype38
>= var_new_child
->type
->table_size
) {
3615 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
3618 if (unlikely(!var37
)) {
3619 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3620 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name40
);
3621 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4927);
3625 parser_prod__ACrangeExpr__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_cbra= on <self:ACrangeExpr>*/
3630 var41
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
3631 if (var41
== NULL
) {
3632 var42
= 0; /* <var_old_child:ANode> cannot be null */
3634 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable AAnnotations> */
3635 var_other
= var_old_child
;
3637 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable AAnnotations(AAnnotations)> */
3638 var47
= var41
== var_other
;
3641 RET_LABEL46
:(void)0;
3646 RET_LABEL44
:(void)0;
3651 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3652 cltype49
= type_nullable_parser_nodes__AAnnotations
.color
;
3653 idtype50
= type_nullable_parser_nodes__AAnnotations
.id
;
3654 if(var_new_child
== NULL
) {
3657 if(cltype49
>= var_new_child
->type
->table_size
) {
3660 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
3663 if (unlikely(!var48
)) {
3664 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3665 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name51
);
3666 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4931);
3670 parser_prod__ACrangeExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACrangeExpr#n_annotations= on <self:ACrangeExpr>*/
3677 /* method parser_prod#ACrangeExpr#replace_child for (self: Object, ANode, nullable ANode) */
3678 void VIRTUAL_parser_prod__ACrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3679 parser_prod__ACrangeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACrangeExpr#replace_child on <self:Object(ACrangeExpr)>*/
3682 /* method parser_prod#ACrangeExpr#n_obra= for (self: ACrangeExpr, TObra) */
3683 void parser_prod__ACrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
3684 val
* var_node
/* var node: TObra */;
3686 self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:ACrangeExpr> */
3688 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
3689 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
3695 /* method parser_prod#ACrangeExpr#n_obra= for (self: Object, TObra) */
3696 void VIRTUAL_parser_prod__ACrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
3697 parser_prod__ACrangeExpr__n_obra_61d(self
, p0
); /* Direct call parser_prod#ACrangeExpr#n_obra= on <self:Object(ACrangeExpr)>*/
3700 /* method parser_prod#ACrangeExpr#n_expr= for (self: ACrangeExpr, AExpr) */
3701 void parser_prod__ACrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
3702 val
* var_node
/* var node: AExpr */;
3704 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ACrangeExpr> */
3706 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3707 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3713 /* method parser_prod#ACrangeExpr#n_expr= for (self: Object, AExpr) */
3714 void VIRTUAL_parser_prod__ACrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
3715 parser_prod__ACrangeExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ACrangeExpr#n_expr= on <self:Object(ACrangeExpr)>*/
3718 /* method parser_prod#ACrangeExpr#n_expr2= for (self: ACrangeExpr, AExpr) */
3719 void parser_prod__ACrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
3720 val
* var_node
/* var node: AExpr */;
3722 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:ACrangeExpr> */
3724 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3725 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3731 /* method parser_prod#ACrangeExpr#n_expr2= for (self: Object, AExpr) */
3732 void VIRTUAL_parser_prod__ACrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
3733 parser_prod__ACrangeExpr__n_expr2_61d(self
, p0
); /* Direct call parser_prod#ACrangeExpr#n_expr2= on <self:Object(ACrangeExpr)>*/
3736 /* method parser_prod#ACrangeExpr#n_cbra= for (self: ACrangeExpr, TCbra) */
3737 void parser_prod__ACrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
3738 val
* var_node
/* var node: TCbra */;
3740 self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:ACrangeExpr> */
3742 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
3743 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
3749 /* method parser_prod#ACrangeExpr#n_cbra= for (self: Object, TCbra) */
3750 void VIRTUAL_parser_prod__ACrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
3751 parser_prod__ACrangeExpr__n_cbra_61d(self
, p0
); /* Direct call parser_prod#ACrangeExpr#n_cbra= on <self:Object(ACrangeExpr)>*/
3754 /* method parser_prod#ACrangeExpr#n_annotations= for (self: ACrangeExpr, nullable AAnnotations) */
3755 void parser_prod__ACrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
3756 val
* var_node
/* var node: nullable AAnnotations */;
3757 val
* var
/* : null */;
3758 short int var1
/* : Bool */;
3759 short int var2
/* : Bool */;
3760 val
* var_other
/* var other: nullable Object */;
3761 short int var4
/* : Bool */;
3762 short int var5
/* : Bool */;
3763 short int var6
/* : Bool */;
3765 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACrangeExpr> */
3767 if (var_node
== NULL
) {
3768 var1
= 0; /* is null */
3770 var1
= 1; /* arg is null and recv is not */
3773 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3776 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3788 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3789 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3797 /* method parser_prod#ACrangeExpr#n_annotations= for (self: Object, nullable AAnnotations) */
3798 void VIRTUAL_parser_prod__ACrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
3799 parser_prod__ACrangeExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ACrangeExpr#n_annotations= on <self:Object(ACrangeExpr)>*/
3802 /* method parser_prod#ACrangeExpr#visit_all for (self: ACrangeExpr, Visitor) */
3803 void parser_prod__ACrangeExpr__visit_all(val
* self
, val
* p0
) {
3804 val
* var_v
/* var v: Visitor */;
3805 val
* var
/* : TObra */;
3806 val
* var1
/* : AExpr */;
3807 val
* var2
/* : AExpr */;
3808 val
* var3
/* : TCbra */;
3809 val
* var4
/* : nullable AAnnotations */;
3811 var
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
3812 if (unlikely(var
== NULL
)) {
3813 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3814 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4965);
3818 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3820 var1
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
3821 if (unlikely(var1
== NULL
)) {
3822 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3823 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4966);
3827 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3829 var2
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
3830 if (unlikely(var2
== NULL
)) {
3831 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
3832 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4967);
3836 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3838 var3
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
3839 if (unlikely(var3
== NULL
)) {
3840 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3841 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4968);
3845 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3847 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
3849 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3853 /* method parser_prod#ACrangeExpr#visit_all for (self: Object, Visitor) */
3854 void VIRTUAL_parser_prod__ACrangeExpr__visit_all(val
* self
, val
* p0
) {
3855 parser_prod__ACrangeExpr__visit_all(self
, p0
); /* Direct call parser_prod#ACrangeExpr#visit_all on <self:Object(ACrangeExpr)>*/
3858 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: AOrangeExpr, nullable TObra, nullable AExpr, nullable AExpr, nullable TObra, nullable AAnnotations) */
3859 void parser_prod__AOrangeExpr__init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3860 val
* var_n_obra
/* var n_obra: nullable TObra */;
3861 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3862 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
3863 val
* var_n_cbra
/* var n_cbra: nullable TObra */;
3864 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3865 val
* var
/* : null */;
3866 short int var5
/* : Bool */;
3867 short int var6
/* : Bool */;
3868 val
* var_other
/* var other: nullable Object */;
3869 short int var8
/* : Bool */;
3870 short int var9
/* : Bool */;
3871 short int var10
/* : Bool */;
3876 var_n_annotations
= p4
;
3877 if (unlikely(var_n_obra
== NULL
)) {
3878 PRINT_ERROR("Runtime error: %s", "Cast failed");
3879 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4981);
3882 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AOrangeExpr> */
3883 if (var_n_obra
== NULL
) {
3884 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3885 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4982);
3888 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
3889 if (unlikely(var_n_obra
== NULL
)) {
3890 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3891 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3894 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
3898 if (unlikely(var_n_expr
== NULL
)) {
3899 PRINT_ERROR("Runtime error: %s", "Cast failed");
3900 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4983);
3903 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrangeExpr> */
3904 if (var_n_expr
== NULL
) {
3905 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3906 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4984);
3909 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3910 if (unlikely(var_n_expr
== NULL
)) {
3911 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3912 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3915 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3919 if (unlikely(var_n_expr2
== NULL
)) {
3920 PRINT_ERROR("Runtime error: %s", "Cast failed");
3921 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4985);
3924 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrangeExpr> */
3925 if (var_n_expr2
== NULL
) {
3926 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3927 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4986);
3930 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
3931 if (unlikely(var_n_expr2
== NULL
)) {
3932 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3933 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3936 var_n_expr2
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
3940 if (unlikely(var_n_cbra
== NULL
)) {
3941 PRINT_ERROR("Runtime error: %s", "Cast failed");
3942 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4987);
3945 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AOrangeExpr> */
3946 if (var_n_cbra
== NULL
) {
3947 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3948 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4988);
3951 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TObra> */
3952 if (unlikely(var_n_cbra
== NULL
)) {
3953 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3954 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3957 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TObra> */
3961 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOrangeExpr> */
3963 if (var_n_annotations
== NULL
) {
3964 var5
= 0; /* is null */
3966 var5
= 1; /* arg is null and recv is not */
3969 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
3972 var9
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
3984 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3985 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3986 RET_LABEL11
:(void)0;
3993 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: Object, nullable TObra, nullable AExpr, nullable AExpr, nullable TObra, nullable AAnnotations) */
3994 void VIRTUAL_parser_prod__AOrangeExpr__init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3995 parser_prod__AOrangeExpr__init_aorangeexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#AOrangeExpr#init_aorangeexpr on <self:Object(AOrangeExpr)>*/
3998 /* method parser_prod#AOrangeExpr#replace_child for (self: AOrangeExpr, ANode, nullable ANode) */
3999 void parser_prod__AOrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4000 val
* var_old_child
/* var old_child: ANode */;
4001 val
* var_new_child
/* var new_child: nullable ANode */;
4002 val
* var
/* : TObra */;
4003 short int var1
/* : Bool */;
4004 short int var2
/* : Bool */;
4005 val
* var_other
/* var other: nullable Object */;
4006 short int var4
/* : Bool */;
4007 short int var6
/* : Bool */;
4008 short int var7
/* : Bool */;
4011 const char* var_class_name
;
4012 val
* var8
/* : AExpr */;
4013 short int var9
/* : Bool */;
4014 short int var10
/* : Bool */;
4015 short int var12
/* : Bool */;
4016 short int var14
/* : Bool */;
4017 short int var15
/* : Bool */;
4020 const char* var_class_name18
;
4021 val
* var19
/* : AExpr */;
4022 short int var20
/* : Bool */;
4023 short int var21
/* : Bool */;
4024 short int var23
/* : Bool */;
4025 short int var25
/* : Bool */;
4026 short int var26
/* : Bool */;
4029 const char* var_class_name29
;
4030 val
* var30
/* : TObra */;
4031 short int var31
/* : Bool */;
4032 short int var32
/* : Bool */;
4033 short int var34
/* : Bool */;
4034 short int var36
/* : Bool */;
4035 short int var37
/* : Bool */;
4038 const char* var_class_name40
;
4039 val
* var41
/* : nullable AAnnotations */;
4040 short int var42
/* : Bool */;
4041 short int var43
/* : Bool */;
4042 short int var45
/* : Bool */;
4043 short int var47
/* : Bool */;
4044 short int var48
/* : Bool */;
4047 const char* var_class_name51
;
4050 var
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
4051 if (unlikely(var
== NULL
)) {
4052 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4053 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4995);
4057 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
4058 var_other
= var_old_child
;
4060 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
4061 var6
= var
== var_other
;
4074 /* <var_new_child:nullable ANode> isa TObra */
4075 cltype
= type_parser_nodes__TObra
.color
;
4076 idtype
= type_parser_nodes__TObra
.id
;
4077 if(var_new_child
== NULL
) {
4080 if(cltype
>= var_new_child
->type
->table_size
) {
4083 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4086 if (unlikely(!var7
)) {
4087 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
4089 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4996);
4093 parser_prod__AOrangeExpr__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:AOrangeExpr>*/
4098 var8
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
4099 if (unlikely(var8
== NULL
)) {
4100 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4101 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 4999);
4105 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
4106 var_other
= var_old_child
;
4108 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
4109 var14
= var8
== var_other
;
4112 RET_LABEL13
:(void)0;
4117 RET_LABEL11
:(void)0;
4122 /* <var_new_child:nullable ANode> isa AExpr */
4123 cltype16
= type_parser_nodes__AExpr
.color
;
4124 idtype17
= type_parser_nodes__AExpr
.id
;
4125 if(var_new_child
== NULL
) {
4128 if(cltype16
>= var_new_child
->type
->table_size
) {
4131 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4134 if (unlikely(!var15
)) {
4135 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4136 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
4137 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5000);
4141 parser_prod__AOrangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:AOrangeExpr>*/
4146 var19
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
4147 if (unlikely(var19
== NULL
)) {
4148 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
4149 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5003);
4153 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
4154 var_other
= var_old_child
;
4156 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
4157 var25
= var19
== var_other
;
4160 RET_LABEL24
:(void)0;
4165 RET_LABEL22
:(void)0;
4170 /* <var_new_child:nullable ANode> isa AExpr */
4171 cltype27
= type_parser_nodes__AExpr
.color
;
4172 idtype28
= type_parser_nodes__AExpr
.id
;
4173 if(var_new_child
== NULL
) {
4176 if(cltype27
>= var_new_child
->type
->table_size
) {
4179 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
4182 if (unlikely(!var26
)) {
4183 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4184 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
4185 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5004);
4189 parser_prod__AOrangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:AOrangeExpr>*/
4194 var30
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
4195 if (unlikely(var30
== NULL
)) {
4196 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4197 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5007);
4201 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TObra> */
4202 var_other
= var_old_child
;
4204 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TObra> */
4205 var36
= var30
== var_other
;
4208 RET_LABEL35
:(void)0;
4213 RET_LABEL33
:(void)0;
4218 /* <var_new_child:nullable ANode> isa TObra */
4219 cltype38
= type_parser_nodes__TObra
.color
;
4220 idtype39
= type_parser_nodes__TObra
.id
;
4221 if(var_new_child
== NULL
) {
4224 if(cltype38
>= var_new_child
->type
->table_size
) {
4227 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
4230 if (unlikely(!var37
)) {
4231 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4232 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name40
);
4233 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5008);
4237 parser_prod__AOrangeExpr__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:AOrangeExpr>*/
4242 var41
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
4243 if (var41
== NULL
) {
4244 var42
= 0; /* <var_old_child:ANode> cannot be null */
4246 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable AAnnotations> */
4247 var_other
= var_old_child
;
4249 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable AAnnotations(AAnnotations)> */
4250 var47
= var41
== var_other
;
4253 RET_LABEL46
:(void)0;
4258 RET_LABEL44
:(void)0;
4263 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4264 cltype49
= type_nullable_parser_nodes__AAnnotations
.color
;
4265 idtype50
= type_nullable_parser_nodes__AAnnotations
.id
;
4266 if(var_new_child
== NULL
) {
4269 if(cltype49
>= var_new_child
->type
->table_size
) {
4272 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
4275 if (unlikely(!var48
)) {
4276 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4277 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name51
);
4278 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5012);
4282 parser_prod__AOrangeExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:AOrangeExpr>*/
4289 /* method parser_prod#AOrangeExpr#replace_child for (self: Object, ANode, nullable ANode) */
4290 void VIRTUAL_parser_prod__AOrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4291 parser_prod__AOrangeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AOrangeExpr#replace_child on <self:Object(AOrangeExpr)>*/
4294 /* method parser_prod#AOrangeExpr#n_obra= for (self: AOrangeExpr, TObra) */
4295 void parser_prod__AOrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
4296 val
* var_node
/* var node: TObra */;
4298 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AOrangeExpr> */
4300 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
4301 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
4307 /* method parser_prod#AOrangeExpr#n_obra= for (self: Object, TObra) */
4308 void VIRTUAL_parser_prod__AOrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
4309 parser_prod__AOrangeExpr__n_obra_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:Object(AOrangeExpr)>*/
4312 /* method parser_prod#AOrangeExpr#n_expr= for (self: AOrangeExpr, AExpr) */
4313 void parser_prod__AOrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
4314 val
* var_node
/* var node: AExpr */;
4316 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrangeExpr> */
4318 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4319 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4325 /* method parser_prod#AOrangeExpr#n_expr= for (self: Object, AExpr) */
4326 void VIRTUAL_parser_prod__AOrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
4327 parser_prod__AOrangeExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:Object(AOrangeExpr)>*/
4330 /* method parser_prod#AOrangeExpr#n_expr2= for (self: AOrangeExpr, AExpr) */
4331 void parser_prod__AOrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
4332 val
* var_node
/* var node: AExpr */;
4334 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AOrangeExpr> */
4336 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4337 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4343 /* method parser_prod#AOrangeExpr#n_expr2= for (self: Object, AExpr) */
4344 void VIRTUAL_parser_prod__AOrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
4345 parser_prod__AOrangeExpr__n_expr2_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:Object(AOrangeExpr)>*/
4348 /* method parser_prod#AOrangeExpr#n_cbra= for (self: AOrangeExpr, TObra) */
4349 void parser_prod__AOrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
4350 val
* var_node
/* var node: TObra */;
4352 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AOrangeExpr> */
4354 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
4355 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
4361 /* method parser_prod#AOrangeExpr#n_cbra= for (self: Object, TObra) */
4362 void VIRTUAL_parser_prod__AOrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
4363 parser_prod__AOrangeExpr__n_cbra_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:Object(AOrangeExpr)>*/
4366 /* method parser_prod#AOrangeExpr#n_annotations= for (self: AOrangeExpr, nullable AAnnotations) */
4367 void parser_prod__AOrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
4368 val
* var_node
/* var node: nullable AAnnotations */;
4369 val
* var
/* : null */;
4370 short int var1
/* : Bool */;
4371 short int var2
/* : Bool */;
4372 val
* var_other
/* var other: nullable Object */;
4373 short int var4
/* : Bool */;
4374 short int var5
/* : Bool */;
4375 short int var6
/* : Bool */;
4377 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOrangeExpr> */
4379 if (var_node
== NULL
) {
4380 var1
= 0; /* is null */
4382 var1
= 1; /* arg is null and recv is not */
4385 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
4388 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
4400 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4401 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4409 /* method parser_prod#AOrangeExpr#n_annotations= for (self: Object, nullable AAnnotations) */
4410 void VIRTUAL_parser_prod__AOrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
4411 parser_prod__AOrangeExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:Object(AOrangeExpr)>*/
4414 /* method parser_prod#AOrangeExpr#visit_all for (self: AOrangeExpr, Visitor) */
4415 void parser_prod__AOrangeExpr__visit_all(val
* self
, val
* p0
) {
4416 val
* var_v
/* var v: Visitor */;
4417 val
* var
/* : TObra */;
4418 val
* var1
/* : AExpr */;
4419 val
* var2
/* : AExpr */;
4420 val
* var3
/* : TObra */;
4421 val
* var4
/* : nullable AAnnotations */;
4423 var
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
4424 if (unlikely(var
== NULL
)) {
4425 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4426 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5046);
4430 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4432 var1
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
4433 if (unlikely(var1
== NULL
)) {
4434 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4435 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5047);
4439 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4441 var2
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
4442 if (unlikely(var2
== NULL
)) {
4443 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
4444 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5048);
4448 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4450 var3
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
4451 if (unlikely(var3
== NULL
)) {
4452 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4453 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5049);
4457 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4459 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
4461 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4465 /* method parser_prod#AOrangeExpr#visit_all for (self: Object, Visitor) */
4466 void VIRTUAL_parser_prod__AOrangeExpr__visit_all(val
* self
, val
* p0
) {
4467 parser_prod__AOrangeExpr__visit_all(self
, p0
); /* Direct call parser_prod#AOrangeExpr#visit_all on <self:Object(AOrangeExpr)>*/
4470 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: AArrayExpr, nullable TObra, nullable AExprs, nullable AType, nullable TCbra, nullable AAnnotations) */
4471 void parser_prod__AArrayExpr__init_aarrayexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4472 val
* var_n_obra
/* var n_obra: nullable TObra */;
4473 val
* var_n_exprs
/* var n_exprs: nullable AExprs */;
4474 val
* var_n_type
/* var n_type: nullable AType */;
4475 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
4476 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4477 val
* var
/* : null */;
4478 short int var3
/* : Bool */;
4479 short int var4
/* : Bool */;
4480 val
* var_other
/* var other: nullable Object */;
4481 short int var6
/* : Bool */;
4482 short int var7
/* : Bool */;
4483 short int var8
/* : Bool */;
4484 val
* var11
/* : null */;
4485 short int var12
/* : Bool */;
4486 short int var13
/* : Bool */;
4487 short int var15
/* : Bool */;
4488 short int var16
/* : Bool */;
4489 short int var17
/* : Bool */;
4494 var_n_annotations
= p4
;
4495 if (unlikely(var_n_obra
== NULL
)) {
4496 PRINT_ERROR("Runtime error: %s", "Cast failed");
4497 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5062);
4500 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AArrayExpr> */
4501 if (var_n_obra
== NULL
) {
4502 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4503 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5063);
4506 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
4507 if (unlikely(var_n_obra
== NULL
)) {
4508 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4509 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4512 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
4516 if (unlikely(var_n_exprs
== NULL
)) {
4517 PRINT_ERROR("Runtime error: %s", "Cast failed");
4518 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5064);
4521 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
= var_n_exprs
; /* _n_exprs on <self:AArrayExpr> */
4522 if (var_n_exprs
== NULL
) {
4523 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4524 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5065);
4527 { /* Inline parser_nodes#ANode#parent= (var_n_exprs,self) on <var_n_exprs:nullable AExprs> */
4528 if (unlikely(var_n_exprs
== NULL
)) {
4529 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4530 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4533 var_n_exprs
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_exprs:nullable AExprs> */
4537 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AArrayExpr> */
4539 if (var_n_type
== NULL
) {
4540 var3
= 0; /* is null */
4542 var3
= 1; /* arg is null and recv is not */
4545 { /* Inline kernel#Object#!= (var_n_type,var) on <var_n_type:nullable AType> */
4548 var7
= ((short int (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
4560 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
4561 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
4567 if (unlikely(var_n_cbra
== NULL
)) {
4568 PRINT_ERROR("Runtime error: %s", "Cast failed");
4569 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5068);
4572 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AArrayExpr> */
4573 if (var_n_cbra
== NULL
) {
4574 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4575 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5069);
4578 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
4579 if (unlikely(var_n_cbra
== NULL
)) {
4580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4581 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4584 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
4585 RET_LABEL10
:(void)0;
4588 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AArrayExpr> */
4590 if (var_n_annotations
== NULL
) {
4591 var12
= 0; /* is null */
4593 var12
= 1; /* arg is null and recv is not */
4596 { /* Inline kernel#Object#!= (var_n_annotations,var11) on <var_n_annotations:nullable AAnnotations> */
4599 var16
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
4605 RET_LABEL14
:(void)0;
4611 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4612 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4613 RET_LABEL18
:(void)0;
4620 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: Object, nullable TObra, nullable AExprs, nullable AType, nullable TCbra, nullable AAnnotations) */
4621 void VIRTUAL_parser_prod__AArrayExpr__init_aarrayexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4622 parser_prod__AArrayExpr__init_aarrayexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#AArrayExpr#init_aarrayexpr on <self:Object(AArrayExpr)>*/
4625 /* method parser_prod#AArrayExpr#replace_child for (self: AArrayExpr, ANode, nullable ANode) */
4626 void parser_prod__AArrayExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4627 val
* var_old_child
/* var old_child: ANode */;
4628 val
* var_new_child
/* var new_child: nullable ANode */;
4629 val
* var
/* : TObra */;
4630 short int var1
/* : Bool */;
4631 short int var2
/* : Bool */;
4632 val
* var_other
/* var other: nullable Object */;
4633 short int var4
/* : Bool */;
4634 short int var6
/* : Bool */;
4635 short int var7
/* : Bool */;
4638 const char* var_class_name
;
4639 val
* var8
/* : AExprs */;
4640 short int var9
/* : Bool */;
4641 short int var10
/* : Bool */;
4642 short int var12
/* : Bool */;
4643 short int var14
/* : Bool */;
4644 short int var15
/* : Bool */;
4647 const char* var_class_name18
;
4648 val
* var19
/* : nullable AType */;
4649 short int var20
/* : Bool */;
4650 short int var21
/* : Bool */;
4651 short int var23
/* : Bool */;
4652 short int var25
/* : Bool */;
4653 short int var26
/* : Bool */;
4656 const char* var_class_name29
;
4657 val
* var30
/* : TCbra */;
4658 short int var31
/* : Bool */;
4659 short int var32
/* : Bool */;
4660 short int var34
/* : Bool */;
4661 short int var36
/* : Bool */;
4662 short int var37
/* : Bool */;
4665 const char* var_class_name40
;
4666 val
* var41
/* : nullable AAnnotations */;
4667 short int var42
/* : Bool */;
4668 short int var43
/* : Bool */;
4669 short int var45
/* : Bool */;
4670 short int var47
/* : Bool */;
4671 short int var48
/* : Bool */;
4674 const char* var_class_name51
;
4677 var
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
4678 if (unlikely(var
== NULL
)) {
4679 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4680 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5076);
4684 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
4685 var_other
= var_old_child
;
4687 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
4688 var6
= var
== var_other
;
4701 /* <var_new_child:nullable ANode> isa TObra */
4702 cltype
= type_parser_nodes__TObra
.color
;
4703 idtype
= type_parser_nodes__TObra
.id
;
4704 if(var_new_child
== NULL
) {
4707 if(cltype
>= var_new_child
->type
->table_size
) {
4710 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4713 if (unlikely(!var7
)) {
4714 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4715 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
4716 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5077);
4720 parser_prod__AArrayExpr__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_obra= on <self:AArrayExpr>*/
4725 var8
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
4726 if (unlikely(var8
== NULL
)) {
4727 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
4728 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5080);
4732 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExprs> */
4733 var_other
= var_old_child
;
4735 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExprs> */
4736 var14
= var8
== var_other
;
4739 RET_LABEL13
:(void)0;
4744 RET_LABEL11
:(void)0;
4749 /* <var_new_child:nullable ANode> isa AExprs */
4750 cltype16
= type_parser_nodes__AExprs
.color
;
4751 idtype17
= type_parser_nodes__AExprs
.id
;
4752 if(var_new_child
== NULL
) {
4755 if(cltype16
>= var_new_child
->type
->table_size
) {
4758 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4761 if (unlikely(!var15
)) {
4762 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4763 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name18
);
4764 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5081);
4768 parser_prod__AArrayExpr__n_exprs_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_exprs= on <self:AArrayExpr>*/
4773 var19
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
4774 if (var19
== NULL
) {
4775 var20
= 0; /* <var_old_child:ANode> cannot be null */
4777 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AType> */
4778 var_other
= var_old_child
;
4780 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AType(AType)> */
4781 var25
= var19
== var_other
;
4784 RET_LABEL24
:(void)0;
4789 RET_LABEL22
:(void)0;
4794 /* <var_new_child:nullable ANode> isa nullable AType */
4795 cltype27
= type_nullable_parser_nodes__AType
.color
;
4796 idtype28
= type_nullable_parser_nodes__AType
.id
;
4797 if(var_new_child
== NULL
) {
4800 if(cltype27
>= var_new_child
->type
->table_size
) {
4803 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
4806 if (unlikely(!var26
)) {
4807 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4808 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name29
);
4809 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5085);
4813 parser_prod__AArrayExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_type= on <self:AArrayExpr>*/
4818 var30
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
4819 if (unlikely(var30
== NULL
)) {
4820 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4821 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5088);
4825 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TCbra> */
4826 var_other
= var_old_child
;
4828 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TCbra> */
4829 var36
= var30
== var_other
;
4832 RET_LABEL35
:(void)0;
4837 RET_LABEL33
:(void)0;
4842 /* <var_new_child:nullable ANode> isa TCbra */
4843 cltype38
= type_parser_nodes__TCbra
.color
;
4844 idtype39
= type_parser_nodes__TCbra
.id
;
4845 if(var_new_child
== NULL
) {
4848 if(cltype38
>= var_new_child
->type
->table_size
) {
4851 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
4854 if (unlikely(!var37
)) {
4855 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4856 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name40
);
4857 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5089);
4861 parser_prod__AArrayExpr__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_cbra= on <self:AArrayExpr>*/
4866 var41
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
4867 if (var41
== NULL
) {
4868 var42
= 0; /* <var_old_child:ANode> cannot be null */
4870 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable AAnnotations> */
4871 var_other
= var_old_child
;
4873 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable AAnnotations(AAnnotations)> */
4874 var47
= var41
== var_other
;
4877 RET_LABEL46
:(void)0;
4882 RET_LABEL44
:(void)0;
4887 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4888 cltype49
= type_nullable_parser_nodes__AAnnotations
.color
;
4889 idtype50
= type_nullable_parser_nodes__AAnnotations
.id
;
4890 if(var_new_child
== NULL
) {
4893 if(cltype49
>= var_new_child
->type
->table_size
) {
4896 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
4899 if (unlikely(!var48
)) {
4900 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4901 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name51
);
4902 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5093);
4906 parser_prod__AArrayExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:AArrayExpr>*/
4913 /* method parser_prod#AArrayExpr#replace_child for (self: Object, ANode, nullable ANode) */
4914 void VIRTUAL_parser_prod__AArrayExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4915 parser_prod__AArrayExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AArrayExpr#replace_child on <self:Object(AArrayExpr)>*/
4918 /* method parser_prod#AArrayExpr#n_obra= for (self: AArrayExpr, TObra) */
4919 void parser_prod__AArrayExpr__n_obra_61d(val
* self
, val
* p0
) {
4920 val
* var_node
/* var node: TObra */;
4922 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AArrayExpr> */
4924 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
4925 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
4931 /* method parser_prod#AArrayExpr#n_obra= for (self: Object, TObra) */
4932 void VIRTUAL_parser_prod__AArrayExpr__n_obra_61d(val
* self
, val
* p0
) {
4933 parser_prod__AArrayExpr__n_obra_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_obra= on <self:Object(AArrayExpr)>*/
4936 /* method parser_prod#AArrayExpr#n_exprs= for (self: AArrayExpr, AExprs) */
4937 void parser_prod__AArrayExpr__n_exprs_61d(val
* self
, val
* p0
) {
4938 val
* var_node
/* var node: AExprs */;
4940 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
= var_node
; /* _n_exprs on <self:AArrayExpr> */
4942 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
4943 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
4949 /* method parser_prod#AArrayExpr#n_exprs= for (self: Object, AExprs) */
4950 void VIRTUAL_parser_prod__AArrayExpr__n_exprs_61d(val
* self
, val
* p0
) {
4951 parser_prod__AArrayExpr__n_exprs_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_exprs= on <self:Object(AArrayExpr)>*/
4954 /* method parser_prod#AArrayExpr#n_type= for (self: AArrayExpr, nullable AType) */
4955 void parser_prod__AArrayExpr__n_type_61d(val
* self
, val
* p0
) {
4956 val
* var_node
/* var node: nullable AType */;
4957 val
* var
/* : null */;
4958 short int var1
/* : Bool */;
4959 short int var2
/* : Bool */;
4960 val
* var_other
/* var other: nullable Object */;
4961 short int var4
/* : Bool */;
4962 short int var5
/* : Bool */;
4963 short int var6
/* : Bool */;
4965 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_type
].val
= var_node
; /* _n_type on <self:AArrayExpr> */
4967 if (var_node
== NULL
) {
4968 var1
= 0; /* is null */
4970 var1
= 1; /* arg is null and recv is not */
4973 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
4976 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
4988 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
4989 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
4997 /* method parser_prod#AArrayExpr#n_type= for (self: Object, nullable AType) */
4998 void VIRTUAL_parser_prod__AArrayExpr__n_type_61d(val
* self
, val
* p0
) {
4999 parser_prod__AArrayExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_type= on <self:Object(AArrayExpr)>*/
5002 /* method parser_prod#AArrayExpr#n_cbra= for (self: AArrayExpr, TCbra) */
5003 void parser_prod__AArrayExpr__n_cbra_61d(val
* self
, val
* p0
) {
5004 val
* var_node
/* var node: TCbra */;
5006 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AArrayExpr> */
5008 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
5009 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
5015 /* method parser_prod#AArrayExpr#n_cbra= for (self: Object, TCbra) */
5016 void VIRTUAL_parser_prod__AArrayExpr__n_cbra_61d(val
* self
, val
* p0
) {
5017 parser_prod__AArrayExpr__n_cbra_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_cbra= on <self:Object(AArrayExpr)>*/
5020 /* method parser_prod#AArrayExpr#n_annotations= for (self: AArrayExpr, nullable AAnnotations) */
5021 void parser_prod__AArrayExpr__n_annotations_61d(val
* self
, val
* p0
) {
5022 val
* var_node
/* var node: nullable AAnnotations */;
5023 val
* var
/* : null */;
5024 short int var1
/* : Bool */;
5025 short int var2
/* : Bool */;
5026 val
* var_other
/* var other: nullable Object */;
5027 short int var4
/* : Bool */;
5028 short int var5
/* : Bool */;
5029 short int var6
/* : Bool */;
5031 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AArrayExpr> */
5033 if (var_node
== NULL
) {
5034 var1
= 0; /* is null */
5036 var1
= 1; /* arg is null and recv is not */
5039 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5042 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5054 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5055 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5063 /* method parser_prod#AArrayExpr#n_annotations= for (self: Object, nullable AAnnotations) */
5064 void VIRTUAL_parser_prod__AArrayExpr__n_annotations_61d(val
* self
, val
* p0
) {
5065 parser_prod__AArrayExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:Object(AArrayExpr)>*/
5068 /* method parser_prod#AArrayExpr#visit_all for (self: AArrayExpr, Visitor) */
5069 void parser_prod__AArrayExpr__visit_all(val
* self
, val
* p0
) {
5070 val
* var_v
/* var v: Visitor */;
5071 val
* var
/* : TObra */;
5072 val
* var1
/* : AExprs */;
5073 val
* var2
/* : nullable AType */;
5074 val
* var3
/* : TCbra */;
5075 val
* var4
/* : nullable AAnnotations */;
5077 var
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_obra
].val
; /* _n_obra on <self:AArrayExpr> */
5078 if (unlikely(var
== NULL
)) {
5079 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
5080 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5127);
5084 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5086 var1
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
5087 if (unlikely(var1
== NULL
)) {
5088 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
5089 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5128);
5093 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5095 var2
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_type
].val
; /* _n_type on <self:AArrayExpr> */
5097 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5099 var3
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_cbra
].val
; /* _n_cbra on <self:AArrayExpr> */
5100 if (unlikely(var3
== NULL
)) {
5101 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
5102 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5130);
5106 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5108 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
5110 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5114 /* method parser_prod#AArrayExpr#visit_all for (self: Object, Visitor) */
5115 void VIRTUAL_parser_prod__AArrayExpr__visit_all(val
* self
, val
* p0
) {
5116 parser_prod__AArrayExpr__visit_all(self
, p0
); /* Direct call parser_prod#AArrayExpr#visit_all on <self:Object(AArrayExpr)>*/
5119 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: ASelfExpr, nullable TKwself, nullable AAnnotations) */
5120 void parser_prod__ASelfExpr__init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
5121 val
* var_n_kwself
/* var n_kwself: nullable TKwself */;
5122 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5123 val
* var
/* : null */;
5124 short int var2
/* : Bool */;
5125 short int var3
/* : Bool */;
5126 val
* var_other
/* var other: nullable Object */;
5127 short int var5
/* : Bool */;
5128 short int var6
/* : Bool */;
5129 short int var7
/* : Bool */;
5131 var_n_annotations
= p1
;
5132 if (unlikely(var_n_kwself
== NULL
)) {
5133 PRINT_ERROR("Runtime error: %s", "Cast failed");
5134 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5140);
5137 self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
= var_n_kwself
; /* _n_kwself on <self:ASelfExpr> */
5138 if (var_n_kwself
== NULL
) {
5139 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5140 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5141);
5143 { /* Inline parser_nodes#ANode#parent= (var_n_kwself,self) on <var_n_kwself:nullable TKwself> */
5144 if (unlikely(var_n_kwself
== NULL
)) {
5145 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5146 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5149 var_n_kwself
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwself:nullable TKwself> */
5153 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASelfExpr> */
5155 if (var_n_annotations
== NULL
) {
5156 var2
= 0; /* is null */
5158 var2
= 1; /* arg is null and recv is not */
5161 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
5164 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
5176 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5177 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5185 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: Object, nullable TKwself, nullable AAnnotations) */
5186 void VIRTUAL_parser_prod__ASelfExpr__init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
5187 parser_prod__ASelfExpr__init_aselfexpr(self
, p0
, p1
); /* Direct call parser_prod#ASelfExpr#init_aselfexpr on <self:Object(ASelfExpr)>*/
5190 /* method parser_prod#ASelfExpr#replace_child for (self: ASelfExpr, ANode, nullable ANode) */
5191 void parser_prod__ASelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5192 val
* var_old_child
/* var old_child: ANode */;
5193 val
* var_new_child
/* var new_child: nullable ANode */;
5194 val
* var
/* : nullable TKwself */;
5195 short int var1
/* : Bool */;
5196 short int var2
/* : Bool */;
5197 val
* var_other
/* var other: nullable Object */;
5198 short int var4
/* : Bool */;
5199 short int var6
/* : Bool */;
5200 short int var7
/* : Bool */;
5203 const char* var_class_name
;
5204 val
* var8
/* : nullable AAnnotations */;
5205 short int var9
/* : Bool */;
5206 short int var10
/* : Bool */;
5207 short int var12
/* : Bool */;
5208 short int var14
/* : Bool */;
5209 short int var15
/* : Bool */;
5212 const char* var_class_name18
;
5215 var
= self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
5217 var1
= 0; /* <var_old_child:ANode> cannot be null */
5219 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwself> */
5220 var_other
= var_old_child
;
5222 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwself(TKwself)> */
5223 var6
= var
== var_other
;
5236 /* <var_new_child:nullable ANode> isa TKwself */
5237 cltype
= type_parser_nodes__TKwself
.color
;
5238 idtype
= type_parser_nodes__TKwself
.id
;
5239 if(var_new_child
== NULL
) {
5242 if(cltype
>= var_new_child
->type
->table_size
) {
5245 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5248 if (unlikely(!var7
)) {
5249 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwself", var_class_name
);
5251 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5149);
5255 parser_prod__ASelfExpr__n_kwself_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:ASelfExpr>*/
5260 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
5262 var9
= 0; /* <var_old_child:ANode> cannot be null */
5264 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
5265 var_other
= var_old_child
;
5267 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
5268 var14
= var8
== var_other
;
5271 RET_LABEL13
:(void)0;
5276 RET_LABEL11
:(void)0;
5281 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5282 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
5283 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
5284 if(var_new_child
== NULL
) {
5287 if(cltype16
>= var_new_child
->type
->table_size
) {
5290 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5293 if (unlikely(!var15
)) {
5294 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5295 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
5296 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5153);
5300 parser_prod__ASelfExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:ASelfExpr>*/
5307 /* method parser_prod#ASelfExpr#replace_child for (self: Object, ANode, nullable ANode) */
5308 void VIRTUAL_parser_prod__ASelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5309 parser_prod__ASelfExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASelfExpr#replace_child on <self:Object(ASelfExpr)>*/
5312 /* method parser_prod#ASelfExpr#n_kwself= for (self: ASelfExpr, nullable TKwself) */
5313 void parser_prod__ASelfExpr__n_kwself_61d(val
* self
, val
* p0
) {
5314 val
* var_node
/* var node: nullable TKwself */;
5316 self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
= var_node
; /* _n_kwself on <self:ASelfExpr> */
5317 if (var_node
== NULL
) {
5318 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5319 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5161);
5322 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwself> */
5323 if (unlikely(var_node
== NULL
)) {
5324 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5325 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5328 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwself> */
5334 /* method parser_prod#ASelfExpr#n_kwself= for (self: Object, nullable TKwself) */
5335 void VIRTUAL_parser_prod__ASelfExpr__n_kwself_61d(val
* self
, val
* p0
) {
5336 parser_prod__ASelfExpr__n_kwself_61d(self
, p0
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:Object(ASelfExpr)>*/
5339 /* method parser_prod#ASelfExpr#n_annotations= for (self: ASelfExpr, nullable AAnnotations) */
5340 void parser_prod__ASelfExpr__n_annotations_61d(val
* self
, val
* p0
) {
5341 val
* var_node
/* var node: nullable AAnnotations */;
5342 val
* var
/* : null */;
5343 short int var1
/* : Bool */;
5344 short int var2
/* : Bool */;
5345 val
* var_other
/* var other: nullable Object */;
5346 short int var4
/* : Bool */;
5347 short int var5
/* : Bool */;
5348 short int var6
/* : Bool */;
5350 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASelfExpr> */
5352 if (var_node
== NULL
) {
5353 var1
= 0; /* is null */
5355 var1
= 1; /* arg is null and recv is not */
5358 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5361 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5373 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5374 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5382 /* method parser_prod#ASelfExpr#n_annotations= for (self: Object, nullable AAnnotations) */
5383 void VIRTUAL_parser_prod__ASelfExpr__n_annotations_61d(val
* self
, val
* p0
) {
5384 parser_prod__ASelfExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:Object(ASelfExpr)>*/
5387 /* method parser_prod#ASelfExpr#visit_all for (self: ASelfExpr, Visitor) */
5388 void parser_prod__ASelfExpr__visit_all(val
* self
, val
* p0
) {
5389 val
* var_v
/* var v: Visitor */;
5390 val
* var
/* : nullable TKwself */;
5391 val
* var1
/* : nullable AAnnotations */;
5393 var
= self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
5395 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5397 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
5399 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5403 /* method parser_prod#ASelfExpr#visit_all for (self: Object, Visitor) */
5404 void VIRTUAL_parser_prod__ASelfExpr__visit_all(val
* self
, val
* p0
) {
5405 parser_prod__ASelfExpr__visit_all(self
, p0
); /* Direct call parser_prod#ASelfExpr#visit_all on <self:Object(ASelfExpr)>*/
5408 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: AImplicitSelfExpr) */
5409 void parser_prod__AImplicitSelfExpr__init_aimplicitselfexpr(val
* self
) {
5412 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: Object) */
5413 void VIRTUAL_parser_prod__AImplicitSelfExpr__init_aimplicitselfexpr(val
* self
) {
5414 { /* Inline parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr (self) on <self:Object(AImplicitSelfExpr)> */
5419 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: AImplicitSelfExpr, ANode, nullable ANode) */
5420 void parser_prod__AImplicitSelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5421 val
* var_old_child
/* var old_child: ANode */;
5422 val
* var_new_child
/* var new_child: nullable ANode */;
5427 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: Object, ANode, nullable ANode) */
5428 void VIRTUAL_parser_prod__AImplicitSelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5429 val
* var_old_child
/* var old_child: ANode */;
5430 val
* var_new_child
/* var new_child: nullable ANode */;
5431 { /* Inline parser_prod#AImplicitSelfExpr#replace_child (self,p0,p1) on <self:Object(AImplicitSelfExpr)> */
5438 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: AImplicitSelfExpr, Visitor) */
5439 void parser_prod__AImplicitSelfExpr__visit_all(val
* self
, val
* p0
) {
5440 val
* var_v
/* var v: Visitor */;
5444 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: Object, Visitor) */
5445 void VIRTUAL_parser_prod__AImplicitSelfExpr__visit_all(val
* self
, val
* p0
) {
5446 val
* var_v
/* var v: Visitor */;
5447 { /* Inline parser_prod#AImplicitSelfExpr#visit_all (self,p0) on <self:Object(AImplicitSelfExpr)> */
5453 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: ATrueExpr, nullable TKwtrue, nullable AAnnotations) */
5454 void parser_prod__ATrueExpr__init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
5455 val
* var_n_kwtrue
/* var n_kwtrue: nullable TKwtrue */;
5456 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5457 val
* var
/* : null */;
5458 short int var2
/* : Bool */;
5459 short int var3
/* : Bool */;
5460 val
* var_other
/* var other: nullable Object */;
5461 short int var5
/* : Bool */;
5462 short int var6
/* : Bool */;
5463 short int var7
/* : Bool */;
5465 var_n_annotations
= p1
;
5466 if (unlikely(var_n_kwtrue
== NULL
)) {
5467 PRINT_ERROR("Runtime error: %s", "Cast failed");
5468 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5197);
5471 self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
= var_n_kwtrue
; /* _n_kwtrue on <self:ATrueExpr> */
5472 if (var_n_kwtrue
== NULL
) {
5473 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5474 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5198);
5477 { /* Inline parser_nodes#ANode#parent= (var_n_kwtrue,self) on <var_n_kwtrue:nullable TKwtrue> */
5478 if (unlikely(var_n_kwtrue
== NULL
)) {
5479 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5480 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5483 var_n_kwtrue
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtrue:nullable TKwtrue> */
5487 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATrueExpr> */
5489 if (var_n_annotations
== NULL
) {
5490 var2
= 0; /* is null */
5492 var2
= 1; /* arg is null and recv is not */
5495 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
5498 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
5510 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5511 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5519 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: Object, nullable TKwtrue, nullable AAnnotations) */
5520 void VIRTUAL_parser_prod__ATrueExpr__init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
5521 parser_prod__ATrueExpr__init_atrueexpr(self
, p0
, p1
); /* Direct call parser_prod#ATrueExpr#init_atrueexpr on <self:Object(ATrueExpr)>*/
5524 /* method parser_prod#ATrueExpr#replace_child for (self: ATrueExpr, ANode, nullable ANode) */
5525 void parser_prod__ATrueExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5526 val
* var_old_child
/* var old_child: ANode */;
5527 val
* var_new_child
/* var new_child: nullable ANode */;
5528 val
* var
/* : TKwtrue */;
5529 short int var1
/* : Bool */;
5530 short int var2
/* : Bool */;
5531 val
* var_other
/* var other: nullable Object */;
5532 short int var4
/* : Bool */;
5533 short int var6
/* : Bool */;
5534 short int var7
/* : Bool */;
5537 const char* var_class_name
;
5538 val
* var8
/* : nullable AAnnotations */;
5539 short int var9
/* : Bool */;
5540 short int var10
/* : Bool */;
5541 short int var12
/* : Bool */;
5542 short int var14
/* : Bool */;
5543 short int var15
/* : Bool */;
5546 const char* var_class_name18
;
5549 var
= self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
5550 if (unlikely(var
== NULL
)) {
5551 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
5552 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5205);
5556 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwtrue> */
5557 var_other
= var_old_child
;
5559 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwtrue> */
5560 var6
= var
== var_other
;
5573 /* <var_new_child:nullable ANode> isa TKwtrue */
5574 cltype
= type_parser_nodes__TKwtrue
.color
;
5575 idtype
= type_parser_nodes__TKwtrue
.id
;
5576 if(var_new_child
== NULL
) {
5579 if(cltype
>= var_new_child
->type
->table_size
) {
5582 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5585 if (unlikely(!var7
)) {
5586 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5587 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtrue", var_class_name
);
5588 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5206);
5592 parser_prod__ATrueExpr__n_kwtrue_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_kwtrue= on <self:ATrueExpr>*/
5597 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
5599 var9
= 0; /* <var_old_child:ANode> cannot be null */
5601 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
5602 var_other
= var_old_child
;
5604 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
5605 var14
= var8
== var_other
;
5608 RET_LABEL13
:(void)0;
5613 RET_LABEL11
:(void)0;
5618 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5619 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
5620 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
5621 if(var_new_child
== NULL
) {
5624 if(cltype16
>= var_new_child
->type
->table_size
) {
5627 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5630 if (unlikely(!var15
)) {
5631 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5632 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
5633 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5210);
5637 parser_prod__ATrueExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_annotations= on <self:ATrueExpr>*/
5644 /* method parser_prod#ATrueExpr#replace_child for (self: Object, ANode, nullable ANode) */
5645 void VIRTUAL_parser_prod__ATrueExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5646 parser_prod__ATrueExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATrueExpr#replace_child on <self:Object(ATrueExpr)>*/
5649 /* method parser_prod#ATrueExpr#n_kwtrue= for (self: ATrueExpr, TKwtrue) */
5650 void parser_prod__ATrueExpr__n_kwtrue_61d(val
* self
, val
* p0
) {
5651 val
* var_node
/* var node: TKwtrue */;
5653 self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
= var_node
; /* _n_kwtrue on <self:ATrueExpr> */
5655 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtrue> */
5656 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtrue> */
5662 /* method parser_prod#ATrueExpr#n_kwtrue= for (self: Object, TKwtrue) */
5663 void VIRTUAL_parser_prod__ATrueExpr__n_kwtrue_61d(val
* self
, val
* p0
) {
5664 parser_prod__ATrueExpr__n_kwtrue_61d(self
, p0
); /* Direct call parser_prod#ATrueExpr#n_kwtrue= on <self:Object(ATrueExpr)>*/
5667 /* method parser_prod#ATrueExpr#n_annotations= for (self: ATrueExpr, nullable AAnnotations) */
5668 void parser_prod__ATrueExpr__n_annotations_61d(val
* self
, val
* p0
) {
5669 val
* var_node
/* var node: nullable AAnnotations */;
5670 val
* var
/* : null */;
5671 short int var1
/* : Bool */;
5672 short int var2
/* : Bool */;
5673 val
* var_other
/* var other: nullable Object */;
5674 short int var4
/* : Bool */;
5675 short int var5
/* : Bool */;
5676 short int var6
/* : Bool */;
5678 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATrueExpr> */
5680 if (var_node
== NULL
) {
5681 var1
= 0; /* is null */
5683 var1
= 1; /* arg is null and recv is not */
5686 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5689 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5701 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5702 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5710 /* method parser_prod#ATrueExpr#n_annotations= for (self: Object, nullable AAnnotations) */
5711 void VIRTUAL_parser_prod__ATrueExpr__n_annotations_61d(val
* self
, val
* p0
) {
5712 parser_prod__ATrueExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ATrueExpr#n_annotations= on <self:Object(ATrueExpr)>*/
5715 /* method parser_prod#ATrueExpr#visit_all for (self: ATrueExpr, Visitor) */
5716 void parser_prod__ATrueExpr__visit_all(val
* self
, val
* p0
) {
5717 val
* var_v
/* var v: Visitor */;
5718 val
* var
/* : TKwtrue */;
5719 val
* var1
/* : nullable AAnnotations */;
5721 var
= self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
5722 if (unlikely(var
== NULL
)) {
5723 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
5724 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5229);
5728 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5730 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
5732 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5736 /* method parser_prod#ATrueExpr#visit_all for (self: Object, Visitor) */
5737 void VIRTUAL_parser_prod__ATrueExpr__visit_all(val
* self
, val
* p0
) {
5738 parser_prod__ATrueExpr__visit_all(self
, p0
); /* Direct call parser_prod#ATrueExpr#visit_all on <self:Object(ATrueExpr)>*/
5741 /* method parser_prod#AFalseExpr#init_afalseexpr for (self: AFalseExpr, nullable TKwfalse, nullable AAnnotations) */
5742 void parser_prod__AFalseExpr__init_afalseexpr(val
* self
, val
* p0
, val
* p1
) {
5743 val
* var_n_kwfalse
/* var n_kwfalse: nullable TKwfalse */;
5744 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5745 val
* var
/* : null */;
5746 short int var2
/* : Bool */;
5747 short int var3
/* : Bool */;
5748 val
* var_other
/* var other: nullable Object */;
5749 short int var5
/* : Bool */;
5750 short int var6
/* : Bool */;
5751 short int var7
/* : Bool */;
5753 var_n_annotations
= p1
;
5754 if (unlikely(var_n_kwfalse
== NULL
)) {
5755 PRINT_ERROR("Runtime error: %s", "Cast failed");
5756 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5239);
5759 self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
= var_n_kwfalse
; /* _n_kwfalse on <self:AFalseExpr> */
5760 if (var_n_kwfalse
== NULL
) {
5761 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5762 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5240);
5765 { /* Inline parser_nodes#ANode#parent= (var_n_kwfalse,self) on <var_n_kwfalse:nullable TKwfalse> */
5766 if (unlikely(var_n_kwfalse
== NULL
)) {
5767 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5768 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5771 var_n_kwfalse
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwfalse:nullable TKwfalse> */
5775 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFalseExpr> */
5777 if (var_n_annotations
== NULL
) {
5778 var2
= 0; /* is null */
5780 var2
= 1; /* arg is null and recv is not */
5783 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
5786 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
5798 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5799 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5807 /* method parser_prod#AFalseExpr#init_afalseexpr for (self: Object, nullable TKwfalse, nullable AAnnotations) */
5808 void VIRTUAL_parser_prod__AFalseExpr__init_afalseexpr(val
* self
, val
* p0
, val
* p1
) {
5809 parser_prod__AFalseExpr__init_afalseexpr(self
, p0
, p1
); /* Direct call parser_prod#AFalseExpr#init_afalseexpr on <self:Object(AFalseExpr)>*/
5812 /* method parser_prod#AFalseExpr#replace_child for (self: AFalseExpr, ANode, nullable ANode) */
5813 void parser_prod__AFalseExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5814 val
* var_old_child
/* var old_child: ANode */;
5815 val
* var_new_child
/* var new_child: nullable ANode */;
5816 val
* var
/* : TKwfalse */;
5817 short int var1
/* : Bool */;
5818 short int var2
/* : Bool */;
5819 val
* var_other
/* var other: nullable Object */;
5820 short int var4
/* : Bool */;
5821 short int var6
/* : Bool */;
5822 short int var7
/* : Bool */;
5825 const char* var_class_name
;
5826 val
* var8
/* : nullable AAnnotations */;
5827 short int var9
/* : Bool */;
5828 short int var10
/* : Bool */;
5829 short int var12
/* : Bool */;
5830 short int var14
/* : Bool */;
5831 short int var15
/* : Bool */;
5834 const char* var_class_name18
;
5837 var
= self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
5838 if (unlikely(var
== NULL
)) {
5839 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
5840 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5247);
5844 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwfalse> */
5845 var_other
= var_old_child
;
5847 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwfalse> */
5848 var6
= var
== var_other
;
5861 /* <var_new_child:nullable ANode> isa TKwfalse */
5862 cltype
= type_parser_nodes__TKwfalse
.color
;
5863 idtype
= type_parser_nodes__TKwfalse
.id
;
5864 if(var_new_child
== NULL
) {
5867 if(cltype
>= var_new_child
->type
->table_size
) {
5870 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5873 if (unlikely(!var7
)) {
5874 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5875 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwfalse", var_class_name
);
5876 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5248);
5880 parser_prod__AFalseExpr__n_kwfalse_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_kwfalse= on <self:AFalseExpr>*/
5885 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
5887 var9
= 0; /* <var_old_child:ANode> cannot be null */
5889 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
5890 var_other
= var_old_child
;
5892 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
5893 var14
= var8
== var_other
;
5896 RET_LABEL13
:(void)0;
5901 RET_LABEL11
:(void)0;
5906 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5907 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
5908 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
5909 if(var_new_child
== NULL
) {
5912 if(cltype16
>= var_new_child
->type
->table_size
) {
5915 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5918 if (unlikely(!var15
)) {
5919 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5920 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
5921 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5252);
5925 parser_prod__AFalseExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_annotations= on <self:AFalseExpr>*/
5932 /* method parser_prod#AFalseExpr#replace_child for (self: Object, ANode, nullable ANode) */
5933 void VIRTUAL_parser_prod__AFalseExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5934 parser_prod__AFalseExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFalseExpr#replace_child on <self:Object(AFalseExpr)>*/
5937 /* method parser_prod#AFalseExpr#n_kwfalse= for (self: AFalseExpr, TKwfalse) */
5938 void parser_prod__AFalseExpr__n_kwfalse_61d(val
* self
, val
* p0
) {
5939 val
* var_node
/* var node: TKwfalse */;
5941 self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
= var_node
; /* _n_kwfalse on <self:AFalseExpr> */
5943 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwfalse> */
5944 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwfalse> */
5950 /* method parser_prod#AFalseExpr#n_kwfalse= for (self: Object, TKwfalse) */
5951 void VIRTUAL_parser_prod__AFalseExpr__n_kwfalse_61d(val
* self
, val
* p0
) {
5952 parser_prod__AFalseExpr__n_kwfalse_61d(self
, p0
); /* Direct call parser_prod#AFalseExpr#n_kwfalse= on <self:Object(AFalseExpr)>*/
5955 /* method parser_prod#AFalseExpr#n_annotations= for (self: AFalseExpr, nullable AAnnotations) */
5956 void parser_prod__AFalseExpr__n_annotations_61d(val
* self
, val
* p0
) {
5957 val
* var_node
/* var node: nullable AAnnotations */;
5958 val
* var
/* : null */;
5959 short int var1
/* : Bool */;
5960 short int var2
/* : Bool */;
5961 val
* var_other
/* var other: nullable Object */;
5962 short int var4
/* : Bool */;
5963 short int var5
/* : Bool */;
5964 short int var6
/* : Bool */;
5966 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFalseExpr> */
5968 if (var_node
== NULL
) {
5969 var1
= 0; /* is null */
5971 var1
= 1; /* arg is null and recv is not */
5974 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5977 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5989 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5990 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5998 /* method parser_prod#AFalseExpr#n_annotations= for (self: Object, nullable AAnnotations) */
5999 void VIRTUAL_parser_prod__AFalseExpr__n_annotations_61d(val
* self
, val
* p0
) {
6000 parser_prod__AFalseExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AFalseExpr#n_annotations= on <self:Object(AFalseExpr)>*/
6003 /* method parser_prod#AFalseExpr#visit_all for (self: AFalseExpr, Visitor) */
6004 void parser_prod__AFalseExpr__visit_all(val
* self
, val
* p0
) {
6005 val
* var_v
/* var v: Visitor */;
6006 val
* var
/* : TKwfalse */;
6007 val
* var1
/* : nullable AAnnotations */;
6009 var
= self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
6010 if (unlikely(var
== NULL
)) {
6011 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
6012 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5271);
6016 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6018 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
6020 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6024 /* method parser_prod#AFalseExpr#visit_all for (self: Object, Visitor) */
6025 void VIRTUAL_parser_prod__AFalseExpr__visit_all(val
* self
, val
* p0
) {
6026 parser_prod__AFalseExpr__visit_all(self
, p0
); /* Direct call parser_prod#AFalseExpr#visit_all on <self:Object(AFalseExpr)>*/
6029 /* method parser_prod#ANullExpr#init_anullexpr for (self: ANullExpr, nullable TKwnull, nullable AAnnotations) */
6030 void parser_prod__ANullExpr__init_anullexpr(val
* self
, val
* p0
, val
* p1
) {
6031 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
6032 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6033 val
* var
/* : null */;
6034 short int var2
/* : Bool */;
6035 short int var3
/* : Bool */;
6036 val
* var_other
/* var other: nullable Object */;
6037 short int var5
/* : Bool */;
6038 short int var6
/* : Bool */;
6039 short int var7
/* : Bool */;
6041 var_n_annotations
= p1
;
6042 if (unlikely(var_n_kwnull
== NULL
)) {
6043 PRINT_ERROR("Runtime error: %s", "Cast failed");
6044 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5281);
6047 self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:ANullExpr> */
6048 if (var_n_kwnull
== NULL
) {
6049 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6050 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5282);
6053 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
6054 if (unlikely(var_n_kwnull
== NULL
)) {
6055 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6056 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6059 var_n_kwnull
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
6063 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ANullExpr> */
6065 if (var_n_annotations
== NULL
) {
6066 var2
= 0; /* is null */
6068 var2
= 1; /* arg is null and recv is not */
6071 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
6074 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
6086 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6087 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6095 /* method parser_prod#ANullExpr#init_anullexpr for (self: Object, nullable TKwnull, nullable AAnnotations) */
6096 void VIRTUAL_parser_prod__ANullExpr__init_anullexpr(val
* self
, val
* p0
, val
* p1
) {
6097 parser_prod__ANullExpr__init_anullexpr(self
, p0
, p1
); /* Direct call parser_prod#ANullExpr#init_anullexpr on <self:Object(ANullExpr)>*/
6100 /* method parser_prod#ANullExpr#replace_child for (self: ANullExpr, ANode, nullable ANode) */
6101 void parser_prod__ANullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6102 val
* var_old_child
/* var old_child: ANode */;
6103 val
* var_new_child
/* var new_child: nullable ANode */;
6104 val
* var
/* : TKwnull */;
6105 short int var1
/* : Bool */;
6106 short int var2
/* : Bool */;
6107 val
* var_other
/* var other: nullable Object */;
6108 short int var4
/* : Bool */;
6109 short int var6
/* : Bool */;
6110 short int var7
/* : Bool */;
6113 const char* var_class_name
;
6114 val
* var8
/* : nullable AAnnotations */;
6115 short int var9
/* : Bool */;
6116 short int var10
/* : Bool */;
6117 short int var12
/* : Bool */;
6118 short int var14
/* : Bool */;
6119 short int var15
/* : Bool */;
6122 const char* var_class_name18
;
6125 var
= self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
6126 if (unlikely(var
== NULL
)) {
6127 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
6128 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5289);
6132 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwnull> */
6133 var_other
= var_old_child
;
6135 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwnull> */
6136 var6
= var
== var_other
;
6149 /* <var_new_child:nullable ANode> isa TKwnull */
6150 cltype
= type_parser_nodes__TKwnull
.color
;
6151 idtype
= type_parser_nodes__TKwnull
.id
;
6152 if(var_new_child
== NULL
) {
6155 if(cltype
>= var_new_child
->type
->table_size
) {
6158 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6161 if (unlikely(!var7
)) {
6162 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6163 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name
);
6164 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5290);
6168 parser_prod__ANullExpr__n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_kwnull= on <self:ANullExpr>*/
6173 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
6175 var9
= 0; /* <var_old_child:ANode> cannot be null */
6177 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
6178 var_other
= var_old_child
;
6180 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
6181 var14
= var8
== var_other
;
6184 RET_LABEL13
:(void)0;
6189 RET_LABEL11
:(void)0;
6194 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6195 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
6196 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
6197 if(var_new_child
== NULL
) {
6200 if(cltype16
>= var_new_child
->type
->table_size
) {
6203 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6206 if (unlikely(!var15
)) {
6207 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6208 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
6209 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5294);
6213 parser_prod__ANullExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_annotations= on <self:ANullExpr>*/
6220 /* method parser_prod#ANullExpr#replace_child for (self: Object, ANode, nullable ANode) */
6221 void VIRTUAL_parser_prod__ANullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6222 parser_prod__ANullExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ANullExpr#replace_child on <self:Object(ANullExpr)>*/
6225 /* method parser_prod#ANullExpr#n_kwnull= for (self: ANullExpr, TKwnull) */
6226 void parser_prod__ANullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
6227 val
* var_node
/* var node: TKwnull */;
6229 self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:ANullExpr> */
6231 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
6232 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
6238 /* method parser_prod#ANullExpr#n_kwnull= for (self: Object, TKwnull) */
6239 void VIRTUAL_parser_prod__ANullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
6240 parser_prod__ANullExpr__n_kwnull_61d(self
, p0
); /* Direct call parser_prod#ANullExpr#n_kwnull= on <self:Object(ANullExpr)>*/
6243 /* method parser_prod#ANullExpr#n_annotations= for (self: ANullExpr, nullable AAnnotations) */
6244 void parser_prod__ANullExpr__n_annotations_61d(val
* self
, val
* p0
) {
6245 val
* var_node
/* var node: nullable AAnnotations */;
6246 val
* var
/* : null */;
6247 short int var1
/* : Bool */;
6248 short int var2
/* : Bool */;
6249 val
* var_other
/* var other: nullable Object */;
6250 short int var4
/* : Bool */;
6251 short int var5
/* : Bool */;
6252 short int var6
/* : Bool */;
6254 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ANullExpr> */
6256 if (var_node
== NULL
) {
6257 var1
= 0; /* is null */
6259 var1
= 1; /* arg is null and recv is not */
6262 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
6265 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
6277 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6278 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6286 /* method parser_prod#ANullExpr#n_annotations= for (self: Object, nullable AAnnotations) */
6287 void VIRTUAL_parser_prod__ANullExpr__n_annotations_61d(val
* self
, val
* p0
) {
6288 parser_prod__ANullExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ANullExpr#n_annotations= on <self:Object(ANullExpr)>*/
6291 /* method parser_prod#ANullExpr#visit_all for (self: ANullExpr, Visitor) */
6292 void parser_prod__ANullExpr__visit_all(val
* self
, val
* p0
) {
6293 val
* var_v
/* var v: Visitor */;
6294 val
* var
/* : TKwnull */;
6295 val
* var1
/* : nullable AAnnotations */;
6297 var
= self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
6298 if (unlikely(var
== NULL
)) {
6299 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
6300 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5313);
6304 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6306 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
6308 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6312 /* method parser_prod#ANullExpr#visit_all for (self: Object, Visitor) */
6313 void VIRTUAL_parser_prod__ANullExpr__visit_all(val
* self
, val
* p0
) {
6314 parser_prod__ANullExpr__visit_all(self
, p0
); /* Direct call parser_prod#ANullExpr#visit_all on <self:Object(ANullExpr)>*/
6317 /* method parser_prod#ADecIntExpr#init_adecintexpr for (self: ADecIntExpr, nullable TNumber, nullable AAnnotations) */
6318 void parser_prod__ADecIntExpr__init_adecintexpr(val
* self
, val
* p0
, val
* p1
) {
6319 val
* var_n_number
/* var n_number: nullable TNumber */;
6320 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6321 val
* var
/* : null */;
6322 short int var2
/* : Bool */;
6323 short int var3
/* : Bool */;
6324 val
* var_other
/* var other: nullable Object */;
6325 short int var5
/* : Bool */;
6326 short int var6
/* : Bool */;
6327 short int var7
/* : Bool */;
6329 var_n_annotations
= p1
;
6330 if (unlikely(var_n_number
== NULL
)) {
6331 PRINT_ERROR("Runtime error: %s", "Cast failed");
6332 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5323);
6335 self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
= var_n_number
; /* _n_number on <self:ADecIntExpr> */
6336 if (var_n_number
== NULL
) {
6337 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6338 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5324);
6341 { /* Inline parser_nodes#ANode#parent= (var_n_number,self) on <var_n_number:nullable TNumber> */
6342 if (unlikely(var_n_number
== NULL
)) {
6343 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6344 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6347 var_n_number
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_number:nullable TNumber> */
6351 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADecIntExpr> */
6353 if (var_n_annotations
== NULL
) {
6354 var2
= 0; /* is null */
6356 var2
= 1; /* arg is null and recv is not */
6359 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
6362 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
6374 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6375 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6383 /* method parser_prod#ADecIntExpr#init_adecintexpr for (self: Object, nullable TNumber, nullable AAnnotations) */
6384 void VIRTUAL_parser_prod__ADecIntExpr__init_adecintexpr(val
* self
, val
* p0
, val
* p1
) {
6385 parser_prod__ADecIntExpr__init_adecintexpr(self
, p0
, p1
); /* Direct call parser_prod#ADecIntExpr#init_adecintexpr on <self:Object(ADecIntExpr)>*/
6388 /* method parser_prod#ADecIntExpr#replace_child for (self: ADecIntExpr, ANode, nullable ANode) */
6389 void parser_prod__ADecIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6390 val
* var_old_child
/* var old_child: ANode */;
6391 val
* var_new_child
/* var new_child: nullable ANode */;
6392 val
* var
/* : TNumber */;
6393 short int var1
/* : Bool */;
6394 short int var2
/* : Bool */;
6395 val
* var_other
/* var other: nullable Object */;
6396 short int var4
/* : Bool */;
6397 short int var6
/* : Bool */;
6398 short int var7
/* : Bool */;
6401 const char* var_class_name
;
6402 val
* var8
/* : nullable AAnnotations */;
6403 short int var9
/* : Bool */;
6404 short int var10
/* : Bool */;
6405 short int var12
/* : Bool */;
6406 short int var14
/* : Bool */;
6407 short int var15
/* : Bool */;
6410 const char* var_class_name18
;
6413 var
= self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
6414 if (unlikely(var
== NULL
)) {
6415 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
6416 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5331);
6420 { /* Inline kernel#Object#== (var,var_old_child) on <var:TNumber> */
6421 var_other
= var_old_child
;
6423 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TNumber> */
6424 var6
= var
== var_other
;
6437 /* <var_new_child:nullable ANode> isa TNumber */
6438 cltype
= type_parser_nodes__TNumber
.color
;
6439 idtype
= type_parser_nodes__TNumber
.id
;
6440 if(var_new_child
== NULL
) {
6443 if(cltype
>= var_new_child
->type
->table_size
) {
6446 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6449 if (unlikely(!var7
)) {
6450 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6451 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNumber", var_class_name
);
6452 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5332);
6456 parser_prod__ADecIntExpr__n_number_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_number= on <self:ADecIntExpr>*/
6461 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
6463 var9
= 0; /* <var_old_child:ANode> cannot be null */
6465 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
6466 var_other
= var_old_child
;
6468 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
6469 var14
= var8
== var_other
;
6472 RET_LABEL13
:(void)0;
6477 RET_LABEL11
:(void)0;
6482 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6483 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
6484 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
6485 if(var_new_child
== NULL
) {
6488 if(cltype16
>= var_new_child
->type
->table_size
) {
6491 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6494 if (unlikely(!var15
)) {
6495 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6496 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
6497 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5336);
6501 parser_prod__ADecIntExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_annotations= on <self:ADecIntExpr>*/
6508 /* method parser_prod#ADecIntExpr#replace_child for (self: Object, ANode, nullable ANode) */
6509 void VIRTUAL_parser_prod__ADecIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6510 parser_prod__ADecIntExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADecIntExpr#replace_child on <self:Object(ADecIntExpr)>*/
6513 /* method parser_prod#ADecIntExpr#n_number= for (self: ADecIntExpr, TNumber) */
6514 void parser_prod__ADecIntExpr__n_number_61d(val
* self
, val
* p0
) {
6515 val
* var_node
/* var node: TNumber */;
6517 self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
= var_node
; /* _n_number on <self:ADecIntExpr> */
6519 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TNumber> */
6520 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TNumber> */
6526 /* method parser_prod#ADecIntExpr#n_number= for (self: Object, TNumber) */
6527 void VIRTUAL_parser_prod__ADecIntExpr__n_number_61d(val
* self
, val
* p0
) {
6528 parser_prod__ADecIntExpr__n_number_61d(self
, p0
); /* Direct call parser_prod#ADecIntExpr#n_number= on <self:Object(ADecIntExpr)>*/
6531 /* method parser_prod#ADecIntExpr#n_annotations= for (self: ADecIntExpr, nullable AAnnotations) */
6532 void parser_prod__ADecIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
6533 val
* var_node
/* var node: nullable AAnnotations */;
6534 val
* var
/* : null */;
6535 short int var1
/* : Bool */;
6536 short int var2
/* : Bool */;
6537 val
* var_other
/* var other: nullable Object */;
6538 short int var4
/* : Bool */;
6539 short int var5
/* : Bool */;
6540 short int var6
/* : Bool */;
6542 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADecIntExpr> */
6544 if (var_node
== NULL
) {
6545 var1
= 0; /* is null */
6547 var1
= 1; /* arg is null and recv is not */
6550 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
6553 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
6565 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6566 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6574 /* method parser_prod#ADecIntExpr#n_annotations= for (self: Object, nullable AAnnotations) */
6575 void VIRTUAL_parser_prod__ADecIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
6576 parser_prod__ADecIntExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ADecIntExpr#n_annotations= on <self:Object(ADecIntExpr)>*/
6579 /* method parser_prod#ADecIntExpr#visit_all for (self: ADecIntExpr, Visitor) */
6580 void parser_prod__ADecIntExpr__visit_all(val
* self
, val
* p0
) {
6581 val
* var_v
/* var v: Visitor */;
6582 val
* var
/* : TNumber */;
6583 val
* var1
/* : nullable AAnnotations */;
6585 var
= self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
6586 if (unlikely(var
== NULL
)) {
6587 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
6588 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5355);
6592 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6594 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
6596 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6600 /* method parser_prod#ADecIntExpr#visit_all for (self: Object, Visitor) */
6601 void VIRTUAL_parser_prod__ADecIntExpr__visit_all(val
* self
, val
* p0
) {
6602 parser_prod__ADecIntExpr__visit_all(self
, p0
); /* Direct call parser_prod#ADecIntExpr#visit_all on <self:Object(ADecIntExpr)>*/
6605 /* method parser_prod#AHexIntExpr#init_ahexintexpr for (self: AHexIntExpr, nullable THexNumber, nullable AAnnotations) */
6606 void parser_prod__AHexIntExpr__init_ahexintexpr(val
* self
, val
* p0
, val
* p1
) {
6607 val
* var_n_hex_number
/* var n_hex_number: nullable THexNumber */;
6608 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6609 val
* var
/* : null */;
6610 short int var2
/* : Bool */;
6611 short int var3
/* : Bool */;
6612 val
* var_other
/* var other: nullable Object */;
6613 short int var5
/* : Bool */;
6614 short int var6
/* : Bool */;
6615 short int var7
/* : Bool */;
6616 var_n_hex_number
= p0
;
6617 var_n_annotations
= p1
;
6618 if (unlikely(var_n_hex_number
== NULL
)) {
6619 PRINT_ERROR("Runtime error: %s", "Cast failed");
6620 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5365);
6623 self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
= var_n_hex_number
; /* _n_hex_number on <self:AHexIntExpr> */
6624 if (var_n_hex_number
== NULL
) {
6625 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6626 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5366);
6629 { /* Inline parser_nodes#ANode#parent= (var_n_hex_number,self) on <var_n_hex_number:nullable THexNumber> */
6630 if (unlikely(var_n_hex_number
== NULL
)) {
6631 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6632 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6635 var_n_hex_number
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_hex_number:nullable THexNumber> */
6639 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AHexIntExpr> */
6641 if (var_n_annotations
== NULL
) {
6642 var2
= 0; /* is null */
6644 var2
= 1; /* arg is null and recv is not */
6647 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
6650 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
6662 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6663 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6671 /* method parser_prod#AHexIntExpr#init_ahexintexpr for (self: Object, nullable THexNumber, nullable AAnnotations) */
6672 void VIRTUAL_parser_prod__AHexIntExpr__init_ahexintexpr(val
* self
, val
* p0
, val
* p1
) {
6673 parser_prod__AHexIntExpr__init_ahexintexpr(self
, p0
, p1
); /* Direct call parser_prod#AHexIntExpr#init_ahexintexpr on <self:Object(AHexIntExpr)>*/
6676 /* method parser_prod#AHexIntExpr#replace_child for (self: AHexIntExpr, ANode, nullable ANode) */
6677 void parser_prod__AHexIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6678 val
* var_old_child
/* var old_child: ANode */;
6679 val
* var_new_child
/* var new_child: nullable ANode */;
6680 val
* var
/* : THexNumber */;
6681 short int var1
/* : Bool */;
6682 short int var2
/* : Bool */;
6683 val
* var_other
/* var other: nullable Object */;
6684 short int var4
/* : Bool */;
6685 short int var6
/* : Bool */;
6686 short int var7
/* : Bool */;
6689 const char* var_class_name
;
6690 val
* var8
/* : nullable AAnnotations */;
6691 short int var9
/* : Bool */;
6692 short int var10
/* : Bool */;
6693 short int var12
/* : Bool */;
6694 short int var14
/* : Bool */;
6695 short int var15
/* : Bool */;
6698 const char* var_class_name18
;
6701 var
= self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
6702 if (unlikely(var
== NULL
)) {
6703 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
6704 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5373);
6708 { /* Inline kernel#Object#== (var,var_old_child) on <var:THexNumber> */
6709 var_other
= var_old_child
;
6711 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:THexNumber> */
6712 var6
= var
== var_other
;
6725 /* <var_new_child:nullable ANode> isa THexNumber */
6726 cltype
= type_parser_nodes__THexNumber
.color
;
6727 idtype
= type_parser_nodes__THexNumber
.id
;
6728 if(var_new_child
== NULL
) {
6731 if(cltype
>= var_new_child
->type
->table_size
) {
6734 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6737 if (unlikely(!var7
)) {
6738 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6739 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "THexNumber", var_class_name
);
6740 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5374);
6744 parser_prod__AHexIntExpr__n_hex_number_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_hex_number= on <self:AHexIntExpr>*/
6749 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
6751 var9
= 0; /* <var_old_child:ANode> cannot be null */
6753 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
6754 var_other
= var_old_child
;
6756 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
6757 var14
= var8
== var_other
;
6760 RET_LABEL13
:(void)0;
6765 RET_LABEL11
:(void)0;
6770 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6771 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
6772 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
6773 if(var_new_child
== NULL
) {
6776 if(cltype16
>= var_new_child
->type
->table_size
) {
6779 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6782 if (unlikely(!var15
)) {
6783 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6784 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
6785 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5378);
6789 parser_prod__AHexIntExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_annotations= on <self:AHexIntExpr>*/
6796 /* method parser_prod#AHexIntExpr#replace_child for (self: Object, ANode, nullable ANode) */
6797 void VIRTUAL_parser_prod__AHexIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6798 parser_prod__AHexIntExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AHexIntExpr#replace_child on <self:Object(AHexIntExpr)>*/
6801 /* method parser_prod#AHexIntExpr#n_hex_number= for (self: AHexIntExpr, THexNumber) */
6802 void parser_prod__AHexIntExpr__n_hex_number_61d(val
* self
, val
* p0
) {
6803 val
* var_node
/* var node: THexNumber */;
6805 self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
= var_node
; /* _n_hex_number on <self:AHexIntExpr> */
6807 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:THexNumber> */
6808 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:THexNumber> */
6814 /* method parser_prod#AHexIntExpr#n_hex_number= for (self: Object, THexNumber) */
6815 void VIRTUAL_parser_prod__AHexIntExpr__n_hex_number_61d(val
* self
, val
* p0
) {
6816 parser_prod__AHexIntExpr__n_hex_number_61d(self
, p0
); /* Direct call parser_prod#AHexIntExpr#n_hex_number= on <self:Object(AHexIntExpr)>*/
6819 /* method parser_prod#AHexIntExpr#n_annotations= for (self: AHexIntExpr, nullable AAnnotations) */
6820 void parser_prod__AHexIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
6821 val
* var_node
/* var node: nullable AAnnotations */;
6822 val
* var
/* : null */;
6823 short int var1
/* : Bool */;
6824 short int var2
/* : Bool */;
6825 val
* var_other
/* var other: nullable Object */;
6826 short int var4
/* : Bool */;
6827 short int var5
/* : Bool */;
6828 short int var6
/* : Bool */;
6830 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AHexIntExpr> */
6832 if (var_node
== NULL
) {
6833 var1
= 0; /* is null */
6835 var1
= 1; /* arg is null and recv is not */
6838 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
6841 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
6853 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6854 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6862 /* method parser_prod#AHexIntExpr#n_annotations= for (self: Object, nullable AAnnotations) */
6863 void VIRTUAL_parser_prod__AHexIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
6864 parser_prod__AHexIntExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AHexIntExpr#n_annotations= on <self:Object(AHexIntExpr)>*/
6867 /* method parser_prod#AHexIntExpr#visit_all for (self: AHexIntExpr, Visitor) */
6868 void parser_prod__AHexIntExpr__visit_all(val
* self
, val
* p0
) {
6869 val
* var_v
/* var v: Visitor */;
6870 val
* var
/* : THexNumber */;
6871 val
* var1
/* : nullable AAnnotations */;
6873 var
= self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
6874 if (unlikely(var
== NULL
)) {
6875 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
6876 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5397);
6880 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6882 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
6884 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6888 /* method parser_prod#AHexIntExpr#visit_all for (self: Object, Visitor) */
6889 void VIRTUAL_parser_prod__AHexIntExpr__visit_all(val
* self
, val
* p0
) {
6890 parser_prod__AHexIntExpr__visit_all(self
, p0
); /* Direct call parser_prod#AHexIntExpr#visit_all on <self:Object(AHexIntExpr)>*/
6893 /* method parser_prod#AFloatExpr#init_afloatexpr for (self: AFloatExpr, nullable TFloat, nullable AAnnotations) */
6894 void parser_prod__AFloatExpr__init_afloatexpr(val
* self
, val
* p0
, val
* p1
) {
6895 val
* var_n_float
/* var n_float: nullable TFloat */;
6896 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6897 val
* var
/* : null */;
6898 short int var2
/* : Bool */;
6899 short int var3
/* : Bool */;
6900 val
* var_other
/* var other: nullable Object */;
6901 short int var5
/* : Bool */;
6902 short int var6
/* : Bool */;
6903 short int var7
/* : Bool */;
6905 var_n_annotations
= p1
;
6906 if (unlikely(var_n_float
== NULL
)) {
6907 PRINT_ERROR("Runtime error: %s", "Cast failed");
6908 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5407);
6911 self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
= var_n_float
; /* _n_float on <self:AFloatExpr> */
6912 if (var_n_float
== NULL
) {
6913 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6914 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5408);
6917 { /* Inline parser_nodes#ANode#parent= (var_n_float,self) on <var_n_float:nullable TFloat> */
6918 if (unlikely(var_n_float
== NULL
)) {
6919 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6920 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6923 var_n_float
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_float:nullable TFloat> */
6927 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFloatExpr> */
6929 if (var_n_annotations
== NULL
) {
6930 var2
= 0; /* is null */
6932 var2
= 1; /* arg is null and recv is not */
6935 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
6938 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
6950 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6951 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6959 /* method parser_prod#AFloatExpr#init_afloatexpr for (self: Object, nullable TFloat, nullable AAnnotations) */
6960 void VIRTUAL_parser_prod__AFloatExpr__init_afloatexpr(val
* self
, val
* p0
, val
* p1
) {
6961 parser_prod__AFloatExpr__init_afloatexpr(self
, p0
, p1
); /* Direct call parser_prod#AFloatExpr#init_afloatexpr on <self:Object(AFloatExpr)>*/
6964 /* method parser_prod#AFloatExpr#replace_child for (self: AFloatExpr, ANode, nullable ANode) */
6965 void parser_prod__AFloatExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6966 val
* var_old_child
/* var old_child: ANode */;
6967 val
* var_new_child
/* var new_child: nullable ANode */;
6968 val
* var
/* : TFloat */;
6969 short int var1
/* : Bool */;
6970 short int var2
/* : Bool */;
6971 val
* var_other
/* var other: nullable Object */;
6972 short int var4
/* : Bool */;
6973 short int var6
/* : Bool */;
6974 short int var7
/* : Bool */;
6977 const char* var_class_name
;
6978 val
* var8
/* : nullable AAnnotations */;
6979 short int var9
/* : Bool */;
6980 short int var10
/* : Bool */;
6981 short int var12
/* : Bool */;
6982 short int var14
/* : Bool */;
6983 short int var15
/* : Bool */;
6986 const char* var_class_name18
;
6989 var
= self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
6990 if (unlikely(var
== NULL
)) {
6991 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
6992 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5415);
6996 { /* Inline kernel#Object#== (var,var_old_child) on <var:TFloat> */
6997 var_other
= var_old_child
;
6999 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TFloat> */
7000 var6
= var
== var_other
;
7013 /* <var_new_child:nullable ANode> isa TFloat */
7014 cltype
= type_parser_nodes__TFloat
.color
;
7015 idtype
= type_parser_nodes__TFloat
.id
;
7016 if(var_new_child
== NULL
) {
7019 if(cltype
>= var_new_child
->type
->table_size
) {
7022 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7025 if (unlikely(!var7
)) {
7026 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7027 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TFloat", var_class_name
);
7028 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5416);
7032 parser_prod__AFloatExpr__n_float_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_float= on <self:AFloatExpr>*/
7037 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
7039 var9
= 0; /* <var_old_child:ANode> cannot be null */
7041 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
7042 var_other
= var_old_child
;
7044 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
7045 var14
= var8
== var_other
;
7048 RET_LABEL13
:(void)0;
7053 RET_LABEL11
:(void)0;
7058 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7059 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
7060 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
7061 if(var_new_child
== NULL
) {
7064 if(cltype16
>= var_new_child
->type
->table_size
) {
7067 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7070 if (unlikely(!var15
)) {
7071 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7072 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
7073 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5420);
7077 parser_prod__AFloatExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_annotations= on <self:AFloatExpr>*/
7084 /* method parser_prod#AFloatExpr#replace_child for (self: Object, ANode, nullable ANode) */
7085 void VIRTUAL_parser_prod__AFloatExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7086 parser_prod__AFloatExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFloatExpr#replace_child on <self:Object(AFloatExpr)>*/
7089 /* method parser_prod#AFloatExpr#n_float= for (self: AFloatExpr, TFloat) */
7090 void parser_prod__AFloatExpr__n_float_61d(val
* self
, val
* p0
) {
7091 val
* var_node
/* var node: TFloat */;
7093 self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
= var_node
; /* _n_float on <self:AFloatExpr> */
7095 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TFloat> */
7096 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TFloat> */
7102 /* method parser_prod#AFloatExpr#n_float= for (self: Object, TFloat) */
7103 void VIRTUAL_parser_prod__AFloatExpr__n_float_61d(val
* self
, val
* p0
) {
7104 parser_prod__AFloatExpr__n_float_61d(self
, p0
); /* Direct call parser_prod#AFloatExpr#n_float= on <self:Object(AFloatExpr)>*/
7107 /* method parser_prod#AFloatExpr#n_annotations= for (self: AFloatExpr, nullable AAnnotations) */
7108 void parser_prod__AFloatExpr__n_annotations_61d(val
* self
, val
* p0
) {
7109 val
* var_node
/* var node: nullable AAnnotations */;
7110 val
* var
/* : null */;
7111 short int var1
/* : Bool */;
7112 short int var2
/* : Bool */;
7113 val
* var_other
/* var other: nullable Object */;
7114 short int var4
/* : Bool */;
7115 short int var5
/* : Bool */;
7116 short int var6
/* : Bool */;
7118 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFloatExpr> */
7120 if (var_node
== NULL
) {
7121 var1
= 0; /* is null */
7123 var1
= 1; /* arg is null and recv is not */
7126 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
7129 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
7141 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7142 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7150 /* method parser_prod#AFloatExpr#n_annotations= for (self: Object, nullable AAnnotations) */
7151 void VIRTUAL_parser_prod__AFloatExpr__n_annotations_61d(val
* self
, val
* p0
) {
7152 parser_prod__AFloatExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AFloatExpr#n_annotations= on <self:Object(AFloatExpr)>*/
7155 /* method parser_prod#AFloatExpr#visit_all for (self: AFloatExpr, Visitor) */
7156 void parser_prod__AFloatExpr__visit_all(val
* self
, val
* p0
) {
7157 val
* var_v
/* var v: Visitor */;
7158 val
* var
/* : TFloat */;
7159 val
* var1
/* : nullable AAnnotations */;
7161 var
= self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
7162 if (unlikely(var
== NULL
)) {
7163 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
7164 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5439);
7168 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7170 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
7172 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7176 /* method parser_prod#AFloatExpr#visit_all for (self: Object, Visitor) */
7177 void VIRTUAL_parser_prod__AFloatExpr__visit_all(val
* self
, val
* p0
) {
7178 parser_prod__AFloatExpr__visit_all(self
, p0
); /* Direct call parser_prod#AFloatExpr#visit_all on <self:Object(AFloatExpr)>*/
7181 /* method parser_prod#ACharExpr#init_acharexpr for (self: ACharExpr, nullable TChar, nullable AAnnotations) */
7182 void parser_prod__ACharExpr__init_acharexpr(val
* self
, val
* p0
, val
* p1
) {
7183 val
* var_n_char
/* var n_char: nullable TChar */;
7184 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7185 val
* var
/* : null */;
7186 short int var2
/* : Bool */;
7187 short int var3
/* : Bool */;
7188 val
* var_other
/* var other: nullable Object */;
7189 short int var5
/* : Bool */;
7190 short int var6
/* : Bool */;
7191 short int var7
/* : Bool */;
7193 var_n_annotations
= p1
;
7194 if (unlikely(var_n_char
== NULL
)) {
7195 PRINT_ERROR("Runtime error: %s", "Cast failed");
7196 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5449);
7199 self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
= var_n_char
; /* _n_char on <self:ACharExpr> */
7200 if (var_n_char
== NULL
) {
7201 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7202 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5450);
7205 { /* Inline parser_nodes#ANode#parent= (var_n_char,self) on <var_n_char:nullable TChar> */
7206 if (unlikely(var_n_char
== NULL
)) {
7207 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7208 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7211 var_n_char
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_char:nullable TChar> */
7215 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACharExpr> */
7217 if (var_n_annotations
== NULL
) {
7218 var2
= 0; /* is null */
7220 var2
= 1; /* arg is null and recv is not */
7223 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
7226 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
7238 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7239 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7247 /* method parser_prod#ACharExpr#init_acharexpr for (self: Object, nullable TChar, nullable AAnnotations) */
7248 void VIRTUAL_parser_prod__ACharExpr__init_acharexpr(val
* self
, val
* p0
, val
* p1
) {
7249 parser_prod__ACharExpr__init_acharexpr(self
, p0
, p1
); /* Direct call parser_prod#ACharExpr#init_acharexpr on <self:Object(ACharExpr)>*/
7252 /* method parser_prod#ACharExpr#replace_child for (self: ACharExpr, ANode, nullable ANode) */
7253 void parser_prod__ACharExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7254 val
* var_old_child
/* var old_child: ANode */;
7255 val
* var_new_child
/* var new_child: nullable ANode */;
7256 val
* var
/* : TChar */;
7257 short int var1
/* : Bool */;
7258 short int var2
/* : Bool */;
7259 val
* var_other
/* var other: nullable Object */;
7260 short int var4
/* : Bool */;
7261 short int var6
/* : Bool */;
7262 short int var7
/* : Bool */;
7265 const char* var_class_name
;
7266 val
* var8
/* : nullable AAnnotations */;
7267 short int var9
/* : Bool */;
7268 short int var10
/* : Bool */;
7269 short int var12
/* : Bool */;
7270 short int var14
/* : Bool */;
7271 short int var15
/* : Bool */;
7274 const char* var_class_name18
;
7277 var
= self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
7278 if (unlikely(var
== NULL
)) {
7279 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
7280 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5457);
7284 { /* Inline kernel#Object#== (var,var_old_child) on <var:TChar> */
7285 var_other
= var_old_child
;
7287 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TChar> */
7288 var6
= var
== var_other
;
7301 /* <var_new_child:nullable ANode> isa TChar */
7302 cltype
= type_parser_nodes__TChar
.color
;
7303 idtype
= type_parser_nodes__TChar
.id
;
7304 if(var_new_child
== NULL
) {
7307 if(cltype
>= var_new_child
->type
->table_size
) {
7310 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7313 if (unlikely(!var7
)) {
7314 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7315 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TChar", var_class_name
);
7316 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5458);
7320 parser_prod__ACharExpr__n_char_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_char= on <self:ACharExpr>*/
7325 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
7327 var9
= 0; /* <var_old_child:ANode> cannot be null */
7329 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
7330 var_other
= var_old_child
;
7332 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
7333 var14
= var8
== var_other
;
7336 RET_LABEL13
:(void)0;
7341 RET_LABEL11
:(void)0;
7346 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7347 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
7348 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
7349 if(var_new_child
== NULL
) {
7352 if(cltype16
>= var_new_child
->type
->table_size
) {
7355 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7358 if (unlikely(!var15
)) {
7359 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7360 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
7361 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5462);
7365 parser_prod__ACharExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_annotations= on <self:ACharExpr>*/
7372 /* method parser_prod#ACharExpr#replace_child for (self: Object, ANode, nullable ANode) */
7373 void VIRTUAL_parser_prod__ACharExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7374 parser_prod__ACharExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACharExpr#replace_child on <self:Object(ACharExpr)>*/
7377 /* method parser_prod#ACharExpr#n_char= for (self: ACharExpr, TChar) */
7378 void parser_prod__ACharExpr__n_char_61d(val
* self
, val
* p0
) {
7379 val
* var_node
/* var node: TChar */;
7381 self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
= var_node
; /* _n_char on <self:ACharExpr> */
7383 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TChar> */
7384 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TChar> */
7390 /* method parser_prod#ACharExpr#n_char= for (self: Object, TChar) */
7391 void VIRTUAL_parser_prod__ACharExpr__n_char_61d(val
* self
, val
* p0
) {
7392 parser_prod__ACharExpr__n_char_61d(self
, p0
); /* Direct call parser_prod#ACharExpr#n_char= on <self:Object(ACharExpr)>*/
7395 /* method parser_prod#ACharExpr#n_annotations= for (self: ACharExpr, nullable AAnnotations) */
7396 void parser_prod__ACharExpr__n_annotations_61d(val
* self
, val
* p0
) {
7397 val
* var_node
/* var node: nullable AAnnotations */;
7398 val
* var
/* : null */;
7399 short int var1
/* : Bool */;
7400 short int var2
/* : Bool */;
7401 val
* var_other
/* var other: nullable Object */;
7402 short int var4
/* : Bool */;
7403 short int var5
/* : Bool */;
7404 short int var6
/* : Bool */;
7406 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACharExpr> */
7408 if (var_node
== NULL
) {
7409 var1
= 0; /* is null */
7411 var1
= 1; /* arg is null and recv is not */
7414 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
7417 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
7429 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7430 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7438 /* method parser_prod#ACharExpr#n_annotations= for (self: Object, nullable AAnnotations) */
7439 void VIRTUAL_parser_prod__ACharExpr__n_annotations_61d(val
* self
, val
* p0
) {
7440 parser_prod__ACharExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ACharExpr#n_annotations= on <self:Object(ACharExpr)>*/
7443 /* method parser_prod#ACharExpr#visit_all for (self: ACharExpr, Visitor) */
7444 void parser_prod__ACharExpr__visit_all(val
* self
, val
* p0
) {
7445 val
* var_v
/* var v: Visitor */;
7446 val
* var
/* : TChar */;
7447 val
* var1
/* : nullable AAnnotations */;
7449 var
= self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
7450 if (unlikely(var
== NULL
)) {
7451 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
7452 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5481);
7456 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7458 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
7460 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7464 /* method parser_prod#ACharExpr#visit_all for (self: Object, Visitor) */
7465 void VIRTUAL_parser_prod__ACharExpr__visit_all(val
* self
, val
* p0
) {
7466 parser_prod__ACharExpr__visit_all(self
, p0
); /* Direct call parser_prod#ACharExpr#visit_all on <self:Object(ACharExpr)>*/
7469 /* method parser_prod#AStringExpr#init_astringexpr for (self: AStringExpr, nullable TString, nullable AAnnotations) */
7470 void parser_prod__AStringExpr__init_astringexpr(val
* self
, val
* p0
, val
* p1
) {
7471 val
* var_n_string
/* var n_string: nullable TString */;
7472 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7473 val
* var
/* : null */;
7474 short int var2
/* : Bool */;
7475 short int var3
/* : Bool */;
7476 val
* var_other
/* var other: nullable Object */;
7477 short int var5
/* : Bool */;
7478 short int var6
/* : Bool */;
7479 short int var7
/* : Bool */;
7481 var_n_annotations
= p1
;
7482 if (unlikely(var_n_string
== NULL
)) {
7483 PRINT_ERROR("Runtime error: %s", "Cast failed");
7484 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5491);
7487 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStringExpr> */
7488 if (var_n_string
== NULL
) {
7489 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7490 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5492);
7493 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TString> */
7494 if (unlikely(var_n_string
== NULL
)) {
7495 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7496 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7499 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TString> */
7503 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStringExpr> */
7505 if (var_n_annotations
== NULL
) {
7506 var2
= 0; /* is null */
7508 var2
= 1; /* arg is null and recv is not */
7511 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
7514 var6
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
7526 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7527 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7535 /* method parser_prod#AStringExpr#init_astringexpr for (self: Object, nullable TString, nullable AAnnotations) */
7536 void VIRTUAL_parser_prod__AStringExpr__init_astringexpr(val
* self
, val
* p0
, val
* p1
) {
7537 parser_prod__AStringExpr__init_astringexpr(self
, p0
, p1
); /* Direct call parser_prod#AStringExpr#init_astringexpr on <self:Object(AStringExpr)>*/
7540 /* method parser_prod#AStringExpr#replace_child for (self: AStringExpr, ANode, nullable ANode) */
7541 void parser_prod__AStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7542 val
* var_old_child
/* var old_child: ANode */;
7543 val
* var_new_child
/* var new_child: nullable ANode */;
7544 val
* var
/* : Token */;
7545 short int var1
/* : Bool */;
7546 short int var2
/* : Bool */;
7547 val
* var_other
/* var other: nullable Object */;
7548 short int var4
/* : Bool */;
7549 short int var6
/* : Bool */;
7550 short int var7
/* : Bool */;
7553 const char* var_class_name
;
7554 val
* var8
/* : nullable AAnnotations */;
7555 short int var9
/* : Bool */;
7556 short int var10
/* : Bool */;
7557 short int var12
/* : Bool */;
7558 short int var14
/* : Bool */;
7559 short int var15
/* : Bool */;
7562 const char* var_class_name18
;
7565 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
7566 if (unlikely(var
== NULL
)) {
7567 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
7568 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5499);
7572 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
7573 var_other
= var_old_child
;
7575 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
7576 var6
= var
== var_other
;
7589 /* <var_new_child:nullable ANode> isa TString */
7590 cltype
= type_parser_nodes__TString
.color
;
7591 idtype
= type_parser_nodes__TString
.id
;
7592 if(var_new_child
== NULL
) {
7595 if(cltype
>= var_new_child
->type
->table_size
) {
7598 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7601 if (unlikely(!var7
)) {
7602 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7603 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name
);
7604 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5500);
7608 parser_prod__AStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_string= on <self:AStringExpr>*/
7613 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
7615 var9
= 0; /* <var_old_child:ANode> cannot be null */
7617 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
7618 var_other
= var_old_child
;
7620 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
7621 var14
= var8
== var_other
;
7624 RET_LABEL13
:(void)0;
7629 RET_LABEL11
:(void)0;
7634 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7635 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
7636 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
7637 if(var_new_child
== NULL
) {
7640 if(cltype16
>= var_new_child
->type
->table_size
) {
7643 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7646 if (unlikely(!var15
)) {
7647 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
7649 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5504);
7653 parser_prod__AStringExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_annotations= on <self:AStringExpr>*/
7660 /* method parser_prod#AStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
7661 void VIRTUAL_parser_prod__AStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7662 parser_prod__AStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStringExpr#replace_child on <self:Object(AStringExpr)>*/
7665 /* method parser_prod#AStringExpr#n_string= for (self: AStringExpr, Token) */
7666 void parser_prod__AStringExpr__n_string_61d(val
* self
, val
* p0
) {
7667 val
* var_node
/* var node: Token */;
7669 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStringExpr> */
7671 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
7672 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
7678 /* method parser_prod#AStringExpr#n_string= for (self: Object, Token) */
7679 void VIRTUAL_parser_prod__AStringExpr__n_string_61d(val
* self
, val
* p0
) {
7680 parser_prod__AStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AStringExpr#n_string= on <self:Object(AStringExpr)>*/
7683 /* method parser_prod#AStringExpr#n_annotations= for (self: AStringExpr, nullable AAnnotations) */
7684 void parser_prod__AStringExpr__n_annotations_61d(val
* self
, val
* p0
) {
7685 val
* var_node
/* var node: nullable AAnnotations */;
7686 val
* var
/* : null */;
7687 short int var1
/* : Bool */;
7688 short int var2
/* : Bool */;
7689 val
* var_other
/* var other: nullable Object */;
7690 short int var4
/* : Bool */;
7691 short int var5
/* : Bool */;
7692 short int var6
/* : Bool */;
7694 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStringExpr> */
7696 if (var_node
== NULL
) {
7697 var1
= 0; /* is null */
7699 var1
= 1; /* arg is null and recv is not */
7702 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
7705 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
7717 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7718 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7726 /* method parser_prod#AStringExpr#n_annotations= for (self: Object, nullable AAnnotations) */
7727 void VIRTUAL_parser_prod__AStringExpr__n_annotations_61d(val
* self
, val
* p0
) {
7728 parser_prod__AStringExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AStringExpr#n_annotations= on <self:Object(AStringExpr)>*/
7731 /* method parser_prod#AStringExpr#visit_all for (self: AStringExpr, Visitor) */
7732 void parser_prod__AStringExpr__visit_all(val
* self
, val
* p0
) {
7733 val
* var_v
/* var v: Visitor */;
7734 val
* var
/* : Token */;
7735 val
* var1
/* : nullable AAnnotations */;
7737 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
7738 if (unlikely(var
== NULL
)) {
7739 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
7740 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5523);
7744 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7746 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
7748 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7752 /* method parser_prod#AStringExpr#visit_all for (self: Object, Visitor) */
7753 void VIRTUAL_parser_prod__AStringExpr__visit_all(val
* self
, val
* p0
) {
7754 parser_prod__AStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AStringExpr#visit_all on <self:Object(AStringExpr)>*/
7757 /* method parser_prod#AStartStringExpr#init_astartstringexpr for (self: AStartStringExpr, nullable TStartString) */
7758 void parser_prod__AStartStringExpr__init_astartstringexpr(val
* self
, val
* p0
) {
7759 val
* var_n_string
/* var n_string: nullable TStartString */;
7761 if (unlikely(var_n_string
== NULL
)) {
7762 PRINT_ERROR("Runtime error: %s", "Cast failed");
7763 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5532);
7766 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStartStringExpr> */
7767 if (var_n_string
== NULL
) {
7768 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7769 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5533);
7772 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TStartString> */
7773 if (unlikely(var_n_string
== NULL
)) {
7774 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7775 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7778 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TStartString> */
7784 /* method parser_prod#AStartStringExpr#init_astartstringexpr for (self: Object, nullable TStartString) */
7785 void VIRTUAL_parser_prod__AStartStringExpr__init_astartstringexpr(val
* self
, val
* p0
) {
7786 parser_prod__AStartStringExpr__init_astartstringexpr(self
, p0
); /* Direct call parser_prod#AStartStringExpr#init_astartstringexpr on <self:Object(AStartStringExpr)>*/
7789 /* method parser_prod#AStartStringExpr#replace_child for (self: AStartStringExpr, ANode, nullable ANode) */
7790 void parser_prod__AStartStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7791 val
* var_old_child
/* var old_child: ANode */;
7792 val
* var_new_child
/* var new_child: nullable ANode */;
7793 val
* var
/* : Token */;
7794 short int var1
/* : Bool */;
7795 short int var2
/* : Bool */;
7796 val
* var_other
/* var other: nullable Object */;
7797 short int var4
/* : Bool */;
7798 short int var6
/* : Bool */;
7799 short int var7
/* : Bool */;
7802 const char* var_class_name
;
7805 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
7806 if (unlikely(var
== NULL
)) {
7807 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
7808 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5538);
7812 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
7813 var_other
= var_old_child
;
7815 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
7816 var6
= var
== var_other
;
7829 /* <var_new_child:nullable ANode> isa TStartString */
7830 cltype
= type_parser_nodes__TStartString
.color
;
7831 idtype
= type_parser_nodes__TStartString
.id
;
7832 if(var_new_child
== NULL
) {
7835 if(cltype
>= var_new_child
->type
->table_size
) {
7838 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7841 if (unlikely(!var7
)) {
7842 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7843 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStartString", var_class_name
);
7844 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5539);
7848 parser_prod__AStartStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStartStringExpr#n_string= on <self:AStartStringExpr>*/
7855 /* method parser_prod#AStartStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
7856 void VIRTUAL_parser_prod__AStartStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7857 parser_prod__AStartStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStartStringExpr#replace_child on <self:Object(AStartStringExpr)>*/
7860 /* method parser_prod#AStartStringExpr#n_string= for (self: AStartStringExpr, Token) */
7861 void parser_prod__AStartStringExpr__n_string_61d(val
* self
, val
* p0
) {
7862 val
* var_node
/* var node: Token */;
7864 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStartStringExpr> */
7866 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
7867 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
7873 /* method parser_prod#AStartStringExpr#n_string= for (self: Object, Token) */
7874 void VIRTUAL_parser_prod__AStartStringExpr__n_string_61d(val
* self
, val
* p0
) {
7875 parser_prod__AStartStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AStartStringExpr#n_string= on <self:Object(AStartStringExpr)>*/
7878 /* method parser_prod#AStartStringExpr#visit_all for (self: AStartStringExpr, Visitor) */
7879 void parser_prod__AStartStringExpr__visit_all(val
* self
, val
* p0
) {
7880 val
* var_v
/* var v: Visitor */;
7881 val
* var
/* : Token */;
7883 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
7884 if (unlikely(var
== NULL
)) {
7885 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
7886 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5553);
7890 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7894 /* method parser_prod#AStartStringExpr#visit_all for (self: Object, Visitor) */
7895 void VIRTUAL_parser_prod__AStartStringExpr__visit_all(val
* self
, val
* p0
) {
7896 parser_prod__AStartStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AStartStringExpr#visit_all on <self:Object(AStartStringExpr)>*/
7899 /* method parser_prod#AMidStringExpr#init_amidstringexpr for (self: AMidStringExpr, nullable TMidString) */
7900 void parser_prod__AMidStringExpr__init_amidstringexpr(val
* self
, val
* p0
) {
7901 val
* var_n_string
/* var n_string: nullable TMidString */;
7903 if (unlikely(var_n_string
== NULL
)) {
7904 PRINT_ERROR("Runtime error: %s", "Cast failed");
7905 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5561);
7908 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AMidStringExpr> */
7909 if (var_n_string
== NULL
) {
7910 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7911 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5562);
7914 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TMidString> */
7915 if (unlikely(var_n_string
== NULL
)) {
7916 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7917 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7920 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TMidString> */
7926 /* method parser_prod#AMidStringExpr#init_amidstringexpr for (self: Object, nullable TMidString) */
7927 void VIRTUAL_parser_prod__AMidStringExpr__init_amidstringexpr(val
* self
, val
* p0
) {
7928 parser_prod__AMidStringExpr__init_amidstringexpr(self
, p0
); /* Direct call parser_prod#AMidStringExpr#init_amidstringexpr on <self:Object(AMidStringExpr)>*/
7931 /* method parser_prod#AMidStringExpr#replace_child for (self: AMidStringExpr, ANode, nullable ANode) */
7932 void parser_prod__AMidStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7933 val
* var_old_child
/* var old_child: ANode */;
7934 val
* var_new_child
/* var new_child: nullable ANode */;
7935 val
* var
/* : Token */;
7936 short int var1
/* : Bool */;
7937 short int var2
/* : Bool */;
7938 val
* var_other
/* var other: nullable Object */;
7939 short int var4
/* : Bool */;
7940 short int var6
/* : Bool */;
7941 short int var7
/* : Bool */;
7944 const char* var_class_name
;
7947 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
7948 if (unlikely(var
== NULL
)) {
7949 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
7950 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5567);
7954 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
7955 var_other
= var_old_child
;
7957 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
7958 var6
= var
== var_other
;
7971 /* <var_new_child:nullable ANode> isa TMidString */
7972 cltype
= type_parser_nodes__TMidString
.color
;
7973 idtype
= type_parser_nodes__TMidString
.id
;
7974 if(var_new_child
== NULL
) {
7977 if(cltype
>= var_new_child
->type
->table_size
) {
7980 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7983 if (unlikely(!var7
)) {
7984 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7985 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMidString", var_class_name
);
7986 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5568);
7990 parser_prod__AMidStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AMidStringExpr#n_string= on <self:AMidStringExpr>*/
7997 /* method parser_prod#AMidStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
7998 void VIRTUAL_parser_prod__AMidStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7999 parser_prod__AMidStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMidStringExpr#replace_child on <self:Object(AMidStringExpr)>*/
8002 /* method parser_prod#AMidStringExpr#n_string= for (self: AMidStringExpr, Token) */
8003 void parser_prod__AMidStringExpr__n_string_61d(val
* self
, val
* p0
) {
8004 val
* var_node
/* var node: Token */;
8006 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AMidStringExpr> */
8008 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8009 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8015 /* method parser_prod#AMidStringExpr#n_string= for (self: Object, Token) */
8016 void VIRTUAL_parser_prod__AMidStringExpr__n_string_61d(val
* self
, val
* p0
) {
8017 parser_prod__AMidStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AMidStringExpr#n_string= on <self:Object(AMidStringExpr)>*/
8020 /* method parser_prod#AMidStringExpr#visit_all for (self: AMidStringExpr, Visitor) */
8021 void parser_prod__AMidStringExpr__visit_all(val
* self
, val
* p0
) {
8022 val
* var_v
/* var v: Visitor */;
8023 val
* var
/* : Token */;
8025 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
8026 if (unlikely(var
== NULL
)) {
8027 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
8028 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5582);
8032 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8036 /* method parser_prod#AMidStringExpr#visit_all for (self: Object, Visitor) */
8037 void VIRTUAL_parser_prod__AMidStringExpr__visit_all(val
* self
, val
* p0
) {
8038 parser_prod__AMidStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AMidStringExpr#visit_all on <self:Object(AMidStringExpr)>*/
8041 /* method parser_prod#AEndStringExpr#init_aendstringexpr for (self: AEndStringExpr, nullable TEndString) */
8042 void parser_prod__AEndStringExpr__init_aendstringexpr(val
* self
, val
* p0
) {
8043 val
* var_n_string
/* var n_string: nullable TEndString */;
8045 if (unlikely(var_n_string
== NULL
)) {
8046 PRINT_ERROR("Runtime error: %s", "Cast failed");
8047 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5590);
8050 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AEndStringExpr> */
8051 if (var_n_string
== NULL
) {
8052 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8053 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5591);
8056 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TEndString> */
8057 if (unlikely(var_n_string
== NULL
)) {
8058 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8059 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8062 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TEndString> */
8068 /* method parser_prod#AEndStringExpr#init_aendstringexpr for (self: Object, nullable TEndString) */
8069 void VIRTUAL_parser_prod__AEndStringExpr__init_aendstringexpr(val
* self
, val
* p0
) {
8070 parser_prod__AEndStringExpr__init_aendstringexpr(self
, p0
); /* Direct call parser_prod#AEndStringExpr#init_aendstringexpr on <self:Object(AEndStringExpr)>*/
8073 /* method parser_prod#AEndStringExpr#replace_child for (self: AEndStringExpr, ANode, nullable ANode) */
8074 void parser_prod__AEndStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8075 val
* var_old_child
/* var old_child: ANode */;
8076 val
* var_new_child
/* var new_child: nullable ANode */;
8077 val
* var
/* : Token */;
8078 short int var1
/* : Bool */;
8079 short int var2
/* : Bool */;
8080 val
* var_other
/* var other: nullable Object */;
8081 short int var4
/* : Bool */;
8082 short int var6
/* : Bool */;
8083 short int var7
/* : Bool */;
8086 const char* var_class_name
;
8089 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
8090 if (unlikely(var
== NULL
)) {
8091 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
8092 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5596);
8096 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8097 var_other
= var_old_child
;
8099 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8100 var6
= var
== var_other
;
8113 /* <var_new_child:nullable ANode> isa TEndString */
8114 cltype
= type_parser_nodes__TEndString
.color
;
8115 idtype
= type_parser_nodes__TEndString
.id
;
8116 if(var_new_child
== NULL
) {
8119 if(cltype
>= var_new_child
->type
->table_size
) {
8122 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8125 if (unlikely(!var7
)) {
8126 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8127 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEndString", var_class_name
);
8128 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5597);
8132 parser_prod__AEndStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AEndStringExpr#n_string= on <self:AEndStringExpr>*/
8139 /* method parser_prod#AEndStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
8140 void VIRTUAL_parser_prod__AEndStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8141 parser_prod__AEndStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AEndStringExpr#replace_child on <self:Object(AEndStringExpr)>*/
8144 /* method parser_prod#AEndStringExpr#n_string= for (self: AEndStringExpr, Token) */
8145 void parser_prod__AEndStringExpr__n_string_61d(val
* self
, val
* p0
) {
8146 val
* var_node
/* var node: Token */;
8148 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AEndStringExpr> */
8150 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8151 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8157 /* method parser_prod#AEndStringExpr#n_string= for (self: Object, Token) */
8158 void VIRTUAL_parser_prod__AEndStringExpr__n_string_61d(val
* self
, val
* p0
) {
8159 parser_prod__AEndStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AEndStringExpr#n_string= on <self:Object(AEndStringExpr)>*/
8162 /* method parser_prod#AEndStringExpr#visit_all for (self: AEndStringExpr, Visitor) */
8163 void parser_prod__AEndStringExpr__visit_all(val
* self
, val
* p0
) {
8164 val
* var_v
/* var v: Visitor */;
8165 val
* var
/* : Token */;
8167 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
8168 if (unlikely(var
== NULL
)) {
8169 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
8170 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5611);
8174 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8178 /* method parser_prod#AEndStringExpr#visit_all for (self: Object, Visitor) */
8179 void VIRTUAL_parser_prod__AEndStringExpr__visit_all(val
* self
, val
* p0
) {
8180 parser_prod__AEndStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AEndStringExpr#visit_all on <self:Object(AEndStringExpr)>*/
8183 /* method parser_prod#ASuperstringExpr#init_asuperstringexpr for (self: ASuperstringExpr, Collection[Object], nullable AAnnotations) */
8184 void parser_prod__ASuperstringExpr__init_asuperstringexpr(val
* self
, val
* p0
, val
* p1
) {
8185 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
8186 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8187 val
* var
/* : ANodes[AExpr] */;
8188 val
* var2
/* : ANodes[AExpr] */;
8189 val
* var3
/* : null */;
8190 short int var4
/* : Bool */;
8191 short int var5
/* : Bool */;
8192 val
* var_other
/* var other: nullable Object */;
8193 short int var7
/* : Bool */;
8194 short int var8
/* : Bool */;
8195 short int var9
/* : Bool */;
8197 var_n_annotations
= p1
;
8199 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
8200 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
8201 if (unlikely(var2
== NULL
)) {
8202 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
8203 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1861);
8211 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
8213 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperstringExpr> */
8215 if (var_n_annotations
== NULL
) {
8216 var4
= 0; /* is null */
8218 var4
= 1; /* arg is null and recv is not */
8221 { /* Inline kernel#Object#!= (var_n_annotations,var3) on <var_n_annotations:nullable AAnnotations> */
8224 var8
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
8236 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8237 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8238 RET_LABEL10
:(void)0;
8245 /* method parser_prod#ASuperstringExpr#init_asuperstringexpr for (self: Object, Collection[Object], nullable AAnnotations) */
8246 void VIRTUAL_parser_prod__ASuperstringExpr__init_asuperstringexpr(val
* self
, val
* p0
, val
* p1
) {
8247 parser_prod__ASuperstringExpr__init_asuperstringexpr(self
, p0
, p1
); /* Direct call parser_prod#ASuperstringExpr#init_asuperstringexpr on <self:Object(ASuperstringExpr)>*/
8250 /* method parser_prod#ASuperstringExpr#replace_child for (self: ASuperstringExpr, ANode, nullable ANode) */
8251 void parser_prod__ASuperstringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8252 val
* var_old_child
/* var old_child: ANode */;
8253 val
* var_new_child
/* var new_child: nullable ANode */;
8254 val
* var
/* : ANodes[AExpr] */;
8255 val
* var2
/* : ANodes[AExpr] */;
8256 short int var3
/* : Bool */;
8257 val
* var4
/* : nullable AAnnotations */;
8258 short int var5
/* : Bool */;
8259 short int var6
/* : Bool */;
8260 val
* var_other
/* var other: nullable Object */;
8261 short int var8
/* : Bool */;
8262 short int var10
/* : Bool */;
8263 short int var11
/* : Bool */;
8266 const char* var_class_name
;
8270 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
8271 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
8272 if (unlikely(var2
== NULL
)) {
8273 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
8274 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1861);
8282 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
8288 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
8290 var5
= 0; /* <var_old_child:ANode> cannot be null */
8292 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable AAnnotations> */
8293 var_other
= var_old_child
;
8295 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable AAnnotations(AAnnotations)> */
8296 var10
= var4
== var_other
;
8309 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8310 cltype
= type_nullable_parser_nodes__AAnnotations
.color
;
8311 idtype
= type_nullable_parser_nodes__AAnnotations
.id
;
8312 if(var_new_child
== NULL
) {
8315 if(cltype
>= var_new_child
->type
->table_size
) {
8318 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8321 if (unlikely(!var11
)) {
8322 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8323 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name
);
8324 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5629);
8328 parser_prod__ASuperstringExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperstringExpr#n_annotations= on <self:ASuperstringExpr>*/
8335 /* method parser_prod#ASuperstringExpr#replace_child for (self: Object, ANode, nullable ANode) */
8336 void VIRTUAL_parser_prod__ASuperstringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8337 parser_prod__ASuperstringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperstringExpr#replace_child on <self:Object(ASuperstringExpr)>*/
8340 /* method parser_prod#ASuperstringExpr#n_annotations= for (self: ASuperstringExpr, nullable AAnnotations) */
8341 void parser_prod__ASuperstringExpr__n_annotations_61d(val
* self
, val
* p0
) {
8342 val
* var_node
/* var node: nullable AAnnotations */;
8343 val
* var
/* : null */;
8344 short int var1
/* : Bool */;
8345 short int var2
/* : Bool */;
8346 val
* var_other
/* var other: nullable Object */;
8347 short int var4
/* : Bool */;
8348 short int var5
/* : Bool */;
8349 short int var6
/* : Bool */;
8351 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperstringExpr> */
8353 if (var_node
== NULL
) {
8354 var1
= 0; /* is null */
8356 var1
= 1; /* arg is null and recv is not */
8359 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
8362 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
8374 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8375 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8383 /* method parser_prod#ASuperstringExpr#n_annotations= for (self: Object, nullable AAnnotations) */
8384 void VIRTUAL_parser_prod__ASuperstringExpr__n_annotations_61d(val
* self
, val
* p0
) {
8385 parser_prod__ASuperstringExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ASuperstringExpr#n_annotations= on <self:Object(ASuperstringExpr)>*/
8388 /* method parser_prod#ASuperstringExpr#visit_all for (self: ASuperstringExpr, Visitor) */
8389 void parser_prod__ASuperstringExpr__visit_all(val
* self
, val
* p0
) {
8390 val
* var_v
/* var v: Visitor */;
8391 val
* var
/* : ANodes[AExpr] */;
8392 val
* var2
/* : ANodes[AExpr] */;
8393 val
* var3
/* : nullable AAnnotations */;
8396 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
8397 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
8398 if (unlikely(var2
== NULL
)) {
8399 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
8400 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1861);
8408 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
8410 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
8412 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8416 /* method parser_prod#ASuperstringExpr#visit_all for (self: Object, Visitor) */
8417 void VIRTUAL_parser_prod__ASuperstringExpr__visit_all(val
* self
, val
* p0
) {
8418 parser_prod__ASuperstringExpr__visit_all(self
, p0
); /* Direct call parser_prod#ASuperstringExpr#visit_all on <self:Object(ASuperstringExpr)>*/
8421 /* method parser_prod#AParExpr#init_aparexpr for (self: AParExpr, nullable TOpar, nullable AExpr, nullable TCpar, nullable AAnnotations) */
8422 void parser_prod__AParExpr__init_aparexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
8423 val
* var_n_opar
/* var n_opar: nullable TOpar */;
8424 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8425 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
8426 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8427 val
* var
/* : null */;
8428 short int var4
/* : Bool */;
8429 short int var5
/* : Bool */;
8430 val
* var_other
/* var other: nullable Object */;
8431 short int var7
/* : Bool */;
8432 short int var8
/* : Bool */;
8433 short int var9
/* : Bool */;
8437 var_n_annotations
= p3
;
8438 if (unlikely(var_n_opar
== NULL
)) {
8439 PRINT_ERROR("Runtime error: %s", "Cast failed");
8440 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5655);
8443 self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExpr> */
8444 if (var_n_opar
== NULL
) {
8445 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8446 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5656);
8449 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
8450 if (unlikely(var_n_opar
== NULL
)) {
8451 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8452 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8455 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
8459 if (unlikely(var_n_expr
== NULL
)) {
8460 PRINT_ERROR("Runtime error: %s", "Cast failed");
8461 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5657);
8464 self
->attrs
[COLOR_parser_nodes__AParExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AParExpr> */
8465 if (var_n_expr
== NULL
) {
8466 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8467 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5658);
8470 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8471 if (unlikely(var_n_expr
== NULL
)) {
8472 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8473 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8476 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8480 if (unlikely(var_n_cpar
== NULL
)) {
8481 PRINT_ERROR("Runtime error: %s", "Cast failed");
8482 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5659);
8485 self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExpr> */
8486 if (var_n_cpar
== NULL
) {
8487 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8488 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5660);
8491 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
8492 if (unlikely(var_n_cpar
== NULL
)) {
8493 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8494 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8497 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
8501 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParExpr> */
8503 if (var_n_annotations
== NULL
) {
8504 var4
= 0; /* is null */
8506 var4
= 1; /* arg is null and recv is not */
8509 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
8512 var8
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
8524 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8525 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8526 RET_LABEL10
:(void)0;
8533 /* method parser_prod#AParExpr#init_aparexpr for (self: Object, nullable TOpar, nullable AExpr, nullable TCpar, nullable AAnnotations) */
8534 void VIRTUAL_parser_prod__AParExpr__init_aparexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
8535 parser_prod__AParExpr__init_aparexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AParExpr#init_aparexpr on <self:Object(AParExpr)>*/
8538 /* method parser_prod#AParExpr#replace_child for (self: AParExpr, ANode, nullable ANode) */
8539 void parser_prod__AParExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8540 val
* var_old_child
/* var old_child: ANode */;
8541 val
* var_new_child
/* var new_child: nullable ANode */;
8542 val
* var
/* : TOpar */;
8543 short int var1
/* : Bool */;
8544 short int var2
/* : Bool */;
8545 val
* var_other
/* var other: nullable Object */;
8546 short int var4
/* : Bool */;
8547 short int var6
/* : Bool */;
8548 short int var7
/* : Bool */;
8551 const char* var_class_name
;
8552 val
* var8
/* : AExpr */;
8553 short int var9
/* : Bool */;
8554 short int var10
/* : Bool */;
8555 short int var12
/* : Bool */;
8556 short int var14
/* : Bool */;
8557 short int var15
/* : Bool */;
8560 const char* var_class_name18
;
8561 val
* var19
/* : TCpar */;
8562 short int var20
/* : Bool */;
8563 short int var21
/* : Bool */;
8564 short int var23
/* : Bool */;
8565 short int var25
/* : Bool */;
8566 short int var26
/* : Bool */;
8569 const char* var_class_name29
;
8570 val
* var30
/* : nullable AAnnotations */;
8571 short int var31
/* : Bool */;
8572 short int var32
/* : Bool */;
8573 short int var34
/* : Bool */;
8574 short int var36
/* : Bool */;
8575 short int var37
/* : Bool */;
8578 const char* var_class_name40
;
8581 var
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
8582 if (unlikely(var
== NULL
)) {
8583 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
8584 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5667);
8588 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
8589 var_other
= var_old_child
;
8591 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
8592 var6
= var
== var_other
;
8605 /* <var_new_child:nullable ANode> isa TOpar */
8606 cltype
= type_parser_nodes__TOpar
.color
;
8607 idtype
= type_parser_nodes__TOpar
.id
;
8608 if(var_new_child
== NULL
) {
8611 if(cltype
>= var_new_child
->type
->table_size
) {
8614 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8617 if (unlikely(!var7
)) {
8618 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8619 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
8620 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5668);
8624 parser_prod__AParExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_opar= on <self:AParExpr>*/
8629 var8
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
8630 if (unlikely(var8
== NULL
)) {
8631 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8632 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5671);
8636 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
8637 var_other
= var_old_child
;
8639 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
8640 var14
= var8
== var_other
;
8643 RET_LABEL13
:(void)0;
8648 RET_LABEL11
:(void)0;
8653 /* <var_new_child:nullable ANode> isa AExpr */
8654 cltype16
= type_parser_nodes__AExpr
.color
;
8655 idtype17
= type_parser_nodes__AExpr
.id
;
8656 if(var_new_child
== NULL
) {
8659 if(cltype16
>= var_new_child
->type
->table_size
) {
8662 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8665 if (unlikely(!var15
)) {
8666 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8667 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
8668 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5672);
8672 parser_prod__AParExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_expr= on <self:AParExpr>*/
8677 var19
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
8678 if (unlikely(var19
== NULL
)) {
8679 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
8680 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5675);
8684 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TCpar> */
8685 var_other
= var_old_child
;
8687 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TCpar> */
8688 var25
= var19
== var_other
;
8691 RET_LABEL24
:(void)0;
8696 RET_LABEL22
:(void)0;
8701 /* <var_new_child:nullable ANode> isa TCpar */
8702 cltype27
= type_parser_nodes__TCpar
.color
;
8703 idtype28
= type_parser_nodes__TCpar
.id
;
8704 if(var_new_child
== NULL
) {
8707 if(cltype27
>= var_new_child
->type
->table_size
) {
8710 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
8713 if (unlikely(!var26
)) {
8714 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8715 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name29
);
8716 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5676);
8720 parser_prod__AParExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_cpar= on <self:AParExpr>*/
8725 var30
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
8726 if (var30
== NULL
) {
8727 var31
= 0; /* <var_old_child:ANode> cannot be null */
8729 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable AAnnotations> */
8730 var_other
= var_old_child
;
8732 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable AAnnotations(AAnnotations)> */
8733 var36
= var30
== var_other
;
8736 RET_LABEL35
:(void)0;
8741 RET_LABEL33
:(void)0;
8746 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8747 cltype38
= type_nullable_parser_nodes__AAnnotations
.color
;
8748 idtype39
= type_nullable_parser_nodes__AAnnotations
.id
;
8749 if(var_new_child
== NULL
) {
8752 if(cltype38
>= var_new_child
->type
->table_size
) {
8755 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
8758 if (unlikely(!var37
)) {
8759 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8760 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name40
);
8761 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5680);
8765 parser_prod__AParExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_annotations= on <self:AParExpr>*/
8772 /* method parser_prod#AParExpr#replace_child for (self: Object, ANode, nullable ANode) */
8773 void VIRTUAL_parser_prod__AParExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
8774 parser_prod__AParExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AParExpr#replace_child on <self:Object(AParExpr)>*/
8777 /* method parser_prod#AParExpr#n_opar= for (self: AParExpr, TOpar) */
8778 void parser_prod__AParExpr__n_opar_61d(val
* self
, val
* p0
) {
8779 val
* var_node
/* var node: TOpar */;
8781 self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AParExpr> */
8783 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
8784 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
8790 /* method parser_prod#AParExpr#n_opar= for (self: Object, TOpar) */
8791 void VIRTUAL_parser_prod__AParExpr__n_opar_61d(val
* self
, val
* p0
) {
8792 parser_prod__AParExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_opar= on <self:Object(AParExpr)>*/
8795 /* method parser_prod#AParExpr#n_expr= for (self: AParExpr, AExpr) */
8796 void parser_prod__AParExpr__n_expr_61d(val
* self
, val
* p0
) {
8797 val
* var_node
/* var node: AExpr */;
8799 self
->attrs
[COLOR_parser_nodes__AParExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AParExpr> */
8801 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
8802 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
8808 /* method parser_prod#AParExpr#n_expr= for (self: Object, AExpr) */
8809 void VIRTUAL_parser_prod__AParExpr__n_expr_61d(val
* self
, val
* p0
) {
8810 parser_prod__AParExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_expr= on <self:Object(AParExpr)>*/
8813 /* method parser_prod#AParExpr#n_cpar= for (self: AParExpr, TCpar) */
8814 void parser_prod__AParExpr__n_cpar_61d(val
* self
, val
* p0
) {
8815 val
* var_node
/* var node: TCpar */;
8817 self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExpr> */
8819 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
8820 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
8826 /* method parser_prod#AParExpr#n_cpar= for (self: Object, TCpar) */
8827 void VIRTUAL_parser_prod__AParExpr__n_cpar_61d(val
* self
, val
* p0
) {
8828 parser_prod__AParExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_cpar= on <self:Object(AParExpr)>*/
8831 /* method parser_prod#AParExpr#n_annotations= for (self: AParExpr, nullable AAnnotations) */
8832 void parser_prod__AParExpr__n_annotations_61d(val
* self
, val
* p0
) {
8833 val
* var_node
/* var node: nullable AAnnotations */;
8834 val
* var
/* : null */;
8835 short int var1
/* : Bool */;
8836 short int var2
/* : Bool */;
8837 val
* var_other
/* var other: nullable Object */;
8838 short int var4
/* : Bool */;
8839 short int var5
/* : Bool */;
8840 short int var6
/* : Bool */;
8842 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParExpr> */
8844 if (var_node
== NULL
) {
8845 var1
= 0; /* is null */
8847 var1
= 1; /* arg is null and recv is not */
8850 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
8853 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
8865 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8866 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8874 /* method parser_prod#AParExpr#n_annotations= for (self: Object, nullable AAnnotations) */
8875 void VIRTUAL_parser_prod__AParExpr__n_annotations_61d(val
* self
, val
* p0
) {
8876 parser_prod__AParExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_annotations= on <self:Object(AParExpr)>*/
8879 /* method parser_prod#AParExpr#visit_all for (self: AParExpr, Visitor) */
8880 void parser_prod__AParExpr__visit_all(val
* self
, val
* p0
) {
8881 val
* var_v
/* var v: Visitor */;
8882 val
* var
/* : TOpar */;
8883 val
* var1
/* : AExpr */;
8884 val
* var2
/* : TCpar */;
8885 val
* var3
/* : nullable AAnnotations */;
8887 var
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
8888 if (unlikely(var
== NULL
)) {
8889 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
8890 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5709);
8894 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8896 var1
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
8897 if (unlikely(var1
== NULL
)) {
8898 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
8899 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5710);
8903 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8905 var2
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
8906 if (unlikely(var2
== NULL
)) {
8907 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
8908 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5711);
8912 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8914 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
8916 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8920 /* method parser_prod#AParExpr#visit_all for (self: Object, Visitor) */
8921 void VIRTUAL_parser_prod__AParExpr__visit_all(val
* self
, val
* p0
) {
8922 parser_prod__AParExpr__visit_all(self
, p0
); /* Direct call parser_prod#AParExpr#visit_all on <self:Object(AParExpr)>*/
8925 /* method parser_prod#AAsCastExpr#init_aascastexpr for (self: AAsCastExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable AType, nullable TCpar) */
8926 void parser_prod__AAsCastExpr__init_aascastexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
8927 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8928 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
8929 val
* var_n_opar
/* var n_opar: nullable TOpar */;
8930 val
* var_n_type
/* var n_type: nullable AType */;
8931 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
8932 val
* var
/* : null */;
8933 short int var3
/* : Bool */;
8934 short int var4
/* : Bool */;
8935 val
* var_other
/* var other: nullable Object */;
8936 short int var6
/* : Bool */;
8937 short int var7
/* : Bool */;
8938 short int var8
/* : Bool */;
8939 val
* var11
/* : null */;
8940 short int var12
/* : Bool */;
8941 short int var13
/* : Bool */;
8942 short int var15
/* : Bool */;
8943 short int var16
/* : Bool */;
8944 short int var17
/* : Bool */;
8950 if (unlikely(var_n_expr
== NULL
)) {
8951 PRINT_ERROR("Runtime error: %s", "Cast failed");
8952 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5724);
8955 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsCastExpr> */
8956 if (var_n_expr
== NULL
) {
8957 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8958 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5725);
8961 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8962 if (unlikely(var_n_expr
== NULL
)) {
8963 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8964 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8967 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8971 if (unlikely(var_n_kwas
== NULL
)) {
8972 PRINT_ERROR("Runtime error: %s", "Cast failed");
8973 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5726);
8976 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsCastExpr> */
8977 if (var_n_kwas
== NULL
) {
8978 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8979 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5727);
8982 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
8983 if (unlikely(var_n_kwas
== NULL
)) {
8984 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8985 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8988 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
8992 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsCastExpr> */
8994 if (var_n_opar
== NULL
) {
8995 var3
= 0; /* is null */
8997 var3
= 1; /* arg is null and recv is not */
9000 { /* Inline kernel#Object#!= (var_n_opar,var) on <var_n_opar:nullable TOpar> */
9003 var7
= ((short int (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_opar
, var_other
) /* == on <var_n_opar:nullable TOpar(TOpar)>*/;
9015 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
9016 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
9022 if (unlikely(var_n_type
== NULL
)) {
9023 PRINT_ERROR("Runtime error: %s", "Cast failed");
9024 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5730);
9027 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AAsCastExpr> */
9028 if (var_n_type
== NULL
) {
9029 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9030 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5731);
9033 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
9034 if (unlikely(var_n_type
== NULL
)) {
9035 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9036 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9039 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
9040 RET_LABEL10
:(void)0;
9043 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsCastExpr> */
9045 if (var_n_cpar
== NULL
) {
9046 var12
= 0; /* is null */
9048 var12
= 1; /* arg is null and recv is not */
9051 { /* Inline kernel#Object#!= (var_n_cpar,var11) on <var_n_cpar:nullable TCpar> */
9054 var16
= ((short int (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_cpar
, var_other
) /* == on <var_n_cpar:nullable TCpar(TCpar)>*/;
9060 RET_LABEL14
:(void)0;
9066 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
9067 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
9068 RET_LABEL18
:(void)0;
9075 /* method parser_prod#AAsCastExpr#init_aascastexpr for (self: Object, nullable AExpr, nullable TKwas, nullable TOpar, nullable AType, nullable TCpar) */
9076 void VIRTUAL_parser_prod__AAsCastExpr__init_aascastexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
9077 parser_prod__AAsCastExpr__init_aascastexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#AAsCastExpr#init_aascastexpr on <self:Object(AAsCastExpr)>*/
9080 /* method parser_prod#AAsCastExpr#replace_child for (self: AAsCastExpr, ANode, nullable ANode) */
9081 void parser_prod__AAsCastExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
9082 val
* var_old_child
/* var old_child: ANode */;
9083 val
* var_new_child
/* var new_child: nullable ANode */;
9084 val
* var
/* : AExpr */;
9085 short int var1
/* : Bool */;
9086 short int var2
/* : Bool */;
9087 val
* var_other
/* var other: nullable Object */;
9088 short int var4
/* : Bool */;
9089 short int var6
/* : Bool */;
9090 short int var7
/* : Bool */;
9093 const char* var_class_name
;
9094 val
* var8
/* : TKwas */;
9095 short int var9
/* : Bool */;
9096 short int var10
/* : Bool */;
9097 short int var12
/* : Bool */;
9098 short int var14
/* : Bool */;
9099 short int var15
/* : Bool */;
9102 const char* var_class_name18
;
9103 val
* var19
/* : nullable TOpar */;
9104 short int var20
/* : Bool */;
9105 short int var21
/* : Bool */;
9106 short int var23
/* : Bool */;
9107 short int var25
/* : Bool */;
9108 short int var26
/* : Bool */;
9111 const char* var_class_name29
;
9112 val
* var30
/* : AType */;
9113 short int var31
/* : Bool */;
9114 short int var32
/* : Bool */;
9115 short int var34
/* : Bool */;
9116 short int var36
/* : Bool */;
9117 short int var37
/* : Bool */;
9120 const char* var_class_name40
;
9121 val
* var41
/* : nullable TCpar */;
9122 short int var42
/* : Bool */;
9123 short int var43
/* : Bool */;
9124 short int var45
/* : Bool */;
9125 short int var47
/* : Bool */;
9126 short int var48
/* : Bool */;
9129 const char* var_class_name51
;
9132 var
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
9133 if (unlikely(var
== NULL
)) {
9134 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9135 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5738);
9139 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
9140 var_other
= var_old_child
;
9142 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
9143 var6
= var
== var_other
;
9156 /* <var_new_child:nullable ANode> isa AExpr */
9157 cltype
= type_parser_nodes__AExpr
.color
;
9158 idtype
= type_parser_nodes__AExpr
.id
;
9159 if(var_new_child
== NULL
) {
9162 if(cltype
>= var_new_child
->type
->table_size
) {
9165 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9168 if (unlikely(!var7
)) {
9169 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9170 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
9171 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5739);
9175 parser_prod__AAsCastExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_expr= on <self:AAsCastExpr>*/
9180 var8
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
9181 if (unlikely(var8
== NULL
)) {
9182 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
9183 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5742);
9187 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
9188 var_other
= var_old_child
;
9190 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
9191 var14
= var8
== var_other
;
9194 RET_LABEL13
:(void)0;
9199 RET_LABEL11
:(void)0;
9204 /* <var_new_child:nullable ANode> isa TKwas */
9205 cltype16
= type_parser_nodes__TKwas
.color
;
9206 idtype17
= type_parser_nodes__TKwas
.id
;
9207 if(var_new_child
== NULL
) {
9210 if(cltype16
>= var_new_child
->type
->table_size
) {
9213 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9216 if (unlikely(!var15
)) {
9217 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9218 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
9219 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5743);
9223 parser_prod__AAsCastExpr__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_kwas= on <self:AAsCastExpr>*/
9228 var19
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
9229 if (var19
== NULL
) {
9230 var20
= 0; /* <var_old_child:ANode> cannot be null */
9232 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable TOpar> */
9233 var_other
= var_old_child
;
9235 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable TOpar(TOpar)> */
9236 var25
= var19
== var_other
;
9239 RET_LABEL24
:(void)0;
9244 RET_LABEL22
:(void)0;
9249 /* <var_new_child:nullable ANode> isa nullable TOpar */
9250 cltype27
= type_nullable_parser_nodes__TOpar
.color
;
9251 idtype28
= type_nullable_parser_nodes__TOpar
.id
;
9252 if(var_new_child
== NULL
) {
9255 if(cltype27
>= var_new_child
->type
->table_size
) {
9258 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
9261 if (unlikely(!var26
)) {
9262 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9263 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name29
);
9264 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5747);
9268 parser_prod__AAsCastExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_opar= on <self:AAsCastExpr>*/
9273 var30
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
9274 if (unlikely(var30
== NULL
)) {
9275 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9276 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5750);
9280 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
9281 var_other
= var_old_child
;
9283 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
9284 var36
= var30
== var_other
;
9287 RET_LABEL35
:(void)0;
9292 RET_LABEL33
:(void)0;
9297 /* <var_new_child:nullable ANode> isa AType */
9298 cltype38
= type_parser_nodes__AType
.color
;
9299 idtype39
= type_parser_nodes__AType
.id
;
9300 if(var_new_child
== NULL
) {
9303 if(cltype38
>= var_new_child
->type
->table_size
) {
9306 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
9309 if (unlikely(!var37
)) {
9310 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9311 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
9312 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5751);
9316 parser_prod__AAsCastExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_type= on <self:AAsCastExpr>*/
9321 var41
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
9322 if (var41
== NULL
) {
9323 var42
= 0; /* <var_old_child:ANode> cannot be null */
9325 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TCpar> */
9326 var_other
= var_old_child
;
9328 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TCpar(TCpar)> */
9329 var47
= var41
== var_other
;
9332 RET_LABEL46
:(void)0;
9337 RET_LABEL44
:(void)0;
9342 /* <var_new_child:nullable ANode> isa nullable TCpar */
9343 cltype49
= type_nullable_parser_nodes__TCpar
.color
;
9344 idtype50
= type_nullable_parser_nodes__TCpar
.id
;
9345 if(var_new_child
== NULL
) {
9348 if(cltype49
>= var_new_child
->type
->table_size
) {
9351 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
9354 if (unlikely(!var48
)) {
9355 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9356 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name51
);
9357 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5755);
9361 parser_prod__AAsCastExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_cpar= on <self:AAsCastExpr>*/
9368 /* method parser_prod#AAsCastExpr#replace_child for (self: Object, ANode, nullable ANode) */
9369 void VIRTUAL_parser_prod__AAsCastExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
9370 parser_prod__AAsCastExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsCastExpr#replace_child on <self:Object(AAsCastExpr)>*/
9373 /* method parser_prod#AAsCastExpr#n_expr= for (self: AAsCastExpr, AExpr) */
9374 void parser_prod__AAsCastExpr__n_expr_61d(val
* self
, val
* p0
) {
9375 val
* var_node
/* var node: AExpr */;
9377 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAsCastExpr> */
9379 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9380 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9386 /* method parser_prod#AAsCastExpr#n_expr= for (self: Object, AExpr) */
9387 void VIRTUAL_parser_prod__AAsCastExpr__n_expr_61d(val
* self
, val
* p0
) {
9388 parser_prod__AAsCastExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_expr= on <self:Object(AAsCastExpr)>*/
9391 /* method parser_prod#AAsCastExpr#n_kwas= for (self: AAsCastExpr, TKwas) */
9392 void parser_prod__AAsCastExpr__n_kwas_61d(val
* self
, val
* p0
) {
9393 val
* var_node
/* var node: TKwas */;
9395 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsCastExpr> */
9397 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
9398 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
9404 /* method parser_prod#AAsCastExpr#n_kwas= for (self: Object, TKwas) */
9405 void VIRTUAL_parser_prod__AAsCastExpr__n_kwas_61d(val
* self
, val
* p0
) {
9406 parser_prod__AAsCastExpr__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_kwas= on <self:Object(AAsCastExpr)>*/
9409 /* method parser_prod#AAsCastExpr#n_opar= for (self: AAsCastExpr, nullable TOpar) */
9410 void parser_prod__AAsCastExpr__n_opar_61d(val
* self
, val
* p0
) {
9411 val
* var_node
/* var node: nullable TOpar */;
9412 val
* var
/* : null */;
9413 short int var1
/* : Bool */;
9414 short int var2
/* : Bool */;
9415 val
* var_other
/* var other: nullable Object */;
9416 short int var4
/* : Bool */;
9417 short int var5
/* : Bool */;
9418 short int var6
/* : Bool */;
9420 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AAsCastExpr> */
9422 if (var_node
== NULL
) {
9423 var1
= 0; /* is null */
9425 var1
= 1; /* arg is null and recv is not */
9428 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
9431 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
9443 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
9444 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
9452 /* method parser_prod#AAsCastExpr#n_opar= for (self: Object, nullable TOpar) */
9453 void VIRTUAL_parser_prod__AAsCastExpr__n_opar_61d(val
* self
, val
* p0
) {
9454 parser_prod__AAsCastExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_opar= on <self:Object(AAsCastExpr)>*/
9457 /* method parser_prod#AAsCastExpr#n_type= for (self: AAsCastExpr, AType) */
9458 void parser_prod__AAsCastExpr__n_type_61d(val
* self
, val
* p0
) {
9459 val
* var_node
/* var node: AType */;
9461 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
= var_node
; /* _n_type on <self:AAsCastExpr> */
9463 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
9464 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
9470 /* method parser_prod#AAsCastExpr#n_type= for (self: Object, AType) */
9471 void VIRTUAL_parser_prod__AAsCastExpr__n_type_61d(val
* self
, val
* p0
) {
9472 parser_prod__AAsCastExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_type= on <self:Object(AAsCastExpr)>*/
9475 /* method parser_prod#AAsCastExpr#n_cpar= for (self: AAsCastExpr, nullable TCpar) */
9476 void parser_prod__AAsCastExpr__n_cpar_61d(val
* self
, val
* p0
) {
9477 val
* var_node
/* var node: nullable TCpar */;
9478 val
* var
/* : null */;
9479 short int var1
/* : Bool */;
9480 short int var2
/* : Bool */;
9481 val
* var_other
/* var other: nullable Object */;
9482 short int var4
/* : Bool */;
9483 short int var5
/* : Bool */;
9484 short int var6
/* : Bool */;
9486 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsCastExpr> */
9488 if (var_node
== NULL
) {
9489 var1
= 0; /* is null */
9491 var1
= 1; /* arg is null and recv is not */
9494 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
9497 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
9509 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
9510 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
9518 /* method parser_prod#AAsCastExpr#n_cpar= for (self: Object, nullable TCpar) */
9519 void VIRTUAL_parser_prod__AAsCastExpr__n_cpar_61d(val
* self
, val
* p0
) {
9520 parser_prod__AAsCastExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_cpar= on <self:Object(AAsCastExpr)>*/
9523 /* method parser_prod#AAsCastExpr#visit_all for (self: AAsCastExpr, Visitor) */
9524 void parser_prod__AAsCastExpr__visit_all(val
* self
, val
* p0
) {
9525 val
* var_v
/* var v: Visitor */;
9526 val
* var
/* : AExpr */;
9527 val
* var1
/* : TKwas */;
9528 val
* var2
/* : nullable TOpar */;
9529 val
* var3
/* : AType */;
9530 val
* var4
/* : nullable TCpar */;
9532 var
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
9533 if (unlikely(var
== NULL
)) {
9534 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9535 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5789);
9539 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9541 var1
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
9542 if (unlikely(var1
== NULL
)) {
9543 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
9544 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5790);
9548 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9550 var2
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
9552 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9554 var3
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
9555 if (unlikely(var3
== NULL
)) {
9556 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9557 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5792);
9561 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9563 var4
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
9565 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9569 /* method parser_prod#AAsCastExpr#visit_all for (self: Object, Visitor) */
9570 void VIRTUAL_parser_prod__AAsCastExpr__visit_all(val
* self
, val
* p0
) {
9571 parser_prod__AAsCastExpr__visit_all(self
, p0
); /* Direct call parser_prod#AAsCastExpr#visit_all on <self:Object(AAsCastExpr)>*/
9574 /* method parser_prod#AAsNotnullExpr#init_aasnotnullexpr for (self: AAsNotnullExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable TKwnot, nullable TKwnull, nullable TCpar) */
9575 void parser_prod__AAsNotnullExpr__init_aasnotnullexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
9576 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9577 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
9578 val
* var_n_opar
/* var n_opar: nullable TOpar */;
9579 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
9580 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
9581 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
9582 val
* var
/* : null */;
9583 short int var3
/* : Bool */;
9584 short int var4
/* : Bool */;
9585 val
* var_other
/* var other: nullable Object */;
9586 short int var6
/* : Bool */;
9587 short int var7
/* : Bool */;
9588 short int var8
/* : Bool */;
9589 val
* var12
/* : null */;
9590 short int var13
/* : Bool */;
9591 short int var14
/* : Bool */;
9592 short int var16
/* : Bool */;
9593 short int var17
/* : Bool */;
9594 short int var18
/* : Bool */;
9601 if (unlikely(var_n_expr
== NULL
)) {
9602 PRINT_ERROR("Runtime error: %s", "Cast failed");
9603 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5806);
9606 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsNotnullExpr> */
9607 if (var_n_expr
== NULL
) {
9608 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9609 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5807);
9612 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9613 if (unlikely(var_n_expr
== NULL
)) {
9614 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9615 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9618 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9622 if (unlikely(var_n_kwas
== NULL
)) {
9623 PRINT_ERROR("Runtime error: %s", "Cast failed");
9624 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5808);
9627 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotnullExpr> */
9628 if (var_n_kwas
== NULL
) {
9629 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9630 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5809);
9633 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
9634 if (unlikely(var_n_kwas
== NULL
)) {
9635 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9636 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9639 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
9643 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsNotnullExpr> */
9645 if (var_n_opar
== NULL
) {
9646 var3
= 0; /* is null */
9648 var3
= 1; /* arg is null and recv is not */
9651 { /* Inline kernel#Object#!= (var_n_opar,var) on <var_n_opar:nullable TOpar> */
9654 var7
= ((short int (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_opar
, var_other
) /* == on <var_n_opar:nullable TOpar(TOpar)>*/;
9666 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
9667 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
9673 if (unlikely(var_n_kwnot
== NULL
)) {
9674 PRINT_ERROR("Runtime error: %s", "Cast failed");
9675 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5812);
9678 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotnullExpr> */
9679 if (var_n_kwnot
== NULL
) {
9680 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9681 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5813);
9684 { /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on <var_n_kwnot:nullable TKwnot> */
9685 if (unlikely(var_n_kwnot
== NULL
)) {
9686 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9687 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9690 var_n_kwnot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnot:nullable TKwnot> */
9691 RET_LABEL10
:(void)0;
9694 if (unlikely(var_n_kwnull
== NULL
)) {
9695 PRINT_ERROR("Runtime error: %s", "Cast failed");
9696 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5814);
9699 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:AAsNotnullExpr> */
9700 if (var_n_kwnull
== NULL
) {
9701 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9702 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5815);
9705 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
9706 if (unlikely(var_n_kwnull
== NULL
)) {
9707 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9708 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9711 var_n_kwnull
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
9712 RET_LABEL11
:(void)0;
9715 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsNotnullExpr> */
9717 if (var_n_cpar
== NULL
) {
9718 var13
= 0; /* is null */
9720 var13
= 1; /* arg is null and recv is not */
9723 { /* Inline kernel#Object#!= (var_n_cpar,var12) on <var_n_cpar:nullable TCpar> */
9726 var17
= ((short int (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_cpar
, var_other
) /* == on <var_n_cpar:nullable TCpar(TCpar)>*/;
9732 RET_LABEL15
:(void)0;
9738 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
9739 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
9740 RET_LABEL19
:(void)0;
9747 /* method parser_prod#AAsNotnullExpr#init_aasnotnullexpr for (self: Object, nullable AExpr, nullable TKwas, nullable TOpar, nullable TKwnot, nullable TKwnull, nullable TCpar) */
9748 void VIRTUAL_parser_prod__AAsNotnullExpr__init_aasnotnullexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
9749 parser_prod__AAsNotnullExpr__init_aasnotnullexpr(self
, p0
, p1
, p2
, p3
, p4
, p5
); /* Direct call parser_prod#AAsNotnullExpr#init_aasnotnullexpr on <self:Object(AAsNotnullExpr)>*/