1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#ACrangeExpr#visit_all for (self: ACrangeExpr, Visitor) */
3 void parser_prod__ACrangeExpr__visit_all(val
* self
, val
* p0
) {
4 val
* var_v
/* var v: Visitor */;
5 val
* var
/* : TObra */;
6 val
* var1
/* : AExpr */;
7 val
* var2
/* : AExpr */;
8 val
* var3
/* : TCbra */;
9 val
* var4
/* : nullable AAnnotations */;
11 var
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_obra
].val
; /* _n_obra on <self:ACrangeExpr> */
12 if (unlikely(var
== NULL
)) {
13 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
14 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5753);
18 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
20 var1
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:ACrangeExpr> */
21 if (unlikely(var1
== NULL
)) {
22 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
23 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5754);
27 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
29 var2
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:ACrangeExpr> */
30 if (unlikely(var2
== NULL
)) {
31 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
32 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5755);
36 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
38 var3
= self
->attrs
[COLOR_parser_nodes__ACrangeExpr___n_cbra
].val
; /* _n_cbra on <self:ACrangeExpr> */
39 if (unlikely(var3
== NULL
)) {
40 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
41 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5756);
45 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
47 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACrangeExpr> */
49 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
53 /* method parser_prod#ACrangeExpr#visit_all for (self: Object, Visitor) */
54 void VIRTUAL_parser_prod__ACrangeExpr__visit_all(val
* self
, val
* p0
) {
55 parser_prod__ACrangeExpr__visit_all(self
, p0
); /* Direct call parser_prod#ACrangeExpr#visit_all on <self:Object(ACrangeExpr)>*/
58 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: AOrangeExpr, nullable TObra, nullable AExpr, nullable AExpr, nullable TObra, nullable AAnnotations) */
59 void parser_prod__AOrangeExpr__init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
60 val
* var_n_obra
/* var n_obra: nullable TObra */;
61 val
* var_n_expr
/* var n_expr: nullable AExpr */;
62 val
* var_n_expr2
/* var n_expr2: nullable AExpr */;
63 val
* var_n_cbra
/* var n_cbra: nullable TObra */;
64 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
65 val
* var
/* : null */;
66 short int var5
/* : Bool */;
67 short int var6
/* : Bool */;
68 val
* var_other
/* var other: nullable Object */;
69 short int var8
/* : Bool */;
70 short int var9
/* : Bool */;
71 short int var10
/* : Bool */;
76 var_n_annotations
= p4
;
77 if (unlikely(var_n_obra
== NULL
)) {
78 PRINT_ERROR("Runtime error: %s", "Cast failed");
79 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5769);
82 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AOrangeExpr> */
83 if (var_n_obra
== NULL
) {
84 PRINT_ERROR("Runtime error: %s", "Receiver is null");
85 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5770);
88 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
89 if (unlikely(var_n_obra
== NULL
)) {
90 PRINT_ERROR("Runtime error: %s", "Receiver is null");
91 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
94 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
98 if (unlikely(var_n_expr
== NULL
)) {
99 PRINT_ERROR("Runtime error: %s", "Cast failed");
100 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5771);
103 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AOrangeExpr> */
104 if (var_n_expr
== NULL
) {
105 PRINT_ERROR("Runtime error: %s", "Receiver is null");
106 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5772);
109 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
110 if (unlikely(var_n_expr
== NULL
)) {
111 PRINT_ERROR("Runtime error: %s", "Receiver is null");
112 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
115 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
119 if (unlikely(var_n_expr2
== NULL
)) {
120 PRINT_ERROR("Runtime error: %s", "Cast failed");
121 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5773);
124 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_n_expr2
; /* _n_expr2 on <self:AOrangeExpr> */
125 if (var_n_expr2
== NULL
) {
126 PRINT_ERROR("Runtime error: %s", "Receiver is null");
127 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5774);
130 { /* Inline parser_nodes#ANode#parent= (var_n_expr2,self) on <var_n_expr2:nullable AExpr> */
131 if (unlikely(var_n_expr2
== NULL
)) {
132 PRINT_ERROR("Runtime error: %s", "Receiver is null");
133 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
136 var_n_expr2
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr2:nullable AExpr> */
140 if (unlikely(var_n_cbra
== NULL
)) {
141 PRINT_ERROR("Runtime error: %s", "Cast failed");
142 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5775);
145 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AOrangeExpr> */
146 if (var_n_cbra
== NULL
) {
147 PRINT_ERROR("Runtime error: %s", "Receiver is null");
148 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5776);
151 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TObra> */
152 if (unlikely(var_n_cbra
== NULL
)) {
153 PRINT_ERROR("Runtime error: %s", "Receiver is null");
154 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
157 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TObra> */
161 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AOrangeExpr> */
163 if (var_n_annotations
== NULL
) {
164 var5
= 0; /* is null */
166 var5
= 1; /* arg is null and recv is not */
169 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
172 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)>*/;
184 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
185 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
193 /* method parser_prod#AOrangeExpr#init_aorangeexpr for (self: Object, nullable TObra, nullable AExpr, nullable AExpr, nullable TObra, nullable AAnnotations) */
194 void VIRTUAL_parser_prod__AOrangeExpr__init_aorangeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
195 parser_prod__AOrangeExpr__init_aorangeexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#AOrangeExpr#init_aorangeexpr on <self:Object(AOrangeExpr)>*/
198 /* method parser_prod#AOrangeExpr#replace_child for (self: AOrangeExpr, ANode, nullable ANode) */
199 void parser_prod__AOrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
200 val
* var_old_child
/* var old_child: ANode */;
201 val
* var_new_child
/* var new_child: nullable ANode */;
202 val
* var
/* : TObra */;
203 short int var1
/* : Bool */;
204 short int var2
/* : Bool */;
205 val
* var_other
/* var other: nullable Object */;
206 short int var4
/* : Bool */;
207 short int var6
/* : Bool */;
208 short int var7
/* : Bool */;
211 const char* var_class_name
;
212 val
* var8
/* : AExpr */;
213 short int var9
/* : Bool */;
214 short int var10
/* : Bool */;
215 short int var12
/* : Bool */;
216 short int var14
/* : Bool */;
217 short int var15
/* : Bool */;
220 const char* var_class_name18
;
221 val
* var19
/* : AExpr */;
222 short int var20
/* : Bool */;
223 short int var21
/* : Bool */;
224 short int var23
/* : Bool */;
225 short int var25
/* : Bool */;
226 short int var26
/* : Bool */;
229 const char* var_class_name29
;
230 val
* var30
/* : TObra */;
231 short int var31
/* : Bool */;
232 short int var32
/* : Bool */;
233 short int var34
/* : Bool */;
234 short int var36
/* : Bool */;
235 short int var37
/* : Bool */;
238 const char* var_class_name40
;
239 val
* var41
/* : nullable AAnnotations */;
240 short int var42
/* : Bool */;
241 short int var43
/* : Bool */;
242 short int var45
/* : Bool */;
243 short int var47
/* : Bool */;
244 short int var48
/* : Bool */;
247 const char* var_class_name51
;
250 var
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
251 if (unlikely(var
== NULL
)) {
252 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
253 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5783);
257 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
258 var_other
= var_old_child
;
260 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
261 var6
= var
== var_other
;
274 /* <var_new_child:nullable ANode> isa TObra */
275 cltype
= type_parser_nodes__TObra
.color
;
276 idtype
= type_parser_nodes__TObra
.id
;
277 if(var_new_child
== NULL
) {
280 if(cltype
>= var_new_child
->type
->table_size
) {
283 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
286 if (unlikely(!var7
)) {
287 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
288 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
289 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5784);
293 parser_prod__AOrangeExpr__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:AOrangeExpr>*/
298 var8
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
299 if (unlikely(var8
== NULL
)) {
300 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
301 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5787);
305 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
306 var_other
= var_old_child
;
308 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
309 var14
= var8
== var_other
;
322 /* <var_new_child:nullable ANode> isa AExpr */
323 cltype16
= type_parser_nodes__AExpr
.color
;
324 idtype17
= type_parser_nodes__AExpr
.id
;
325 if(var_new_child
== NULL
) {
328 if(cltype16
>= var_new_child
->type
->table_size
) {
331 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
334 if (unlikely(!var15
)) {
335 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
336 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
337 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5788);
341 parser_prod__AOrangeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:AOrangeExpr>*/
346 var19
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
347 if (unlikely(var19
== NULL
)) {
348 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
349 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5791);
353 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
354 var_other
= var_old_child
;
356 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
357 var25
= var19
== var_other
;
370 /* <var_new_child:nullable ANode> isa AExpr */
371 cltype27
= type_parser_nodes__AExpr
.color
;
372 idtype28
= type_parser_nodes__AExpr
.id
;
373 if(var_new_child
== NULL
) {
376 if(cltype27
>= var_new_child
->type
->table_size
) {
379 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
382 if (unlikely(!var26
)) {
383 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
384 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
385 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5792);
389 parser_prod__AOrangeExpr__n_expr2_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:AOrangeExpr>*/
394 var30
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
395 if (unlikely(var30
== NULL
)) {
396 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
397 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5795);
401 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TObra> */
402 var_other
= var_old_child
;
404 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TObra> */
405 var36
= var30
== var_other
;
418 /* <var_new_child:nullable ANode> isa TObra */
419 cltype38
= type_parser_nodes__TObra
.color
;
420 idtype39
= type_parser_nodes__TObra
.id
;
421 if(var_new_child
== NULL
) {
424 if(cltype38
>= var_new_child
->type
->table_size
) {
427 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
430 if (unlikely(!var37
)) {
431 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
432 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name40
);
433 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5796);
437 parser_prod__AOrangeExpr__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:AOrangeExpr>*/
442 var41
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
444 var42
= 0; /* <var_old_child:ANode> cannot be null */
446 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable AAnnotations> */
447 var_other
= var_old_child
;
449 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable AAnnotations(AAnnotations)> */
450 var47
= var41
== var_other
;
463 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
464 cltype49
= type_nullable_parser_nodes__AAnnotations
.color
;
465 idtype50
= type_nullable_parser_nodes__AAnnotations
.id
;
466 if(var_new_child
== NULL
) {
469 if(cltype49
>= var_new_child
->type
->table_size
) {
472 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
475 if (unlikely(!var48
)) {
476 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
477 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name51
);
478 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5800);
482 parser_prod__AOrangeExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:AOrangeExpr>*/
489 /* method parser_prod#AOrangeExpr#replace_child for (self: Object, ANode, nullable ANode) */
490 void VIRTUAL_parser_prod__AOrangeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
491 parser_prod__AOrangeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AOrangeExpr#replace_child on <self:Object(AOrangeExpr)>*/
494 /* method parser_prod#AOrangeExpr#n_obra= for (self: AOrangeExpr, TObra) */
495 void parser_prod__AOrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
496 val
* var_node
/* var node: TObra */;
498 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
= var_node
; /* _n_obra on <self:AOrangeExpr> */
500 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
501 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
507 /* method parser_prod#AOrangeExpr#n_obra= for (self: Object, TObra) */
508 void VIRTUAL_parser_prod__AOrangeExpr__n_obra_61d(val
* self
, val
* p0
) {
509 parser_prod__AOrangeExpr__n_obra_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_obra= on <self:Object(AOrangeExpr)>*/
512 /* method parser_prod#AOrangeExpr#n_expr= for (self: AOrangeExpr, AExpr) */
513 void parser_prod__AOrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
514 val
* var_node
/* var node: AExpr */;
516 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AOrangeExpr> */
518 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
519 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
525 /* method parser_prod#AOrangeExpr#n_expr= for (self: Object, AExpr) */
526 void VIRTUAL_parser_prod__AOrangeExpr__n_expr_61d(val
* self
, val
* p0
) {
527 parser_prod__AOrangeExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_expr= on <self:Object(AOrangeExpr)>*/
530 /* method parser_prod#AOrangeExpr#n_expr2= for (self: AOrangeExpr, AExpr) */
531 void parser_prod__AOrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
532 val
* var_node
/* var node: AExpr */;
534 self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
= var_node
; /* _n_expr2 on <self:AOrangeExpr> */
536 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
537 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
543 /* method parser_prod#AOrangeExpr#n_expr2= for (self: Object, AExpr) */
544 void VIRTUAL_parser_prod__AOrangeExpr__n_expr2_61d(val
* self
, val
* p0
) {
545 parser_prod__AOrangeExpr__n_expr2_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_expr2= on <self:Object(AOrangeExpr)>*/
548 /* method parser_prod#AOrangeExpr#n_cbra= for (self: AOrangeExpr, TObra) */
549 void parser_prod__AOrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
550 val
* var_node
/* var node: TObra */;
552 self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
= var_node
; /* _n_cbra on <self:AOrangeExpr> */
554 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
555 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
561 /* method parser_prod#AOrangeExpr#n_cbra= for (self: Object, TObra) */
562 void VIRTUAL_parser_prod__AOrangeExpr__n_cbra_61d(val
* self
, val
* p0
) {
563 parser_prod__AOrangeExpr__n_cbra_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_cbra= on <self:Object(AOrangeExpr)>*/
566 /* method parser_prod#AOrangeExpr#n_annotations= for (self: AOrangeExpr, nullable AAnnotations) */
567 void parser_prod__AOrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
568 val
* var_node
/* var node: nullable AAnnotations */;
569 val
* var
/* : null */;
570 short int var1
/* : Bool */;
571 short int var2
/* : Bool */;
572 val
* var_other
/* var other: nullable Object */;
573 short int var4
/* : Bool */;
574 short int var5
/* : Bool */;
575 short int var6
/* : Bool */;
577 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AOrangeExpr> */
579 if (var_node
== NULL
) {
580 var1
= 0; /* is null */
582 var1
= 1; /* arg is null and recv is not */
585 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
588 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
600 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
601 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
609 /* method parser_prod#AOrangeExpr#n_annotations= for (self: Object, nullable AAnnotations) */
610 void VIRTUAL_parser_prod__AOrangeExpr__n_annotations_61d(val
* self
, val
* p0
) {
611 parser_prod__AOrangeExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AOrangeExpr#n_annotations= on <self:Object(AOrangeExpr)>*/
614 /* method parser_prod#AOrangeExpr#visit_all for (self: AOrangeExpr, Visitor) */
615 void parser_prod__AOrangeExpr__visit_all(val
* self
, val
* p0
) {
616 val
* var_v
/* var v: Visitor */;
617 val
* var
/* : TObra */;
618 val
* var1
/* : AExpr */;
619 val
* var2
/* : AExpr */;
620 val
* var3
/* : TObra */;
621 val
* var4
/* : nullable AAnnotations */;
623 var
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_obra
].val
; /* _n_obra on <self:AOrangeExpr> */
624 if (unlikely(var
== NULL
)) {
625 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
626 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5834);
630 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
632 var1
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr
].val
; /* _n_expr on <self:AOrangeExpr> */
633 if (unlikely(var1
== NULL
)) {
634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
635 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5835);
639 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
641 var2
= self
->attrs
[COLOR_parser_nodes__ARangeExpr___n_expr2
].val
; /* _n_expr2 on <self:AOrangeExpr> */
642 if (unlikely(var2
== NULL
)) {
643 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr2");
644 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5836);
648 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
650 var3
= self
->attrs
[COLOR_parser_nodes__AOrangeExpr___n_cbra
].val
; /* _n_cbra on <self:AOrangeExpr> */
651 if (unlikely(var3
== NULL
)) {
652 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
653 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5837);
657 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
659 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AOrangeExpr> */
661 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
665 /* method parser_prod#AOrangeExpr#visit_all for (self: Object, Visitor) */
666 void VIRTUAL_parser_prod__AOrangeExpr__visit_all(val
* self
, val
* p0
) {
667 parser_prod__AOrangeExpr__visit_all(self
, p0
); /* Direct call parser_prod#AOrangeExpr#visit_all on <self:Object(AOrangeExpr)>*/
670 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: AArrayExpr, nullable AExprs, nullable AAnnotations) */
671 void parser_prod__AArrayExpr__init_aarrayexpr(val
* self
, val
* p0
, val
* p1
) {
672 val
* var_n_exprs
/* var n_exprs: nullable AExprs */;
673 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
674 val
* var
/* : null */;
675 short int var2
/* : Bool */;
676 short int var3
/* : Bool */;
677 val
* var_other
/* var other: nullable Object */;
678 short int var5
/* : Bool */;
679 short int var6
/* : Bool */;
680 short int var7
/* : Bool */;
682 var_n_annotations
= p1
;
683 if (unlikely(var_n_exprs
== NULL
)) {
684 PRINT_ERROR("Runtime error: %s", "Cast failed");
685 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5847);
688 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
= var_n_exprs
; /* _n_exprs on <self:AArrayExpr> */
689 if (var_n_exprs
== NULL
) {
690 PRINT_ERROR("Runtime error: %s", "Receiver is null");
691 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5848);
694 { /* Inline parser_nodes#ANode#parent= (var_n_exprs,self) on <var_n_exprs:nullable AExprs> */
695 if (unlikely(var_n_exprs
== NULL
)) {
696 PRINT_ERROR("Runtime error: %s", "Receiver is null");
697 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
700 var_n_exprs
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_exprs:nullable AExprs> */
704 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AArrayExpr> */
706 if (var_n_annotations
== NULL
) {
707 var2
= 0; /* is null */
709 var2
= 1; /* arg is null and recv is not */
712 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
715 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)>*/;
727 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
728 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
736 /* method parser_prod#AArrayExpr#init_aarrayexpr for (self: Object, nullable AExprs, nullable AAnnotations) */
737 void VIRTUAL_parser_prod__AArrayExpr__init_aarrayexpr(val
* self
, val
* p0
, val
* p1
) {
738 parser_prod__AArrayExpr__init_aarrayexpr(self
, p0
, p1
); /* Direct call parser_prod#AArrayExpr#init_aarrayexpr on <self:Object(AArrayExpr)>*/
741 /* method parser_prod#AArrayExpr#replace_child for (self: AArrayExpr, ANode, nullable ANode) */
742 void parser_prod__AArrayExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
743 val
* var_old_child
/* var old_child: ANode */;
744 val
* var_new_child
/* var new_child: nullable ANode */;
745 val
* var
/* : AExprs */;
746 short int var1
/* : Bool */;
747 short int var2
/* : Bool */;
748 val
* var_other
/* var other: nullable Object */;
749 short int var4
/* : Bool */;
750 short int var6
/* : Bool */;
751 short int var7
/* : Bool */;
754 const char* var_class_name
;
755 val
* var8
/* : nullable AAnnotations */;
756 short int var9
/* : Bool */;
757 short int var10
/* : Bool */;
758 short int var12
/* : Bool */;
759 short int var14
/* : Bool */;
760 short int var15
/* : Bool */;
763 const char* var_class_name18
;
766 var
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
767 if (unlikely(var
== NULL
)) {
768 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
769 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5855);
773 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExprs> */
774 var_other
= var_old_child
;
776 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExprs> */
777 var6
= var
== var_other
;
790 /* <var_new_child:nullable ANode> isa AExprs */
791 cltype
= type_parser_nodes__AExprs
.color
;
792 idtype
= type_parser_nodes__AExprs
.id
;
793 if(var_new_child
== NULL
) {
796 if(cltype
>= var_new_child
->type
->table_size
) {
799 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
802 if (unlikely(!var7
)) {
803 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
804 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExprs", var_class_name
);
805 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5856);
809 parser_prod__AArrayExpr__n_exprs_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_exprs= on <self:AArrayExpr>*/
814 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
816 var9
= 0; /* <var_old_child:ANode> cannot be null */
818 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
819 var_other
= var_old_child
;
821 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
822 var14
= var8
== var_other
;
835 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
836 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
837 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
838 if(var_new_child
== NULL
) {
841 if(cltype16
>= var_new_child
->type
->table_size
) {
844 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
847 if (unlikely(!var15
)) {
848 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
849 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
850 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5860);
854 parser_prod__AArrayExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:AArrayExpr>*/
861 /* method parser_prod#AArrayExpr#replace_child for (self: Object, ANode, nullable ANode) */
862 void VIRTUAL_parser_prod__AArrayExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
863 parser_prod__AArrayExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AArrayExpr#replace_child on <self:Object(AArrayExpr)>*/
866 /* method parser_prod#AArrayExpr#n_exprs= for (self: AArrayExpr, AExprs) */
867 void parser_prod__AArrayExpr__n_exprs_61d(val
* self
, val
* p0
) {
868 val
* var_node
/* var node: AExprs */;
870 self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
= var_node
; /* _n_exprs on <self:AArrayExpr> */
872 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExprs> */
873 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExprs> */
879 /* method parser_prod#AArrayExpr#n_exprs= for (self: Object, AExprs) */
880 void VIRTUAL_parser_prod__AArrayExpr__n_exprs_61d(val
* self
, val
* p0
) {
881 parser_prod__AArrayExpr__n_exprs_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_exprs= on <self:Object(AArrayExpr)>*/
884 /* method parser_prod#AArrayExpr#n_annotations= for (self: AArrayExpr, nullable AAnnotations) */
885 void parser_prod__AArrayExpr__n_annotations_61d(val
* self
, val
* p0
) {
886 val
* var_node
/* var node: nullable AAnnotations */;
887 val
* var
/* : null */;
888 short int var1
/* : Bool */;
889 short int var2
/* : Bool */;
890 val
* var_other
/* var other: nullable Object */;
891 short int var4
/* : Bool */;
892 short int var5
/* : Bool */;
893 short int var6
/* : Bool */;
895 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AArrayExpr> */
897 if (var_node
== NULL
) {
898 var1
= 0; /* is null */
900 var1
= 1; /* arg is null and recv is not */
903 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
906 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
918 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
919 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
927 /* method parser_prod#AArrayExpr#n_annotations= for (self: Object, nullable AAnnotations) */
928 void VIRTUAL_parser_prod__AArrayExpr__n_annotations_61d(val
* self
, val
* p0
) {
929 parser_prod__AArrayExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AArrayExpr#n_annotations= on <self:Object(AArrayExpr)>*/
932 /* method parser_prod#AArrayExpr#visit_all for (self: AArrayExpr, Visitor) */
933 void parser_prod__AArrayExpr__visit_all(val
* self
, val
* p0
) {
934 val
* var_v
/* var v: Visitor */;
935 val
* var
/* : AExprs */;
936 val
* var1
/* : nullable AAnnotations */;
938 var
= self
->attrs
[COLOR_parser_nodes__AArrayExpr___n_exprs
].val
; /* _n_exprs on <self:AArrayExpr> */
939 if (unlikely(var
== NULL
)) {
940 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
941 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5879);
945 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
947 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AArrayExpr> */
949 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
953 /* method parser_prod#AArrayExpr#visit_all for (self: Object, Visitor) */
954 void VIRTUAL_parser_prod__AArrayExpr__visit_all(val
* self
, val
* p0
) {
955 parser_prod__AArrayExpr__visit_all(self
, p0
); /* Direct call parser_prod#AArrayExpr#visit_all on <self:Object(AArrayExpr)>*/
958 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: ASelfExpr, nullable TKwself, nullable AAnnotations) */
959 void parser_prod__ASelfExpr__init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
960 val
* var_n_kwself
/* var n_kwself: nullable TKwself */;
961 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
962 val
* var
/* : null */;
963 short int var2
/* : Bool */;
964 short int var3
/* : Bool */;
965 val
* var_other
/* var other: nullable Object */;
966 short int var5
/* : Bool */;
967 short int var6
/* : Bool */;
968 short int var7
/* : Bool */;
970 var_n_annotations
= p1
;
971 if (unlikely(var_n_kwself
== NULL
)) {
972 PRINT_ERROR("Runtime error: %s", "Cast failed");
973 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5889);
976 self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
= var_n_kwself
; /* _n_kwself on <self:ASelfExpr> */
977 if (var_n_kwself
== NULL
) {
978 PRINT_ERROR("Runtime error: %s", "Receiver is null");
979 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5890);
982 { /* Inline parser_nodes#ANode#parent= (var_n_kwself,self) on <var_n_kwself:nullable TKwself> */
983 if (unlikely(var_n_kwself
== NULL
)) {
984 PRINT_ERROR("Runtime error: %s", "Receiver is null");
985 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
988 var_n_kwself
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwself:nullable TKwself> */
992 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASelfExpr> */
994 if (var_n_annotations
== NULL
) {
995 var2
= 0; /* is null */
997 var2
= 1; /* arg is null and recv is not */
1000 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1003 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)>*/;
1015 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1016 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1024 /* method parser_prod#ASelfExpr#init_aselfexpr for (self: Object, nullable TKwself, nullable AAnnotations) */
1025 void VIRTUAL_parser_prod__ASelfExpr__init_aselfexpr(val
* self
, val
* p0
, val
* p1
) {
1026 parser_prod__ASelfExpr__init_aselfexpr(self
, p0
, p1
); /* Direct call parser_prod#ASelfExpr#init_aselfexpr on <self:Object(ASelfExpr)>*/
1029 /* method parser_prod#ASelfExpr#replace_child for (self: ASelfExpr, ANode, nullable ANode) */
1030 void parser_prod__ASelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1031 val
* var_old_child
/* var old_child: ANode */;
1032 val
* var_new_child
/* var new_child: nullable ANode */;
1033 val
* var
/* : nullable TKwself */;
1034 short int var1
/* : Bool */;
1035 short int var2
/* : Bool */;
1036 val
* var_other
/* var other: nullable Object */;
1037 short int var4
/* : Bool */;
1038 short int var6
/* : Bool */;
1039 short int var7
/* : Bool */;
1042 const char* var_class_name
;
1043 val
* var8
/* : nullable AAnnotations */;
1044 short int var9
/* : Bool */;
1045 short int var10
/* : Bool */;
1046 short int var12
/* : Bool */;
1047 short int var14
/* : Bool */;
1048 short int var15
/* : Bool */;
1051 const char* var_class_name18
;
1054 var
= self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
1056 var1
= 0; /* <var_old_child:ANode> cannot be null */
1058 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwself> */
1059 var_other
= var_old_child
;
1061 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwself(TKwself)> */
1062 var6
= var
== var_other
;
1075 /* <var_new_child:nullable ANode> isa TKwself */
1076 cltype
= type_parser_nodes__TKwself
.color
;
1077 idtype
= type_parser_nodes__TKwself
.id
;
1078 if(var_new_child
== NULL
) {
1081 if(cltype
>= var_new_child
->type
->table_size
) {
1084 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1087 if (unlikely(!var7
)) {
1088 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1089 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwself", var_class_name
);
1090 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5898);
1094 parser_prod__ASelfExpr__n_kwself_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:ASelfExpr>*/
1099 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
1101 var9
= 0; /* <var_old_child:ANode> cannot be null */
1103 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
1104 var_other
= var_old_child
;
1106 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
1107 var14
= var8
== var_other
;
1110 RET_LABEL13
:(void)0;
1115 RET_LABEL11
:(void)0;
1120 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1121 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
1122 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
1123 if(var_new_child
== NULL
) {
1126 if(cltype16
>= var_new_child
->type
->table_size
) {
1129 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1132 if (unlikely(!var15
)) {
1133 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1134 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
1135 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5902);
1139 parser_prod__ASelfExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:ASelfExpr>*/
1146 /* method parser_prod#ASelfExpr#replace_child for (self: Object, ANode, nullable ANode) */
1147 void VIRTUAL_parser_prod__ASelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1148 parser_prod__ASelfExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASelfExpr#replace_child on <self:Object(ASelfExpr)>*/
1151 /* method parser_prod#ASelfExpr#n_kwself= for (self: ASelfExpr, nullable TKwself) */
1152 void parser_prod__ASelfExpr__n_kwself_61d(val
* self
, val
* p0
) {
1153 val
* var_node
/* var node: nullable TKwself */;
1155 self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
= var_node
; /* _n_kwself on <self:ASelfExpr> */
1156 if (var_node
== NULL
) {
1157 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1158 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5910);
1161 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwself> */
1162 if (unlikely(var_node
== NULL
)) {
1163 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1164 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1167 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwself> */
1173 /* method parser_prod#ASelfExpr#n_kwself= for (self: Object, nullable TKwself) */
1174 void VIRTUAL_parser_prod__ASelfExpr__n_kwself_61d(val
* self
, val
* p0
) {
1175 parser_prod__ASelfExpr__n_kwself_61d(self
, p0
); /* Direct call parser_prod#ASelfExpr#n_kwself= on <self:Object(ASelfExpr)>*/
1178 /* method parser_prod#ASelfExpr#n_annotations= for (self: ASelfExpr, nullable AAnnotations) */
1179 void parser_prod__ASelfExpr__n_annotations_61d(val
* self
, val
* p0
) {
1180 val
* var_node
/* var node: nullable AAnnotations */;
1181 val
* var
/* : null */;
1182 short int var1
/* : Bool */;
1183 short int var2
/* : Bool */;
1184 val
* var_other
/* var other: nullable Object */;
1185 short int var4
/* : Bool */;
1186 short int var5
/* : Bool */;
1187 short int var6
/* : Bool */;
1189 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASelfExpr> */
1191 if (var_node
== NULL
) {
1192 var1
= 0; /* is null */
1194 var1
= 1; /* arg is null and recv is not */
1197 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1200 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
1212 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1213 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1221 /* method parser_prod#ASelfExpr#n_annotations= for (self: Object, nullable AAnnotations) */
1222 void VIRTUAL_parser_prod__ASelfExpr__n_annotations_61d(val
* self
, val
* p0
) {
1223 parser_prod__ASelfExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ASelfExpr#n_annotations= on <self:Object(ASelfExpr)>*/
1226 /* method parser_prod#ASelfExpr#visit_all for (self: ASelfExpr, Visitor) */
1227 void parser_prod__ASelfExpr__visit_all(val
* self
, val
* p0
) {
1228 val
* var_v
/* var v: Visitor */;
1229 val
* var
/* : nullable TKwself */;
1230 val
* var1
/* : nullable AAnnotations */;
1232 var
= self
->attrs
[COLOR_parser_nodes__ASelfExpr___n_kwself
].val
; /* _n_kwself on <self:ASelfExpr> */
1234 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1236 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASelfExpr> */
1238 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1242 /* method parser_prod#ASelfExpr#visit_all for (self: Object, Visitor) */
1243 void VIRTUAL_parser_prod__ASelfExpr__visit_all(val
* self
, val
* p0
) {
1244 parser_prod__ASelfExpr__visit_all(self
, p0
); /* Direct call parser_prod#ASelfExpr#visit_all on <self:Object(ASelfExpr)>*/
1247 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: AImplicitSelfExpr) */
1248 void parser_prod__AImplicitSelfExpr__init_aimplicitselfexpr(val
* self
) {
1251 /* method parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr for (self: Object) */
1252 void VIRTUAL_parser_prod__AImplicitSelfExpr__init_aimplicitselfexpr(val
* self
) {
1253 { /* Inline parser_prod#AImplicitSelfExpr#init_aimplicitselfexpr (self) on <self:Object(AImplicitSelfExpr)> */
1258 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: AImplicitSelfExpr, ANode, nullable ANode) */
1259 void parser_prod__AImplicitSelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1260 val
* var_old_child
/* var old_child: ANode */;
1261 val
* var_new_child
/* var new_child: nullable ANode */;
1266 /* method parser_prod#AImplicitSelfExpr#replace_child for (self: Object, ANode, nullable ANode) */
1267 void VIRTUAL_parser_prod__AImplicitSelfExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1268 val
* var_old_child
/* var old_child: ANode */;
1269 val
* var_new_child
/* var new_child: nullable ANode */;
1270 { /* Inline parser_prod#AImplicitSelfExpr#replace_child (self,p0,p1) on <self:Object(AImplicitSelfExpr)> */
1277 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: AImplicitSelfExpr, Visitor) */
1278 void parser_prod__AImplicitSelfExpr__visit_all(val
* self
, val
* p0
) {
1279 val
* var_v
/* var v: Visitor */;
1283 /* method parser_prod#AImplicitSelfExpr#visit_all for (self: Object, Visitor) */
1284 void VIRTUAL_parser_prod__AImplicitSelfExpr__visit_all(val
* self
, val
* p0
) {
1285 val
* var_v
/* var v: Visitor */;
1286 { /* Inline parser_prod#AImplicitSelfExpr#visit_all (self,p0) on <self:Object(AImplicitSelfExpr)> */
1292 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: ATrueExpr, nullable TKwtrue, nullable AAnnotations) */
1293 void parser_prod__ATrueExpr__init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
1294 val
* var_n_kwtrue
/* var n_kwtrue: nullable TKwtrue */;
1295 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1296 val
* var
/* : null */;
1297 short int var2
/* : Bool */;
1298 short int var3
/* : Bool */;
1299 val
* var_other
/* var other: nullable Object */;
1300 short int var5
/* : Bool */;
1301 short int var6
/* : Bool */;
1302 short int var7
/* : Bool */;
1304 var_n_annotations
= p1
;
1305 if (unlikely(var_n_kwtrue
== NULL
)) {
1306 PRINT_ERROR("Runtime error: %s", "Cast failed");
1307 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5946);
1310 self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
= var_n_kwtrue
; /* _n_kwtrue on <self:ATrueExpr> */
1311 if (var_n_kwtrue
== NULL
) {
1312 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1313 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5947);
1316 { /* Inline parser_nodes#ANode#parent= (var_n_kwtrue,self) on <var_n_kwtrue:nullable TKwtrue> */
1317 if (unlikely(var_n_kwtrue
== NULL
)) {
1318 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1319 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1322 var_n_kwtrue
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtrue:nullable TKwtrue> */
1326 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATrueExpr> */
1328 if (var_n_annotations
== NULL
) {
1329 var2
= 0; /* is null */
1331 var2
= 1; /* arg is null and recv is not */
1334 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1337 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)>*/;
1349 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1350 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1358 /* method parser_prod#ATrueExpr#init_atrueexpr for (self: Object, nullable TKwtrue, nullable AAnnotations) */
1359 void VIRTUAL_parser_prod__ATrueExpr__init_atrueexpr(val
* self
, val
* p0
, val
* p1
) {
1360 parser_prod__ATrueExpr__init_atrueexpr(self
, p0
, p1
); /* Direct call parser_prod#ATrueExpr#init_atrueexpr on <self:Object(ATrueExpr)>*/
1363 /* method parser_prod#ATrueExpr#replace_child for (self: ATrueExpr, ANode, nullable ANode) */
1364 void parser_prod__ATrueExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1365 val
* var_old_child
/* var old_child: ANode */;
1366 val
* var_new_child
/* var new_child: nullable ANode */;
1367 val
* var
/* : TKwtrue */;
1368 short int var1
/* : Bool */;
1369 short int var2
/* : Bool */;
1370 val
* var_other
/* var other: nullable Object */;
1371 short int var4
/* : Bool */;
1372 short int var6
/* : Bool */;
1373 short int var7
/* : Bool */;
1376 const char* var_class_name
;
1377 val
* var8
/* : nullable AAnnotations */;
1378 short int var9
/* : Bool */;
1379 short int var10
/* : Bool */;
1380 short int var12
/* : Bool */;
1381 short int var14
/* : Bool */;
1382 short int var15
/* : Bool */;
1385 const char* var_class_name18
;
1388 var
= self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
1389 if (unlikely(var
== NULL
)) {
1390 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
1391 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5954);
1395 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwtrue> */
1396 var_other
= var_old_child
;
1398 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwtrue> */
1399 var6
= var
== var_other
;
1412 /* <var_new_child:nullable ANode> isa TKwtrue */
1413 cltype
= type_parser_nodes__TKwtrue
.color
;
1414 idtype
= type_parser_nodes__TKwtrue
.id
;
1415 if(var_new_child
== NULL
) {
1418 if(cltype
>= var_new_child
->type
->table_size
) {
1421 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1424 if (unlikely(!var7
)) {
1425 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1426 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtrue", var_class_name
);
1427 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5955);
1431 parser_prod__ATrueExpr__n_kwtrue_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_kwtrue= on <self:ATrueExpr>*/
1436 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
1438 var9
= 0; /* <var_old_child:ANode> cannot be null */
1440 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
1441 var_other
= var_old_child
;
1443 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
1444 var14
= var8
== var_other
;
1447 RET_LABEL13
:(void)0;
1452 RET_LABEL11
:(void)0;
1457 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1458 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
1459 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
1460 if(var_new_child
== NULL
) {
1463 if(cltype16
>= var_new_child
->type
->table_size
) {
1466 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1469 if (unlikely(!var15
)) {
1470 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1471 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
1472 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5959);
1476 parser_prod__ATrueExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATrueExpr#n_annotations= on <self:ATrueExpr>*/
1483 /* method parser_prod#ATrueExpr#replace_child for (self: Object, ANode, nullable ANode) */
1484 void VIRTUAL_parser_prod__ATrueExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1485 parser_prod__ATrueExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATrueExpr#replace_child on <self:Object(ATrueExpr)>*/
1488 /* method parser_prod#ATrueExpr#n_kwtrue= for (self: ATrueExpr, TKwtrue) */
1489 void parser_prod__ATrueExpr__n_kwtrue_61d(val
* self
, val
* p0
) {
1490 val
* var_node
/* var node: TKwtrue */;
1492 self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
= var_node
; /* _n_kwtrue on <self:ATrueExpr> */
1494 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtrue> */
1495 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtrue> */
1501 /* method parser_prod#ATrueExpr#n_kwtrue= for (self: Object, TKwtrue) */
1502 void VIRTUAL_parser_prod__ATrueExpr__n_kwtrue_61d(val
* self
, val
* p0
) {
1503 parser_prod__ATrueExpr__n_kwtrue_61d(self
, p0
); /* Direct call parser_prod#ATrueExpr#n_kwtrue= on <self:Object(ATrueExpr)>*/
1506 /* method parser_prod#ATrueExpr#n_annotations= for (self: ATrueExpr, nullable AAnnotations) */
1507 void parser_prod__ATrueExpr__n_annotations_61d(val
* self
, val
* p0
) {
1508 val
* var_node
/* var node: nullable AAnnotations */;
1509 val
* var
/* : null */;
1510 short int var1
/* : Bool */;
1511 short int var2
/* : Bool */;
1512 val
* var_other
/* var other: nullable Object */;
1513 short int var4
/* : Bool */;
1514 short int var5
/* : Bool */;
1515 short int var6
/* : Bool */;
1517 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATrueExpr> */
1519 if (var_node
== NULL
) {
1520 var1
= 0; /* is null */
1522 var1
= 1; /* arg is null and recv is not */
1525 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1528 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
1540 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1541 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1549 /* method parser_prod#ATrueExpr#n_annotations= for (self: Object, nullable AAnnotations) */
1550 void VIRTUAL_parser_prod__ATrueExpr__n_annotations_61d(val
* self
, val
* p0
) {
1551 parser_prod__ATrueExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ATrueExpr#n_annotations= on <self:Object(ATrueExpr)>*/
1554 /* method parser_prod#ATrueExpr#visit_all for (self: ATrueExpr, Visitor) */
1555 void parser_prod__ATrueExpr__visit_all(val
* self
, val
* p0
) {
1556 val
* var_v
/* var v: Visitor */;
1557 val
* var
/* : TKwtrue */;
1558 val
* var1
/* : nullable AAnnotations */;
1560 var
= self
->attrs
[COLOR_parser_nodes__ATrueExpr___n_kwtrue
].val
; /* _n_kwtrue on <self:ATrueExpr> */
1561 if (unlikely(var
== NULL
)) {
1562 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtrue");
1563 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5978);
1567 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1569 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATrueExpr> */
1571 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1575 /* method parser_prod#ATrueExpr#visit_all for (self: Object, Visitor) */
1576 void VIRTUAL_parser_prod__ATrueExpr__visit_all(val
* self
, val
* p0
) {
1577 parser_prod__ATrueExpr__visit_all(self
, p0
); /* Direct call parser_prod#ATrueExpr#visit_all on <self:Object(ATrueExpr)>*/
1580 /* method parser_prod#AFalseExpr#init_afalseexpr for (self: AFalseExpr, nullable TKwfalse, nullable AAnnotations) */
1581 void parser_prod__AFalseExpr__init_afalseexpr(val
* self
, val
* p0
, val
* p1
) {
1582 val
* var_n_kwfalse
/* var n_kwfalse: nullable TKwfalse */;
1583 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1584 val
* var
/* : null */;
1585 short int var2
/* : Bool */;
1586 short int var3
/* : Bool */;
1587 val
* var_other
/* var other: nullable Object */;
1588 short int var5
/* : Bool */;
1589 short int var6
/* : Bool */;
1590 short int var7
/* : Bool */;
1592 var_n_annotations
= p1
;
1593 if (unlikely(var_n_kwfalse
== NULL
)) {
1594 PRINT_ERROR("Runtime error: %s", "Cast failed");
1595 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5988);
1598 self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
= var_n_kwfalse
; /* _n_kwfalse on <self:AFalseExpr> */
1599 if (var_n_kwfalse
== NULL
) {
1600 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1601 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5989);
1604 { /* Inline parser_nodes#ANode#parent= (var_n_kwfalse,self) on <var_n_kwfalse:nullable TKwfalse> */
1605 if (unlikely(var_n_kwfalse
== NULL
)) {
1606 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1607 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1610 var_n_kwfalse
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwfalse:nullable TKwfalse> */
1614 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFalseExpr> */
1616 if (var_n_annotations
== NULL
) {
1617 var2
= 0; /* is null */
1619 var2
= 1; /* arg is null and recv is not */
1622 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1625 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)>*/;
1637 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1638 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1646 /* method parser_prod#AFalseExpr#init_afalseexpr for (self: Object, nullable TKwfalse, nullable AAnnotations) */
1647 void VIRTUAL_parser_prod__AFalseExpr__init_afalseexpr(val
* self
, val
* p0
, val
* p1
) {
1648 parser_prod__AFalseExpr__init_afalseexpr(self
, p0
, p1
); /* Direct call parser_prod#AFalseExpr#init_afalseexpr on <self:Object(AFalseExpr)>*/
1651 /* method parser_prod#AFalseExpr#replace_child for (self: AFalseExpr, ANode, nullable ANode) */
1652 void parser_prod__AFalseExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1653 val
* var_old_child
/* var old_child: ANode */;
1654 val
* var_new_child
/* var new_child: nullable ANode */;
1655 val
* var
/* : TKwfalse */;
1656 short int var1
/* : Bool */;
1657 short int var2
/* : Bool */;
1658 val
* var_other
/* var other: nullable Object */;
1659 short int var4
/* : Bool */;
1660 short int var6
/* : Bool */;
1661 short int var7
/* : Bool */;
1664 const char* var_class_name
;
1665 val
* var8
/* : nullable AAnnotations */;
1666 short int var9
/* : Bool */;
1667 short int var10
/* : Bool */;
1668 short int var12
/* : Bool */;
1669 short int var14
/* : Bool */;
1670 short int var15
/* : Bool */;
1673 const char* var_class_name18
;
1676 var
= self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
1677 if (unlikely(var
== NULL
)) {
1678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
1679 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5996);
1683 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwfalse> */
1684 var_other
= var_old_child
;
1686 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwfalse> */
1687 var6
= var
== var_other
;
1700 /* <var_new_child:nullable ANode> isa TKwfalse */
1701 cltype
= type_parser_nodes__TKwfalse
.color
;
1702 idtype
= type_parser_nodes__TKwfalse
.id
;
1703 if(var_new_child
== NULL
) {
1706 if(cltype
>= var_new_child
->type
->table_size
) {
1709 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1712 if (unlikely(!var7
)) {
1713 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1714 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwfalse", var_class_name
);
1715 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 5997);
1719 parser_prod__AFalseExpr__n_kwfalse_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_kwfalse= on <self:AFalseExpr>*/
1724 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
1726 var9
= 0; /* <var_old_child:ANode> cannot be null */
1728 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
1729 var_other
= var_old_child
;
1731 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
1732 var14
= var8
== var_other
;
1735 RET_LABEL13
:(void)0;
1740 RET_LABEL11
:(void)0;
1745 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1746 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
1747 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
1748 if(var_new_child
== NULL
) {
1751 if(cltype16
>= var_new_child
->type
->table_size
) {
1754 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1757 if (unlikely(!var15
)) {
1758 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1759 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
1760 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6001);
1764 parser_prod__AFalseExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFalseExpr#n_annotations= on <self:AFalseExpr>*/
1771 /* method parser_prod#AFalseExpr#replace_child for (self: Object, ANode, nullable ANode) */
1772 void VIRTUAL_parser_prod__AFalseExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1773 parser_prod__AFalseExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFalseExpr#replace_child on <self:Object(AFalseExpr)>*/
1776 /* method parser_prod#AFalseExpr#n_kwfalse= for (self: AFalseExpr, TKwfalse) */
1777 void parser_prod__AFalseExpr__n_kwfalse_61d(val
* self
, val
* p0
) {
1778 val
* var_node
/* var node: TKwfalse */;
1780 self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
= var_node
; /* _n_kwfalse on <self:AFalseExpr> */
1782 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwfalse> */
1783 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwfalse> */
1789 /* method parser_prod#AFalseExpr#n_kwfalse= for (self: Object, TKwfalse) */
1790 void VIRTUAL_parser_prod__AFalseExpr__n_kwfalse_61d(val
* self
, val
* p0
) {
1791 parser_prod__AFalseExpr__n_kwfalse_61d(self
, p0
); /* Direct call parser_prod#AFalseExpr#n_kwfalse= on <self:Object(AFalseExpr)>*/
1794 /* method parser_prod#AFalseExpr#n_annotations= for (self: AFalseExpr, nullable AAnnotations) */
1795 void parser_prod__AFalseExpr__n_annotations_61d(val
* self
, val
* p0
) {
1796 val
* var_node
/* var node: nullable AAnnotations */;
1797 val
* var
/* : null */;
1798 short int var1
/* : Bool */;
1799 short int var2
/* : Bool */;
1800 val
* var_other
/* var other: nullable Object */;
1801 short int var4
/* : Bool */;
1802 short int var5
/* : Bool */;
1803 short int var6
/* : Bool */;
1805 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFalseExpr> */
1807 if (var_node
== NULL
) {
1808 var1
= 0; /* is null */
1810 var1
= 1; /* arg is null and recv is not */
1813 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1816 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
1828 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1829 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1837 /* method parser_prod#AFalseExpr#n_annotations= for (self: Object, nullable AAnnotations) */
1838 void VIRTUAL_parser_prod__AFalseExpr__n_annotations_61d(val
* self
, val
* p0
) {
1839 parser_prod__AFalseExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AFalseExpr#n_annotations= on <self:Object(AFalseExpr)>*/
1842 /* method parser_prod#AFalseExpr#visit_all for (self: AFalseExpr, Visitor) */
1843 void parser_prod__AFalseExpr__visit_all(val
* self
, val
* p0
) {
1844 val
* var_v
/* var v: Visitor */;
1845 val
* var
/* : TKwfalse */;
1846 val
* var1
/* : nullable AAnnotations */;
1848 var
= self
->attrs
[COLOR_parser_nodes__AFalseExpr___n_kwfalse
].val
; /* _n_kwfalse on <self:AFalseExpr> */
1849 if (unlikely(var
== NULL
)) {
1850 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwfalse");
1851 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6020);
1855 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1857 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFalseExpr> */
1859 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1863 /* method parser_prod#AFalseExpr#visit_all for (self: Object, Visitor) */
1864 void VIRTUAL_parser_prod__AFalseExpr__visit_all(val
* self
, val
* p0
) {
1865 parser_prod__AFalseExpr__visit_all(self
, p0
); /* Direct call parser_prod#AFalseExpr#visit_all on <self:Object(AFalseExpr)>*/
1868 /* method parser_prod#ANullExpr#init_anullexpr for (self: ANullExpr, nullable TKwnull, nullable AAnnotations) */
1869 void parser_prod__ANullExpr__init_anullexpr(val
* self
, val
* p0
, val
* p1
) {
1870 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
1871 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1872 val
* var
/* : null */;
1873 short int var2
/* : Bool */;
1874 short int var3
/* : Bool */;
1875 val
* var_other
/* var other: nullable Object */;
1876 short int var5
/* : Bool */;
1877 short int var6
/* : Bool */;
1878 short int var7
/* : Bool */;
1880 var_n_annotations
= p1
;
1881 if (unlikely(var_n_kwnull
== NULL
)) {
1882 PRINT_ERROR("Runtime error: %s", "Cast failed");
1883 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6030);
1886 self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:ANullExpr> */
1887 if (var_n_kwnull
== NULL
) {
1888 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1889 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6031);
1892 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
1893 if (unlikely(var_n_kwnull
== NULL
)) {
1894 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1895 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1898 var_n_kwnull
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
1902 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ANullExpr> */
1904 if (var_n_annotations
== NULL
) {
1905 var2
= 0; /* is null */
1907 var2
= 1; /* arg is null and recv is not */
1910 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1913 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)>*/;
1925 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1926 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1934 /* method parser_prod#ANullExpr#init_anullexpr for (self: Object, nullable TKwnull, nullable AAnnotations) */
1935 void VIRTUAL_parser_prod__ANullExpr__init_anullexpr(val
* self
, val
* p0
, val
* p1
) {
1936 parser_prod__ANullExpr__init_anullexpr(self
, p0
, p1
); /* Direct call parser_prod#ANullExpr#init_anullexpr on <self:Object(ANullExpr)>*/
1939 /* method parser_prod#ANullExpr#replace_child for (self: ANullExpr, ANode, nullable ANode) */
1940 void parser_prod__ANullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1941 val
* var_old_child
/* var old_child: ANode */;
1942 val
* var_new_child
/* var new_child: nullable ANode */;
1943 val
* var
/* : TKwnull */;
1944 short int var1
/* : Bool */;
1945 short int var2
/* : Bool */;
1946 val
* var_other
/* var other: nullable Object */;
1947 short int var4
/* : Bool */;
1948 short int var6
/* : Bool */;
1949 short int var7
/* : Bool */;
1952 const char* var_class_name
;
1953 val
* var8
/* : nullable AAnnotations */;
1954 short int var9
/* : Bool */;
1955 short int var10
/* : Bool */;
1956 short int var12
/* : Bool */;
1957 short int var14
/* : Bool */;
1958 short int var15
/* : Bool */;
1961 const char* var_class_name18
;
1964 var
= self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
1965 if (unlikely(var
== NULL
)) {
1966 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
1967 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6038);
1971 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwnull> */
1972 var_other
= var_old_child
;
1974 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwnull> */
1975 var6
= var
== var_other
;
1988 /* <var_new_child:nullable ANode> isa TKwnull */
1989 cltype
= type_parser_nodes__TKwnull
.color
;
1990 idtype
= type_parser_nodes__TKwnull
.id
;
1991 if(var_new_child
== NULL
) {
1994 if(cltype
>= var_new_child
->type
->table_size
) {
1997 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2000 if (unlikely(!var7
)) {
2001 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2002 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name
);
2003 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6039);
2007 parser_prod__ANullExpr__n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_kwnull= on <self:ANullExpr>*/
2012 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
2014 var9
= 0; /* <var_old_child:ANode> cannot be null */
2016 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
2017 var_other
= var_old_child
;
2019 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
2020 var14
= var8
== var_other
;
2023 RET_LABEL13
:(void)0;
2028 RET_LABEL11
:(void)0;
2033 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2034 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
2035 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
2036 if(var_new_child
== NULL
) {
2039 if(cltype16
>= var_new_child
->type
->table_size
) {
2042 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2045 if (unlikely(!var15
)) {
2046 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2047 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
2048 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6043);
2052 parser_prod__ANullExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ANullExpr#n_annotations= on <self:ANullExpr>*/
2059 /* method parser_prod#ANullExpr#replace_child for (self: Object, ANode, nullable ANode) */
2060 void VIRTUAL_parser_prod__ANullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2061 parser_prod__ANullExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ANullExpr#replace_child on <self:Object(ANullExpr)>*/
2064 /* method parser_prod#ANullExpr#n_kwnull= for (self: ANullExpr, TKwnull) */
2065 void parser_prod__ANullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
2066 val
* var_node
/* var node: TKwnull */;
2068 self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:ANullExpr> */
2070 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
2071 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
2077 /* method parser_prod#ANullExpr#n_kwnull= for (self: Object, TKwnull) */
2078 void VIRTUAL_parser_prod__ANullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
2079 parser_prod__ANullExpr__n_kwnull_61d(self
, p0
); /* Direct call parser_prod#ANullExpr#n_kwnull= on <self:Object(ANullExpr)>*/
2082 /* method parser_prod#ANullExpr#n_annotations= for (self: ANullExpr, nullable AAnnotations) */
2083 void parser_prod__ANullExpr__n_annotations_61d(val
* self
, val
* p0
) {
2084 val
* var_node
/* var node: nullable AAnnotations */;
2085 val
* var
/* : null */;
2086 short int var1
/* : Bool */;
2087 short int var2
/* : Bool */;
2088 val
* var_other
/* var other: nullable Object */;
2089 short int var4
/* : Bool */;
2090 short int var5
/* : Bool */;
2091 short int var6
/* : Bool */;
2093 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ANullExpr> */
2095 if (var_node
== NULL
) {
2096 var1
= 0; /* is null */
2098 var1
= 1; /* arg is null and recv is not */
2101 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
2104 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
2116 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2117 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2125 /* method parser_prod#ANullExpr#n_annotations= for (self: Object, nullable AAnnotations) */
2126 void VIRTUAL_parser_prod__ANullExpr__n_annotations_61d(val
* self
, val
* p0
) {
2127 parser_prod__ANullExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ANullExpr#n_annotations= on <self:Object(ANullExpr)>*/
2130 /* method parser_prod#ANullExpr#visit_all for (self: ANullExpr, Visitor) */
2131 void parser_prod__ANullExpr__visit_all(val
* self
, val
* p0
) {
2132 val
* var_v
/* var v: Visitor */;
2133 val
* var
/* : TKwnull */;
2134 val
* var1
/* : nullable AAnnotations */;
2136 var
= self
->attrs
[COLOR_parser_nodes__ANullExpr___n_kwnull
].val
; /* _n_kwnull on <self:ANullExpr> */
2137 if (unlikely(var
== NULL
)) {
2138 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
2139 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6062);
2143 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2145 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ANullExpr> */
2147 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2151 /* method parser_prod#ANullExpr#visit_all for (self: Object, Visitor) */
2152 void VIRTUAL_parser_prod__ANullExpr__visit_all(val
* self
, val
* p0
) {
2153 parser_prod__ANullExpr__visit_all(self
, p0
); /* Direct call parser_prod#ANullExpr#visit_all on <self:Object(ANullExpr)>*/
2156 /* method parser_prod#ADecIntExpr#init_adecintexpr for (self: ADecIntExpr, nullable TNumber, nullable AAnnotations) */
2157 void parser_prod__ADecIntExpr__init_adecintexpr(val
* self
, val
* p0
, val
* p1
) {
2158 val
* var_n_number
/* var n_number: nullable TNumber */;
2159 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2160 val
* var
/* : null */;
2161 short int var2
/* : Bool */;
2162 short int var3
/* : Bool */;
2163 val
* var_other
/* var other: nullable Object */;
2164 short int var5
/* : Bool */;
2165 short int var6
/* : Bool */;
2166 short int var7
/* : Bool */;
2168 var_n_annotations
= p1
;
2169 if (unlikely(var_n_number
== NULL
)) {
2170 PRINT_ERROR("Runtime error: %s", "Cast failed");
2171 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6072);
2174 self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
= var_n_number
; /* _n_number on <self:ADecIntExpr> */
2175 if (var_n_number
== NULL
) {
2176 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2177 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6073);
2180 { /* Inline parser_nodes#ANode#parent= (var_n_number,self) on <var_n_number:nullable TNumber> */
2181 if (unlikely(var_n_number
== NULL
)) {
2182 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2183 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
2186 var_n_number
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_number:nullable TNumber> */
2190 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADecIntExpr> */
2192 if (var_n_annotations
== NULL
) {
2193 var2
= 0; /* is null */
2195 var2
= 1; /* arg is null and recv is not */
2198 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
2201 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)>*/;
2213 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2214 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2222 /* method parser_prod#ADecIntExpr#init_adecintexpr for (self: Object, nullable TNumber, nullable AAnnotations) */
2223 void VIRTUAL_parser_prod__ADecIntExpr__init_adecintexpr(val
* self
, val
* p0
, val
* p1
) {
2224 parser_prod__ADecIntExpr__init_adecintexpr(self
, p0
, p1
); /* Direct call parser_prod#ADecIntExpr#init_adecintexpr on <self:Object(ADecIntExpr)>*/
2227 /* method parser_prod#ADecIntExpr#replace_child for (self: ADecIntExpr, ANode, nullable ANode) */
2228 void parser_prod__ADecIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2229 val
* var_old_child
/* var old_child: ANode */;
2230 val
* var_new_child
/* var new_child: nullable ANode */;
2231 val
* var
/* : TNumber */;
2232 short int var1
/* : Bool */;
2233 short int var2
/* : Bool */;
2234 val
* var_other
/* var other: nullable Object */;
2235 short int var4
/* : Bool */;
2236 short int var6
/* : Bool */;
2237 short int var7
/* : Bool */;
2240 const char* var_class_name
;
2241 val
* var8
/* : nullable AAnnotations */;
2242 short int var9
/* : Bool */;
2243 short int var10
/* : Bool */;
2244 short int var12
/* : Bool */;
2245 short int var14
/* : Bool */;
2246 short int var15
/* : Bool */;
2249 const char* var_class_name18
;
2252 var
= self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
2253 if (unlikely(var
== NULL
)) {
2254 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
2255 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6080);
2259 { /* Inline kernel#Object#== (var,var_old_child) on <var:TNumber> */
2260 var_other
= var_old_child
;
2262 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TNumber> */
2263 var6
= var
== var_other
;
2276 /* <var_new_child:nullable ANode> isa TNumber */
2277 cltype
= type_parser_nodes__TNumber
.color
;
2278 idtype
= type_parser_nodes__TNumber
.id
;
2279 if(var_new_child
== NULL
) {
2282 if(cltype
>= var_new_child
->type
->table_size
) {
2285 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2288 if (unlikely(!var7
)) {
2289 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2290 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNumber", var_class_name
);
2291 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6081);
2295 parser_prod__ADecIntExpr__n_number_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_number= on <self:ADecIntExpr>*/
2300 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
2302 var9
= 0; /* <var_old_child:ANode> cannot be null */
2304 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
2305 var_other
= var_old_child
;
2307 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
2308 var14
= var8
== var_other
;
2311 RET_LABEL13
:(void)0;
2316 RET_LABEL11
:(void)0;
2321 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2322 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
2323 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
2324 if(var_new_child
== NULL
) {
2327 if(cltype16
>= var_new_child
->type
->table_size
) {
2330 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2333 if (unlikely(!var15
)) {
2334 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2335 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
2336 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6085);
2340 parser_prod__ADecIntExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ADecIntExpr#n_annotations= on <self:ADecIntExpr>*/
2347 /* method parser_prod#ADecIntExpr#replace_child for (self: Object, ANode, nullable ANode) */
2348 void VIRTUAL_parser_prod__ADecIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2349 parser_prod__ADecIntExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADecIntExpr#replace_child on <self:Object(ADecIntExpr)>*/
2352 /* method parser_prod#ADecIntExpr#n_number= for (self: ADecIntExpr, TNumber) */
2353 void parser_prod__ADecIntExpr__n_number_61d(val
* self
, val
* p0
) {
2354 val
* var_node
/* var node: TNumber */;
2356 self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
= var_node
; /* _n_number on <self:ADecIntExpr> */
2358 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TNumber> */
2359 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TNumber> */
2365 /* method parser_prod#ADecIntExpr#n_number= for (self: Object, TNumber) */
2366 void VIRTUAL_parser_prod__ADecIntExpr__n_number_61d(val
* self
, val
* p0
) {
2367 parser_prod__ADecIntExpr__n_number_61d(self
, p0
); /* Direct call parser_prod#ADecIntExpr#n_number= on <self:Object(ADecIntExpr)>*/
2370 /* method parser_prod#ADecIntExpr#n_annotations= for (self: ADecIntExpr, nullable AAnnotations) */
2371 void parser_prod__ADecIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
2372 val
* var_node
/* var node: nullable AAnnotations */;
2373 val
* var
/* : null */;
2374 short int var1
/* : Bool */;
2375 short int var2
/* : Bool */;
2376 val
* var_other
/* var other: nullable Object */;
2377 short int var4
/* : Bool */;
2378 short int var5
/* : Bool */;
2379 short int var6
/* : Bool */;
2381 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADecIntExpr> */
2383 if (var_node
== NULL
) {
2384 var1
= 0; /* is null */
2386 var1
= 1; /* arg is null and recv is not */
2389 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
2392 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
2404 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2405 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2413 /* method parser_prod#ADecIntExpr#n_annotations= for (self: Object, nullable AAnnotations) */
2414 void VIRTUAL_parser_prod__ADecIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
2415 parser_prod__ADecIntExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ADecIntExpr#n_annotations= on <self:Object(ADecIntExpr)>*/
2418 /* method parser_prod#ADecIntExpr#visit_all for (self: ADecIntExpr, Visitor) */
2419 void parser_prod__ADecIntExpr__visit_all(val
* self
, val
* p0
) {
2420 val
* var_v
/* var v: Visitor */;
2421 val
* var
/* : TNumber */;
2422 val
* var1
/* : nullable AAnnotations */;
2424 var
= self
->attrs
[COLOR_parser_nodes__ADecIntExpr___n_number
].val
; /* _n_number on <self:ADecIntExpr> */
2425 if (unlikely(var
== NULL
)) {
2426 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_number");
2427 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6104);
2431 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2433 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADecIntExpr> */
2435 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2439 /* method parser_prod#ADecIntExpr#visit_all for (self: Object, Visitor) */
2440 void VIRTUAL_parser_prod__ADecIntExpr__visit_all(val
* self
, val
* p0
) {
2441 parser_prod__ADecIntExpr__visit_all(self
, p0
); /* Direct call parser_prod#ADecIntExpr#visit_all on <self:Object(ADecIntExpr)>*/
2444 /* method parser_prod#AHexIntExpr#init_ahexintexpr for (self: AHexIntExpr, nullable THexNumber, nullable AAnnotations) */
2445 void parser_prod__AHexIntExpr__init_ahexintexpr(val
* self
, val
* p0
, val
* p1
) {
2446 val
* var_n_hex_number
/* var n_hex_number: nullable THexNumber */;
2447 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2448 val
* var
/* : null */;
2449 short int var2
/* : Bool */;
2450 short int var3
/* : Bool */;
2451 val
* var_other
/* var other: nullable Object */;
2452 short int var5
/* : Bool */;
2453 short int var6
/* : Bool */;
2454 short int var7
/* : Bool */;
2455 var_n_hex_number
= p0
;
2456 var_n_annotations
= p1
;
2457 if (unlikely(var_n_hex_number
== NULL
)) {
2458 PRINT_ERROR("Runtime error: %s", "Cast failed");
2459 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6114);
2462 self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
= var_n_hex_number
; /* _n_hex_number on <self:AHexIntExpr> */
2463 if (var_n_hex_number
== NULL
) {
2464 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2465 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6115);
2468 { /* Inline parser_nodes#ANode#parent= (var_n_hex_number,self) on <var_n_hex_number:nullable THexNumber> */
2469 if (unlikely(var_n_hex_number
== NULL
)) {
2470 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2471 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
2474 var_n_hex_number
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_hex_number:nullable THexNumber> */
2478 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AHexIntExpr> */
2480 if (var_n_annotations
== NULL
) {
2481 var2
= 0; /* is null */
2483 var2
= 1; /* arg is null and recv is not */
2486 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
2489 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)>*/;
2501 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2502 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2510 /* method parser_prod#AHexIntExpr#init_ahexintexpr for (self: Object, nullable THexNumber, nullable AAnnotations) */
2511 void VIRTUAL_parser_prod__AHexIntExpr__init_ahexintexpr(val
* self
, val
* p0
, val
* p1
) {
2512 parser_prod__AHexIntExpr__init_ahexintexpr(self
, p0
, p1
); /* Direct call parser_prod#AHexIntExpr#init_ahexintexpr on <self:Object(AHexIntExpr)>*/
2515 /* method parser_prod#AHexIntExpr#replace_child for (self: AHexIntExpr, ANode, nullable ANode) */
2516 void parser_prod__AHexIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2517 val
* var_old_child
/* var old_child: ANode */;
2518 val
* var_new_child
/* var new_child: nullable ANode */;
2519 val
* var
/* : THexNumber */;
2520 short int var1
/* : Bool */;
2521 short int var2
/* : Bool */;
2522 val
* var_other
/* var other: nullable Object */;
2523 short int var4
/* : Bool */;
2524 short int var6
/* : Bool */;
2525 short int var7
/* : Bool */;
2528 const char* var_class_name
;
2529 val
* var8
/* : nullable AAnnotations */;
2530 short int var9
/* : Bool */;
2531 short int var10
/* : Bool */;
2532 short int var12
/* : Bool */;
2533 short int var14
/* : Bool */;
2534 short int var15
/* : Bool */;
2537 const char* var_class_name18
;
2540 var
= self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
2541 if (unlikely(var
== NULL
)) {
2542 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
2543 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6122);
2547 { /* Inline kernel#Object#== (var,var_old_child) on <var:THexNumber> */
2548 var_other
= var_old_child
;
2550 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:THexNumber> */
2551 var6
= var
== var_other
;
2564 /* <var_new_child:nullable ANode> isa THexNumber */
2565 cltype
= type_parser_nodes__THexNumber
.color
;
2566 idtype
= type_parser_nodes__THexNumber
.id
;
2567 if(var_new_child
== NULL
) {
2570 if(cltype
>= var_new_child
->type
->table_size
) {
2573 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2576 if (unlikely(!var7
)) {
2577 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2578 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "THexNumber", var_class_name
);
2579 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6123);
2583 parser_prod__AHexIntExpr__n_hex_number_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_hex_number= on <self:AHexIntExpr>*/
2588 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
2590 var9
= 0; /* <var_old_child:ANode> cannot be null */
2592 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
2593 var_other
= var_old_child
;
2595 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
2596 var14
= var8
== var_other
;
2599 RET_LABEL13
:(void)0;
2604 RET_LABEL11
:(void)0;
2609 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2610 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
2611 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
2612 if(var_new_child
== NULL
) {
2615 if(cltype16
>= var_new_child
->type
->table_size
) {
2618 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2621 if (unlikely(!var15
)) {
2622 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2623 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
2624 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6127);
2628 parser_prod__AHexIntExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AHexIntExpr#n_annotations= on <self:AHexIntExpr>*/
2635 /* method parser_prod#AHexIntExpr#replace_child for (self: Object, ANode, nullable ANode) */
2636 void VIRTUAL_parser_prod__AHexIntExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2637 parser_prod__AHexIntExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AHexIntExpr#replace_child on <self:Object(AHexIntExpr)>*/
2640 /* method parser_prod#AHexIntExpr#n_hex_number= for (self: AHexIntExpr, THexNumber) */
2641 void parser_prod__AHexIntExpr__n_hex_number_61d(val
* self
, val
* p0
) {
2642 val
* var_node
/* var node: THexNumber */;
2644 self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
= var_node
; /* _n_hex_number on <self:AHexIntExpr> */
2646 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:THexNumber> */
2647 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:THexNumber> */
2653 /* method parser_prod#AHexIntExpr#n_hex_number= for (self: Object, THexNumber) */
2654 void VIRTUAL_parser_prod__AHexIntExpr__n_hex_number_61d(val
* self
, val
* p0
) {
2655 parser_prod__AHexIntExpr__n_hex_number_61d(self
, p0
); /* Direct call parser_prod#AHexIntExpr#n_hex_number= on <self:Object(AHexIntExpr)>*/
2658 /* method parser_prod#AHexIntExpr#n_annotations= for (self: AHexIntExpr, nullable AAnnotations) */
2659 void parser_prod__AHexIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
2660 val
* var_node
/* var node: nullable AAnnotations */;
2661 val
* var
/* : null */;
2662 short int var1
/* : Bool */;
2663 short int var2
/* : Bool */;
2664 val
* var_other
/* var other: nullable Object */;
2665 short int var4
/* : Bool */;
2666 short int var5
/* : Bool */;
2667 short int var6
/* : Bool */;
2669 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AHexIntExpr> */
2671 if (var_node
== NULL
) {
2672 var1
= 0; /* is null */
2674 var1
= 1; /* arg is null and recv is not */
2677 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
2680 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
2692 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2693 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2701 /* method parser_prod#AHexIntExpr#n_annotations= for (self: Object, nullable AAnnotations) */
2702 void VIRTUAL_parser_prod__AHexIntExpr__n_annotations_61d(val
* self
, val
* p0
) {
2703 parser_prod__AHexIntExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AHexIntExpr#n_annotations= on <self:Object(AHexIntExpr)>*/
2706 /* method parser_prod#AHexIntExpr#visit_all for (self: AHexIntExpr, Visitor) */
2707 void parser_prod__AHexIntExpr__visit_all(val
* self
, val
* p0
) {
2708 val
* var_v
/* var v: Visitor */;
2709 val
* var
/* : THexNumber */;
2710 val
* var1
/* : nullable AAnnotations */;
2712 var
= self
->attrs
[COLOR_parser_nodes__AHexIntExpr___n_hex_number
].val
; /* _n_hex_number on <self:AHexIntExpr> */
2713 if (unlikely(var
== NULL
)) {
2714 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_hex_number");
2715 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6146);
2719 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2721 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AHexIntExpr> */
2723 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2727 /* method parser_prod#AHexIntExpr#visit_all for (self: Object, Visitor) */
2728 void VIRTUAL_parser_prod__AHexIntExpr__visit_all(val
* self
, val
* p0
) {
2729 parser_prod__AHexIntExpr__visit_all(self
, p0
); /* Direct call parser_prod#AHexIntExpr#visit_all on <self:Object(AHexIntExpr)>*/
2732 /* method parser_prod#AFloatExpr#init_afloatexpr for (self: AFloatExpr, nullable TFloat, nullable AAnnotations) */
2733 void parser_prod__AFloatExpr__init_afloatexpr(val
* self
, val
* p0
, val
* p1
) {
2734 val
* var_n_float
/* var n_float: nullable TFloat */;
2735 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2736 val
* var
/* : null */;
2737 short int var2
/* : Bool */;
2738 short int var3
/* : Bool */;
2739 val
* var_other
/* var other: nullable Object */;
2740 short int var5
/* : Bool */;
2741 short int var6
/* : Bool */;
2742 short int var7
/* : Bool */;
2744 var_n_annotations
= p1
;
2745 if (unlikely(var_n_float
== NULL
)) {
2746 PRINT_ERROR("Runtime error: %s", "Cast failed");
2747 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6156);
2750 self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
= var_n_float
; /* _n_float on <self:AFloatExpr> */
2751 if (var_n_float
== NULL
) {
2752 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2753 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6157);
2756 { /* Inline parser_nodes#ANode#parent= (var_n_float,self) on <var_n_float:nullable TFloat> */
2757 if (unlikely(var_n_float
== NULL
)) {
2758 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2759 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
2762 var_n_float
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_float:nullable TFloat> */
2766 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFloatExpr> */
2768 if (var_n_annotations
== NULL
) {
2769 var2
= 0; /* is null */
2771 var2
= 1; /* arg is null and recv is not */
2774 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
2777 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)>*/;
2789 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2790 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2798 /* method parser_prod#AFloatExpr#init_afloatexpr for (self: Object, nullable TFloat, nullable AAnnotations) */
2799 void VIRTUAL_parser_prod__AFloatExpr__init_afloatexpr(val
* self
, val
* p0
, val
* p1
) {
2800 parser_prod__AFloatExpr__init_afloatexpr(self
, p0
, p1
); /* Direct call parser_prod#AFloatExpr#init_afloatexpr on <self:Object(AFloatExpr)>*/
2803 /* method parser_prod#AFloatExpr#replace_child for (self: AFloatExpr, ANode, nullable ANode) */
2804 void parser_prod__AFloatExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2805 val
* var_old_child
/* var old_child: ANode */;
2806 val
* var_new_child
/* var new_child: nullable ANode */;
2807 val
* var
/* : TFloat */;
2808 short int var1
/* : Bool */;
2809 short int var2
/* : Bool */;
2810 val
* var_other
/* var other: nullable Object */;
2811 short int var4
/* : Bool */;
2812 short int var6
/* : Bool */;
2813 short int var7
/* : Bool */;
2816 const char* var_class_name
;
2817 val
* var8
/* : nullable AAnnotations */;
2818 short int var9
/* : Bool */;
2819 short int var10
/* : Bool */;
2820 short int var12
/* : Bool */;
2821 short int var14
/* : Bool */;
2822 short int var15
/* : Bool */;
2825 const char* var_class_name18
;
2828 var
= self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
2829 if (unlikely(var
== NULL
)) {
2830 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
2831 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6164);
2835 { /* Inline kernel#Object#== (var,var_old_child) on <var:TFloat> */
2836 var_other
= var_old_child
;
2838 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TFloat> */
2839 var6
= var
== var_other
;
2852 /* <var_new_child:nullable ANode> isa TFloat */
2853 cltype
= type_parser_nodes__TFloat
.color
;
2854 idtype
= type_parser_nodes__TFloat
.id
;
2855 if(var_new_child
== NULL
) {
2858 if(cltype
>= var_new_child
->type
->table_size
) {
2861 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2864 if (unlikely(!var7
)) {
2865 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2866 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TFloat", var_class_name
);
2867 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6165);
2871 parser_prod__AFloatExpr__n_float_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_float= on <self:AFloatExpr>*/
2876 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
2878 var9
= 0; /* <var_old_child:ANode> cannot be null */
2880 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
2881 var_other
= var_old_child
;
2883 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
2884 var14
= var8
== var_other
;
2887 RET_LABEL13
:(void)0;
2892 RET_LABEL11
:(void)0;
2897 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
2898 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
2899 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
2900 if(var_new_child
== NULL
) {
2903 if(cltype16
>= var_new_child
->type
->table_size
) {
2906 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2909 if (unlikely(!var15
)) {
2910 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2911 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
2912 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6169);
2916 parser_prod__AFloatExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFloatExpr#n_annotations= on <self:AFloatExpr>*/
2923 /* method parser_prod#AFloatExpr#replace_child for (self: Object, ANode, nullable ANode) */
2924 void VIRTUAL_parser_prod__AFloatExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2925 parser_prod__AFloatExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFloatExpr#replace_child on <self:Object(AFloatExpr)>*/
2928 /* method parser_prod#AFloatExpr#n_float= for (self: AFloatExpr, TFloat) */
2929 void parser_prod__AFloatExpr__n_float_61d(val
* self
, val
* p0
) {
2930 val
* var_node
/* var node: TFloat */;
2932 self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
= var_node
; /* _n_float on <self:AFloatExpr> */
2934 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TFloat> */
2935 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TFloat> */
2941 /* method parser_prod#AFloatExpr#n_float= for (self: Object, TFloat) */
2942 void VIRTUAL_parser_prod__AFloatExpr__n_float_61d(val
* self
, val
* p0
) {
2943 parser_prod__AFloatExpr__n_float_61d(self
, p0
); /* Direct call parser_prod#AFloatExpr#n_float= on <self:Object(AFloatExpr)>*/
2946 /* method parser_prod#AFloatExpr#n_annotations= for (self: AFloatExpr, nullable AAnnotations) */
2947 void parser_prod__AFloatExpr__n_annotations_61d(val
* self
, val
* p0
) {
2948 val
* var_node
/* var node: nullable AAnnotations */;
2949 val
* var
/* : null */;
2950 short int var1
/* : Bool */;
2951 short int var2
/* : Bool */;
2952 val
* var_other
/* var other: nullable Object */;
2953 short int var4
/* : Bool */;
2954 short int var5
/* : Bool */;
2955 short int var6
/* : Bool */;
2957 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFloatExpr> */
2959 if (var_node
== NULL
) {
2960 var1
= 0; /* is null */
2962 var1
= 1; /* arg is null and recv is not */
2965 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
2968 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
2980 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
2981 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
2989 /* method parser_prod#AFloatExpr#n_annotations= for (self: Object, nullable AAnnotations) */
2990 void VIRTUAL_parser_prod__AFloatExpr__n_annotations_61d(val
* self
, val
* p0
) {
2991 parser_prod__AFloatExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AFloatExpr#n_annotations= on <self:Object(AFloatExpr)>*/
2994 /* method parser_prod#AFloatExpr#visit_all for (self: AFloatExpr, Visitor) */
2995 void parser_prod__AFloatExpr__visit_all(val
* self
, val
* p0
) {
2996 val
* var_v
/* var v: Visitor */;
2997 val
* var
/* : TFloat */;
2998 val
* var1
/* : nullable AAnnotations */;
3000 var
= self
->attrs
[COLOR_parser_nodes__AFloatExpr___n_float
].val
; /* _n_float on <self:AFloatExpr> */
3001 if (unlikely(var
== NULL
)) {
3002 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_float");
3003 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6188);
3007 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3009 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFloatExpr> */
3011 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3015 /* method parser_prod#AFloatExpr#visit_all for (self: Object, Visitor) */
3016 void VIRTUAL_parser_prod__AFloatExpr__visit_all(val
* self
, val
* p0
) {
3017 parser_prod__AFloatExpr__visit_all(self
, p0
); /* Direct call parser_prod#AFloatExpr#visit_all on <self:Object(AFloatExpr)>*/
3020 /* method parser_prod#ACharExpr#init_acharexpr for (self: ACharExpr, nullable TChar, nullable AAnnotations) */
3021 void parser_prod__ACharExpr__init_acharexpr(val
* self
, val
* p0
, val
* p1
) {
3022 val
* var_n_char
/* var n_char: nullable TChar */;
3023 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3024 val
* var
/* : null */;
3025 short int var2
/* : Bool */;
3026 short int var3
/* : Bool */;
3027 val
* var_other
/* var other: nullable Object */;
3028 short int var5
/* : Bool */;
3029 short int var6
/* : Bool */;
3030 short int var7
/* : Bool */;
3032 var_n_annotations
= p1
;
3033 if (unlikely(var_n_char
== NULL
)) {
3034 PRINT_ERROR("Runtime error: %s", "Cast failed");
3035 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6198);
3038 self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
= var_n_char
; /* _n_char on <self:ACharExpr> */
3039 if (var_n_char
== NULL
) {
3040 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3041 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6199);
3044 { /* Inline parser_nodes#ANode#parent= (var_n_char,self) on <var_n_char:nullable TChar> */
3045 if (unlikely(var_n_char
== NULL
)) {
3046 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3047 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3050 var_n_char
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_char:nullable TChar> */
3054 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ACharExpr> */
3056 if (var_n_annotations
== NULL
) {
3057 var2
= 0; /* is null */
3059 var2
= 1; /* arg is null and recv is not */
3062 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
3065 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)>*/;
3077 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3078 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3086 /* method parser_prod#ACharExpr#init_acharexpr for (self: Object, nullable TChar, nullable AAnnotations) */
3087 void VIRTUAL_parser_prod__ACharExpr__init_acharexpr(val
* self
, val
* p0
, val
* p1
) {
3088 parser_prod__ACharExpr__init_acharexpr(self
, p0
, p1
); /* Direct call parser_prod#ACharExpr#init_acharexpr on <self:Object(ACharExpr)>*/
3091 /* method parser_prod#ACharExpr#replace_child for (self: ACharExpr, ANode, nullable ANode) */
3092 void parser_prod__ACharExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3093 val
* var_old_child
/* var old_child: ANode */;
3094 val
* var_new_child
/* var new_child: nullable ANode */;
3095 val
* var
/* : TChar */;
3096 short int var1
/* : Bool */;
3097 short int var2
/* : Bool */;
3098 val
* var_other
/* var other: nullable Object */;
3099 short int var4
/* : Bool */;
3100 short int var6
/* : Bool */;
3101 short int var7
/* : Bool */;
3104 const char* var_class_name
;
3105 val
* var8
/* : nullable AAnnotations */;
3106 short int var9
/* : Bool */;
3107 short int var10
/* : Bool */;
3108 short int var12
/* : Bool */;
3109 short int var14
/* : Bool */;
3110 short int var15
/* : Bool */;
3113 const char* var_class_name18
;
3116 var
= self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
3117 if (unlikely(var
== NULL
)) {
3118 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
3119 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6206);
3123 { /* Inline kernel#Object#== (var,var_old_child) on <var:TChar> */
3124 var_other
= var_old_child
;
3126 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TChar> */
3127 var6
= var
== var_other
;
3140 /* <var_new_child:nullable ANode> isa TChar */
3141 cltype
= type_parser_nodes__TChar
.color
;
3142 idtype
= type_parser_nodes__TChar
.id
;
3143 if(var_new_child
== NULL
) {
3146 if(cltype
>= var_new_child
->type
->table_size
) {
3149 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3152 if (unlikely(!var7
)) {
3153 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3154 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TChar", var_class_name
);
3155 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6207);
3159 parser_prod__ACharExpr__n_char_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_char= on <self:ACharExpr>*/
3164 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
3166 var9
= 0; /* <var_old_child:ANode> cannot be null */
3168 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
3169 var_other
= var_old_child
;
3171 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
3172 var14
= var8
== var_other
;
3175 RET_LABEL13
:(void)0;
3180 RET_LABEL11
:(void)0;
3185 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3186 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
3187 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
3188 if(var_new_child
== NULL
) {
3191 if(cltype16
>= var_new_child
->type
->table_size
) {
3194 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
3197 if (unlikely(!var15
)) {
3198 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3199 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
3200 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6211);
3204 parser_prod__ACharExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ACharExpr#n_annotations= on <self:ACharExpr>*/
3211 /* method parser_prod#ACharExpr#replace_child for (self: Object, ANode, nullable ANode) */
3212 void VIRTUAL_parser_prod__ACharExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3213 parser_prod__ACharExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACharExpr#replace_child on <self:Object(ACharExpr)>*/
3216 /* method parser_prod#ACharExpr#n_char= for (self: ACharExpr, TChar) */
3217 void parser_prod__ACharExpr__n_char_61d(val
* self
, val
* p0
) {
3218 val
* var_node
/* var node: TChar */;
3220 self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
= var_node
; /* _n_char on <self:ACharExpr> */
3222 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TChar> */
3223 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TChar> */
3229 /* method parser_prod#ACharExpr#n_char= for (self: Object, TChar) */
3230 void VIRTUAL_parser_prod__ACharExpr__n_char_61d(val
* self
, val
* p0
) {
3231 parser_prod__ACharExpr__n_char_61d(self
, p0
); /* Direct call parser_prod#ACharExpr#n_char= on <self:Object(ACharExpr)>*/
3234 /* method parser_prod#ACharExpr#n_annotations= for (self: ACharExpr, nullable AAnnotations) */
3235 void parser_prod__ACharExpr__n_annotations_61d(val
* self
, val
* p0
) {
3236 val
* var_node
/* var node: nullable AAnnotations */;
3237 val
* var
/* : null */;
3238 short int var1
/* : Bool */;
3239 short int var2
/* : Bool */;
3240 val
* var_other
/* var other: nullable Object */;
3241 short int var4
/* : Bool */;
3242 short int var5
/* : Bool */;
3243 short int var6
/* : Bool */;
3245 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ACharExpr> */
3247 if (var_node
== NULL
) {
3248 var1
= 0; /* is null */
3250 var1
= 1; /* arg is null and recv is not */
3253 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3256 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3268 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3269 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3277 /* method parser_prod#ACharExpr#n_annotations= for (self: Object, nullable AAnnotations) */
3278 void VIRTUAL_parser_prod__ACharExpr__n_annotations_61d(val
* self
, val
* p0
) {
3279 parser_prod__ACharExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ACharExpr#n_annotations= on <self:Object(ACharExpr)>*/
3282 /* method parser_prod#ACharExpr#visit_all for (self: ACharExpr, Visitor) */
3283 void parser_prod__ACharExpr__visit_all(val
* self
, val
* p0
) {
3284 val
* var_v
/* var v: Visitor */;
3285 val
* var
/* : TChar */;
3286 val
* var1
/* : nullable AAnnotations */;
3288 var
= self
->attrs
[COLOR_parser_nodes__ACharExpr___n_char
].val
; /* _n_char on <self:ACharExpr> */
3289 if (unlikely(var
== NULL
)) {
3290 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_char");
3291 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6230);
3295 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3297 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ACharExpr> */
3299 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3303 /* method parser_prod#ACharExpr#visit_all for (self: Object, Visitor) */
3304 void VIRTUAL_parser_prod__ACharExpr__visit_all(val
* self
, val
* p0
) {
3305 parser_prod__ACharExpr__visit_all(self
, p0
); /* Direct call parser_prod#ACharExpr#visit_all on <self:Object(ACharExpr)>*/
3308 /* method parser_prod#AStringExpr#init_astringexpr for (self: AStringExpr, nullable TString, nullable AAnnotations) */
3309 void parser_prod__AStringExpr__init_astringexpr(val
* self
, val
* p0
, val
* p1
) {
3310 val
* var_n_string
/* var n_string: nullable TString */;
3311 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3312 val
* var
/* : null */;
3313 short int var2
/* : Bool */;
3314 short int var3
/* : Bool */;
3315 val
* var_other
/* var other: nullable Object */;
3316 short int var5
/* : Bool */;
3317 short int var6
/* : Bool */;
3318 short int var7
/* : Bool */;
3320 var_n_annotations
= p1
;
3321 if (unlikely(var_n_string
== NULL
)) {
3322 PRINT_ERROR("Runtime error: %s", "Cast failed");
3323 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6240);
3326 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStringExpr> */
3327 if (var_n_string
== NULL
) {
3328 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3329 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6241);
3332 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TString> */
3333 if (unlikely(var_n_string
== NULL
)) {
3334 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3335 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3338 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TString> */
3342 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStringExpr> */
3344 if (var_n_annotations
== NULL
) {
3345 var2
= 0; /* is null */
3347 var2
= 1; /* arg is null and recv is not */
3350 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
3353 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)>*/;
3365 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3366 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
3374 /* method parser_prod#AStringExpr#init_astringexpr for (self: Object, nullable TString, nullable AAnnotations) */
3375 void VIRTUAL_parser_prod__AStringExpr__init_astringexpr(val
* self
, val
* p0
, val
* p1
) {
3376 parser_prod__AStringExpr__init_astringexpr(self
, p0
, p1
); /* Direct call parser_prod#AStringExpr#init_astringexpr on <self:Object(AStringExpr)>*/
3379 /* method parser_prod#AStringExpr#replace_child for (self: AStringExpr, ANode, nullable ANode) */
3380 void parser_prod__AStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3381 val
* var_old_child
/* var old_child: ANode */;
3382 val
* var_new_child
/* var new_child: nullable ANode */;
3383 val
* var
/* : Token */;
3384 short int var1
/* : Bool */;
3385 short int var2
/* : Bool */;
3386 val
* var_other
/* var other: nullable Object */;
3387 short int var4
/* : Bool */;
3388 short int var6
/* : Bool */;
3389 short int var7
/* : Bool */;
3392 const char* var_class_name
;
3393 val
* var8
/* : nullable AAnnotations */;
3394 short int var9
/* : Bool */;
3395 short int var10
/* : Bool */;
3396 short int var12
/* : Bool */;
3397 short int var14
/* : Bool */;
3398 short int var15
/* : Bool */;
3401 const char* var_class_name18
;
3404 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
3405 if (unlikely(var
== NULL
)) {
3406 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3407 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6248);
3411 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3412 var_other
= var_old_child
;
3414 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3415 var6
= var
== var_other
;
3428 /* <var_new_child:nullable ANode> isa TString */
3429 cltype
= type_parser_nodes__TString
.color
;
3430 idtype
= type_parser_nodes__TString
.id
;
3431 if(var_new_child
== NULL
) {
3434 if(cltype
>= var_new_child
->type
->table_size
) {
3437 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3440 if (unlikely(!var7
)) {
3441 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3442 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name
);
3443 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6249);
3447 parser_prod__AStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_string= on <self:AStringExpr>*/
3452 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
3454 var9
= 0; /* <var_old_child:ANode> cannot be null */
3456 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AAnnotations> */
3457 var_other
= var_old_child
;
3459 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AAnnotations(AAnnotations)> */
3460 var14
= var8
== var_other
;
3463 RET_LABEL13
:(void)0;
3468 RET_LABEL11
:(void)0;
3473 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3474 cltype16
= type_nullable_parser_nodes__AAnnotations
.color
;
3475 idtype17
= type_nullable_parser_nodes__AAnnotations
.id
;
3476 if(var_new_child
== NULL
) {
3479 if(cltype16
>= var_new_child
->type
->table_size
) {
3482 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
3485 if (unlikely(!var15
)) {
3486 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3487 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name18
);
3488 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6253);
3492 parser_prod__AStringExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStringExpr#n_annotations= on <self:AStringExpr>*/
3499 /* method parser_prod#AStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
3500 void VIRTUAL_parser_prod__AStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3501 parser_prod__AStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStringExpr#replace_child on <self:Object(AStringExpr)>*/
3504 /* method parser_prod#AStringExpr#n_string= for (self: AStringExpr, Token) */
3505 void parser_prod__AStringExpr__n_string_61d(val
* self
, val
* p0
) {
3506 val
* var_node
/* var node: Token */;
3508 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStringExpr> */
3510 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3511 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3517 /* method parser_prod#AStringExpr#n_string= for (self: Object, Token) */
3518 void VIRTUAL_parser_prod__AStringExpr__n_string_61d(val
* self
, val
* p0
) {
3519 parser_prod__AStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AStringExpr#n_string= on <self:Object(AStringExpr)>*/
3522 /* method parser_prod#AStringExpr#n_annotations= for (self: AStringExpr, nullable AAnnotations) */
3523 void parser_prod__AStringExpr__n_annotations_61d(val
* self
, val
* p0
) {
3524 val
* var_node
/* var node: nullable AAnnotations */;
3525 val
* var
/* : null */;
3526 short int var1
/* : Bool */;
3527 short int var2
/* : Bool */;
3528 val
* var_other
/* var other: nullable Object */;
3529 short int var4
/* : Bool */;
3530 short int var5
/* : Bool */;
3531 short int var6
/* : Bool */;
3533 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStringExpr> */
3535 if (var_node
== NULL
) {
3536 var1
= 0; /* is null */
3538 var1
= 1; /* arg is null and recv is not */
3541 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3544 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3556 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3557 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3565 /* method parser_prod#AStringExpr#n_annotations= for (self: Object, nullable AAnnotations) */
3566 void VIRTUAL_parser_prod__AStringExpr__n_annotations_61d(val
* self
, val
* p0
) {
3567 parser_prod__AStringExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AStringExpr#n_annotations= on <self:Object(AStringExpr)>*/
3570 /* method parser_prod#AStringExpr#visit_all for (self: AStringExpr, Visitor) */
3571 void parser_prod__AStringExpr__visit_all(val
* self
, val
* p0
) {
3572 val
* var_v
/* var v: Visitor */;
3573 val
* var
/* : Token */;
3574 val
* var1
/* : nullable AAnnotations */;
3576 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStringExpr> */
3577 if (unlikely(var
== NULL
)) {
3578 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3579 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6272);
3583 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3585 var1
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStringExpr> */
3587 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3591 /* method parser_prod#AStringExpr#visit_all for (self: Object, Visitor) */
3592 void VIRTUAL_parser_prod__AStringExpr__visit_all(val
* self
, val
* p0
) {
3593 parser_prod__AStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AStringExpr#visit_all on <self:Object(AStringExpr)>*/
3596 /* method parser_prod#AStartStringExpr#init_astartstringexpr for (self: AStartStringExpr, nullable TStartString) */
3597 void parser_prod__AStartStringExpr__init_astartstringexpr(val
* self
, val
* p0
) {
3598 val
* var_n_string
/* var n_string: nullable TStartString */;
3600 if (unlikely(var_n_string
== NULL
)) {
3601 PRINT_ERROR("Runtime error: %s", "Cast failed");
3602 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6281);
3605 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AStartStringExpr> */
3606 if (var_n_string
== NULL
) {
3607 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3608 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6282);
3611 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TStartString> */
3612 if (unlikely(var_n_string
== NULL
)) {
3613 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3614 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3617 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TStartString> */
3623 /* method parser_prod#AStartStringExpr#init_astartstringexpr for (self: Object, nullable TStartString) */
3624 void VIRTUAL_parser_prod__AStartStringExpr__init_astartstringexpr(val
* self
, val
* p0
) {
3625 parser_prod__AStartStringExpr__init_astartstringexpr(self
, p0
); /* Direct call parser_prod#AStartStringExpr#init_astartstringexpr on <self:Object(AStartStringExpr)>*/
3628 /* method parser_prod#AStartStringExpr#replace_child for (self: AStartStringExpr, ANode, nullable ANode) */
3629 void parser_prod__AStartStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3630 val
* var_old_child
/* var old_child: ANode */;
3631 val
* var_new_child
/* var new_child: nullable ANode */;
3632 val
* var
/* : Token */;
3633 short int var1
/* : Bool */;
3634 short int var2
/* : Bool */;
3635 val
* var_other
/* var other: nullable Object */;
3636 short int var4
/* : Bool */;
3637 short int var6
/* : Bool */;
3638 short int var7
/* : Bool */;
3641 const char* var_class_name
;
3644 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
3645 if (unlikely(var
== NULL
)) {
3646 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3647 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6287);
3651 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3652 var_other
= var_old_child
;
3654 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3655 var6
= var
== var_other
;
3668 /* <var_new_child:nullable ANode> isa TStartString */
3669 cltype
= type_parser_nodes__TStartString
.color
;
3670 idtype
= type_parser_nodes__TStartString
.id
;
3671 if(var_new_child
== NULL
) {
3674 if(cltype
>= var_new_child
->type
->table_size
) {
3677 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3680 if (unlikely(!var7
)) {
3681 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3682 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStartString", var_class_name
);
3683 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6288);
3687 parser_prod__AStartStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AStartStringExpr#n_string= on <self:AStartStringExpr>*/
3694 /* method parser_prod#AStartStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
3695 void VIRTUAL_parser_prod__AStartStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3696 parser_prod__AStartStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStartStringExpr#replace_child on <self:Object(AStartStringExpr)>*/
3699 /* method parser_prod#AStartStringExpr#n_string= for (self: AStartStringExpr, Token) */
3700 void parser_prod__AStartStringExpr__n_string_61d(val
* self
, val
* p0
) {
3701 val
* var_node
/* var node: Token */;
3703 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AStartStringExpr> */
3705 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3706 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3712 /* method parser_prod#AStartStringExpr#n_string= for (self: Object, Token) */
3713 void VIRTUAL_parser_prod__AStartStringExpr__n_string_61d(val
* self
, val
* p0
) {
3714 parser_prod__AStartStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AStartStringExpr#n_string= on <self:Object(AStartStringExpr)>*/
3717 /* method parser_prod#AStartStringExpr#visit_all for (self: AStartStringExpr, Visitor) */
3718 void parser_prod__AStartStringExpr__visit_all(val
* self
, val
* p0
) {
3719 val
* var_v
/* var v: Visitor */;
3720 val
* var
/* : Token */;
3722 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AStartStringExpr> */
3723 if (unlikely(var
== NULL
)) {
3724 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3725 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6302);
3729 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3733 /* method parser_prod#AStartStringExpr#visit_all for (self: Object, Visitor) */
3734 void VIRTUAL_parser_prod__AStartStringExpr__visit_all(val
* self
, val
* p0
) {
3735 parser_prod__AStartStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AStartStringExpr#visit_all on <self:Object(AStartStringExpr)>*/
3738 /* method parser_prod#AMidStringExpr#init_amidstringexpr for (self: AMidStringExpr, nullable TMidString) */
3739 void parser_prod__AMidStringExpr__init_amidstringexpr(val
* self
, val
* p0
) {
3740 val
* var_n_string
/* var n_string: nullable TMidString */;
3742 if (unlikely(var_n_string
== NULL
)) {
3743 PRINT_ERROR("Runtime error: %s", "Cast failed");
3744 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6310);
3747 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AMidStringExpr> */
3748 if (var_n_string
== NULL
) {
3749 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3750 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6311);
3753 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TMidString> */
3754 if (unlikely(var_n_string
== NULL
)) {
3755 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3756 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3759 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TMidString> */
3765 /* method parser_prod#AMidStringExpr#init_amidstringexpr for (self: Object, nullable TMidString) */
3766 void VIRTUAL_parser_prod__AMidStringExpr__init_amidstringexpr(val
* self
, val
* p0
) {
3767 parser_prod__AMidStringExpr__init_amidstringexpr(self
, p0
); /* Direct call parser_prod#AMidStringExpr#init_amidstringexpr on <self:Object(AMidStringExpr)>*/
3770 /* method parser_prod#AMidStringExpr#replace_child for (self: AMidStringExpr, ANode, nullable ANode) */
3771 void parser_prod__AMidStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3772 val
* var_old_child
/* var old_child: ANode */;
3773 val
* var_new_child
/* var new_child: nullable ANode */;
3774 val
* var
/* : Token */;
3775 short int var1
/* : Bool */;
3776 short int var2
/* : Bool */;
3777 val
* var_other
/* var other: nullable Object */;
3778 short int var4
/* : Bool */;
3779 short int var6
/* : Bool */;
3780 short int var7
/* : Bool */;
3783 const char* var_class_name
;
3786 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
3787 if (unlikely(var
== NULL
)) {
3788 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3789 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6316);
3793 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3794 var_other
= var_old_child
;
3796 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3797 var6
= var
== var_other
;
3810 /* <var_new_child:nullable ANode> isa TMidString */
3811 cltype
= type_parser_nodes__TMidString
.color
;
3812 idtype
= type_parser_nodes__TMidString
.id
;
3813 if(var_new_child
== NULL
) {
3816 if(cltype
>= var_new_child
->type
->table_size
) {
3819 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3822 if (unlikely(!var7
)) {
3823 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3824 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMidString", var_class_name
);
3825 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6317);
3829 parser_prod__AMidStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AMidStringExpr#n_string= on <self:AMidStringExpr>*/
3836 /* method parser_prod#AMidStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
3837 void VIRTUAL_parser_prod__AMidStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3838 parser_prod__AMidStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMidStringExpr#replace_child on <self:Object(AMidStringExpr)>*/
3841 /* method parser_prod#AMidStringExpr#n_string= for (self: AMidStringExpr, Token) */
3842 void parser_prod__AMidStringExpr__n_string_61d(val
* self
, val
* p0
) {
3843 val
* var_node
/* var node: Token */;
3845 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AMidStringExpr> */
3847 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3848 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3854 /* method parser_prod#AMidStringExpr#n_string= for (self: Object, Token) */
3855 void VIRTUAL_parser_prod__AMidStringExpr__n_string_61d(val
* self
, val
* p0
) {
3856 parser_prod__AMidStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AMidStringExpr#n_string= on <self:Object(AMidStringExpr)>*/
3859 /* method parser_prod#AMidStringExpr#visit_all for (self: AMidStringExpr, Visitor) */
3860 void parser_prod__AMidStringExpr__visit_all(val
* self
, val
* p0
) {
3861 val
* var_v
/* var v: Visitor */;
3862 val
* var
/* : Token */;
3864 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AMidStringExpr> */
3865 if (unlikely(var
== NULL
)) {
3866 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3867 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6331);
3871 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3875 /* method parser_prod#AMidStringExpr#visit_all for (self: Object, Visitor) */
3876 void VIRTUAL_parser_prod__AMidStringExpr__visit_all(val
* self
, val
* p0
) {
3877 parser_prod__AMidStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AMidStringExpr#visit_all on <self:Object(AMidStringExpr)>*/
3880 /* method parser_prod#AEndStringExpr#init_aendstringexpr for (self: AEndStringExpr, nullable TEndString) */
3881 void parser_prod__AEndStringExpr__init_aendstringexpr(val
* self
, val
* p0
) {
3882 val
* var_n_string
/* var n_string: nullable TEndString */;
3884 if (unlikely(var_n_string
== NULL
)) {
3885 PRINT_ERROR("Runtime error: %s", "Cast failed");
3886 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6339);
3889 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_n_string
; /* _n_string on <self:AEndStringExpr> */
3890 if (var_n_string
== NULL
) {
3891 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3892 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6340);
3895 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TEndString> */
3896 if (unlikely(var_n_string
== NULL
)) {
3897 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3898 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3901 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TEndString> */
3907 /* method parser_prod#AEndStringExpr#init_aendstringexpr for (self: Object, nullable TEndString) */
3908 void VIRTUAL_parser_prod__AEndStringExpr__init_aendstringexpr(val
* self
, val
* p0
) {
3909 parser_prod__AEndStringExpr__init_aendstringexpr(self
, p0
); /* Direct call parser_prod#AEndStringExpr#init_aendstringexpr on <self:Object(AEndStringExpr)>*/
3912 /* method parser_prod#AEndStringExpr#replace_child for (self: AEndStringExpr, ANode, nullable ANode) */
3913 void parser_prod__AEndStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3914 val
* var_old_child
/* var old_child: ANode */;
3915 val
* var_new_child
/* var new_child: nullable ANode */;
3916 val
* var
/* : Token */;
3917 short int var1
/* : Bool */;
3918 short int var2
/* : Bool */;
3919 val
* var_other
/* var other: nullable Object */;
3920 short int var4
/* : Bool */;
3921 short int var6
/* : Bool */;
3922 short int var7
/* : Bool */;
3925 const char* var_class_name
;
3928 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
3929 if (unlikely(var
== NULL
)) {
3930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
3931 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6345);
3935 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3936 var_other
= var_old_child
;
3938 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3939 var6
= var
== var_other
;
3952 /* <var_new_child:nullable ANode> isa TEndString */
3953 cltype
= type_parser_nodes__TEndString
.color
;
3954 idtype
= type_parser_nodes__TEndString
.id
;
3955 if(var_new_child
== NULL
) {
3958 if(cltype
>= var_new_child
->type
->table_size
) {
3961 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3964 if (unlikely(!var7
)) {
3965 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3966 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEndString", var_class_name
);
3967 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6346);
3971 parser_prod__AEndStringExpr__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AEndStringExpr#n_string= on <self:AEndStringExpr>*/
3978 /* method parser_prod#AEndStringExpr#replace_child for (self: Object, ANode, nullable ANode) */
3979 void VIRTUAL_parser_prod__AEndStringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
3980 parser_prod__AEndStringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AEndStringExpr#replace_child on <self:Object(AEndStringExpr)>*/
3983 /* method parser_prod#AEndStringExpr#n_string= for (self: AEndStringExpr, Token) */
3984 void parser_prod__AEndStringExpr__n_string_61d(val
* self
, val
* p0
) {
3985 val
* var_node
/* var node: Token */;
3987 self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
= var_node
; /* _n_string on <self:AEndStringExpr> */
3989 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3990 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3996 /* method parser_prod#AEndStringExpr#n_string= for (self: Object, Token) */
3997 void VIRTUAL_parser_prod__AEndStringExpr__n_string_61d(val
* self
, val
* p0
) {
3998 parser_prod__AEndStringExpr__n_string_61d(self
, p0
); /* Direct call parser_prod#AEndStringExpr#n_string= on <self:Object(AEndStringExpr)>*/
4001 /* method parser_prod#AEndStringExpr#visit_all for (self: AEndStringExpr, Visitor) */
4002 void parser_prod__AEndStringExpr__visit_all(val
* self
, val
* p0
) {
4003 val
* var_v
/* var v: Visitor */;
4004 val
* var
/* : Token */;
4006 var
= self
->attrs
[COLOR_parser_nodes__AStringFormExpr___n_string
].val
; /* _n_string on <self:AEndStringExpr> */
4007 if (unlikely(var
== NULL
)) {
4008 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
4009 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6360);
4013 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4017 /* method parser_prod#AEndStringExpr#visit_all for (self: Object, Visitor) */
4018 void VIRTUAL_parser_prod__AEndStringExpr__visit_all(val
* self
, val
* p0
) {
4019 parser_prod__AEndStringExpr__visit_all(self
, p0
); /* Direct call parser_prod#AEndStringExpr#visit_all on <self:Object(AEndStringExpr)>*/
4022 /* method parser_prod#ASuperstringExpr#init_asuperstringexpr for (self: ASuperstringExpr, Collection[Object], nullable AAnnotations) */
4023 void parser_prod__ASuperstringExpr__init_asuperstringexpr(val
* self
, val
* p0
, val
* p1
) {
4024 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
4025 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4026 val
* var
/* : ANodes[AExpr] */;
4027 val
* var2
/* : ANodes[AExpr] */;
4028 val
* var3
/* : null */;
4029 short int var4
/* : Bool */;
4030 short int var5
/* : Bool */;
4031 val
* var_other
/* var other: nullable Object */;
4032 short int var7
/* : Bool */;
4033 short int var8
/* : Bool */;
4034 short int var9
/* : Bool */;
4036 var_n_annotations
= p1
;
4038 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
4039 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
4040 if (unlikely(var2
== NULL
)) {
4041 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
4042 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2180);
4050 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
4052 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperstringExpr> */
4054 if (var_n_annotations
== NULL
) {
4055 var4
= 0; /* is null */
4057 var4
= 1; /* arg is null and recv is not */
4060 { /* Inline kernel#Object#!= (var_n_annotations,var3) on <var_n_annotations:nullable AAnnotations> */
4063 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)>*/;
4075 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4076 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4077 RET_LABEL10
:(void)0;
4084 /* method parser_prod#ASuperstringExpr#init_asuperstringexpr for (self: Object, Collection[Object], nullable AAnnotations) */
4085 void VIRTUAL_parser_prod__ASuperstringExpr__init_asuperstringexpr(val
* self
, val
* p0
, val
* p1
) {
4086 parser_prod__ASuperstringExpr__init_asuperstringexpr(self
, p0
, p1
); /* Direct call parser_prod#ASuperstringExpr#init_asuperstringexpr on <self:Object(ASuperstringExpr)>*/
4089 /* method parser_prod#ASuperstringExpr#replace_child for (self: ASuperstringExpr, ANode, nullable ANode) */
4090 void parser_prod__ASuperstringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4091 val
* var_old_child
/* var old_child: ANode */;
4092 val
* var_new_child
/* var new_child: nullable ANode */;
4093 val
* var
/* : ANodes[AExpr] */;
4094 val
* var2
/* : ANodes[AExpr] */;
4095 short int var3
/* : Bool */;
4096 val
* var4
/* : nullable AAnnotations */;
4097 short int var5
/* : Bool */;
4098 short int var6
/* : Bool */;
4099 val
* var_other
/* var other: nullable Object */;
4100 short int var8
/* : Bool */;
4101 short int var10
/* : Bool */;
4102 short int var11
/* : Bool */;
4105 const char* var_class_name
;
4109 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
4110 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
4111 if (unlikely(var2
== NULL
)) {
4112 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
4113 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2180);
4121 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
4127 var4
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
4129 var5
= 0; /* <var_old_child:ANode> cannot be null */
4131 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable AAnnotations> */
4132 var_other
= var_old_child
;
4134 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable AAnnotations(AAnnotations)> */
4135 var10
= var4
== var_other
;
4148 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4149 cltype
= type_nullable_parser_nodes__AAnnotations
.color
;
4150 idtype
= type_nullable_parser_nodes__AAnnotations
.id
;
4151 if(var_new_child
== NULL
) {
4154 if(cltype
>= var_new_child
->type
->table_size
) {
4157 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4160 if (unlikely(!var11
)) {
4161 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4162 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name
);
4163 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6378);
4167 parser_prod__ASuperstringExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperstringExpr#n_annotations= on <self:ASuperstringExpr>*/
4174 /* method parser_prod#ASuperstringExpr#replace_child for (self: Object, ANode, nullable ANode) */
4175 void VIRTUAL_parser_prod__ASuperstringExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4176 parser_prod__ASuperstringExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperstringExpr#replace_child on <self:Object(ASuperstringExpr)>*/
4179 /* method parser_prod#ASuperstringExpr#n_annotations= for (self: ASuperstringExpr, nullable AAnnotations) */
4180 void parser_prod__ASuperstringExpr__n_annotations_61d(val
* self
, val
* p0
) {
4181 val
* var_node
/* var node: nullable AAnnotations */;
4182 val
* var
/* : null */;
4183 short int var1
/* : Bool */;
4184 short int var2
/* : Bool */;
4185 val
* var_other
/* var other: nullable Object */;
4186 short int var4
/* : Bool */;
4187 short int var5
/* : Bool */;
4188 short int var6
/* : Bool */;
4190 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperstringExpr> */
4192 if (var_node
== NULL
) {
4193 var1
= 0; /* is null */
4195 var1
= 1; /* arg is null and recv is not */
4198 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
4201 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
4213 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4214 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4222 /* method parser_prod#ASuperstringExpr#n_annotations= for (self: Object, nullable AAnnotations) */
4223 void VIRTUAL_parser_prod__ASuperstringExpr__n_annotations_61d(val
* self
, val
* p0
) {
4224 parser_prod__ASuperstringExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ASuperstringExpr#n_annotations= on <self:Object(ASuperstringExpr)>*/
4227 /* method parser_prod#ASuperstringExpr#visit_all for (self: ASuperstringExpr, Visitor) */
4228 void parser_prod__ASuperstringExpr__visit_all(val
* self
, val
* p0
) {
4229 val
* var_v
/* var v: Visitor */;
4230 val
* var
/* : ANodes[AExpr] */;
4231 val
* var2
/* : ANodes[AExpr] */;
4232 val
* var3
/* : nullable AAnnotations */;
4235 { /* Inline parser_nodes#ASuperstringExpr#n_exprs (self) on <self:ASuperstringExpr> */
4236 var2
= self
->attrs
[COLOR_parser_nodes__ASuperstringExpr___n_exprs
].val
; /* _n_exprs on <self:ASuperstringExpr> */
4237 if (unlikely(var2
== NULL
)) {
4238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
4239 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2180);
4247 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
4249 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperstringExpr> */
4251 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4255 /* method parser_prod#ASuperstringExpr#visit_all for (self: Object, Visitor) */
4256 void VIRTUAL_parser_prod__ASuperstringExpr__visit_all(val
* self
, val
* p0
) {
4257 parser_prod__ASuperstringExpr__visit_all(self
, p0
); /* Direct call parser_prod#ASuperstringExpr#visit_all on <self:Object(ASuperstringExpr)>*/
4260 /* method parser_prod#AParExpr#init_aparexpr for (self: AParExpr, nullable TOpar, nullable AExpr, nullable TCpar, nullable AAnnotations) */
4261 void parser_prod__AParExpr__init_aparexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4262 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4263 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4264 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4265 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4266 val
* var
/* : null */;
4267 short int var4
/* : Bool */;
4268 short int var5
/* : Bool */;
4269 val
* var_other
/* var other: nullable Object */;
4270 short int var7
/* : Bool */;
4271 short int var8
/* : Bool */;
4272 short int var9
/* : Bool */;
4276 var_n_annotations
= p3
;
4277 if (unlikely(var_n_opar
== NULL
)) {
4278 PRINT_ERROR("Runtime error: %s", "Cast failed");
4279 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6404);
4282 self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExpr> */
4283 if (var_n_opar
== NULL
) {
4284 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4285 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6405);
4288 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
4289 if (unlikely(var_n_opar
== NULL
)) {
4290 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4291 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4294 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
4298 if (unlikely(var_n_expr
== NULL
)) {
4299 PRINT_ERROR("Runtime error: %s", "Cast failed");
4300 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6406);
4303 self
->attrs
[COLOR_parser_nodes__AProxyExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AParExpr> */
4304 if (var_n_expr
== NULL
) {
4305 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4306 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6407);
4309 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4310 if (unlikely(var_n_expr
== NULL
)) {
4311 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4312 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4315 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4319 if (unlikely(var_n_cpar
== NULL
)) {
4320 PRINT_ERROR("Runtime error: %s", "Cast failed");
4321 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6408);
4324 self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExpr> */
4325 if (var_n_cpar
== NULL
) {
4326 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4327 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6409);
4330 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
4331 if (unlikely(var_n_cpar
== NULL
)) {
4332 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4333 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4336 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
4340 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParExpr> */
4342 if (var_n_annotations
== NULL
) {
4343 var4
= 0; /* is null */
4345 var4
= 1; /* arg is null and recv is not */
4348 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
4351 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)>*/;
4363 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4364 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4365 RET_LABEL10
:(void)0;
4372 /* method parser_prod#AParExpr#init_aparexpr for (self: Object, nullable TOpar, nullable AExpr, nullable TCpar, nullable AAnnotations) */
4373 void VIRTUAL_parser_prod__AParExpr__init_aparexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4374 parser_prod__AParExpr__init_aparexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AParExpr#init_aparexpr on <self:Object(AParExpr)>*/
4377 /* method parser_prod#AParExpr#replace_child for (self: AParExpr, ANode, nullable ANode) */
4378 void parser_prod__AParExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4379 val
* var_old_child
/* var old_child: ANode */;
4380 val
* var_new_child
/* var new_child: nullable ANode */;
4381 val
* var
/* : TOpar */;
4382 short int var1
/* : Bool */;
4383 short int var2
/* : Bool */;
4384 val
* var_other
/* var other: nullable Object */;
4385 short int var4
/* : Bool */;
4386 short int var6
/* : Bool */;
4387 short int var7
/* : Bool */;
4390 const char* var_class_name
;
4391 val
* var8
/* : AExpr */;
4392 short int var9
/* : Bool */;
4393 short int var10
/* : Bool */;
4394 short int var12
/* : Bool */;
4395 short int var14
/* : Bool */;
4396 short int var15
/* : Bool */;
4399 const char* var_class_name18
;
4400 val
* var19
/* : TCpar */;
4401 short int var20
/* : Bool */;
4402 short int var21
/* : Bool */;
4403 short int var23
/* : Bool */;
4404 short int var25
/* : Bool */;
4405 short int var26
/* : Bool */;
4408 const char* var_class_name29
;
4409 val
* var30
/* : nullable AAnnotations */;
4410 short int var31
/* : Bool */;
4411 short int var32
/* : Bool */;
4412 short int var34
/* : Bool */;
4413 short int var36
/* : Bool */;
4414 short int var37
/* : Bool */;
4417 const char* var_class_name40
;
4420 var
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
4421 if (unlikely(var
== NULL
)) {
4422 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
4423 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6416);
4427 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
4428 var_other
= var_old_child
;
4430 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
4431 var6
= var
== var_other
;
4444 /* <var_new_child:nullable ANode> isa TOpar */
4445 cltype
= type_parser_nodes__TOpar
.color
;
4446 idtype
= type_parser_nodes__TOpar
.id
;
4447 if(var_new_child
== NULL
) {
4450 if(cltype
>= var_new_child
->type
->table_size
) {
4453 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4456 if (unlikely(!var7
)) {
4457 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4458 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
4459 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6417);
4463 parser_prod__AParExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_opar= on <self:AParExpr>*/
4468 var8
= self
->attrs
[COLOR_parser_nodes__AProxyExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
4469 if (unlikely(var8
== NULL
)) {
4470 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4471 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6420);
4475 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
4476 var_other
= var_old_child
;
4478 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
4479 var14
= var8
== var_other
;
4482 RET_LABEL13
:(void)0;
4487 RET_LABEL11
:(void)0;
4492 /* <var_new_child:nullable ANode> isa AExpr */
4493 cltype16
= type_parser_nodes__AExpr
.color
;
4494 idtype17
= type_parser_nodes__AExpr
.id
;
4495 if(var_new_child
== NULL
) {
4498 if(cltype16
>= var_new_child
->type
->table_size
) {
4501 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4504 if (unlikely(!var15
)) {
4505 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4506 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
4507 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6421);
4511 parser_prod__AParExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_expr= on <self:AParExpr>*/
4516 var19
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
4517 if (unlikely(var19
== NULL
)) {
4518 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
4519 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6424);
4523 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TCpar> */
4524 var_other
= var_old_child
;
4526 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TCpar> */
4527 var25
= var19
== var_other
;
4530 RET_LABEL24
:(void)0;
4535 RET_LABEL22
:(void)0;
4540 /* <var_new_child:nullable ANode> isa TCpar */
4541 cltype27
= type_parser_nodes__TCpar
.color
;
4542 idtype28
= type_parser_nodes__TCpar
.id
;
4543 if(var_new_child
== NULL
) {
4546 if(cltype27
>= var_new_child
->type
->table_size
) {
4549 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
4552 if (unlikely(!var26
)) {
4553 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4554 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name29
);
4555 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6425);
4559 parser_prod__AParExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_cpar= on <self:AParExpr>*/
4564 var30
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
4565 if (var30
== NULL
) {
4566 var31
= 0; /* <var_old_child:ANode> cannot be null */
4568 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable AAnnotations> */
4569 var_other
= var_old_child
;
4571 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable AAnnotations(AAnnotations)> */
4572 var36
= var30
== var_other
;
4575 RET_LABEL35
:(void)0;
4580 RET_LABEL33
:(void)0;
4585 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4586 cltype38
= type_nullable_parser_nodes__AAnnotations
.color
;
4587 idtype39
= type_nullable_parser_nodes__AAnnotations
.id
;
4588 if(var_new_child
== NULL
) {
4591 if(cltype38
>= var_new_child
->type
->table_size
) {
4594 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
4597 if (unlikely(!var37
)) {
4598 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4599 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name40
);
4600 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6429);
4604 parser_prod__AParExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParExpr#n_annotations= on <self:AParExpr>*/
4611 /* method parser_prod#AParExpr#replace_child for (self: Object, ANode, nullable ANode) */
4612 void VIRTUAL_parser_prod__AParExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4613 parser_prod__AParExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AParExpr#replace_child on <self:Object(AParExpr)>*/
4616 /* method parser_prod#AParExpr#n_opar= for (self: AParExpr, TOpar) */
4617 void parser_prod__AParExpr__n_opar_61d(val
* self
, val
* p0
) {
4618 val
* var_node
/* var node: TOpar */;
4620 self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AParExpr> */
4622 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
4623 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
4629 /* method parser_prod#AParExpr#n_opar= for (self: Object, TOpar) */
4630 void VIRTUAL_parser_prod__AParExpr__n_opar_61d(val
* self
, val
* p0
) {
4631 parser_prod__AParExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_opar= on <self:Object(AParExpr)>*/
4634 /* method parser_prod#AParExpr#n_expr= for (self: AParExpr, AExpr) */
4635 void parser_prod__AParExpr__n_expr_61d(val
* self
, val
* p0
) {
4636 val
* var_node
/* var node: AExpr */;
4638 self
->attrs
[COLOR_parser_nodes__AProxyExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AParExpr> */
4640 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
4641 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
4647 /* method parser_prod#AParExpr#n_expr= for (self: Object, AExpr) */
4648 void VIRTUAL_parser_prod__AParExpr__n_expr_61d(val
* self
, val
* p0
) {
4649 parser_prod__AParExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_expr= on <self:Object(AParExpr)>*/
4652 /* method parser_prod#AParExpr#n_cpar= for (self: AParExpr, TCpar) */
4653 void parser_prod__AParExpr__n_cpar_61d(val
* self
, val
* p0
) {
4654 val
* var_node
/* var node: TCpar */;
4656 self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExpr> */
4658 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
4659 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
4665 /* method parser_prod#AParExpr#n_cpar= for (self: Object, TCpar) */
4666 void VIRTUAL_parser_prod__AParExpr__n_cpar_61d(val
* self
, val
* p0
) {
4667 parser_prod__AParExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_cpar= on <self:Object(AParExpr)>*/
4670 /* method parser_prod#AParExpr#n_annotations= for (self: AParExpr, nullable AAnnotations) */
4671 void parser_prod__AParExpr__n_annotations_61d(val
* self
, val
* p0
) {
4672 val
* var_node
/* var node: nullable AAnnotations */;
4673 val
* var
/* : null */;
4674 short int var1
/* : Bool */;
4675 short int var2
/* : Bool */;
4676 val
* var_other
/* var other: nullable Object */;
4677 short int var4
/* : Bool */;
4678 short int var5
/* : Bool */;
4679 short int var6
/* : Bool */;
4681 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParExpr> */
4683 if (var_node
== NULL
) {
4684 var1
= 0; /* is null */
4686 var1
= 1; /* arg is null and recv is not */
4689 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
4692 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
4704 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4705 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4713 /* method parser_prod#AParExpr#n_annotations= for (self: Object, nullable AAnnotations) */
4714 void VIRTUAL_parser_prod__AParExpr__n_annotations_61d(val
* self
, val
* p0
) {
4715 parser_prod__AParExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AParExpr#n_annotations= on <self:Object(AParExpr)>*/
4718 /* method parser_prod#AParExpr#visit_all for (self: AParExpr, Visitor) */
4719 void parser_prod__AParExpr__visit_all(val
* self
, val
* p0
) {
4720 val
* var_v
/* var v: Visitor */;
4721 val
* var
/* : TOpar */;
4722 val
* var1
/* : AExpr */;
4723 val
* var2
/* : TCpar */;
4724 val
* var3
/* : nullable AAnnotations */;
4726 var
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_opar
].val
; /* _n_opar on <self:AParExpr> */
4727 if (unlikely(var
== NULL
)) {
4728 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
4729 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6458);
4733 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4735 var1
= self
->attrs
[COLOR_parser_nodes__AProxyExpr___n_expr
].val
; /* _n_expr on <self:AParExpr> */
4736 if (unlikely(var1
== NULL
)) {
4737 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4738 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6459);
4742 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4744 var2
= self
->attrs
[COLOR_parser_nodes__AParExpr___n_cpar
].val
; /* _n_cpar on <self:AParExpr> */
4745 if (unlikely(var2
== NULL
)) {
4746 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
4747 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6460);
4751 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4753 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParExpr> */
4755 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4759 /* method parser_prod#AParExpr#visit_all for (self: Object, Visitor) */
4760 void VIRTUAL_parser_prod__AParExpr__visit_all(val
* self
, val
* p0
) {
4761 parser_prod__AParExpr__visit_all(self
, p0
); /* Direct call parser_prod#AParExpr#visit_all on <self:Object(AParExpr)>*/
4764 /* method parser_prod#AAsCastExpr#init_aascastexpr for (self: AAsCastExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable AType, nullable TCpar) */
4765 void parser_prod__AAsCastExpr__init_aascastexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4766 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4767 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
4768 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4769 val
* var_n_type
/* var n_type: nullable AType */;
4770 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4771 val
* var
/* : null */;
4772 short int var3
/* : Bool */;
4773 short int var4
/* : Bool */;
4774 val
* var_other
/* var other: nullable Object */;
4775 short int var6
/* : Bool */;
4776 short int var7
/* : Bool */;
4777 short int var8
/* : Bool */;
4778 val
* var11
/* : null */;
4779 short int var12
/* : Bool */;
4780 short int var13
/* : Bool */;
4781 short int var15
/* : Bool */;
4782 short int var16
/* : Bool */;
4783 short int var17
/* : Bool */;
4789 if (unlikely(var_n_expr
== NULL
)) {
4790 PRINT_ERROR("Runtime error: %s", "Cast failed");
4791 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6473);
4794 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsCastExpr> */
4795 if (var_n_expr
== NULL
) {
4796 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4797 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6474);
4800 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
4801 if (unlikely(var_n_expr
== NULL
)) {
4802 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4803 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4806 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
4810 if (unlikely(var_n_kwas
== NULL
)) {
4811 PRINT_ERROR("Runtime error: %s", "Cast failed");
4812 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6475);
4815 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsCastExpr> */
4816 if (var_n_kwas
== NULL
) {
4817 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4818 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6476);
4821 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
4822 if (unlikely(var_n_kwas
== NULL
)) {
4823 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4824 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4827 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
4831 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsCastExpr> */
4833 if (var_n_opar
== NULL
) {
4834 var3
= 0; /* is null */
4836 var3
= 1; /* arg is null and recv is not */
4839 { /* Inline kernel#Object#!= (var_n_opar,var) on <var_n_opar:nullable TOpar> */
4842 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)>*/;
4854 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
4855 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
4861 if (unlikely(var_n_type
== NULL
)) {
4862 PRINT_ERROR("Runtime error: %s", "Cast failed");
4863 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6479);
4866 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AAsCastExpr> */
4867 if (var_n_type
== NULL
) {
4868 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4869 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6480);
4872 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
4873 if (unlikely(var_n_type
== NULL
)) {
4874 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4875 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4878 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
4879 RET_LABEL10
:(void)0;
4882 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsCastExpr> */
4884 if (var_n_cpar
== NULL
) {
4885 var12
= 0; /* is null */
4887 var12
= 1; /* arg is null and recv is not */
4890 { /* Inline kernel#Object#!= (var_n_cpar,var11) on <var_n_cpar:nullable TCpar> */
4893 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)>*/;
4899 RET_LABEL14
:(void)0;
4905 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
4906 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
4907 RET_LABEL18
:(void)0;
4914 /* method parser_prod#AAsCastExpr#init_aascastexpr for (self: Object, nullable AExpr, nullable TKwas, nullable TOpar, nullable AType, nullable TCpar) */
4915 void VIRTUAL_parser_prod__AAsCastExpr__init_aascastexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
4916 parser_prod__AAsCastExpr__init_aascastexpr(self
, p0
, p1
, p2
, p3
, p4
); /* Direct call parser_prod#AAsCastExpr#init_aascastexpr on <self:Object(AAsCastExpr)>*/
4919 /* method parser_prod#AAsCastExpr#replace_child for (self: AAsCastExpr, ANode, nullable ANode) */
4920 void parser_prod__AAsCastExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4921 val
* var_old_child
/* var old_child: ANode */;
4922 val
* var_new_child
/* var new_child: nullable ANode */;
4923 val
* var
/* : AExpr */;
4924 short int var1
/* : Bool */;
4925 short int var2
/* : Bool */;
4926 val
* var_other
/* var other: nullable Object */;
4927 short int var4
/* : Bool */;
4928 short int var6
/* : Bool */;
4929 short int var7
/* : Bool */;
4932 const char* var_class_name
;
4933 val
* var8
/* : TKwas */;
4934 short int var9
/* : Bool */;
4935 short int var10
/* : Bool */;
4936 short int var12
/* : Bool */;
4937 short int var14
/* : Bool */;
4938 short int var15
/* : Bool */;
4941 const char* var_class_name18
;
4942 val
* var19
/* : nullable TOpar */;
4943 short int var20
/* : Bool */;
4944 short int var21
/* : Bool */;
4945 short int var23
/* : Bool */;
4946 short int var25
/* : Bool */;
4947 short int var26
/* : Bool */;
4950 const char* var_class_name29
;
4951 val
* var30
/* : AType */;
4952 short int var31
/* : Bool */;
4953 short int var32
/* : Bool */;
4954 short int var34
/* : Bool */;
4955 short int var36
/* : Bool */;
4956 short int var37
/* : Bool */;
4959 const char* var_class_name40
;
4960 val
* var41
/* : nullable TCpar */;
4961 short int var42
/* : Bool */;
4962 short int var43
/* : Bool */;
4963 short int var45
/* : Bool */;
4964 short int var47
/* : Bool */;
4965 short int var48
/* : Bool */;
4968 const char* var_class_name51
;
4971 var
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
4972 if (unlikely(var
== NULL
)) {
4973 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
4974 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6487);
4978 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
4979 var_other
= var_old_child
;
4981 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
4982 var6
= var
== var_other
;
4995 /* <var_new_child:nullable ANode> isa AExpr */
4996 cltype
= type_parser_nodes__AExpr
.color
;
4997 idtype
= type_parser_nodes__AExpr
.id
;
4998 if(var_new_child
== NULL
) {
5001 if(cltype
>= var_new_child
->type
->table_size
) {
5004 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5007 if (unlikely(!var7
)) {
5008 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5009 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5010 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6488);
5014 parser_prod__AAsCastExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_expr= on <self:AAsCastExpr>*/
5019 var8
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
5020 if (unlikely(var8
== NULL
)) {
5021 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5022 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6491);
5026 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
5027 var_other
= var_old_child
;
5029 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
5030 var14
= var8
== var_other
;
5033 RET_LABEL13
:(void)0;
5038 RET_LABEL11
:(void)0;
5043 /* <var_new_child:nullable ANode> isa TKwas */
5044 cltype16
= type_parser_nodes__TKwas
.color
;
5045 idtype17
= type_parser_nodes__TKwas
.id
;
5046 if(var_new_child
== NULL
) {
5049 if(cltype16
>= var_new_child
->type
->table_size
) {
5052 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5055 if (unlikely(!var15
)) {
5056 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5057 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
5058 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6492);
5062 parser_prod__AAsCastExpr__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_kwas= on <self:AAsCastExpr>*/
5067 var19
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
5068 if (var19
== NULL
) {
5069 var20
= 0; /* <var_old_child:ANode> cannot be null */
5071 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable TOpar> */
5072 var_other
= var_old_child
;
5074 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable TOpar(TOpar)> */
5075 var25
= var19
== var_other
;
5078 RET_LABEL24
:(void)0;
5083 RET_LABEL22
:(void)0;
5088 /* <var_new_child:nullable ANode> isa nullable TOpar */
5089 cltype27
= type_nullable_parser_nodes__TOpar
.color
;
5090 idtype28
= type_nullable_parser_nodes__TOpar
.id
;
5091 if(var_new_child
== NULL
) {
5094 if(cltype27
>= var_new_child
->type
->table_size
) {
5097 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5100 if (unlikely(!var26
)) {
5101 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5102 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name29
);
5103 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6496);
5107 parser_prod__AAsCastExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_opar= on <self:AAsCastExpr>*/
5112 var30
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
5113 if (unlikely(var30
== NULL
)) {
5114 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5115 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6499);
5119 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
5120 var_other
= var_old_child
;
5122 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
5123 var36
= var30
== var_other
;
5126 RET_LABEL35
:(void)0;
5131 RET_LABEL33
:(void)0;
5136 /* <var_new_child:nullable ANode> isa AType */
5137 cltype38
= type_parser_nodes__AType
.color
;
5138 idtype39
= type_parser_nodes__AType
.id
;
5139 if(var_new_child
== NULL
) {
5142 if(cltype38
>= var_new_child
->type
->table_size
) {
5145 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
5148 if (unlikely(!var37
)) {
5149 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5150 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
5151 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6500);
5155 parser_prod__AAsCastExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_type= on <self:AAsCastExpr>*/
5160 var41
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
5161 if (var41
== NULL
) {
5162 var42
= 0; /* <var_old_child:ANode> cannot be null */
5164 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TCpar> */
5165 var_other
= var_old_child
;
5167 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TCpar(TCpar)> */
5168 var47
= var41
== var_other
;
5171 RET_LABEL46
:(void)0;
5176 RET_LABEL44
:(void)0;
5181 /* <var_new_child:nullable ANode> isa nullable TCpar */
5182 cltype49
= type_nullable_parser_nodes__TCpar
.color
;
5183 idtype50
= type_nullable_parser_nodes__TCpar
.id
;
5184 if(var_new_child
== NULL
) {
5187 if(cltype49
>= var_new_child
->type
->table_size
) {
5190 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
5193 if (unlikely(!var48
)) {
5194 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5195 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name51
);
5196 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6504);
5200 parser_prod__AAsCastExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsCastExpr#n_cpar= on <self:AAsCastExpr>*/
5207 /* method parser_prod#AAsCastExpr#replace_child for (self: Object, ANode, nullable ANode) */
5208 void VIRTUAL_parser_prod__AAsCastExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5209 parser_prod__AAsCastExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsCastExpr#replace_child on <self:Object(AAsCastExpr)>*/
5212 /* method parser_prod#AAsCastExpr#n_expr= for (self: AAsCastExpr, AExpr) */
5213 void parser_prod__AAsCastExpr__n_expr_61d(val
* self
, val
* p0
) {
5214 val
* var_node
/* var node: AExpr */;
5216 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAsCastExpr> */
5218 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5219 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5225 /* method parser_prod#AAsCastExpr#n_expr= for (self: Object, AExpr) */
5226 void VIRTUAL_parser_prod__AAsCastExpr__n_expr_61d(val
* self
, val
* p0
) {
5227 parser_prod__AAsCastExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_expr= on <self:Object(AAsCastExpr)>*/
5230 /* method parser_prod#AAsCastExpr#n_kwas= for (self: AAsCastExpr, TKwas) */
5231 void parser_prod__AAsCastExpr__n_kwas_61d(val
* self
, val
* p0
) {
5232 val
* var_node
/* var node: TKwas */;
5234 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsCastExpr> */
5236 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5237 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5243 /* method parser_prod#AAsCastExpr#n_kwas= for (self: Object, TKwas) */
5244 void VIRTUAL_parser_prod__AAsCastExpr__n_kwas_61d(val
* self
, val
* p0
) {
5245 parser_prod__AAsCastExpr__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_kwas= on <self:Object(AAsCastExpr)>*/
5248 /* method parser_prod#AAsCastExpr#n_opar= for (self: AAsCastExpr, nullable TOpar) */
5249 void parser_prod__AAsCastExpr__n_opar_61d(val
* self
, val
* p0
) {
5250 val
* var_node
/* var node: nullable TOpar */;
5251 val
* var
/* : null */;
5252 short int var1
/* : Bool */;
5253 short int var2
/* : Bool */;
5254 val
* var_other
/* var other: nullable Object */;
5255 short int var4
/* : Bool */;
5256 short int var5
/* : Bool */;
5257 short int var6
/* : Bool */;
5259 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AAsCastExpr> */
5261 if (var_node
== NULL
) {
5262 var1
= 0; /* is null */
5264 var1
= 1; /* arg is null and recv is not */
5267 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
5270 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
5282 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
5283 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
5291 /* method parser_prod#AAsCastExpr#n_opar= for (self: Object, nullable TOpar) */
5292 void VIRTUAL_parser_prod__AAsCastExpr__n_opar_61d(val
* self
, val
* p0
) {
5293 parser_prod__AAsCastExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_opar= on <self:Object(AAsCastExpr)>*/
5296 /* method parser_prod#AAsCastExpr#n_type= for (self: AAsCastExpr, AType) */
5297 void parser_prod__AAsCastExpr__n_type_61d(val
* self
, val
* p0
) {
5298 val
* var_node
/* var node: AType */;
5300 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
= var_node
; /* _n_type on <self:AAsCastExpr> */
5302 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5303 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5309 /* method parser_prod#AAsCastExpr#n_type= for (self: Object, AType) */
5310 void VIRTUAL_parser_prod__AAsCastExpr__n_type_61d(val
* self
, val
* p0
) {
5311 parser_prod__AAsCastExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_type= on <self:Object(AAsCastExpr)>*/
5314 /* method parser_prod#AAsCastExpr#n_cpar= for (self: AAsCastExpr, nullable TCpar) */
5315 void parser_prod__AAsCastExpr__n_cpar_61d(val
* self
, val
* p0
) {
5316 val
* var_node
/* var node: nullable TCpar */;
5317 val
* var
/* : null */;
5318 short int var1
/* : Bool */;
5319 short int var2
/* : Bool */;
5320 val
* var_other
/* var other: nullable Object */;
5321 short int var4
/* : Bool */;
5322 short int var5
/* : Bool */;
5323 short int var6
/* : Bool */;
5325 self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsCastExpr> */
5327 if (var_node
== NULL
) {
5328 var1
= 0; /* is null */
5330 var1
= 1; /* arg is null and recv is not */
5333 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
5336 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
5348 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
5349 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
5357 /* method parser_prod#AAsCastExpr#n_cpar= for (self: Object, nullable TCpar) */
5358 void VIRTUAL_parser_prod__AAsCastExpr__n_cpar_61d(val
* self
, val
* p0
) {
5359 parser_prod__AAsCastExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAsCastExpr#n_cpar= on <self:Object(AAsCastExpr)>*/
5362 /* method parser_prod#AAsCastExpr#visit_all for (self: AAsCastExpr, Visitor) */
5363 void parser_prod__AAsCastExpr__visit_all(val
* self
, val
* p0
) {
5364 val
* var_v
/* var v: Visitor */;
5365 val
* var
/* : AExpr */;
5366 val
* var1
/* : TKwas */;
5367 val
* var2
/* : nullable TOpar */;
5368 val
* var3
/* : AType */;
5369 val
* var4
/* : nullable TCpar */;
5371 var
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_expr
].val
; /* _n_expr on <self:AAsCastExpr> */
5372 if (unlikely(var
== NULL
)) {
5373 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5374 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6538);
5378 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5380 var1
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_kwas
].val
; /* _n_kwas on <self:AAsCastExpr> */
5381 if (unlikely(var1
== NULL
)) {
5382 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5383 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6539);
5387 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5389 var2
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_opar
].val
; /* _n_opar on <self:AAsCastExpr> */
5391 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5393 var3
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_type
].val
; /* _n_type on <self:AAsCastExpr> */
5394 if (unlikely(var3
== NULL
)) {
5395 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5396 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6541);
5400 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5402 var4
= self
->attrs
[COLOR_parser_nodes__AAsCastExpr___n_cpar
].val
; /* _n_cpar on <self:AAsCastExpr> */
5404 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5408 /* method parser_prod#AAsCastExpr#visit_all for (self: Object, Visitor) */
5409 void VIRTUAL_parser_prod__AAsCastExpr__visit_all(val
* self
, val
* p0
) {
5410 parser_prod__AAsCastExpr__visit_all(self
, p0
); /* Direct call parser_prod#AAsCastExpr#visit_all on <self:Object(AAsCastExpr)>*/
5413 /* method parser_prod#AAsNotnullExpr#init_aasnotnullexpr for (self: AAsNotnullExpr, nullable AExpr, nullable TKwas, nullable TOpar, nullable TKwnot, nullable TKwnull, nullable TCpar) */
5414 void parser_prod__AAsNotnullExpr__init_aasnotnullexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
5415 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5416 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
5417 val
* var_n_opar
/* var n_opar: nullable TOpar */;
5418 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
5419 val
* var_n_kwnull
/* var n_kwnull: nullable TKwnull */;
5420 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
5421 val
* var
/* : null */;
5422 short int var3
/* : Bool */;
5423 short int var4
/* : Bool */;
5424 val
* var_other
/* var other: nullable Object */;
5425 short int var6
/* : Bool */;
5426 short int var7
/* : Bool */;
5427 short int var8
/* : Bool */;
5428 val
* var12
/* : null */;
5429 short int var13
/* : Bool */;
5430 short int var14
/* : Bool */;
5431 short int var16
/* : Bool */;
5432 short int var17
/* : Bool */;
5433 short int var18
/* : Bool */;
5440 if (unlikely(var_n_expr
== NULL
)) {
5441 PRINT_ERROR("Runtime error: %s", "Cast failed");
5442 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6555);
5445 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAsNotnullExpr> */
5446 if (var_n_expr
== NULL
) {
5447 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5448 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6556);
5451 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
5452 if (unlikely(var_n_expr
== NULL
)) {
5453 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5454 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
5457 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
5461 if (unlikely(var_n_kwas
== NULL
)) {
5462 PRINT_ERROR("Runtime error: %s", "Cast failed");
5463 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6557);
5466 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotnullExpr> */
5467 if (var_n_kwas
== NULL
) {
5468 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5469 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6558);
5472 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
5473 if (unlikely(var_n_kwas
== NULL
)) {
5474 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5475 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
5478 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
5482 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAsNotnullExpr> */
5484 if (var_n_opar
== NULL
) {
5485 var3
= 0; /* is null */
5487 var3
= 1; /* arg is null and recv is not */
5490 { /* Inline kernel#Object#!= (var_n_opar,var) on <var_n_opar:nullable TOpar> */
5493 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)>*/;
5505 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
5506 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
5512 if (unlikely(var_n_kwnot
== NULL
)) {
5513 PRINT_ERROR("Runtime error: %s", "Cast failed");
5514 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6561);
5517 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotnullExpr> */
5518 if (var_n_kwnot
== NULL
) {
5519 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5520 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6562);
5523 { /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on <var_n_kwnot:nullable TKwnot> */
5524 if (unlikely(var_n_kwnot
== NULL
)) {
5525 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5526 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
5529 var_n_kwnot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnot:nullable TKwnot> */
5530 RET_LABEL10
:(void)0;
5533 if (unlikely(var_n_kwnull
== NULL
)) {
5534 PRINT_ERROR("Runtime error: %s", "Cast failed");
5535 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6563);
5538 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_n_kwnull
; /* _n_kwnull on <self:AAsNotnullExpr> */
5539 if (var_n_kwnull
== NULL
) {
5540 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5541 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6564);
5544 { /* Inline parser_nodes#ANode#parent= (var_n_kwnull,self) on <var_n_kwnull:nullable TKwnull> */
5545 if (unlikely(var_n_kwnull
== NULL
)) {
5546 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5547 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
5550 var_n_kwnull
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnull:nullable TKwnull> */
5551 RET_LABEL11
:(void)0;
5554 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAsNotnullExpr> */
5556 if (var_n_cpar
== NULL
) {
5557 var13
= 0; /* is null */
5559 var13
= 1; /* arg is null and recv is not */
5562 { /* Inline kernel#Object#!= (var_n_cpar,var12) on <var_n_cpar:nullable TCpar> */
5565 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)>*/;
5571 RET_LABEL15
:(void)0;
5577 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
5578 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
5579 RET_LABEL19
:(void)0;
5586 /* method parser_prod#AAsNotnullExpr#init_aasnotnullexpr for (self: Object, nullable AExpr, nullable TKwas, nullable TOpar, nullable TKwnot, nullable TKwnull, nullable TCpar) */
5587 void VIRTUAL_parser_prod__AAsNotnullExpr__init_aasnotnullexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
5588 parser_prod__AAsNotnullExpr__init_aasnotnullexpr(self
, p0
, p1
, p2
, p3
, p4
, p5
); /* Direct call parser_prod#AAsNotnullExpr#init_aasnotnullexpr on <self:Object(AAsNotnullExpr)>*/
5591 /* method parser_prod#AAsNotnullExpr#replace_child for (self: AAsNotnullExpr, ANode, nullable ANode) */
5592 void parser_prod__AAsNotnullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5593 val
* var_old_child
/* var old_child: ANode */;
5594 val
* var_new_child
/* var new_child: nullable ANode */;
5595 val
* var
/* : AExpr */;
5596 short int var1
/* : Bool */;
5597 short int var2
/* : Bool */;
5598 val
* var_other
/* var other: nullable Object */;
5599 short int var4
/* : Bool */;
5600 short int var6
/* : Bool */;
5601 short int var7
/* : Bool */;
5604 const char* var_class_name
;
5605 val
* var8
/* : TKwas */;
5606 short int var9
/* : Bool */;
5607 short int var10
/* : Bool */;
5608 short int var12
/* : Bool */;
5609 short int var14
/* : Bool */;
5610 short int var15
/* : Bool */;
5613 const char* var_class_name18
;
5614 val
* var19
/* : nullable TOpar */;
5615 short int var20
/* : Bool */;
5616 short int var21
/* : Bool */;
5617 short int var23
/* : Bool */;
5618 short int var25
/* : Bool */;
5619 short int var26
/* : Bool */;
5622 const char* var_class_name29
;
5623 val
* var30
/* : TKwnot */;
5624 short int var31
/* : Bool */;
5625 short int var32
/* : Bool */;
5626 short int var34
/* : Bool */;
5627 short int var36
/* : Bool */;
5628 short int var37
/* : Bool */;
5631 const char* var_class_name40
;
5632 val
* var41
/* : TKwnull */;
5633 short int var42
/* : Bool */;
5634 short int var43
/* : Bool */;
5635 short int var45
/* : Bool */;
5636 short int var47
/* : Bool */;
5637 short int var48
/* : Bool */;
5640 const char* var_class_name51
;
5641 val
* var52
/* : nullable TCpar */;
5642 short int var53
/* : Bool */;
5643 short int var54
/* : Bool */;
5644 short int var56
/* : Bool */;
5645 short int var58
/* : Bool */;
5646 short int var59
/* : Bool */;
5649 const char* var_class_name62
;
5652 var
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
5653 if (unlikely(var
== NULL
)) {
5654 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
5655 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6571);
5659 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
5660 var_other
= var_old_child
;
5662 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
5663 var6
= var
== var_other
;
5676 /* <var_new_child:nullable ANode> isa AExpr */
5677 cltype
= type_parser_nodes__AExpr
.color
;
5678 idtype
= type_parser_nodes__AExpr
.id
;
5679 if(var_new_child
== NULL
) {
5682 if(cltype
>= var_new_child
->type
->table_size
) {
5685 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5688 if (unlikely(!var7
)) {
5689 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5690 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
5691 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6572);
5695 parser_prod__AAsNotnullExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on <self:AAsNotnullExpr>*/
5700 var8
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
5701 if (unlikely(var8
== NULL
)) {
5702 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5703 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6575);
5707 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
5708 var_other
= var_old_child
;
5710 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
5711 var14
= var8
== var_other
;
5714 RET_LABEL13
:(void)0;
5719 RET_LABEL11
:(void)0;
5724 /* <var_new_child:nullable ANode> isa TKwas */
5725 cltype16
= type_parser_nodes__TKwas
.color
;
5726 idtype17
= type_parser_nodes__TKwas
.id
;
5727 if(var_new_child
== NULL
) {
5730 if(cltype16
>= var_new_child
->type
->table_size
) {
5733 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5736 if (unlikely(!var15
)) {
5737 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5738 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
5739 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6576);
5743 parser_prod__AAsNotnullExpr__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on <self:AAsNotnullExpr>*/
5748 var19
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
5749 if (var19
== NULL
) {
5750 var20
= 0; /* <var_old_child:ANode> cannot be null */
5752 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable TOpar> */
5753 var_other
= var_old_child
;
5755 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable TOpar(TOpar)> */
5756 var25
= var19
== var_other
;
5759 RET_LABEL24
:(void)0;
5764 RET_LABEL22
:(void)0;
5769 /* <var_new_child:nullable ANode> isa nullable TOpar */
5770 cltype27
= type_nullable_parser_nodes__TOpar
.color
;
5771 idtype28
= type_nullable_parser_nodes__TOpar
.id
;
5772 if(var_new_child
== NULL
) {
5775 if(cltype27
>= var_new_child
->type
->table_size
) {
5778 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5781 if (unlikely(!var26
)) {
5782 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5783 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name29
);
5784 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6580);
5788 parser_prod__AAsNotnullExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on <self:AAsNotnullExpr>*/
5793 var30
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
5794 if (unlikely(var30
== NULL
)) {
5795 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
5796 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6583);
5800 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwnot> */
5801 var_other
= var_old_child
;
5803 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwnot> */
5804 var36
= var30
== var_other
;
5807 RET_LABEL35
:(void)0;
5812 RET_LABEL33
:(void)0;
5817 /* <var_new_child:nullable ANode> isa TKwnot */
5818 cltype38
= type_parser_nodes__TKwnot
.color
;
5819 idtype39
= type_parser_nodes__TKwnot
.id
;
5820 if(var_new_child
== NULL
) {
5823 if(cltype38
>= var_new_child
->type
->table_size
) {
5826 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
5829 if (unlikely(!var37
)) {
5830 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5831 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name40
);
5832 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6584);
5836 parser_prod__AAsNotnullExpr__n_kwnot_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on <self:AAsNotnullExpr>*/
5841 var41
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
5842 if (unlikely(var41
== NULL
)) {
5843 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
5844 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6587);
5848 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:TKwnull> */
5849 var_other
= var_old_child
;
5851 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:TKwnull> */
5852 var47
= var41
== var_other
;
5855 RET_LABEL46
:(void)0;
5860 RET_LABEL44
:(void)0;
5865 /* <var_new_child:nullable ANode> isa TKwnull */
5866 cltype49
= type_parser_nodes__TKwnull
.color
;
5867 idtype50
= type_parser_nodes__TKwnull
.id
;
5868 if(var_new_child
== NULL
) {
5871 if(cltype49
>= var_new_child
->type
->table_size
) {
5874 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
5877 if (unlikely(!var48
)) {
5878 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5879 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name51
);
5880 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6588);
5884 parser_prod__AAsNotnullExpr__n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on <self:AAsNotnullExpr>*/
5889 var52
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
5890 if (var52
== NULL
) {
5891 var53
= 0; /* <var_old_child:ANode> cannot be null */
5893 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable TCpar> */
5894 var_other
= var_old_child
;
5896 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable TCpar(TCpar)> */
5897 var58
= var52
== var_other
;
5900 RET_LABEL57
:(void)0;
5905 RET_LABEL55
:(void)0;
5910 /* <var_new_child:nullable ANode> isa nullable TCpar */
5911 cltype60
= type_nullable_parser_nodes__TCpar
.color
;
5912 idtype61
= type_nullable_parser_nodes__TCpar
.id
;
5913 if(var_new_child
== NULL
) {
5916 if(cltype60
>= var_new_child
->type
->table_size
) {
5919 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
5922 if (unlikely(!var59
)) {
5923 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5924 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name62
);
5925 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6592);
5929 parser_prod__AAsNotnullExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on <self:AAsNotnullExpr>*/
5936 /* method parser_prod#AAsNotnullExpr#replace_child for (self: Object, ANode, nullable ANode) */
5937 void VIRTUAL_parser_prod__AAsNotnullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
5938 parser_prod__AAsNotnullExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNotnullExpr#replace_child on <self:Object(AAsNotnullExpr)>*/
5941 /* method parser_prod#AAsNotnullExpr#n_expr= for (self: AAsNotnullExpr, AExpr) */
5942 void parser_prod__AAsNotnullExpr__n_expr_61d(val
* self
, val
* p0
) {
5943 val
* var_node
/* var node: AExpr */;
5945 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAsNotnullExpr> */
5947 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
5948 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
5954 /* method parser_prod#AAsNotnullExpr#n_expr= for (self: Object, AExpr) */
5955 void VIRTUAL_parser_prod__AAsNotnullExpr__n_expr_61d(val
* self
, val
* p0
) {
5956 parser_prod__AAsNotnullExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on <self:Object(AAsNotnullExpr)>*/
5959 /* method parser_prod#AAsNotnullExpr#n_kwas= for (self: AAsNotnullExpr, TKwas) */
5960 void parser_prod__AAsNotnullExpr__n_kwas_61d(val
* self
, val
* p0
) {
5961 val
* var_node
/* var node: TKwas */;
5963 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotnullExpr> */
5965 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5966 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5972 /* method parser_prod#AAsNotnullExpr#n_kwas= for (self: Object, TKwas) */
5973 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwas_61d(val
* self
, val
* p0
) {
5974 parser_prod__AAsNotnullExpr__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on <self:Object(AAsNotnullExpr)>*/
5977 /* method parser_prod#AAsNotnullExpr#n_opar= for (self: AAsNotnullExpr, nullable TOpar) */
5978 void parser_prod__AAsNotnullExpr__n_opar_61d(val
* self
, val
* p0
) {
5979 val
* var_node
/* var node: nullable TOpar */;
5980 val
* var
/* : null */;
5981 short int var1
/* : Bool */;
5982 short int var2
/* : Bool */;
5983 val
* var_other
/* var other: nullable Object */;
5984 short int var4
/* : Bool */;
5985 short int var5
/* : Bool */;
5986 short int var6
/* : Bool */;
5988 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AAsNotnullExpr> */
5990 if (var_node
== NULL
) {
5991 var1
= 0; /* is null */
5993 var1
= 1; /* arg is null and recv is not */
5996 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
5999 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
6011 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
6012 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
6020 /* method parser_prod#AAsNotnullExpr#n_opar= for (self: Object, nullable TOpar) */
6021 void VIRTUAL_parser_prod__AAsNotnullExpr__n_opar_61d(val
* self
, val
* p0
) {
6022 parser_prod__AAsNotnullExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on <self:Object(AAsNotnullExpr)>*/
6025 /* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: AAsNotnullExpr, TKwnot) */
6026 void parser_prod__AAsNotnullExpr__n_kwnot_61d(val
* self
, val
* p0
) {
6027 val
* var_node
/* var node: TKwnot */;
6029 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotnullExpr> */
6031 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnot> */
6032 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnot> */
6038 /* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: Object, TKwnot) */
6039 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnot_61d(val
* self
, val
* p0
) {
6040 parser_prod__AAsNotnullExpr__n_kwnot_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on <self:Object(AAsNotnullExpr)>*/
6043 /* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: AAsNotnullExpr, TKwnull) */
6044 void parser_prod__AAsNotnullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
6045 val
* var_node
/* var node: TKwnull */;
6047 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:AAsNotnullExpr> */
6049 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
6050 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
6056 /* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: Object, TKwnull) */
6057 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
6058 parser_prod__AAsNotnullExpr__n_kwnull_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on <self:Object(AAsNotnullExpr)>*/
6061 /* method parser_prod#AAsNotnullExpr#n_cpar= for (self: AAsNotnullExpr, nullable TCpar) */
6062 void parser_prod__AAsNotnullExpr__n_cpar_61d(val
* self
, val
* p0
) {
6063 val
* var_node
/* var node: nullable TCpar */;
6064 val
* var
/* : null */;
6065 short int var1
/* : Bool */;
6066 short int var2
/* : Bool */;
6067 val
* var_other
/* var other: nullable Object */;
6068 short int var4
/* : Bool */;
6069 short int var5
/* : Bool */;
6070 short int var6
/* : Bool */;
6072 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsNotnullExpr> */
6074 if (var_node
== NULL
) {
6075 var1
= 0; /* is null */
6077 var1
= 1; /* arg is null and recv is not */
6080 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
6083 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
6095 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
6096 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
6104 /* method parser_prod#AAsNotnullExpr#n_cpar= for (self: Object, nullable TCpar) */
6105 void VIRTUAL_parser_prod__AAsNotnullExpr__n_cpar_61d(val
* self
, val
* p0
) {
6106 parser_prod__AAsNotnullExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on <self:Object(AAsNotnullExpr)>*/
6109 /* method parser_prod#AAsNotnullExpr#visit_all for (self: AAsNotnullExpr, Visitor) */
6110 void parser_prod__AAsNotnullExpr__visit_all(val
* self
, val
* p0
) {
6111 val
* var_v
/* var v: Visitor */;
6112 val
* var
/* : AExpr */;
6113 val
* var1
/* : TKwas */;
6114 val
* var2
/* : nullable TOpar */;
6115 val
* var3
/* : TKwnot */;
6116 val
* var4
/* : TKwnull */;
6117 val
* var5
/* : nullable TCpar */;
6119 var
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
6120 if (unlikely(var
== NULL
)) {
6121 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6122 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6631);
6126 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6128 var1
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
6129 if (unlikely(var1
== NULL
)) {
6130 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
6131 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6632);
6135 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6137 var2
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
6139 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6141 var3
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
6142 if (unlikely(var3
== NULL
)) {
6143 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
6144 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6634);
6148 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6150 var4
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
6151 if (unlikely(var4
== NULL
)) {
6152 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
6153 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6635);
6157 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6159 var5
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
6161 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6165 /* method parser_prod#AAsNotnullExpr#visit_all for (self: Object, Visitor) */
6166 void VIRTUAL_parser_prod__AAsNotnullExpr__visit_all(val
* self
, val
* p0
) {
6167 parser_prod__AAsNotnullExpr__visit_all(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#visit_all on <self:Object(AAsNotnullExpr)>*/
6170 /* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: AIssetAttrExpr, nullable TKwisset, nullable AExpr, nullable TAttrid) */
6171 void parser_prod__AIssetAttrExpr__init_aissetattrexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
6172 val
* var_n_kwisset
/* var n_kwisset: nullable TKwisset */;
6173 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6174 val
* var_n_id
/* var n_id: nullable TAttrid */;
6178 if (unlikely(var_n_kwisset
== NULL
)) {
6179 PRINT_ERROR("Runtime error: %s", "Cast failed");
6180 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6646);
6183 self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_n_kwisset
; /* _n_kwisset on <self:AIssetAttrExpr> */
6184 if (var_n_kwisset
== NULL
) {
6185 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6186 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6647);
6189 { /* Inline parser_nodes#ANode#parent= (var_n_kwisset,self) on <var_n_kwisset:nullable TKwisset> */
6190 if (unlikely(var_n_kwisset
== NULL
)) {
6191 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6192 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6195 var_n_kwisset
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwisset:nullable TKwisset> */
6199 if (unlikely(var_n_expr
== NULL
)) {
6200 PRINT_ERROR("Runtime error: %s", "Cast failed");
6201 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6648);
6204 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIssetAttrExpr> */
6205 if (var_n_expr
== NULL
) {
6206 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6207 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6649);
6210 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6211 if (unlikely(var_n_expr
== NULL
)) {
6212 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6213 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6216 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6220 if (unlikely(var_n_id
== NULL
)) {
6221 PRINT_ERROR("Runtime error: %s", "Cast failed");
6222 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6650);
6225 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AIssetAttrExpr> */
6226 if (var_n_id
== NULL
) {
6227 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6228 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6651);
6231 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
6232 if (unlikely(var_n_id
== NULL
)) {
6233 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6234 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6237 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
6243 /* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: Object, nullable TKwisset, nullable AExpr, nullable TAttrid) */
6244 void VIRTUAL_parser_prod__AIssetAttrExpr__init_aissetattrexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
6245 parser_prod__AIssetAttrExpr__init_aissetattrexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#AIssetAttrExpr#init_aissetattrexpr on <self:Object(AIssetAttrExpr)>*/
6248 /* method parser_prod#AIssetAttrExpr#replace_child for (self: AIssetAttrExpr, ANode, nullable ANode) */
6249 void parser_prod__AIssetAttrExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6250 val
* var_old_child
/* var old_child: ANode */;
6251 val
* var_new_child
/* var new_child: nullable ANode */;
6252 val
* var
/* : TKwisset */;
6253 short int var1
/* : Bool */;
6254 short int var2
/* : Bool */;
6255 val
* var_other
/* var other: nullable Object */;
6256 short int var4
/* : Bool */;
6257 short int var6
/* : Bool */;
6258 short int var7
/* : Bool */;
6261 const char* var_class_name
;
6262 val
* var8
/* : AExpr */;
6263 short int var9
/* : Bool */;
6264 short int var10
/* : Bool */;
6265 short int var12
/* : Bool */;
6266 short int var14
/* : Bool */;
6267 short int var15
/* : Bool */;
6270 const char* var_class_name18
;
6271 val
* var19
/* : TAttrid */;
6272 short int var20
/* : Bool */;
6273 short int var21
/* : Bool */;
6274 short int var23
/* : Bool */;
6275 short int var25
/* : Bool */;
6276 short int var26
/* : Bool */;
6279 const char* var_class_name29
;
6282 var
= self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
6283 if (unlikely(var
== NULL
)) {
6284 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
6285 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6656);
6289 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwisset> */
6290 var_other
= var_old_child
;
6292 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwisset> */
6293 var6
= var
== var_other
;
6306 /* <var_new_child:nullable ANode> isa TKwisset */
6307 cltype
= type_parser_nodes__TKwisset
.color
;
6308 idtype
= type_parser_nodes__TKwisset
.id
;
6309 if(var_new_child
== NULL
) {
6312 if(cltype
>= var_new_child
->type
->table_size
) {
6315 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6318 if (unlikely(!var7
)) {
6319 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6320 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwisset", var_class_name
);
6321 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6657);
6325 parser_prod__AIssetAttrExpr__n_kwisset_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on <self:AIssetAttrExpr>*/
6330 var8
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
6331 if (unlikely(var8
== NULL
)) {
6332 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6333 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6660);
6337 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
6338 var_other
= var_old_child
;
6340 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
6341 var14
= var8
== var_other
;
6344 RET_LABEL13
:(void)0;
6349 RET_LABEL11
:(void)0;
6354 /* <var_new_child:nullable ANode> isa AExpr */
6355 cltype16
= type_parser_nodes__AExpr
.color
;
6356 idtype17
= type_parser_nodes__AExpr
.id
;
6357 if(var_new_child
== NULL
) {
6360 if(cltype16
>= var_new_child
->type
->table_size
) {
6363 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6366 if (unlikely(!var15
)) {
6367 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6368 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
6369 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6661);
6373 parser_prod__AIssetAttrExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on <self:AIssetAttrExpr>*/
6378 var19
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
6379 if (unlikely(var19
== NULL
)) {
6380 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6381 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6664);
6385 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TAttrid> */
6386 var_other
= var_old_child
;
6388 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TAttrid> */
6389 var25
= var19
== var_other
;
6392 RET_LABEL24
:(void)0;
6397 RET_LABEL22
:(void)0;
6402 /* <var_new_child:nullable ANode> isa TAttrid */
6403 cltype27
= type_parser_nodes__TAttrid
.color
;
6404 idtype28
= type_parser_nodes__TAttrid
.id
;
6405 if(var_new_child
== NULL
) {
6408 if(cltype27
>= var_new_child
->type
->table_size
) {
6411 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
6414 if (unlikely(!var26
)) {
6415 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6416 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name29
);
6417 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6665);
6421 parser_prod__AIssetAttrExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_id= on <self:AIssetAttrExpr>*/
6428 /* method parser_prod#AIssetAttrExpr#replace_child for (self: Object, ANode, nullable ANode) */
6429 void VIRTUAL_parser_prod__AIssetAttrExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6430 parser_prod__AIssetAttrExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AIssetAttrExpr#replace_child on <self:Object(AIssetAttrExpr)>*/
6433 /* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: AIssetAttrExpr, TKwisset) */
6434 void parser_prod__AIssetAttrExpr__n_kwisset_61d(val
* self
, val
* p0
) {
6435 val
* var_node
/* var node: TKwisset */;
6437 self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_node
; /* _n_kwisset on <self:AIssetAttrExpr> */
6439 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwisset> */
6440 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwisset> */
6446 /* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: Object, TKwisset) */
6447 void VIRTUAL_parser_prod__AIssetAttrExpr__n_kwisset_61d(val
* self
, val
* p0
) {
6448 parser_prod__AIssetAttrExpr__n_kwisset_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on <self:Object(AIssetAttrExpr)>*/
6451 /* method parser_prod#AIssetAttrExpr#n_expr= for (self: AIssetAttrExpr, AExpr) */
6452 void parser_prod__AIssetAttrExpr__n_expr_61d(val
* self
, val
* p0
) {
6453 val
* var_node
/* var node: AExpr */;
6455 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIssetAttrExpr> */
6457 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6458 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6464 /* method parser_prod#AIssetAttrExpr#n_expr= for (self: Object, AExpr) */
6465 void VIRTUAL_parser_prod__AIssetAttrExpr__n_expr_61d(val
* self
, val
* p0
) {
6466 parser_prod__AIssetAttrExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on <self:Object(AIssetAttrExpr)>*/
6469 /* method parser_prod#AIssetAttrExpr#n_id= for (self: AIssetAttrExpr, TAttrid) */
6470 void parser_prod__AIssetAttrExpr__n_id_61d(val
* self
, val
* p0
) {
6471 val
* var_node
/* var node: TAttrid */;
6473 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AIssetAttrExpr> */
6475 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
6476 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
6482 /* method parser_prod#AIssetAttrExpr#n_id= for (self: Object, TAttrid) */
6483 void VIRTUAL_parser_prod__AIssetAttrExpr__n_id_61d(val
* self
, val
* p0
) {
6484 parser_prod__AIssetAttrExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_id= on <self:Object(AIssetAttrExpr)>*/
6487 /* method parser_prod#AIssetAttrExpr#visit_all for (self: AIssetAttrExpr, Visitor) */
6488 void parser_prod__AIssetAttrExpr__visit_all(val
* self
, val
* p0
) {
6489 val
* var_v
/* var v: Visitor */;
6490 val
* var
/* : TKwisset */;
6491 val
* var1
/* : AExpr */;
6492 val
* var2
/* : TAttrid */;
6494 var
= self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
6495 if (unlikely(var
== NULL
)) {
6496 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
6497 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6689);
6501 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6503 var1
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
6504 if (unlikely(var1
== NULL
)) {
6505 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6506 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6690);
6510 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6512 var2
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
6513 if (unlikely(var2
== NULL
)) {
6514 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6515 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6691);
6519 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6523 /* method parser_prod#AIssetAttrExpr#visit_all for (self: Object, Visitor) */
6524 void VIRTUAL_parser_prod__AIssetAttrExpr__visit_all(val
* self
, val
* p0
) {
6525 parser_prod__AIssetAttrExpr__visit_all(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#visit_all on <self:Object(AIssetAttrExpr)>*/
6528 /* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: ADebugTypeExpr, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */
6529 void parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6530 val
* var_n_kwdebug
/* var n_kwdebug: nullable TKwdebug */;
6531 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
6532 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6533 val
* var_n_type
/* var n_type: nullable AType */;
6538 if (unlikely(var_n_kwdebug
== NULL
)) {
6539 PRINT_ERROR("Runtime error: %s", "Cast failed");
6540 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6702);
6543 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_n_kwdebug
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6544 if (var_n_kwdebug
== NULL
) {
6545 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6546 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6703);
6549 { /* Inline parser_nodes#ANode#parent= (var_n_kwdebug,self) on <var_n_kwdebug:nullable TKwdebug> */
6550 if (unlikely(var_n_kwdebug
== NULL
)) {
6551 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6552 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6555 var_n_kwdebug
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdebug:nullable TKwdebug> */
6559 if (unlikely(var_n_kwtype
== NULL
)) {
6560 PRINT_ERROR("Runtime error: %s", "Cast failed");
6561 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6704);
6564 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ADebugTypeExpr> */
6565 if (var_n_kwtype
== NULL
) {
6566 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6567 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6705);
6570 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
6571 if (unlikely(var_n_kwtype
== NULL
)) {
6572 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6573 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6576 var_n_kwtype
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
6580 if (unlikely(var_n_expr
== NULL
)) {
6581 PRINT_ERROR("Runtime error: %s", "Cast failed");
6582 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6706);
6585 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ADebugTypeExpr> */
6586 if (var_n_expr
== NULL
) {
6587 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6588 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6707);
6591 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
6592 if (unlikely(var_n_expr
== NULL
)) {
6593 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6594 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6597 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
6601 if (unlikely(var_n_type
== NULL
)) {
6602 PRINT_ERROR("Runtime error: %s", "Cast failed");
6603 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6708);
6606 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ADebugTypeExpr> */
6607 if (var_n_type
== NULL
) {
6608 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6609 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6709);
6612 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
6613 if (unlikely(var_n_type
== NULL
)) {
6614 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6615 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
6618 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
6624 /* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: Object, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */
6625 void VIRTUAL_parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6626 parser_prod__ADebugTypeExpr__init_adebugtypeexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ADebugTypeExpr#init_adebugtypeexpr on <self:Object(ADebugTypeExpr)>*/
6629 /* method parser_prod#ADebugTypeExpr#replace_child for (self: ADebugTypeExpr, ANode, nullable ANode) */
6630 void parser_prod__ADebugTypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6631 val
* var_old_child
/* var old_child: ANode */;
6632 val
* var_new_child
/* var new_child: nullable ANode */;
6633 val
* var
/* : TKwdebug */;
6634 short int var1
/* : Bool */;
6635 short int var2
/* : Bool */;
6636 val
* var_other
/* var other: nullable Object */;
6637 short int var4
/* : Bool */;
6638 short int var6
/* : Bool */;
6639 short int var7
/* : Bool */;
6642 const char* var_class_name
;
6643 val
* var8
/* : TKwtype */;
6644 short int var9
/* : Bool */;
6645 short int var10
/* : Bool */;
6646 short int var12
/* : Bool */;
6647 short int var14
/* : Bool */;
6648 short int var15
/* : Bool */;
6651 const char* var_class_name18
;
6652 val
* var19
/* : AExpr */;
6653 short int var20
/* : Bool */;
6654 short int var21
/* : Bool */;
6655 short int var23
/* : Bool */;
6656 short int var25
/* : Bool */;
6657 short int var26
/* : Bool */;
6660 const char* var_class_name29
;
6661 val
* var30
/* : AType */;
6662 short int var31
/* : Bool */;
6663 short int var32
/* : Bool */;
6664 short int var34
/* : Bool */;
6665 short int var36
/* : Bool */;
6666 short int var37
/* : Bool */;
6669 const char* var_class_name40
;
6672 var
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6673 if (unlikely(var
== NULL
)) {
6674 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
6675 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6714);
6679 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdebug> */
6680 var_other
= var_old_child
;
6682 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdebug> */
6683 var6
= var
== var_other
;
6696 /* <var_new_child:nullable ANode> isa TKwdebug */
6697 cltype
= type_parser_nodes__TKwdebug
.color
;
6698 idtype
= type_parser_nodes__TKwdebug
.id
;
6699 if(var_new_child
== NULL
) {
6702 if(cltype
>= var_new_child
->type
->table_size
) {
6705 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6708 if (unlikely(!var7
)) {
6709 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6710 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdebug", var_class_name
);
6711 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6715);
6715 parser_prod__ADebugTypeExpr__n_kwdebug_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on <self:ADebugTypeExpr>*/
6720 var8
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
6721 if (unlikely(var8
== NULL
)) {
6722 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
6723 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6718);
6727 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwtype> */
6728 var_other
= var_old_child
;
6730 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwtype> */
6731 var14
= var8
== var_other
;
6734 RET_LABEL13
:(void)0;
6739 RET_LABEL11
:(void)0;
6744 /* <var_new_child:nullable ANode> isa TKwtype */
6745 cltype16
= type_parser_nodes__TKwtype
.color
;
6746 idtype17
= type_parser_nodes__TKwtype
.id
;
6747 if(var_new_child
== NULL
) {
6750 if(cltype16
>= var_new_child
->type
->table_size
) {
6753 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6756 if (unlikely(!var15
)) {
6757 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6758 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name18
);
6759 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6719);
6763 parser_prod__ADebugTypeExpr__n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on <self:ADebugTypeExpr>*/
6768 var19
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
6769 if (unlikely(var19
== NULL
)) {
6770 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6771 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6722);
6775 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
6776 var_other
= var_old_child
;
6778 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
6779 var25
= var19
== var_other
;
6782 RET_LABEL24
:(void)0;
6787 RET_LABEL22
:(void)0;
6792 /* <var_new_child:nullable ANode> isa AExpr */
6793 cltype27
= type_parser_nodes__AExpr
.color
;
6794 idtype28
= type_parser_nodes__AExpr
.id
;
6795 if(var_new_child
== NULL
) {
6798 if(cltype27
>= var_new_child
->type
->table_size
) {
6801 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
6804 if (unlikely(!var26
)) {
6805 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6806 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
6807 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6723);
6811 parser_prod__ADebugTypeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on <self:ADebugTypeExpr>*/
6816 var30
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
6817 if (unlikely(var30
== NULL
)) {
6818 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6819 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6726);
6823 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
6824 var_other
= var_old_child
;
6826 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
6827 var36
= var30
== var_other
;
6830 RET_LABEL35
:(void)0;
6835 RET_LABEL33
:(void)0;
6840 /* <var_new_child:nullable ANode> isa AType */
6841 cltype38
= type_parser_nodes__AType
.color
;
6842 idtype39
= type_parser_nodes__AType
.id
;
6843 if(var_new_child
== NULL
) {
6846 if(cltype38
>= var_new_child
->type
->table_size
) {
6849 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
6852 if (unlikely(!var37
)) {
6853 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6854 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
6855 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6727);
6859 parser_prod__ADebugTypeExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_type= on <self:ADebugTypeExpr>*/
6866 /* method parser_prod#ADebugTypeExpr#replace_child for (self: Object, ANode, nullable ANode) */
6867 void VIRTUAL_parser_prod__ADebugTypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
6868 parser_prod__ADebugTypeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADebugTypeExpr#replace_child on <self:Object(ADebugTypeExpr)>*/
6871 /* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: ADebugTypeExpr, TKwdebug) */
6872 void parser_prod__ADebugTypeExpr__n_kwdebug_61d(val
* self
, val
* p0
) {
6873 val
* var_node
/* var node: TKwdebug */;
6875 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_node
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6877 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdebug> */
6878 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdebug> */
6884 /* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: Object, TKwdebug) */
6885 void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwdebug_61d(val
* self
, val
* p0
) {
6886 parser_prod__ADebugTypeExpr__n_kwdebug_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on <self:Object(ADebugTypeExpr)>*/
6889 /* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: ADebugTypeExpr, TKwtype) */
6890 void parser_prod__ADebugTypeExpr__n_kwtype_61d(val
* self
, val
* p0
) {
6891 val
* var_node
/* var node: TKwtype */;
6893 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ADebugTypeExpr> */
6895 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
6896 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
6902 /* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: Object, TKwtype) */
6903 void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwtype_61d(val
* self
, val
* p0
) {
6904 parser_prod__ADebugTypeExpr__n_kwtype_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on <self:Object(ADebugTypeExpr)>*/
6907 /* method parser_prod#ADebugTypeExpr#n_expr= for (self: ADebugTypeExpr, AExpr) */
6908 void parser_prod__ADebugTypeExpr__n_expr_61d(val
* self
, val
* p0
) {
6909 val
* var_node
/* var node: AExpr */;
6911 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ADebugTypeExpr> */
6913 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
6914 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
6920 /* method parser_prod#ADebugTypeExpr#n_expr= for (self: Object, AExpr) */
6921 void VIRTUAL_parser_prod__ADebugTypeExpr__n_expr_61d(val
* self
, val
* p0
) {
6922 parser_prod__ADebugTypeExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on <self:Object(ADebugTypeExpr)>*/
6925 /* method parser_prod#ADebugTypeExpr#n_type= for (self: ADebugTypeExpr, AType) */
6926 void parser_prod__ADebugTypeExpr__n_type_61d(val
* self
, val
* p0
) {
6927 val
* var_node
/* var node: AType */;
6929 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
= var_node
; /* _n_type on <self:ADebugTypeExpr> */
6931 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
6932 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
6938 /* method parser_prod#ADebugTypeExpr#n_type= for (self: Object, AType) */
6939 void VIRTUAL_parser_prod__ADebugTypeExpr__n_type_61d(val
* self
, val
* p0
) {
6940 parser_prod__ADebugTypeExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_type= on <self:Object(ADebugTypeExpr)>*/
6943 /* method parser_prod#ADebugTypeExpr#visit_all for (self: ADebugTypeExpr, Visitor) */
6944 void parser_prod__ADebugTypeExpr__visit_all(val
* self
, val
* p0
) {
6945 val
* var_v
/* var v: Visitor */;
6946 val
* var
/* : TKwdebug */;
6947 val
* var1
/* : TKwtype */;
6948 val
* var2
/* : AExpr */;
6949 val
* var3
/* : AType */;
6951 var
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
6952 if (unlikely(var
== NULL
)) {
6953 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
6954 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6756);
6958 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6960 var1
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
6961 if (unlikely(var1
== NULL
)) {
6962 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
6963 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6757);
6967 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6969 var2
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
6970 if (unlikely(var2
== NULL
)) {
6971 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6972 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6758);
6976 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6978 var3
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
6979 if (unlikely(var3
== NULL
)) {
6980 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
6981 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6759);
6985 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6989 /* method parser_prod#ADebugTypeExpr#visit_all for (self: Object, Visitor) */
6990 void VIRTUAL_parser_prod__ADebugTypeExpr__visit_all(val
* self
, val
* p0
) {
6991 parser_prod__ADebugTypeExpr__visit_all(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#visit_all on <self:Object(ADebugTypeExpr)>*/
6994 /* method parser_prod#AVarargExpr#init_avarargexpr for (self: AVarargExpr, nullable AExpr, nullable TDotdotdot) */
6995 void parser_prod__AVarargExpr__init_avarargexpr(val
* self
, val
* p0
, val
* p1
) {
6996 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6997 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
6999 var_n_dotdotdot
= p1
;
7000 if (unlikely(var_n_expr
== NULL
)) {
7001 PRINT_ERROR("Runtime error: %s", "Cast failed");
7002 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6768);
7005 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVarargExpr> */
7006 if (var_n_expr
== NULL
) {
7007 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7008 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6769);
7011 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
7012 if (unlikely(var_n_expr
== NULL
)) {
7013 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7014 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7017 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
7021 if (unlikely(var_n_dotdotdot
== NULL
)) {
7022 PRINT_ERROR("Runtime error: %s", "Cast failed");
7023 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6770);
7026 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AVarargExpr> */
7027 if (var_n_dotdotdot
== NULL
) {
7028 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7029 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6771);
7032 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot> */
7033 if (unlikely(var_n_dotdotdot
== NULL
)) {
7034 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7035 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7038 var_n_dotdotdot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot> */
7044 /* method parser_prod#AVarargExpr#init_avarargexpr for (self: Object, nullable AExpr, nullable TDotdotdot) */
7045 void VIRTUAL_parser_prod__AVarargExpr__init_avarargexpr(val
* self
, val
* p0
, val
* p1
) {
7046 parser_prod__AVarargExpr__init_avarargexpr(self
, p0
, p1
); /* Direct call parser_prod#AVarargExpr#init_avarargexpr on <self:Object(AVarargExpr)>*/
7049 /* method parser_prod#AVarargExpr#replace_child for (self: AVarargExpr, ANode, nullable ANode) */
7050 void parser_prod__AVarargExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7051 val
* var_old_child
/* var old_child: ANode */;
7052 val
* var_new_child
/* var new_child: nullable ANode */;
7053 val
* var
/* : AExpr */;
7054 short int var1
/* : Bool */;
7055 short int var2
/* : Bool */;
7056 val
* var_other
/* var other: nullable Object */;
7057 short int var4
/* : Bool */;
7058 short int var6
/* : Bool */;
7059 short int var7
/* : Bool */;
7062 const char* var_class_name
;
7063 val
* var8
/* : TDotdotdot */;
7064 short int var9
/* : Bool */;
7065 short int var10
/* : Bool */;
7066 short int var12
/* : Bool */;
7067 short int var14
/* : Bool */;
7068 short int var15
/* : Bool */;
7071 const char* var_class_name18
;
7074 var
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
7075 if (unlikely(var
== NULL
)) {
7076 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7077 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6776);
7081 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
7082 var_other
= var_old_child
;
7084 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
7085 var6
= var
== var_other
;
7098 /* <var_new_child:nullable ANode> isa AExpr */
7099 cltype
= type_parser_nodes__AExpr
.color
;
7100 idtype
= type_parser_nodes__AExpr
.id
;
7101 if(var_new_child
== NULL
) {
7104 if(cltype
>= var_new_child
->type
->table_size
) {
7107 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7110 if (unlikely(!var7
)) {
7111 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7112 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
7113 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6777);
7117 parser_prod__AVarargExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_expr= on <self:AVarargExpr>*/
7122 var8
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
7123 if (unlikely(var8
== NULL
)) {
7124 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
7125 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6780);
7129 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TDotdotdot> */
7130 var_other
= var_old_child
;
7132 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TDotdotdot> */
7133 var14
= var8
== var_other
;
7136 RET_LABEL13
:(void)0;
7141 RET_LABEL11
:(void)0;
7146 /* <var_new_child:nullable ANode> isa TDotdotdot */
7147 cltype16
= type_parser_nodes__TDotdotdot
.color
;
7148 idtype17
= type_parser_nodes__TDotdotdot
.id
;
7149 if(var_new_child
== NULL
) {
7152 if(cltype16
>= var_new_child
->type
->table_size
) {
7155 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7158 if (unlikely(!var15
)) {
7159 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7160 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdotdot", var_class_name18
);
7161 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6781);
7165 parser_prod__AVarargExpr__n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on <self:AVarargExpr>*/
7172 /* method parser_prod#AVarargExpr#replace_child for (self: Object, ANode, nullable ANode) */
7173 void VIRTUAL_parser_prod__AVarargExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
7174 parser_prod__AVarargExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AVarargExpr#replace_child on <self:Object(AVarargExpr)>*/
7177 /* method parser_prod#AVarargExpr#n_expr= for (self: AVarargExpr, AExpr) */
7178 void parser_prod__AVarargExpr__n_expr_61d(val
* self
, val
* p0
) {
7179 val
* var_node
/* var node: AExpr */;
7181 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVarargExpr> */
7183 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
7184 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
7190 /* method parser_prod#AVarargExpr#n_expr= for (self: Object, AExpr) */
7191 void VIRTUAL_parser_prod__AVarargExpr__n_expr_61d(val
* self
, val
* p0
) {
7192 parser_prod__AVarargExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AVarargExpr#n_expr= on <self:Object(AVarargExpr)>*/
7195 /* method parser_prod#AVarargExpr#n_dotdotdot= for (self: AVarargExpr, TDotdotdot) */
7196 void parser_prod__AVarargExpr__n_dotdotdot_61d(val
* self
, val
* p0
) {
7197 val
* var_node
/* var node: TDotdotdot */;
7199 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AVarargExpr> */
7201 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdotdot> */
7202 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdotdot> */
7208 /* method parser_prod#AVarargExpr#n_dotdotdot= for (self: Object, TDotdotdot) */
7209 void VIRTUAL_parser_prod__AVarargExpr__n_dotdotdot_61d(val
* self
, val
* p0
) {
7210 parser_prod__AVarargExpr__n_dotdotdot_61d(self
, p0
); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on <self:Object(AVarargExpr)>*/
7213 /* method parser_prod#AVarargExpr#visit_all for (self: AVarargExpr, Visitor) */
7214 void parser_prod__AVarargExpr__visit_all(val
* self
, val
* p0
) {
7215 val
* var_v
/* var v: Visitor */;
7216 val
* var
/* : AExpr */;
7217 val
* var1
/* : TDotdotdot */;
7219 var
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
7220 if (unlikely(var
== NULL
)) {
7221 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7222 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6800);
7226 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7228 var1
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
7229 if (unlikely(var1
== NULL
)) {
7230 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
7231 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6801);
7235 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7239 /* method parser_prod#AVarargExpr#visit_all for (self: Object, Visitor) */
7240 void VIRTUAL_parser_prod__AVarargExpr__visit_all(val
* self
, val
* p0
) {
7241 parser_prod__AVarargExpr__visit_all(self
, p0
); /* Direct call parser_prod#AVarargExpr#visit_all on <self:Object(AVarargExpr)>*/
7244 /* method parser_prod#AListExprs#init_alistexprs for (self: AListExprs, Collection[Object]) */
7245 void parser_prod__AListExprs__init_alistexprs(val
* self
, val
* p0
) {
7246 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7247 val
* var
/* : ANodes[AExpr] */;
7248 val
* var2
/* : ANodes[AExpr] */;
7251 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7252 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7253 if (unlikely(var2
== NULL
)) {
7254 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7255 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7263 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7267 /* method parser_prod#AListExprs#init_alistexprs for (self: Object, Collection[Object]) */
7268 void VIRTUAL_parser_prod__AListExprs__init_alistexprs(val
* self
, val
* p0
) {
7269 parser_prod__AListExprs__init_alistexprs(self
, p0
); /* Direct call parser_prod#AListExprs#init_alistexprs on <self:Object(AListExprs)>*/
7272 /* method parser_prod#AListExprs#replace_child for (self: AListExprs, ANode, nullable ANode) */
7273 void parser_prod__AListExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7274 val
* var_old_child
/* var old_child: ANode */;
7275 val
* var_new_child
/* var new_child: nullable ANode */;
7276 val
* var
/* : ANodes[AExpr] */;
7277 val
* var2
/* : ANodes[AExpr] */;
7278 short int var3
/* : Bool */;
7282 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7283 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7284 if (unlikely(var2
== NULL
)) {
7285 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7286 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7294 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
7302 /* method parser_prod#AListExprs#replace_child for (self: Object, ANode, nullable ANode) */
7303 void VIRTUAL_parser_prod__AListExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7304 parser_prod__AListExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AListExprs#replace_child on <self:Object(AListExprs)>*/
7307 /* method parser_prod#AListExprs#visit_all for (self: AListExprs, Visitor) */
7308 void parser_prod__AListExprs__visit_all(val
* self
, val
* p0
) {
7309 val
* var_v
/* var v: Visitor */;
7310 val
* var
/* : ANodes[AExpr] */;
7311 val
* var2
/* : ANodes[AExpr] */;
7314 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
7315 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
7316 if (unlikely(var2
== NULL
)) {
7317 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7318 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7326 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
7330 /* method parser_prod#AListExprs#visit_all for (self: Object, Visitor) */
7331 void VIRTUAL_parser_prod__AListExprs__visit_all(val
* self
, val
* p0
) {
7332 parser_prod__AListExprs__visit_all(self
, p0
); /* Direct call parser_prod#AListExprs#visit_all on <self:Object(AListExprs)>*/
7335 /* method parser_prod#AParExprs#init_aparexprs for (self: AParExprs, nullable TOpar, Collection[Object], nullable TCpar) */
7336 void parser_prod__AParExprs__init_aparexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7337 val
* var_n_opar
/* var n_opar: nullable TOpar */;
7338 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7339 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
7340 val
* var
/* : ANodes[AExpr] */;
7341 val
* var3
/* : ANodes[AExpr] */;
7345 if (unlikely(var_n_opar
== NULL
)) {
7346 PRINT_ERROR("Runtime error: %s", "Cast failed");
7347 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6831);
7350 self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExprs> */
7351 if (var_n_opar
== NULL
) {
7352 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7353 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6832);
7356 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
7357 if (unlikely(var_n_opar
== NULL
)) {
7358 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7359 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7362 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
7367 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7368 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7369 if (unlikely(var3
== NULL
)) {
7370 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7371 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7379 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7381 if (unlikely(var_n_cpar
== NULL
)) {
7382 PRINT_ERROR("Runtime error: %s", "Cast failed");
7383 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6834);
7386 self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExprs> */
7387 if (var_n_cpar
== NULL
) {
7388 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7389 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6835);
7392 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
7393 if (unlikely(var_n_cpar
== NULL
)) {
7394 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7395 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7398 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
7404 /* method parser_prod#AParExprs#init_aparexprs for (self: Object, nullable TOpar, Collection[Object], nullable TCpar) */
7405 void VIRTUAL_parser_prod__AParExprs__init_aparexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7406 parser_prod__AParExprs__init_aparexprs(self
, p0
, p1
, p2
); /* Direct call parser_prod#AParExprs#init_aparexprs on <self:Object(AParExprs)>*/
7409 /* method parser_prod#AParExprs#replace_child for (self: AParExprs, ANode, nullable ANode) */
7410 void parser_prod__AParExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7411 val
* var_old_child
/* var old_child: ANode */;
7412 val
* var_new_child
/* var new_child: nullable ANode */;
7413 val
* var
/* : TOpar */;
7414 short int var1
/* : Bool */;
7415 short int var2
/* : Bool */;
7416 val
* var_other
/* var other: nullable Object */;
7417 short int var4
/* : Bool */;
7418 short int var6
/* : Bool */;
7419 short int var7
/* : Bool */;
7422 const char* var_class_name
;
7423 val
* var8
/* : ANodes[AExpr] */;
7424 val
* var10
/* : ANodes[AExpr] */;
7425 short int var11
/* : Bool */;
7426 val
* var12
/* : TCpar */;
7427 short int var13
/* : Bool */;
7428 short int var14
/* : Bool */;
7429 short int var16
/* : Bool */;
7430 short int var18
/* : Bool */;
7431 short int var19
/* : Bool */;
7434 const char* var_class_name22
;
7437 var
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
7438 if (unlikely(var
== NULL
)) {
7439 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
7440 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6840);
7444 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
7445 var_other
= var_old_child
;
7447 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
7448 var6
= var
== var_other
;
7461 /* <var_new_child:nullable ANode> isa TOpar */
7462 cltype
= type_parser_nodes__TOpar
.color
;
7463 idtype
= type_parser_nodes__TOpar
.id
;
7464 if(var_new_child
== NULL
) {
7467 if(cltype
>= var_new_child
->type
->table_size
) {
7470 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7473 if (unlikely(!var7
)) {
7474 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7475 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
7476 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6841);
7480 parser_prod__AParExprs__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_opar= on <self:AParExprs>*/
7486 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7487 var10
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7488 if (unlikely(var10
== NULL
)) {
7489 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7490 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7498 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
7504 var12
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
7505 if (unlikely(var12
== NULL
)) {
7506 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
7507 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6845);
7511 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TCpar> */
7512 var_other
= var_old_child
;
7514 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TCpar> */
7515 var18
= var12
== var_other
;
7518 RET_LABEL17
:(void)0;
7523 RET_LABEL15
:(void)0;
7528 /* <var_new_child:nullable ANode> isa TCpar */
7529 cltype20
= type_parser_nodes__TCpar
.color
;
7530 idtype21
= type_parser_nodes__TCpar
.id
;
7531 if(var_new_child
== NULL
) {
7534 if(cltype20
>= var_new_child
->type
->table_size
) {
7537 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
7540 if (unlikely(!var19
)) {
7541 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7542 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name22
);
7543 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6846);
7547 parser_prod__AParExprs__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_cpar= on <self:AParExprs>*/
7554 /* method parser_prod#AParExprs#replace_child for (self: Object, ANode, nullable ANode) */
7555 void VIRTUAL_parser_prod__AParExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7556 parser_prod__AParExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AParExprs#replace_child on <self:Object(AParExprs)>*/
7559 /* method parser_prod#AParExprs#n_opar= for (self: AParExprs, TOpar) */
7560 void parser_prod__AParExprs__n_opar_61d(val
* self
, val
* p0
) {
7561 val
* var_node
/* var node: TOpar */;
7563 self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
= var_node
; /* _n_opar on <self:AParExprs> */
7565 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
7566 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
7572 /* method parser_prod#AParExprs#n_opar= for (self: Object, TOpar) */
7573 void VIRTUAL_parser_prod__AParExprs__n_opar_61d(val
* self
, val
* p0
) {
7574 parser_prod__AParExprs__n_opar_61d(self
, p0
); /* Direct call parser_prod#AParExprs#n_opar= on <self:Object(AParExprs)>*/
7577 /* method parser_prod#AParExprs#n_cpar= for (self: AParExprs, TCpar) */
7578 void parser_prod__AParExprs__n_cpar_61d(val
* self
, val
* p0
) {
7579 val
* var_node
/* var node: TCpar */;
7581 self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExprs> */
7583 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
7584 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
7590 /* method parser_prod#AParExprs#n_cpar= for (self: Object, TCpar) */
7591 void VIRTUAL_parser_prod__AParExprs__n_cpar_61d(val
* self
, val
* p0
) {
7592 parser_prod__AParExprs__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AParExprs#n_cpar= on <self:Object(AParExprs)>*/
7595 /* method parser_prod#AParExprs#visit_all for (self: AParExprs, Visitor) */
7596 void parser_prod__AParExprs__visit_all(val
* self
, val
* p0
) {
7597 val
* var_v
/* var v: Visitor */;
7598 val
* var
/* : TOpar */;
7599 val
* var1
/* : ANodes[AExpr] */;
7600 val
* var3
/* : ANodes[AExpr] */;
7601 val
* var4
/* : TCpar */;
7603 var
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
7604 if (unlikely(var
== NULL
)) {
7605 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
7606 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6865);
7610 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7613 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
7614 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
7615 if (unlikely(var3
== NULL
)) {
7616 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7617 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7625 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
7627 var4
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
7628 if (unlikely(var4
== NULL
)) {
7629 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
7630 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6867);
7634 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7638 /* method parser_prod#AParExprs#visit_all for (self: Object, Visitor) */
7639 void VIRTUAL_parser_prod__AParExprs__visit_all(val
* self
, val
* p0
) {
7640 parser_prod__AParExprs__visit_all(self
, p0
); /* Direct call parser_prod#AParExprs#visit_all on <self:Object(AParExprs)>*/
7643 /* method parser_prod#ABraExprs#init_abraexprs for (self: ABraExprs, nullable TObra, Collection[Object], nullable TCbra) */
7644 void parser_prod__ABraExprs__init_abraexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7645 val
* var_n_obra
/* var n_obra: nullable TObra */;
7646 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
7647 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
7648 val
* var
/* : ANodes[AExpr] */;
7649 val
* var3
/* : ANodes[AExpr] */;
7653 if (unlikely(var_n_obra
== NULL
)) {
7654 PRINT_ERROR("Runtime error: %s", "Cast failed");
7655 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6877);
7658 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraExprs> */
7659 if (var_n_obra
== NULL
) {
7660 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7661 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6878);
7664 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
7665 if (unlikely(var_n_obra
== NULL
)) {
7666 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7667 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7670 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
7675 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7676 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7677 if (unlikely(var3
== NULL
)) {
7678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7679 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7687 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
7689 if (unlikely(var_n_cbra
== NULL
)) {
7690 PRINT_ERROR("Runtime error: %s", "Cast failed");
7691 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6880);
7694 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraExprs> */
7695 if (var_n_cbra
== NULL
) {
7696 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7697 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6881);
7700 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
7701 if (unlikely(var_n_cbra
== NULL
)) {
7702 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7703 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7706 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
7712 /* method parser_prod#ABraExprs#init_abraexprs for (self: Object, nullable TObra, Collection[Object], nullable TCbra) */
7713 void VIRTUAL_parser_prod__ABraExprs__init_abraexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
7714 parser_prod__ABraExprs__init_abraexprs(self
, p0
, p1
, p2
); /* Direct call parser_prod#ABraExprs#init_abraexprs on <self:Object(ABraExprs)>*/
7717 /* method parser_prod#ABraExprs#replace_child for (self: ABraExprs, ANode, nullable ANode) */
7718 void parser_prod__ABraExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7719 val
* var_old_child
/* var old_child: ANode */;
7720 val
* var_new_child
/* var new_child: nullable ANode */;
7721 val
* var
/* : TObra */;
7722 short int var1
/* : Bool */;
7723 short int var2
/* : Bool */;
7724 val
* var_other
/* var other: nullable Object */;
7725 short int var4
/* : Bool */;
7726 short int var6
/* : Bool */;
7727 short int var7
/* : Bool */;
7730 const char* var_class_name
;
7731 val
* var8
/* : ANodes[AExpr] */;
7732 val
* var10
/* : ANodes[AExpr] */;
7733 short int var11
/* : Bool */;
7734 val
* var12
/* : TCbra */;
7735 short int var13
/* : Bool */;
7736 short int var14
/* : Bool */;
7737 short int var16
/* : Bool */;
7738 short int var18
/* : Bool */;
7739 short int var19
/* : Bool */;
7742 const char* var_class_name22
;
7745 var
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
7746 if (unlikely(var
== NULL
)) {
7747 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7748 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6886);
7752 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
7753 var_other
= var_old_child
;
7755 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
7756 var6
= var
== var_other
;
7769 /* <var_new_child:nullable ANode> isa TObra */
7770 cltype
= type_parser_nodes__TObra
.color
;
7771 idtype
= type_parser_nodes__TObra
.id
;
7772 if(var_new_child
== NULL
) {
7775 if(cltype
>= var_new_child
->type
->table_size
) {
7778 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7781 if (unlikely(!var7
)) {
7782 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7783 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
7784 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6887);
7788 parser_prod__ABraExprs__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_obra= on <self:ABraExprs>*/
7794 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7795 var10
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7796 if (unlikely(var10
== NULL
)) {
7797 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7798 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7806 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
7812 var12
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
7813 if (unlikely(var12
== NULL
)) {
7814 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
7815 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6891);
7819 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TCbra> */
7820 var_other
= var_old_child
;
7822 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TCbra> */
7823 var18
= var12
== var_other
;
7826 RET_LABEL17
:(void)0;
7831 RET_LABEL15
:(void)0;
7836 /* <var_new_child:nullable ANode> isa TCbra */
7837 cltype20
= type_parser_nodes__TCbra
.color
;
7838 idtype21
= type_parser_nodes__TCbra
.id
;
7839 if(var_new_child
== NULL
) {
7842 if(cltype20
>= var_new_child
->type
->table_size
) {
7845 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
7848 if (unlikely(!var19
)) {
7849 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7850 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name22
);
7851 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6892);
7855 parser_prod__ABraExprs__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_cbra= on <self:ABraExprs>*/
7862 /* method parser_prod#ABraExprs#replace_child for (self: Object, ANode, nullable ANode) */
7863 void VIRTUAL_parser_prod__ABraExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
7864 parser_prod__ABraExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ABraExprs#replace_child on <self:Object(ABraExprs)>*/
7867 /* method parser_prod#ABraExprs#n_obra= for (self: ABraExprs, TObra) */
7868 void parser_prod__ABraExprs__n_obra_61d(val
* self
, val
* p0
) {
7869 val
* var_node
/* var node: TObra */;
7871 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
= var_node
; /* _n_obra on <self:ABraExprs> */
7873 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
7874 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
7880 /* method parser_prod#ABraExprs#n_obra= for (self: Object, TObra) */
7881 void VIRTUAL_parser_prod__ABraExprs__n_obra_61d(val
* self
, val
* p0
) {
7882 parser_prod__ABraExprs__n_obra_61d(self
, p0
); /* Direct call parser_prod#ABraExprs#n_obra= on <self:Object(ABraExprs)>*/
7885 /* method parser_prod#ABraExprs#n_cbra= for (self: ABraExprs, TCbra) */
7886 void parser_prod__ABraExprs__n_cbra_61d(val
* self
, val
* p0
) {
7887 val
* var_node
/* var node: TCbra */;
7889 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraExprs> */
7891 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
7892 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
7898 /* method parser_prod#ABraExprs#n_cbra= for (self: Object, TCbra) */
7899 void VIRTUAL_parser_prod__ABraExprs__n_cbra_61d(val
* self
, val
* p0
) {
7900 parser_prod__ABraExprs__n_cbra_61d(self
, p0
); /* Direct call parser_prod#ABraExprs#n_cbra= on <self:Object(ABraExprs)>*/
7903 /* method parser_prod#ABraExprs#visit_all for (self: ABraExprs, Visitor) */
7904 void parser_prod__ABraExprs__visit_all(val
* self
, val
* p0
) {
7905 val
* var_v
/* var v: Visitor */;
7906 val
* var
/* : TObra */;
7907 val
* var1
/* : ANodes[AExpr] */;
7908 val
* var3
/* : ANodes[AExpr] */;
7909 val
* var4
/* : TCbra */;
7911 var
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
7912 if (unlikely(var
== NULL
)) {
7913 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
7914 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6911);
7918 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7921 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
7922 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
7923 if (unlikely(var3
== NULL
)) {
7924 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
7925 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2274);
7933 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
7935 var4
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
7936 if (unlikely(var4
== NULL
)) {
7937 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
7938 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6913);
7942 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7946 /* method parser_prod#ABraExprs#visit_all for (self: Object, Visitor) */
7947 void VIRTUAL_parser_prod__ABraExprs__visit_all(val
* self
, val
* p0
) {
7948 parser_prod__ABraExprs__visit_all(self
, p0
); /* Direct call parser_prod#ABraExprs#visit_all on <self:Object(ABraExprs)>*/
7951 /* method parser_prod#APlusAssignOp#init_aplusassignop for (self: APlusAssignOp, nullable TPluseq) */
7952 void parser_prod__APlusAssignOp__init_aplusassignop(val
* self
, val
* p0
) {
7953 val
* var_n_pluseq
/* var n_pluseq: nullable TPluseq */;
7955 if (unlikely(var_n_pluseq
== NULL
)) {
7956 PRINT_ERROR("Runtime error: %s", "Cast failed");
7957 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6921);
7960 self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
= var_n_pluseq
; /* _n_pluseq on <self:APlusAssignOp> */
7961 if (var_n_pluseq
== NULL
) {
7962 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7963 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6922);
7966 { /* Inline parser_nodes#ANode#parent= (var_n_pluseq,self) on <var_n_pluseq:nullable TPluseq> */
7967 if (unlikely(var_n_pluseq
== NULL
)) {
7968 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7969 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
7972 var_n_pluseq
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_pluseq:nullable TPluseq> */
7978 /* method parser_prod#APlusAssignOp#init_aplusassignop for (self: Object, nullable TPluseq) */
7979 void VIRTUAL_parser_prod__APlusAssignOp__init_aplusassignop(val
* self
, val
* p0
) {
7980 parser_prod__APlusAssignOp__init_aplusassignop(self
, p0
); /* Direct call parser_prod#APlusAssignOp#init_aplusassignop on <self:Object(APlusAssignOp)>*/
7983 /* method parser_prod#APlusAssignOp#replace_child for (self: APlusAssignOp, ANode, nullable ANode) */
7984 void parser_prod__APlusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
7985 val
* var_old_child
/* var old_child: ANode */;
7986 val
* var_new_child
/* var new_child: nullable ANode */;
7987 val
* var
/* : TPluseq */;
7988 short int var1
/* : Bool */;
7989 short int var2
/* : Bool */;
7990 val
* var_other
/* var other: nullable Object */;
7991 short int var4
/* : Bool */;
7992 short int var6
/* : Bool */;
7993 short int var7
/* : Bool */;
7996 const char* var_class_name
;
7999 var
= self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
; /* _n_pluseq on <self:APlusAssignOp> */
8000 if (unlikely(var
== NULL
)) {
8001 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq");
8002 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6927);
8006 { /* Inline kernel#Object#== (var,var_old_child) on <var:TPluseq> */
8007 var_other
= var_old_child
;
8009 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TPluseq> */
8010 var6
= var
== var_other
;
8023 /* <var_new_child:nullable ANode> isa TPluseq */
8024 cltype
= type_parser_nodes__TPluseq
.color
;
8025 idtype
= type_parser_nodes__TPluseq
.id
;
8026 if(var_new_child
== NULL
) {
8029 if(cltype
>= var_new_child
->type
->table_size
) {
8032 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8035 if (unlikely(!var7
)) {
8036 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8037 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPluseq", var_class_name
);
8038 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6928);
8042 parser_prod__APlusAssignOp__n_pluseq_61d(self
, var_new_child
); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on <self:APlusAssignOp>*/
8049 /* method parser_prod#APlusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */
8050 void VIRTUAL_parser_prod__APlusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
8051 parser_prod__APlusAssignOp__replace_child(self
, p0
, p1
); /* Direct call parser_prod#APlusAssignOp#replace_child on <self:Object(APlusAssignOp)>*/
8054 /* method parser_prod#APlusAssignOp#n_pluseq= for (self: APlusAssignOp, TPluseq) */
8055 void parser_prod__APlusAssignOp__n_pluseq_61d(val
* self
, val
* p0
) {
8056 val
* var_node
/* var node: TPluseq */;
8058 self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
= var_node
; /* _n_pluseq on <self:APlusAssignOp> */
8060 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TPluseq> */
8061 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TPluseq> */
8067 /* method parser_prod#APlusAssignOp#n_pluseq= for (self: Object, TPluseq) */
8068 void VIRTUAL_parser_prod__APlusAssignOp__n_pluseq_61d(val
* self
, val
* p0
) {
8069 parser_prod__APlusAssignOp__n_pluseq_61d(self
, p0
); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on <self:Object(APlusAssignOp)>*/
8072 /* method parser_prod#APlusAssignOp#visit_all for (self: APlusAssignOp, Visitor) */
8073 void parser_prod__APlusAssignOp__visit_all(val
* self
, val
* p0
) {
8074 val
* var_v
/* var v: Visitor */;
8075 val
* var
/* : TPluseq */;
8077 var
= self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
; /* _n_pluseq on <self:APlusAssignOp> */
8078 if (unlikely(var
== NULL
)) {
8079 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq");
8080 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6942);
8084 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8088 /* method parser_prod#APlusAssignOp#visit_all for (self: Object, Visitor) */
8089 void VIRTUAL_parser_prod__APlusAssignOp__visit_all(val
* self
, val
* p0
) {
8090 parser_prod__APlusAssignOp__visit_all(self
, p0
); /* Direct call parser_prod#APlusAssignOp#visit_all on <self:Object(APlusAssignOp)>*/
8093 /* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: AMinusAssignOp, nullable TMinuseq) */
8094 void parser_prod__AMinusAssignOp__init_aminusassignop(val
* self
, val
* p0
) {
8095 val
* var_n_minuseq
/* var n_minuseq: nullable TMinuseq */;
8097 if (unlikely(var_n_minuseq
== NULL
)) {
8098 PRINT_ERROR("Runtime error: %s", "Cast failed");
8099 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6950);
8102 self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
= var_n_minuseq
; /* _n_minuseq on <self:AMinusAssignOp> */
8103 if (var_n_minuseq
== NULL
) {
8104 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8105 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6951);
8108 { /* Inline parser_nodes#ANode#parent= (var_n_minuseq,self) on <var_n_minuseq:nullable TMinuseq> */
8109 if (unlikely(var_n_minuseq
== NULL
)) {
8110 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8111 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
8114 var_n_minuseq
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_minuseq:nullable TMinuseq> */
8120 /* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: Object, nullable TMinuseq) */
8121 void VIRTUAL_parser_prod__AMinusAssignOp__init_aminusassignop(val
* self
, val
* p0
) {
8122 parser_prod__AMinusAssignOp__init_aminusassignop(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#init_aminusassignop on <self:Object(AMinusAssignOp)>*/
8125 /* method parser_prod#AMinusAssignOp#replace_child for (self: AMinusAssignOp, ANode, nullable ANode) */
8126 void parser_prod__AMinusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
8127 val
* var_old_child
/* var old_child: ANode */;
8128 val
* var_new_child
/* var new_child: nullable ANode */;
8129 val
* var
/* : TMinuseq */;
8130 short int var1
/* : Bool */;
8131 short int var2
/* : Bool */;
8132 val
* var_other
/* var other: nullable Object */;
8133 short int var4
/* : Bool */;
8134 short int var6
/* : Bool */;
8135 short int var7
/* : Bool */;
8138 const char* var_class_name
;
8141 var
= self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
; /* _n_minuseq on <self:AMinusAssignOp> */
8142 if (unlikely(var
== NULL
)) {
8143 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq");
8144 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6956);
8148 { /* Inline kernel#Object#== (var,var_old_child) on <var:TMinuseq> */
8149 var_other
= var_old_child
;
8151 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TMinuseq> */
8152 var6
= var
== var_other
;
8165 /* <var_new_child:nullable ANode> isa TMinuseq */
8166 cltype
= type_parser_nodes__TMinuseq
.color
;
8167 idtype
= type_parser_nodes__TMinuseq
.id
;
8168 if(var_new_child
== NULL
) {
8171 if(cltype
>= var_new_child
->type
->table_size
) {
8174 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8177 if (unlikely(!var7
)) {
8178 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8179 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinuseq", var_class_name
);
8180 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6957);
8184 parser_prod__AMinusAssignOp__n_minuseq_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on <self:AMinusAssignOp>*/
8191 /* method parser_prod#AMinusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */
8192 void VIRTUAL_parser_prod__AMinusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
8193 parser_prod__AMinusAssignOp__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMinusAssignOp#replace_child on <self:Object(AMinusAssignOp)>*/
8196 /* method parser_prod#AMinusAssignOp#n_minuseq= for (self: AMinusAssignOp, TMinuseq) */
8197 void parser_prod__AMinusAssignOp__n_minuseq_61d(val
* self
, val
* p0
) {
8198 val
* var_node
/* var node: TMinuseq */;
8200 self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
= var_node
; /* _n_minuseq on <self:AMinusAssignOp> */
8202 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TMinuseq> */
8203 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TMinuseq> */
8209 /* method parser_prod#AMinusAssignOp#n_minuseq= for (self: Object, TMinuseq) */
8210 void VIRTUAL_parser_prod__AMinusAssignOp__n_minuseq_61d(val
* self
, val
* p0
) {
8211 parser_prod__AMinusAssignOp__n_minuseq_61d(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on <self:Object(AMinusAssignOp)>*/
8214 /* method parser_prod#AMinusAssignOp#visit_all for (self: AMinusAssignOp, Visitor) */
8215 void parser_prod__AMinusAssignOp__visit_all(val
* self
, val
* p0
) {
8216 val
* var_v
/* var v: Visitor */;
8217 val
* var
/* : TMinuseq */;
8219 var
= self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
; /* _n_minuseq on <self:AMinusAssignOp> */
8220 if (unlikely(var
== NULL
)) {
8221 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq");
8222 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6971);
8226 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8230 /* method parser_prod#AMinusAssignOp#visit_all for (self: Object, Visitor) */
8231 void VIRTUAL_parser_prod__AMinusAssignOp__visit_all(val
* self
, val
* p0
) {
8232 parser_prod__AMinusAssignOp__visit_all(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#visit_all on <self:Object(AMinusAssignOp)>*/
8235 /* method parser_prod#AModuleName#init_amodulename for (self: AModuleName, nullable TQuad, Collection[Object], nullable TId) */
8236 void parser_prod__AModuleName__init_amodulename(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
8237 val
* var_n_quad
/* var n_quad: nullable TQuad */;
8238 val
* var_n_path
/* var n_path: Collection[Object] */;
8239 val
* var_n_id
/* var n_id: nullable TId */;
8240 val
* var
/* : null */;
8241 short int var1
/* : Bool */;
8242 short int var2
/* : Bool */;
8243 val
* var_other
/* var other: nullable Object */;
8244 short int var4
/* : Bool */;
8245 short int var5
/* : Bool */;
8246 short int var6
/* : Bool */;
8247 val
* var8
/* : ANodes[TId] */;
8248 val
* var10
/* : ANodes[TId] */;
8252 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_n_quad
; /* _n_quad on <self:AModuleName> */
8254 if (var_n_quad
== NULL
) {
8255 var1
= 0; /* is null */
8257 var1
= 1; /* arg is null and recv is not */
8260 { /* Inline kernel#Object#!= (var_n_quad,var) on <var_n_quad:nullable TQuad> */
8263 var5
= ((short int (*)(val
*, val
*))(var_n_quad
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_quad
, var_other
) /* == on <var_n_quad:nullable TQuad(TQuad)>*/;
8275 { /* Inline parser_nodes#ANode#parent= (var_n_quad,self) on <var_n_quad:nullable TQuad(TQuad)> */
8276 var_n_quad
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_quad:nullable TQuad(TQuad)> */
8283 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
8284 var10
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
8285 if (unlikely(var10
== NULL
)) {
8286 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
8287 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2349);
8295 parser_nodes__ANodes__unsafe_add_all(var8
, var_n_path
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var8:ANodes[TId]>*/
8297 if (unlikely(var_n_id
== NULL
)) {
8298 PRINT_ERROR("Runtime error: %s", "Cast failed");
8299 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6984);
8302 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_n_id
; /* _n_id on <self:AModuleName> */
8303 if (var_n_id
== NULL
) {
8304 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8305 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6985);
8308 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
8309 if (unlikely(var_n_id
== NULL
)) {
8310 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8311 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
8314 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
8315 RET_LABEL11
:(void)0;
8320 /* method parser_prod#AModuleName#init_amodulename for (self: Object, nullable TQuad, Collection[Object], nullable TId) */
8321 void VIRTUAL_parser_prod__AModuleName__init_amodulename(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
8322 parser_prod__AModuleName__init_amodulename(self
, p0
, p1
, p2
); /* Direct call parser_prod#AModuleName#init_amodulename on <self:Object(AModuleName)>*/
8325 /* method parser_prod#AModuleName#replace_child for (self: AModuleName, ANode, nullable ANode) */
8326 void parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
8327 val
* var_old_child
/* var old_child: ANode */;
8328 val
* var_new_child
/* var new_child: nullable ANode */;
8329 val
* var
/* : nullable TQuad */;
8330 short int var1
/* : Bool */;
8331 short int var2
/* : Bool */;
8332 val
* var_other
/* var other: nullable Object */;
8333 short int var4
/* : Bool */;
8334 short int var6
/* : Bool */;
8335 short int var7
/* : Bool */;
8338 const char* var_class_name
;
8339 val
* var8
/* : ANodes[TId] */;
8340 val
* var10
/* : ANodes[TId] */;
8341 short int var11
/* : Bool */;
8342 val
* var12
/* : TId */;
8343 short int var13
/* : Bool */;
8344 short int var14
/* : Bool */;
8345 short int var16
/* : Bool */;
8346 short int var18
/* : Bool */;
8347 short int var19
/* : Bool */;
8350 const char* var_class_name22
;
8353 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
8355 var1
= 0; /* <var_old_child:ANode> cannot be null */
8357 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TQuad> */
8358 var_other
= var_old_child
;
8360 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TQuad(TQuad)> */
8361 var6
= var
== var_other
;
8374 /* <var_new_child:nullable ANode> isa nullable TQuad */
8375 cltype
= type_nullable_parser_nodes__TQuad
.color
;
8376 idtype
= type_nullable_parser_nodes__TQuad
.id
;
8377 if(var_new_child
== NULL
) {
8380 if(cltype
>= var_new_child
->type
->table_size
) {
8383 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8386 if (unlikely(!var7
)) {
8387 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8388 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TQuad", var_class_name
);
8389 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6991);
8393 parser_prod__AModuleName__n_quad_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_quad= on <self:AModuleName>*/
8399 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
8400 var10
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
8401 if (unlikely(var10
== NULL
)) {
8402 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
8403 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2349);
8411 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
8417 var12
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
8418 if (unlikely(var12
== NULL
)) {
8419 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8420 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6995);
8424 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TId> */
8425 var_other
= var_old_child
;
8427 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TId> */
8428 var18
= var12
== var_other
;
8431 RET_LABEL17
:(void)0;
8436 RET_LABEL15
:(void)0;
8441 /* <var_new_child:nullable ANode> isa TId */
8442 cltype20
= type_parser_nodes__TId
.color
;
8443 idtype21
= type_parser_nodes__TId
.id
;
8444 if(var_new_child
== NULL
) {
8447 if(cltype20
>= var_new_child
->type
->table_size
) {
8450 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
8453 if (unlikely(!var19
)) {
8454 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8455 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name22
);
8456 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 6996);
8460 parser_prod__AModuleName__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_id= on <self:AModuleName>*/
8467 /* method parser_prod#AModuleName#replace_child for (self: Object, ANode, nullable ANode) */
8468 void VIRTUAL_parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
8469 parser_prod__AModuleName__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AModuleName#replace_child on <self:Object(AModuleName)>*/
8472 /* method parser_prod#AModuleName#n_quad= for (self: AModuleName, nullable TQuad) */
8473 void parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
8474 val
* var_node
/* var node: nullable TQuad */;
8475 val
* var
/* : null */;
8476 short int var1
/* : Bool */;
8477 short int var2
/* : Bool */;
8478 val
* var_other
/* var other: nullable Object */;
8479 short int var4
/* : Bool */;
8480 short int var5
/* : Bool */;
8481 short int var6
/* : Bool */;
8483 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_node
; /* _n_quad on <self:AModuleName> */
8485 if (var_node
== NULL
) {
8486 var1
= 0; /* is null */
8488 var1
= 1; /* arg is null and recv is not */
8491 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TQuad> */
8494 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TQuad(TQuad)>*/;
8506 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TQuad(TQuad)> */
8507 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TQuad(TQuad)> */
8515 /* method parser_prod#AModuleName#n_quad= for (self: Object, nullable TQuad) */
8516 void VIRTUAL_parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
8517 parser_prod__AModuleName__n_quad_61d(self
, p0
); /* Direct call parser_prod#AModuleName#n_quad= on <self:Object(AModuleName)>*/
8520 /* method parser_prod#AModuleName#n_id= for (self: AModuleName, TId) */
8521 void parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
8522 val
* var_node
/* var node: TId */;
8524 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_node
; /* _n_id on <self:AModuleName> */
8526 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
8527 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
8533 /* method parser_prod#AModuleName#n_id= for (self: Object, TId) */
8534 void VIRTUAL_parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
8535 parser_prod__AModuleName__n_id_61d(self
, p0
); /* Direct call parser_prod#AModuleName#n_id= on <self:Object(AModuleName)>*/
8538 /* method parser_prod#AModuleName#visit_all for (self: AModuleName, Visitor) */
8539 void parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
8540 val
* var_v
/* var v: Visitor */;
8541 val
* var
/* : nullable TQuad */;
8542 val
* var1
/* : ANodes[TId] */;
8543 val
* var3
/* : ANodes[TId] */;
8544 val
* var4
/* : TId */;
8546 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
8548 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8551 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
8552 var3
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
8553 if (unlikely(var3
== NULL
)) {
8554 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
8555 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2349);
8563 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[TId]>*/
8565 var4
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
8566 if (unlikely(var4
== NULL
)) {
8567 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8568 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7017);
8572 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8576 /* method parser_prod#AModuleName#visit_all for (self: Object, Visitor) */
8577 void VIRTUAL_parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
8578 parser_prod__AModuleName__visit_all(self
, p0
); /* Direct call parser_prod#AModuleName#visit_all on <self:Object(AModuleName)>*/
8581 /* method parser_prod#AExternCalls#init_aexterncalls for (self: AExternCalls, nullable TKwimport, Collection[Object]) */
8582 void parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
8583 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
8584 val
* var_n_extern_calls
/* var n_extern_calls: Collection[Object] */;
8585 val
* var
/* : ANodes[AExternCall] */;
8586 val
* var3
/* : ANodes[AExternCall] */;
8587 var_n_kwimport
= p0
;
8588 var_n_extern_calls
= p1
;
8589 if (unlikely(var_n_kwimport
== NULL
)) {
8590 PRINT_ERROR("Runtime error: %s", "Cast failed");
8591 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7026);
8594 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AExternCalls> */
8595 if (var_n_kwimport
== NULL
) {
8596 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8597 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7027);
8600 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
8601 if (unlikely(var_n_kwimport
== NULL
)) {
8602 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8603 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
8606 var_n_kwimport
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
8611 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
8612 var3
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
8613 if (unlikely(var3
== NULL
)) {
8614 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
8615 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 1073);
8623 parser_nodes__ANodes__unsafe_add_all(var
, var_n_extern_calls
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExternCall]>*/
8627 /* method parser_prod#AExternCalls#init_aexterncalls for (self: Object, nullable TKwimport, Collection[Object]) */
8628 void VIRTUAL_parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
8629 parser_prod__AExternCalls__init_aexterncalls(self
, p0
, p1
); /* Direct call parser_prod#AExternCalls#init_aexterncalls on <self:Object(AExternCalls)>*/
8632 /* method parser_prod#AExternCalls#replace_child for (self: AExternCalls, ANode, nullable ANode) */
8633 void parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
8634 val
* var_old_child
/* var old_child: ANode */;
8635 val
* var_new_child
/* var new_child: nullable ANode */;
8636 val
* var
/* : TKwimport */;
8637 short int var1
/* : Bool */;
8638 short int var2
/* : Bool */;
8639 val
* var_other
/* var other: nullable Object */;
8640 short int var4
/* : Bool */;
8641 short int var6
/* : Bool */;
8642 short int var7
/* : Bool */;
8645 const char* var_class_name
;
8646 val
* var8
/* : ANodes[AExternCall] */;
8647 val
* var10
/* : ANodes[AExternCall] */;
8648 short int var11
/* : Bool */;
8651 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
8652 if (unlikely(var
== NULL
)) {
8653 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
8654 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7033);
8658 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwimport> */
8659 var_other
= var_old_child
;
8661 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwimport> */
8662 var6
= var
== var_other
;
8675 /* <var_new_child:nullable ANode> isa TKwimport */
8676 cltype
= type_parser_nodes__TKwimport
.color
;
8677 idtype
= type_parser_nodes__TKwimport
.id
;
8678 if(var_new_child
== NULL
) {
8681 if(cltype
>= var_new_child
->type
->table_size
) {
8684 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8687 if (unlikely(!var7
)) {
8688 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8689 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name
);
8690 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7034);
8694 parser_prod__AExternCalls__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCalls#n_kwimport= on <self:AExternCalls>*/
8700 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
8701 var10
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
8702 if (unlikely(var10
== NULL
)) {
8703 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
8704 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 1073);
8712 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
8720 /* method parser_prod#AExternCalls#replace_child for (self: Object, ANode, nullable ANode) */
8721 void VIRTUAL_parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
8722 parser_prod__AExternCalls__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExternCalls#replace_child on <self:Object(AExternCalls)>*/
8725 /* method parser_prod#AExternCalls#n_kwimport= for (self: AExternCalls, TKwimport) */
8726 void parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
8727 val
* var_node
/* var node: TKwimport */;
8729 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AExternCalls> */
8731 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
8732 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
8738 /* method parser_prod#AExternCalls#n_kwimport= for (self: Object, TKwimport) */
8739 void VIRTUAL_parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
8740 parser_prod__AExternCalls__n_kwimport_61d(self
, p0
); /* Direct call parser_prod#AExternCalls#n_kwimport= on <self:Object(AExternCalls)>*/
8743 /* method parser_prod#AExternCalls#visit_all for (self: AExternCalls, Visitor) */
8744 void parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
8745 val
* var_v
/* var v: Visitor */;
8746 val
* var
/* : TKwimport */;
8747 val
* var1
/* : ANodes[AExternCall] */;
8748 val
* var3
/* : ANodes[AExternCall] */;
8750 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
8751 if (unlikely(var
== NULL
)) {
8752 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
8753 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7049);
8757 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8760 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
8761 var3
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
8762 if (unlikely(var3
== NULL
)) {
8763 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
8764 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 1073);
8772 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExternCall]>*/
8776 /* method parser_prod#AExternCalls#visit_all for (self: Object, Visitor) */
8777 void VIRTUAL_parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
8778 parser_prod__AExternCalls__visit_all(self
, p0
); /* Direct call parser_prod#AExternCalls#visit_all on <self:Object(AExternCalls)>*/
8781 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: ASuperExternCall, nullable TKwsuper) */
8782 void parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
8783 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
8785 if (unlikely(var_n_kwsuper
== NULL
)) {
8786 PRINT_ERROR("Runtime error: %s", "Cast failed");
8787 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7073);
8790 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExternCall> */
8791 if (var_n_kwsuper
== NULL
) {
8792 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8793 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7074);
8796 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
8797 if (unlikely(var_n_kwsuper
== NULL
)) {
8798 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8799 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
8802 var_n_kwsuper
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
8808 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: Object, nullable TKwsuper) */
8809 void VIRTUAL_parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
8810 parser_prod__ASuperExternCall__init_asuperexterncall(self
, p0
); /* Direct call parser_prod#ASuperExternCall#init_asuperexterncall on <self:Object(ASuperExternCall)>*/
8813 /* method parser_prod#ASuperExternCall#replace_child for (self: ASuperExternCall, ANode, nullable ANode) */
8814 void parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
8815 val
* var_old_child
/* var old_child: ANode */;
8816 val
* var_new_child
/* var new_child: nullable ANode */;
8817 val
* var
/* : TKwsuper */;
8818 short int var1
/* : Bool */;
8819 short int var2
/* : Bool */;
8820 val
* var_other
/* var other: nullable Object */;
8821 short int var4
/* : Bool */;
8822 short int var6
/* : Bool */;
8823 short int var7
/* : Bool */;
8826 const char* var_class_name
;
8829 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
8830 if (unlikely(var
== NULL
)) {
8831 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
8832 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7079);
8836 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwsuper> */
8837 var_other
= var_old_child
;
8839 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwsuper> */
8840 var6
= var
== var_other
;
8853 /* <var_new_child:nullable ANode> isa TKwsuper */
8854 cltype
= type_parser_nodes__TKwsuper
.color
;
8855 idtype
= type_parser_nodes__TKwsuper
.id
;
8856 if(var_new_child
== NULL
) {
8859 if(cltype
>= var_new_child
->type
->table_size
) {
8862 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8865 if (unlikely(!var7
)) {
8866 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8867 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name
);
8868 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7080);
8872 parser_prod__ASuperExternCall__n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on <self:ASuperExternCall>*/
8879 /* method parser_prod#ASuperExternCall#replace_child for (self: Object, ANode, nullable ANode) */
8880 void VIRTUAL_parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
8881 parser_prod__ASuperExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperExternCall#replace_child on <self:Object(ASuperExternCall)>*/
8884 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: ASuperExternCall, TKwsuper) */
8885 void parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
8886 val
* var_node
/* var node: TKwsuper */;
8888 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExternCall> */
8890 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
8891 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
8897 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: Object, TKwsuper) */
8898 void VIRTUAL_parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
8899 parser_prod__ASuperExternCall__n_kwsuper_61d(self
, p0
); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on <self:Object(ASuperExternCall)>*/
8902 /* method parser_prod#ASuperExternCall#visit_all for (self: ASuperExternCall, Visitor) */
8903 void parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
8904 val
* var_v
/* var v: Visitor */;
8905 val
* var
/* : TKwsuper */;
8907 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
8908 if (unlikely(var
== NULL
)) {
8909 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
8910 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7094);
8914 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8918 /* method parser_prod#ASuperExternCall#visit_all for (self: Object, Visitor) */
8919 void VIRTUAL_parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
8920 parser_prod__ASuperExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ASuperExternCall#visit_all on <self:Object(ASuperExternCall)>*/
8923 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: ALocalPropExternCall, nullable AMethid) */
8924 void parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
8925 val
* var_n_methid
/* var n_methid: nullable AMethid */;
8927 if (unlikely(var_n_methid
== NULL
)) {
8928 PRINT_ERROR("Runtime error: %s", "Cast failed");
8929 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7102);
8932 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:ALocalPropExternCall> */
8933 if (var_n_methid
== NULL
) {
8934 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8935 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7103);
8938 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid> */
8939 if (unlikely(var_n_methid
== NULL
)) {
8940 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8941 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
8944 var_n_methid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid> */
8950 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: Object, nullable AMethid) */
8951 void VIRTUAL_parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
8952 parser_prod__ALocalPropExternCall__init_alocalpropexterncall(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#init_alocalpropexterncall on <self:Object(ALocalPropExternCall)>*/
8955 /* method parser_prod#ALocalPropExternCall#replace_child for (self: ALocalPropExternCall, ANode, nullable ANode) */
8956 void parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
8957 val
* var_old_child
/* var old_child: ANode */;
8958 val
* var_new_child
/* var new_child: nullable ANode */;
8959 val
* var
/* : AMethid */;
8960 short int var1
/* : Bool */;
8961 short int var2
/* : Bool */;
8962 val
* var_other
/* var other: nullable Object */;
8963 short int var4
/* : Bool */;
8964 short int var6
/* : Bool */;
8965 short int var7
/* : Bool */;
8968 const char* var_class_name
;
8971 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
8972 if (unlikely(var
== NULL
)) {
8973 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
8974 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7108);
8978 { /* Inline kernel#Object#== (var,var_old_child) on <var:AMethid> */
8979 var_other
= var_old_child
;
8981 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AMethid> */
8982 var6
= var
== var_other
;
8995 /* <var_new_child:nullable ANode> isa AMethid */
8996 cltype
= type_parser_nodes__AMethid
.color
;
8997 idtype
= type_parser_nodes__AMethid
.id
;
8998 if(var_new_child
== NULL
) {
9001 if(cltype
>= var_new_child
->type
->table_size
) {
9004 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9007 if (unlikely(!var7
)) {
9008 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9009 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name
);
9010 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7109);
9014 parser_prod__ALocalPropExternCall__n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on <self:ALocalPropExternCall>*/
9021 /* method parser_prod#ALocalPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
9022 void VIRTUAL_parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9023 parser_prod__ALocalPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ALocalPropExternCall#replace_child on <self:Object(ALocalPropExternCall)>*/
9026 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: ALocalPropExternCall, AMethid) */
9027 void parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
9028 val
* var_node
/* var node: AMethid */;
9030 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:ALocalPropExternCall> */
9032 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
9033 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
9039 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: Object, AMethid) */
9040 void VIRTUAL_parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
9041 parser_prod__ALocalPropExternCall__n_methid_61d(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on <self:Object(ALocalPropExternCall)>*/
9044 /* method parser_prod#ALocalPropExternCall#visit_all for (self: ALocalPropExternCall, Visitor) */
9045 void parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
9046 val
* var_v
/* var v: Visitor */;
9047 val
* var
/* : AMethid */;
9049 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
9050 if (unlikely(var
== NULL
)) {
9051 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
9052 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7123);
9056 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9060 /* method parser_prod#ALocalPropExternCall#visit_all for (self: Object, Visitor) */
9061 void VIRTUAL_parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
9062 parser_prod__ALocalPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#visit_all on <self:Object(ALocalPropExternCall)>*/
9065 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: AFullPropExternCall, nullable AType, nullable TDot, nullable AMethid) */
9066 void parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
9067 val
* var_n_type
/* var n_type: nullable AType */;
9068 val
* var_n_dot
/* var n_dot: nullable TDot */;
9069 val
* var_n_methid
/* var n_methid: nullable AMethid */;
9070 val
* var
/* : null */;
9071 short int var2
/* : Bool */;
9072 short int var3
/* : Bool */;
9073 val
* var_other
/* var other: nullable Object */;
9074 short int var5
/* : Bool */;
9075 short int var6
/* : Bool */;
9076 short int var7
/* : Bool */;
9080 if (unlikely(var_n_type
== NULL
)) {
9081 PRINT_ERROR("Runtime error: %s", "Cast failed");
9082 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7133);
9085 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AFullPropExternCall> */
9086 if (var_n_type
== NULL
) {
9087 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9088 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7134);
9091 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
9092 if (unlikely(var_n_type
== NULL
)) {
9093 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9094 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9097 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
9101 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
= var_n_dot
; /* _n_dot on <self:AFullPropExternCall> */
9103 if (var_n_dot
== NULL
) {
9104 var2
= 0; /* is null */
9106 var2
= 1; /* arg is null and recv is not */
9109 { /* Inline kernel#Object#!= (var_n_dot,var) on <var_n_dot:nullable TDot> */
9112 var6
= ((short int (*)(val
*, val
*))(var_n_dot
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_dot
, var_other
) /* == on <var_n_dot:nullable TDot(TDot)>*/;
9124 { /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on <var_n_dot:nullable TDot(TDot)> */
9125 var_n_dot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dot:nullable TDot(TDot)> */
9131 if (unlikely(var_n_methid
== NULL
)) {
9132 PRINT_ERROR("Runtime error: %s", "Cast failed");
9133 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7137);
9136 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AFullPropExternCall> */
9137 if (var_n_methid
== NULL
) {
9138 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9139 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7138);
9142 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid> */
9143 if (unlikely(var_n_methid
== NULL
)) {
9144 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9145 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9148 var_n_methid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid> */
9154 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: Object, nullable AType, nullable TDot, nullable AMethid) */
9155 void VIRTUAL_parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
9156 parser_prod__AFullPropExternCall__init_afullpropexterncall(self
, p0
, p1
, p2
); /* Direct call parser_prod#AFullPropExternCall#init_afullpropexterncall on <self:Object(AFullPropExternCall)>*/
9159 /* method parser_prod#AFullPropExternCall#replace_child for (self: AFullPropExternCall, ANode, nullable ANode) */
9160 void parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9161 val
* var_old_child
/* var old_child: ANode */;
9162 val
* var_new_child
/* var new_child: nullable ANode */;
9163 val
* var
/* : AType */;
9164 short int var1
/* : Bool */;
9165 short int var2
/* : Bool */;
9166 val
* var_other
/* var other: nullable Object */;
9167 short int var4
/* : Bool */;
9168 short int var6
/* : Bool */;
9169 short int var7
/* : Bool */;
9172 const char* var_class_name
;
9173 val
* var8
/* : nullable TDot */;
9174 short int var9
/* : Bool */;
9175 short int var10
/* : Bool */;
9176 short int var12
/* : Bool */;
9177 short int var14
/* : Bool */;
9178 short int var15
/* : Bool */;
9181 const char* var_class_name18
;
9182 val
* var19
/* : AMethid */;
9183 short int var20
/* : Bool */;
9184 short int var21
/* : Bool */;
9185 short int var23
/* : Bool */;
9186 short int var25
/* : Bool */;
9187 short int var26
/* : Bool */;
9190 const char* var_class_name29
;
9193 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
; /* _n_type on <self:AFullPropExternCall> */
9194 if (unlikely(var
== NULL
)) {
9195 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9196 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7143);
9200 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
9201 var_other
= var_old_child
;
9203 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
9204 var6
= var
== var_other
;
9217 /* <var_new_child:nullable ANode> isa AType */
9218 cltype
= type_parser_nodes__AType
.color
;
9219 idtype
= type_parser_nodes__AType
.id
;
9220 if(var_new_child
== NULL
) {
9223 if(cltype
>= var_new_child
->type
->table_size
) {
9226 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9229 if (unlikely(!var7
)) {
9230 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9231 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
9232 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7144);
9236 parser_prod__AFullPropExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_type= on <self:AFullPropExternCall>*/
9241 var8
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
; /* _n_dot on <self:AFullPropExternCall> */
9243 var9
= 0; /* <var_old_child:ANode> cannot be null */
9245 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TDot> */
9246 var_other
= var_old_child
;
9248 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TDot(TDot)> */
9249 var14
= var8
== var_other
;
9252 RET_LABEL13
:(void)0;
9257 RET_LABEL11
:(void)0;
9262 /* <var_new_child:nullable ANode> isa nullable TDot */
9263 cltype16
= type_nullable_parser_nodes__TDot
.color
;
9264 idtype17
= type_nullable_parser_nodes__TDot
.id
;
9265 if(var_new_child
== NULL
) {
9268 if(cltype16
>= var_new_child
->type
->table_size
) {
9271 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9274 if (unlikely(!var15
)) {
9275 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9276 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18
);
9277 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7148);
9281 parser_prod__AFullPropExternCall__n_dot_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_dot= on <self:AFullPropExternCall>*/
9286 var19
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
9287 if (unlikely(var19
== NULL
)) {
9288 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
9289 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7151);
9293 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AMethid> */
9294 var_other
= var_old_child
;
9296 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AMethid> */
9297 var25
= var19
== var_other
;
9300 RET_LABEL24
:(void)0;
9305 RET_LABEL22
:(void)0;
9310 /* <var_new_child:nullable ANode> isa AMethid */
9311 cltype27
= type_parser_nodes__AMethid
.color
;
9312 idtype28
= type_parser_nodes__AMethid
.id
;
9313 if(var_new_child
== NULL
) {
9316 if(cltype27
>= var_new_child
->type
->table_size
) {
9319 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
9322 if (unlikely(!var26
)) {
9323 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9324 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name29
);
9325 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7152);
9329 parser_prod__AFullPropExternCall__n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_methid= on <self:AFullPropExternCall>*/
9336 /* method parser_prod#AFullPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
9337 void VIRTUAL_parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9338 parser_prod__AFullPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFullPropExternCall#replace_child on <self:Object(AFullPropExternCall)>*/
9341 /* method parser_prod#AFullPropExternCall#n_type= for (self: AFullPropExternCall, AType) */
9342 void parser_prod__AFullPropExternCall__n_type_61d(val
* self
, val
* p0
) {
9343 val
* var_node
/* var node: AType */;
9345 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
= var_node
; /* _n_type on <self:AFullPropExternCall> */
9347 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
9348 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
9354 /* method parser_prod#AFullPropExternCall#n_type= for (self: Object, AType) */
9355 void VIRTUAL_parser_prod__AFullPropExternCall__n_type_61d(val
* self
, val
* p0
) {
9356 parser_prod__AFullPropExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_type= on <self:Object(AFullPropExternCall)>*/
9359 /* method parser_prod#AFullPropExternCall#n_dot= for (self: AFullPropExternCall, nullable TDot) */
9360 void parser_prod__AFullPropExternCall__n_dot_61d(val
* self
, val
* p0
) {
9361 val
* var_node
/* var node: nullable TDot */;
9362 val
* var
/* : null */;
9363 short int var1
/* : Bool */;
9364 short int var2
/* : Bool */;
9365 val
* var_other
/* var other: nullable Object */;
9366 short int var4
/* : Bool */;
9367 short int var5
/* : Bool */;
9368 short int var6
/* : Bool */;
9370 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
= var_node
; /* _n_dot on <self:AFullPropExternCall> */
9372 if (var_node
== NULL
) {
9373 var1
= 0; /* is null */
9375 var1
= 1; /* arg is null and recv is not */
9378 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TDot> */
9381 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TDot(TDot)>*/;
9393 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDot(TDot)> */
9394 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDot(TDot)> */
9402 /* method parser_prod#AFullPropExternCall#n_dot= for (self: Object, nullable TDot) */
9403 void VIRTUAL_parser_prod__AFullPropExternCall__n_dot_61d(val
* self
, val
* p0
) {
9404 parser_prod__AFullPropExternCall__n_dot_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_dot= on <self:Object(AFullPropExternCall)>*/
9407 /* method parser_prod#AFullPropExternCall#n_methid= for (self: AFullPropExternCall, AMethid) */
9408 void parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
9409 val
* var_node
/* var node: AMethid */;
9411 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:AFullPropExternCall> */
9413 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
9414 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
9420 /* method parser_prod#AFullPropExternCall#n_methid= for (self: Object, AMethid) */
9421 void VIRTUAL_parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
9422 parser_prod__AFullPropExternCall__n_methid_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_methid= on <self:Object(AFullPropExternCall)>*/
9425 /* method parser_prod#AFullPropExternCall#visit_all for (self: AFullPropExternCall, Visitor) */
9426 void parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
9427 val
* var_v
/* var v: Visitor */;
9428 val
* var
/* : AType */;
9429 val
* var1
/* : nullable TDot */;
9430 val
* var2
/* : AMethid */;
9432 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
; /* _n_type on <self:AFullPropExternCall> */
9433 if (unlikely(var
== NULL
)) {
9434 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9435 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7176);
9439 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9441 var1
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
; /* _n_dot on <self:AFullPropExternCall> */
9443 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9445 var2
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
9446 if (unlikely(var2
== NULL
)) {
9447 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
9448 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7178);
9452 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9456 /* method parser_prod#AFullPropExternCall#visit_all for (self: Object, Visitor) */
9457 void VIRTUAL_parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
9458 parser_prod__AFullPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#visit_all on <self:Object(AFullPropExternCall)>*/
9461 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: AInitPropExternCall, nullable AType) */
9462 void parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
9463 val
* var_n_type
/* var n_type: nullable AType */;
9465 if (unlikely(var_n_type
== NULL
)) {
9466 PRINT_ERROR("Runtime error: %s", "Cast failed");
9467 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7186);
9470 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AInitPropExternCall> */
9471 if (var_n_type
== NULL
) {
9472 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9473 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7187);
9476 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
9477 if (unlikely(var_n_type
== NULL
)) {
9478 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9479 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9482 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
9488 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: Object, nullable AType) */
9489 void VIRTUAL_parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
9490 parser_prod__AInitPropExternCall__init_ainitpropexterncall(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#init_ainitpropexterncall on <self:Object(AInitPropExternCall)>*/
9493 /* method parser_prod#AInitPropExternCall#replace_child for (self: AInitPropExternCall, ANode, nullable ANode) */
9494 void parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9495 val
* var_old_child
/* var old_child: ANode */;
9496 val
* var_new_child
/* var new_child: nullable ANode */;
9497 val
* var
/* : AType */;
9498 short int var1
/* : Bool */;
9499 short int var2
/* : Bool */;
9500 val
* var_other
/* var other: nullable Object */;
9501 short int var4
/* : Bool */;
9502 short int var6
/* : Bool */;
9503 short int var7
/* : Bool */;
9506 const char* var_class_name
;
9509 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
; /* _n_type on <self:AInitPropExternCall> */
9510 if (unlikely(var
== NULL
)) {
9511 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9512 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7192);
9516 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
9517 var_other
= var_old_child
;
9519 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
9520 var6
= var
== var_other
;
9533 /* <var_new_child:nullable ANode> isa AType */
9534 cltype
= type_parser_nodes__AType
.color
;
9535 idtype
= type_parser_nodes__AType
.id
;
9536 if(var_new_child
== NULL
) {
9539 if(cltype
>= var_new_child
->type
->table_size
) {
9542 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9545 if (unlikely(!var7
)) {
9546 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9547 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
9548 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7193);
9552 parser_prod__AInitPropExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AInitPropExternCall#n_type= on <self:AInitPropExternCall>*/
9559 /* method parser_prod#AInitPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
9560 void VIRTUAL_parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9561 parser_prod__AInitPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInitPropExternCall#replace_child on <self:Object(AInitPropExternCall)>*/
9564 /* method parser_prod#AInitPropExternCall#n_type= for (self: AInitPropExternCall, AType) */
9565 void parser_prod__AInitPropExternCall__n_type_61d(val
* self
, val
* p0
) {
9566 val
* var_node
/* var node: AType */;
9568 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
= var_node
; /* _n_type on <self:AInitPropExternCall> */
9570 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
9571 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
9577 /* method parser_prod#AInitPropExternCall#n_type= for (self: Object, AType) */
9578 void VIRTUAL_parser_prod__AInitPropExternCall__n_type_61d(val
* self
, val
* p0
) {
9579 parser_prod__AInitPropExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#n_type= on <self:Object(AInitPropExternCall)>*/
9582 /* method parser_prod#AInitPropExternCall#visit_all for (self: AInitPropExternCall, Visitor) */
9583 void parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
9584 val
* var_v
/* var v: Visitor */;
9585 val
* var
/* : AType */;
9587 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
; /* _n_type on <self:AInitPropExternCall> */
9588 if (unlikely(var
== NULL
)) {
9589 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9590 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7207);
9594 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9598 /* method parser_prod#AInitPropExternCall#visit_all for (self: Object, Visitor) */
9599 void VIRTUAL_parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
9600 parser_prod__AInitPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#visit_all on <self:Object(AInitPropExternCall)>*/
9603 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: ACastAsExternCall, nullable AType, nullable TDot, nullable TKwas, nullable AType) */
9604 void parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
9605 val
* var_n_from_type
/* var n_from_type: nullable AType */;
9606 val
* var_n_dot
/* var n_dot: nullable TDot */;
9607 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
9608 val
* var_n_to_type
/* var n_to_type: nullable AType */;
9609 val
* var
/* : null */;
9610 short int var2
/* : Bool */;
9611 short int var3
/* : Bool */;
9612 val
* var_other
/* var other: nullable Object */;
9613 short int var5
/* : Bool */;
9614 short int var6
/* : Bool */;
9615 short int var7
/* : Bool */;
9616 var_n_from_type
= p0
;
9620 if (unlikely(var_n_from_type
== NULL
)) {
9621 PRINT_ERROR("Runtime error: %s", "Cast failed");
9622 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7218);
9625 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_n_from_type
; /* _n_from_type on <self:ACastAsExternCall> */
9626 if (var_n_from_type
== NULL
) {
9627 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9628 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7219);
9631 { /* Inline parser_nodes#ANode#parent= (var_n_from_type,self) on <var_n_from_type:nullable AType> */
9632 if (unlikely(var_n_from_type
== NULL
)) {
9633 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9634 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9637 var_n_from_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_from_type:nullable AType> */
9641 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
= var_n_dot
; /* _n_dot on <self:ACastAsExternCall> */
9643 if (var_n_dot
== NULL
) {
9644 var2
= 0; /* is null */
9646 var2
= 1; /* arg is null and recv is not */
9649 { /* Inline kernel#Object#!= (var_n_dot,var) on <var_n_dot:nullable TDot> */
9652 var6
= ((short int (*)(val
*, val
*))(var_n_dot
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_dot
, var_other
) /* == on <var_n_dot:nullable TDot(TDot)>*/;
9664 { /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on <var_n_dot:nullable TDot(TDot)> */
9665 var_n_dot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dot:nullable TDot(TDot)> */
9671 if (unlikely(var_n_kwas
== NULL
)) {
9672 PRINT_ERROR("Runtime error: %s", "Cast failed");
9673 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7222);
9676 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:ACastAsExternCall> */
9677 if (var_n_kwas
== NULL
) {
9678 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9679 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7223);
9682 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
9683 if (unlikely(var_n_kwas
== NULL
)) {
9684 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9685 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9688 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
9692 if (unlikely(var_n_to_type
== NULL
)) {
9693 PRINT_ERROR("Runtime error: %s", "Cast failed");
9694 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7224);
9697 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_n_to_type
; /* _n_to_type on <self:ACastAsExternCall> */
9698 if (var_n_to_type
== NULL
) {
9699 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9700 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7225);
9703 { /* Inline parser_nodes#ANode#parent= (var_n_to_type,self) on <var_n_to_type:nullable AType> */
9704 if (unlikely(var_n_to_type
== NULL
)) {
9705 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9706 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
9709 var_n_to_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_to_type:nullable AType> */
9710 RET_LABEL10
:(void)0;
9715 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: Object, nullable AType, nullable TDot, nullable TKwas, nullable AType) */
9716 void VIRTUAL_parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
9717 parser_prod__ACastAsExternCall__init_acastasexterncall(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ACastAsExternCall#init_acastasexterncall on <self:Object(ACastAsExternCall)>*/
9720 /* method parser_prod#ACastAsExternCall#replace_child for (self: ACastAsExternCall, ANode, nullable ANode) */
9721 void parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9722 val
* var_old_child
/* var old_child: ANode */;
9723 val
* var_new_child
/* var new_child: nullable ANode */;
9724 val
* var
/* : AType */;
9725 short int var1
/* : Bool */;
9726 short int var2
/* : Bool */;
9727 val
* var_other
/* var other: nullable Object */;
9728 short int var4
/* : Bool */;
9729 short int var6
/* : Bool */;
9730 short int var7
/* : Bool */;
9733 const char* var_class_name
;
9734 val
* var8
/* : nullable TDot */;
9735 short int var9
/* : Bool */;
9736 short int var10
/* : Bool */;
9737 short int var12
/* : Bool */;
9738 short int var14
/* : Bool */;
9739 short int var15
/* : Bool */;
9742 const char* var_class_name18
;
9743 val
* var19
/* : TKwas */;
9744 short int var20
/* : Bool */;
9745 short int var21
/* : Bool */;
9746 short int var23
/* : Bool */;
9747 short int var25
/* : Bool */;
9748 short int var26
/* : Bool */;
9751 const char* var_class_name29
;
9752 val
* var30
/* : AType */;
9753 short int var31
/* : Bool */;
9754 short int var32
/* : Bool */;
9755 short int var34
/* : Bool */;
9756 short int var36
/* : Bool */;
9757 short int var37
/* : Bool */;
9760 const char* var_class_name40
;
9763 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
9764 if (unlikely(var
== NULL
)) {
9765 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type");
9766 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7230);
9770 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
9771 var_other
= var_old_child
;
9773 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
9774 var6
= var
== var_other
;
9787 /* <var_new_child:nullable ANode> isa AType */
9788 cltype
= type_parser_nodes__AType
.color
;
9789 idtype
= type_parser_nodes__AType
.id
;
9790 if(var_new_child
== NULL
) {
9793 if(cltype
>= var_new_child
->type
->table_size
) {
9796 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9799 if (unlikely(!var7
)) {
9800 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9801 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
9802 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7231);
9806 parser_prod__ACastAsExternCall__n_from_type_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on <self:ACastAsExternCall>*/
9811 var8
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
; /* _n_dot on <self:ACastAsExternCall> */
9813 var9
= 0; /* <var_old_child:ANode> cannot be null */
9815 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TDot> */
9816 var_other
= var_old_child
;
9818 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TDot(TDot)> */
9819 var14
= var8
== var_other
;
9822 RET_LABEL13
:(void)0;
9827 RET_LABEL11
:(void)0;
9832 /* <var_new_child:nullable ANode> isa nullable TDot */
9833 cltype16
= type_nullable_parser_nodes__TDot
.color
;
9834 idtype17
= type_nullable_parser_nodes__TDot
.id
;
9835 if(var_new_child
== NULL
) {
9838 if(cltype16
>= var_new_child
->type
->table_size
) {
9841 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9844 if (unlikely(!var15
)) {
9845 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9846 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18
);
9847 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7235);
9851 parser_prod__ACastAsExternCall__n_dot_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_dot= on <self:ACastAsExternCall>*/
9856 var19
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
9857 if (unlikely(var19
== NULL
)) {
9858 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
9859 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7238);
9863 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwas> */
9864 var_other
= var_old_child
;
9866 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwas> */
9867 var25
= var19
== var_other
;
9870 RET_LABEL24
:(void)0;
9875 RET_LABEL22
:(void)0;
9880 /* <var_new_child:nullable ANode> isa TKwas */
9881 cltype27
= type_parser_nodes__TKwas
.color
;
9882 idtype28
= type_parser_nodes__TKwas
.id
;
9883 if(var_new_child
== NULL
) {
9886 if(cltype27
>= var_new_child
->type
->table_size
) {
9889 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
9892 if (unlikely(!var26
)) {
9893 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9894 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name29
);
9895 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7239);
9899 parser_prod__ACastAsExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on <self:ACastAsExternCall>*/
9904 var30
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
9905 if (unlikely(var30
== NULL
)) {
9906 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type");
9907 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7242);
9911 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
9912 var_other
= var_old_child
;
9914 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
9915 var36
= var30
== var_other
;
9918 RET_LABEL35
:(void)0;
9923 RET_LABEL33
:(void)0;
9928 /* <var_new_child:nullable ANode> isa AType */
9929 cltype38
= type_parser_nodes__AType
.color
;
9930 idtype39
= type_parser_nodes__AType
.id
;
9931 if(var_new_child
== NULL
) {
9934 if(cltype38
>= var_new_child
->type
->table_size
) {
9937 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
9940 if (unlikely(!var37
)) {
9941 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9942 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
9943 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7243);
9947 parser_prod__ACastAsExternCall__n_to_type_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on <self:ACastAsExternCall>*/
9954 /* method parser_prod#ACastAsExternCall#replace_child for (self: Object, ANode, nullable ANode) */
9955 void VIRTUAL_parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
9956 parser_prod__ACastAsExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACastAsExternCall#replace_child on <self:Object(ACastAsExternCall)>*/
9959 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: ACastAsExternCall, AType) */
9960 void parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
9961 val
* var_node
/* var node: AType */;
9963 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_node
; /* _n_from_type on <self:ACastAsExternCall> */
9965 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
9966 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
9972 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: Object, AType) */
9973 void VIRTUAL_parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
9974 parser_prod__ACastAsExternCall__n_from_type_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on <self:Object(ACastAsExternCall)>*/