1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#AAsNotnullExpr#replace_child for (self: AAsNotnullExpr, ANode, nullable ANode) */
3 void parser_prod__AAsNotnullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
4 val
* var_old_child
/* var old_child: ANode */;
5 val
* var_new_child
/* var new_child: nullable ANode */;
6 val
* var
/* : AExpr */;
7 short int var1
/* : Bool */;
8 short int var2
/* : Bool */;
9 val
* var_other
/* var other: nullable Object */;
10 short int var4
/* : Bool */;
11 short int var6
/* : Bool */;
12 short int var7
/* : Bool */;
15 const char* var_class_name
;
16 val
* var8
/* : TKwas */;
17 short int var9
/* : Bool */;
18 short int var10
/* : Bool */;
19 short int var12
/* : Bool */;
20 short int var14
/* : Bool */;
21 short int var15
/* : Bool */;
24 const char* var_class_name18
;
25 val
* var19
/* : nullable TOpar */;
26 short int var20
/* : Bool */;
27 short int var21
/* : Bool */;
28 short int var23
/* : Bool */;
29 short int var25
/* : Bool */;
30 short int var26
/* : Bool */;
33 const char* var_class_name29
;
34 val
* var30
/* : TKwnot */;
35 short int var31
/* : Bool */;
36 short int var32
/* : Bool */;
37 short int var34
/* : Bool */;
38 short int var36
/* : Bool */;
39 short int var37
/* : Bool */;
42 const char* var_class_name40
;
43 val
* var41
/* : TKwnull */;
44 short int var42
/* : Bool */;
45 short int var43
/* : Bool */;
46 short int var45
/* : Bool */;
47 short int var47
/* : Bool */;
48 short int var48
/* : Bool */;
51 const char* var_class_name51
;
52 val
* var52
/* : nullable TCpar */;
53 short int var53
/* : Bool */;
54 short int var54
/* : Bool */;
55 short int var56
/* : Bool */;
56 short int var58
/* : Bool */;
57 short int var59
/* : Bool */;
60 const char* var_class_name62
;
63 var
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
64 if (unlikely(var
== NULL
)) {
65 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
66 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5822);
70 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
71 var_other
= var_old_child
;
73 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
74 var6
= var
== var_other
;
87 /* <var_new_child:nullable ANode> isa AExpr */
88 cltype
= type_parser_nodes__AExpr
.color
;
89 idtype
= type_parser_nodes__AExpr
.id
;
90 if(var_new_child
== NULL
) {
93 if(cltype
>= var_new_child
->type
->table_size
) {
96 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
99 if (unlikely(!var7
)) {
100 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
101 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
102 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5823);
106 parser_prod__AAsNotnullExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on <self:AAsNotnullExpr>*/
111 var8
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
112 if (unlikely(var8
== NULL
)) {
113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
114 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5826);
118 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
119 var_other
= var_old_child
;
121 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
122 var14
= var8
== var_other
;
135 /* <var_new_child:nullable ANode> isa TKwas */
136 cltype16
= type_parser_nodes__TKwas
.color
;
137 idtype17
= type_parser_nodes__TKwas
.id
;
138 if(var_new_child
== NULL
) {
141 if(cltype16
>= var_new_child
->type
->table_size
) {
144 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
147 if (unlikely(!var15
)) {
148 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
149 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
150 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5827);
154 parser_prod__AAsNotnullExpr__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on <self:AAsNotnullExpr>*/
159 var19
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
161 var20
= 0; /* <var_old_child:ANode> cannot be null */
163 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable TOpar> */
164 var_other
= var_old_child
;
166 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable TOpar(TOpar)> */
167 var25
= var19
== var_other
;
180 /* <var_new_child:nullable ANode> isa nullable TOpar */
181 cltype27
= type_nullable_parser_nodes__TOpar
.color
;
182 idtype28
= type_nullable_parser_nodes__TOpar
.id
;
183 if(var_new_child
== NULL
) {
186 if(cltype27
>= var_new_child
->type
->table_size
) {
189 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
192 if (unlikely(!var26
)) {
193 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
194 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name29
);
195 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5831);
199 parser_prod__AAsNotnullExpr__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on <self:AAsNotnullExpr>*/
204 var30
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
205 if (unlikely(var30
== NULL
)) {
206 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
207 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5834);
211 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwnot> */
212 var_other
= var_old_child
;
214 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwnot> */
215 var36
= var30
== var_other
;
228 /* <var_new_child:nullable ANode> isa TKwnot */
229 cltype38
= type_parser_nodes__TKwnot
.color
;
230 idtype39
= type_parser_nodes__TKwnot
.id
;
231 if(var_new_child
== NULL
) {
234 if(cltype38
>= var_new_child
->type
->table_size
) {
237 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
240 if (unlikely(!var37
)) {
241 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
242 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name40
);
243 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5835);
247 parser_prod__AAsNotnullExpr__n_kwnot_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on <self:AAsNotnullExpr>*/
252 var41
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
253 if (unlikely(var41
== NULL
)) {
254 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
255 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5838);
259 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:TKwnull> */
260 var_other
= var_old_child
;
262 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:TKwnull> */
263 var47
= var41
== var_other
;
276 /* <var_new_child:nullable ANode> isa TKwnull */
277 cltype49
= type_parser_nodes__TKwnull
.color
;
278 idtype50
= type_parser_nodes__TKwnull
.id
;
279 if(var_new_child
== NULL
) {
282 if(cltype49
>= var_new_child
->type
->table_size
) {
285 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
288 if (unlikely(!var48
)) {
289 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
290 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name51
);
291 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5839);
295 parser_prod__AAsNotnullExpr__n_kwnull_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on <self:AAsNotnullExpr>*/
300 var52
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
302 var53
= 0; /* <var_old_child:ANode> cannot be null */
304 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable TCpar> */
305 var_other
= var_old_child
;
307 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable TCpar(TCpar)> */
308 var58
= var52
== var_other
;
321 /* <var_new_child:nullable ANode> isa nullable TCpar */
322 cltype60
= type_nullable_parser_nodes__TCpar
.color
;
323 idtype61
= type_nullable_parser_nodes__TCpar
.id
;
324 if(var_new_child
== NULL
) {
327 if(cltype60
>= var_new_child
->type
->table_size
) {
330 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
333 if (unlikely(!var59
)) {
334 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
335 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name62
);
336 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5843);
340 parser_prod__AAsNotnullExpr__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on <self:AAsNotnullExpr>*/
347 /* method parser_prod#AAsNotnullExpr#replace_child for (self: Object, ANode, nullable ANode) */
348 void VIRTUAL_parser_prod__AAsNotnullExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
349 parser_prod__AAsNotnullExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNotnullExpr#replace_child on <self:Object(AAsNotnullExpr)>*/
352 /* method parser_prod#AAsNotnullExpr#n_expr= for (self: AAsNotnullExpr, AExpr) */
353 void parser_prod__AAsNotnullExpr__n_expr_61d(val
* self
, val
* p0
) {
354 val
* var_node
/* var node: AExpr */;
356 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AAsNotnullExpr> */
358 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
359 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
365 /* method parser_prod#AAsNotnullExpr#n_expr= for (self: Object, AExpr) */
366 void VIRTUAL_parser_prod__AAsNotnullExpr__n_expr_61d(val
* self
, val
* p0
) {
367 parser_prod__AAsNotnullExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on <self:Object(AAsNotnullExpr)>*/
370 /* method parser_prod#AAsNotnullExpr#n_kwas= for (self: AAsNotnullExpr, TKwas) */
371 void parser_prod__AAsNotnullExpr__n_kwas_61d(val
* self
, val
* p0
) {
372 val
* var_node
/* var node: TKwas */;
374 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotnullExpr> */
376 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
377 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
383 /* method parser_prod#AAsNotnullExpr#n_kwas= for (self: Object, TKwas) */
384 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwas_61d(val
* self
, val
* p0
) {
385 parser_prod__AAsNotnullExpr__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on <self:Object(AAsNotnullExpr)>*/
388 /* method parser_prod#AAsNotnullExpr#n_opar= for (self: AAsNotnullExpr, nullable TOpar) */
389 void parser_prod__AAsNotnullExpr__n_opar_61d(val
* self
, val
* p0
) {
390 val
* var_node
/* var node: nullable TOpar */;
391 val
* var
/* : null */;
392 short int var1
/* : Bool */;
393 short int var2
/* : Bool */;
394 val
* var_other
/* var other: nullable Object */;
395 short int var4
/* : Bool */;
396 short int var5
/* : Bool */;
397 short int var6
/* : Bool */;
399 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
= var_node
; /* _n_opar on <self:AAsNotnullExpr> */
401 if (var_node
== NULL
) {
402 var1
= 0; /* is null */
404 var1
= 1; /* arg is null and recv is not */
407 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
410 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
422 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
423 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
431 /* method parser_prod#AAsNotnullExpr#n_opar= for (self: Object, nullable TOpar) */
432 void VIRTUAL_parser_prod__AAsNotnullExpr__n_opar_61d(val
* self
, val
* p0
) {
433 parser_prod__AAsNotnullExpr__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on <self:Object(AAsNotnullExpr)>*/
436 /* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: AAsNotnullExpr, TKwnot) */
437 void parser_prod__AAsNotnullExpr__n_kwnot_61d(val
* self
, val
* p0
) {
438 val
* var_node
/* var node: TKwnot */;
440 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotnullExpr> */
442 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnot> */
443 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnot> */
449 /* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: Object, TKwnot) */
450 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnot_61d(val
* self
, val
* p0
) {
451 parser_prod__AAsNotnullExpr__n_kwnot_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on <self:Object(AAsNotnullExpr)>*/
454 /* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: AAsNotnullExpr, TKwnull) */
455 void parser_prod__AAsNotnullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
456 val
* var_node
/* var node: TKwnull */;
458 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
= var_node
; /* _n_kwnull on <self:AAsNotnullExpr> */
460 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnull> */
461 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnull> */
467 /* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: Object, TKwnull) */
468 void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnull_61d(val
* self
, val
* p0
) {
469 parser_prod__AAsNotnullExpr__n_kwnull_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on <self:Object(AAsNotnullExpr)>*/
472 /* method parser_prod#AAsNotnullExpr#n_cpar= for (self: AAsNotnullExpr, nullable TCpar) */
473 void parser_prod__AAsNotnullExpr__n_cpar_61d(val
* self
, val
* p0
) {
474 val
* var_node
/* var node: nullable TCpar */;
475 val
* var
/* : null */;
476 short int var1
/* : Bool */;
477 short int var2
/* : Bool */;
478 val
* var_other
/* var other: nullable Object */;
479 short int var4
/* : Bool */;
480 short int var5
/* : Bool */;
481 short int var6
/* : Bool */;
483 self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAsNotnullExpr> */
485 if (var_node
== NULL
) {
486 var1
= 0; /* is null */
488 var1
= 1; /* arg is null and recv is not */
491 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
494 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
506 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
507 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
515 /* method parser_prod#AAsNotnullExpr#n_cpar= for (self: Object, nullable TCpar) */
516 void VIRTUAL_parser_prod__AAsNotnullExpr__n_cpar_61d(val
* self
, val
* p0
) {
517 parser_prod__AAsNotnullExpr__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on <self:Object(AAsNotnullExpr)>*/
520 /* method parser_prod#AAsNotnullExpr#visit_all for (self: AAsNotnullExpr, Visitor) */
521 void parser_prod__AAsNotnullExpr__visit_all(val
* self
, val
* p0
) {
522 val
* var_v
/* var v: Visitor */;
523 val
* var
/* : AExpr */;
524 val
* var1
/* : TKwas */;
525 val
* var2
/* : nullable TOpar */;
526 val
* var3
/* : TKwnot */;
527 val
* var4
/* : TKwnull */;
528 val
* var5
/* : nullable TCpar */;
530 var
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_expr
].val
; /* _n_expr on <self:AAsNotnullExpr> */
531 if (unlikely(var
== NULL
)) {
532 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
533 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5882);
537 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
539 var1
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwas
].val
; /* _n_kwas on <self:AAsNotnullExpr> */
540 if (unlikely(var1
== NULL
)) {
541 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
542 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5883);
546 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
548 var2
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_opar
].val
; /* _n_opar on <self:AAsNotnullExpr> */
550 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
552 var3
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotnullExpr> */
553 if (unlikely(var3
== NULL
)) {
554 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
555 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5885);
559 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
561 var4
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull
].val
; /* _n_kwnull on <self:AAsNotnullExpr> */
562 if (unlikely(var4
== NULL
)) {
563 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull");
564 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5886);
568 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
570 var5
= self
->attrs
[COLOR_parser_nodes__AAsNotnullExpr___n_cpar
].val
; /* _n_cpar on <self:AAsNotnullExpr> */
572 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
576 /* method parser_prod#AAsNotnullExpr#visit_all for (self: Object, Visitor) */
577 void VIRTUAL_parser_prod__AAsNotnullExpr__visit_all(val
* self
, val
* p0
) {
578 parser_prod__AAsNotnullExpr__visit_all(self
, p0
); /* Direct call parser_prod#AAsNotnullExpr#visit_all on <self:Object(AAsNotnullExpr)>*/
581 /* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: AIssetAttrExpr, nullable TKwisset, nullable AExpr, nullable TAttrid) */
582 void parser_prod__AIssetAttrExpr__init_aissetattrexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
583 val
* var_n_kwisset
/* var n_kwisset: nullable TKwisset */;
584 val
* var_n_expr
/* var n_expr: nullable AExpr */;
585 val
* var_n_id
/* var n_id: nullable TAttrid */;
589 if (unlikely(var_n_kwisset
== NULL
)) {
590 PRINT_ERROR("Runtime error: %s", "Cast failed");
591 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5897);
594 self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_n_kwisset
; /* _n_kwisset on <self:AIssetAttrExpr> */
595 if (var_n_kwisset
== NULL
) {
596 PRINT_ERROR("Runtime error: %s", "Receiver is null");
597 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5898);
600 { /* Inline parser_nodes#ANode#parent= (var_n_kwisset,self) on <var_n_kwisset:nullable TKwisset> */
601 if (unlikely(var_n_kwisset
== NULL
)) {
602 PRINT_ERROR("Runtime error: %s", "Receiver is null");
603 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
606 var_n_kwisset
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwisset:nullable TKwisset> */
610 if (unlikely(var_n_expr
== NULL
)) {
611 PRINT_ERROR("Runtime error: %s", "Cast failed");
612 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5899);
615 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIssetAttrExpr> */
616 if (var_n_expr
== NULL
) {
617 PRINT_ERROR("Runtime error: %s", "Receiver is null");
618 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5900);
621 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
622 if (unlikely(var_n_expr
== NULL
)) {
623 PRINT_ERROR("Runtime error: %s", "Receiver is null");
624 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
627 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
631 if (unlikely(var_n_id
== NULL
)) {
632 PRINT_ERROR("Runtime error: %s", "Cast failed");
633 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5901);
636 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AIssetAttrExpr> */
637 if (var_n_id
== NULL
) {
638 PRINT_ERROR("Runtime error: %s", "Receiver is null");
639 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5902);
642 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TAttrid> */
643 if (unlikely(var_n_id
== NULL
)) {
644 PRINT_ERROR("Runtime error: %s", "Receiver is null");
645 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
648 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TAttrid> */
654 /* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: Object, nullable TKwisset, nullable AExpr, nullable TAttrid) */
655 void VIRTUAL_parser_prod__AIssetAttrExpr__init_aissetattrexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
656 parser_prod__AIssetAttrExpr__init_aissetattrexpr(self
, p0
, p1
, p2
); /* Direct call parser_prod#AIssetAttrExpr#init_aissetattrexpr on <self:Object(AIssetAttrExpr)>*/
659 /* method parser_prod#AIssetAttrExpr#replace_child for (self: AIssetAttrExpr, ANode, nullable ANode) */
660 void parser_prod__AIssetAttrExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
661 val
* var_old_child
/* var old_child: ANode */;
662 val
* var_new_child
/* var new_child: nullable ANode */;
663 val
* var
/* : TKwisset */;
664 short int var1
/* : Bool */;
665 short int var2
/* : Bool */;
666 val
* var_other
/* var other: nullable Object */;
667 short int var4
/* : Bool */;
668 short int var6
/* : Bool */;
669 short int var7
/* : Bool */;
672 const char* var_class_name
;
673 val
* var8
/* : AExpr */;
674 short int var9
/* : Bool */;
675 short int var10
/* : Bool */;
676 short int var12
/* : Bool */;
677 short int var14
/* : Bool */;
678 short int var15
/* : Bool */;
681 const char* var_class_name18
;
682 val
* var19
/* : TAttrid */;
683 short int var20
/* : Bool */;
684 short int var21
/* : Bool */;
685 short int var23
/* : Bool */;
686 short int var25
/* : Bool */;
687 short int var26
/* : Bool */;
690 const char* var_class_name29
;
693 var
= self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
694 if (unlikely(var
== NULL
)) {
695 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
696 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5907);
700 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwisset> */
701 var_other
= var_old_child
;
703 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwisset> */
704 var6
= var
== var_other
;
717 /* <var_new_child:nullable ANode> isa TKwisset */
718 cltype
= type_parser_nodes__TKwisset
.color
;
719 idtype
= type_parser_nodes__TKwisset
.id
;
720 if(var_new_child
== NULL
) {
723 if(cltype
>= var_new_child
->type
->table_size
) {
726 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
729 if (unlikely(!var7
)) {
730 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
731 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwisset", var_class_name
);
732 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5908);
736 parser_prod__AIssetAttrExpr__n_kwisset_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on <self:AIssetAttrExpr>*/
741 var8
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
742 if (unlikely(var8
== NULL
)) {
743 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
744 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5911);
748 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AExpr> */
749 var_other
= var_old_child
;
751 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AExpr> */
752 var14
= var8
== var_other
;
765 /* <var_new_child:nullable ANode> isa AExpr */
766 cltype16
= type_parser_nodes__AExpr
.color
;
767 idtype17
= type_parser_nodes__AExpr
.id
;
768 if(var_new_child
== NULL
) {
771 if(cltype16
>= var_new_child
->type
->table_size
) {
774 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
777 if (unlikely(!var15
)) {
778 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
779 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18
);
780 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5912);
784 parser_prod__AIssetAttrExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on <self:AIssetAttrExpr>*/
789 var19
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
790 if (unlikely(var19
== NULL
)) {
791 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
792 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5915);
796 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TAttrid> */
797 var_other
= var_old_child
;
799 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TAttrid> */
800 var25
= var19
== var_other
;
813 /* <var_new_child:nullable ANode> isa TAttrid */
814 cltype27
= type_parser_nodes__TAttrid
.color
;
815 idtype28
= type_parser_nodes__TAttrid
.id
;
816 if(var_new_child
== NULL
) {
819 if(cltype27
>= var_new_child
->type
->table_size
) {
822 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
825 if (unlikely(!var26
)) {
826 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
827 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name29
);
828 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5916);
832 parser_prod__AIssetAttrExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIssetAttrExpr#n_id= on <self:AIssetAttrExpr>*/
839 /* method parser_prod#AIssetAttrExpr#replace_child for (self: Object, ANode, nullable ANode) */
840 void VIRTUAL_parser_prod__AIssetAttrExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
841 parser_prod__AIssetAttrExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AIssetAttrExpr#replace_child on <self:Object(AIssetAttrExpr)>*/
844 /* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: AIssetAttrExpr, TKwisset) */
845 void parser_prod__AIssetAttrExpr__n_kwisset_61d(val
* self
, val
* p0
) {
846 val
* var_node
/* var node: TKwisset */;
848 self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
= var_node
; /* _n_kwisset on <self:AIssetAttrExpr> */
850 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwisset> */
851 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwisset> */
857 /* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: Object, TKwisset) */
858 void VIRTUAL_parser_prod__AIssetAttrExpr__n_kwisset_61d(val
* self
, val
* p0
) {
859 parser_prod__AIssetAttrExpr__n_kwisset_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on <self:Object(AIssetAttrExpr)>*/
862 /* method parser_prod#AIssetAttrExpr#n_expr= for (self: AIssetAttrExpr, AExpr) */
863 void parser_prod__AIssetAttrExpr__n_expr_61d(val
* self
, val
* p0
) {
864 val
* var_node
/* var node: AExpr */;
866 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIssetAttrExpr> */
868 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
869 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
875 /* method parser_prod#AIssetAttrExpr#n_expr= for (self: Object, AExpr) */
876 void VIRTUAL_parser_prod__AIssetAttrExpr__n_expr_61d(val
* self
, val
* p0
) {
877 parser_prod__AIssetAttrExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on <self:Object(AIssetAttrExpr)>*/
880 /* method parser_prod#AIssetAttrExpr#n_id= for (self: AIssetAttrExpr, TAttrid) */
881 void parser_prod__AIssetAttrExpr__n_id_61d(val
* self
, val
* p0
) {
882 val
* var_node
/* var node: TAttrid */;
884 self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
= var_node
; /* _n_id on <self:AIssetAttrExpr> */
886 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAttrid> */
887 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAttrid> */
893 /* method parser_prod#AIssetAttrExpr#n_id= for (self: Object, TAttrid) */
894 void VIRTUAL_parser_prod__AIssetAttrExpr__n_id_61d(val
* self
, val
* p0
) {
895 parser_prod__AIssetAttrExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#n_id= on <self:Object(AIssetAttrExpr)>*/
898 /* method parser_prod#AIssetAttrExpr#visit_all for (self: AIssetAttrExpr, Visitor) */
899 void parser_prod__AIssetAttrExpr__visit_all(val
* self
, val
* p0
) {
900 val
* var_v
/* var v: Visitor */;
901 val
* var
/* : TKwisset */;
902 val
* var1
/* : AExpr */;
903 val
* var2
/* : TAttrid */;
905 var
= self
->attrs
[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset
].val
; /* _n_kwisset on <self:AIssetAttrExpr> */
906 if (unlikely(var
== NULL
)) {
907 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset");
908 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5940);
912 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
914 var1
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_expr
].val
; /* _n_expr on <self:AIssetAttrExpr> */
915 if (unlikely(var1
== NULL
)) {
916 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
917 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5941);
921 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
923 var2
= self
->attrs
[COLOR_parser_nodes__AAttrFormExpr___n_id
].val
; /* _n_id on <self:AIssetAttrExpr> */
924 if (unlikely(var2
== NULL
)) {
925 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
926 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5942);
930 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
934 /* method parser_prod#AIssetAttrExpr#visit_all for (self: Object, Visitor) */
935 void VIRTUAL_parser_prod__AIssetAttrExpr__visit_all(val
* self
, val
* p0
) {
936 parser_prod__AIssetAttrExpr__visit_all(self
, p0
); /* Direct call parser_prod#AIssetAttrExpr#visit_all on <self:Object(AIssetAttrExpr)>*/
939 /* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: ADebugTypeExpr, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */
940 void parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
941 val
* var_n_kwdebug
/* var n_kwdebug: nullable TKwdebug */;
942 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
943 val
* var_n_expr
/* var n_expr: nullable AExpr */;
944 val
* var_n_type
/* var n_type: nullable AType */;
949 if (unlikely(var_n_kwdebug
== NULL
)) {
950 PRINT_ERROR("Runtime error: %s", "Cast failed");
951 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5953);
954 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_n_kwdebug
; /* _n_kwdebug on <self:ADebugTypeExpr> */
955 if (var_n_kwdebug
== NULL
) {
956 PRINT_ERROR("Runtime error: %s", "Receiver is null");
957 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5954);
960 { /* Inline parser_nodes#ANode#parent= (var_n_kwdebug,self) on <var_n_kwdebug:nullable TKwdebug> */
961 if (unlikely(var_n_kwdebug
== NULL
)) {
962 PRINT_ERROR("Runtime error: %s", "Receiver is null");
963 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
966 var_n_kwdebug
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdebug:nullable TKwdebug> */
970 if (unlikely(var_n_kwtype
== NULL
)) {
971 PRINT_ERROR("Runtime error: %s", "Cast failed");
972 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5955);
975 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ADebugTypeExpr> */
976 if (var_n_kwtype
== NULL
) {
977 PRINT_ERROR("Runtime error: %s", "Receiver is null");
978 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5956);
981 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
982 if (unlikely(var_n_kwtype
== NULL
)) {
983 PRINT_ERROR("Runtime error: %s", "Receiver is null");
984 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
987 var_n_kwtype
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
991 if (unlikely(var_n_expr
== NULL
)) {
992 PRINT_ERROR("Runtime error: %s", "Cast failed");
993 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5957);
996 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:ADebugTypeExpr> */
997 if (var_n_expr
== NULL
) {
998 PRINT_ERROR("Runtime error: %s", "Receiver is null");
999 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5958);
1002 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1003 if (unlikely(var_n_expr
== NULL
)) {
1004 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1005 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1008 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1012 if (unlikely(var_n_type
== NULL
)) {
1013 PRINT_ERROR("Runtime error: %s", "Cast failed");
1014 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5959);
1017 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ADebugTypeExpr> */
1018 if (var_n_type
== NULL
) {
1019 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1020 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5960);
1023 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
1024 if (unlikely(var_n_type
== NULL
)) {
1025 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1026 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1029 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
1035 /* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: Object, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */
1036 void VIRTUAL_parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1037 parser_prod__ADebugTypeExpr__init_adebugtypeexpr(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ADebugTypeExpr#init_adebugtypeexpr on <self:Object(ADebugTypeExpr)>*/
1040 /* method parser_prod#ADebugTypeExpr#replace_child for (self: ADebugTypeExpr, ANode, nullable ANode) */
1041 void parser_prod__ADebugTypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1042 val
* var_old_child
/* var old_child: ANode */;
1043 val
* var_new_child
/* var new_child: nullable ANode */;
1044 val
* var
/* : TKwdebug */;
1045 short int var1
/* : Bool */;
1046 short int var2
/* : Bool */;
1047 val
* var_other
/* var other: nullable Object */;
1048 short int var4
/* : Bool */;
1049 short int var6
/* : Bool */;
1050 short int var7
/* : Bool */;
1053 const char* var_class_name
;
1054 val
* var8
/* : TKwtype */;
1055 short int var9
/* : Bool */;
1056 short int var10
/* : Bool */;
1057 short int var12
/* : Bool */;
1058 short int var14
/* : Bool */;
1059 short int var15
/* : Bool */;
1062 const char* var_class_name18
;
1063 val
* var19
/* : AExpr */;
1064 short int var20
/* : Bool */;
1065 short int var21
/* : Bool */;
1066 short int var23
/* : Bool */;
1067 short int var25
/* : Bool */;
1068 short int var26
/* : Bool */;
1071 const char* var_class_name29
;
1072 val
* var30
/* : AType */;
1073 short int var31
/* : Bool */;
1074 short int var32
/* : Bool */;
1075 short int var34
/* : Bool */;
1076 short int var36
/* : Bool */;
1077 short int var37
/* : Bool */;
1080 const char* var_class_name40
;
1083 var
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
1084 if (unlikely(var
== NULL
)) {
1085 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
1086 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5965);
1090 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdebug> */
1091 var_other
= var_old_child
;
1093 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdebug> */
1094 var6
= var
== var_other
;
1107 /* <var_new_child:nullable ANode> isa TKwdebug */
1108 cltype
= type_parser_nodes__TKwdebug
.color
;
1109 idtype
= type_parser_nodes__TKwdebug
.id
;
1110 if(var_new_child
== NULL
) {
1113 if(cltype
>= var_new_child
->type
->table_size
) {
1116 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1119 if (unlikely(!var7
)) {
1120 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1121 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdebug", var_class_name
);
1122 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5966);
1126 parser_prod__ADebugTypeExpr__n_kwdebug_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on <self:ADebugTypeExpr>*/
1131 var8
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
1132 if (unlikely(var8
== NULL
)) {
1133 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
1134 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5969);
1138 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwtype> */
1139 var_other
= var_old_child
;
1141 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwtype> */
1142 var14
= var8
== var_other
;
1145 RET_LABEL13
:(void)0;
1150 RET_LABEL11
:(void)0;
1155 /* <var_new_child:nullable ANode> isa TKwtype */
1156 cltype16
= type_parser_nodes__TKwtype
.color
;
1157 idtype17
= type_parser_nodes__TKwtype
.id
;
1158 if(var_new_child
== NULL
) {
1161 if(cltype16
>= var_new_child
->type
->table_size
) {
1164 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1167 if (unlikely(!var15
)) {
1168 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1169 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name18
);
1170 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5970);
1174 parser_prod__ADebugTypeExpr__n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on <self:ADebugTypeExpr>*/
1179 var19
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
1180 if (unlikely(var19
== NULL
)) {
1181 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1182 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5973);
1186 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AExpr> */
1187 var_other
= var_old_child
;
1189 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AExpr> */
1190 var25
= var19
== var_other
;
1193 RET_LABEL24
:(void)0;
1198 RET_LABEL22
:(void)0;
1203 /* <var_new_child:nullable ANode> isa AExpr */
1204 cltype27
= type_parser_nodes__AExpr
.color
;
1205 idtype28
= type_parser_nodes__AExpr
.id
;
1206 if(var_new_child
== NULL
) {
1209 if(cltype27
>= var_new_child
->type
->table_size
) {
1212 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
1215 if (unlikely(!var26
)) {
1216 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1217 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29
);
1218 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5974);
1222 parser_prod__ADebugTypeExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on <self:ADebugTypeExpr>*/
1227 var30
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
1228 if (unlikely(var30
== NULL
)) {
1229 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
1230 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5977);
1234 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
1235 var_other
= var_old_child
;
1237 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
1238 var36
= var30
== var_other
;
1241 RET_LABEL35
:(void)0;
1246 RET_LABEL33
:(void)0;
1251 /* <var_new_child:nullable ANode> isa AType */
1252 cltype38
= type_parser_nodes__AType
.color
;
1253 idtype39
= type_parser_nodes__AType
.id
;
1254 if(var_new_child
== NULL
) {
1257 if(cltype38
>= var_new_child
->type
->table_size
) {
1260 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
1263 if (unlikely(!var37
)) {
1264 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1265 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
1266 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5978);
1270 parser_prod__ADebugTypeExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ADebugTypeExpr#n_type= on <self:ADebugTypeExpr>*/
1277 /* method parser_prod#ADebugTypeExpr#replace_child for (self: Object, ANode, nullable ANode) */
1278 void VIRTUAL_parser_prod__ADebugTypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1279 parser_prod__ADebugTypeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADebugTypeExpr#replace_child on <self:Object(ADebugTypeExpr)>*/
1282 /* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: ADebugTypeExpr, TKwdebug) */
1283 void parser_prod__ADebugTypeExpr__n_kwdebug_61d(val
* self
, val
* p0
) {
1284 val
* var_node
/* var node: TKwdebug */;
1286 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
= var_node
; /* _n_kwdebug on <self:ADebugTypeExpr> */
1288 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdebug> */
1289 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdebug> */
1295 /* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: Object, TKwdebug) */
1296 void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwdebug_61d(val
* self
, val
* p0
) {
1297 parser_prod__ADebugTypeExpr__n_kwdebug_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on <self:Object(ADebugTypeExpr)>*/
1300 /* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: ADebugTypeExpr, TKwtype) */
1301 void parser_prod__ADebugTypeExpr__n_kwtype_61d(val
* self
, val
* p0
) {
1302 val
* var_node
/* var node: TKwtype */;
1304 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ADebugTypeExpr> */
1306 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
1307 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
1313 /* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: Object, TKwtype) */
1314 void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwtype_61d(val
* self
, val
* p0
) {
1315 parser_prod__ADebugTypeExpr__n_kwtype_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on <self:Object(ADebugTypeExpr)>*/
1318 /* method parser_prod#ADebugTypeExpr#n_expr= for (self: ADebugTypeExpr, AExpr) */
1319 void parser_prod__ADebugTypeExpr__n_expr_61d(val
* self
, val
* p0
) {
1320 val
* var_node
/* var node: AExpr */;
1322 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
= var_node
; /* _n_expr on <self:ADebugTypeExpr> */
1324 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1325 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1331 /* method parser_prod#ADebugTypeExpr#n_expr= for (self: Object, AExpr) */
1332 void VIRTUAL_parser_prod__ADebugTypeExpr__n_expr_61d(val
* self
, val
* p0
) {
1333 parser_prod__ADebugTypeExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on <self:Object(ADebugTypeExpr)>*/
1336 /* method parser_prod#ADebugTypeExpr#n_type= for (self: ADebugTypeExpr, AType) */
1337 void parser_prod__ADebugTypeExpr__n_type_61d(val
* self
, val
* p0
) {
1338 val
* var_node
/* var node: AType */;
1340 self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
= var_node
; /* _n_type on <self:ADebugTypeExpr> */
1342 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
1343 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
1349 /* method parser_prod#ADebugTypeExpr#n_type= for (self: Object, AType) */
1350 void VIRTUAL_parser_prod__ADebugTypeExpr__n_type_61d(val
* self
, val
* p0
) {
1351 parser_prod__ADebugTypeExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#n_type= on <self:Object(ADebugTypeExpr)>*/
1354 /* method parser_prod#ADebugTypeExpr#visit_all for (self: ADebugTypeExpr, Visitor) */
1355 void parser_prod__ADebugTypeExpr__visit_all(val
* self
, val
* p0
) {
1356 val
* var_v
/* var v: Visitor */;
1357 val
* var
/* : TKwdebug */;
1358 val
* var1
/* : TKwtype */;
1359 val
* var2
/* : AExpr */;
1360 val
* var3
/* : AType */;
1362 var
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug
].val
; /* _n_kwdebug on <self:ADebugTypeExpr> */
1363 if (unlikely(var
== NULL
)) {
1364 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug");
1365 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6007);
1369 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1371 var1
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype
].val
; /* _n_kwtype on <self:ADebugTypeExpr> */
1372 if (unlikely(var1
== NULL
)) {
1373 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
1374 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6008);
1378 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1380 var2
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_expr
].val
; /* _n_expr on <self:ADebugTypeExpr> */
1381 if (unlikely(var2
== NULL
)) {
1382 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1383 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6009);
1387 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1389 var3
= self
->attrs
[COLOR_parser_nodes__ADebugTypeExpr___n_type
].val
; /* _n_type on <self:ADebugTypeExpr> */
1390 if (unlikely(var3
== NULL
)) {
1391 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
1392 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6010);
1396 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1400 /* method parser_prod#ADebugTypeExpr#visit_all for (self: Object, Visitor) */
1401 void VIRTUAL_parser_prod__ADebugTypeExpr__visit_all(val
* self
, val
* p0
) {
1402 parser_prod__ADebugTypeExpr__visit_all(self
, p0
); /* Direct call parser_prod#ADebugTypeExpr#visit_all on <self:Object(ADebugTypeExpr)>*/
1405 /* method parser_prod#AVarargExpr#init_avarargexpr for (self: AVarargExpr, nullable AExpr, nullable TDotdotdot) */
1406 void parser_prod__AVarargExpr__init_avarargexpr(val
* self
, val
* p0
, val
* p1
) {
1407 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1408 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
1410 var_n_dotdotdot
= p1
;
1411 if (unlikely(var_n_expr
== NULL
)) {
1412 PRINT_ERROR("Runtime error: %s", "Cast failed");
1413 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6019);
1416 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVarargExpr> */
1417 if (var_n_expr
== NULL
) {
1418 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1419 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6020);
1422 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1423 if (unlikely(var_n_expr
== NULL
)) {
1424 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1425 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1428 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1432 if (unlikely(var_n_dotdotdot
== NULL
)) {
1433 PRINT_ERROR("Runtime error: %s", "Cast failed");
1434 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6021);
1437 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AVarargExpr> */
1438 if (var_n_dotdotdot
== NULL
) {
1439 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1440 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6022);
1443 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot> */
1444 if (unlikely(var_n_dotdotdot
== NULL
)) {
1445 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1446 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1449 var_n_dotdotdot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot> */
1455 /* method parser_prod#AVarargExpr#init_avarargexpr for (self: Object, nullable AExpr, nullable TDotdotdot) */
1456 void VIRTUAL_parser_prod__AVarargExpr__init_avarargexpr(val
* self
, val
* p0
, val
* p1
) {
1457 parser_prod__AVarargExpr__init_avarargexpr(self
, p0
, p1
); /* Direct call parser_prod#AVarargExpr#init_avarargexpr on <self:Object(AVarargExpr)>*/
1460 /* method parser_prod#AVarargExpr#replace_child for (self: AVarargExpr, ANode, nullable ANode) */
1461 void parser_prod__AVarargExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1462 val
* var_old_child
/* var old_child: ANode */;
1463 val
* var_new_child
/* var new_child: nullable ANode */;
1464 val
* var
/* : AExpr */;
1465 short int var1
/* : Bool */;
1466 short int var2
/* : Bool */;
1467 val
* var_other
/* var other: nullable Object */;
1468 short int var4
/* : Bool */;
1469 short int var6
/* : Bool */;
1470 short int var7
/* : Bool */;
1473 const char* var_class_name
;
1474 val
* var8
/* : TDotdotdot */;
1475 short int var9
/* : Bool */;
1476 short int var10
/* : Bool */;
1477 short int var12
/* : Bool */;
1478 short int var14
/* : Bool */;
1479 short int var15
/* : Bool */;
1482 const char* var_class_name18
;
1485 var
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
1486 if (unlikely(var
== NULL
)) {
1487 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1488 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6027);
1492 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1493 var_other
= var_old_child
;
1495 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1496 var6
= var
== var_other
;
1509 /* <var_new_child:nullable ANode> isa AExpr */
1510 cltype
= type_parser_nodes__AExpr
.color
;
1511 idtype
= type_parser_nodes__AExpr
.id
;
1512 if(var_new_child
== NULL
) {
1515 if(cltype
>= var_new_child
->type
->table_size
) {
1518 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1521 if (unlikely(!var7
)) {
1522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1524 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6028);
1528 parser_prod__AVarargExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_expr= on <self:AVarargExpr>*/
1533 var8
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
1534 if (unlikely(var8
== NULL
)) {
1535 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
1536 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6031);
1540 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TDotdotdot> */
1541 var_other
= var_old_child
;
1543 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TDotdotdot> */
1544 var14
= var8
== var_other
;
1547 RET_LABEL13
:(void)0;
1552 RET_LABEL11
:(void)0;
1557 /* <var_new_child:nullable ANode> isa TDotdotdot */
1558 cltype16
= type_parser_nodes__TDotdotdot
.color
;
1559 idtype17
= type_parser_nodes__TDotdotdot
.id
;
1560 if(var_new_child
== NULL
) {
1563 if(cltype16
>= var_new_child
->type
->table_size
) {
1566 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1569 if (unlikely(!var15
)) {
1570 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1571 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdotdot", var_class_name18
);
1572 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6032);
1576 parser_prod__AVarargExpr__n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on <self:AVarargExpr>*/
1583 /* method parser_prod#AVarargExpr#replace_child for (self: Object, ANode, nullable ANode) */
1584 void VIRTUAL_parser_prod__AVarargExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1585 parser_prod__AVarargExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AVarargExpr#replace_child on <self:Object(AVarargExpr)>*/
1588 /* method parser_prod#AVarargExpr#n_expr= for (self: AVarargExpr, AExpr) */
1589 void parser_prod__AVarargExpr__n_expr_61d(val
* self
, val
* p0
) {
1590 val
* var_node
/* var node: AExpr */;
1592 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVarargExpr> */
1594 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1595 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1601 /* method parser_prod#AVarargExpr#n_expr= for (self: Object, AExpr) */
1602 void VIRTUAL_parser_prod__AVarargExpr__n_expr_61d(val
* self
, val
* p0
) {
1603 parser_prod__AVarargExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AVarargExpr#n_expr= on <self:Object(AVarargExpr)>*/
1606 /* method parser_prod#AVarargExpr#n_dotdotdot= for (self: AVarargExpr, TDotdotdot) */
1607 void parser_prod__AVarargExpr__n_dotdotdot_61d(val
* self
, val
* p0
) {
1608 val
* var_node
/* var node: TDotdotdot */;
1610 self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AVarargExpr> */
1612 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TDotdotdot> */
1613 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TDotdotdot> */
1619 /* method parser_prod#AVarargExpr#n_dotdotdot= for (self: Object, TDotdotdot) */
1620 void VIRTUAL_parser_prod__AVarargExpr__n_dotdotdot_61d(val
* self
, val
* p0
) {
1621 parser_prod__AVarargExpr__n_dotdotdot_61d(self
, p0
); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on <self:Object(AVarargExpr)>*/
1624 /* method parser_prod#AVarargExpr#visit_all for (self: AVarargExpr, Visitor) */
1625 void parser_prod__AVarargExpr__visit_all(val
* self
, val
* p0
) {
1626 val
* var_v
/* var v: Visitor */;
1627 val
* var
/* : AExpr */;
1628 val
* var1
/* : TDotdotdot */;
1630 var
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_expr
].val
; /* _n_expr on <self:AVarargExpr> */
1631 if (unlikely(var
== NULL
)) {
1632 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1633 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6051);
1637 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1639 var1
= self
->attrs
[COLOR_parser_nodes__AVarargExpr___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AVarargExpr> */
1640 if (unlikely(var1
== NULL
)) {
1641 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot");
1642 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6052);
1646 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1650 /* method parser_prod#AVarargExpr#visit_all for (self: Object, Visitor) */
1651 void VIRTUAL_parser_prod__AVarargExpr__visit_all(val
* self
, val
* p0
) {
1652 parser_prod__AVarargExpr__visit_all(self
, p0
); /* Direct call parser_prod#AVarargExpr#visit_all on <self:Object(AVarargExpr)>*/
1655 /* method parser_prod#ATypeExpr#init_atypeexpr for (self: ATypeExpr, nullable AType) */
1656 void parser_prod__ATypeExpr__init_atypeexpr(val
* self
, val
* p0
) {
1657 val
* var_n_type
/* var n_type: nullable AType */;
1659 if (unlikely(var_n_type
== NULL
)) {
1660 PRINT_ERROR("Runtime error: %s", "Cast failed");
1661 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6060);
1664 self
->attrs
[COLOR_parser_nodes__ATypeExpr___n_type
].val
= var_n_type
; /* _n_type on <self:ATypeExpr> */
1665 if (var_n_type
== NULL
) {
1666 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1667 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6061);
1670 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
1671 if (unlikely(var_n_type
== NULL
)) {
1672 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1673 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1676 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
1682 /* method parser_prod#ATypeExpr#init_atypeexpr for (self: Object, nullable AType) */
1683 void VIRTUAL_parser_prod__ATypeExpr__init_atypeexpr(val
* self
, val
* p0
) {
1684 parser_prod__ATypeExpr__init_atypeexpr(self
, p0
); /* Direct call parser_prod#ATypeExpr#init_atypeexpr on <self:Object(ATypeExpr)>*/
1687 /* method parser_prod#ATypeExpr#replace_child for (self: ATypeExpr, ANode, nullable ANode) */
1688 void parser_prod__ATypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1689 val
* var_old_child
/* var old_child: ANode */;
1690 val
* var_new_child
/* var new_child: nullable ANode */;
1691 val
* var
/* : AType */;
1692 short int var1
/* : Bool */;
1693 short int var2
/* : Bool */;
1694 val
* var_other
/* var other: nullable Object */;
1695 short int var4
/* : Bool */;
1696 short int var6
/* : Bool */;
1697 short int var7
/* : Bool */;
1700 const char* var_class_name
;
1703 var
= self
->attrs
[COLOR_parser_nodes__ATypeExpr___n_type
].val
; /* _n_type on <self:ATypeExpr> */
1704 if (unlikely(var
== NULL
)) {
1705 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
1706 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6066);
1710 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
1711 var_other
= var_old_child
;
1713 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
1714 var6
= var
== var_other
;
1727 /* <var_new_child:nullable ANode> isa AType */
1728 cltype
= type_parser_nodes__AType
.color
;
1729 idtype
= type_parser_nodes__AType
.id
;
1730 if(var_new_child
== NULL
) {
1733 if(cltype
>= var_new_child
->type
->table_size
) {
1736 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1739 if (unlikely(!var7
)) {
1740 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1741 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
1742 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6067);
1746 parser_prod__ATypeExpr__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypeExpr#n_type= on <self:ATypeExpr>*/
1753 /* method parser_prod#ATypeExpr#replace_child for (self: Object, ANode, nullable ANode) */
1754 void VIRTUAL_parser_prod__ATypeExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1755 parser_prod__ATypeExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATypeExpr#replace_child on <self:Object(ATypeExpr)>*/
1758 /* method parser_prod#ATypeExpr#n_type= for (self: ATypeExpr, AType) */
1759 void parser_prod__ATypeExpr__n_type_61d(val
* self
, val
* p0
) {
1760 val
* var_node
/* var node: AType */;
1762 self
->attrs
[COLOR_parser_nodes__ATypeExpr___n_type
].val
= var_node
; /* _n_type on <self:ATypeExpr> */
1764 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
1765 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
1771 /* method parser_prod#ATypeExpr#n_type= for (self: Object, AType) */
1772 void VIRTUAL_parser_prod__ATypeExpr__n_type_61d(val
* self
, val
* p0
) {
1773 parser_prod__ATypeExpr__n_type_61d(self
, p0
); /* Direct call parser_prod#ATypeExpr#n_type= on <self:Object(ATypeExpr)>*/
1776 /* method parser_prod#ATypeExpr#visit_all for (self: ATypeExpr, Visitor) */
1777 void parser_prod__ATypeExpr__visit_all(val
* self
, val
* p0
) {
1778 val
* var_v
/* var v: Visitor */;
1779 val
* var
/* : AType */;
1781 var
= self
->attrs
[COLOR_parser_nodes__ATypeExpr___n_type
].val
; /* _n_type on <self:ATypeExpr> */
1782 if (unlikely(var
== NULL
)) {
1783 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
1784 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6081);
1788 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1792 /* method parser_prod#ATypeExpr#visit_all for (self: Object, Visitor) */
1793 void VIRTUAL_parser_prod__ATypeExpr__visit_all(val
* self
, val
* p0
) {
1794 parser_prod__ATypeExpr__visit_all(self
, p0
); /* Direct call parser_prod#ATypeExpr#visit_all on <self:Object(ATypeExpr)>*/
1797 /* method parser_prod#AMethidExpr#init_amethidexpr for (self: AMethidExpr, nullable AExpr, nullable AMethid) */
1798 void parser_prod__AMethidExpr__init_amethidexpr(val
* self
, val
* p0
, val
* p1
) {
1799 val
* var_n_expr
/* var n_expr: nullable AExpr */;
1800 val
* var_n_id
/* var n_id: nullable AMethid */;
1803 if (unlikely(var_n_expr
== NULL
)) {
1804 PRINT_ERROR("Runtime error: %s", "Cast failed");
1805 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6090);
1808 self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AMethidExpr> */
1809 if (var_n_expr
== NULL
) {
1810 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1811 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6091);
1814 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
1815 if (unlikely(var_n_expr
== NULL
)) {
1816 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1817 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1820 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
1824 if (unlikely(var_n_id
== NULL
)) {
1825 PRINT_ERROR("Runtime error: %s", "Cast failed");
1826 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6092);
1829 self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AMethidExpr> */
1830 if (var_n_id
== NULL
) {
1831 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1832 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6093);
1835 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable AMethid> */
1836 if (unlikely(var_n_id
== NULL
)) {
1837 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1838 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1841 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable AMethid> */
1847 /* method parser_prod#AMethidExpr#init_amethidexpr for (self: Object, nullable AExpr, nullable AMethid) */
1848 void VIRTUAL_parser_prod__AMethidExpr__init_amethidexpr(val
* self
, val
* p0
, val
* p1
) {
1849 parser_prod__AMethidExpr__init_amethidexpr(self
, p0
, p1
); /* Direct call parser_prod#AMethidExpr#init_amethidexpr on <self:Object(AMethidExpr)>*/
1852 /* method parser_prod#AMethidExpr#replace_child for (self: AMethidExpr, ANode, nullable ANode) */
1853 void parser_prod__AMethidExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1854 val
* var_old_child
/* var old_child: ANode */;
1855 val
* var_new_child
/* var new_child: nullable ANode */;
1856 val
* var
/* : AExpr */;
1857 short int var1
/* : Bool */;
1858 short int var2
/* : Bool */;
1859 val
* var_other
/* var other: nullable Object */;
1860 short int var4
/* : Bool */;
1861 short int var6
/* : Bool */;
1862 short int var7
/* : Bool */;
1865 const char* var_class_name
;
1866 val
* var8
/* : AMethid */;
1867 short int var9
/* : Bool */;
1868 short int var10
/* : Bool */;
1869 short int var12
/* : Bool */;
1870 short int var14
/* : Bool */;
1871 short int var15
/* : Bool */;
1874 const char* var_class_name18
;
1877 var
= self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_expr
].val
; /* _n_expr on <self:AMethidExpr> */
1878 if (unlikely(var
== NULL
)) {
1879 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
1880 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6098);
1884 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
1885 var_other
= var_old_child
;
1887 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
1888 var6
= var
== var_other
;
1901 /* <var_new_child:nullable ANode> isa AExpr */
1902 cltype
= type_parser_nodes__AExpr
.color
;
1903 idtype
= type_parser_nodes__AExpr
.id
;
1904 if(var_new_child
== NULL
) {
1907 if(cltype
>= var_new_child
->type
->table_size
) {
1910 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1913 if (unlikely(!var7
)) {
1914 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1915 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
1916 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6099);
1920 parser_prod__AMethidExpr__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AMethidExpr#n_expr= on <self:AMethidExpr>*/
1925 var8
= self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_id
].val
; /* _n_id on <self:AMethidExpr> */
1926 if (unlikely(var8
== NULL
)) {
1927 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1928 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6102);
1932 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AMethid> */
1933 var_other
= var_old_child
;
1935 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AMethid> */
1936 var14
= var8
== var_other
;
1939 RET_LABEL13
:(void)0;
1944 RET_LABEL11
:(void)0;
1949 /* <var_new_child:nullable ANode> isa AMethid */
1950 cltype16
= type_parser_nodes__AMethid
.color
;
1951 idtype17
= type_parser_nodes__AMethid
.id
;
1952 if(var_new_child
== NULL
) {
1955 if(cltype16
>= var_new_child
->type
->table_size
) {
1958 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1961 if (unlikely(!var15
)) {
1962 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1963 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name18
);
1964 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6103);
1968 parser_prod__AMethidExpr__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AMethidExpr#n_id= on <self:AMethidExpr>*/
1975 /* method parser_prod#AMethidExpr#replace_child for (self: Object, ANode, nullable ANode) */
1976 void VIRTUAL_parser_prod__AMethidExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
1977 parser_prod__AMethidExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMethidExpr#replace_child on <self:Object(AMethidExpr)>*/
1980 /* method parser_prod#AMethidExpr#n_expr= for (self: AMethidExpr, AExpr) */
1981 void parser_prod__AMethidExpr__n_expr_61d(val
* self
, val
* p0
) {
1982 val
* var_node
/* var node: AExpr */;
1984 self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AMethidExpr> */
1986 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
1987 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
1993 /* method parser_prod#AMethidExpr#n_expr= for (self: Object, AExpr) */
1994 void VIRTUAL_parser_prod__AMethidExpr__n_expr_61d(val
* self
, val
* p0
) {
1995 parser_prod__AMethidExpr__n_expr_61d(self
, p0
); /* Direct call parser_prod#AMethidExpr#n_expr= on <self:Object(AMethidExpr)>*/
1998 /* method parser_prod#AMethidExpr#n_id= for (self: AMethidExpr, AMethid) */
1999 void parser_prod__AMethidExpr__n_id_61d(val
* self
, val
* p0
) {
2000 val
* var_node
/* var node: AMethid */;
2002 self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_id
].val
= var_node
; /* _n_id on <self:AMethidExpr> */
2004 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
2005 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
2011 /* method parser_prod#AMethidExpr#n_id= for (self: Object, AMethid) */
2012 void VIRTUAL_parser_prod__AMethidExpr__n_id_61d(val
* self
, val
* p0
) {
2013 parser_prod__AMethidExpr__n_id_61d(self
, p0
); /* Direct call parser_prod#AMethidExpr#n_id= on <self:Object(AMethidExpr)>*/
2016 /* method parser_prod#AMethidExpr#visit_all for (self: AMethidExpr, Visitor) */
2017 void parser_prod__AMethidExpr__visit_all(val
* self
, val
* p0
) {
2018 val
* var_v
/* var v: Visitor */;
2019 val
* var
/* : AExpr */;
2020 val
* var1
/* : AMethid */;
2022 var
= self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_expr
].val
; /* _n_expr on <self:AMethidExpr> */
2023 if (unlikely(var
== NULL
)) {
2024 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
2025 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6122);
2029 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2031 var1
= self
->attrs
[COLOR_parser_nodes__AMethidExpr___n_id
].val
; /* _n_id on <self:AMethidExpr> */
2032 if (unlikely(var1
== NULL
)) {
2033 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
2034 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6123);
2038 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2042 /* method parser_prod#AMethidExpr#visit_all for (self: Object, Visitor) */
2043 void VIRTUAL_parser_prod__AMethidExpr__visit_all(val
* self
, val
* p0
) {
2044 parser_prod__AMethidExpr__visit_all(self
, p0
); /* Direct call parser_prod#AMethidExpr#visit_all on <self:Object(AMethidExpr)>*/
2047 /* method parser_prod#AAtExpr#init_aatexpr for (self: AAtExpr, nullable AAnnotations) */
2048 void parser_prod__AAtExpr__init_aatexpr(val
* self
, val
* p0
) {
2049 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2050 var_n_annotations
= p0
;
2051 if (unlikely(var_n_annotations
== NULL
)) {
2052 PRINT_ERROR("Runtime error: %s", "Cast failed");
2053 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6131);
2056 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAtExpr> */
2057 if (var_n_annotations
== NULL
) {
2058 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2059 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6132);
2062 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations> */
2063 if (unlikely(var_n_annotations
== NULL
)) {
2064 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2065 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2068 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations> */
2074 /* method parser_prod#AAtExpr#init_aatexpr for (self: Object, nullable AAnnotations) */
2075 void VIRTUAL_parser_prod__AAtExpr__init_aatexpr(val
* self
, val
* p0
) {
2076 parser_prod__AAtExpr__init_aatexpr(self
, p0
); /* Direct call parser_prod#AAtExpr#init_aatexpr on <self:Object(AAtExpr)>*/
2079 /* method parser_prod#AAtExpr#replace_child for (self: AAtExpr, ANode, nullable ANode) */
2080 void parser_prod__AAtExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2081 val
* var_old_child
/* var old_child: ANode */;
2082 val
* var_new_child
/* var new_child: nullable ANode */;
2083 val
* var
/* : nullable AAnnotations */;
2084 short int var1
/* : Bool */;
2085 short int var2
/* : Bool */;
2086 val
* var_other
/* var other: nullable Object */;
2087 short int var4
/* : Bool */;
2088 short int var6
/* : Bool */;
2089 short int var7
/* : Bool */;
2092 const char* var_class_name
;
2095 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtExpr> */
2097 var1
= 0; /* <var_old_child:ANode> cannot be null */
2099 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AAnnotations> */
2100 var_other
= var_old_child
;
2102 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AAnnotations(AAnnotations)> */
2103 var6
= var
== var_other
;
2116 /* <var_new_child:nullable ANode> isa AAnnotations */
2117 cltype
= type_parser_nodes__AAnnotations
.color
;
2118 idtype
= type_parser_nodes__AAnnotations
.id
;
2119 if(var_new_child
== NULL
) {
2122 if(cltype
>= var_new_child
->type
->table_size
) {
2125 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2128 if (unlikely(!var7
)) {
2129 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2130 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAnnotations", var_class_name
);
2131 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6138);
2135 parser_prod__AAtExpr__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAtExpr#n_annotations= on <self:AAtExpr>*/
2142 /* method parser_prod#AAtExpr#replace_child for (self: Object, ANode, nullable ANode) */
2143 void VIRTUAL_parser_prod__AAtExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2144 parser_prod__AAtExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAtExpr#replace_child on <self:Object(AAtExpr)>*/
2147 /* method parser_prod#AAtExpr#n_annotations= for (self: AAtExpr, nullable AAnnotations) */
2148 void parser_prod__AAtExpr__n_annotations_61d(val
* self
, val
* p0
) {
2149 val
* var_node
/* var node: nullable AAnnotations */;
2151 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAtExpr> */
2152 if (var_node
== NULL
) {
2153 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2154 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6146);
2157 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations> */
2158 if (unlikely(var_node
== NULL
)) {
2159 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2160 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2163 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations> */
2169 /* method parser_prod#AAtExpr#n_annotations= for (self: Object, nullable AAnnotations) */
2170 void VIRTUAL_parser_prod__AAtExpr__n_annotations_61d(val
* self
, val
* p0
) {
2171 parser_prod__AAtExpr__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AAtExpr#n_annotations= on <self:Object(AAtExpr)>*/
2174 /* method parser_prod#AAtExpr#visit_all for (self: AAtExpr, Visitor) */
2175 void parser_prod__AAtExpr__visit_all(val
* self
, val
* p0
) {
2176 val
* var_v
/* var v: Visitor */;
2177 val
* var
/* : nullable AAnnotations */;
2179 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtExpr> */
2181 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2185 /* method parser_prod#AAtExpr#visit_all for (self: Object, Visitor) */
2186 void VIRTUAL_parser_prod__AAtExpr__visit_all(val
* self
, val
* p0
) {
2187 parser_prod__AAtExpr__visit_all(self
, p0
); /* Direct call parser_prod#AAtExpr#visit_all on <self:Object(AAtExpr)>*/
2190 /* method parser_prod#AManyExpr#init_amanyexpr for (self: AManyExpr, Collection[Object]) */
2191 void parser_prod__AManyExpr__init_amanyexpr(val
* self
, val
* p0
) {
2192 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
2193 val
* var
/* : ANodes[AExpr] */;
2194 val
* var2
/* : ANodes[AExpr] */;
2197 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
2198 var2
= self
->attrs
[COLOR_parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
2199 if (unlikely(var2
== NULL
)) {
2200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2201 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909);
2209 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
2213 /* method parser_prod#AManyExpr#init_amanyexpr for (self: Object, Collection[Object]) */
2214 void VIRTUAL_parser_prod__AManyExpr__init_amanyexpr(val
* self
, val
* p0
) {
2215 parser_prod__AManyExpr__init_amanyexpr(self
, p0
); /* Direct call parser_prod#AManyExpr#init_amanyexpr on <self:Object(AManyExpr)>*/
2218 /* method parser_prod#AManyExpr#replace_child for (self: AManyExpr, ANode, nullable ANode) */
2219 void parser_prod__AManyExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2220 val
* var_old_child
/* var old_child: ANode */;
2221 val
* var_new_child
/* var new_child: nullable ANode */;
2222 val
* var
/* : ANodes[AExpr] */;
2223 val
* var2
/* : ANodes[AExpr] */;
2224 short int var3
/* : Bool */;
2228 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
2229 var2
= self
->attrs
[COLOR_parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
2230 if (unlikely(var2
== NULL
)) {
2231 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2232 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909);
2240 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
2248 /* method parser_prod#AManyExpr#replace_child for (self: Object, ANode, nullable ANode) */
2249 void VIRTUAL_parser_prod__AManyExpr__replace_child(val
* self
, val
* p0
, val
* p1
) {
2250 parser_prod__AManyExpr__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AManyExpr#replace_child on <self:Object(AManyExpr)>*/
2253 /* method parser_prod#AManyExpr#visit_all for (self: AManyExpr, Visitor) */
2254 void parser_prod__AManyExpr__visit_all(val
* self
, val
* p0
) {
2255 val
* var_v
/* var v: Visitor */;
2256 val
* var
/* : ANodes[AExpr] */;
2257 val
* var2
/* : ANodes[AExpr] */;
2260 { /* Inline parser_nodes#AManyExpr#n_exprs (self) on <self:AManyExpr> */
2261 var2
= self
->attrs
[COLOR_parser_nodes__AManyExpr___n_exprs
].val
; /* _n_exprs on <self:AManyExpr> */
2262 if (unlikely(var2
== NULL
)) {
2263 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2264 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909);
2272 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
2276 /* method parser_prod#AManyExpr#visit_all for (self: Object, Visitor) */
2277 void VIRTUAL_parser_prod__AManyExpr__visit_all(val
* self
, val
* p0
) {
2278 parser_prod__AManyExpr__visit_all(self
, p0
); /* Direct call parser_prod#AManyExpr#visit_all on <self:Object(AManyExpr)>*/
2281 /* method parser_prod#AListExprs#init_alistexprs for (self: AListExprs, Collection[Object]) */
2282 void parser_prod__AListExprs__init_alistexprs(val
* self
, val
* p0
) {
2283 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
2284 val
* var
/* : ANodes[AExpr] */;
2285 val
* var2
/* : ANodes[AExpr] */;
2288 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
2289 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
2290 if (unlikely(var2
== NULL
)) {
2291 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2292 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2300 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
2304 /* method parser_prod#AListExprs#init_alistexprs for (self: Object, Collection[Object]) */
2305 void VIRTUAL_parser_prod__AListExprs__init_alistexprs(val
* self
, val
* p0
) {
2306 parser_prod__AListExprs__init_alistexprs(self
, p0
); /* Direct call parser_prod#AListExprs#init_alistexprs on <self:Object(AListExprs)>*/
2309 /* method parser_prod#AListExprs#replace_child for (self: AListExprs, ANode, nullable ANode) */
2310 void parser_prod__AListExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2311 val
* var_old_child
/* var old_child: ANode */;
2312 val
* var_new_child
/* var new_child: nullable ANode */;
2313 val
* var
/* : ANodes[AExpr] */;
2314 val
* var2
/* : ANodes[AExpr] */;
2315 short int var3
/* : Bool */;
2319 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
2320 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
2321 if (unlikely(var2
== NULL
)) {
2322 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2323 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2331 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
2339 /* method parser_prod#AListExprs#replace_child for (self: Object, ANode, nullable ANode) */
2340 void VIRTUAL_parser_prod__AListExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2341 parser_prod__AListExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AListExprs#replace_child on <self:Object(AListExprs)>*/
2344 /* method parser_prod#AListExprs#visit_all for (self: AListExprs, Visitor) */
2345 void parser_prod__AListExprs__visit_all(val
* self
, val
* p0
) {
2346 val
* var_v
/* var v: Visitor */;
2347 val
* var
/* : ANodes[AExpr] */;
2348 val
* var2
/* : ANodes[AExpr] */;
2351 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AListExprs> */
2352 var2
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AListExprs> */
2353 if (unlikely(var2
== NULL
)) {
2354 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2355 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2363 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
2367 /* method parser_prod#AListExprs#visit_all for (self: Object, Visitor) */
2368 void VIRTUAL_parser_prod__AListExprs__visit_all(val
* self
, val
* p0
) {
2369 parser_prod__AListExprs__visit_all(self
, p0
); /* Direct call parser_prod#AListExprs#visit_all on <self:Object(AListExprs)>*/
2372 /* method parser_prod#AParExprs#init_aparexprs for (self: AParExprs, nullable TOpar, Collection[Object], nullable TCpar) */
2373 void parser_prod__AParExprs__init_aparexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2374 val
* var_n_opar
/* var n_opar: nullable TOpar */;
2375 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
2376 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
2377 val
* var
/* : ANodes[AExpr] */;
2378 val
* var3
/* : ANodes[AExpr] */;
2382 if (unlikely(var_n_opar
== NULL
)) {
2383 PRINT_ERROR("Runtime error: %s", "Cast failed");
2384 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6202);
2387 self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AParExprs> */
2388 if (var_n_opar
== NULL
) {
2389 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2390 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6203);
2393 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar> */
2394 if (unlikely(var_n_opar
== NULL
)) {
2395 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2396 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2399 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar> */
2404 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
2405 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
2406 if (unlikely(var3
== NULL
)) {
2407 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2408 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2416 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
2418 if (unlikely(var_n_cpar
== NULL
)) {
2419 PRINT_ERROR("Runtime error: %s", "Cast failed");
2420 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6205);
2423 self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AParExprs> */
2424 if (var_n_cpar
== NULL
) {
2425 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2426 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6206);
2429 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar> */
2430 if (unlikely(var_n_cpar
== NULL
)) {
2431 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2432 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2435 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar> */
2441 /* method parser_prod#AParExprs#init_aparexprs for (self: Object, nullable TOpar, Collection[Object], nullable TCpar) */
2442 void VIRTUAL_parser_prod__AParExprs__init_aparexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2443 parser_prod__AParExprs__init_aparexprs(self
, p0
, p1
, p2
); /* Direct call parser_prod#AParExprs#init_aparexprs on <self:Object(AParExprs)>*/
2446 /* method parser_prod#AParExprs#replace_child for (self: AParExprs, ANode, nullable ANode) */
2447 void parser_prod__AParExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2448 val
* var_old_child
/* var old_child: ANode */;
2449 val
* var_new_child
/* var new_child: nullable ANode */;
2450 val
* var
/* : TOpar */;
2451 short int var1
/* : Bool */;
2452 short int var2
/* : Bool */;
2453 val
* var_other
/* var other: nullable Object */;
2454 short int var4
/* : Bool */;
2455 short int var6
/* : Bool */;
2456 short int var7
/* : Bool */;
2459 const char* var_class_name
;
2460 val
* var8
/* : ANodes[AExpr] */;
2461 val
* var10
/* : ANodes[AExpr] */;
2462 short int var11
/* : Bool */;
2463 val
* var12
/* : TCpar */;
2464 short int var13
/* : Bool */;
2465 short int var14
/* : Bool */;
2466 short int var16
/* : Bool */;
2467 short int var18
/* : Bool */;
2468 short int var19
/* : Bool */;
2471 const char* var_class_name22
;
2474 var
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
2475 if (unlikely(var
== NULL
)) {
2476 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
2477 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6211);
2481 { /* Inline kernel#Object#== (var,var_old_child) on <var:TOpar> */
2482 var_other
= var_old_child
;
2484 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TOpar> */
2485 var6
= var
== var_other
;
2498 /* <var_new_child:nullable ANode> isa TOpar */
2499 cltype
= type_parser_nodes__TOpar
.color
;
2500 idtype
= type_parser_nodes__TOpar
.id
;
2501 if(var_new_child
== NULL
) {
2504 if(cltype
>= var_new_child
->type
->table_size
) {
2507 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2510 if (unlikely(!var7
)) {
2511 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2512 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name
);
2513 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6212);
2517 parser_prod__AParExprs__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_opar= on <self:AParExprs>*/
2523 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
2524 var10
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
2525 if (unlikely(var10
== NULL
)) {
2526 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2527 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2535 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
2541 var12
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
2542 if (unlikely(var12
== NULL
)) {
2543 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
2544 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6216);
2548 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TCpar> */
2549 var_other
= var_old_child
;
2551 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TCpar> */
2552 var18
= var12
== var_other
;
2555 RET_LABEL17
:(void)0;
2560 RET_LABEL15
:(void)0;
2565 /* <var_new_child:nullable ANode> isa TCpar */
2566 cltype20
= type_parser_nodes__TCpar
.color
;
2567 idtype21
= type_parser_nodes__TCpar
.id
;
2568 if(var_new_child
== NULL
) {
2571 if(cltype20
>= var_new_child
->type
->table_size
) {
2574 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
2577 if (unlikely(!var19
)) {
2578 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2579 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name22
);
2580 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6217);
2584 parser_prod__AParExprs__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AParExprs#n_cpar= on <self:AParExprs>*/
2591 /* method parser_prod#AParExprs#replace_child for (self: Object, ANode, nullable ANode) */
2592 void VIRTUAL_parser_prod__AParExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2593 parser_prod__AParExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AParExprs#replace_child on <self:Object(AParExprs)>*/
2596 /* method parser_prod#AParExprs#n_opar= for (self: AParExprs, TOpar) */
2597 void parser_prod__AParExprs__n_opar_61d(val
* self
, val
* p0
) {
2598 val
* var_node
/* var node: TOpar */;
2600 self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
= var_node
; /* _n_opar on <self:AParExprs> */
2602 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TOpar> */
2603 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TOpar> */
2609 /* method parser_prod#AParExprs#n_opar= for (self: Object, TOpar) */
2610 void VIRTUAL_parser_prod__AParExprs__n_opar_61d(val
* self
, val
* p0
) {
2611 parser_prod__AParExprs__n_opar_61d(self
, p0
); /* Direct call parser_prod#AParExprs#n_opar= on <self:Object(AParExprs)>*/
2614 /* method parser_prod#AParExprs#n_cpar= for (self: AParExprs, TCpar) */
2615 void parser_prod__AParExprs__n_cpar_61d(val
* self
, val
* p0
) {
2616 val
* var_node
/* var node: TCpar */;
2618 self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
= var_node
; /* _n_cpar on <self:AParExprs> */
2620 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCpar> */
2621 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCpar> */
2627 /* method parser_prod#AParExprs#n_cpar= for (self: Object, TCpar) */
2628 void VIRTUAL_parser_prod__AParExprs__n_cpar_61d(val
* self
, val
* p0
) {
2629 parser_prod__AParExprs__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AParExprs#n_cpar= on <self:Object(AParExprs)>*/
2632 /* method parser_prod#AParExprs#visit_all for (self: AParExprs, Visitor) */
2633 void parser_prod__AParExprs__visit_all(val
* self
, val
* p0
) {
2634 val
* var_v
/* var v: Visitor */;
2635 val
* var
/* : TOpar */;
2636 val
* var1
/* : ANodes[AExpr] */;
2637 val
* var3
/* : ANodes[AExpr] */;
2638 val
* var4
/* : TCpar */;
2640 var
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_opar
].val
; /* _n_opar on <self:AParExprs> */
2641 if (unlikely(var
== NULL
)) {
2642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar");
2643 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6236);
2647 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2650 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:AParExprs> */
2651 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:AParExprs> */
2652 if (unlikely(var3
== NULL
)) {
2653 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2654 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2662 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
2664 var4
= self
->attrs
[COLOR_parser_nodes__AParExprs___n_cpar
].val
; /* _n_cpar on <self:AParExprs> */
2665 if (unlikely(var4
== NULL
)) {
2666 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar");
2667 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6238);
2671 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2675 /* method parser_prod#AParExprs#visit_all for (self: Object, Visitor) */
2676 void VIRTUAL_parser_prod__AParExprs__visit_all(val
* self
, val
* p0
) {
2677 parser_prod__AParExprs__visit_all(self
, p0
); /* Direct call parser_prod#AParExprs#visit_all on <self:Object(AParExprs)>*/
2680 /* method parser_prod#ABraExprs#init_abraexprs for (self: ABraExprs, nullable TObra, Collection[Object], nullable TCbra) */
2681 void parser_prod__ABraExprs__init_abraexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2682 val
* var_n_obra
/* var n_obra: nullable TObra */;
2683 val
* var_n_exprs
/* var n_exprs: Collection[Object] */;
2684 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
2685 val
* var
/* : ANodes[AExpr] */;
2686 val
* var3
/* : ANodes[AExpr] */;
2690 if (unlikely(var_n_obra
== NULL
)) {
2691 PRINT_ERROR("Runtime error: %s", "Cast failed");
2692 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6248);
2695 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraExprs> */
2696 if (var_n_obra
== NULL
) {
2697 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2698 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6249);
2701 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
2702 if (unlikely(var_n_obra
== NULL
)) {
2703 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2704 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2707 var_n_obra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
2712 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
2713 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
2714 if (unlikely(var3
== NULL
)) {
2715 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2716 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2724 parser_nodes__ANodes__unsafe_add_all(var
, var_n_exprs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
2726 if (unlikely(var_n_cbra
== NULL
)) {
2727 PRINT_ERROR("Runtime error: %s", "Cast failed");
2728 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6251);
2731 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraExprs> */
2732 if (var_n_cbra
== NULL
) {
2733 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2734 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6252);
2737 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
2738 if (unlikely(var_n_cbra
== NULL
)) {
2739 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2740 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2743 var_n_cbra
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
2749 /* method parser_prod#ABraExprs#init_abraexprs for (self: Object, nullable TObra, Collection[Object], nullable TCbra) */
2750 void VIRTUAL_parser_prod__ABraExprs__init_abraexprs(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2751 parser_prod__ABraExprs__init_abraexprs(self
, p0
, p1
, p2
); /* Direct call parser_prod#ABraExprs#init_abraexprs on <self:Object(ABraExprs)>*/
2754 /* method parser_prod#ABraExprs#replace_child for (self: ABraExprs, ANode, nullable ANode) */
2755 void parser_prod__ABraExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2756 val
* var_old_child
/* var old_child: ANode */;
2757 val
* var_new_child
/* var new_child: nullable ANode */;
2758 val
* var
/* : TObra */;
2759 short int var1
/* : Bool */;
2760 short int var2
/* : Bool */;
2761 val
* var_other
/* var other: nullable Object */;
2762 short int var4
/* : Bool */;
2763 short int var6
/* : Bool */;
2764 short int var7
/* : Bool */;
2767 const char* var_class_name
;
2768 val
* var8
/* : ANodes[AExpr] */;
2769 val
* var10
/* : ANodes[AExpr] */;
2770 short int var11
/* : Bool */;
2771 val
* var12
/* : TCbra */;
2772 short int var13
/* : Bool */;
2773 short int var14
/* : Bool */;
2774 short int var16
/* : Bool */;
2775 short int var18
/* : Bool */;
2776 short int var19
/* : Bool */;
2779 const char* var_class_name22
;
2782 var
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
2783 if (unlikely(var
== NULL
)) {
2784 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
2785 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6257);
2789 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
2790 var_other
= var_old_child
;
2792 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
2793 var6
= var
== var_other
;
2806 /* <var_new_child:nullable ANode> isa TObra */
2807 cltype
= type_parser_nodes__TObra
.color
;
2808 idtype
= type_parser_nodes__TObra
.id
;
2809 if(var_new_child
== NULL
) {
2812 if(cltype
>= var_new_child
->type
->table_size
) {
2815 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2818 if (unlikely(!var7
)) {
2819 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2820 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
2821 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6258);
2825 parser_prod__ABraExprs__n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_obra= on <self:ABraExprs>*/
2831 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
2832 var10
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
2833 if (unlikely(var10
== NULL
)) {
2834 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2835 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2843 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
2849 var12
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
2850 if (unlikely(var12
== NULL
)) {
2851 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
2852 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6262);
2856 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TCbra> */
2857 var_other
= var_old_child
;
2859 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TCbra> */
2860 var18
= var12
== var_other
;
2863 RET_LABEL17
:(void)0;
2868 RET_LABEL15
:(void)0;
2873 /* <var_new_child:nullable ANode> isa TCbra */
2874 cltype20
= type_parser_nodes__TCbra
.color
;
2875 idtype21
= type_parser_nodes__TCbra
.id
;
2876 if(var_new_child
== NULL
) {
2879 if(cltype20
>= var_new_child
->type
->table_size
) {
2882 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
2885 if (unlikely(!var19
)) {
2886 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2887 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name22
);
2888 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6263);
2892 parser_prod__ABraExprs__n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraExprs#n_cbra= on <self:ABraExprs>*/
2899 /* method parser_prod#ABraExprs#replace_child for (self: Object, ANode, nullable ANode) */
2900 void VIRTUAL_parser_prod__ABraExprs__replace_child(val
* self
, val
* p0
, val
* p1
) {
2901 parser_prod__ABraExprs__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ABraExprs#replace_child on <self:Object(ABraExprs)>*/
2904 /* method parser_prod#ABraExprs#n_obra= for (self: ABraExprs, TObra) */
2905 void parser_prod__ABraExprs__n_obra_61d(val
* self
, val
* p0
) {
2906 val
* var_node
/* var node: TObra */;
2908 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
= var_node
; /* _n_obra on <self:ABraExprs> */
2910 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
2911 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
2917 /* method parser_prod#ABraExprs#n_obra= for (self: Object, TObra) */
2918 void VIRTUAL_parser_prod__ABraExprs__n_obra_61d(val
* self
, val
* p0
) {
2919 parser_prod__ABraExprs__n_obra_61d(self
, p0
); /* Direct call parser_prod#ABraExprs#n_obra= on <self:Object(ABraExprs)>*/
2922 /* method parser_prod#ABraExprs#n_cbra= for (self: ABraExprs, TCbra) */
2923 void parser_prod__ABraExprs__n_cbra_61d(val
* self
, val
* p0
) {
2924 val
* var_node
/* var node: TCbra */;
2926 self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraExprs> */
2928 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
2929 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
2935 /* method parser_prod#ABraExprs#n_cbra= for (self: Object, TCbra) */
2936 void VIRTUAL_parser_prod__ABraExprs__n_cbra_61d(val
* self
, val
* p0
) {
2937 parser_prod__ABraExprs__n_cbra_61d(self
, p0
); /* Direct call parser_prod#ABraExprs#n_cbra= on <self:Object(ABraExprs)>*/
2940 /* method parser_prod#ABraExprs#visit_all for (self: ABraExprs, Visitor) */
2941 void parser_prod__ABraExprs__visit_all(val
* self
, val
* p0
) {
2942 val
* var_v
/* var v: Visitor */;
2943 val
* var
/* : TObra */;
2944 val
* var1
/* : ANodes[AExpr] */;
2945 val
* var3
/* : ANodes[AExpr] */;
2946 val
* var4
/* : TCbra */;
2948 var
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_obra
].val
; /* _n_obra on <self:ABraExprs> */
2949 if (unlikely(var
== NULL
)) {
2950 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
2951 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6282);
2955 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2958 { /* Inline parser_nodes#AExprs#n_exprs (self) on <self:ABraExprs> */
2959 var3
= self
->attrs
[COLOR_parser_nodes__AExprs___n_exprs
].val
; /* _n_exprs on <self:ABraExprs> */
2960 if (unlikely(var3
== NULL
)) {
2961 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs");
2962 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946);
2970 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExpr]>*/
2972 var4
= self
->attrs
[COLOR_parser_nodes__ABraExprs___n_cbra
].val
; /* _n_cbra on <self:ABraExprs> */
2973 if (unlikely(var4
== NULL
)) {
2974 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
2975 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6284);
2979 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2983 /* method parser_prod#ABraExprs#visit_all for (self: Object, Visitor) */
2984 void VIRTUAL_parser_prod__ABraExprs__visit_all(val
* self
, val
* p0
) {
2985 parser_prod__ABraExprs__visit_all(self
, p0
); /* Direct call parser_prod#ABraExprs#visit_all on <self:Object(ABraExprs)>*/
2988 /* method parser_prod#APlusAssignOp#init_aplusassignop for (self: APlusAssignOp, nullable TPluseq) */
2989 void parser_prod__APlusAssignOp__init_aplusassignop(val
* self
, val
* p0
) {
2990 val
* var_n_pluseq
/* var n_pluseq: nullable TPluseq */;
2992 if (unlikely(var_n_pluseq
== NULL
)) {
2993 PRINT_ERROR("Runtime error: %s", "Cast failed");
2994 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6292);
2997 self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
= var_n_pluseq
; /* _n_pluseq on <self:APlusAssignOp> */
2998 if (var_n_pluseq
== NULL
) {
2999 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3000 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6293);
3003 { /* Inline parser_nodes#ANode#parent= (var_n_pluseq,self) on <var_n_pluseq:nullable TPluseq> */
3004 if (unlikely(var_n_pluseq
== NULL
)) {
3005 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3006 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3009 var_n_pluseq
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_pluseq:nullable TPluseq> */
3015 /* method parser_prod#APlusAssignOp#init_aplusassignop for (self: Object, nullable TPluseq) */
3016 void VIRTUAL_parser_prod__APlusAssignOp__init_aplusassignop(val
* self
, val
* p0
) {
3017 parser_prod__APlusAssignOp__init_aplusassignop(self
, p0
); /* Direct call parser_prod#APlusAssignOp#init_aplusassignop on <self:Object(APlusAssignOp)>*/
3020 /* method parser_prod#APlusAssignOp#replace_child for (self: APlusAssignOp, ANode, nullable ANode) */
3021 void parser_prod__APlusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
3022 val
* var_old_child
/* var old_child: ANode */;
3023 val
* var_new_child
/* var new_child: nullable ANode */;
3024 val
* var
/* : TPluseq */;
3025 short int var1
/* : Bool */;
3026 short int var2
/* : Bool */;
3027 val
* var_other
/* var other: nullable Object */;
3028 short int var4
/* : Bool */;
3029 short int var6
/* : Bool */;
3030 short int var7
/* : Bool */;
3033 const char* var_class_name
;
3036 var
= self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
; /* _n_pluseq on <self:APlusAssignOp> */
3037 if (unlikely(var
== NULL
)) {
3038 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq");
3039 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6298);
3043 { /* Inline kernel#Object#== (var,var_old_child) on <var:TPluseq> */
3044 var_other
= var_old_child
;
3046 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TPluseq> */
3047 var6
= var
== var_other
;
3060 /* <var_new_child:nullable ANode> isa TPluseq */
3061 cltype
= type_parser_nodes__TPluseq
.color
;
3062 idtype
= type_parser_nodes__TPluseq
.id
;
3063 if(var_new_child
== NULL
) {
3066 if(cltype
>= var_new_child
->type
->table_size
) {
3069 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3072 if (unlikely(!var7
)) {
3073 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3074 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPluseq", var_class_name
);
3075 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6299);
3079 parser_prod__APlusAssignOp__n_pluseq_61d(self
, var_new_child
); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on <self:APlusAssignOp>*/
3086 /* method parser_prod#APlusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */
3087 void VIRTUAL_parser_prod__APlusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
3088 parser_prod__APlusAssignOp__replace_child(self
, p0
, p1
); /* Direct call parser_prod#APlusAssignOp#replace_child on <self:Object(APlusAssignOp)>*/
3091 /* method parser_prod#APlusAssignOp#n_pluseq= for (self: APlusAssignOp, TPluseq) */
3092 void parser_prod__APlusAssignOp__n_pluseq_61d(val
* self
, val
* p0
) {
3093 val
* var_node
/* var node: TPluseq */;
3095 self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
= var_node
; /* _n_pluseq on <self:APlusAssignOp> */
3097 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TPluseq> */
3098 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TPluseq> */
3104 /* method parser_prod#APlusAssignOp#n_pluseq= for (self: Object, TPluseq) */
3105 void VIRTUAL_parser_prod__APlusAssignOp__n_pluseq_61d(val
* self
, val
* p0
) {
3106 parser_prod__APlusAssignOp__n_pluseq_61d(self
, p0
); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on <self:Object(APlusAssignOp)>*/
3109 /* method parser_prod#APlusAssignOp#visit_all for (self: APlusAssignOp, Visitor) */
3110 void parser_prod__APlusAssignOp__visit_all(val
* self
, val
* p0
) {
3111 val
* var_v
/* var v: Visitor */;
3112 val
* var
/* : TPluseq */;
3114 var
= self
->attrs
[COLOR_parser_nodes__APlusAssignOp___n_pluseq
].val
; /* _n_pluseq on <self:APlusAssignOp> */
3115 if (unlikely(var
== NULL
)) {
3116 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq");
3117 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6313);
3121 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3125 /* method parser_prod#APlusAssignOp#visit_all for (self: Object, Visitor) */
3126 void VIRTUAL_parser_prod__APlusAssignOp__visit_all(val
* self
, val
* p0
) {
3127 parser_prod__APlusAssignOp__visit_all(self
, p0
); /* Direct call parser_prod#APlusAssignOp#visit_all on <self:Object(APlusAssignOp)>*/
3130 /* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: AMinusAssignOp, nullable TMinuseq) */
3131 void parser_prod__AMinusAssignOp__init_aminusassignop(val
* self
, val
* p0
) {
3132 val
* var_n_minuseq
/* var n_minuseq: nullable TMinuseq */;
3134 if (unlikely(var_n_minuseq
== NULL
)) {
3135 PRINT_ERROR("Runtime error: %s", "Cast failed");
3136 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6321);
3139 self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
= var_n_minuseq
; /* _n_minuseq on <self:AMinusAssignOp> */
3140 if (var_n_minuseq
== NULL
) {
3141 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3142 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6322);
3145 { /* Inline parser_nodes#ANode#parent= (var_n_minuseq,self) on <var_n_minuseq:nullable TMinuseq> */
3146 if (unlikely(var_n_minuseq
== NULL
)) {
3147 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3148 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3151 var_n_minuseq
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_minuseq:nullable TMinuseq> */
3157 /* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: Object, nullable TMinuseq) */
3158 void VIRTUAL_parser_prod__AMinusAssignOp__init_aminusassignop(val
* self
, val
* p0
) {
3159 parser_prod__AMinusAssignOp__init_aminusassignop(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#init_aminusassignop on <self:Object(AMinusAssignOp)>*/
3162 /* method parser_prod#AMinusAssignOp#replace_child for (self: AMinusAssignOp, ANode, nullable ANode) */
3163 void parser_prod__AMinusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
3164 val
* var_old_child
/* var old_child: ANode */;
3165 val
* var_new_child
/* var new_child: nullable ANode */;
3166 val
* var
/* : TMinuseq */;
3167 short int var1
/* : Bool */;
3168 short int var2
/* : Bool */;
3169 val
* var_other
/* var other: nullable Object */;
3170 short int var4
/* : Bool */;
3171 short int var6
/* : Bool */;
3172 short int var7
/* : Bool */;
3175 const char* var_class_name
;
3178 var
= self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
; /* _n_minuseq on <self:AMinusAssignOp> */
3179 if (unlikely(var
== NULL
)) {
3180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq");
3181 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6327);
3185 { /* Inline kernel#Object#== (var,var_old_child) on <var:TMinuseq> */
3186 var_other
= var_old_child
;
3188 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TMinuseq> */
3189 var6
= var
== var_other
;
3202 /* <var_new_child:nullable ANode> isa TMinuseq */
3203 cltype
= type_parser_nodes__TMinuseq
.color
;
3204 idtype
= type_parser_nodes__TMinuseq
.id
;
3205 if(var_new_child
== NULL
) {
3208 if(cltype
>= var_new_child
->type
->table_size
) {
3211 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3214 if (unlikely(!var7
)) {
3215 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3216 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinuseq", var_class_name
);
3217 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6328);
3221 parser_prod__AMinusAssignOp__n_minuseq_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on <self:AMinusAssignOp>*/
3228 /* method parser_prod#AMinusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */
3229 void VIRTUAL_parser_prod__AMinusAssignOp__replace_child(val
* self
, val
* p0
, val
* p1
) {
3230 parser_prod__AMinusAssignOp__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMinusAssignOp#replace_child on <self:Object(AMinusAssignOp)>*/
3233 /* method parser_prod#AMinusAssignOp#n_minuseq= for (self: AMinusAssignOp, TMinuseq) */
3234 void parser_prod__AMinusAssignOp__n_minuseq_61d(val
* self
, val
* p0
) {
3235 val
* var_node
/* var node: TMinuseq */;
3237 self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
= var_node
; /* _n_minuseq on <self:AMinusAssignOp> */
3239 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TMinuseq> */
3240 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TMinuseq> */
3246 /* method parser_prod#AMinusAssignOp#n_minuseq= for (self: Object, TMinuseq) */
3247 void VIRTUAL_parser_prod__AMinusAssignOp__n_minuseq_61d(val
* self
, val
* p0
) {
3248 parser_prod__AMinusAssignOp__n_minuseq_61d(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on <self:Object(AMinusAssignOp)>*/
3251 /* method parser_prod#AMinusAssignOp#visit_all for (self: AMinusAssignOp, Visitor) */
3252 void parser_prod__AMinusAssignOp__visit_all(val
* self
, val
* p0
) {
3253 val
* var_v
/* var v: Visitor */;
3254 val
* var
/* : TMinuseq */;
3256 var
= self
->attrs
[COLOR_parser_nodes__AMinusAssignOp___n_minuseq
].val
; /* _n_minuseq on <self:AMinusAssignOp> */
3257 if (unlikely(var
== NULL
)) {
3258 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq");
3259 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6342);
3263 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3267 /* method parser_prod#AMinusAssignOp#visit_all for (self: Object, Visitor) */
3268 void VIRTUAL_parser_prod__AMinusAssignOp__visit_all(val
* self
, val
* p0
) {
3269 parser_prod__AMinusAssignOp__visit_all(self
, p0
); /* Direct call parser_prod#AMinusAssignOp#visit_all on <self:Object(AMinusAssignOp)>*/
3272 /* method parser_prod#AModuleName#init_amodulename for (self: AModuleName, nullable TQuad, Collection[Object], nullable TId) */
3273 void parser_prod__AModuleName__init_amodulename(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
3274 val
* var_n_quad
/* var n_quad: nullable TQuad */;
3275 val
* var_n_path
/* var n_path: Collection[Object] */;
3276 val
* var_n_id
/* var n_id: nullable TId */;
3277 val
* var
/* : null */;
3278 short int var1
/* : Bool */;
3279 short int var2
/* : Bool */;
3280 val
* var_other
/* var other: nullable Object */;
3281 short int var4
/* : Bool */;
3282 short int var5
/* : Bool */;
3283 short int var6
/* : Bool */;
3284 val
* var8
/* : ANodes[TId] */;
3285 val
* var10
/* : ANodes[TId] */;
3289 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_n_quad
; /* _n_quad on <self:AModuleName> */
3291 if (var_n_quad
== NULL
) {
3292 var1
= 0; /* is null */
3294 var1
= 1; /* arg is null and recv is not */
3297 { /* Inline kernel#Object#!= (var_n_quad,var) on <var_n_quad:nullable TQuad> */
3300 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)>*/;
3312 { /* Inline parser_nodes#ANode#parent= (var_n_quad,self) on <var_n_quad:nullable TQuad(TQuad)> */
3313 var_n_quad
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_quad:nullable TQuad(TQuad)> */
3320 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
3321 var10
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
3322 if (unlikely(var10
== NULL
)) {
3323 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
3324 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989);
3332 parser_nodes__ANodes__unsafe_add_all(var8
, var_n_path
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var8:ANodes[TId]>*/
3334 if (unlikely(var_n_id
== NULL
)) {
3335 PRINT_ERROR("Runtime error: %s", "Cast failed");
3336 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6355);
3339 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_n_id
; /* _n_id on <self:AModuleName> */
3340 if (var_n_id
== NULL
) {
3341 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3342 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6356);
3345 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3346 if (unlikely(var_n_id
== NULL
)) {
3347 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3348 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3351 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3352 RET_LABEL11
:(void)0;
3357 /* method parser_prod#AModuleName#init_amodulename for (self: Object, nullable TQuad, Collection[Object], nullable TId) */
3358 void VIRTUAL_parser_prod__AModuleName__init_amodulename(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
3359 parser_prod__AModuleName__init_amodulename(self
, p0
, p1
, p2
); /* Direct call parser_prod#AModuleName#init_amodulename on <self:Object(AModuleName)>*/
3362 /* method parser_prod#AModuleName#replace_child for (self: AModuleName, ANode, nullable ANode) */
3363 void parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
3364 val
* var_old_child
/* var old_child: ANode */;
3365 val
* var_new_child
/* var new_child: nullable ANode */;
3366 val
* var
/* : nullable TQuad */;
3367 short int var1
/* : Bool */;
3368 short int var2
/* : Bool */;
3369 val
* var_other
/* var other: nullable Object */;
3370 short int var4
/* : Bool */;
3371 short int var6
/* : Bool */;
3372 short int var7
/* : Bool */;
3375 const char* var_class_name
;
3376 val
* var8
/* : ANodes[TId] */;
3377 val
* var10
/* : ANodes[TId] */;
3378 short int var11
/* : Bool */;
3379 val
* var12
/* : TId */;
3380 short int var13
/* : Bool */;
3381 short int var14
/* : Bool */;
3382 short int var16
/* : Bool */;
3383 short int var18
/* : Bool */;
3384 short int var19
/* : Bool */;
3387 const char* var_class_name22
;
3390 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
3392 var1
= 0; /* <var_old_child:ANode> cannot be null */
3394 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TQuad> */
3395 var_other
= var_old_child
;
3397 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TQuad(TQuad)> */
3398 var6
= var
== var_other
;
3411 /* <var_new_child:nullable ANode> isa nullable TQuad */
3412 cltype
= type_nullable_parser_nodes__TQuad
.color
;
3413 idtype
= type_nullable_parser_nodes__TQuad
.id
;
3414 if(var_new_child
== NULL
) {
3417 if(cltype
>= var_new_child
->type
->table_size
) {
3420 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3423 if (unlikely(!var7
)) {
3424 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3425 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TQuad", var_class_name
);
3426 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6362);
3430 parser_prod__AModuleName__n_quad_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_quad= on <self:AModuleName>*/
3436 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
3437 var10
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
3438 if (unlikely(var10
== NULL
)) {
3439 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
3440 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989);
3448 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
3454 var12
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
3455 if (unlikely(var12
== NULL
)) {
3456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3457 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6366);
3461 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:TId> */
3462 var_other
= var_old_child
;
3464 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:TId> */
3465 var18
= var12
== var_other
;
3468 RET_LABEL17
:(void)0;
3473 RET_LABEL15
:(void)0;
3478 /* <var_new_child:nullable ANode> isa TId */
3479 cltype20
= type_parser_nodes__TId
.color
;
3480 idtype21
= type_parser_nodes__TId
.id
;
3481 if(var_new_child
== NULL
) {
3484 if(cltype20
>= var_new_child
->type
->table_size
) {
3487 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
3490 if (unlikely(!var19
)) {
3491 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3492 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name22
);
3493 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6367);
3497 parser_prod__AModuleName__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AModuleName#n_id= on <self:AModuleName>*/
3504 /* method parser_prod#AModuleName#replace_child for (self: Object, ANode, nullable ANode) */
3505 void VIRTUAL_parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
3506 parser_prod__AModuleName__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AModuleName#replace_child on <self:Object(AModuleName)>*/
3509 /* method parser_prod#AModuleName#n_quad= for (self: AModuleName, nullable TQuad) */
3510 void parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
3511 val
* var_node
/* var node: nullable TQuad */;
3512 val
* var
/* : null */;
3513 short int var1
/* : Bool */;
3514 short int var2
/* : Bool */;
3515 val
* var_other
/* var other: nullable Object */;
3516 short int var4
/* : Bool */;
3517 short int var5
/* : Bool */;
3518 short int var6
/* : Bool */;
3520 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_node
; /* _n_quad on <self:AModuleName> */
3522 if (var_node
== NULL
) {
3523 var1
= 0; /* is null */
3525 var1
= 1; /* arg is null and recv is not */
3528 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TQuad> */
3531 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TQuad(TQuad)>*/;
3543 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TQuad(TQuad)> */
3544 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TQuad(TQuad)> */
3552 /* method parser_prod#AModuleName#n_quad= for (self: Object, nullable TQuad) */
3553 void VIRTUAL_parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
3554 parser_prod__AModuleName__n_quad_61d(self
, p0
); /* Direct call parser_prod#AModuleName#n_quad= on <self:Object(AModuleName)>*/
3557 /* method parser_prod#AModuleName#n_id= for (self: AModuleName, TId) */
3558 void parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
3559 val
* var_node
/* var node: TId */;
3561 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_node
; /* _n_id on <self:AModuleName> */
3563 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
3564 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
3570 /* method parser_prod#AModuleName#n_id= for (self: Object, TId) */
3571 void VIRTUAL_parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
3572 parser_prod__AModuleName__n_id_61d(self
, p0
); /* Direct call parser_prod#AModuleName#n_id= on <self:Object(AModuleName)>*/
3575 /* method parser_prod#AModuleName#visit_all for (self: AModuleName, Visitor) */
3576 void parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
3577 val
* var_v
/* var v: Visitor */;
3578 val
* var
/* : nullable TQuad */;
3579 val
* var1
/* : ANodes[TId] */;
3580 val
* var3
/* : ANodes[TId] */;
3581 val
* var4
/* : TId */;
3583 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
3585 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3588 { /* Inline parser_nodes#AModuleName#n_path (self) on <self:AModuleName> */
3589 var3
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
3590 if (unlikely(var3
== NULL
)) {
3591 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path");
3592 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989);
3600 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[TId]>*/
3602 var4
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
3603 if (unlikely(var4
== NULL
)) {
3604 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3605 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6388);
3609 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3613 /* method parser_prod#AModuleName#visit_all for (self: Object, Visitor) */
3614 void VIRTUAL_parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
3615 parser_prod__AModuleName__visit_all(self
, p0
); /* Direct call parser_prod#AModuleName#visit_all on <self:Object(AModuleName)>*/
3618 /* method parser_prod#AExternCalls#init_aexterncalls for (self: AExternCalls, nullable TKwimport, Collection[Object]) */
3619 void parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
3620 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
3621 val
* var_n_extern_calls
/* var n_extern_calls: Collection[Object] */;
3622 val
* var
/* : ANodes[AExternCall] */;
3623 val
* var3
/* : ANodes[AExternCall] */;
3624 var_n_kwimport
= p0
;
3625 var_n_extern_calls
= p1
;
3626 if (unlikely(var_n_kwimport
== NULL
)) {
3627 PRINT_ERROR("Runtime error: %s", "Cast failed");
3628 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6397);
3631 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AExternCalls> */
3632 if (var_n_kwimport
== NULL
) {
3633 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3634 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6398);
3637 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
3638 if (unlikely(var_n_kwimport
== NULL
)) {
3639 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3640 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3643 var_n_kwimport
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
3648 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
3649 var3
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
3650 if (unlikely(var3
== NULL
)) {
3651 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
3652 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073);
3660 parser_nodes__ANodes__unsafe_add_all(var
, var_n_extern_calls
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExternCall]>*/
3664 /* method parser_prod#AExternCalls#init_aexterncalls for (self: Object, nullable TKwimport, Collection[Object]) */
3665 void VIRTUAL_parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
3666 parser_prod__AExternCalls__init_aexterncalls(self
, p0
, p1
); /* Direct call parser_prod#AExternCalls#init_aexterncalls on <self:Object(AExternCalls)>*/
3669 /* method parser_prod#AExternCalls#replace_child for (self: AExternCalls, ANode, nullable ANode) */
3670 void parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
3671 val
* var_old_child
/* var old_child: ANode */;
3672 val
* var_new_child
/* var new_child: nullable ANode */;
3673 val
* var
/* : TKwimport */;
3674 short int var1
/* : Bool */;
3675 short int var2
/* : Bool */;
3676 val
* var_other
/* var other: nullable Object */;
3677 short int var4
/* : Bool */;
3678 short int var6
/* : Bool */;
3679 short int var7
/* : Bool */;
3682 const char* var_class_name
;
3683 val
* var8
/* : ANodes[AExternCall] */;
3684 val
* var10
/* : ANodes[AExternCall] */;
3685 short int var11
/* : Bool */;
3688 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
3689 if (unlikely(var
== NULL
)) {
3690 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
3691 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6404);
3695 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwimport> */
3696 var_other
= var_old_child
;
3698 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwimport> */
3699 var6
= var
== var_other
;
3712 /* <var_new_child:nullable ANode> isa TKwimport */
3713 cltype
= type_parser_nodes__TKwimport
.color
;
3714 idtype
= type_parser_nodes__TKwimport
.id
;
3715 if(var_new_child
== NULL
) {
3718 if(cltype
>= var_new_child
->type
->table_size
) {
3721 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3724 if (unlikely(!var7
)) {
3725 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3726 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name
);
3727 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6405);
3731 parser_prod__AExternCalls__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCalls#n_kwimport= on <self:AExternCalls>*/
3737 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
3738 var10
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
3739 if (unlikely(var10
== NULL
)) {
3740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
3741 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073);
3749 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
3757 /* method parser_prod#AExternCalls#replace_child for (self: Object, ANode, nullable ANode) */
3758 void VIRTUAL_parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
3759 parser_prod__AExternCalls__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExternCalls#replace_child on <self:Object(AExternCalls)>*/
3762 /* method parser_prod#AExternCalls#n_kwimport= for (self: AExternCalls, TKwimport) */
3763 void parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
3764 val
* var_node
/* var node: TKwimport */;
3766 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AExternCalls> */
3768 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
3769 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
3775 /* method parser_prod#AExternCalls#n_kwimport= for (self: Object, TKwimport) */
3776 void VIRTUAL_parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
3777 parser_prod__AExternCalls__n_kwimport_61d(self
, p0
); /* Direct call parser_prod#AExternCalls#n_kwimport= on <self:Object(AExternCalls)>*/
3780 /* method parser_prod#AExternCalls#visit_all for (self: AExternCalls, Visitor) */
3781 void parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
3782 val
* var_v
/* var v: Visitor */;
3783 val
* var
/* : TKwimport */;
3784 val
* var1
/* : ANodes[AExternCall] */;
3785 val
* var3
/* : ANodes[AExternCall] */;
3787 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
3788 if (unlikely(var
== NULL
)) {
3789 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
3790 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6420);
3794 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3797 { /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on <self:AExternCalls> */
3798 var3
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
3799 if (unlikely(var3
== NULL
)) {
3800 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls");
3801 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073);
3809 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AExternCall]>*/
3813 /* method parser_prod#AExternCalls#visit_all for (self: Object, Visitor) */
3814 void VIRTUAL_parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
3815 parser_prod__AExternCalls__visit_all(self
, p0
); /* Direct call parser_prod#AExternCalls#visit_all on <self:Object(AExternCalls)>*/
3818 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: ASuperExternCall, nullable TKwsuper) */
3819 void parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
3820 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
3822 if (unlikely(var_n_kwsuper
== NULL
)) {
3823 PRINT_ERROR("Runtime error: %s", "Cast failed");
3824 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6444);
3827 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExternCall> */
3828 if (var_n_kwsuper
== NULL
) {
3829 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3830 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6445);
3833 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
3834 if (unlikely(var_n_kwsuper
== NULL
)) {
3835 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3836 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3839 var_n_kwsuper
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
3845 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: Object, nullable TKwsuper) */
3846 void VIRTUAL_parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
3847 parser_prod__ASuperExternCall__init_asuperexterncall(self
, p0
); /* Direct call parser_prod#ASuperExternCall#init_asuperexterncall on <self:Object(ASuperExternCall)>*/
3850 /* method parser_prod#ASuperExternCall#replace_child for (self: ASuperExternCall, ANode, nullable ANode) */
3851 void parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
3852 val
* var_old_child
/* var old_child: ANode */;
3853 val
* var_new_child
/* var new_child: nullable ANode */;
3854 val
* var
/* : TKwsuper */;
3855 short int var1
/* : Bool */;
3856 short int var2
/* : Bool */;
3857 val
* var_other
/* var other: nullable Object */;
3858 short int var4
/* : Bool */;
3859 short int var6
/* : Bool */;
3860 short int var7
/* : Bool */;
3863 const char* var_class_name
;
3866 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
3867 if (unlikely(var
== NULL
)) {
3868 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
3869 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6450);
3873 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwsuper> */
3874 var_other
= var_old_child
;
3876 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwsuper> */
3877 var6
= var
== var_other
;
3890 /* <var_new_child:nullable ANode> isa TKwsuper */
3891 cltype
= type_parser_nodes__TKwsuper
.color
;
3892 idtype
= type_parser_nodes__TKwsuper
.id
;
3893 if(var_new_child
== NULL
) {
3896 if(cltype
>= var_new_child
->type
->table_size
) {
3899 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3902 if (unlikely(!var7
)) {
3903 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3904 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name
);
3905 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6451);
3909 parser_prod__ASuperExternCall__n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on <self:ASuperExternCall>*/
3916 /* method parser_prod#ASuperExternCall#replace_child for (self: Object, ANode, nullable ANode) */
3917 void VIRTUAL_parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
3918 parser_prod__ASuperExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperExternCall#replace_child on <self:Object(ASuperExternCall)>*/
3921 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: ASuperExternCall, TKwsuper) */
3922 void parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
3923 val
* var_node
/* var node: TKwsuper */;
3925 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExternCall> */
3927 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
3928 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
3934 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: Object, TKwsuper) */
3935 void VIRTUAL_parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
3936 parser_prod__ASuperExternCall__n_kwsuper_61d(self
, p0
); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on <self:Object(ASuperExternCall)>*/
3939 /* method parser_prod#ASuperExternCall#visit_all for (self: ASuperExternCall, Visitor) */
3940 void parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
3941 val
* var_v
/* var v: Visitor */;
3942 val
* var
/* : TKwsuper */;
3944 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
3945 if (unlikely(var
== NULL
)) {
3946 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
3947 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6465);
3951 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3955 /* method parser_prod#ASuperExternCall#visit_all for (self: Object, Visitor) */
3956 void VIRTUAL_parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
3957 parser_prod__ASuperExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ASuperExternCall#visit_all on <self:Object(ASuperExternCall)>*/
3960 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: ALocalPropExternCall, nullable AMethid) */
3961 void parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
3962 val
* var_n_methid
/* var n_methid: nullable AMethid */;
3964 if (unlikely(var_n_methid
== NULL
)) {
3965 PRINT_ERROR("Runtime error: %s", "Cast failed");
3966 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6473);
3969 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:ALocalPropExternCall> */
3970 if (var_n_methid
== NULL
) {
3971 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3972 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6474);
3975 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid> */
3976 if (unlikely(var_n_methid
== NULL
)) {
3977 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3978 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
3981 var_n_methid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid> */
3987 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: Object, nullable AMethid) */
3988 void VIRTUAL_parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
3989 parser_prod__ALocalPropExternCall__init_alocalpropexterncall(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#init_alocalpropexterncall on <self:Object(ALocalPropExternCall)>*/
3992 /* method parser_prod#ALocalPropExternCall#replace_child for (self: ALocalPropExternCall, ANode, nullable ANode) */
3993 void parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
3994 val
* var_old_child
/* var old_child: ANode */;
3995 val
* var_new_child
/* var new_child: nullable ANode */;
3996 val
* var
/* : AMethid */;
3997 short int var1
/* : Bool */;
3998 short int var2
/* : Bool */;
3999 val
* var_other
/* var other: nullable Object */;
4000 short int var4
/* : Bool */;
4001 short int var6
/* : Bool */;
4002 short int var7
/* : Bool */;
4005 const char* var_class_name
;
4008 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
4009 if (unlikely(var
== NULL
)) {
4010 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
4011 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6479);
4015 { /* Inline kernel#Object#== (var,var_old_child) on <var:AMethid> */
4016 var_other
= var_old_child
;
4018 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AMethid> */
4019 var6
= var
== var_other
;
4032 /* <var_new_child:nullable ANode> isa AMethid */
4033 cltype
= type_parser_nodes__AMethid
.color
;
4034 idtype
= type_parser_nodes__AMethid
.id
;
4035 if(var_new_child
== NULL
) {
4038 if(cltype
>= var_new_child
->type
->table_size
) {
4041 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4044 if (unlikely(!var7
)) {
4045 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4046 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name
);
4047 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6480);
4051 parser_prod__ALocalPropExternCall__n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on <self:ALocalPropExternCall>*/
4058 /* method parser_prod#ALocalPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
4059 void VIRTUAL_parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4060 parser_prod__ALocalPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ALocalPropExternCall#replace_child on <self:Object(ALocalPropExternCall)>*/
4063 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: ALocalPropExternCall, AMethid) */
4064 void parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
4065 val
* var_node
/* var node: AMethid */;
4067 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:ALocalPropExternCall> */
4069 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
4070 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
4076 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: Object, AMethid) */
4077 void VIRTUAL_parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
4078 parser_prod__ALocalPropExternCall__n_methid_61d(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on <self:Object(ALocalPropExternCall)>*/
4081 /* method parser_prod#ALocalPropExternCall#visit_all for (self: ALocalPropExternCall, Visitor) */
4082 void parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
4083 val
* var_v
/* var v: Visitor */;
4084 val
* var
/* : AMethid */;
4086 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
4087 if (unlikely(var
== NULL
)) {
4088 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
4089 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6494);
4093 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4097 /* method parser_prod#ALocalPropExternCall#visit_all for (self: Object, Visitor) */
4098 void VIRTUAL_parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
4099 parser_prod__ALocalPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ALocalPropExternCall#visit_all on <self:Object(ALocalPropExternCall)>*/
4102 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: AFullPropExternCall, nullable AType, nullable TDot, nullable AMethid) */
4103 void parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4104 val
* var_n_type
/* var n_type: nullable AType */;
4105 val
* var_n_dot
/* var n_dot: nullable TDot */;
4106 val
* var_n_methid
/* var n_methid: nullable AMethid */;
4107 val
* var
/* : null */;
4108 short int var2
/* : Bool */;
4109 short int var3
/* : Bool */;
4110 val
* var_other
/* var other: nullable Object */;
4111 short int var5
/* : Bool */;
4112 short int var6
/* : Bool */;
4113 short int var7
/* : Bool */;
4117 if (unlikely(var_n_type
== NULL
)) {
4118 PRINT_ERROR("Runtime error: %s", "Cast failed");
4119 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6504);
4122 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AFullPropExternCall> */
4123 if (var_n_type
== NULL
) {
4124 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4125 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6505);
4128 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
4129 if (unlikely(var_n_type
== NULL
)) {
4130 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4131 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4134 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
4138 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
= var_n_dot
; /* _n_dot on <self:AFullPropExternCall> */
4140 if (var_n_dot
== NULL
) {
4141 var2
= 0; /* is null */
4143 var2
= 1; /* arg is null and recv is not */
4146 { /* Inline kernel#Object#!= (var_n_dot,var) on <var_n_dot:nullable TDot> */
4149 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)>*/;
4161 { /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on <var_n_dot:nullable TDot(TDot)> */
4162 var_n_dot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dot:nullable TDot(TDot)> */
4168 if (unlikely(var_n_methid
== NULL
)) {
4169 PRINT_ERROR("Runtime error: %s", "Cast failed");
4170 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6508);
4173 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AFullPropExternCall> */
4174 if (var_n_methid
== NULL
) {
4175 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4176 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6509);
4179 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid> */
4180 if (unlikely(var_n_methid
== NULL
)) {
4181 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4182 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4185 var_n_methid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid> */
4191 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: Object, nullable AType, nullable TDot, nullable AMethid) */
4192 void VIRTUAL_parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4193 parser_prod__AFullPropExternCall__init_afullpropexterncall(self
, p0
, p1
, p2
); /* Direct call parser_prod#AFullPropExternCall#init_afullpropexterncall on <self:Object(AFullPropExternCall)>*/
4196 /* method parser_prod#AFullPropExternCall#replace_child for (self: AFullPropExternCall, ANode, nullable ANode) */
4197 void parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4198 val
* var_old_child
/* var old_child: ANode */;
4199 val
* var_new_child
/* var new_child: nullable ANode */;
4200 val
* var
/* : AType */;
4201 short int var1
/* : Bool */;
4202 short int var2
/* : Bool */;
4203 val
* var_other
/* var other: nullable Object */;
4204 short int var4
/* : Bool */;
4205 short int var6
/* : Bool */;
4206 short int var7
/* : Bool */;
4209 const char* var_class_name
;
4210 val
* var8
/* : nullable TDot */;
4211 short int var9
/* : Bool */;
4212 short int var10
/* : Bool */;
4213 short int var12
/* : Bool */;
4214 short int var14
/* : Bool */;
4215 short int var15
/* : Bool */;
4218 const char* var_class_name18
;
4219 val
* var19
/* : AMethid */;
4220 short int var20
/* : Bool */;
4221 short int var21
/* : Bool */;
4222 short int var23
/* : Bool */;
4223 short int var25
/* : Bool */;
4224 short int var26
/* : Bool */;
4227 const char* var_class_name29
;
4230 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
; /* _n_type on <self:AFullPropExternCall> */
4231 if (unlikely(var
== NULL
)) {
4232 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4233 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6514);
4237 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
4238 var_other
= var_old_child
;
4240 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
4241 var6
= var
== var_other
;
4254 /* <var_new_child:nullable ANode> isa AType */
4255 cltype
= type_parser_nodes__AType
.color
;
4256 idtype
= type_parser_nodes__AType
.id
;
4257 if(var_new_child
== NULL
) {
4260 if(cltype
>= var_new_child
->type
->table_size
) {
4263 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4266 if (unlikely(!var7
)) {
4267 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4268 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
4269 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6515);
4273 parser_prod__AFullPropExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_type= on <self:AFullPropExternCall>*/
4278 var8
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
; /* _n_dot on <self:AFullPropExternCall> */
4280 var9
= 0; /* <var_old_child:ANode> cannot be null */
4282 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TDot> */
4283 var_other
= var_old_child
;
4285 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TDot(TDot)> */
4286 var14
= var8
== var_other
;
4289 RET_LABEL13
:(void)0;
4294 RET_LABEL11
:(void)0;
4299 /* <var_new_child:nullable ANode> isa nullable TDot */
4300 cltype16
= type_nullable_parser_nodes__TDot
.color
;
4301 idtype17
= type_nullable_parser_nodes__TDot
.id
;
4302 if(var_new_child
== NULL
) {
4305 if(cltype16
>= var_new_child
->type
->table_size
) {
4308 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4311 if (unlikely(!var15
)) {
4312 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4313 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18
);
4314 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6519);
4318 parser_prod__AFullPropExternCall__n_dot_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_dot= on <self:AFullPropExternCall>*/
4323 var19
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
4324 if (unlikely(var19
== NULL
)) {
4325 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
4326 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6522);
4330 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AMethid> */
4331 var_other
= var_old_child
;
4333 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AMethid> */
4334 var25
= var19
== var_other
;
4337 RET_LABEL24
:(void)0;
4342 RET_LABEL22
:(void)0;
4347 /* <var_new_child:nullable ANode> isa AMethid */
4348 cltype27
= type_parser_nodes__AMethid
.color
;
4349 idtype28
= type_parser_nodes__AMethid
.id
;
4350 if(var_new_child
== NULL
) {
4353 if(cltype27
>= var_new_child
->type
->table_size
) {
4356 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
4359 if (unlikely(!var26
)) {
4360 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4361 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name29
);
4362 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6523);
4366 parser_prod__AFullPropExternCall__n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#AFullPropExternCall#n_methid= on <self:AFullPropExternCall>*/
4373 /* method parser_prod#AFullPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
4374 void VIRTUAL_parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4375 parser_prod__AFullPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFullPropExternCall#replace_child on <self:Object(AFullPropExternCall)>*/
4378 /* method parser_prod#AFullPropExternCall#n_type= for (self: AFullPropExternCall, AType) */
4379 void parser_prod__AFullPropExternCall__n_type_61d(val
* self
, val
* p0
) {
4380 val
* var_node
/* var node: AType */;
4382 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
= var_node
; /* _n_type on <self:AFullPropExternCall> */
4384 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
4385 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
4391 /* method parser_prod#AFullPropExternCall#n_type= for (self: Object, AType) */
4392 void VIRTUAL_parser_prod__AFullPropExternCall__n_type_61d(val
* self
, val
* p0
) {
4393 parser_prod__AFullPropExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_type= on <self:Object(AFullPropExternCall)>*/
4396 /* method parser_prod#AFullPropExternCall#n_dot= for (self: AFullPropExternCall, nullable TDot) */
4397 void parser_prod__AFullPropExternCall__n_dot_61d(val
* self
, val
* p0
) {
4398 val
* var_node
/* var node: nullable TDot */;
4399 val
* var
/* : null */;
4400 short int var1
/* : Bool */;
4401 short int var2
/* : Bool */;
4402 val
* var_other
/* var other: nullable Object */;
4403 short int var4
/* : Bool */;
4404 short int var5
/* : Bool */;
4405 short int var6
/* : Bool */;
4407 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
= var_node
; /* _n_dot on <self:AFullPropExternCall> */
4409 if (var_node
== NULL
) {
4410 var1
= 0; /* is null */
4412 var1
= 1; /* arg is null and recv is not */
4415 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TDot> */
4418 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TDot(TDot)>*/;
4430 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDot(TDot)> */
4431 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDot(TDot)> */
4439 /* method parser_prod#AFullPropExternCall#n_dot= for (self: Object, nullable TDot) */
4440 void VIRTUAL_parser_prod__AFullPropExternCall__n_dot_61d(val
* self
, val
* p0
) {
4441 parser_prod__AFullPropExternCall__n_dot_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_dot= on <self:Object(AFullPropExternCall)>*/
4444 /* method parser_prod#AFullPropExternCall#n_methid= for (self: AFullPropExternCall, AMethid) */
4445 void parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
4446 val
* var_node
/* var node: AMethid */;
4448 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:AFullPropExternCall> */
4450 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AMethid> */
4451 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AMethid> */
4457 /* method parser_prod#AFullPropExternCall#n_methid= for (self: Object, AMethid) */
4458 void VIRTUAL_parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
4459 parser_prod__AFullPropExternCall__n_methid_61d(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#n_methid= on <self:Object(AFullPropExternCall)>*/
4462 /* method parser_prod#AFullPropExternCall#visit_all for (self: AFullPropExternCall, Visitor) */
4463 void parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
4464 val
* var_v
/* var v: Visitor */;
4465 val
* var
/* : AType */;
4466 val
* var1
/* : nullable TDot */;
4467 val
* var2
/* : AMethid */;
4469 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_type
].val
; /* _n_type on <self:AFullPropExternCall> */
4470 if (unlikely(var
== NULL
)) {
4471 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4472 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6547);
4476 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4478 var1
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_dot
].val
; /* _n_dot on <self:AFullPropExternCall> */
4480 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4482 var2
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
4483 if (unlikely(var2
== NULL
)) {
4484 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid");
4485 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6549);
4489 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4493 /* method parser_prod#AFullPropExternCall#visit_all for (self: Object, Visitor) */
4494 void VIRTUAL_parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
4495 parser_prod__AFullPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AFullPropExternCall#visit_all on <self:Object(AFullPropExternCall)>*/
4498 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: AInitPropExternCall, nullable AType) */
4499 void parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
4500 val
* var_n_type
/* var n_type: nullable AType */;
4502 if (unlikely(var_n_type
== NULL
)) {
4503 PRINT_ERROR("Runtime error: %s", "Cast failed");
4504 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6557);
4507 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AInitPropExternCall> */
4508 if (var_n_type
== NULL
) {
4509 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4510 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6558);
4513 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
4514 if (unlikely(var_n_type
== NULL
)) {
4515 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4516 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4519 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
4525 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: Object, nullable AType) */
4526 void VIRTUAL_parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
4527 parser_prod__AInitPropExternCall__init_ainitpropexterncall(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#init_ainitpropexterncall on <self:Object(AInitPropExternCall)>*/
4530 /* method parser_prod#AInitPropExternCall#replace_child for (self: AInitPropExternCall, ANode, nullable ANode) */
4531 void parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4532 val
* var_old_child
/* var old_child: ANode */;
4533 val
* var_new_child
/* var new_child: nullable ANode */;
4534 val
* var
/* : AType */;
4535 short int var1
/* : Bool */;
4536 short int var2
/* : Bool */;
4537 val
* var_other
/* var other: nullable Object */;
4538 short int var4
/* : Bool */;
4539 short int var6
/* : Bool */;
4540 short int var7
/* : Bool */;
4543 const char* var_class_name
;
4546 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
; /* _n_type on <self:AInitPropExternCall> */
4547 if (unlikely(var
== NULL
)) {
4548 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4549 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6563);
4553 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
4554 var_other
= var_old_child
;
4556 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
4557 var6
= var
== var_other
;
4570 /* <var_new_child:nullable ANode> isa AType */
4571 cltype
= type_parser_nodes__AType
.color
;
4572 idtype
= type_parser_nodes__AType
.id
;
4573 if(var_new_child
== NULL
) {
4576 if(cltype
>= var_new_child
->type
->table_size
) {
4579 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4582 if (unlikely(!var7
)) {
4583 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4584 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
4585 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6564);
4589 parser_prod__AInitPropExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AInitPropExternCall#n_type= on <self:AInitPropExternCall>*/
4596 /* method parser_prod#AInitPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
4597 void VIRTUAL_parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4598 parser_prod__AInitPropExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInitPropExternCall#replace_child on <self:Object(AInitPropExternCall)>*/
4601 /* method parser_prod#AInitPropExternCall#n_type= for (self: AInitPropExternCall, AType) */
4602 void parser_prod__AInitPropExternCall__n_type_61d(val
* self
, val
* p0
) {
4603 val
* var_node
/* var node: AType */;
4605 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
= var_node
; /* _n_type on <self:AInitPropExternCall> */
4607 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
4608 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
4614 /* method parser_prod#AInitPropExternCall#n_type= for (self: Object, AType) */
4615 void VIRTUAL_parser_prod__AInitPropExternCall__n_type_61d(val
* self
, val
* p0
) {
4616 parser_prod__AInitPropExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#n_type= on <self:Object(AInitPropExternCall)>*/
4619 /* method parser_prod#AInitPropExternCall#visit_all for (self: AInitPropExternCall, Visitor) */
4620 void parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
4621 val
* var_v
/* var v: Visitor */;
4622 val
* var
/* : AType */;
4624 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_type
].val
; /* _n_type on <self:AInitPropExternCall> */
4625 if (unlikely(var
== NULL
)) {
4626 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
4627 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6578);
4631 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4635 /* method parser_prod#AInitPropExternCall#visit_all for (self: Object, Visitor) */
4636 void VIRTUAL_parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
4637 parser_prod__AInitPropExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AInitPropExternCall#visit_all on <self:Object(AInitPropExternCall)>*/
4640 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: ACastAsExternCall, nullable AType, nullable TDot, nullable TKwas, nullable AType) */
4641 void parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4642 val
* var_n_from_type
/* var n_from_type: nullable AType */;
4643 val
* var_n_dot
/* var n_dot: nullable TDot */;
4644 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
4645 val
* var_n_to_type
/* var n_to_type: nullable AType */;
4646 val
* var
/* : null */;
4647 short int var2
/* : Bool */;
4648 short int var3
/* : Bool */;
4649 val
* var_other
/* var other: nullable Object */;
4650 short int var5
/* : Bool */;
4651 short int var6
/* : Bool */;
4652 short int var7
/* : Bool */;
4653 var_n_from_type
= p0
;
4657 if (unlikely(var_n_from_type
== NULL
)) {
4658 PRINT_ERROR("Runtime error: %s", "Cast failed");
4659 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6589);
4662 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_n_from_type
; /* _n_from_type on <self:ACastAsExternCall> */
4663 if (var_n_from_type
== NULL
) {
4664 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4665 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6590);
4668 { /* Inline parser_nodes#ANode#parent= (var_n_from_type,self) on <var_n_from_type:nullable AType> */
4669 if (unlikely(var_n_from_type
== NULL
)) {
4670 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4671 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4674 var_n_from_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_from_type:nullable AType> */
4678 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
= var_n_dot
; /* _n_dot on <self:ACastAsExternCall> */
4680 if (var_n_dot
== NULL
) {
4681 var2
= 0; /* is null */
4683 var2
= 1; /* arg is null and recv is not */
4686 { /* Inline kernel#Object#!= (var_n_dot,var) on <var_n_dot:nullable TDot> */
4689 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)>*/;
4701 { /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on <var_n_dot:nullable TDot(TDot)> */
4702 var_n_dot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dot:nullable TDot(TDot)> */
4708 if (unlikely(var_n_kwas
== NULL
)) {
4709 PRINT_ERROR("Runtime error: %s", "Cast failed");
4710 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6593);
4713 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:ACastAsExternCall> */
4714 if (var_n_kwas
== NULL
) {
4715 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4716 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6594);
4719 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
4720 if (unlikely(var_n_kwas
== NULL
)) {
4721 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4722 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4725 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
4729 if (unlikely(var_n_to_type
== NULL
)) {
4730 PRINT_ERROR("Runtime error: %s", "Cast failed");
4731 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6595);
4734 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_n_to_type
; /* _n_to_type on <self:ACastAsExternCall> */
4735 if (var_n_to_type
== NULL
) {
4736 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4737 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6596);
4740 { /* Inline parser_nodes#ANode#parent= (var_n_to_type,self) on <var_n_to_type:nullable AType> */
4741 if (unlikely(var_n_to_type
== NULL
)) {
4742 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4743 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4746 var_n_to_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_to_type:nullable AType> */
4747 RET_LABEL10
:(void)0;
4752 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: Object, nullable AType, nullable TDot, nullable TKwas, nullable AType) */
4753 void VIRTUAL_parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4754 parser_prod__ACastAsExternCall__init_acastasexterncall(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#ACastAsExternCall#init_acastasexterncall on <self:Object(ACastAsExternCall)>*/
4757 /* method parser_prod#ACastAsExternCall#replace_child for (self: ACastAsExternCall, ANode, nullable ANode) */
4758 void parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4759 val
* var_old_child
/* var old_child: ANode */;
4760 val
* var_new_child
/* var new_child: nullable ANode */;
4761 val
* var
/* : AType */;
4762 short int var1
/* : Bool */;
4763 short int var2
/* : Bool */;
4764 val
* var_other
/* var other: nullable Object */;
4765 short int var4
/* : Bool */;
4766 short int var6
/* : Bool */;
4767 short int var7
/* : Bool */;
4770 const char* var_class_name
;
4771 val
* var8
/* : nullable TDot */;
4772 short int var9
/* : Bool */;
4773 short int var10
/* : Bool */;
4774 short int var12
/* : Bool */;
4775 short int var14
/* : Bool */;
4776 short int var15
/* : Bool */;
4779 const char* var_class_name18
;
4780 val
* var19
/* : TKwas */;
4781 short int var20
/* : Bool */;
4782 short int var21
/* : Bool */;
4783 short int var23
/* : Bool */;
4784 short int var25
/* : Bool */;
4785 short int var26
/* : Bool */;
4788 const char* var_class_name29
;
4789 val
* var30
/* : AType */;
4790 short int var31
/* : Bool */;
4791 short int var32
/* : Bool */;
4792 short int var34
/* : Bool */;
4793 short int var36
/* : Bool */;
4794 short int var37
/* : Bool */;
4797 const char* var_class_name40
;
4800 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
4801 if (unlikely(var
== NULL
)) {
4802 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type");
4803 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6601);
4807 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
4808 var_other
= var_old_child
;
4810 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
4811 var6
= var
== var_other
;
4824 /* <var_new_child:nullable ANode> isa AType */
4825 cltype
= type_parser_nodes__AType
.color
;
4826 idtype
= type_parser_nodes__AType
.id
;
4827 if(var_new_child
== NULL
) {
4830 if(cltype
>= var_new_child
->type
->table_size
) {
4833 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4836 if (unlikely(!var7
)) {
4837 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4838 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
4839 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6602);
4843 parser_prod__ACastAsExternCall__n_from_type_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on <self:ACastAsExternCall>*/
4848 var8
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
; /* _n_dot on <self:ACastAsExternCall> */
4850 var9
= 0; /* <var_old_child:ANode> cannot be null */
4852 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TDot> */
4853 var_other
= var_old_child
;
4855 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TDot(TDot)> */
4856 var14
= var8
== var_other
;
4859 RET_LABEL13
:(void)0;
4864 RET_LABEL11
:(void)0;
4869 /* <var_new_child:nullable ANode> isa nullable TDot */
4870 cltype16
= type_nullable_parser_nodes__TDot
.color
;
4871 idtype17
= type_nullable_parser_nodes__TDot
.id
;
4872 if(var_new_child
== NULL
) {
4875 if(cltype16
>= var_new_child
->type
->table_size
) {
4878 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4881 if (unlikely(!var15
)) {
4882 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4883 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18
);
4884 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6606);
4888 parser_prod__ACastAsExternCall__n_dot_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_dot= on <self:ACastAsExternCall>*/
4893 var19
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
4894 if (unlikely(var19
== NULL
)) {
4895 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
4896 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6609);
4900 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwas> */
4901 var_other
= var_old_child
;
4903 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwas> */
4904 var25
= var19
== var_other
;
4907 RET_LABEL24
:(void)0;
4912 RET_LABEL22
:(void)0;
4917 /* <var_new_child:nullable ANode> isa TKwas */
4918 cltype27
= type_parser_nodes__TKwas
.color
;
4919 idtype28
= type_parser_nodes__TKwas
.id
;
4920 if(var_new_child
== NULL
) {
4923 if(cltype27
>= var_new_child
->type
->table_size
) {
4926 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
4929 if (unlikely(!var26
)) {
4930 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4931 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name29
);
4932 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6610);
4936 parser_prod__ACastAsExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on <self:ACastAsExternCall>*/
4941 var30
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
4942 if (unlikely(var30
== NULL
)) {
4943 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type");
4944 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6613);
4948 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AType> */
4949 var_other
= var_old_child
;
4951 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AType> */
4952 var36
= var30
== var_other
;
4955 RET_LABEL35
:(void)0;
4960 RET_LABEL33
:(void)0;
4965 /* <var_new_child:nullable ANode> isa AType */
4966 cltype38
= type_parser_nodes__AType
.color
;
4967 idtype39
= type_parser_nodes__AType
.id
;
4968 if(var_new_child
== NULL
) {
4971 if(cltype38
>= var_new_child
->type
->table_size
) {
4974 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
4977 if (unlikely(!var37
)) {
4978 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4979 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40
);
4980 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6614);
4984 parser_prod__ACastAsExternCall__n_to_type_61d(self
, var_new_child
); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on <self:ACastAsExternCall>*/
4991 /* method parser_prod#ACastAsExternCall#replace_child for (self: Object, ANode, nullable ANode) */
4992 void VIRTUAL_parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
4993 parser_prod__ACastAsExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ACastAsExternCall#replace_child on <self:Object(ACastAsExternCall)>*/
4996 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: ACastAsExternCall, AType) */
4997 void parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
4998 val
* var_node
/* var node: AType */;
5000 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_node
; /* _n_from_type on <self:ACastAsExternCall> */
5002 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5003 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5009 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: Object, AType) */
5010 void VIRTUAL_parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
5011 parser_prod__ACastAsExternCall__n_from_type_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on <self:Object(ACastAsExternCall)>*/
5014 /* method parser_prod#ACastAsExternCall#n_dot= for (self: ACastAsExternCall, nullable TDot) */
5015 void parser_prod__ACastAsExternCall__n_dot_61d(val
* self
, val
* p0
) {
5016 val
* var_node
/* var node: nullable TDot */;
5017 val
* var
/* : null */;
5018 short int var1
/* : Bool */;
5019 short int var2
/* : Bool */;
5020 val
* var_other
/* var other: nullable Object */;
5021 short int var4
/* : Bool */;
5022 short int var5
/* : Bool */;
5023 short int var6
/* : Bool */;
5025 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
= var_node
; /* _n_dot on <self:ACastAsExternCall> */
5027 if (var_node
== NULL
) {
5028 var1
= 0; /* is null */
5030 var1
= 1; /* arg is null and recv is not */
5033 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TDot> */
5036 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TDot(TDot)>*/;
5048 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDot(TDot)> */
5049 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDot(TDot)> */
5057 /* method parser_prod#ACastAsExternCall#n_dot= for (self: Object, nullable TDot) */
5058 void VIRTUAL_parser_prod__ACastAsExternCall__n_dot_61d(val
* self
, val
* p0
) {
5059 parser_prod__ACastAsExternCall__n_dot_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_dot= on <self:Object(ACastAsExternCall)>*/
5062 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: ACastAsExternCall, TKwas) */
5063 void parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5064 val
* var_node
/* var node: TKwas */;
5066 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:ACastAsExternCall> */
5068 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5069 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5075 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: Object, TKwas) */
5076 void VIRTUAL_parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5077 parser_prod__ACastAsExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on <self:Object(ACastAsExternCall)>*/
5080 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: ACastAsExternCall, AType) */
5081 void parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
5082 val
* var_node
/* var node: AType */;
5084 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_node
; /* _n_to_type on <self:ACastAsExternCall> */
5086 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5087 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5093 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: Object, AType) */
5094 void VIRTUAL_parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
5095 parser_prod__ACastAsExternCall__n_to_type_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on <self:Object(ACastAsExternCall)>*/
5098 /* method parser_prod#ACastAsExternCall#visit_all for (self: ACastAsExternCall, Visitor) */
5099 void parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
5100 val
* var_v
/* var v: Visitor */;
5101 val
* var
/* : AType */;
5102 val
* var1
/* : nullable TDot */;
5103 val
* var2
/* : TKwas */;
5104 val
* var3
/* : AType */;
5106 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
5107 if (unlikely(var
== NULL
)) {
5108 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type");
5109 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6643);
5113 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5115 var1
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
; /* _n_dot on <self:ACastAsExternCall> */
5117 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5119 var2
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
5120 if (unlikely(var2
== NULL
)) {
5121 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5122 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6645);
5126 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5128 var3
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
5129 if (unlikely(var3
== NULL
)) {
5130 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type");
5131 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6646);
5135 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5139 /* method parser_prod#ACastAsExternCall#visit_all for (self: Object, Visitor) */
5140 void VIRTUAL_parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
5141 parser_prod__ACastAsExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#visit_all on <self:Object(ACastAsExternCall)>*/
5144 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: AAsNullableExternCall, nullable AType, nullable TKwas, nullable TKwnullable) */
5145 void parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5146 val
* var_n_type
/* var n_type: nullable AType */;
5147 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
5148 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
5151 var_n_kwnullable
= p2
;
5152 if (unlikely(var_n_type
== NULL
)) {
5153 PRINT_ERROR("Runtime error: %s", "Cast failed");
5154 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6656);
5157 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNullableExternCall> */
5158 if (var_n_type
== NULL
) {
5159 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5160 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6657);
5163 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
5164 if (unlikely(var_n_type
== NULL
)) {
5165 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5166 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5169 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
5173 if (unlikely(var_n_kwas
== NULL
)) {
5174 PRINT_ERROR("Runtime error: %s", "Cast failed");
5175 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6658);
5178 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNullableExternCall> */
5179 if (var_n_kwas
== NULL
) {
5180 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5181 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6659);
5184 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
5185 if (unlikely(var_n_kwas
== NULL
)) {
5186 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5187 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5190 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
5194 if (unlikely(var_n_kwnullable
== NULL
)) {
5195 PRINT_ERROR("Runtime error: %s", "Cast failed");
5196 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6660);
5199 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNullableExternCall> */
5200 if (var_n_kwnullable
== NULL
) {
5201 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5202 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6661);
5205 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable> */
5206 if (unlikely(var_n_kwnullable
== NULL
)) {
5207 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5208 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5211 var_n_kwnullable
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable> */
5217 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnullable) */
5218 void VIRTUAL_parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5219 parser_prod__AAsNullableExternCall__init_aasnullableexterncall(self
, p0
, p1
, p2
); /* Direct call parser_prod#AAsNullableExternCall#init_aasnullableexterncall on <self:Object(AAsNullableExternCall)>*/
5222 /* method parser_prod#AAsNullableExternCall#replace_child for (self: AAsNullableExternCall, ANode, nullable ANode) */
5223 void parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
5224 val
* var_old_child
/* var old_child: ANode */;
5225 val
* var_new_child
/* var new_child: nullable ANode */;
5226 val
* var
/* : AType */;
5227 short int var1
/* : Bool */;
5228 short int var2
/* : Bool */;
5229 val
* var_other
/* var other: nullable Object */;
5230 short int var4
/* : Bool */;
5231 short int var6
/* : Bool */;
5232 short int var7
/* : Bool */;
5235 const char* var_class_name
;
5236 val
* var8
/* : TKwas */;
5237 short int var9
/* : Bool */;
5238 short int var10
/* : Bool */;
5239 short int var12
/* : Bool */;
5240 short int var14
/* : Bool */;
5241 short int var15
/* : Bool */;
5244 const char* var_class_name18
;
5245 val
* var19
/* : TKwnullable */;
5246 short int var20
/* : Bool */;
5247 short int var21
/* : Bool */;
5248 short int var23
/* : Bool */;
5249 short int var25
/* : Bool */;
5250 short int var26
/* : Bool */;
5253 const char* var_class_name29
;
5256 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
5257 if (unlikely(var
== NULL
)) {
5258 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5259 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6666);
5263 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
5264 var_other
= var_old_child
;
5266 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
5267 var6
= var
== var_other
;
5280 /* <var_new_child:nullable ANode> isa AType */
5281 cltype
= type_parser_nodes__AType
.color
;
5282 idtype
= type_parser_nodes__AType
.id
;
5283 if(var_new_child
== NULL
) {
5286 if(cltype
>= var_new_child
->type
->table_size
) {
5289 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5292 if (unlikely(!var7
)) {
5293 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5294 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
5295 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6667);
5299 parser_prod__AAsNullableExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_type= on <self:AAsNullableExternCall>*/
5304 var8
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
5305 if (unlikely(var8
== NULL
)) {
5306 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5307 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6670);
5311 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
5312 var_other
= var_old_child
;
5314 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
5315 var14
= var8
== var_other
;
5318 RET_LABEL13
:(void)0;
5323 RET_LABEL11
:(void)0;
5328 /* <var_new_child:nullable ANode> isa TKwas */
5329 cltype16
= type_parser_nodes__TKwas
.color
;
5330 idtype17
= type_parser_nodes__TKwas
.id
;
5331 if(var_new_child
== NULL
) {
5334 if(cltype16
>= var_new_child
->type
->table_size
) {
5337 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5340 if (unlikely(!var15
)) {
5341 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5342 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
5343 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6671);
5347 parser_prod__AAsNullableExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on <self:AAsNullableExternCall>*/
5352 var19
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
5353 if (unlikely(var19
== NULL
)) {
5354 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
5355 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6674);
5359 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwnullable> */
5360 var_other
= var_old_child
;
5362 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwnullable> */
5363 var25
= var19
== var_other
;
5366 RET_LABEL24
:(void)0;
5371 RET_LABEL22
:(void)0;
5376 /* <var_new_child:nullable ANode> isa TKwnullable */
5377 cltype27
= type_parser_nodes__TKwnullable
.color
;
5378 idtype28
= type_parser_nodes__TKwnullable
.id
;
5379 if(var_new_child
== NULL
) {
5382 if(cltype27
>= var_new_child
->type
->table_size
) {
5385 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5388 if (unlikely(!var26
)) {
5389 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5390 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name29
);
5391 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6675);
5395 parser_prod__AAsNullableExternCall__n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on <self:AAsNullableExternCall>*/
5402 /* method parser_prod#AAsNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
5403 void VIRTUAL_parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
5404 parser_prod__AAsNullableExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNullableExternCall#replace_child on <self:Object(AAsNullableExternCall)>*/
5407 /* method parser_prod#AAsNullableExternCall#n_type= for (self: AAsNullableExternCall, AType) */
5408 void parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
5409 val
* var_node
/* var node: AType */;
5411 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNullableExternCall> */
5413 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5414 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5420 /* method parser_prod#AAsNullableExternCall#n_type= for (self: Object, AType) */
5421 void VIRTUAL_parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
5422 parser_prod__AAsNullableExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_type= on <self:Object(AAsNullableExternCall)>*/
5425 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: AAsNullableExternCall, TKwas) */
5426 void parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5427 val
* var_node
/* var node: TKwas */;
5429 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNullableExternCall> */
5431 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5432 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5438 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: Object, TKwas) */
5439 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5440 parser_prod__AAsNullableExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on <self:Object(AAsNullableExternCall)>*/
5443 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: AAsNullableExternCall, TKwnullable) */
5444 void parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
5445 val
* var_node
/* var node: TKwnullable */;
5447 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNullableExternCall> */
5449 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnullable> */
5450 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnullable> */
5456 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
5457 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
5458 parser_prod__AAsNullableExternCall__n_kwnullable_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on <self:Object(AAsNullableExternCall)>*/
5461 /* method parser_prod#AAsNullableExternCall#visit_all for (self: AAsNullableExternCall, Visitor) */
5462 void parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
5463 val
* var_v
/* var v: Visitor */;
5464 val
* var
/* : AType */;
5465 val
* var1
/* : TKwas */;
5466 val
* var2
/* : TKwnullable */;
5468 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
5469 if (unlikely(var
== NULL
)) {
5470 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5471 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6699);
5475 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5477 var1
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
5478 if (unlikely(var1
== NULL
)) {
5479 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5480 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6700);
5484 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5486 var2
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
5487 if (unlikely(var2
== NULL
)) {
5488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
5489 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6701);
5493 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5497 /* method parser_prod#AAsNullableExternCall#visit_all for (self: Object, Visitor) */
5498 void VIRTUAL_parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
5499 parser_prod__AAsNullableExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#visit_all on <self:Object(AAsNullableExternCall)>*/
5502 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: AAsNotNullableExternCall, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
5503 void parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5504 val
* var_n_type
/* var n_type: nullable AType */;
5505 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
5506 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
5507 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
5511 var_n_kwnullable
= p3
;
5512 if (unlikely(var_n_type
== NULL
)) {
5513 PRINT_ERROR("Runtime error: %s", "Cast failed");
5514 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6712);
5517 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNotNullableExternCall> */
5518 if (var_n_type
== NULL
) {
5519 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5520 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6713);
5523 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
5524 if (unlikely(var_n_type
== NULL
)) {
5525 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5526 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5529 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
5533 if (unlikely(var_n_kwas
== NULL
)) {
5534 PRINT_ERROR("Runtime error: %s", "Cast failed");
5535 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6714);
5538 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotNullableExternCall> */
5539 if (var_n_kwas
== NULL
) {
5540 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5541 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6715);
5544 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
5545 if (unlikely(var_n_kwas
== NULL
)) {
5546 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5547 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5550 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
5554 if (unlikely(var_n_kwnot
== NULL
)) {
5555 PRINT_ERROR("Runtime error: %s", "Cast failed");
5556 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6716);
5559 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
5560 if (var_n_kwnot
== NULL
) {
5561 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5562 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6717);
5565 { /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on <var_n_kwnot:nullable TKwnot> */
5566 if (unlikely(var_n_kwnot
== NULL
)) {
5567 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5568 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5571 var_n_kwnot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnot:nullable TKwnot> */
5575 if (unlikely(var_n_kwnullable
== NULL
)) {
5576 PRINT_ERROR("Runtime error: %s", "Cast failed");
5577 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6718);
5580 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
5581 if (var_n_kwnullable
== NULL
) {
5582 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5583 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6719);
5586 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable> */
5587 if (unlikely(var_n_kwnullable
== NULL
)) {
5588 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5589 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5592 var_n_kwnullable
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable> */
5598 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
5599 void VIRTUAL_parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5600 parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall on <self:Object(AAsNotNullableExternCall)>*/
5603 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: AAsNotNullableExternCall, ANode, nullable ANode) */
5604 void parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
5605 val
* var_old_child
/* var old_child: ANode */;
5606 val
* var_new_child
/* var new_child: nullable ANode */;
5607 val
* var
/* : AType */;
5608 short int var1
/* : Bool */;
5609 short int var2
/* : Bool */;
5610 val
* var_other
/* var other: nullable Object */;
5611 short int var4
/* : Bool */;
5612 short int var6
/* : Bool */;
5613 short int var7
/* : Bool */;
5616 const char* var_class_name
;
5617 val
* var8
/* : TKwas */;
5618 short int var9
/* : Bool */;
5619 short int var10
/* : Bool */;
5620 short int var12
/* : Bool */;
5621 short int var14
/* : Bool */;
5622 short int var15
/* : Bool */;
5625 const char* var_class_name18
;
5626 val
* var19
/* : TKwnot */;
5627 short int var20
/* : Bool */;
5628 short int var21
/* : Bool */;
5629 short int var23
/* : Bool */;
5630 short int var25
/* : Bool */;
5631 short int var26
/* : Bool */;
5634 const char* var_class_name29
;
5635 val
* var30
/* : TKwnullable */;
5636 short int var31
/* : Bool */;
5637 short int var32
/* : Bool */;
5638 short int var34
/* : Bool */;
5639 short int var36
/* : Bool */;
5640 short int var37
/* : Bool */;
5643 const char* var_class_name40
;
5646 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
5647 if (unlikely(var
== NULL
)) {
5648 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5649 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6724);
5653 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
5654 var_other
= var_old_child
;
5656 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
5657 var6
= var
== var_other
;
5670 /* <var_new_child:nullable ANode> isa AType */
5671 cltype
= type_parser_nodes__AType
.color
;
5672 idtype
= type_parser_nodes__AType
.id
;
5673 if(var_new_child
== NULL
) {
5676 if(cltype
>= var_new_child
->type
->table_size
) {
5679 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5682 if (unlikely(!var7
)) {
5683 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5684 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
5685 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6725);
5689 parser_prod__AAsNotNullableExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on <self:AAsNotNullableExternCall>*/
5694 var8
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
5695 if (unlikely(var8
== NULL
)) {
5696 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5697 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6728);
5701 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
5702 var_other
= var_old_child
;
5704 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
5705 var14
= var8
== var_other
;
5708 RET_LABEL13
:(void)0;
5713 RET_LABEL11
:(void)0;
5718 /* <var_new_child:nullable ANode> isa TKwas */
5719 cltype16
= type_parser_nodes__TKwas
.color
;
5720 idtype17
= type_parser_nodes__TKwas
.id
;
5721 if(var_new_child
== NULL
) {
5724 if(cltype16
>= var_new_child
->type
->table_size
) {
5727 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5730 if (unlikely(!var15
)) {
5731 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5732 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
5733 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6729);
5737 parser_prod__AAsNotNullableExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on <self:AAsNotNullableExternCall>*/
5742 var19
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
5743 if (unlikely(var19
== NULL
)) {
5744 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
5745 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6732);
5749 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwnot> */
5750 var_other
= var_old_child
;
5752 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwnot> */
5753 var25
= var19
== var_other
;
5756 RET_LABEL24
:(void)0;
5761 RET_LABEL22
:(void)0;
5766 /* <var_new_child:nullable ANode> isa TKwnot */
5767 cltype27
= type_parser_nodes__TKwnot
.color
;
5768 idtype28
= type_parser_nodes__TKwnot
.id
;
5769 if(var_new_child
== NULL
) {
5772 if(cltype27
>= var_new_child
->type
->table_size
) {
5775 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5778 if (unlikely(!var26
)) {
5779 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5780 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name29
);
5781 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6733);
5785 parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on <self:AAsNotNullableExternCall>*/
5790 var30
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
5791 if (unlikely(var30
== NULL
)) {
5792 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
5793 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6736);
5797 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwnullable> */
5798 var_other
= var_old_child
;
5800 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwnullable> */
5801 var36
= var30
== var_other
;
5804 RET_LABEL35
:(void)0;
5809 RET_LABEL33
:(void)0;
5814 /* <var_new_child:nullable ANode> isa TKwnullable */
5815 cltype38
= type_parser_nodes__TKwnullable
.color
;
5816 idtype39
= type_parser_nodes__TKwnullable
.id
;
5817 if(var_new_child
== NULL
) {
5820 if(cltype38
>= var_new_child
->type
->table_size
) {
5823 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
5826 if (unlikely(!var37
)) {
5827 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5828 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name40
);
5829 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6737);
5833 parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on <self:AAsNotNullableExternCall>*/
5840 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
5841 void VIRTUAL_parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
5842 parser_prod__AAsNotNullableExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNotNullableExternCall#replace_child on <self:Object(AAsNotNullableExternCall)>*/
5845 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: AAsNotNullableExternCall, AType) */
5846 void parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
5847 val
* var_node
/* var node: AType */;
5849 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNotNullableExternCall> */
5851 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5852 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5858 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: Object, AType) */
5859 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
5860 parser_prod__AAsNotNullableExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on <self:Object(AAsNotNullableExternCall)>*/
5863 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: AAsNotNullableExternCall, TKwas) */
5864 void parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5865 val
* var_node
/* var node: TKwas */;
5867 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotNullableExternCall> */
5869 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
5870 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
5876 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: Object, TKwas) */
5877 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
5878 parser_prod__AAsNotNullableExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on <self:Object(AAsNotNullableExternCall)>*/
5881 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: AAsNotNullableExternCall, TKwnot) */
5882 void parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
5883 val
* var_node
/* var node: TKwnot */;
5885 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
5887 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnot> */
5888 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnot> */
5894 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: Object, TKwnot) */
5895 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
5896 parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on <self:Object(AAsNotNullableExternCall)>*/
5899 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: AAsNotNullableExternCall, TKwnullable) */
5900 void parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
5901 val
* var_node
/* var node: TKwnullable */;
5903 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
5905 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnullable> */
5906 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnullable> */
5912 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
5913 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
5914 parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on <self:Object(AAsNotNullableExternCall)>*/
5917 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: AAsNotNullableExternCall, Visitor) */
5918 void parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
5919 val
* var_v
/* var v: Visitor */;
5920 val
* var
/* : AType */;
5921 val
* var1
/* : TKwas */;
5922 val
* var2
/* : TKwnot */;
5923 val
* var3
/* : TKwnullable */;
5925 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
5926 if (unlikely(var
== NULL
)) {
5927 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5928 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6766);
5932 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5934 var1
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
5935 if (unlikely(var1
== NULL
)) {
5936 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
5937 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6767);
5941 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5943 var2
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
5944 if (unlikely(var2
== NULL
)) {
5945 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
5946 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6768);
5950 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5952 var3
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
5953 if (unlikely(var3
== NULL
)) {
5954 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
5955 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6769);
5959 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5963 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: Object, Visitor) */
5964 void VIRTUAL_parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
5965 parser_prod__AAsNotNullableExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#visit_all on <self:Object(AAsNotNullableExternCall)>*/
5968 /* method parser_prod#AInLanguage#init_ainlanguage for (self: AInLanguage, nullable TKwin, nullable TString) */
5969 void parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
5970 val
* var_n_kwin
/* var n_kwin: nullable TKwin */;
5971 val
* var_n_string
/* var n_string: nullable TString */;
5974 if (unlikely(var_n_kwin
== NULL
)) {
5975 PRINT_ERROR("Runtime error: %s", "Cast failed");
5976 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6778);
5979 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_n_kwin
; /* _n_kwin on <self:AInLanguage> */
5980 if (var_n_kwin
== NULL
) {
5981 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5982 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6779);
5985 { /* Inline parser_nodes#ANode#parent= (var_n_kwin,self) on <var_n_kwin:nullable TKwin> */
5986 if (unlikely(var_n_kwin
== NULL
)) {
5987 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5988 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5991 var_n_kwin
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwin:nullable TKwin> */
5995 if (unlikely(var_n_string
== NULL
)) {
5996 PRINT_ERROR("Runtime error: %s", "Cast failed");
5997 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6780);
6000 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_n_string
; /* _n_string on <self:AInLanguage> */
6001 if (var_n_string
== NULL
) {
6002 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6003 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6781);
6006 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TString> */
6007 if (unlikely(var_n_string
== NULL
)) {
6008 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6009 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6012 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TString> */
6018 /* method parser_prod#AInLanguage#init_ainlanguage for (self: Object, nullable TKwin, nullable TString) */
6019 void VIRTUAL_parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
6020 parser_prod__AInLanguage__init_ainlanguage(self
, p0
, p1
); /* Direct call parser_prod#AInLanguage#init_ainlanguage on <self:Object(AInLanguage)>*/
6023 /* method parser_prod#AInLanguage#replace_child for (self: AInLanguage, ANode, nullable ANode) */
6024 void parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
6025 val
* var_old_child
/* var old_child: ANode */;
6026 val
* var_new_child
/* var new_child: nullable ANode */;
6027 val
* var
/* : TKwin */;
6028 short int var1
/* : Bool */;
6029 short int var2
/* : Bool */;
6030 val
* var_other
/* var other: nullable Object */;
6031 short int var4
/* : Bool */;
6032 short int var6
/* : Bool */;
6033 short int var7
/* : Bool */;
6036 const char* var_class_name
;
6037 val
* var8
/* : TString */;
6038 short int var9
/* : Bool */;
6039 short int var10
/* : Bool */;
6040 short int var12
/* : Bool */;
6041 short int var14
/* : Bool */;
6042 short int var15
/* : Bool */;
6045 const char* var_class_name18
;
6048 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
6049 if (unlikely(var
== NULL
)) {
6050 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin");
6051 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6786);
6055 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwin> */
6056 var_other
= var_old_child
;
6058 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwin> */
6059 var6
= var
== var_other
;
6072 /* <var_new_child:nullable ANode> isa TKwin */
6073 cltype
= type_parser_nodes__TKwin
.color
;
6074 idtype
= type_parser_nodes__TKwin
.id
;
6075 if(var_new_child
== NULL
) {
6078 if(cltype
>= var_new_child
->type
->table_size
) {
6081 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6084 if (unlikely(!var7
)) {
6085 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6086 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwin", var_class_name
);
6087 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6787);
6091 parser_prod__AInLanguage__n_kwin_61d(self
, var_new_child
); /* Direct call parser_prod#AInLanguage#n_kwin= on <self:AInLanguage>*/
6096 var8
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
6097 if (unlikely(var8
== NULL
)) {
6098 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
6099 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6790);
6103 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TString> */
6104 var_other
= var_old_child
;
6106 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TString> */
6107 var14
= var8
== var_other
;
6110 RET_LABEL13
:(void)0;
6115 RET_LABEL11
:(void)0;
6120 /* <var_new_child:nullable ANode> isa TString */
6121 cltype16
= type_parser_nodes__TString
.color
;
6122 idtype17
= type_parser_nodes__TString
.id
;
6123 if(var_new_child
== NULL
) {
6126 if(cltype16
>= var_new_child
->type
->table_size
) {
6129 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6132 if (unlikely(!var15
)) {
6133 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6134 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name18
);
6135 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6791);
6139 parser_prod__AInLanguage__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AInLanguage#n_string= on <self:AInLanguage>*/
6146 /* method parser_prod#AInLanguage#replace_child for (self: Object, ANode, nullable ANode) */
6147 void VIRTUAL_parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
6148 parser_prod__AInLanguage__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInLanguage#replace_child on <self:Object(AInLanguage)>*/
6151 /* method parser_prod#AInLanguage#n_kwin= for (self: AInLanguage, TKwin) */
6152 void parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
6153 val
* var_node
/* var node: TKwin */;
6155 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_node
; /* _n_kwin on <self:AInLanguage> */
6157 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwin> */
6158 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwin> */
6164 /* method parser_prod#AInLanguage#n_kwin= for (self: Object, TKwin) */
6165 void VIRTUAL_parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
6166 parser_prod__AInLanguage__n_kwin_61d(self
, p0
); /* Direct call parser_prod#AInLanguage#n_kwin= on <self:Object(AInLanguage)>*/
6169 /* method parser_prod#AInLanguage#n_string= for (self: AInLanguage, TString) */
6170 void parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
6171 val
* var_node
/* var node: TString */;
6173 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_node
; /* _n_string on <self:AInLanguage> */
6175 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TString> */
6176 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TString> */
6182 /* method parser_prod#AInLanguage#n_string= for (self: Object, TString) */
6183 void VIRTUAL_parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
6184 parser_prod__AInLanguage__n_string_61d(self
, p0
); /* Direct call parser_prod#AInLanguage#n_string= on <self:Object(AInLanguage)>*/
6187 /* method parser_prod#AInLanguage#visit_all for (self: AInLanguage, Visitor) */
6188 void parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
6189 val
* var_v
/* var v: Visitor */;
6190 val
* var
/* : TKwin */;
6191 val
* var1
/* : TString */;
6193 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
6194 if (unlikely(var
== NULL
)) {
6195 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin");
6196 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6810);
6200 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6202 var1
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
6203 if (unlikely(var1
== NULL
)) {
6204 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
6205 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6811);
6209 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6213 /* method parser_prod#AInLanguage#visit_all for (self: Object, Visitor) */
6214 void VIRTUAL_parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
6215 parser_prod__AInLanguage__visit_all(self
, p0
); /* Direct call parser_prod#AInLanguage#visit_all on <self:Object(AInLanguage)>*/
6218 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: AExternCodeBlock, nullable AInLanguage, nullable TExternCodeSegment) */
6219 void parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
6220 val
* var_n_in_language
/* var n_in_language: nullable AInLanguage */;
6221 val
* var_n_extern_code_segment
/* var n_extern_code_segment: nullable TExternCodeSegment */;
6222 val
* var
/* : null */;
6223 short int var1
/* : Bool */;
6224 short int var2
/* : Bool */;
6225 val
* var_other
/* var other: nullable Object */;
6226 short int var4
/* : Bool */;
6227 short int var5
/* : Bool */;
6228 short int var6
/* : Bool */;
6229 var_n_in_language
= p0
;
6230 var_n_extern_code_segment
= p1
;
6231 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_n_in_language
; /* _n_in_language on <self:AExternCodeBlock> */
6233 if (var_n_in_language
== NULL
) {
6234 var1
= 0; /* is null */
6236 var1
= 1; /* arg is null and recv is not */
6239 { /* Inline kernel#Object#!= (var_n_in_language,var) on <var_n_in_language:nullable AInLanguage> */
6242 var5
= ((short int (*)(val
*, val
*))(var_n_in_language
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_in_language
, var_other
) /* == on <var_n_in_language:nullable AInLanguage(AInLanguage)>*/;
6254 { /* Inline parser_nodes#ANode#parent= (var_n_in_language,self) on <var_n_in_language:nullable AInLanguage(AInLanguage)> */
6255 var_n_in_language
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_in_language:nullable AInLanguage(AInLanguage)> */
6261 if (unlikely(var_n_extern_code_segment
== NULL
)) {
6262 PRINT_ERROR("Runtime error: %s", "Cast failed");
6263 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6822);
6266 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_n_extern_code_segment
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
6267 if (var_n_extern_code_segment
== NULL
) {
6268 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6269 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6823);
6272 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_segment,self) on <var_n_extern_code_segment:nullable TExternCodeSegment> */
6273 if (unlikely(var_n_extern_code_segment
== NULL
)) {
6274 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6275 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6278 var_n_extern_code_segment
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_segment:nullable TExternCodeSegment> */
6284 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: Object, nullable AInLanguage, nullable TExternCodeSegment) */
6285 void VIRTUAL_parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
6286 parser_prod__AExternCodeBlock__init_aexterncodeblock(self
, p0
, p1
); /* Direct call parser_prod#AExternCodeBlock#init_aexterncodeblock on <self:Object(AExternCodeBlock)>*/
6289 /* method parser_prod#AExternCodeBlock#replace_child for (self: AExternCodeBlock, ANode, nullable ANode) */
6290 void parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
6291 val
* var_old_child
/* var old_child: ANode */;
6292 val
* var_new_child
/* var new_child: nullable ANode */;
6293 val
* var
/* : nullable AInLanguage */;
6294 short int var1
/* : Bool */;
6295 short int var2
/* : Bool */;
6296 val
* var_other
/* var other: nullable Object */;
6297 short int var4
/* : Bool */;
6298 short int var6
/* : Bool */;
6299 short int var7
/* : Bool */;
6302 const char* var_class_name
;
6303 val
* var8
/* : TExternCodeSegment */;
6304 short int var9
/* : Bool */;
6305 short int var10
/* : Bool */;
6306 short int var12
/* : Bool */;
6307 short int var14
/* : Bool */;
6308 short int var15
/* : Bool */;
6311 const char* var_class_name18
;
6314 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
6316 var1
= 0; /* <var_old_child:ANode> cannot be null */
6318 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AInLanguage> */
6319 var_other
= var_old_child
;
6321 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AInLanguage(AInLanguage)> */
6322 var6
= var
== var_other
;
6335 /* <var_new_child:nullable ANode> isa nullable AInLanguage */
6336 cltype
= type_nullable_parser_nodes__AInLanguage
.color
;
6337 idtype
= type_nullable_parser_nodes__AInLanguage
.id
;
6338 if(var_new_child
== NULL
) {
6341 if(cltype
>= var_new_child
->type
->table_size
) {
6344 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6347 if (unlikely(!var7
)) {
6348 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6349 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AInLanguage", var_class_name
);
6350 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6829);
6354 parser_prod__AExternCodeBlock__n_in_language_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on <self:AExternCodeBlock>*/
6359 var8
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
6360 if (unlikely(var8
== NULL
)) {
6361 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment");
6362 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6832);
6366 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TExternCodeSegment> */
6367 var_other
= var_old_child
;
6369 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TExternCodeSegment> */
6370 var14
= var8
== var_other
;
6373 RET_LABEL13
:(void)0;
6378 RET_LABEL11
:(void)0;
6383 /* <var_new_child:nullable ANode> isa TExternCodeSegment */
6384 cltype16
= type_parser_nodes__TExternCodeSegment
.color
;
6385 idtype17
= type_parser_nodes__TExternCodeSegment
.id
;
6386 if(var_new_child
== NULL
) {
6389 if(cltype16
>= var_new_child
->type
->table_size
) {
6392 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6395 if (unlikely(!var15
)) {
6396 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6397 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TExternCodeSegment", var_class_name18
);
6398 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6833);
6402 parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on <self:AExternCodeBlock>*/
6409 /* method parser_prod#AExternCodeBlock#replace_child for (self: Object, ANode, nullable ANode) */
6410 void VIRTUAL_parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
6411 parser_prod__AExternCodeBlock__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExternCodeBlock#replace_child on <self:Object(AExternCodeBlock)>*/
6414 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: AExternCodeBlock, nullable AInLanguage) */
6415 void parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
6416 val
* var_node
/* var node: nullable AInLanguage */;
6417 val
* var
/* : null */;
6418 short int var1
/* : Bool */;
6419 short int var2
/* : Bool */;
6420 val
* var_other
/* var other: nullable Object */;
6421 short int var4
/* : Bool */;
6422 short int var5
/* : Bool */;
6423 short int var6
/* : Bool */;
6425 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_node
; /* _n_in_language on <self:AExternCodeBlock> */
6427 if (var_node
== NULL
) {
6428 var1
= 0; /* is null */
6430 var1
= 1; /* arg is null and recv is not */
6433 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AInLanguage> */
6436 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AInLanguage(AInLanguage)>*/;
6448 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AInLanguage(AInLanguage)> */
6449 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AInLanguage(AInLanguage)> */
6457 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: Object, nullable AInLanguage) */
6458 void VIRTUAL_parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
6459 parser_prod__AExternCodeBlock__n_in_language_61d(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on <self:Object(AExternCodeBlock)>*/
6462 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: AExternCodeBlock, TExternCodeSegment) */
6463 void parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
6464 val
* var_node
/* var node: TExternCodeSegment */;
6466 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_node
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
6468 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TExternCodeSegment> */
6469 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TExternCodeSegment> */
6475 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: Object, TExternCodeSegment) */
6476 void VIRTUAL_parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
6477 parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on <self:Object(AExternCodeBlock)>*/
6480 /* method parser_prod#AExternCodeBlock#visit_all for (self: AExternCodeBlock, Visitor) */
6481 void parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
6482 val
* var_v
/* var v: Visitor */;
6483 val
* var
/* : nullable AInLanguage */;
6484 val
* var1
/* : TExternCodeSegment */;
6486 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
6488 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6490 var1
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
6491 if (unlikely(var1
== NULL
)) {
6492 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment");
6493 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6853);
6497 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6501 /* method parser_prod#AExternCodeBlock#visit_all for (self: Object, Visitor) */
6502 void VIRTUAL_parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
6503 parser_prod__AExternCodeBlock__visit_all(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#visit_all on <self:Object(AExternCodeBlock)>*/
6506 /* method parser_prod#AQualified#init_aqualified for (self: AQualified, Collection[Object], nullable TClassid) */
6507 void parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
6508 val
* var_n_id
/* var n_id: Collection[Object] */;
6509 val
* var_n_classid
/* var n_classid: nullable TClassid */;
6510 val
* var
/* : ANodes[TId] */;
6511 val
* var2
/* : ANodes[TId] */;
6512 val
* var3
/* : null */;
6513 short int var4
/* : Bool */;
6514 short int var5
/* : Bool */;
6515 val
* var_other
/* var other: nullable Object */;
6516 short int var7
/* : Bool */;
6517 short int var8
/* : Bool */;
6518 short int var9
/* : Bool */;
6522 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
6523 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
6524 if (unlikely(var2
== NULL
)) {
6525 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6526 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011);
6534 parser_nodes__ANodes__unsafe_add_all(var
, var_n_id
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[TId]>*/
6536 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_n_classid
; /* _n_classid on <self:AQualified> */
6538 if (var_n_classid
== NULL
) {
6539 var4
= 0; /* is null */
6541 var4
= 1; /* arg is null and recv is not */
6544 { /* Inline kernel#Object#!= (var_n_classid,var3) on <var_n_classid:nullable TClassid> */
6547 var8
= ((short int (*)(val
*, val
*))(var_n_classid
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_classid
, var_other
) /* == on <var_n_classid:nullable TClassid(TClassid)>*/;
6559 { /* Inline parser_nodes#ANode#parent= (var_n_classid,self) on <var_n_classid:nullable TClassid(TClassid)> */
6560 var_n_classid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_classid:nullable TClassid(TClassid)> */
6561 RET_LABEL10
:(void)0;
6568 /* method parser_prod#AQualified#init_aqualified for (self: Object, Collection[Object], nullable TClassid) */
6569 void VIRTUAL_parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
6570 parser_prod__AQualified__init_aqualified(self
, p0
, p1
); /* Direct call parser_prod#AQualified#init_aqualified on <self:Object(AQualified)>*/
6573 /* method parser_prod#AQualified#replace_child for (self: AQualified, ANode, nullable ANode) */
6574 void parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
6575 val
* var_old_child
/* var old_child: ANode */;
6576 val
* var_new_child
/* var new_child: nullable ANode */;
6577 val
* var
/* : ANodes[TId] */;
6578 val
* var2
/* : ANodes[TId] */;
6579 short int var3
/* : Bool */;
6580 val
* var4
/* : nullable TClassid */;
6581 short int var5
/* : Bool */;
6582 short int var6
/* : Bool */;
6583 val
* var_other
/* var other: nullable Object */;
6584 short int var8
/* : Bool */;
6585 short int var10
/* : Bool */;
6586 short int var11
/* : Bool */;
6589 const char* var_class_name
;
6593 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
6594 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
6595 if (unlikely(var2
== NULL
)) {
6596 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6597 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011);
6605 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
6611 var4
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
6613 var5
= 0; /* <var_old_child:ANode> cannot be null */
6615 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable TClassid> */
6616 var_other
= var_old_child
;
6618 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable TClassid(TClassid)> */
6619 var10
= var4
== var_other
;
6632 /* <var_new_child:nullable ANode> isa nullable TClassid */
6633 cltype
= type_nullable_parser_nodes__TClassid
.color
;
6634 idtype
= type_nullable_parser_nodes__TClassid
.id
;
6635 if(var_new_child
== NULL
) {
6638 if(cltype
>= var_new_child
->type
->table_size
) {
6641 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6644 if (unlikely(!var11
)) {
6645 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6646 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TClassid", var_class_name
);
6647 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6871);
6651 parser_prod__AQualified__n_classid_61d(self
, var_new_child
); /* Direct call parser_prod#AQualified#n_classid= on <self:AQualified>*/
6658 /* method parser_prod#AQualified#replace_child for (self: Object, ANode, nullable ANode) */
6659 void VIRTUAL_parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
6660 parser_prod__AQualified__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AQualified#replace_child on <self:Object(AQualified)>*/
6663 /* method parser_prod#AQualified#n_classid= for (self: AQualified, nullable TClassid) */
6664 void parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
6665 val
* var_node
/* var node: nullable TClassid */;
6666 val
* var
/* : null */;
6667 short int var1
/* : Bool */;
6668 short int var2
/* : Bool */;
6669 val
* var_other
/* var other: nullable Object */;
6670 short int var4
/* : Bool */;
6671 short int var5
/* : Bool */;
6672 short int var6
/* : Bool */;
6674 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_node
; /* _n_classid on <self:AQualified> */
6676 if (var_node
== NULL
) {
6677 var1
= 0; /* is null */
6679 var1
= 1; /* arg is null and recv is not */
6682 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TClassid> */
6685 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TClassid(TClassid)>*/;
6697 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TClassid(TClassid)> */
6698 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TClassid(TClassid)> */
6706 /* method parser_prod#AQualified#n_classid= for (self: Object, nullable TClassid) */
6707 void VIRTUAL_parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
6708 parser_prod__AQualified__n_classid_61d(self
, p0
); /* Direct call parser_prod#AQualified#n_classid= on <self:Object(AQualified)>*/
6711 /* method parser_prod#AQualified#visit_all for (self: AQualified, Visitor) */
6712 void parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
6713 val
* var_v
/* var v: Visitor */;
6714 val
* var
/* : ANodes[TId] */;
6715 val
* var2
/* : ANodes[TId] */;
6716 val
* var3
/* : nullable TClassid */;
6719 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
6720 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
6721 if (unlikely(var2
== NULL
)) {
6722 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6723 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011);
6731 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[TId]>*/
6733 var3
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
6735 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6739 /* method parser_prod#AQualified#visit_all for (self: Object, Visitor) */
6740 void VIRTUAL_parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
6741 parser_prod__AQualified__visit_all(self
, p0
); /* Direct call parser_prod#AQualified#visit_all on <self:Object(AQualified)>*/
6744 /* method parser_prod#ADoc#init_adoc for (self: ADoc, Collection[Object]) */
6745 void parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
6746 val
* var_n_comment
/* var n_comment: Collection[Object] */;
6747 val
* var
/* : ANodes[TComment] */;
6748 val
* var2
/* : ANodes[TComment] */;
6751 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
6752 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
6753 if (unlikely(var2
== NULL
)) {
6754 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
6755 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019);
6763 parser_nodes__ANodes__unsafe_add_all(var
, var_n_comment
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[TComment]>*/
6767 /* method parser_prod#ADoc#init_adoc for (self: Object, Collection[Object]) */
6768 void VIRTUAL_parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
6769 parser_prod__ADoc__init_adoc(self
, p0
); /* Direct call parser_prod#ADoc#init_adoc on <self:Object(ADoc)>*/
6772 /* method parser_prod#ADoc#replace_child for (self: ADoc, ANode, nullable ANode) */
6773 void parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
6774 val
* var_old_child
/* var old_child: ANode */;
6775 val
* var_new_child
/* var new_child: nullable ANode */;
6776 val
* var
/* : ANodes[TComment] */;
6777 val
* var2
/* : ANodes[TComment] */;
6778 short int var3
/* : Bool */;
6782 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
6783 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
6784 if (unlikely(var2
== NULL
)) {
6785 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
6786 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019);
6794 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
6802 /* method parser_prod#ADoc#replace_child for (self: Object, ANode, nullable ANode) */
6803 void VIRTUAL_parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
6804 parser_prod__ADoc__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADoc#replace_child on <self:Object(ADoc)>*/
6807 /* method parser_prod#ADoc#visit_all for (self: ADoc, Visitor) */
6808 void parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
6809 val
* var_v
/* var v: Visitor */;
6810 val
* var
/* : ANodes[TComment] */;
6811 val
* var2
/* : ANodes[TComment] */;
6814 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
6815 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
6816 if (unlikely(var2
== NULL
)) {
6817 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
6818 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019);
6826 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[TComment]>*/
6830 /* method parser_prod#ADoc#visit_all for (self: Object, Visitor) */
6831 void VIRTUAL_parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
6832 parser_prod__ADoc__visit_all(self
, p0
); /* Direct call parser_prod#ADoc#visit_all on <self:Object(ADoc)>*/
6835 /* method parser_prod#AAnnotations#init_aannotations for (self: AAnnotations, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
6836 void parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6837 val
* var_n_at
/* var n_at: nullable TAt */;
6838 val
* var_n_opar
/* var n_opar: nullable TOpar */;
6839 val
* var_n_items
/* var n_items: Collection[Object] */;
6840 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
6841 val
* var
/* : null */;
6842 short int var1
/* : Bool */;
6843 short int var2
/* : Bool */;
6844 val
* var_other
/* var other: nullable Object */;
6845 short int var4
/* : Bool */;
6846 short int var5
/* : Bool */;
6847 short int var6
/* : Bool */;
6848 val
* var8
/* : null */;
6849 short int var9
/* : Bool */;
6850 short int var10
/* : Bool */;
6851 short int var12
/* : Bool */;
6852 short int var13
/* : Bool */;
6853 short int var14
/* : Bool */;
6854 val
* var16
/* : ANodes[AAnnotation] */;
6855 val
* var18
/* : ANodes[AAnnotation] */;
6856 val
* var19
/* : null */;
6857 short int var20
/* : Bool */;
6858 short int var21
/* : Bool */;
6859 short int var23
/* : Bool */;
6860 short int var24
/* : Bool */;
6861 short int var25
/* : Bool */;
6866 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_n_at
; /* _n_at on <self:AAnnotations> */
6868 if (var_n_at
== NULL
) {
6869 var1
= 0; /* is null */
6871 var1
= 1; /* arg is null and recv is not */
6874 { /* Inline kernel#Object#!= (var_n_at,var) on <var_n_at:nullable TAt> */
6877 var5
= ((short int (*)(val
*, val
*))(var_n_at
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_at
, var_other
) /* == on <var_n_at:nullable TAt(TAt)>*/;
6889 { /* Inline parser_nodes#ANode#parent= (var_n_at,self) on <var_n_at:nullable TAt(TAt)> */
6890 var_n_at
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_at:nullable TAt(TAt)> */
6896 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotations> */
6898 if (var_n_opar
== NULL
) {
6899 var9
= 0; /* is null */
6901 var9
= 1; /* arg is null and recv is not */
6904 { /* Inline kernel#Object#!= (var_n_opar,var8) on <var_n_opar:nullable TOpar> */
6907 var13
= ((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)>*/;
6913 RET_LABEL11
:(void)0;
6919 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
6920 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
6921 RET_LABEL15
:(void)0;
6927 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
6928 var18
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
6929 if (unlikely(var18
== NULL
)) {
6930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
6931 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027);
6935 RET_LABEL17
:(void)0;
6939 parser_nodes__ANodes__unsafe_add_all(var16
, var_n_items
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var16:ANodes[AAnnotation]>*/
6941 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotations> */
6943 if (var_n_cpar
== NULL
) {
6944 var20
= 0; /* is null */
6946 var20
= 1; /* arg is null and recv is not */
6949 { /* Inline kernel#Object#!= (var_n_cpar,var19) on <var_n_cpar:nullable TCpar> */
6952 var24
= ((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)>*/;
6958 RET_LABEL22
:(void)0;
6964 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
6965 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
6966 RET_LABEL26
:(void)0;
6973 /* method parser_prod#AAnnotations#init_aannotations for (self: Object, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
6974 void VIRTUAL_parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
6975 parser_prod__AAnnotations__init_aannotations(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AAnnotations#init_aannotations on <self:Object(AAnnotations)>*/
6978 /* method parser_prod#AAnnotations#replace_child for (self: AAnnotations, ANode, nullable ANode) */
6979 void parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
6980 val
* var_old_child
/* var old_child: ANode */;
6981 val
* var_new_child
/* var new_child: nullable ANode */;
6982 val
* var
/* : nullable TAt */;
6983 short int var1
/* : Bool */;
6984 short int var2
/* : Bool */;
6985 val
* var_other
/* var other: nullable Object */;
6986 short int var4
/* : Bool */;
6987 short int var6
/* : Bool */;
6988 short int var7
/* : Bool */;
6991 const char* var_class_name
;
6992 val
* var8
/* : nullable TOpar */;
6993 short int var9
/* : Bool */;
6994 short int var10
/* : Bool */;
6995 short int var12
/* : Bool */;
6996 short int var14
/* : Bool */;
6997 short int var15
/* : Bool */;
7000 const char* var_class_name18
;
7001 val
* var19
/* : ANodes[AAnnotation] */;
7002 val
* var21
/* : ANodes[AAnnotation] */;
7003 short int var22
/* : Bool */;
7004 val
* var23
/* : nullable TCpar */;
7005 short int var24
/* : Bool */;
7006 short int var25
/* : Bool */;
7007 short int var27
/* : Bool */;
7008 short int var29
/* : Bool */;
7009 short int var30
/* : Bool */;
7012 const char* var_class_name33
;
7015 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
7017 var1
= 0; /* <var_old_child:ANode> cannot be null */
7019 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TAt> */
7020 var_other
= var_old_child
;
7022 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TAt(TAt)> */
7023 var6
= var
== var_other
;
7036 /* <var_new_child:nullable ANode> isa nullable TAt */
7037 cltype
= type_nullable_parser_nodes__TAt
.color
;
7038 idtype
= type_nullable_parser_nodes__TAt
.id
;
7039 if(var_new_child
== NULL
) {
7042 if(cltype
>= var_new_child
->type
->table_size
) {
7045 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7048 if (unlikely(!var7
)) {
7049 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7050 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAt", var_class_name
);
7051 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6929);
7055 parser_prod__AAnnotations__n_at_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_at= on <self:AAnnotations>*/
7060 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
7062 var9
= 0; /* <var_old_child:ANode> cannot be null */
7064 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TOpar> */
7065 var_other
= var_old_child
;
7067 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TOpar(TOpar)> */
7068 var14
= var8
== var_other
;
7071 RET_LABEL13
:(void)0;
7076 RET_LABEL11
:(void)0;
7081 /* <var_new_child:nullable ANode> isa nullable TOpar */
7082 cltype16
= type_nullable_parser_nodes__TOpar
.color
;
7083 idtype17
= type_nullable_parser_nodes__TOpar
.id
;
7084 if(var_new_child
== NULL
) {
7087 if(cltype16
>= var_new_child
->type
->table_size
) {
7090 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7093 if (unlikely(!var15
)) {
7094 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7095 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name18
);
7096 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6933);
7100 parser_prod__AAnnotations__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_opar= on <self:AAnnotations>*/
7106 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
7107 var21
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
7108 if (unlikely(var21
== NULL
)) {
7109 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
7110 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027);
7114 RET_LABEL20
:(void)0;
7118 var22
= parser_nodes__ANodes__replace_child(var19
, var_old_child
, var_new_child
);
7124 var23
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
7125 if (var23
== NULL
) {
7126 var24
= 0; /* <var_old_child:ANode> cannot be null */
7128 { /* Inline kernel#Object#== (var23,var_old_child) on <var23:nullable TCpar> */
7129 var_other
= var_old_child
;
7131 { /* Inline kernel#Object#is_same_instance (var23,var_other) on <var23:nullable TCpar(TCpar)> */
7132 var29
= var23
== var_other
;
7135 RET_LABEL28
:(void)0;
7140 RET_LABEL26
:(void)0;
7145 /* <var_new_child:nullable ANode> isa nullable TCpar */
7146 cltype31
= type_nullable_parser_nodes__TCpar
.color
;
7147 idtype32
= type_nullable_parser_nodes__TCpar
.id
;
7148 if(var_new_child
== NULL
) {
7151 if(cltype31
>= var_new_child
->type
->table_size
) {
7154 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
7157 if (unlikely(!var30
)) {
7158 var_class_name33
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7159 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name33
);
7160 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6938);
7164 parser_prod__AAnnotations__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_cpar= on <self:AAnnotations>*/
7171 /* method parser_prod#AAnnotations#replace_child for (self: Object, ANode, nullable ANode) */
7172 void VIRTUAL_parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
7173 parser_prod__AAnnotations__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAnnotations#replace_child on <self:Object(AAnnotations)>*/
7176 /* method parser_prod#AAnnotations#n_at= for (self: AAnnotations, nullable TAt) */
7177 void parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
7178 val
* var_node
/* var node: nullable TAt */;
7179 val
* var
/* : null */;
7180 short int var1
/* : Bool */;
7181 short int var2
/* : Bool */;
7182 val
* var_other
/* var other: nullable Object */;
7183 short int var4
/* : Bool */;
7184 short int var5
/* : Bool */;
7185 short int var6
/* : Bool */;
7187 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_node
; /* _n_at on <self:AAnnotations> */
7189 if (var_node
== NULL
) {
7190 var1
= 0; /* is null */
7192 var1
= 1; /* arg is null and recv is not */
7195 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TAt> */
7198 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TAt(TAt)>*/;
7210 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAt(TAt)> */
7211 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAt(TAt)> */
7219 /* method parser_prod#AAnnotations#n_at= for (self: Object, nullable TAt) */
7220 void VIRTUAL_parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
7221 parser_prod__AAnnotations__n_at_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_at= on <self:Object(AAnnotations)>*/
7224 /* method parser_prod#AAnnotations#n_opar= for (self: AAnnotations, nullable TOpar) */
7225 void parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
7226 val
* var_node
/* var node: nullable TOpar */;
7227 val
* var
/* : null */;
7228 short int var1
/* : Bool */;
7229 short int var2
/* : Bool */;
7230 val
* var_other
/* var other: nullable Object */;
7231 short int var4
/* : Bool */;
7232 short int var5
/* : Bool */;
7233 short int var6
/* : Bool */;
7235 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotations> */
7237 if (var_node
== NULL
) {
7238 var1
= 0; /* is null */
7240 var1
= 1; /* arg is null and recv is not */
7243 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
7246 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
7258 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
7259 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
7267 /* method parser_prod#AAnnotations#n_opar= for (self: Object, nullable TOpar) */
7268 void VIRTUAL_parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
7269 parser_prod__AAnnotations__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_opar= on <self:Object(AAnnotations)>*/
7272 /* method parser_prod#AAnnotations#n_cpar= for (self: AAnnotations, nullable TCpar) */
7273 void parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
7274 val
* var_node
/* var node: nullable TCpar */;
7275 val
* var
/* : null */;
7276 short int var1
/* : Bool */;
7277 short int var2
/* : Bool */;
7278 val
* var_other
/* var other: nullable Object */;
7279 short int var4
/* : Bool */;
7280 short int var5
/* : Bool */;
7281 short int var6
/* : Bool */;
7283 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotations> */
7285 if (var_node
== NULL
) {
7286 var1
= 0; /* is null */
7288 var1
= 1; /* arg is null and recv is not */
7291 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
7294 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
7306 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
7307 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
7315 /* method parser_prod#AAnnotations#n_cpar= for (self: Object, nullable TCpar) */
7316 void VIRTUAL_parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
7317 parser_prod__AAnnotations__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_cpar= on <self:Object(AAnnotations)>*/
7320 /* method parser_prod#AAnnotations#visit_all for (self: AAnnotations, Visitor) */
7321 void parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
7322 val
* var_v
/* var v: Visitor */;
7323 val
* var
/* : nullable TAt */;
7324 val
* var1
/* : nullable TOpar */;
7325 val
* var2
/* : ANodes[AAnnotation] */;
7326 val
* var4
/* : ANodes[AAnnotation] */;
7327 val
* var5
/* : nullable TCpar */;
7329 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
7331 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7333 var1
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
7335 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7338 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
7339 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
7340 if (unlikely(var4
== NULL
)) {
7341 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
7342 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027);
7350 parser_nodes__ANodes__visit_all(var2
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var2:ANodes[AAnnotation]>*/
7352 var5
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
7354 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7358 /* method parser_prod#AAnnotations#visit_all for (self: Object, Visitor) */
7359 void VIRTUAL_parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
7360 parser_prod__AAnnotations__visit_all(self
, p0
); /* Direct call parser_prod#AAnnotations#visit_all on <self:Object(AAnnotations)>*/
7363 /* method parser_prod#AAnnotation#init_aannotation for (self: AAnnotation, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
7364 void parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
7365 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7366 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7367 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7368 val
* var_n_atid
/* var n_atid: nullable AAtid */;
7369 val
* var_n_opar
/* var n_opar: nullable TOpar */;
7370 val
* var_n_args
/* var n_args: Collection[Object] */;
7371 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
7372 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7373 val
* var
/* : null */;
7374 short int var1
/* : Bool */;
7375 short int var2
/* : Bool */;
7376 val
* var_other
/* var other: nullable Object */;
7377 short int var4
/* : Bool */;
7378 short int var5
/* : Bool */;
7379 short int var6
/* : Bool */;
7380 val
* var8
/* : null */;
7381 short int var9
/* : Bool */;
7382 short int var10
/* : Bool */;
7383 short int var12
/* : Bool */;
7384 short int var13
/* : Bool */;
7385 short int var14
/* : Bool */;
7386 val
* var16
/* : null */;
7387 short int var17
/* : Bool */;
7388 short int var18
/* : Bool */;
7389 short int var20
/* : Bool */;
7390 short int var21
/* : Bool */;
7391 short int var22
/* : Bool */;
7392 val
* var25
/* : null */;
7393 short int var26
/* : Bool */;
7394 short int var27
/* : Bool */;
7395 short int var29
/* : Bool */;
7396 short int var30
/* : Bool */;
7397 short int var31
/* : Bool */;
7398 val
* var33
/* : ANodes[AExpr] */;
7399 val
* var35
/* : ANodes[AExpr] */;
7400 val
* var36
/* : null */;
7401 short int var37
/* : Bool */;
7402 short int var38
/* : Bool */;
7403 short int var40
/* : Bool */;
7404 short int var41
/* : Bool */;
7405 short int var42
/* : Bool */;
7406 val
* var44
/* : null */;
7407 short int var45
/* : Bool */;
7408 short int var46
/* : Bool */;
7409 short int var48
/* : Bool */;
7410 short int var49
/* : Bool */;
7411 short int var50
/* : Bool */;
7414 var_n_visibility
= p2
;
7419 var_n_annotations
= p7
;
7420 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAnnotation> */
7422 if (var_n_doc
== NULL
) {
7423 var1
= 0; /* is null */
7425 var1
= 1; /* arg is null and recv is not */
7428 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
7431 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
7443 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
7444 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
7450 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAnnotation> */
7452 if (var_n_kwredef
== NULL
) {
7453 var9
= 0; /* is null */
7455 var9
= 1; /* arg is null and recv is not */
7458 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
7461 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
7467 RET_LABEL11
:(void)0;
7473 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7474 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7475 RET_LABEL15
:(void)0;
7480 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAnnotation> */
7482 if (var_n_visibility
== NULL
) {
7483 var17
= 0; /* is null */
7485 var17
= 1; /* arg is null and recv is not */
7488 { /* Inline kernel#Object#!= (var_n_visibility,var16) on <var_n_visibility:nullable AVisibility> */
7491 var21
= ((short int (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_visibility
, var_other
) /* == on <var_n_visibility:nullable AVisibility(AVisibility)>*/;
7497 RET_LABEL19
:(void)0;
7503 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility(AVisibility)> */
7504 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility(AVisibility)> */
7505 RET_LABEL23
:(void)0;
7510 if (unlikely(var_n_atid
== NULL
)) {
7511 PRINT_ERROR("Runtime error: %s", "Cast failed");
7512 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6986);
7515 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_n_atid
; /* _n_atid on <self:AAnnotation> */
7516 if (var_n_atid
== NULL
) {
7517 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7518 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6987);
7521 { /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on <var_n_atid:nullable AAtid> */
7522 if (unlikely(var_n_atid
== NULL
)) {
7523 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7524 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7527 var_n_atid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_atid:nullable AAtid> */
7528 RET_LABEL24
:(void)0;
7531 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotation> */
7533 if (var_n_opar
== NULL
) {
7534 var26
= 0; /* is null */
7536 var26
= 1; /* arg is null and recv is not */
7539 { /* Inline kernel#Object#!= (var_n_opar,var25) on <var_n_opar:nullable TOpar> */
7542 var30
= ((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)>*/;
7548 RET_LABEL28
:(void)0;
7554 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
7555 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
7556 RET_LABEL32
:(void)0;
7562 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
7563 var35
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
7564 if (unlikely(var35
== NULL
)) {
7565 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
7566 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039);
7570 RET_LABEL34
:(void)0;
7574 parser_nodes__ANodes__unsafe_add_all(var33
, var_n_args
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var33:ANodes[AExpr]>*/
7576 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotation> */
7578 if (var_n_cpar
== NULL
) {
7579 var37
= 0; /* is null */
7581 var37
= 1; /* arg is null and recv is not */
7584 { /* Inline kernel#Object#!= (var_n_cpar,var36) on <var_n_cpar:nullable TCpar> */
7587 var41
= ((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)>*/;
7593 RET_LABEL39
:(void)0;
7599 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
7600 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
7601 RET_LABEL43
:(void)0;
7606 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAnnotation> */
7608 if (var_n_annotations
== NULL
) {
7609 var45
= 0; /* is null */
7611 var45
= 1; /* arg is null and recv is not */
7614 { /* Inline kernel#Object#!= (var_n_annotations,var44) on <var_n_annotations:nullable AAnnotations> */
7617 var49
= ((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)>*/;
7623 RET_LABEL47
:(void)0;
7629 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7630 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7631 RET_LABEL51
:(void)0;
7638 /* method parser_prod#AAnnotation#init_aannotation for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
7639 void VIRTUAL_parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
7640 parser_prod__AAnnotation__init_aannotation(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
); /* Direct call parser_prod#AAnnotation#init_aannotation on <self:Object(AAnnotation)>*/
7643 /* method parser_prod#AAnnotation#replace_child for (self: AAnnotation, ANode, nullable ANode) */
7644 void parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
7645 val
* var_old_child
/* var old_child: ANode */;
7646 val
* var_new_child
/* var new_child: nullable ANode */;
7647 val
* var
/* : nullable ADoc */;
7648 short int var1
/* : Bool */;
7649 short int var2
/* : Bool */;
7650 val
* var_other
/* var other: nullable Object */;
7651 short int var4
/* : Bool */;
7652 short int var6
/* : Bool */;
7653 short int var7
/* : Bool */;
7656 const char* var_class_name
;
7657 val
* var8
/* : nullable TKwredef */;
7658 short int var9
/* : Bool */;
7659 short int var10
/* : Bool */;
7660 short int var12
/* : Bool */;
7661 short int var14
/* : Bool */;
7662 short int var15
/* : Bool */;
7665 const char* var_class_name18
;
7666 val
* var19
/* : nullable AVisibility */;
7667 short int var20
/* : Bool */;
7668 short int var21
/* : Bool */;
7669 short int var23
/* : Bool */;
7670 short int var25
/* : Bool */;
7671 short int var26
/* : Bool */;
7674 const char* var_class_name29
;
7675 val
* var30
/* : AAtid */;
7676 short int var31
/* : Bool */;
7677 short int var32
/* : Bool */;
7678 short int var34
/* : Bool */;
7679 short int var36
/* : Bool */;
7680 short int var37
/* : Bool */;
7683 const char* var_class_name40
;
7684 val
* var41
/* : nullable TOpar */;
7685 short int var42
/* : Bool */;
7686 short int var43
/* : Bool */;
7687 short int var45
/* : Bool */;
7688 short int var47
/* : Bool */;
7689 short int var48
/* : Bool */;
7692 const char* var_class_name51
;
7693 val
* var52
/* : ANodes[AExpr] */;
7694 val
* var54
/* : ANodes[AExpr] */;
7695 short int var55
/* : Bool */;
7696 val
* var56
/* : nullable TCpar */;
7697 short int var57
/* : Bool */;
7698 short int var58
/* : Bool */;
7699 short int var60
/* : Bool */;
7700 short int var62
/* : Bool */;
7701 short int var63
/* : Bool */;
7704 const char* var_class_name66
;
7705 val
* var67
/* : nullable AAnnotations */;
7706 short int var68
/* : Bool */;
7707 short int var69
/* : Bool */;
7708 short int var71
/* : Bool */;
7709 short int var73
/* : Bool */;
7710 short int var74
/* : Bool */;
7713 const char* var_class_name77
;
7716 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
; /* _n_doc on <self:AAnnotation> */
7718 var1
= 0; /* <var_old_child:ANode> cannot be null */
7720 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
7721 var_other
= var_old_child
;
7723 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
7724 var6
= var
== var_other
;
7737 /* <var_new_child:nullable ANode> isa nullable ADoc */
7738 cltype
= type_nullable_parser_nodes__ADoc
.color
;
7739 idtype
= type_nullable_parser_nodes__ADoc
.id
;
7740 if(var_new_child
== NULL
) {
7743 if(cltype
>= var_new_child
->type
->table_size
) {
7746 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7749 if (unlikely(!var7
)) {
7750 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7751 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
7752 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7000);
7756 parser_prod__AAnnotation__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_doc= on <self:AAnnotation>*/
7761 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotation> */
7763 var9
= 0; /* <var_old_child:ANode> cannot be null */
7765 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
7766 var_other
= var_old_child
;
7768 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
7769 var14
= var8
== var_other
;
7772 RET_LABEL13
:(void)0;
7777 RET_LABEL11
:(void)0;
7782 /* <var_new_child:nullable ANode> isa nullable TKwredef */
7783 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
7784 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
7785 if(var_new_child
== NULL
) {
7788 if(cltype16
>= var_new_child
->type
->table_size
) {
7791 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7794 if (unlikely(!var15
)) {
7795 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7796 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
7797 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7004);
7801 parser_prod__AAnnotation__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_kwredef= on <self:AAnnotation>*/
7806 var19
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
; /* _n_visibility on <self:AAnnotation> */
7807 if (var19
== NULL
) {
7808 var20
= 0; /* <var_old_child:ANode> cannot be null */
7810 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
7811 var_other
= var_old_child
;
7813 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
7814 var25
= var19
== var_other
;
7817 RET_LABEL24
:(void)0;
7822 RET_LABEL22
:(void)0;
7827 /* <var_new_child:nullable ANode> isa nullable AVisibility */
7828 cltype27
= type_nullable_parser_nodes__AVisibility
.color
;
7829 idtype28
= type_nullable_parser_nodes__AVisibility
.id
;
7830 if(var_new_child
== NULL
) {
7833 if(cltype27
>= var_new_child
->type
->table_size
) {
7836 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
7839 if (unlikely(!var26
)) {
7840 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7841 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29
);
7842 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7008);
7846 parser_prod__AAnnotation__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_visibility= on <self:AAnnotation>*/
7851 var30
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
7852 if (unlikely(var30
== NULL
)) {
7853 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
7854 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7011);
7858 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AAtid> */
7859 var_other
= var_old_child
;
7861 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AAtid> */
7862 var36
= var30
== var_other
;
7865 RET_LABEL35
:(void)0;
7870 RET_LABEL33
:(void)0;
7875 /* <var_new_child:nullable ANode> isa AAtid */
7876 cltype38
= type_parser_nodes__AAtid
.color
;
7877 idtype39
= type_parser_nodes__AAtid
.id
;
7878 if(var_new_child
== NULL
) {
7881 if(cltype38
>= var_new_child
->type
->table_size
) {
7884 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
7887 if (unlikely(!var37
)) {
7888 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7889 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name40
);
7890 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7012);
7894 parser_prod__AAnnotation__n_atid_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_atid= on <self:AAnnotation>*/
7899 var41
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
7900 if (var41
== NULL
) {
7901 var42
= 0; /* <var_old_child:ANode> cannot be null */
7903 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TOpar> */
7904 var_other
= var_old_child
;
7906 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TOpar(TOpar)> */
7907 var47
= var41
== var_other
;
7910 RET_LABEL46
:(void)0;
7915 RET_LABEL44
:(void)0;
7920 /* <var_new_child:nullable ANode> isa nullable TOpar */
7921 cltype49
= type_nullable_parser_nodes__TOpar
.color
;
7922 idtype50
= type_nullable_parser_nodes__TOpar
.id
;
7923 if(var_new_child
== NULL
) {
7926 if(cltype49
>= var_new_child
->type
->table_size
) {
7929 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
7932 if (unlikely(!var48
)) {
7933 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7934 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name51
);
7935 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7016);
7939 parser_prod__AAnnotation__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_opar= on <self:AAnnotation>*/
7945 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
7946 var54
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
7947 if (unlikely(var54
== NULL
)) {
7948 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
7949 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039);
7953 RET_LABEL53
:(void)0;
7957 var55
= parser_nodes__ANodes__replace_child(var52
, var_old_child
, var_new_child
);
7963 var56
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
7964 if (var56
== NULL
) {
7965 var57
= 0; /* <var_old_child:ANode> cannot be null */
7967 { /* Inline kernel#Object#== (var56,var_old_child) on <var56:nullable TCpar> */
7968 var_other
= var_old_child
;
7970 { /* Inline kernel#Object#is_same_instance (var56,var_other) on <var56:nullable TCpar(TCpar)> */
7971 var62
= var56
== var_other
;
7974 RET_LABEL61
:(void)0;
7979 RET_LABEL59
:(void)0;
7984 /* <var_new_child:nullable ANode> isa nullable TCpar */
7985 cltype64
= type_nullable_parser_nodes__TCpar
.color
;
7986 idtype65
= type_nullable_parser_nodes__TCpar
.id
;
7987 if(var_new_child
== NULL
) {
7990 if(cltype64
>= var_new_child
->type
->table_size
) {
7993 var63
= var_new_child
->type
->type_table
[cltype64
] == idtype65
;
7996 if (unlikely(!var63
)) {
7997 var_class_name66
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7998 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name66
);
7999 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7021);
8003 parser_prod__AAnnotation__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_cpar= on <self:AAnnotation>*/
8008 var67
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
8009 if (var67
== NULL
) {
8010 var68
= 0; /* <var_old_child:ANode> cannot be null */
8012 { /* Inline kernel#Object#== (var67,var_old_child) on <var67:nullable AAnnotations> */
8013 var_other
= var_old_child
;
8015 { /* Inline kernel#Object#is_same_instance (var67,var_other) on <var67:nullable AAnnotations(AAnnotations)> */
8016 var73
= var67
== var_other
;
8019 RET_LABEL72
:(void)0;
8024 RET_LABEL70
:(void)0;
8029 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8030 cltype75
= type_nullable_parser_nodes__AAnnotations
.color
;
8031 idtype76
= type_nullable_parser_nodes__AAnnotations
.id
;
8032 if(var_new_child
== NULL
) {
8035 if(cltype75
>= var_new_child
->type
->table_size
) {
8038 var74
= var_new_child
->type
->type_table
[cltype75
] == idtype76
;
8041 if (unlikely(!var74
)) {
8042 var_class_name77
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8043 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name77
);
8044 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7025);
8048 parser_prod__AAnnotation__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_annotations= on <self:AAnnotation>*/
8055 /* method parser_prod#AAnnotation#replace_child for (self: Object, ANode, nullable ANode) */
8056 void VIRTUAL_parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
8057 parser_prod__AAnnotation__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAnnotation#replace_child on <self:Object(AAnnotation)>*/
8060 /* method parser_prod#AAnnotation#n_doc= for (self: AAnnotation, nullable ADoc) */
8061 void parser_prod__AAnnotation__n_doc_61d(val
* self
, val
* p0
) {
8062 val
* var_node
/* var node: nullable ADoc */;
8063 val
* var
/* : null */;
8064 short int var1
/* : Bool */;
8065 short int var2
/* : Bool */;
8066 val
* var_other
/* var other: nullable Object */;
8067 short int var4
/* : Bool */;
8068 short int var5
/* : Bool */;
8069 short int var6
/* : Bool */;
8071 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
= var_node
; /* _n_doc on <self:AAnnotation> */
8073 if (var_node
== NULL
) {
8074 var1
= 0; /* is null */
8076 var1
= 1; /* arg is null and recv is not */
8079 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
8082 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
8094 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
8095 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
8103 /* method parser_prod#AAnnotation#n_doc= for (self: Object, nullable ADoc) */
8104 void VIRTUAL_parser_prod__AAnnotation__n_doc_61d(val
* self
, val
* p0
) {
8105 parser_prod__AAnnotation__n_doc_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_doc= on <self:Object(AAnnotation)>*/
8108 /* method parser_prod#AAnnotation#n_kwredef= for (self: AAnnotation, nullable TKwredef) */
8109 void parser_prod__AAnnotation__n_kwredef_61d(val
* self
, val
* p0
) {
8110 val
* var_node
/* var node: nullable TKwredef */;
8111 val
* var
/* : null */;
8112 short int var1
/* : Bool */;
8113 short int var2
/* : Bool */;
8114 val
* var_other
/* var other: nullable Object */;
8115 short int var4
/* : Bool */;
8116 short int var5
/* : Bool */;
8117 short int var6
/* : Bool */;
8119 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAnnotation> */
8121 if (var_node
== NULL
) {
8122 var1
= 0; /* is null */
8124 var1
= 1; /* arg is null and recv is not */
8127 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
8130 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
8142 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
8143 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
8151 /* method parser_prod#AAnnotation#n_kwredef= for (self: Object, nullable TKwredef) */
8152 void VIRTUAL_parser_prod__AAnnotation__n_kwredef_61d(val
* self
, val
* p0
) {
8153 parser_prod__AAnnotation__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_kwredef= on <self:Object(AAnnotation)>*/
8156 /* method parser_prod#AAnnotation#n_visibility= for (self: AAnnotation, nullable AVisibility) */
8157 void parser_prod__AAnnotation__n_visibility_61d(val
* self
, val
* p0
) {
8158 val
* var_node
/* var node: nullable AVisibility */;
8159 val
* var
/* : null */;
8160 short int var1
/* : Bool */;
8161 short int var2
/* : Bool */;
8162 val
* var_other
/* var other: nullable Object */;
8163 short int var4
/* : Bool */;
8164 short int var5
/* : Bool */;
8165 short int var6
/* : Bool */;
8167 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAnnotation> */
8169 if (var_node
== NULL
) {
8170 var1
= 0; /* is null */
8172 var1
= 1; /* arg is null and recv is not */
8175 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AVisibility> */
8178 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AVisibility(AVisibility)>*/;
8190 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility(AVisibility)> */
8191 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility(AVisibility)> */
8199 /* method parser_prod#AAnnotation#n_visibility= for (self: Object, nullable AVisibility) */
8200 void VIRTUAL_parser_prod__AAnnotation__n_visibility_61d(val
* self
, val
* p0
) {
8201 parser_prod__AAnnotation__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_visibility= on <self:Object(AAnnotation)>*/
8204 /* method parser_prod#AAnnotation#n_atid= for (self: AAnnotation, AAtid) */
8205 void parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
8206 val
* var_node
/* var node: AAtid */;
8208 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_node
; /* _n_atid on <self:AAnnotation> */
8210 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAtid> */
8211 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAtid> */
8217 /* method parser_prod#AAnnotation#n_atid= for (self: Object, AAtid) */
8218 void VIRTUAL_parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
8219 parser_prod__AAnnotation__n_atid_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_atid= on <self:Object(AAnnotation)>*/
8222 /* method parser_prod#AAnnotation#n_opar= for (self: AAnnotation, nullable TOpar) */
8223 void parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
8224 val
* var_node
/* var node: nullable TOpar */;
8225 val
* var
/* : null */;
8226 short int var1
/* : Bool */;
8227 short int var2
/* : Bool */;
8228 val
* var_other
/* var other: nullable Object */;
8229 short int var4
/* : Bool */;
8230 short int var5
/* : Bool */;
8231 short int var6
/* : Bool */;
8233 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotation> */
8235 if (var_node
== NULL
) {
8236 var1
= 0; /* is null */
8238 var1
= 1; /* arg is null and recv is not */
8241 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
8244 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
8256 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
8257 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
8265 /* method parser_prod#AAnnotation#n_opar= for (self: Object, nullable TOpar) */
8266 void VIRTUAL_parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
8267 parser_prod__AAnnotation__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_opar= on <self:Object(AAnnotation)>*/
8270 /* method parser_prod#AAnnotation#n_cpar= for (self: AAnnotation, nullable TCpar) */
8271 void parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
8272 val
* var_node
/* var node: nullable TCpar */;
8273 val
* var
/* : null */;
8274 short int var1
/* : Bool */;
8275 short int var2
/* : Bool */;
8276 val
* var_other
/* var other: nullable Object */;
8277 short int var4
/* : Bool */;
8278 short int var5
/* : Bool */;
8279 short int var6
/* : Bool */;
8281 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotation> */
8283 if (var_node
== NULL
) {
8284 var1
= 0; /* is null */
8286 var1
= 1; /* arg is null and recv is not */
8289 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
8292 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
8304 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
8305 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
8313 /* method parser_prod#AAnnotation#n_cpar= for (self: Object, nullable TCpar) */
8314 void VIRTUAL_parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
8315 parser_prod__AAnnotation__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_cpar= on <self:Object(AAnnotation)>*/
8318 /* method parser_prod#AAnnotation#n_annotations= for (self: AAnnotation, nullable AAnnotations) */
8319 void parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
8320 val
* var_node
/* var node: nullable AAnnotations */;
8321 val
* var
/* : null */;
8322 short int var1
/* : Bool */;
8323 short int var2
/* : Bool */;
8324 val
* var_other
/* var other: nullable Object */;
8325 short int var4
/* : Bool */;
8326 short int var5
/* : Bool */;
8327 short int var6
/* : Bool */;
8329 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAnnotation> */
8331 if (var_node
== NULL
) {
8332 var1
= 0; /* is null */
8334 var1
= 1; /* arg is null and recv is not */
8337 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
8340 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
8352 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8353 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8361 /* method parser_prod#AAnnotation#n_annotations= for (self: Object, nullable AAnnotations) */
8362 void VIRTUAL_parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
8363 parser_prod__AAnnotation__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_annotations= on <self:Object(AAnnotation)>*/
8366 /* method parser_prod#AAnnotation#visit_all for (self: AAnnotation, Visitor) */
8367 void parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
8368 val
* var_v
/* var v: Visitor */;
8369 val
* var
/* : nullable ADoc */;
8370 val
* var1
/* : nullable TKwredef */;
8371 val
* var2
/* : nullable AVisibility */;
8372 val
* var3
/* : AAtid */;
8373 val
* var4
/* : nullable TOpar */;
8374 val
* var5
/* : ANodes[AExpr] */;
8375 val
* var7
/* : ANodes[AExpr] */;
8376 val
* var8
/* : nullable TCpar */;
8377 val
* var9
/* : nullable AAnnotations */;
8379 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
; /* _n_doc on <self:AAnnotation> */
8381 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8383 var1
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotation> */
8385 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8387 var2
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
; /* _n_visibility on <self:AAnnotation> */
8389 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8391 var3
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
8392 if (unlikely(var3
== NULL
)) {
8393 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
8394 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7072);
8398 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8400 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
8402 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8405 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
8406 var7
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
8407 if (unlikely(var7
== NULL
)) {
8408 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
8409 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039);
8417 parser_nodes__ANodes__visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AExpr]>*/
8419 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
8421 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8423 var9
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
8425 parser_nodes__Visitor__enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8429 /* method parser_prod#AAnnotation#visit_all for (self: Object, Visitor) */
8430 void VIRTUAL_parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
8431 parser_prod__AAnnotation__visit_all(self
, p0
); /* Direct call parser_prod#AAnnotation#visit_all on <self:Object(AAnnotation)>*/
8434 /* method parser_prod#AIdAtid#init_aidatid for (self: AIdAtid, nullable TId) */
8435 void parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
8436 val
* var_n_id
/* var n_id: nullable TId */;
8438 if (unlikely(var_n_id
== NULL
)) {
8439 PRINT_ERROR("Runtime error: %s", "Cast failed");
8440 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7084);
8443 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdAtid> */
8444 if (var_n_id
== NULL
) {
8445 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8446 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7085);
8449 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
8450 if (unlikely(var_n_id
== NULL
)) {
8451 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8452 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8455 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
8461 /* method parser_prod#AIdAtid#init_aidatid for (self: Object, nullable TId) */
8462 void VIRTUAL_parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
8463 parser_prod__AIdAtid__init_aidatid(self
, p0
); /* Direct call parser_prod#AIdAtid#init_aidatid on <self:Object(AIdAtid)>*/
8466 /* method parser_prod#AIdAtid#replace_child for (self: AIdAtid, ANode, nullable ANode) */
8467 void parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8468 val
* var_old_child
/* var old_child: ANode */;
8469 val
* var_new_child
/* var new_child: nullable ANode */;
8470 val
* var
/* : Token */;
8471 short int var1
/* : Bool */;
8472 short int var2
/* : Bool */;
8473 val
* var_other
/* var other: nullable Object */;
8474 short int var4
/* : Bool */;
8475 short int var6
/* : Bool */;
8476 short int var7
/* : Bool */;
8479 const char* var_class_name
;
8482 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
8483 if (unlikely(var
== NULL
)) {
8484 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8485 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7090);
8489 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8490 var_other
= var_old_child
;
8492 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8493 var6
= var
== var_other
;
8506 /* <var_new_child:nullable ANode> isa TId */
8507 cltype
= type_parser_nodes__TId
.color
;
8508 idtype
= type_parser_nodes__TId
.id
;
8509 if(var_new_child
== NULL
) {
8512 if(cltype
>= var_new_child
->type
->table_size
) {
8515 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8518 if (unlikely(!var7
)) {
8519 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8520 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
8521 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7091);
8525 parser_prod__AIdAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIdAtid#n_id= on <self:AIdAtid>*/
8532 /* method parser_prod#AIdAtid#replace_child for (self: Object, ANode, nullable ANode) */
8533 void VIRTUAL_parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8534 parser_prod__AIdAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AIdAtid#replace_child on <self:Object(AIdAtid)>*/
8537 /* method parser_prod#AIdAtid#n_id= for (self: AIdAtid, Token) */
8538 void parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
8539 val
* var_node
/* var node: Token */;
8541 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AIdAtid> */
8543 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8544 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8550 /* method parser_prod#AIdAtid#n_id= for (self: Object, Token) */
8551 void VIRTUAL_parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
8552 parser_prod__AIdAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AIdAtid#n_id= on <self:Object(AIdAtid)>*/
8555 /* method parser_prod#AIdAtid#visit_all for (self: AIdAtid, Visitor) */
8556 void parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
8557 val
* var_v
/* var v: Visitor */;
8558 val
* var
/* : Token */;
8560 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
8561 if (unlikely(var
== NULL
)) {
8562 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8563 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7105);
8567 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8571 /* method parser_prod#AIdAtid#visit_all for (self: Object, Visitor) */
8572 void VIRTUAL_parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
8573 parser_prod__AIdAtid__visit_all(self
, p0
); /* Direct call parser_prod#AIdAtid#visit_all on <self:Object(AIdAtid)>*/
8576 /* method parser_prod#AKwexternAtid#init_akwexternatid for (self: AKwexternAtid, nullable TKwextern) */
8577 void parser_prod__AKwexternAtid__init_akwexternatid(val
* self
, val
* p0
) {
8578 val
* var_n_id
/* var n_id: nullable TKwextern */;
8580 if (unlikely(var_n_id
== NULL
)) {
8581 PRINT_ERROR("Runtime error: %s", "Cast failed");
8582 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7113);
8585 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwexternAtid> */
8586 if (var_n_id
== NULL
) {
8587 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8588 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7114);
8591 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TKwextern> */
8592 if (unlikely(var_n_id
== NULL
)) {
8593 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8594 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8597 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TKwextern> */
8603 /* method parser_prod#AKwexternAtid#init_akwexternatid for (self: Object, nullable TKwextern) */
8604 void VIRTUAL_parser_prod__AKwexternAtid__init_akwexternatid(val
* self
, val
* p0
) {
8605 parser_prod__AKwexternAtid__init_akwexternatid(self
, p0
); /* Direct call parser_prod#AKwexternAtid#init_akwexternatid on <self:Object(AKwexternAtid)>*/
8608 /* method parser_prod#AKwexternAtid#replace_child for (self: AKwexternAtid, ANode, nullable ANode) */
8609 void parser_prod__AKwexternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8610 val
* var_old_child
/* var old_child: ANode */;
8611 val
* var_new_child
/* var new_child: nullable ANode */;
8612 val
* var
/* : Token */;
8613 short int var1
/* : Bool */;
8614 short int var2
/* : Bool */;
8615 val
* var_other
/* var other: nullable Object */;
8616 short int var4
/* : Bool */;
8617 short int var6
/* : Bool */;
8618 short int var7
/* : Bool */;
8621 const char* var_class_name
;
8624 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwexternAtid> */
8625 if (unlikely(var
== NULL
)) {
8626 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8627 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7119);
8631 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8632 var_other
= var_old_child
;
8634 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8635 var6
= var
== var_other
;
8648 /* <var_new_child:nullable ANode> isa TKwextern */
8649 cltype
= type_parser_nodes__TKwextern
.color
;
8650 idtype
= type_parser_nodes__TKwextern
.id
;
8651 if(var_new_child
== NULL
) {
8654 if(cltype
>= var_new_child
->type
->table_size
) {
8657 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8660 if (unlikely(!var7
)) {
8661 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8662 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwextern", var_class_name
);
8663 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7120);
8667 parser_prod__AKwexternAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AKwexternAtid#n_id= on <self:AKwexternAtid>*/
8674 /* method parser_prod#AKwexternAtid#replace_child for (self: Object, ANode, nullable ANode) */
8675 void VIRTUAL_parser_prod__AKwexternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8676 parser_prod__AKwexternAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AKwexternAtid#replace_child on <self:Object(AKwexternAtid)>*/
8679 /* method parser_prod#AKwexternAtid#n_id= for (self: AKwexternAtid, Token) */
8680 void parser_prod__AKwexternAtid__n_id_61d(val
* self
, val
* p0
) {
8681 val
* var_node
/* var node: Token */;
8683 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwexternAtid> */
8685 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8686 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8692 /* method parser_prod#AKwexternAtid#n_id= for (self: Object, Token) */
8693 void VIRTUAL_parser_prod__AKwexternAtid__n_id_61d(val
* self
, val
* p0
) {
8694 parser_prod__AKwexternAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AKwexternAtid#n_id= on <self:Object(AKwexternAtid)>*/
8697 /* method parser_prod#AKwexternAtid#visit_all for (self: AKwexternAtid, Visitor) */
8698 void parser_prod__AKwexternAtid__visit_all(val
* self
, val
* p0
) {
8699 val
* var_v
/* var v: Visitor */;
8700 val
* var
/* : Token */;
8702 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwexternAtid> */
8703 if (unlikely(var
== NULL
)) {
8704 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8705 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7134);
8709 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8713 /* method parser_prod#AKwexternAtid#visit_all for (self: Object, Visitor) */
8714 void VIRTUAL_parser_prod__AKwexternAtid__visit_all(val
* self
, val
* p0
) {
8715 parser_prod__AKwexternAtid__visit_all(self
, p0
); /* Direct call parser_prod#AKwexternAtid#visit_all on <self:Object(AKwexternAtid)>*/
8718 /* method parser_prod#AKwabstractAtid#init_akwabstractatid for (self: AKwabstractAtid, nullable TKwabstract) */
8719 void parser_prod__AKwabstractAtid__init_akwabstractatid(val
* self
, val
* p0
) {
8720 val
* var_n_id
/* var n_id: nullable TKwabstract */;
8722 if (unlikely(var_n_id
== NULL
)) {
8723 PRINT_ERROR("Runtime error: %s", "Cast failed");
8724 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7142);
8727 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwabstractAtid> */
8728 if (var_n_id
== NULL
) {
8729 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8730 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7143);
8733 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TKwabstract> */
8734 if (unlikely(var_n_id
== NULL
)) {
8735 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8736 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8739 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TKwabstract> */
8745 /* method parser_prod#AKwabstractAtid#init_akwabstractatid for (self: Object, nullable TKwabstract) */
8746 void VIRTUAL_parser_prod__AKwabstractAtid__init_akwabstractatid(val
* self
, val
* p0
) {
8747 parser_prod__AKwabstractAtid__init_akwabstractatid(self
, p0
); /* Direct call parser_prod#AKwabstractAtid#init_akwabstractatid on <self:Object(AKwabstractAtid)>*/
8750 /* method parser_prod#AKwabstractAtid#replace_child for (self: AKwabstractAtid, ANode, nullable ANode) */
8751 void parser_prod__AKwabstractAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8752 val
* var_old_child
/* var old_child: ANode */;
8753 val
* var_new_child
/* var new_child: nullable ANode */;
8754 val
* var
/* : Token */;
8755 short int var1
/* : Bool */;
8756 short int var2
/* : Bool */;
8757 val
* var_other
/* var other: nullable Object */;
8758 short int var4
/* : Bool */;
8759 short int var6
/* : Bool */;
8760 short int var7
/* : Bool */;
8763 const char* var_class_name
;
8766 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwabstractAtid> */
8767 if (unlikely(var
== NULL
)) {
8768 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8769 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7148);
8773 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
8774 var_other
= var_old_child
;
8776 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
8777 var6
= var
== var_other
;
8790 /* <var_new_child:nullable ANode> isa TKwabstract */
8791 cltype
= type_parser_nodes__TKwabstract
.color
;
8792 idtype
= type_parser_nodes__TKwabstract
.id
;
8793 if(var_new_child
== NULL
) {
8796 if(cltype
>= var_new_child
->type
->table_size
) {
8799 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8802 if (unlikely(!var7
)) {
8803 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8804 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabstract", var_class_name
);
8805 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7149);
8809 parser_prod__AKwabstractAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AKwabstractAtid#n_id= on <self:AKwabstractAtid>*/
8816 /* method parser_prod#AKwabstractAtid#replace_child for (self: Object, ANode, nullable ANode) */
8817 void VIRTUAL_parser_prod__AKwabstractAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
8818 parser_prod__AKwabstractAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AKwabstractAtid#replace_child on <self:Object(AKwabstractAtid)>*/
8821 /* method parser_prod#AKwabstractAtid#n_id= for (self: AKwabstractAtid, Token) */
8822 void parser_prod__AKwabstractAtid__n_id_61d(val
* self
, val
* p0
) {
8823 val
* var_node
/* var node: Token */;
8825 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwabstractAtid> */
8827 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
8828 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
8834 /* method parser_prod#AKwabstractAtid#n_id= for (self: Object, Token) */
8835 void VIRTUAL_parser_prod__AKwabstractAtid__n_id_61d(val
* self
, val
* p0
) {
8836 parser_prod__AKwabstractAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AKwabstractAtid#n_id= on <self:Object(AKwabstractAtid)>*/
8839 /* method parser_prod#AKwabstractAtid#visit_all for (self: AKwabstractAtid, Visitor) */
8840 void parser_prod__AKwabstractAtid__visit_all(val
* self
, val
* p0
) {
8841 val
* var_v
/* var v: Visitor */;
8842 val
* var
/* : Token */;
8844 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwabstractAtid> */
8845 if (unlikely(var
== NULL
)) {
8846 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8847 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7163);
8851 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8855 /* method parser_prod#AKwabstractAtid#visit_all for (self: Object, Visitor) */
8856 void VIRTUAL_parser_prod__AKwabstractAtid__visit_all(val
* self
, val
* p0
) {
8857 parser_prod__AKwabstractAtid__visit_all(self
, p0
); /* Direct call parser_prod#AKwabstractAtid#visit_all on <self:Object(AKwabstractAtid)>*/
8860 /* method parser_prod#Start#replace_child for (self: Start, ANode, nullable ANode) */
8861 void parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
8862 val
* var_old_child
/* var old_child: ANode */;
8863 val
* var_new_child
/* var new_child: nullable ANode */;
8864 val
* var
/* : nullable AModule */;
8865 short int var1
/* : Bool */;
8866 short int var2
/* : Bool */;
8867 val
* var_other
/* var other: nullable Object */;
8868 short int var4
/* : Bool */;
8869 short int var6
/* : Bool */;
8870 val
* var7
/* : null */;
8871 short int var8
/* : Bool */;
8872 short int var9
/* : Bool */;
8873 short int var11
/* : Bool */;
8874 short int var13
/* : Bool */;
8875 short int var15
/* : Bool */;
8878 val
* var16
/* : null */;
8881 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
8883 var1
= 0; /* <var_old_child:ANode> cannot be null */
8885 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AModule> */
8886 var_other
= var_old_child
;
8888 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AModule(AModule)> */
8889 var6
= var
== var_other
;
8903 if (var_new_child
== NULL
) {
8904 var8
= 1; /* is null */
8906 var8
= 0; /* arg is null but recv is not */
8909 { /* Inline kernel#Object#== (var_new_child,var7) on <var_new_child:nullable ANode> */
8912 { /* Inline kernel#Object#is_same_instance (var_new_child,var_other) on <var_new_child:nullable ANode(ANode)> */
8913 var13
= var_new_child
== var_other
;
8916 RET_LABEL12
:(void)0;
8921 RET_LABEL10
:(void)0;
8928 { /* Inline parser_nodes#ANode#parent= (var_new_child,self) on <var_new_child:nullable ANode(ANode)> */
8929 var_new_child
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_new_child:nullable ANode(ANode)> */
8930 RET_LABEL14
:(void)0;
8933 /* <var_new_child:nullable ANode(ANode)> isa AModule */
8934 cltype
= type_parser_nodes__AModule
.color
;
8935 idtype
= type_parser_nodes__AModule
.id
;
8936 if(cltype
>= var_new_child
->type
->table_size
) {
8939 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8941 if (unlikely(!var15
)) {
8942 PRINT_ERROR("Runtime error: %s", "Assert failed");
8943 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7203);
8946 self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
= var_new_child
; /* _n_base on <self:Start> */
8950 { /* Inline parser_nodes#ANode#parent= (var_old_child,var16) on <var_old_child:ANode> */
8951 var_old_child
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= var16
; /* _parent on <var_old_child:ANode> */
8952 RET_LABEL17
:(void)0;
8960 /* method parser_prod#Start#replace_child for (self: Object, ANode, nullable ANode) */
8961 void VIRTUAL_parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
8962 parser_prod__Start__replace_child(self
, p0
, p1
); /* Direct call parser_prod#Start#replace_child on <self:Object(Start)>*/
8965 /* method parser_prod#Start#visit_all for (self: Start, Visitor) */
8966 void parser_prod__Start__visit_all(val
* self
, val
* p0
) {
8967 val
* var_v
/* var v: Visitor */;
8968 val
* var
/* : nullable AModule */;
8969 val
* var1
/* : null */;
8970 short int var2
/* : Bool */;
8971 short int var3
/* : Bool */;
8972 val
* var_other
/* var other: nullable Object */;
8973 short int var5
/* : Bool */;
8974 short int var6
/* : Bool */;
8975 short int var7
/* : Bool */;
8976 val
* var8
/* : nullable AModule */;
8977 val
* var9
/* : EOF */;
8979 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
8982 var2
= 0; /* is null */
8984 var2
= 1; /* arg is null and recv is not */
8987 { /* Inline kernel#Object#!= (var,var1) on <var:nullable AModule> */
8990 var6
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_other
) /* == on <var:nullable AModule(AModule)>*/;
9001 var8
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
9002 if (unlikely(var8
== NULL
)) {
9003 PRINT_ERROR("Runtime error: %s", "Cast failed");
9004 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7214);
9008 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9012 var9
= self
->attrs
[COLOR_parser_nodes__Start___n_eof
].val
; /* _n_eof on <self:Start> */
9013 if (unlikely(var9
== NULL
)) {
9014 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_eof");
9015 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7216);
9019 parser_nodes__Visitor__enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9023 /* method parser_prod#Start#visit_all for (self: Object, Visitor) */
9024 void VIRTUAL_parser_prod__Start__visit_all(val
* self
, val
* p0
) {
9025 parser_prod__Start__visit_all(self
, p0
); /* Direct call parser_prod#Start#visit_all on <self:Object(Start)>*/