1 #include "nit__parser_prod.sep.0.h"
2 /* method parser_prod#ASuperPropdef#n_doc= for (self: ASuperPropdef, nullable ADoc) */
3 void nit__parser_prod___ASuperPropdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
4 val
* var_node
/* var node: nullable ADoc */;
5 short int var
/* : Bool */;
6 short int var1
/* : Bool */;
7 val
* var_other
/* var other: nullable Object */;
8 short int var3
/* : Bool */;
9 short int var4
/* : Bool */;
11 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:ASuperPropdef> */
12 if (var_node
== NULL
) {
13 var
= 0; /* is null */
15 var
= 1; /* arg is null and recv is not */
18 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
19 var_other
= ((val
*)NULL
);
21 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
32 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
33 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
41 /* method parser_prod#ASuperPropdef#n_kwredef= for (self: ASuperPropdef, nullable TKwredef) */
42 void nit__parser_prod___ASuperPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
43 val
* var_node
/* var node: nullable TKwredef */;
44 short int var
/* : Bool */;
45 short int var1
/* : Bool */;
46 val
* var_other
/* var other: nullable Object */;
47 short int var3
/* : Bool */;
48 short int var4
/* : Bool */;
50 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ASuperPropdef> */
51 if (var_node
== NULL
) {
52 var
= 0; /* is null */
54 var
= 1; /* arg is null and recv is not */
57 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
58 var_other
= ((val
*)NULL
);
60 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
71 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
72 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
80 /* method parser_prod#ASuperPropdef#n_visibility= for (self: ASuperPropdef, nullable AVisibility) */
81 void nit__parser_prod___ASuperPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
82 val
* var_node
/* var node: nullable AVisibility */;
84 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:ASuperPropdef> */
85 if (var_node
== NULL
) {
86 PRINT_ERROR("Runtime error: %s", "Receiver is null");
87 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1374);
90 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
91 if (unlikely(var_node
== NULL
)) {
92 PRINT_ERROR("Runtime error: %s", "Receiver is null");
93 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
96 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
102 /* method parser_prod#ASuperPropdef#n_kwsuper= for (self: ASuperPropdef, TKwsuper) */
103 void nit__parser_prod___ASuperPropdef___n_kwsuper_61d(val
* self
, val
* p0
) {
104 val
* var_node
/* var node: TKwsuper */;
106 self
->attrs
[COLOR_nit__parser_nodes__ASuperPropdef___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperPropdef> */
108 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
109 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
115 /* method parser_prod#ASuperPropdef#n_type= for (self: ASuperPropdef, AType) */
116 void nit__parser_prod___ASuperPropdef___n_type_61d(val
* self
, val
* p0
) {
117 val
* var_node
/* var node: AType */;
119 self
->attrs
[COLOR_nit__parser_nodes__ASuperPropdef___n_type
].val
= var_node
; /* _n_type on <self:ASuperPropdef> */
121 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
122 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
128 /* method parser_prod#ASuperPropdef#n_annotations= for (self: ASuperPropdef, nullable AAnnotations) */
129 void nit__parser_prod___ASuperPropdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
130 val
* var_node
/* var node: nullable AAnnotations */;
131 short int var
/* : Bool */;
132 short int var1
/* : Bool */;
133 val
* var_other
/* var other: nullable Object */;
134 short int var3
/* : Bool */;
135 short int var4
/* : Bool */;
137 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperPropdef> */
138 if (var_node
== NULL
) {
139 var
= 0; /* is null */
141 var
= 1; /* arg is null and recv is not */
144 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
145 var_other
= ((val
*)NULL
);
147 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
158 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
159 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
167 /* method parser_prod#ASuperPropdef#visit_all for (self: ASuperPropdef, Visitor) */
168 void nit__parser_prod___ASuperPropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
169 val
* var_v
/* var v: Visitor */;
170 val
* var
/* : nullable ADoc */;
171 val
* var1
/* : nullable TKwredef */;
172 val
* var2
/* : nullable AVisibility */;
173 val
* var3
/* : TKwsuper */;
174 val
* var4
/* : AType */;
175 val
* var5
/* : nullable AAnnotations */;
177 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ASuperPropdef> */
179 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
181 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ASuperPropdef> */
183 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
185 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ASuperPropdef> */
187 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
189 var3
= self
->attrs
[COLOR_nit__parser_nodes__ASuperPropdef___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperPropdef> */
190 if (unlikely(var3
== NULL
)) {
191 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
192 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1398);
196 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
198 var4
= self
->attrs
[COLOR_nit__parser_nodes__ASuperPropdef___n_type
].val
; /* _n_type on <self:ASuperPropdef> */
199 if (unlikely(var4
== NULL
)) {
200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
201 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1399);
205 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
207 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperPropdef> */
209 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
213 /* method parser_prod#AAnnotPropdef#init_aannotpropdef for (self: AAnnotPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
214 void nit__parser_prod___AAnnotPropdef___init_aannotpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
215 val
* var_n_doc
/* var n_doc: nullable ADoc */;
216 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
217 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
218 val
* var_n_atid
/* var n_atid: nullable AAtid */;
219 val
* var_n_opar
/* var n_opar: nullable TOpar */;
220 val
* var_n_args
/* var n_args: Collection[Object] */;
221 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
222 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
223 short int var
/* : Bool */;
224 short int var2
/* : Bool */;
225 val
* var_other
/* var other: nullable Object */;
226 short int var4
/* : Bool */;
227 short int var5
/* : Bool */;
228 short int var7
/* : Bool */;
229 short int var8
/* : Bool */;
230 short int var10
/* : Bool */;
231 short int var11
/* : Bool */;
232 short int var13
/* : Bool */;
233 short int var14
/* : Bool */;
234 short int var16
/* : Bool */;
235 short int var17
/* : Bool */;
236 short int var20
/* : Bool */;
237 short int var21
/* : Bool */;
238 short int var23
/* : Bool */;
239 short int var24
/* : Bool */;
240 val
* var26
/* : ANodes[AExpr] */;
241 val
* var28
/* : ANodes[AExpr] */;
242 short int var29
/* : Bool */;
243 short int var30
/* : Bool */;
244 short int var32
/* : Bool */;
245 short int var33
/* : Bool */;
246 short int var35
/* : Bool */;
247 short int var36
/* : Bool */;
248 short int var38
/* : Bool */;
249 short int var39
/* : Bool */;
251 { /* Inline kernel#Object#init (self) on <self:AAnnotPropdef> */
257 var_n_visibility
= p2
;
262 var_n_annotations
= p7
;
263 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAnnotPropdef> */
264 if (var_n_doc
== NULL
) {
265 var
= 0; /* is null */
267 var
= 1; /* arg is null and recv is not */
270 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
271 var_other
= ((val
*)NULL
);
273 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
284 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
285 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
291 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAnnotPropdef> */
292 if (var_n_kwredef
== NULL
) {
293 var7
= 0; /* is null */
295 var7
= 1; /* arg is null and recv is not */
298 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
299 var_other
= ((val
*)NULL
);
301 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
312 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
313 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
319 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAnnotPropdef> */
320 if (var_n_visibility
== NULL
) {
321 var13
= 0; /* is null */
323 var13
= 1; /* arg is null and recv is not */
326 { /* Inline kernel#Object#!= (var_n_visibility,((val*)NULL)) on <var_n_visibility:nullable AVisibility> */
327 var_other
= ((val
*)NULL
);
329 var16
= ((short int(*)(val
* self
, val
* p0
))(var_n_visibility
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_visibility
, var_other
); /* == on <var_n_visibility:nullable AVisibility(AVisibility)>*/
340 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility(AVisibility)> */
341 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility(AVisibility)> */
347 if (unlikely(var_n_atid
== NULL
)) {
348 PRINT_ERROR("Runtime error: %s", "Cast failed");
349 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1421);
352 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_atid
].val
= var_n_atid
; /* _n_atid on <self:AAnnotPropdef> */
353 if (var_n_atid
== NULL
) {
354 PRINT_ERROR("Runtime error: %s", "Receiver is null");
355 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1422);
358 { /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on <var_n_atid:nullable AAtid> */
359 if (unlikely(var_n_atid
== NULL
)) {
360 PRINT_ERROR("Runtime error: %s", "Receiver is null");
361 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
364 var_n_atid
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_atid:nullable AAtid> */
368 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotPropdef> */
369 if (var_n_opar
== NULL
) {
370 var20
= 0; /* is null */
372 var20
= 1; /* arg is null and recv is not */
375 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
376 var_other
= ((val
*)NULL
);
378 var23
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
389 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
390 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
397 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
398 var28
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
399 if (unlikely(var28
== NULL
)) {
400 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
401 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2988);
409 nit___nit__ANodes___unsafe_add_all(var26
, var_n_args
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var26:ANodes[AExpr]>*/
411 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotPropdef> */
412 if (var_n_cpar
== NULL
) {
413 var29
= 0; /* is null */
415 var29
= 1; /* arg is null and recv is not */
418 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
419 var_other
= ((val
*)NULL
);
421 var32
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
432 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
433 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
439 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAnnotPropdef> */
440 if (var_n_annotations
== NULL
) {
441 var35
= 0; /* is null */
443 var35
= 1; /* arg is null and recv is not */
446 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
447 var_other
= ((val
*)NULL
);
449 var38
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
460 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
461 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
469 /* method parser_prod#AAnnotPropdef#replace_child for (self: AAnnotPropdef, ANode, nullable ANode) */
470 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
471 val
* var_old_child
/* var old_child: ANode */;
472 val
* var_new_child
/* var new_child: nullable ANode */;
473 val
* var
/* : nullable ADoc */;
474 short int var1
/* : Bool */;
475 short int var2
/* : Bool */;
476 val
* var_other
/* var other: nullable Object */;
477 short int var4
/* : Bool */;
478 short int var6
/* : Bool */;
479 short int var7
/* : Bool */;
482 const char* var_class_name
;
483 val
* var8
/* : nullable TKwredef */;
484 short int var9
/* : Bool */;
485 short int var10
/* : Bool */;
486 short int var12
/* : Bool */;
487 short int var14
/* : Bool */;
488 short int var15
/* : Bool */;
491 const char* var_class_name18
;
492 val
* var19
/* : nullable AVisibility */;
493 short int var20
/* : Bool */;
494 short int var21
/* : Bool */;
495 short int var23
/* : Bool */;
496 short int var25
/* : Bool */;
497 short int var26
/* : Bool */;
500 const char* var_class_name29
;
501 val
* var30
/* : AAtid */;
502 short int var31
/* : Bool */;
503 short int var33
/* : Bool */;
504 short int var35
/* : Bool */;
505 short int var36
/* : Bool */;
508 const char* var_class_name39
;
509 val
* var40
/* : nullable TOpar */;
510 short int var41
/* : Bool */;
511 short int var42
/* : Bool */;
512 short int var44
/* : Bool */;
513 short int var46
/* : Bool */;
514 short int var47
/* : Bool */;
517 const char* var_class_name50
;
518 val
* var51
/* : ANodes[AExpr] */;
519 val
* var53
/* : ANodes[AExpr] */;
520 short int var54
/* : Bool */;
521 val
* var55
/* : nullable TCpar */;
522 short int var56
/* : Bool */;
523 short int var57
/* : Bool */;
524 short int var59
/* : Bool */;
525 short int var61
/* : Bool */;
526 short int var62
/* : Bool */;
529 const char* var_class_name65
;
530 val
* var66
/* : nullable AAnnotations */;
531 short int var67
/* : Bool */;
532 short int var68
/* : Bool */;
533 short int var70
/* : Bool */;
534 short int var72
/* : Bool */;
535 short int var73
/* : Bool */;
538 const char* var_class_name76
;
541 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAnnotPropdef> */
543 var1
= 0; /* <var_old_child:ANode> cannot be null */
545 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
546 var_other
= var_old_child
;
548 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
549 var6
= var
== var_other
;
562 /* <var_new_child:nullable ANode> isa nullable ADoc */
563 cltype
= type_nullable__nit__ADoc
.color
;
564 idtype
= type_nullable__nit__ADoc
.id
;
565 if(var_new_child
== NULL
) {
568 if(cltype
>= var_new_child
->type
->table_size
) {
571 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
574 if (unlikely(!var7
)) {
575 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
576 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
577 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1435);
581 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_doc= on <self:AAnnotPropdef>*/
586 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotPropdef> */
588 var9
= 0; /* <var_old_child:ANode> cannot be null */
590 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
591 var_other
= var_old_child
;
593 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
594 var14
= var8
== var_other
;
607 /* <var_new_child:nullable ANode> isa nullable TKwredef */
608 cltype16
= type_nullable__nit__TKwredef
.color
;
609 idtype17
= type_nullable__nit__TKwredef
.id
;
610 if(var_new_child
== NULL
) {
613 if(cltype16
>= var_new_child
->type
->table_size
) {
616 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
619 if (unlikely(!var15
)) {
620 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
621 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
622 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1439);
626 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_kwredef= on <self:AAnnotPropdef>*/
631 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAnnotPropdef> */
633 var20
= 0; /* <var_old_child:ANode> cannot be null */
635 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
636 var_other
= var_old_child
;
638 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
639 var25
= var19
== var_other
;
652 /* <var_new_child:nullable ANode> isa nullable AVisibility */
653 cltype27
= type_nullable__nit__AVisibility
.color
;
654 idtype28
= type_nullable__nit__AVisibility
.id
;
655 if(var_new_child
== NULL
) {
658 if(cltype27
>= var_new_child
->type
->table_size
) {
661 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
664 if (unlikely(!var26
)) {
665 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
666 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29
);
667 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1443);
671 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_visibility= on <self:AAnnotPropdef>*/
676 var30
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotPropdef> */
677 if (unlikely(var30
== NULL
)) {
678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
679 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1446);
683 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AAtid> */
684 var_other
= var_old_child
;
686 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AAtid> */
687 var35
= var30
== var_other
;
699 /* <var_new_child:nullable ANode> isa AAtid */
700 cltype37
= type_nit__AAtid
.color
;
701 idtype38
= type_nit__AAtid
.id
;
702 if(var_new_child
== NULL
) {
705 if(cltype37
>= var_new_child
->type
->table_size
) {
708 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
711 if (unlikely(!var36
)) {
712 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
713 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name39
);
714 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1447);
718 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_atid_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_atid= on <self:AAnnotPropdef>*/
723 var40
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotPropdef> */
725 var41
= 0; /* <var_old_child:ANode> cannot be null */
727 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable TOpar> */
728 var_other
= var_old_child
;
730 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable TOpar(TOpar)> */
731 var46
= var40
== var_other
;
744 /* <var_new_child:nullable ANode> isa nullable TOpar */
745 cltype48
= type_nullable__nit__TOpar
.color
;
746 idtype49
= type_nullable__nit__TOpar
.id
;
747 if(var_new_child
== NULL
) {
750 if(cltype48
>= var_new_child
->type
->table_size
) {
753 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
756 if (unlikely(!var47
)) {
757 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
758 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name50
);
759 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1451);
763 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_opar= on <self:AAnnotPropdef>*/
769 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
770 var53
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
771 if (unlikely(var53
== NULL
)) {
772 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
773 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2988);
781 var54
= nit___nit__ANodes___replace_child(var51
, var_old_child
, var_new_child
);
787 var55
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotPropdef> */
789 var56
= 0; /* <var_old_child:ANode> cannot be null */
791 { /* Inline kernel#Object#== (var55,var_old_child) on <var55:nullable TCpar> */
792 var_other
= var_old_child
;
794 { /* Inline kernel#Object#is_same_instance (var55,var_other) on <var55:nullable TCpar(TCpar)> */
795 var61
= var55
== var_other
;
808 /* <var_new_child:nullable ANode> isa nullable TCpar */
809 cltype63
= type_nullable__nit__TCpar
.color
;
810 idtype64
= type_nullable__nit__TCpar
.id
;
811 if(var_new_child
== NULL
) {
814 if(cltype63
>= var_new_child
->type
->table_size
) {
817 var62
= var_new_child
->type
->type_table
[cltype63
] == idtype64
;
820 if (unlikely(!var62
)) {
821 var_class_name65
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
822 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name65
);
823 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1456);
827 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_cpar= on <self:AAnnotPropdef>*/
832 var66
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotPropdef> */
834 var67
= 0; /* <var_old_child:ANode> cannot be null */
836 { /* Inline kernel#Object#== (var66,var_old_child) on <var66:nullable AAnnotations> */
837 var_other
= var_old_child
;
839 { /* Inline kernel#Object#is_same_instance (var66,var_other) on <var66:nullable AAnnotations(AAnnotations)> */
840 var72
= var66
== var_other
;
853 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
854 cltype74
= type_nullable__nit__AAnnotations
.color
;
855 idtype75
= type_nullable__nit__AAnnotations
.id
;
856 if(var_new_child
== NULL
) {
859 if(cltype74
>= var_new_child
->type
->table_size
) {
862 var73
= var_new_child
->type
->type_table
[cltype74
] == idtype75
;
865 if (unlikely(!var73
)) {
866 var_class_name76
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
867 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name76
);
868 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1460);
872 nit__parser_prod___AAnnotPropdef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_annotations= on <self:AAnnotPropdef>*/
879 /* method parser_prod#AAnnotPropdef#n_doc= for (self: AAnnotPropdef, nullable ADoc) */
880 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
881 val
* var_node
/* var node: nullable ADoc */;
882 short int var
/* : Bool */;
883 short int var1
/* : Bool */;
884 val
* var_other
/* var other: nullable Object */;
885 short int var3
/* : Bool */;
886 short int var4
/* : Bool */;
888 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AAnnotPropdef> */
889 if (var_node
== NULL
) {
890 var
= 0; /* is null */
892 var
= 1; /* arg is null and recv is not */
895 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
896 var_other
= ((val
*)NULL
);
898 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
909 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
910 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
918 /* method parser_prod#AAnnotPropdef#n_kwredef= for (self: AAnnotPropdef, nullable TKwredef) */
919 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
920 val
* var_node
/* var node: nullable TKwredef */;
921 short int var
/* : Bool */;
922 short int var1
/* : Bool */;
923 val
* var_other
/* var other: nullable Object */;
924 short int var3
/* : Bool */;
925 short int var4
/* : Bool */;
927 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAnnotPropdef> */
928 if (var_node
== NULL
) {
929 var
= 0; /* is null */
931 var
= 1; /* arg is null and recv is not */
934 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
935 var_other
= ((val
*)NULL
);
937 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
948 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
949 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
957 /* method parser_prod#AAnnotPropdef#n_visibility= for (self: AAnnotPropdef, nullable AVisibility) */
958 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
959 val
* var_node
/* var node: nullable AVisibility */;
960 short int var
/* : Bool */;
961 short int var1
/* : Bool */;
962 val
* var_other
/* var other: nullable Object */;
963 short int var3
/* : Bool */;
964 short int var4
/* : Bool */;
966 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAnnotPropdef> */
967 if (var_node
== NULL
) {
968 var
= 0; /* is null */
970 var
= 1; /* arg is null and recv is not */
973 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AVisibility> */
974 var_other
= ((val
*)NULL
);
976 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AVisibility(AVisibility)>*/
987 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility(AVisibility)> */
988 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility(AVisibility)> */
996 /* method parser_prod#AAnnotPropdef#n_atid= for (self: AAnnotPropdef, AAtid) */
997 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
998 val
* var_node
/* var node: AAtid */;
1000 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_atid
].val
= var_node
; /* _n_atid on <self:AAnnotPropdef> */
1002 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAtid> */
1003 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAtid> */
1009 /* method parser_prod#AAnnotPropdef#n_opar= for (self: AAnnotPropdef, nullable TOpar) */
1010 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
1011 val
* var_node
/* var node: nullable TOpar */;
1012 short int var
/* : Bool */;
1013 short int var1
/* : Bool */;
1014 val
* var_other
/* var other: nullable Object */;
1015 short int var3
/* : Bool */;
1016 short int var4
/* : Bool */;
1018 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotPropdef> */
1019 if (var_node
== NULL
) {
1020 var
= 0; /* is null */
1022 var
= 1; /* arg is null and recv is not */
1025 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
1026 var_other
= ((val
*)NULL
);
1028 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TOpar(TOpar)>*/
1039 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
1040 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
1048 /* method parser_prod#AAnnotPropdef#n_cpar= for (self: AAnnotPropdef, nullable TCpar) */
1049 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
1050 val
* var_node
/* var node: nullable TCpar */;
1051 short int var
/* : Bool */;
1052 short int var1
/* : Bool */;
1053 val
* var_other
/* var other: nullable Object */;
1054 short int var3
/* : Bool */;
1055 short int var4
/* : Bool */;
1057 self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotPropdef> */
1058 if (var_node
== NULL
) {
1059 var
= 0; /* is null */
1061 var
= 1; /* arg is null and recv is not */
1064 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
1065 var_other
= ((val
*)NULL
);
1067 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TCpar(TCpar)>*/
1078 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
1079 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
1087 /* method parser_prod#AAnnotPropdef#n_annotations= for (self: AAnnotPropdef, nullable AAnnotations) */
1088 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1089 val
* var_node
/* var node: nullable AAnnotations */;
1090 short int var
/* : Bool */;
1091 short int var1
/* : Bool */;
1092 val
* var_other
/* var other: nullable Object */;
1093 short int var3
/* : Bool */;
1094 short int var4
/* : Bool */;
1096 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAnnotPropdef> */
1097 if (var_node
== NULL
) {
1098 var
= 0; /* is null */
1100 var
= 1; /* arg is null and recv is not */
1103 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1104 var_other
= ((val
*)NULL
);
1106 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
1117 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1118 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1126 /* method parser_prod#AAnnotPropdef#visit_all for (self: AAnnotPropdef, Visitor) */
1127 void nit__parser_prod___AAnnotPropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1128 val
* var_v
/* var v: Visitor */;
1129 val
* var
/* : nullable ADoc */;
1130 val
* var1
/* : nullable TKwredef */;
1131 val
* var2
/* : nullable AVisibility */;
1132 val
* var3
/* : AAtid */;
1133 val
* var4
/* : nullable TOpar */;
1134 val
* var5
/* : ANodes[AExpr] */;
1135 val
* var7
/* : ANodes[AExpr] */;
1136 val
* var8
/* : nullable TCpar */;
1137 val
* var9
/* : nullable AAnnotations */;
1139 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAnnotPropdef> */
1141 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1143 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotPropdef> */
1145 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1147 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAnnotPropdef> */
1149 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1151 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotPropdef> */
1152 if (unlikely(var3
== NULL
)) {
1153 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
1154 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1507);
1158 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1160 var4
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotPropdef> */
1162 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1165 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
1166 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
1167 if (unlikely(var7
== NULL
)) {
1168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1169 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2988);
1177 nit___nit__ANodes___visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AExpr]>*/
1179 var8
= self
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotPropdef> */
1181 nit___nit__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1183 var9
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotPropdef> */
1185 nit___nit__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1189 /* method parser_prod#AIdMethid#init_aidmethid for (self: AIdMethid, nullable TId) */
1190 void nit__parser_prod___AIdMethid___init_aidmethid(val
* self
, val
* p0
) {
1191 val
* var_n_id
/* var n_id: nullable TId */;
1193 { /* Inline kernel#Object#init (self) on <self:AIdMethid> */
1198 if (unlikely(var_n_id
== NULL
)) {
1199 PRINT_ERROR("Runtime error: %s", "Cast failed");
1200 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1519);
1203 self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdMethid> */
1204 if (var_n_id
== NULL
) {
1205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1206 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1520);
1209 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
1210 if (unlikely(var_n_id
== NULL
)) {
1211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1212 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1215 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
1221 /* method parser_prod#AIdMethid#replace_child for (self: AIdMethid, ANode, nullable ANode) */
1222 void nit__parser_prod___AIdMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1223 val
* var_old_child
/* var old_child: ANode */;
1224 val
* var_new_child
/* var new_child: nullable ANode */;
1225 val
* var
/* : TId */;
1226 short int var1
/* : Bool */;
1227 val
* var_other
/* var other: nullable Object */;
1228 short int var3
/* : Bool */;
1229 short int var5
/* : Bool */;
1230 short int var6
/* : Bool */;
1233 const char* var_class_name
;
1236 var
= self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
1237 if (unlikely(var
== NULL
)) {
1238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1239 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1525);
1243 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
1244 var_other
= var_old_child
;
1246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
1247 var5
= var
== var_other
;
1259 /* <var_new_child:nullable ANode> isa TId */
1260 cltype
= type_nit__TId
.color
;
1261 idtype
= type_nit__TId
.id
;
1262 if(var_new_child
== NULL
) {
1265 if(cltype
>= var_new_child
->type
->table_size
) {
1268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1271 if (unlikely(!var6
)) {
1272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
1274 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1526);
1278 nit__parser_prod___AIdMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIdMethid#n_id= on <self:AIdMethid>*/
1285 /* method parser_prod#AIdMethid#n_id= for (self: AIdMethid, TId) */
1286 void nit__parser_prod___AIdMethid___n_id_61d(val
* self
, val
* p0
) {
1287 val
* var_node
/* var node: TId */;
1289 self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
= var_node
; /* _n_id on <self:AIdMethid> */
1291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
1292 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
1298 /* method parser_prod#AIdMethid#visit_all for (self: AIdMethid, Visitor) */
1299 void nit__parser_prod___AIdMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1300 val
* var_v
/* var v: Visitor */;
1301 val
* var
/* : TId */;
1303 var
= self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
1304 if (unlikely(var
== NULL
)) {
1305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1540);
1310 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1314 /* method parser_prod#APlusMethid#init_aplusmethid for (self: APlusMethid, nullable TPlus) */
1315 void nit__parser_prod___APlusMethid___init_aplusmethid(val
* self
, val
* p0
) {
1316 val
* var_n_op
/* var n_op: nullable TPlus */;
1318 { /* Inline kernel#Object#init (self) on <self:APlusMethid> */
1323 if (unlikely(var_n_op
== NULL
)) {
1324 PRINT_ERROR("Runtime error: %s", "Cast failed");
1325 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1548);
1328 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APlusMethid> */
1329 if (var_n_op
== NULL
) {
1330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1331 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1549);
1334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPlus> */
1335 if (unlikely(var_n_op
== NULL
)) {
1336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1337 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1340 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPlus> */
1346 /* method parser_prod#APlusMethid#replace_child for (self: APlusMethid, ANode, nullable ANode) */
1347 void nit__parser_prod___APlusMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1348 val
* var_old_child
/* var old_child: ANode */;
1349 val
* var_new_child
/* var new_child: nullable ANode */;
1350 val
* var
/* : Token */;
1351 short int var1
/* : Bool */;
1352 val
* var_other
/* var other: nullable Object */;
1353 short int var3
/* : Bool */;
1354 short int var5
/* : Bool */;
1355 short int var6
/* : Bool */;
1358 const char* var_class_name
;
1361 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APlusMethid> */
1362 if (unlikely(var
== NULL
)) {
1363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1364 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1554);
1368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1369 var_other
= var_old_child
;
1371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1372 var5
= var
== var_other
;
1384 /* <var_new_child:nullable ANode> isa TPlus */
1385 cltype
= type_nit__TPlus
.color
;
1386 idtype
= type_nit__TPlus
.id
;
1387 if(var_new_child
== NULL
) {
1390 if(cltype
>= var_new_child
->type
->table_size
) {
1393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1396 if (unlikely(!var6
)) {
1397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name
);
1399 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1555);
1403 nit__parser_prod___APlusMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APlusMethid#n_op= on <self:APlusMethid>*/
1410 /* method parser_prod#APlusMethid#n_op= for (self: APlusMethid, Token) */
1411 void nit__parser_prod___APlusMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1412 val
* var_node
/* var node: Token */;
1414 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APlusMethid> */
1416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1417 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1423 /* method parser_prod#APlusMethid#visit_all for (self: APlusMethid, Visitor) */
1424 void nit__parser_prod___APlusMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1425 val
* var_v
/* var v: Visitor */;
1426 val
* var
/* : Token */;
1428 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APlusMethid> */
1429 if (unlikely(var
== NULL
)) {
1430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1569);
1435 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1439 /* method parser_prod#AMinusMethid#init_aminusmethid for (self: AMinusMethid, nullable TMinus) */
1440 void nit__parser_prod___AMinusMethid___init_aminusmethid(val
* self
, val
* p0
) {
1441 val
* var_n_op
/* var n_op: nullable TMinus */;
1443 { /* Inline kernel#Object#init (self) on <self:AMinusMethid> */
1448 if (unlikely(var_n_op
== NULL
)) {
1449 PRINT_ERROR("Runtime error: %s", "Cast failed");
1450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1577);
1453 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AMinusMethid> */
1454 if (var_n_op
== NULL
) {
1455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1456 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1578);
1459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TMinus> */
1460 if (unlikely(var_n_op
== NULL
)) {
1461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1462 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1465 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TMinus> */
1471 /* method parser_prod#AMinusMethid#replace_child for (self: AMinusMethid, ANode, nullable ANode) */
1472 void nit__parser_prod___AMinusMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1473 val
* var_old_child
/* var old_child: ANode */;
1474 val
* var_new_child
/* var new_child: nullable ANode */;
1475 val
* var
/* : Token */;
1476 short int var1
/* : Bool */;
1477 val
* var_other
/* var other: nullable Object */;
1478 short int var3
/* : Bool */;
1479 short int var5
/* : Bool */;
1480 short int var6
/* : Bool */;
1483 const char* var_class_name
;
1486 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AMinusMethid> */
1487 if (unlikely(var
== NULL
)) {
1488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1583);
1493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1494 var_other
= var_old_child
;
1496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1497 var5
= var
== var_other
;
1509 /* <var_new_child:nullable ANode> isa TMinus */
1510 cltype
= type_nit__TMinus
.color
;
1511 idtype
= type_nit__TMinus
.id
;
1512 if(var_new_child
== NULL
) {
1515 if(cltype
>= var_new_child
->type
->table_size
) {
1518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1521 if (unlikely(!var6
)) {
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`", "TMinus", var_class_name
);
1524 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1584);
1528 nit__parser_prod___AMinusMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusMethid#n_op= on <self:AMinusMethid>*/
1535 /* method parser_prod#AMinusMethid#n_op= for (self: AMinusMethid, Token) */
1536 void nit__parser_prod___AMinusMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1537 val
* var_node
/* var node: Token */;
1539 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AMinusMethid> */
1541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1542 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1548 /* method parser_prod#AMinusMethid#visit_all for (self: AMinusMethid, Visitor) */
1549 void nit__parser_prod___AMinusMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1550 val
* var_v
/* var v: Visitor */;
1551 val
* var
/* : Token */;
1553 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AMinusMethid> */
1554 if (unlikely(var
== NULL
)) {
1555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1598);
1560 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1564 /* method parser_prod#AStarMethid#init_astarmethid for (self: AStarMethid, nullable TStar) */
1565 void nit__parser_prod___AStarMethid___init_astarmethid(val
* self
, val
* p0
) {
1566 val
* var_n_op
/* var n_op: nullable TStar */;
1568 { /* Inline kernel#Object#init (self) on <self:AStarMethid> */
1573 if (unlikely(var_n_op
== NULL
)) {
1574 PRINT_ERROR("Runtime error: %s", "Cast failed");
1575 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1606);
1578 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarMethid> */
1579 if (var_n_op
== NULL
) {
1580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1581 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1607);
1584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStar> */
1585 if (unlikely(var_n_op
== NULL
)) {
1586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1587 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1590 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStar> */
1596 /* method parser_prod#AStarMethid#replace_child for (self: AStarMethid, ANode, nullable ANode) */
1597 void nit__parser_prod___AStarMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1598 val
* var_old_child
/* var old_child: ANode */;
1599 val
* var_new_child
/* var new_child: nullable ANode */;
1600 val
* var
/* : Token */;
1601 short int var1
/* : Bool */;
1602 val
* var_other
/* var other: nullable Object */;
1603 short int var3
/* : Bool */;
1604 short int var5
/* : Bool */;
1605 short int var6
/* : Bool */;
1608 const char* var_class_name
;
1611 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarMethid> */
1612 if (unlikely(var
== NULL
)) {
1613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1612);
1618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1619 var_other
= var_old_child
;
1621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1622 var5
= var
== var_other
;
1634 /* <var_new_child:nullable ANode> isa TStar */
1635 cltype
= type_nit__TStar
.color
;
1636 idtype
= type_nit__TStar
.id
;
1637 if(var_new_child
== NULL
) {
1640 if(cltype
>= var_new_child
->type
->table_size
) {
1643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1646 if (unlikely(!var6
)) {
1647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStar", var_class_name
);
1649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1613);
1653 nit__parser_prod___AStarMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarMethid#n_op= on <self:AStarMethid>*/
1660 /* method parser_prod#AStarMethid#n_op= for (self: AStarMethid, Token) */
1661 void nit__parser_prod___AStarMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1662 val
* var_node
/* var node: Token */;
1664 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarMethid> */
1666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1667 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1673 /* method parser_prod#AStarMethid#visit_all for (self: AStarMethid, Visitor) */
1674 void nit__parser_prod___AStarMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1675 val
* var_v
/* var v: Visitor */;
1676 val
* var
/* : Token */;
1678 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarMethid> */
1679 if (unlikely(var
== NULL
)) {
1680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1681 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1627);
1685 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1689 /* method parser_prod#AStarstarMethid#init_astarstarmethid for (self: AStarstarMethid, nullable TStarstar) */
1690 void nit__parser_prod___AStarstarMethid___init_astarstarmethid(val
* self
, val
* p0
) {
1691 val
* var_n_op
/* var n_op: nullable TStarstar */;
1693 { /* Inline kernel#Object#init (self) on <self:AStarstarMethid> */
1698 if (unlikely(var_n_op
== NULL
)) {
1699 PRINT_ERROR("Runtime error: %s", "Cast failed");
1700 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1635);
1703 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarstarMethid> */
1704 if (var_n_op
== NULL
) {
1705 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1706 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1636);
1709 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStarstar> */
1710 if (unlikely(var_n_op
== NULL
)) {
1711 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1712 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1715 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStarstar> */
1721 /* method parser_prod#AStarstarMethid#replace_child for (self: AStarstarMethid, ANode, nullable ANode) */
1722 void nit__parser_prod___AStarstarMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1723 val
* var_old_child
/* var old_child: ANode */;
1724 val
* var_new_child
/* var new_child: nullable ANode */;
1725 val
* var
/* : Token */;
1726 short int var1
/* : Bool */;
1727 val
* var_other
/* var other: nullable Object */;
1728 short int var3
/* : Bool */;
1729 short int var5
/* : Bool */;
1730 short int var6
/* : Bool */;
1733 const char* var_class_name
;
1736 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarstarMethid> */
1737 if (unlikely(var
== NULL
)) {
1738 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1739 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1641);
1743 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1744 var_other
= var_old_child
;
1746 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1747 var5
= var
== var_other
;
1759 /* <var_new_child:nullable ANode> isa TStarstar */
1760 cltype
= type_nit__TStarstar
.color
;
1761 idtype
= type_nit__TStarstar
.id
;
1762 if(var_new_child
== NULL
) {
1765 if(cltype
>= var_new_child
->type
->table_size
) {
1768 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1771 if (unlikely(!var6
)) {
1772 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1773 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstar", var_class_name
);
1774 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1642);
1778 nit__parser_prod___AStarstarMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarstarMethid#n_op= on <self:AStarstarMethid>*/
1785 /* method parser_prod#AStarstarMethid#n_op= for (self: AStarstarMethid, Token) */
1786 void nit__parser_prod___AStarstarMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1787 val
* var_node
/* var node: Token */;
1789 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarstarMethid> */
1791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1792 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1798 /* method parser_prod#AStarstarMethid#visit_all for (self: AStarstarMethid, Visitor) */
1799 void nit__parser_prod___AStarstarMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1800 val
* var_v
/* var v: Visitor */;
1801 val
* var
/* : Token */;
1803 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarstarMethid> */
1804 if (unlikely(var
== NULL
)) {
1805 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1806 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1656);
1810 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1814 /* method parser_prod#ASlashMethid#init_aslashmethid for (self: ASlashMethid, nullable TSlash) */
1815 void nit__parser_prod___ASlashMethid___init_aslashmethid(val
* self
, val
* p0
) {
1816 val
* var_n_op
/* var n_op: nullable TSlash */;
1818 { /* Inline kernel#Object#init (self) on <self:ASlashMethid> */
1823 if (unlikely(var_n_op
== NULL
)) {
1824 PRINT_ERROR("Runtime error: %s", "Cast failed");
1825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1664);
1828 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ASlashMethid> */
1829 if (var_n_op
== NULL
) {
1830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1831 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1665);
1834 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TSlash> */
1835 if (unlikely(var_n_op
== NULL
)) {
1836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1840 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TSlash> */
1846 /* method parser_prod#ASlashMethid#replace_child for (self: ASlashMethid, ANode, nullable ANode) */
1847 void nit__parser_prod___ASlashMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1848 val
* var_old_child
/* var old_child: ANode */;
1849 val
* var_new_child
/* var new_child: nullable ANode */;
1850 val
* var
/* : Token */;
1851 short int var1
/* : Bool */;
1852 val
* var_other
/* var other: nullable Object */;
1853 short int var3
/* : Bool */;
1854 short int var5
/* : Bool */;
1855 short int var6
/* : Bool */;
1858 const char* var_class_name
;
1861 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ASlashMethid> */
1862 if (unlikely(var
== NULL
)) {
1863 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1864 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1670);
1868 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1869 var_other
= var_old_child
;
1871 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1872 var5
= var
== var_other
;
1884 /* <var_new_child:nullable ANode> isa TSlash */
1885 cltype
= type_nit__TSlash
.color
;
1886 idtype
= type_nit__TSlash
.id
;
1887 if(var_new_child
== NULL
) {
1890 if(cltype
>= var_new_child
->type
->table_size
) {
1893 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1896 if (unlikely(!var6
)) {
1897 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1898 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name
);
1899 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1671);
1903 nit__parser_prod___ASlashMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashMethid#n_op= on <self:ASlashMethid>*/
1910 /* method parser_prod#ASlashMethid#n_op= for (self: ASlashMethid, Token) */
1911 void nit__parser_prod___ASlashMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1912 val
* var_node
/* var node: Token */;
1914 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ASlashMethid> */
1916 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1917 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1923 /* method parser_prod#ASlashMethid#visit_all for (self: ASlashMethid, Visitor) */
1924 void nit__parser_prod___ASlashMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1925 val
* var_v
/* var v: Visitor */;
1926 val
* var
/* : Token */;
1928 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ASlashMethid> */
1929 if (unlikely(var
== NULL
)) {
1930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1931 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1685);
1935 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1939 /* method parser_prod#APercentMethid#init_apercentmethid for (self: APercentMethid, nullable TPercent) */
1940 void nit__parser_prod___APercentMethid___init_apercentmethid(val
* self
, val
* p0
) {
1941 val
* var_n_op
/* var n_op: nullable TPercent */;
1943 { /* Inline kernel#Object#init (self) on <self:APercentMethid> */
1948 if (unlikely(var_n_op
== NULL
)) {
1949 PRINT_ERROR("Runtime error: %s", "Cast failed");
1950 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1693);
1953 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APercentMethid> */
1954 if (var_n_op
== NULL
) {
1955 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1956 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1694);
1959 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPercent> */
1960 if (unlikely(var_n_op
== NULL
)) {
1961 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1962 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
1965 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPercent> */
1971 /* method parser_prod#APercentMethid#replace_child for (self: APercentMethid, ANode, nullable ANode) */
1972 void nit__parser_prod___APercentMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1973 val
* var_old_child
/* var old_child: ANode */;
1974 val
* var_new_child
/* var new_child: nullable ANode */;
1975 val
* var
/* : Token */;
1976 short int var1
/* : Bool */;
1977 val
* var_other
/* var other: nullable Object */;
1978 short int var3
/* : Bool */;
1979 short int var5
/* : Bool */;
1980 short int var6
/* : Bool */;
1983 const char* var_class_name
;
1986 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APercentMethid> */
1987 if (unlikely(var
== NULL
)) {
1988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1989 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1699);
1993 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1994 var_other
= var_old_child
;
1996 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1997 var5
= var
== var_other
;
2009 /* <var_new_child:nullable ANode> isa TPercent */
2010 cltype
= type_nit__TPercent
.color
;
2011 idtype
= type_nit__TPercent
.id
;
2012 if(var_new_child
== NULL
) {
2015 if(cltype
>= var_new_child
->type
->table_size
) {
2018 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2021 if (unlikely(!var6
)) {
2022 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2023 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name
);
2024 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1700);
2028 nit__parser_prod___APercentMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APercentMethid#n_op= on <self:APercentMethid>*/
2035 /* method parser_prod#APercentMethid#n_op= for (self: APercentMethid, Token) */
2036 void nit__parser_prod___APercentMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2037 val
* var_node
/* var node: Token */;
2039 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APercentMethid> */
2041 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2042 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2048 /* method parser_prod#APercentMethid#visit_all for (self: APercentMethid, Visitor) */
2049 void nit__parser_prod___APercentMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2050 val
* var_v
/* var v: Visitor */;
2051 val
* var
/* : Token */;
2053 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APercentMethid> */
2054 if (unlikely(var
== NULL
)) {
2055 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2056 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1714);
2060 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2064 /* method parser_prod#AEqMethid#init_aeqmethid for (self: AEqMethid, nullable TEq) */
2065 void nit__parser_prod___AEqMethid___init_aeqmethid(val
* self
, val
* p0
) {
2066 val
* var_n_op
/* var n_op: nullable TEq */;
2068 { /* Inline kernel#Object#init (self) on <self:AEqMethid> */
2073 if (unlikely(var_n_op
== NULL
)) {
2074 PRINT_ERROR("Runtime error: %s", "Cast failed");
2075 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1722);
2078 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AEqMethid> */
2079 if (var_n_op
== NULL
) {
2080 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2081 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1723);
2084 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TEq> */
2085 if (unlikely(var_n_op
== NULL
)) {
2086 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2090 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TEq> */
2096 /* method parser_prod#AEqMethid#replace_child for (self: AEqMethid, ANode, nullable ANode) */
2097 void nit__parser_prod___AEqMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2098 val
* var_old_child
/* var old_child: ANode */;
2099 val
* var_new_child
/* var new_child: nullable ANode */;
2100 val
* var
/* : Token */;
2101 short int var1
/* : Bool */;
2102 val
* var_other
/* var other: nullable Object */;
2103 short int var3
/* : Bool */;
2104 short int var5
/* : Bool */;
2105 short int var6
/* : Bool */;
2108 const char* var_class_name
;
2111 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AEqMethid> */
2112 if (unlikely(var
== NULL
)) {
2113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1728);
2118 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2119 var_other
= var_old_child
;
2121 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2122 var5
= var
== var_other
;
2134 /* <var_new_child:nullable ANode> isa TEq */
2135 cltype
= type_nit__TEq
.color
;
2136 idtype
= type_nit__TEq
.id
;
2137 if(var_new_child
== NULL
) {
2140 if(cltype
>= var_new_child
->type
->table_size
) {
2143 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2146 if (unlikely(!var6
)) {
2147 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2148 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEq", var_class_name
);
2149 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1729);
2153 nit__parser_prod___AEqMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AEqMethid#n_op= on <self:AEqMethid>*/
2160 /* method parser_prod#AEqMethid#n_op= for (self: AEqMethid, Token) */
2161 void nit__parser_prod___AEqMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2162 val
* var_node
/* var node: Token */;
2164 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AEqMethid> */
2166 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2167 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2173 /* method parser_prod#AEqMethid#visit_all for (self: AEqMethid, Visitor) */
2174 void nit__parser_prod___AEqMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2175 val
* var_v
/* var v: Visitor */;
2176 val
* var
/* : Token */;
2178 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AEqMethid> */
2179 if (unlikely(var
== NULL
)) {
2180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2181 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1743);
2185 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2189 /* method parser_prod#ANeMethid#init_anemethid for (self: ANeMethid, nullable TNe) */
2190 void nit__parser_prod___ANeMethid___init_anemethid(val
* self
, val
* p0
) {
2191 val
* var_n_op
/* var n_op: nullable TNe */;
2193 { /* Inline kernel#Object#init (self) on <self:ANeMethid> */
2198 if (unlikely(var_n_op
== NULL
)) {
2199 PRINT_ERROR("Runtime error: %s", "Cast failed");
2200 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1751);
2203 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ANeMethid> */
2204 if (var_n_op
== NULL
) {
2205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2206 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1752);
2209 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TNe> */
2210 if (unlikely(var_n_op
== NULL
)) {
2211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2212 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2215 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TNe> */
2221 /* method parser_prod#ANeMethid#replace_child for (self: ANeMethid, ANode, nullable ANode) */
2222 void nit__parser_prod___ANeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2223 val
* var_old_child
/* var old_child: ANode */;
2224 val
* var_new_child
/* var new_child: nullable ANode */;
2225 val
* var
/* : Token */;
2226 short int var1
/* : Bool */;
2227 val
* var_other
/* var other: nullable Object */;
2228 short int var3
/* : Bool */;
2229 short int var5
/* : Bool */;
2230 short int var6
/* : Bool */;
2233 const char* var_class_name
;
2236 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ANeMethid> */
2237 if (unlikely(var
== NULL
)) {
2238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2239 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1757);
2243 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2244 var_other
= var_old_child
;
2246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2247 var5
= var
== var_other
;
2259 /* <var_new_child:nullable ANode> isa TNe */
2260 cltype
= type_nit__TNe
.color
;
2261 idtype
= type_nit__TNe
.id
;
2262 if(var_new_child
== NULL
) {
2265 if(cltype
>= var_new_child
->type
->table_size
) {
2268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2271 if (unlikely(!var6
)) {
2272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNe", var_class_name
);
2274 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1758);
2278 nit__parser_prod___ANeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ANeMethid#n_op= on <self:ANeMethid>*/
2285 /* method parser_prod#ANeMethid#n_op= for (self: ANeMethid, Token) */
2286 void nit__parser_prod___ANeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2287 val
* var_node
/* var node: Token */;
2289 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ANeMethid> */
2291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2292 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2298 /* method parser_prod#ANeMethid#visit_all for (self: ANeMethid, Visitor) */
2299 void nit__parser_prod___ANeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2300 val
* var_v
/* var v: Visitor */;
2301 val
* var
/* : Token */;
2303 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ANeMethid> */
2304 if (unlikely(var
== NULL
)) {
2305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1772);
2310 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2314 /* method parser_prod#ALeMethid#init_alemethid for (self: ALeMethid, nullable TLe) */
2315 void nit__parser_prod___ALeMethid___init_alemethid(val
* self
, val
* p0
) {
2316 val
* var_n_op
/* var n_op: nullable TLe */;
2318 { /* Inline kernel#Object#init (self) on <self:ALeMethid> */
2323 if (unlikely(var_n_op
== NULL
)) {
2324 PRINT_ERROR("Runtime error: %s", "Cast failed");
2325 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1780);
2328 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALeMethid> */
2329 if (var_n_op
== NULL
) {
2330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2331 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1781);
2334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLe> */
2335 if (unlikely(var_n_op
== NULL
)) {
2336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2337 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2340 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLe> */
2346 /* method parser_prod#ALeMethid#replace_child for (self: ALeMethid, ANode, nullable ANode) */
2347 void nit__parser_prod___ALeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2348 val
* var_old_child
/* var old_child: ANode */;
2349 val
* var_new_child
/* var new_child: nullable ANode */;
2350 val
* var
/* : Token */;
2351 short int var1
/* : Bool */;
2352 val
* var_other
/* var other: nullable Object */;
2353 short int var3
/* : Bool */;
2354 short int var5
/* : Bool */;
2355 short int var6
/* : Bool */;
2358 const char* var_class_name
;
2361 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALeMethid> */
2362 if (unlikely(var
== NULL
)) {
2363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2364 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1786);
2368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2369 var_other
= var_old_child
;
2371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2372 var5
= var
== var_other
;
2384 /* <var_new_child:nullable ANode> isa TLe */
2385 cltype
= type_nit__TLe
.color
;
2386 idtype
= type_nit__TLe
.id
;
2387 if(var_new_child
== NULL
) {
2390 if(cltype
>= var_new_child
->type
->table_size
) {
2393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2396 if (unlikely(!var6
)) {
2397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLe", var_class_name
);
2399 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1787);
2403 nit__parser_prod___ALeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALeMethid#n_op= on <self:ALeMethid>*/
2410 /* method parser_prod#ALeMethid#n_op= for (self: ALeMethid, Token) */
2411 void nit__parser_prod___ALeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2412 val
* var_node
/* var node: Token */;
2414 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALeMethid> */
2416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2417 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2423 /* method parser_prod#ALeMethid#visit_all for (self: ALeMethid, Visitor) */
2424 void nit__parser_prod___ALeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2425 val
* var_v
/* var v: Visitor */;
2426 val
* var
/* : Token */;
2428 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALeMethid> */
2429 if (unlikely(var
== NULL
)) {
2430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1801);
2435 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2439 /* method parser_prod#AGeMethid#init_agemethid for (self: AGeMethid, nullable TGe) */
2440 void nit__parser_prod___AGeMethid___init_agemethid(val
* self
, val
* p0
) {
2441 val
* var_n_op
/* var n_op: nullable TGe */;
2443 { /* Inline kernel#Object#init (self) on <self:AGeMethid> */
2448 if (unlikely(var_n_op
== NULL
)) {
2449 PRINT_ERROR("Runtime error: %s", "Cast failed");
2450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1809);
2453 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGeMethid> */
2454 if (var_n_op
== NULL
) {
2455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2456 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1810);
2459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGe> */
2460 if (unlikely(var_n_op
== NULL
)) {
2461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2462 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2465 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGe> */
2471 /* method parser_prod#AGeMethid#replace_child for (self: AGeMethid, ANode, nullable ANode) */
2472 void nit__parser_prod___AGeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2473 val
* var_old_child
/* var old_child: ANode */;
2474 val
* var_new_child
/* var new_child: nullable ANode */;
2475 val
* var
/* : Token */;
2476 short int var1
/* : Bool */;
2477 val
* var_other
/* var other: nullable Object */;
2478 short int var3
/* : Bool */;
2479 short int var5
/* : Bool */;
2480 short int var6
/* : Bool */;
2483 const char* var_class_name
;
2486 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGeMethid> */
2487 if (unlikely(var
== NULL
)) {
2488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1815);
2493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2494 var_other
= var_old_child
;
2496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2497 var5
= var
== var_other
;
2509 /* <var_new_child:nullable ANode> isa TGe */
2510 cltype
= type_nit__TGe
.color
;
2511 idtype
= type_nit__TGe
.id
;
2512 if(var_new_child
== NULL
) {
2515 if(cltype
>= var_new_child
->type
->table_size
) {
2518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2521 if (unlikely(!var6
)) {
2522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGe", var_class_name
);
2524 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1816);
2528 nit__parser_prod___AGeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGeMethid#n_op= on <self:AGeMethid>*/
2535 /* method parser_prod#AGeMethid#n_op= for (self: AGeMethid, Token) */
2536 void nit__parser_prod___AGeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2537 val
* var_node
/* var node: Token */;
2539 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGeMethid> */
2541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2542 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2548 /* method parser_prod#AGeMethid#visit_all for (self: AGeMethid, Visitor) */
2549 void nit__parser_prod___AGeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2550 val
* var_v
/* var v: Visitor */;
2551 val
* var
/* : Token */;
2553 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGeMethid> */
2554 if (unlikely(var
== NULL
)) {
2555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1830);
2560 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2564 /* method parser_prod#ALtMethid#init_altmethid for (self: ALtMethid, nullable TLt) */
2565 void nit__parser_prod___ALtMethid___init_altmethid(val
* self
, val
* p0
) {
2566 val
* var_n_op
/* var n_op: nullable TLt */;
2568 { /* Inline kernel#Object#init (self) on <self:ALtMethid> */
2573 if (unlikely(var_n_op
== NULL
)) {
2574 PRINT_ERROR("Runtime error: %s", "Cast failed");
2575 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1838);
2578 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALtMethid> */
2579 if (var_n_op
== NULL
) {
2580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2581 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1839);
2584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLt> */
2585 if (unlikely(var_n_op
== NULL
)) {
2586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2587 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2590 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLt> */
2596 /* method parser_prod#ALtMethid#replace_child for (self: ALtMethid, ANode, nullable ANode) */
2597 void nit__parser_prod___ALtMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2598 val
* var_old_child
/* var old_child: ANode */;
2599 val
* var_new_child
/* var new_child: nullable ANode */;
2600 val
* var
/* : Token */;
2601 short int var1
/* : Bool */;
2602 val
* var_other
/* var other: nullable Object */;
2603 short int var3
/* : Bool */;
2604 short int var5
/* : Bool */;
2605 short int var6
/* : Bool */;
2608 const char* var_class_name
;
2611 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALtMethid> */
2612 if (unlikely(var
== NULL
)) {
2613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1844);
2618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2619 var_other
= var_old_child
;
2621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2622 var5
= var
== var_other
;
2634 /* <var_new_child:nullable ANode> isa TLt */
2635 cltype
= type_nit__TLt
.color
;
2636 idtype
= type_nit__TLt
.id
;
2637 if(var_new_child
== NULL
) {
2640 if(cltype
>= var_new_child
->type
->table_size
) {
2643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2646 if (unlikely(!var6
)) {
2647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLt", var_class_name
);
2649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1845);
2653 nit__parser_prod___ALtMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALtMethid#n_op= on <self:ALtMethid>*/
2660 /* method parser_prod#ALtMethid#n_op= for (self: ALtMethid, Token) */
2661 void nit__parser_prod___ALtMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2662 val
* var_node
/* var node: Token */;
2664 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALtMethid> */
2666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2667 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2673 /* method parser_prod#ALtMethid#visit_all for (self: ALtMethid, Visitor) */
2674 void nit__parser_prod___ALtMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2675 val
* var_v
/* var v: Visitor */;
2676 val
* var
/* : Token */;
2678 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALtMethid> */
2679 if (unlikely(var
== NULL
)) {
2680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2681 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1859);
2685 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2689 /* method parser_prod#AGtMethid#init_agtmethid for (self: AGtMethid, nullable TGt) */
2690 void nit__parser_prod___AGtMethid___init_agtmethid(val
* self
, val
* p0
) {
2691 val
* var_n_op
/* var n_op: nullable TGt */;
2693 { /* Inline kernel#Object#init (self) on <self:AGtMethid> */
2698 if (unlikely(var_n_op
== NULL
)) {
2699 PRINT_ERROR("Runtime error: %s", "Cast failed");
2700 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1867);
2703 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGtMethid> */
2704 if (var_n_op
== NULL
) {
2705 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2706 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1868);
2709 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGt> */
2710 if (unlikely(var_n_op
== NULL
)) {
2711 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2712 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2715 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGt> */
2721 /* method parser_prod#AGtMethid#replace_child for (self: AGtMethid, ANode, nullable ANode) */
2722 void nit__parser_prod___AGtMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2723 val
* var_old_child
/* var old_child: ANode */;
2724 val
* var_new_child
/* var new_child: nullable ANode */;
2725 val
* var
/* : Token */;
2726 short int var1
/* : Bool */;
2727 val
* var_other
/* var other: nullable Object */;
2728 short int var3
/* : Bool */;
2729 short int var5
/* : Bool */;
2730 short int var6
/* : Bool */;
2733 const char* var_class_name
;
2736 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGtMethid> */
2737 if (unlikely(var
== NULL
)) {
2738 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2739 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1873);
2743 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2744 var_other
= var_old_child
;
2746 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2747 var5
= var
== var_other
;
2759 /* <var_new_child:nullable ANode> isa TGt */
2760 cltype
= type_nit__TGt
.color
;
2761 idtype
= type_nit__TGt
.id
;
2762 if(var_new_child
== NULL
) {
2765 if(cltype
>= var_new_child
->type
->table_size
) {
2768 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2771 if (unlikely(!var6
)) {
2772 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2773 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGt", var_class_name
);
2774 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1874);
2778 nit__parser_prod___AGtMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGtMethid#n_op= on <self:AGtMethid>*/
2785 /* method parser_prod#AGtMethid#n_op= for (self: AGtMethid, Token) */
2786 void nit__parser_prod___AGtMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2787 val
* var_node
/* var node: Token */;
2789 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGtMethid> */
2791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2792 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2798 /* method parser_prod#AGtMethid#visit_all for (self: AGtMethid, Visitor) */
2799 void nit__parser_prod___AGtMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2800 val
* var_v
/* var v: Visitor */;
2801 val
* var
/* : Token */;
2803 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGtMethid> */
2804 if (unlikely(var
== NULL
)) {
2805 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2806 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1888);
2810 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2814 /* method parser_prod#ALlMethid#init_allmethid for (self: ALlMethid, nullable TLl) */
2815 void nit__parser_prod___ALlMethid___init_allmethid(val
* self
, val
* p0
) {
2816 val
* var_n_op
/* var n_op: nullable TLl */;
2818 { /* Inline kernel#Object#init (self) on <self:ALlMethid> */
2823 if (unlikely(var_n_op
== NULL
)) {
2824 PRINT_ERROR("Runtime error: %s", "Cast failed");
2825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1896);
2828 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALlMethid> */
2829 if (var_n_op
== NULL
) {
2830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2831 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1897);
2834 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLl> */
2835 if (unlikely(var_n_op
== NULL
)) {
2836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2840 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLl> */
2846 /* method parser_prod#ALlMethid#replace_child for (self: ALlMethid, ANode, nullable ANode) */
2847 void nit__parser_prod___ALlMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2848 val
* var_old_child
/* var old_child: ANode */;
2849 val
* var_new_child
/* var new_child: nullable ANode */;
2850 val
* var
/* : Token */;
2851 short int var1
/* : Bool */;
2852 val
* var_other
/* var other: nullable Object */;
2853 short int var3
/* : Bool */;
2854 short int var5
/* : Bool */;
2855 short int var6
/* : Bool */;
2858 const char* var_class_name
;
2861 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALlMethid> */
2862 if (unlikely(var
== NULL
)) {
2863 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2864 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1902);
2868 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2869 var_other
= var_old_child
;
2871 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2872 var5
= var
== var_other
;
2884 /* <var_new_child:nullable ANode> isa TLl */
2885 cltype
= type_nit__TLl
.color
;
2886 idtype
= type_nit__TLl
.id
;
2887 if(var_new_child
== NULL
) {
2890 if(cltype
>= var_new_child
->type
->table_size
) {
2893 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2896 if (unlikely(!var6
)) {
2897 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2898 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLl", var_class_name
);
2899 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1903);
2903 nit__parser_prod___ALlMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALlMethid#n_op= on <self:ALlMethid>*/
2910 /* method parser_prod#ALlMethid#n_op= for (self: ALlMethid, Token) */
2911 void nit__parser_prod___ALlMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2912 val
* var_node
/* var node: Token */;
2914 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALlMethid> */
2916 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2917 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2923 /* method parser_prod#ALlMethid#visit_all for (self: ALlMethid, Visitor) */
2924 void nit__parser_prod___ALlMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2925 val
* var_v
/* var v: Visitor */;
2926 val
* var
/* : Token */;
2928 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALlMethid> */
2929 if (unlikely(var
== NULL
)) {
2930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2931 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1917);
2935 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2939 /* method parser_prod#AGgMethid#init_aggmethid for (self: AGgMethid, nullable TGg) */
2940 void nit__parser_prod___AGgMethid___init_aggmethid(val
* self
, val
* p0
) {
2941 val
* var_n_op
/* var n_op: nullable TGg */;
2943 { /* Inline kernel#Object#init (self) on <self:AGgMethid> */
2948 if (unlikely(var_n_op
== NULL
)) {
2949 PRINT_ERROR("Runtime error: %s", "Cast failed");
2950 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1925);
2953 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGgMethid> */
2954 if (var_n_op
== NULL
) {
2955 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2956 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1926);
2959 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGg> */
2960 if (unlikely(var_n_op
== NULL
)) {
2961 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2962 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
2965 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGg> */
2971 /* method parser_prod#AGgMethid#replace_child for (self: AGgMethid, ANode, nullable ANode) */
2972 void nit__parser_prod___AGgMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2973 val
* var_old_child
/* var old_child: ANode */;
2974 val
* var_new_child
/* var new_child: nullable ANode */;
2975 val
* var
/* : Token */;
2976 short int var1
/* : Bool */;
2977 val
* var_other
/* var other: nullable Object */;
2978 short int var3
/* : Bool */;
2979 short int var5
/* : Bool */;
2980 short int var6
/* : Bool */;
2983 const char* var_class_name
;
2986 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGgMethid> */
2987 if (unlikely(var
== NULL
)) {
2988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2989 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1931);
2993 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2994 var_other
= var_old_child
;
2996 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2997 var5
= var
== var_other
;
3009 /* <var_new_child:nullable ANode> isa TGg */
3010 cltype
= type_nit__TGg
.color
;
3011 idtype
= type_nit__TGg
.id
;
3012 if(var_new_child
== NULL
) {
3015 if(cltype
>= var_new_child
->type
->table_size
) {
3018 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3021 if (unlikely(!var6
)) {
3022 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3023 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGg", var_class_name
);
3024 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1932);
3028 nit__parser_prod___AGgMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGgMethid#n_op= on <self:AGgMethid>*/
3035 /* method parser_prod#AGgMethid#n_op= for (self: AGgMethid, Token) */
3036 void nit__parser_prod___AGgMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3037 val
* var_node
/* var node: Token */;
3039 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGgMethid> */
3041 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3042 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3048 /* method parser_prod#AGgMethid#visit_all for (self: AGgMethid, Visitor) */
3049 void nit__parser_prod___AGgMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3050 val
* var_v
/* var v: Visitor */;
3051 val
* var
/* : Token */;
3053 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGgMethid> */
3054 if (unlikely(var
== NULL
)) {
3055 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3056 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1946);
3060 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3064 /* method parser_prod#AStarshipMethid#init_astarshipmethid for (self: AStarshipMethid, nullable TStarship) */
3065 void nit__parser_prod___AStarshipMethid___init_astarshipmethid(val
* self
, val
* p0
) {
3066 val
* var_n_op
/* var n_op: nullable TStarship */;
3068 { /* Inline kernel#Object#init (self) on <self:AStarshipMethid> */
3073 if (unlikely(var_n_op
== NULL
)) {
3074 PRINT_ERROR("Runtime error: %s", "Cast failed");
3075 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1954);
3078 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarshipMethid> */
3079 if (var_n_op
== NULL
) {
3080 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3081 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1955);
3084 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStarship> */
3085 if (unlikely(var_n_op
== NULL
)) {
3086 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3090 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStarship> */
3096 /* method parser_prod#AStarshipMethid#replace_child for (self: AStarshipMethid, ANode, nullable ANode) */
3097 void nit__parser_prod___AStarshipMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3098 val
* var_old_child
/* var old_child: ANode */;
3099 val
* var_new_child
/* var new_child: nullable ANode */;
3100 val
* var
/* : Token */;
3101 short int var1
/* : Bool */;
3102 val
* var_other
/* var other: nullable Object */;
3103 short int var3
/* : Bool */;
3104 short int var5
/* : Bool */;
3105 short int var6
/* : Bool */;
3108 const char* var_class_name
;
3111 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarshipMethid> */
3112 if (unlikely(var
== NULL
)) {
3113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1960);
3118 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3119 var_other
= var_old_child
;
3121 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3122 var5
= var
== var_other
;
3134 /* <var_new_child:nullable ANode> isa TStarship */
3135 cltype
= type_nit__TStarship
.color
;
3136 idtype
= type_nit__TStarship
.id
;
3137 if(var_new_child
== NULL
) {
3140 if(cltype
>= var_new_child
->type
->table_size
) {
3143 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3146 if (unlikely(!var6
)) {
3147 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3148 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarship", var_class_name
);
3149 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1961);
3153 nit__parser_prod___AStarshipMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarshipMethid#n_op= on <self:AStarshipMethid>*/
3160 /* method parser_prod#AStarshipMethid#n_op= for (self: AStarshipMethid, Token) */
3161 void nit__parser_prod___AStarshipMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3162 val
* var_node
/* var node: Token */;
3164 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarshipMethid> */
3166 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3167 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3173 /* method parser_prod#AStarshipMethid#visit_all for (self: AStarshipMethid, Visitor) */
3174 void nit__parser_prod___AStarshipMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3175 val
* var_v
/* var v: Visitor */;
3176 val
* var
/* : Token */;
3178 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarshipMethid> */
3179 if (unlikely(var
== NULL
)) {
3180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3181 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1975);
3185 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3189 /* method parser_prod#APipeMethid#init_apipemethid for (self: APipeMethid, nullable TPipe) */
3190 void nit__parser_prod___APipeMethid___init_apipemethid(val
* self
, val
* p0
) {
3191 val
* var_n_op
/* var n_op: nullable TPipe */;
3193 { /* Inline kernel#Object#init (self) on <self:APipeMethid> */
3198 if (unlikely(var_n_op
== NULL
)) {
3199 PRINT_ERROR("Runtime error: %s", "Cast failed");
3200 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1983);
3203 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APipeMethid> */
3204 if (var_n_op
== NULL
) {
3205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3206 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1984);
3209 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPipe> */
3210 if (unlikely(var_n_op
== NULL
)) {
3211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3212 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3215 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPipe> */
3221 /* method parser_prod#APipeMethid#replace_child for (self: APipeMethid, ANode, nullable ANode) */
3222 void nit__parser_prod___APipeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3223 val
* var_old_child
/* var old_child: ANode */;
3224 val
* var_new_child
/* var new_child: nullable ANode */;
3225 val
* var
/* : Token */;
3226 short int var1
/* : Bool */;
3227 val
* var_other
/* var other: nullable Object */;
3228 short int var3
/* : Bool */;
3229 short int var5
/* : Bool */;
3230 short int var6
/* : Bool */;
3233 const char* var_class_name
;
3236 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APipeMethid> */
3237 if (unlikely(var
== NULL
)) {
3238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3239 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1989);
3243 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3244 var_other
= var_old_child
;
3246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3247 var5
= var
== var_other
;
3259 /* <var_new_child:nullable ANode> isa TPipe */
3260 cltype
= type_nit__TPipe
.color
;
3261 idtype
= type_nit__TPipe
.id
;
3262 if(var_new_child
== NULL
) {
3265 if(cltype
>= var_new_child
->type
->table_size
) {
3268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3271 if (unlikely(!var6
)) {
3272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name
);
3274 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1990);
3278 nit__parser_prod___APipeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APipeMethid#n_op= on <self:APipeMethid>*/
3285 /* method parser_prod#APipeMethid#n_op= for (self: APipeMethid, Token) */
3286 void nit__parser_prod___APipeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3287 val
* var_node
/* var node: Token */;
3289 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APipeMethid> */
3291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3292 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3298 /* method parser_prod#APipeMethid#visit_all for (self: APipeMethid, Visitor) */
3299 void nit__parser_prod___APipeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3300 val
* var_v
/* var v: Visitor */;
3301 val
* var
/* : Token */;
3303 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APipeMethid> */
3304 if (unlikely(var
== NULL
)) {
3305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2004);
3310 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3314 /* method parser_prod#ACaretMethid#init_acaretmethid for (self: ACaretMethid, nullable TCaret) */
3315 void nit__parser_prod___ACaretMethid___init_acaretmethid(val
* self
, val
* p0
) {
3316 val
* var_n_op
/* var n_op: nullable TCaret */;
3318 { /* Inline kernel#Object#init (self) on <self:ACaretMethid> */
3323 if (unlikely(var_n_op
== NULL
)) {
3324 PRINT_ERROR("Runtime error: %s", "Cast failed");
3325 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2012);
3328 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ACaretMethid> */
3329 if (var_n_op
== NULL
) {
3330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3331 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2013);
3334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TCaret> */
3335 if (unlikely(var_n_op
== NULL
)) {
3336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3337 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3340 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TCaret> */
3346 /* method parser_prod#ACaretMethid#replace_child for (self: ACaretMethid, ANode, nullable ANode) */
3347 void nit__parser_prod___ACaretMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3348 val
* var_old_child
/* var old_child: ANode */;
3349 val
* var_new_child
/* var new_child: nullable ANode */;
3350 val
* var
/* : Token */;
3351 short int var1
/* : Bool */;
3352 val
* var_other
/* var other: nullable Object */;
3353 short int var3
/* : Bool */;
3354 short int var5
/* : Bool */;
3355 short int var6
/* : Bool */;
3358 const char* var_class_name
;
3361 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ACaretMethid> */
3362 if (unlikely(var
== NULL
)) {
3363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3364 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2018);
3368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3369 var_other
= var_old_child
;
3371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3372 var5
= var
== var_other
;
3384 /* <var_new_child:nullable ANode> isa TCaret */
3385 cltype
= type_nit__TCaret
.color
;
3386 idtype
= type_nit__TCaret
.id
;
3387 if(var_new_child
== NULL
) {
3390 if(cltype
>= var_new_child
->type
->table_size
) {
3393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3396 if (unlikely(!var6
)) {
3397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name
);
3399 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2019);
3403 nit__parser_prod___ACaretMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretMethid#n_op= on <self:ACaretMethid>*/
3410 /* method parser_prod#ACaretMethid#n_op= for (self: ACaretMethid, Token) */
3411 void nit__parser_prod___ACaretMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3412 val
* var_node
/* var node: Token */;
3414 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ACaretMethid> */
3416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3417 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3423 /* method parser_prod#ACaretMethid#visit_all for (self: ACaretMethid, Visitor) */
3424 void nit__parser_prod___ACaretMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3425 val
* var_v
/* var v: Visitor */;
3426 val
* var
/* : Token */;
3428 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ACaretMethid> */
3429 if (unlikely(var
== NULL
)) {
3430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2033);
3435 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3439 /* method parser_prod#AAmpMethid#init_aampmethid for (self: AAmpMethid, nullable TAmp) */
3440 void nit__parser_prod___AAmpMethid___init_aampmethid(val
* self
, val
* p0
) {
3441 val
* var_n_op
/* var n_op: nullable TAmp */;
3443 { /* Inline kernel#Object#init (self) on <self:AAmpMethid> */
3448 if (unlikely(var_n_op
== NULL
)) {
3449 PRINT_ERROR("Runtime error: %s", "Cast failed");
3450 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2041);
3453 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AAmpMethid> */
3454 if (var_n_op
== NULL
) {
3455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3456 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2042);
3459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TAmp> */
3460 if (unlikely(var_n_op
== NULL
)) {
3461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3462 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3465 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TAmp> */
3471 /* method parser_prod#AAmpMethid#replace_child for (self: AAmpMethid, ANode, nullable ANode) */
3472 void nit__parser_prod___AAmpMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3473 val
* var_old_child
/* var old_child: ANode */;
3474 val
* var_new_child
/* var new_child: nullable ANode */;
3475 val
* var
/* : Token */;
3476 short int var1
/* : Bool */;
3477 val
* var_other
/* var other: nullable Object */;
3478 short int var3
/* : Bool */;
3479 short int var5
/* : Bool */;
3480 short int var6
/* : Bool */;
3483 const char* var_class_name
;
3486 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AAmpMethid> */
3487 if (unlikely(var
== NULL
)) {
3488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3489 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2047);
3493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3494 var_other
= var_old_child
;
3496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3497 var5
= var
== var_other
;
3509 /* <var_new_child:nullable ANode> isa TAmp */
3510 cltype
= type_nit__TAmp
.color
;
3511 idtype
= type_nit__TAmp
.id
;
3512 if(var_new_child
== NULL
) {
3515 if(cltype
>= var_new_child
->type
->table_size
) {
3518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3521 if (unlikely(!var6
)) {
3522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name
);
3524 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2048);
3528 nit__parser_prod___AAmpMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpMethid#n_op= on <self:AAmpMethid>*/
3535 /* method parser_prod#AAmpMethid#n_op= for (self: AAmpMethid, Token) */
3536 void nit__parser_prod___AAmpMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3537 val
* var_node
/* var node: Token */;
3539 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AAmpMethid> */
3541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3542 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3548 /* method parser_prod#AAmpMethid#visit_all for (self: AAmpMethid, Visitor) */
3549 void nit__parser_prod___AAmpMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3550 val
* var_v
/* var v: Visitor */;
3551 val
* var
/* : Token */;
3553 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AAmpMethid> */
3554 if (unlikely(var
== NULL
)) {
3555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2062);
3560 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3564 /* method parser_prod#ATildeMethid#init_atildemethid for (self: ATildeMethid, nullable TTilde) */
3565 void nit__parser_prod___ATildeMethid___init_atildemethid(val
* self
, val
* p0
) {
3566 val
* var_n_op
/* var n_op: nullable TTilde */;
3568 { /* Inline kernel#Object#init (self) on <self:ATildeMethid> */
3573 if (unlikely(var_n_op
== NULL
)) {
3574 PRINT_ERROR("Runtime error: %s", "Cast failed");
3575 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2070);
3578 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ATildeMethid> */
3579 if (var_n_op
== NULL
) {
3580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3581 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2071);
3584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TTilde> */
3585 if (unlikely(var_n_op
== NULL
)) {
3586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3587 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3590 var_n_op
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TTilde> */
3596 /* method parser_prod#ATildeMethid#replace_child for (self: ATildeMethid, ANode, nullable ANode) */
3597 void nit__parser_prod___ATildeMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3598 val
* var_old_child
/* var old_child: ANode */;
3599 val
* var_new_child
/* var new_child: nullable ANode */;
3600 val
* var
/* : Token */;
3601 short int var1
/* : Bool */;
3602 val
* var_other
/* var other: nullable Object */;
3603 short int var3
/* : Bool */;
3604 short int var5
/* : Bool */;
3605 short int var6
/* : Bool */;
3608 const char* var_class_name
;
3611 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ATildeMethid> */
3612 if (unlikely(var
== NULL
)) {
3613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3614 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2076);
3618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3619 var_other
= var_old_child
;
3621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3622 var5
= var
== var_other
;
3634 /* <var_new_child:nullable ANode> isa TTilde */
3635 cltype
= type_nit__TTilde
.color
;
3636 idtype
= type_nit__TTilde
.id
;
3637 if(var_new_child
== NULL
) {
3640 if(cltype
>= var_new_child
->type
->table_size
) {
3643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3646 if (unlikely(!var6
)) {
3647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name
);
3649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2077);
3653 nit__parser_prod___ATildeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ATildeMethid#n_op= on <self:ATildeMethid>*/
3660 /* method parser_prod#ATildeMethid#n_op= for (self: ATildeMethid, Token) */
3661 void nit__parser_prod___ATildeMethid___nit__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3662 val
* var_node
/* var node: Token */;
3664 self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ATildeMethid> */
3666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3667 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3673 /* method parser_prod#ATildeMethid#visit_all for (self: ATildeMethid, Visitor) */
3674 void nit__parser_prod___ATildeMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3675 val
* var_v
/* var v: Visitor */;
3676 val
* var
/* : Token */;
3678 var
= self
->attrs
[COLOR_nit__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ATildeMethid> */
3679 if (unlikely(var
== NULL
)) {
3680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3681 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2091);
3685 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3689 /* method parser_prod#ABraMethid#init_abramethid for (self: ABraMethid, nullable TObra, nullable TCbra) */
3690 void nit__parser_prod___ABraMethid___init_abramethid(val
* self
, val
* p0
, val
* p1
) {
3691 val
* var_n_obra
/* var n_obra: nullable TObra */;
3692 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
3694 { /* Inline kernel#Object#init (self) on <self:ABraMethid> */
3700 if (unlikely(var_n_obra
== NULL
)) {
3701 PRINT_ERROR("Runtime error: %s", "Cast failed");
3702 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2100);
3705 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraMethid> */
3706 if (var_n_obra
== NULL
) {
3707 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3708 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2101);
3711 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
3712 if (unlikely(var_n_obra
== NULL
)) {
3713 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3714 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3717 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
3721 if (unlikely(var_n_cbra
== NULL
)) {
3722 PRINT_ERROR("Runtime error: %s", "Cast failed");
3723 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2102);
3726 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraMethid> */
3727 if (var_n_cbra
== NULL
) {
3728 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3729 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2103);
3732 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
3733 if (unlikely(var_n_cbra
== NULL
)) {
3734 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3735 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3738 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
3744 /* method parser_prod#ABraMethid#replace_child for (self: ABraMethid, ANode, nullable ANode) */
3745 void nit__parser_prod___ABraMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3746 val
* var_old_child
/* var old_child: ANode */;
3747 val
* var_new_child
/* var new_child: nullable ANode */;
3748 val
* var
/* : TObra */;
3749 short int var1
/* : Bool */;
3750 val
* var_other
/* var other: nullable Object */;
3751 short int var3
/* : Bool */;
3752 short int var5
/* : Bool */;
3753 short int var6
/* : Bool */;
3756 const char* var_class_name
;
3757 val
* var7
/* : TCbra */;
3758 short int var8
/* : Bool */;
3759 short int var10
/* : Bool */;
3760 short int var12
/* : Bool */;
3761 short int var13
/* : Bool */;
3764 const char* var_class_name16
;
3767 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
3768 if (unlikely(var
== NULL
)) {
3769 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3770 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2108);
3774 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
3775 var_other
= var_old_child
;
3777 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
3778 var5
= var
== var_other
;
3790 /* <var_new_child:nullable ANode> isa TObra */
3791 cltype
= type_nit__TObra
.color
;
3792 idtype
= type_nit__TObra
.id
;
3793 if(var_new_child
== NULL
) {
3796 if(cltype
>= var_new_child
->type
->table_size
) {
3799 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3802 if (unlikely(!var6
)) {
3803 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3804 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
3805 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2109);
3809 nit__parser_prod___ABraMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_obra= on <self:ABraMethid>*/
3814 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
3815 if (unlikely(var7
== NULL
)) {
3816 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3817 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2112);
3821 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
3822 var_other
= var_old_child
;
3824 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
3825 var12
= var7
== var_other
;
3828 RET_LABEL11
:(void)0;
3837 /* <var_new_child:nullable ANode> isa TCbra */
3838 cltype14
= type_nit__TCbra
.color
;
3839 idtype15
= type_nit__TCbra
.id
;
3840 if(var_new_child
== NULL
) {
3843 if(cltype14
>= var_new_child
->type
->table_size
) {
3846 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3849 if (unlikely(!var13
)) {
3850 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3851 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
3852 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2113);
3856 nit__parser_prod___ABraMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_cbra= on <self:ABraMethid>*/
3863 /* method parser_prod#ABraMethid#n_obra= for (self: ABraMethid, TObra) */
3864 void nit__parser_prod___ABraMethid___n_obra_61d(val
* self
, val
* p0
) {
3865 val
* var_node
/* var node: TObra */;
3867 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraMethid> */
3869 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
3870 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
3876 /* method parser_prod#ABraMethid#n_cbra= for (self: ABraMethid, TCbra) */
3877 void nit__parser_prod___ABraMethid___n_cbra_61d(val
* self
, val
* p0
) {
3878 val
* var_node
/* var node: TCbra */;
3880 self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraMethid> */
3882 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
3883 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
3889 /* method parser_prod#ABraMethid#visit_all for (self: ABraMethid, Visitor) */
3890 void nit__parser_prod___ABraMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3891 val
* var_v
/* var v: Visitor */;
3892 val
* var
/* : TObra */;
3893 val
* var1
/* : TCbra */;
3895 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
3896 if (unlikely(var
== NULL
)) {
3897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3898 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2132);
3902 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3904 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
3905 if (unlikely(var1
== NULL
)) {
3906 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3907 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2133);
3911 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3915 /* method parser_prod#AAssignMethid#init_aassignmethid for (self: AAssignMethid, nullable TId, nullable TAssign) */
3916 void nit__parser_prod___AAssignMethid___init_aassignmethid(val
* self
, val
* p0
, val
* p1
) {
3917 val
* var_n_id
/* var n_id: nullable TId */;
3918 val
* var_n_assign
/* var n_assign: nullable TAssign */;
3920 { /* Inline kernel#Object#init (self) on <self:AAssignMethid> */
3926 if (unlikely(var_n_id
== NULL
)) {
3927 PRINT_ERROR("Runtime error: %s", "Cast failed");
3928 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2142);
3931 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AAssignMethid> */
3932 if (var_n_id
== NULL
) {
3933 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3934 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2143);
3937 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3938 if (unlikely(var_n_id
== NULL
)) {
3939 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3940 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3943 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3947 if (unlikely(var_n_assign
== NULL
)) {
3948 PRINT_ERROR("Runtime error: %s", "Cast failed");
3949 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2144);
3952 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAssignMethid> */
3953 if (var_n_assign
== NULL
) {
3954 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3955 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2145);
3958 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
3959 if (unlikely(var_n_assign
== NULL
)) {
3960 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3961 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
3964 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
3970 /* method parser_prod#AAssignMethid#replace_child for (self: AAssignMethid, ANode, nullable ANode) */
3971 void nit__parser_prod___AAssignMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3972 val
* var_old_child
/* var old_child: ANode */;
3973 val
* var_new_child
/* var new_child: nullable ANode */;
3974 val
* var
/* : TId */;
3975 short int var1
/* : Bool */;
3976 val
* var_other
/* var other: nullable Object */;
3977 short int var3
/* : Bool */;
3978 short int var5
/* : Bool */;
3979 short int var6
/* : Bool */;
3982 const char* var_class_name
;
3983 val
* var7
/* : TAssign */;
3984 short int var8
/* : Bool */;
3985 short int var10
/* : Bool */;
3986 short int var12
/* : Bool */;
3987 short int var13
/* : Bool */;
3990 const char* var_class_name16
;
3993 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
3994 if (unlikely(var
== NULL
)) {
3995 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3996 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2150);
4000 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
4001 var_other
= var_old_child
;
4003 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
4004 var5
= var
== var_other
;
4016 /* <var_new_child:nullable ANode> isa TId */
4017 cltype
= type_nit__TId
.color
;
4018 idtype
= type_nit__TId
.id
;
4019 if(var_new_child
== NULL
) {
4022 if(cltype
>= var_new_child
->type
->table_size
) {
4025 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4028 if (unlikely(!var6
)) {
4029 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4030 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
4031 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2151);
4035 nit__parser_prod___AAssignMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_id= on <self:AAssignMethid>*/
4040 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
4041 if (unlikely(var7
== NULL
)) {
4042 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4043 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2154);
4047 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
4048 var_other
= var_old_child
;
4050 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
4051 var12
= var7
== var_other
;
4054 RET_LABEL11
:(void)0;
4063 /* <var_new_child:nullable ANode> isa TAssign */
4064 cltype14
= type_nit__TAssign
.color
;
4065 idtype15
= type_nit__TAssign
.id
;
4066 if(var_new_child
== NULL
) {
4069 if(cltype14
>= var_new_child
->type
->table_size
) {
4072 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4075 if (unlikely(!var13
)) {
4076 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4077 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
4078 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2155);
4082 nit__parser_prod___AAssignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_assign= on <self:AAssignMethid>*/
4089 /* method parser_prod#AAssignMethid#n_id= for (self: AAssignMethid, TId) */
4090 void nit__parser_prod___AAssignMethid___n_id_61d(val
* self
, val
* p0
) {
4091 val
* var_node
/* var node: TId */;
4093 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
= var_node
; /* _n_id on <self:AAssignMethid> */
4095 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4096 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4102 /* method parser_prod#AAssignMethid#n_assign= for (self: AAssignMethid, TAssign) */
4103 void nit__parser_prod___AAssignMethid___n_assign_61d(val
* self
, val
* p0
) {
4104 val
* var_node
/* var node: TAssign */;
4106 self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:AAssignMethid> */
4108 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4109 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4115 /* method parser_prod#AAssignMethid#visit_all for (self: AAssignMethid, Visitor) */
4116 void nit__parser_prod___AAssignMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4117 val
* var_v
/* var v: Visitor */;
4118 val
* var
/* : TId */;
4119 val
* var1
/* : TAssign */;
4121 var
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
4122 if (unlikely(var
== NULL
)) {
4123 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4124 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2174);
4128 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4130 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
4131 if (unlikely(var1
== NULL
)) {
4132 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4133 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2175);
4137 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4141 /* method parser_prod#ABraassignMethid#init_abraassignmethid for (self: ABraassignMethid, nullable TObra, nullable TCbra, nullable TAssign) */
4142 void nit__parser_prod___ABraassignMethid___init_abraassignmethid(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4143 val
* var_n_obra
/* var n_obra: nullable TObra */;
4144 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
4145 val
* var_n_assign
/* var n_assign: nullable TAssign */;
4147 { /* Inline kernel#Object#init (self) on <self:ABraassignMethid> */
4154 if (unlikely(var_n_obra
== NULL
)) {
4155 PRINT_ERROR("Runtime error: %s", "Cast failed");
4156 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2185);
4159 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraassignMethid> */
4160 if (var_n_obra
== NULL
) {
4161 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2186);
4165 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
4166 if (unlikely(var_n_obra
== NULL
)) {
4167 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4168 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4171 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
4175 if (unlikely(var_n_cbra
== NULL
)) {
4176 PRINT_ERROR("Runtime error: %s", "Cast failed");
4177 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2187);
4180 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraassignMethid> */
4181 if (var_n_cbra
== NULL
) {
4182 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4183 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2188);
4186 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
4187 if (unlikely(var_n_cbra
== NULL
)) {
4188 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4189 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4192 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
4196 if (unlikely(var_n_assign
== NULL
)) {
4197 PRINT_ERROR("Runtime error: %s", "Cast failed");
4198 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2189);
4201 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraassignMethid> */
4202 if (var_n_assign
== NULL
) {
4203 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4204 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2190);
4207 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
4208 if (unlikely(var_n_assign
== NULL
)) {
4209 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4210 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4213 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
4219 /* method parser_prod#ABraassignMethid#replace_child for (self: ABraassignMethid, ANode, nullable ANode) */
4220 void nit__parser_prod___ABraassignMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4221 val
* var_old_child
/* var old_child: ANode */;
4222 val
* var_new_child
/* var new_child: nullable ANode */;
4223 val
* var
/* : TObra */;
4224 short int var1
/* : Bool */;
4225 val
* var_other
/* var other: nullable Object */;
4226 short int var3
/* : Bool */;
4227 short int var5
/* : Bool */;
4228 short int var6
/* : Bool */;
4231 const char* var_class_name
;
4232 val
* var7
/* : TCbra */;
4233 short int var8
/* : Bool */;
4234 short int var10
/* : Bool */;
4235 short int var12
/* : Bool */;
4236 short int var13
/* : Bool */;
4239 const char* var_class_name16
;
4240 val
* var17
/* : TAssign */;
4241 short int var18
/* : Bool */;
4242 short int var20
/* : Bool */;
4243 short int var22
/* : Bool */;
4244 short int var23
/* : Bool */;
4247 const char* var_class_name26
;
4250 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
4251 if (unlikely(var
== NULL
)) {
4252 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4253 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2195);
4257 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
4258 var_other
= var_old_child
;
4260 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
4261 var5
= var
== var_other
;
4273 /* <var_new_child:nullable ANode> isa TObra */
4274 cltype
= type_nit__TObra
.color
;
4275 idtype
= type_nit__TObra
.id
;
4276 if(var_new_child
== NULL
) {
4279 if(cltype
>= var_new_child
->type
->table_size
) {
4282 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4285 if (unlikely(!var6
)) {
4286 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4287 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
4288 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2196);
4292 nit__parser_prod___ABraassignMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_obra= on <self:ABraassignMethid>*/
4297 var7
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
4298 if (unlikely(var7
== NULL
)) {
4299 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4300 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2199);
4304 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
4305 var_other
= var_old_child
;
4307 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
4308 var12
= var7
== var_other
;
4311 RET_LABEL11
:(void)0;
4320 /* <var_new_child:nullable ANode> isa TCbra */
4321 cltype14
= type_nit__TCbra
.color
;
4322 idtype15
= type_nit__TCbra
.id
;
4323 if(var_new_child
== NULL
) {
4326 if(cltype14
>= var_new_child
->type
->table_size
) {
4329 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4332 if (unlikely(!var13
)) {
4333 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4334 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
4335 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2200);
4339 nit__parser_prod___ABraassignMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_cbra= on <self:ABraassignMethid>*/
4344 var17
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
4345 if (unlikely(var17
== NULL
)) {
4346 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4347 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2203);
4351 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
4352 var_other
= var_old_child
;
4354 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
4355 var22
= var17
== var_other
;
4358 RET_LABEL21
:(void)0;
4363 RET_LABEL19
:(void)0;
4367 /* <var_new_child:nullable ANode> isa TAssign */
4368 cltype24
= type_nit__TAssign
.color
;
4369 idtype25
= type_nit__TAssign
.id
;
4370 if(var_new_child
== NULL
) {
4373 if(cltype24
>= var_new_child
->type
->table_size
) {
4376 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4379 if (unlikely(!var23
)) {
4380 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4381 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
4382 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2204);
4386 nit__parser_prod___ABraassignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_assign= on <self:ABraassignMethid>*/
4393 /* method parser_prod#ABraassignMethid#n_obra= for (self: ABraassignMethid, TObra) */
4394 void nit__parser_prod___ABraassignMethid___n_obra_61d(val
* self
, val
* p0
) {
4395 val
* var_node
/* var node: TObra */;
4397 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraassignMethid> */
4399 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
4400 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
4406 /* method parser_prod#ABraassignMethid#n_cbra= for (self: ABraassignMethid, TCbra) */
4407 void nit__parser_prod___ABraassignMethid___n_cbra_61d(val
* self
, val
* p0
) {
4408 val
* var_node
/* var node: TCbra */;
4410 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraassignMethid> */
4412 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
4413 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
4419 /* method parser_prod#ABraassignMethid#n_assign= for (self: ABraassignMethid, TAssign) */
4420 void nit__parser_prod___ABraassignMethid___n_assign_61d(val
* self
, val
* p0
) {
4421 val
* var_node
/* var node: TAssign */;
4423 self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:ABraassignMethid> */
4425 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4426 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4432 /* method parser_prod#ABraassignMethid#visit_all for (self: ABraassignMethid, Visitor) */
4433 void nit__parser_prod___ABraassignMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4434 val
* var_v
/* var v: Visitor */;
4435 val
* var
/* : TObra */;
4436 val
* var1
/* : TCbra */;
4437 val
* var2
/* : TAssign */;
4439 var
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
4440 if (unlikely(var
== NULL
)) {
4441 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4442 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2228);
4446 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4448 var1
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
4449 if (unlikely(var1
== NULL
)) {
4450 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4451 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2229);
4455 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4457 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
4458 if (unlikely(var2
== NULL
)) {
4459 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4460 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2230);
4464 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4468 /* method parser_prod#ASignature#init_asignature for (self: ASignature, nullable TOpar, Collection[Object], nullable TCpar, nullable AType) */
4469 void nit__parser_prod___ASignature___init_asignature(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4470 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4471 val
* var_n_params
/* var n_params: Collection[Object] */;
4472 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4473 val
* var_n_type
/* var n_type: nullable AType */;
4474 short int var
/* : Bool */;
4475 short int var2
/* : Bool */;
4476 val
* var_other
/* var other: nullable Object */;
4477 short int var4
/* : Bool */;
4478 short int var5
/* : Bool */;
4479 val
* var7
/* : ANodes[AParam] */;
4480 val
* var9
/* : ANodes[AParam] */;
4481 short int var10
/* : Bool */;
4482 short int var11
/* : Bool */;
4483 short int var13
/* : Bool */;
4484 short int var14
/* : Bool */;
4485 short int var16
/* : Bool */;
4486 short int var17
/* : Bool */;
4487 short int var19
/* : Bool */;
4488 short int var20
/* : Bool */;
4490 { /* Inline kernel#Object#init (self) on <self:ASignature> */
4498 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
= var_n_opar
; /* _n_opar on <self:ASignature> */
4499 if (var_n_opar
== NULL
) {
4500 var
= 0; /* is null */
4502 var
= 1; /* arg is null and recv is not */
4505 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
4506 var_other
= ((val
*)NULL
);
4508 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
4519 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
4520 var_n_opar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
4527 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
4528 var9
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
4529 if (unlikely(var9
== NULL
)) {
4530 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
4531 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1693);
4539 nit___nit__ANodes___unsafe_add_all(var7
, var_n_params
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[AParam]>*/
4541 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:ASignature> */
4542 if (var_n_cpar
== NULL
) {
4543 var10
= 0; /* is null */
4545 var10
= 1; /* arg is null and recv is not */
4548 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
4549 var_other
= ((val
*)NULL
);
4551 var13
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
4556 RET_LABEL12
:(void)0;
4562 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
4563 var_n_cpar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
4564 RET_LABEL15
:(void)0;
4569 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
= var_n_type
; /* _n_type on <self:ASignature> */
4570 if (var_n_type
== NULL
) {
4571 var16
= 0; /* is null */
4573 var16
= 1; /* arg is null and recv is not */
4576 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
4577 var_other
= ((val
*)NULL
);
4579 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
4584 RET_LABEL18
:(void)0;
4590 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
4591 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
4592 RET_LABEL21
:(void)0;
4599 /* method parser_prod#ASignature#replace_child for (self: ASignature, ANode, nullable ANode) */
4600 void nit__parser_prod___ASignature___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4601 val
* var_old_child
/* var old_child: ANode */;
4602 val
* var_new_child
/* var new_child: nullable ANode */;
4603 val
* var
/* : nullable TOpar */;
4604 short int var1
/* : Bool */;
4605 short int var2
/* : Bool */;
4606 val
* var_other
/* var other: nullable Object */;
4607 short int var4
/* : Bool */;
4608 short int var6
/* : Bool */;
4609 short int var7
/* : Bool */;
4612 const char* var_class_name
;
4613 val
* var8
/* : ANodes[AParam] */;
4614 val
* var10
/* : ANodes[AParam] */;
4615 short int var11
/* : Bool */;
4616 val
* var12
/* : nullable TCpar */;
4617 short int var13
/* : Bool */;
4618 short int var14
/* : Bool */;
4619 short int var16
/* : Bool */;
4620 short int var18
/* : Bool */;
4621 short int var19
/* : Bool */;
4624 const char* var_class_name22
;
4625 val
* var23
/* : nullable AType */;
4626 short int var24
/* : Bool */;
4627 short int var25
/* : Bool */;
4628 short int var27
/* : Bool */;
4629 short int var29
/* : Bool */;
4630 short int var30
/* : Bool */;
4633 const char* var_class_name33
;
4636 var
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
4638 var1
= 0; /* <var_old_child:ANode> cannot be null */
4640 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TOpar> */
4641 var_other
= var_old_child
;
4643 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TOpar(TOpar)> */
4644 var6
= var
== var_other
;
4657 /* <var_new_child:nullable ANode> isa nullable TOpar */
4658 cltype
= type_nullable__nit__TOpar
.color
;
4659 idtype
= type_nullable__nit__TOpar
.id
;
4660 if(var_new_child
== NULL
) {
4663 if(cltype
>= var_new_child
->type
->table_size
) {
4666 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4669 if (unlikely(!var7
)) {
4670 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4671 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name
);
4672 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2253);
4676 nit__parser_prod___ASignature___n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_opar= on <self:ASignature>*/
4682 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
4683 var10
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
4684 if (unlikely(var10
== NULL
)) {
4685 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
4686 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1693);
4694 var11
= nit___nit__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
4700 var12
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
4701 if (var12
== NULL
) {
4702 var13
= 0; /* <var_old_child:ANode> cannot be null */
4704 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:nullable TCpar> */
4705 var_other
= var_old_child
;
4707 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:nullable TCpar(TCpar)> */
4708 var18
= var12
== var_other
;
4711 RET_LABEL17
:(void)0;
4716 RET_LABEL15
:(void)0;
4721 /* <var_new_child:nullable ANode> isa nullable TCpar */
4722 cltype20
= type_nullable__nit__TCpar
.color
;
4723 idtype21
= type_nullable__nit__TCpar
.id
;
4724 if(var_new_child
== NULL
) {
4727 if(cltype20
>= var_new_child
->type
->table_size
) {
4730 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
4733 if (unlikely(!var19
)) {
4734 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4735 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name22
);
4736 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2258);
4740 nit__parser_prod___ASignature___n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_cpar= on <self:ASignature>*/
4745 var23
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
4746 if (var23
== NULL
) {
4747 var24
= 0; /* <var_old_child:ANode> cannot be null */
4749 { /* Inline kernel#Object#== (var23,var_old_child) on <var23:nullable AType> */
4750 var_other
= var_old_child
;
4752 { /* Inline kernel#Object#is_same_instance (var23,var_other) on <var23:nullable AType(AType)> */
4753 var29
= var23
== var_other
;
4756 RET_LABEL28
:(void)0;
4761 RET_LABEL26
:(void)0;
4766 /* <var_new_child:nullable ANode> isa nullable AType */
4767 cltype31
= type_nullable__nit__AType
.color
;
4768 idtype32
= type_nullable__nit__AType
.id
;
4769 if(var_new_child
== NULL
) {
4772 if(cltype31
>= var_new_child
->type
->table_size
) {
4775 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
4778 if (unlikely(!var30
)) {
4779 var_class_name33
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4780 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name33
);
4781 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2262);
4785 nit__parser_prod___ASignature___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_type= on <self:ASignature>*/
4792 /* method parser_prod#ASignature#n_opar= for (self: ASignature, nullable TOpar) */
4793 void nit__parser_prod___ASignature___n_opar_61d(val
* self
, val
* p0
) {
4794 val
* var_node
/* var node: nullable TOpar */;
4795 short int var
/* : Bool */;
4796 short int var1
/* : Bool */;
4797 val
* var_other
/* var other: nullable Object */;
4798 short int var3
/* : Bool */;
4799 short int var4
/* : Bool */;
4801 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
= var_node
; /* _n_opar on <self:ASignature> */
4802 if (var_node
== NULL
) {
4803 var
= 0; /* is null */
4805 var
= 1; /* arg is null and recv is not */
4808 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
4809 var_other
= ((val
*)NULL
);
4811 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TOpar(TOpar)>*/
4822 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
4823 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
4831 /* method parser_prod#ASignature#n_cpar= for (self: ASignature, nullable TCpar) */
4832 void nit__parser_prod___ASignature___n_cpar_61d(val
* self
, val
* p0
) {
4833 val
* var_node
/* var node: nullable TCpar */;
4834 short int var
/* : Bool */;
4835 short int var1
/* : Bool */;
4836 val
* var_other
/* var other: nullable Object */;
4837 short int var3
/* : Bool */;
4838 short int var4
/* : Bool */;
4840 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
= var_node
; /* _n_cpar on <self:ASignature> */
4841 if (var_node
== NULL
) {
4842 var
= 0; /* is null */
4844 var
= 1; /* arg is null and recv is not */
4847 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
4848 var_other
= ((val
*)NULL
);
4850 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TCpar(TCpar)>*/
4861 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
4862 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
4870 /* method parser_prod#ASignature#n_type= for (self: ASignature, nullable AType) */
4871 void nit__parser_prod___ASignature___n_type_61d(val
* self
, val
* p0
) {
4872 val
* var_node
/* var node: nullable AType */;
4873 short int var
/* : Bool */;
4874 short int var1
/* : Bool */;
4875 val
* var_other
/* var other: nullable Object */;
4876 short int var3
/* : Bool */;
4877 short int var4
/* : Bool */;
4879 self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
= var_node
; /* _n_type on <self:ASignature> */
4880 if (var_node
== NULL
) {
4881 var
= 0; /* is null */
4883 var
= 1; /* arg is null and recv is not */
4886 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
4887 var_other
= ((val
*)NULL
);
4889 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
4900 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
4901 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
4909 /* method parser_prod#ASignature#visit_all for (self: ASignature, Visitor) */
4910 void nit__parser_prod___ASignature___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4911 val
* var_v
/* var v: Visitor */;
4912 val
* var
/* : nullable TOpar */;
4913 val
* var1
/* : ANodes[AParam] */;
4914 val
* var3
/* : ANodes[AParam] */;
4915 val
* var4
/* : nullable TCpar */;
4916 val
* var5
/* : nullable AType */;
4918 var
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
4920 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4923 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
4924 var3
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
4925 if (unlikely(var3
== NULL
)) {
4926 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
4927 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1693);
4935 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AParam]>*/
4937 var4
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
4939 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4941 var5
= self
->attrs
[COLOR_nit__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
4943 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4947 /* method parser_prod#AParam#init_aparam for (self: AParam, nullable TId, nullable AType, nullable TDotdotdot, nullable AAnnotations) */
4948 void nit__parser_prod___AParam___init_aparam(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4949 val
* var_n_id
/* var n_id: nullable TId */;
4950 val
* var_n_type
/* var n_type: nullable AType */;
4951 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
4952 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4953 short int var
/* : Bool */;
4954 short int var3
/* : Bool */;
4955 val
* var_other
/* var other: nullable Object */;
4956 short int var5
/* : Bool */;
4957 short int var6
/* : Bool */;
4958 short int var8
/* : Bool */;
4959 short int var9
/* : Bool */;
4960 short int var11
/* : Bool */;
4961 short int var12
/* : Bool */;
4962 short int var14
/* : Bool */;
4963 short int var15
/* : Bool */;
4964 short int var17
/* : Bool */;
4965 short int var18
/* : Bool */;
4967 { /* Inline kernel#Object#init (self) on <self:AParam> */
4973 var_n_dotdotdot
= p2
;
4974 var_n_annotations
= p3
;
4975 if (unlikely(var_n_id
== NULL
)) {
4976 PRINT_ERROR("Runtime error: %s", "Cast failed");
4977 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2300);
4980 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
= var_n_id
; /* _n_id on <self:AParam> */
4981 if (var_n_id
== NULL
) {
4982 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4983 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2301);
4986 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
4987 if (unlikely(var_n_id
== NULL
)) {
4988 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4989 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
4992 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
4996 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
= var_n_type
; /* _n_type on <self:AParam> */
4997 if (var_n_type
== NULL
) {
4998 var
= 0; /* is null */
5000 var
= 1; /* arg is null and recv is not */
5003 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
5004 var_other
= ((val
*)NULL
);
5006 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
5017 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5018 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5024 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AParam> */
5025 if (var_n_dotdotdot
== NULL
) {
5026 var8
= 0; /* is null */
5028 var8
= 1; /* arg is null and recv is not */
5031 { /* Inline kernel#Object#!= (var_n_dotdotdot,((val*)NULL)) on <var_n_dotdotdot:nullable TDotdotdot> */
5032 var_other
= ((val
*)NULL
);
5034 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_dotdotdot
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_dotdotdot
, var_other
); /* == on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)>*/
5039 RET_LABEL10
:(void)0;
5045 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
5046 var_n_dotdotdot
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
5047 RET_LABEL13
:(void)0;
5052 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParam> */
5053 if (var_n_annotations
== NULL
) {
5054 var14
= 0; /* is null */
5056 var14
= 1; /* arg is null and recv is not */
5059 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
5060 var_other
= ((val
*)NULL
);
5062 var17
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
5067 RET_LABEL16
:(void)0;
5073 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5074 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5075 RET_LABEL19
:(void)0;
5082 /* method parser_prod#AParam#replace_child for (self: AParam, ANode, nullable ANode) */
5083 void nit__parser_prod___AParam___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5084 val
* var_old_child
/* var old_child: ANode */;
5085 val
* var_new_child
/* var new_child: nullable ANode */;
5086 val
* var
/* : TId */;
5087 short int var1
/* : Bool */;
5088 val
* var_other
/* var other: nullable Object */;
5089 short int var3
/* : Bool */;
5090 short int var5
/* : Bool */;
5091 short int var6
/* : Bool */;
5094 const char* var_class_name
;
5095 val
* var7
/* : nullable AType */;
5096 short int var8
/* : Bool */;
5097 short int var9
/* : Bool */;
5098 short int var11
/* : Bool */;
5099 short int var13
/* : Bool */;
5100 short int var14
/* : Bool */;
5103 const char* var_class_name17
;
5104 val
* var18
/* : nullable TDotdotdot */;
5105 short int var19
/* : Bool */;
5106 short int var20
/* : Bool */;
5107 short int var22
/* : Bool */;
5108 short int var24
/* : Bool */;
5109 short int var25
/* : Bool */;
5112 const char* var_class_name28
;
5113 val
* var29
/* : nullable AAnnotations */;
5114 short int var30
/* : Bool */;
5115 short int var31
/* : Bool */;
5116 short int var33
/* : Bool */;
5117 short int var35
/* : Bool */;
5118 short int var36
/* : Bool */;
5121 const char* var_class_name39
;
5124 var
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
5125 if (unlikely(var
== NULL
)) {
5126 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5127 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2312);
5131 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
5132 var_other
= var_old_child
;
5134 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
5135 var5
= var
== var_other
;
5147 /* <var_new_child:nullable ANode> isa TId */
5148 cltype
= type_nit__TId
.color
;
5149 idtype
= type_nit__TId
.id
;
5150 if(var_new_child
== NULL
) {
5153 if(cltype
>= var_new_child
->type
->table_size
) {
5156 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5159 if (unlikely(!var6
)) {
5160 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5161 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
5162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2313);
5166 nit__parser_prod___AParam___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_id= on <self:AParam>*/
5171 var7
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
5173 var8
= 0; /* <var_old_child:ANode> cannot be null */
5175 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AType> */
5176 var_other
= var_old_child
;
5178 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AType(AType)> */
5179 var13
= var7
== var_other
;
5182 RET_LABEL12
:(void)0;
5187 RET_LABEL10
:(void)0;
5192 /* <var_new_child:nullable ANode> isa nullable AType */
5193 cltype15
= type_nullable__nit__AType
.color
;
5194 idtype16
= type_nullable__nit__AType
.id
;
5195 if(var_new_child
== NULL
) {
5198 if(cltype15
>= var_new_child
->type
->table_size
) {
5201 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5204 if (unlikely(!var14
)) {
5205 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5206 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17
);
5207 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2317);
5211 nit__parser_prod___AParam___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_type= on <self:AParam>*/
5216 var18
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
5217 if (var18
== NULL
) {
5218 var19
= 0; /* <var_old_child:ANode> cannot be null */
5220 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable TDotdotdot> */
5221 var_other
= var_old_child
;
5223 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable TDotdotdot(TDotdotdot)> */
5224 var24
= var18
== var_other
;
5227 RET_LABEL23
:(void)0;
5232 RET_LABEL21
:(void)0;
5237 /* <var_new_child:nullable ANode> isa nullable TDotdotdot */
5238 cltype26
= type_nullable__nit__TDotdotdot
.color
;
5239 idtype27
= type_nullable__nit__TDotdotdot
.id
;
5240 if(var_new_child
== NULL
) {
5243 if(cltype26
>= var_new_child
->type
->table_size
) {
5246 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
5249 if (unlikely(!var25
)) {
5250 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5251 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDotdotdot", var_class_name28
);
5252 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2321);
5256 nit__parser_prod___AParam___n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_dotdotdot= on <self:AParam>*/
5261 var29
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
5262 if (var29
== NULL
) {
5263 var30
= 0; /* <var_old_child:ANode> cannot be null */
5265 { /* Inline kernel#Object#== (var29,var_old_child) on <var29:nullable AAnnotations> */
5266 var_other
= var_old_child
;
5268 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:nullable AAnnotations(AAnnotations)> */
5269 var35
= var29
== var_other
;
5272 RET_LABEL34
:(void)0;
5277 RET_LABEL32
:(void)0;
5282 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5283 cltype37
= type_nullable__nit__AAnnotations
.color
;
5284 idtype38
= type_nullable__nit__AAnnotations
.id
;
5285 if(var_new_child
== NULL
) {
5288 if(cltype37
>= var_new_child
->type
->table_size
) {
5291 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
5294 if (unlikely(!var36
)) {
5295 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5296 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name39
);
5297 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2325);
5301 nit__parser_prod___AParam___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_annotations= on <self:AParam>*/
5308 /* method parser_prod#AParam#n_id= for (self: AParam, TId) */
5309 void nit__parser_prod___AParam___n_id_61d(val
* self
, val
* p0
) {
5310 val
* var_node
/* var node: TId */;
5312 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
= var_node
; /* _n_id on <self:AParam> */
5314 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
5315 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
5321 /* method parser_prod#AParam#n_type= for (self: AParam, nullable AType) */
5322 void nit__parser_prod___AParam___n_type_61d(val
* self
, val
* p0
) {
5323 val
* var_node
/* var node: nullable AType */;
5324 short int var
/* : Bool */;
5325 short int var1
/* : Bool */;
5326 val
* var_other
/* var other: nullable Object */;
5327 short int var3
/* : Bool */;
5328 short int var4
/* : Bool */;
5330 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
= var_node
; /* _n_type on <self:AParam> */
5331 if (var_node
== NULL
) {
5332 var
= 0; /* is null */
5334 var
= 1; /* arg is null and recv is not */
5337 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
5338 var_other
= ((val
*)NULL
);
5340 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
5351 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
5352 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
5360 /* method parser_prod#AParam#n_dotdotdot= for (self: AParam, nullable TDotdotdot) */
5361 void nit__parser_prod___AParam___n_dotdotdot_61d(val
* self
, val
* p0
) {
5362 val
* var_node
/* var node: nullable TDotdotdot */;
5363 short int var
/* : Bool */;
5364 short int var1
/* : Bool */;
5365 val
* var_other
/* var other: nullable Object */;
5366 short int var3
/* : Bool */;
5367 short int var4
/* : Bool */;
5369 self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AParam> */
5370 if (var_node
== NULL
) {
5371 var
= 0; /* is null */
5373 var
= 1; /* arg is null and recv is not */
5376 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TDotdotdot> */
5377 var_other
= ((val
*)NULL
);
5379 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TDotdotdot(TDotdotdot)>*/
5390 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDotdotdot(TDotdotdot)> */
5391 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDotdotdot(TDotdotdot)> */
5399 /* method parser_prod#AParam#n_annotations= for (self: AParam, nullable AAnnotations) */
5400 void nit__parser_prod___AParam___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
5401 val
* var_node
/* var node: nullable AAnnotations */;
5402 short int var
/* : Bool */;
5403 short int var1
/* : Bool */;
5404 val
* var_other
/* var other: nullable Object */;
5405 short int var3
/* : Bool */;
5406 short int var4
/* : Bool */;
5408 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParam> */
5409 if (var_node
== NULL
) {
5410 var
= 0; /* is null */
5412 var
= 1; /* arg is null and recv is not */
5415 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
5416 var_other
= ((val
*)NULL
);
5418 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
5429 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5430 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5438 /* method parser_prod#AParam#visit_all for (self: AParam, Visitor) */
5439 void nit__parser_prod___AParam___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5440 val
* var_v
/* var v: Visitor */;
5441 val
* var
/* : TId */;
5442 val
* var1
/* : nullable AType */;
5443 val
* var2
/* : nullable TDotdotdot */;
5444 val
* var3
/* : nullable AAnnotations */;
5446 var
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
5447 if (unlikely(var
== NULL
)) {
5448 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5449 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2354);
5453 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5455 var1
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
5457 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5459 var2
= self
->attrs
[COLOR_nit__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
5461 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5463 var3
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
5465 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5469 /* method parser_prod#AType#init_atype for (self: AType, nullable TKwnullable, nullable TClassid, nullable TObra, Collection[Object], nullable TCbra, nullable AAnnotations) */
5470 void nit__parser_prod___AType___init_atype(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
5471 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
5472 val
* var_n_id
/* var n_id: nullable TClassid */;
5473 val
* var_n_obra
/* var n_obra: nullable TObra */;
5474 val
* var_n_types
/* var n_types: Collection[Object] */;
5475 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
5476 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5477 short int var
/* : Bool */;
5478 short int var2
/* : Bool */;
5479 val
* var_other
/* var other: nullable Object */;
5480 short int var4
/* : Bool */;
5481 short int var5
/* : Bool */;
5482 short int var8
/* : Bool */;
5483 short int var9
/* : Bool */;
5484 short int var11
/* : Bool */;
5485 short int var12
/* : Bool */;
5486 val
* var14
/* : ANodes[AType] */;
5487 val
* var16
/* : ANodes[AType] */;
5488 short int var17
/* : Bool */;
5489 short int var18
/* : Bool */;
5490 short int var20
/* : Bool */;
5491 short int var21
/* : Bool */;
5492 short int var23
/* : Bool */;
5493 short int var24
/* : Bool */;
5494 short int var26
/* : Bool */;
5495 short int var27
/* : Bool */;
5497 { /* Inline kernel#Object#init (self) on <self:AType> */
5501 var_n_kwnullable
= p0
;
5506 var_n_annotations
= p5
;
5507 self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AType> */
5508 if (var_n_kwnullable
== NULL
) {
5509 var
= 0; /* is null */
5511 var
= 1; /* arg is null and recv is not */
5514 { /* Inline kernel#Object#!= (var_n_kwnullable,((val*)NULL)) on <var_n_kwnullable:nullable TKwnullable> */
5515 var_other
= ((val
*)NULL
);
5517 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwnullable
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwnullable
, var_other
); /* == on <var_n_kwnullable:nullable TKwnullable(TKwnullable)>*/
5528 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
5529 var_n_kwnullable
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
5535 if (unlikely(var_n_id
== NULL
)) {
5536 PRINT_ERROR("Runtime error: %s", "Cast failed");
5537 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2372);
5540 self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
= var_n_id
; /* _n_id on <self:AType> */
5541 if (var_n_id
== NULL
) {
5542 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5543 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2373);
5546 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
5547 if (unlikely(var_n_id
== NULL
)) {
5548 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5549 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
5552 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
5556 self
->attrs
[COLOR_nit__parser_nodes__AType___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AType> */
5557 if (var_n_obra
== NULL
) {
5558 var8
= 0; /* is null */
5560 var8
= 1; /* arg is null and recv is not */
5563 { /* Inline kernel#Object#!= (var_n_obra,((val*)NULL)) on <var_n_obra:nullable TObra> */
5564 var_other
= ((val
*)NULL
);
5566 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_obra
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_obra
, var_other
); /* == on <var_n_obra:nullable TObra(TObra)>*/
5571 RET_LABEL10
:(void)0;
5577 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra(TObra)> */
5578 var_n_obra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra(TObra)> */
5579 RET_LABEL13
:(void)0;
5585 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
5586 var16
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
5587 if (unlikely(var16
== NULL
)) {
5588 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
5589 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1729);
5593 RET_LABEL15
:(void)0;
5597 nit___nit__ANodes___unsafe_add_all(var14
, var_n_types
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var14:ANodes[AType]>*/
5599 self
->attrs
[COLOR_nit__parser_nodes__AType___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AType> */
5600 if (var_n_cbra
== NULL
) {
5601 var17
= 0; /* is null */
5603 var17
= 1; /* arg is null and recv is not */
5606 { /* Inline kernel#Object#!= (var_n_cbra,((val*)NULL)) on <var_n_cbra:nullable TCbra> */
5607 var_other
= ((val
*)NULL
);
5609 var20
= ((short int(*)(val
* self
, val
* p0
))(var_n_cbra
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_cbra
, var_other
); /* == on <var_n_cbra:nullable TCbra(TCbra)>*/
5614 RET_LABEL19
:(void)0;
5620 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra(TCbra)> */
5621 var_n_cbra
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra(TCbra)> */
5622 RET_LABEL22
:(void)0;
5627 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AType> */
5628 if (var_n_annotations
== NULL
) {
5629 var23
= 0; /* is null */
5631 var23
= 1; /* arg is null and recv is not */
5634 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
5635 var_other
= ((val
*)NULL
);
5637 var26
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
5642 RET_LABEL25
:(void)0;
5648 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5649 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5650 RET_LABEL28
:(void)0;
5657 /* method parser_prod#AType#replace_child for (self: AType, ANode, nullable ANode) */
5658 void nit__parser_prod___AType___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5659 val
* var_old_child
/* var old_child: ANode */;
5660 val
* var_new_child
/* var new_child: nullable ANode */;
5661 val
* var
/* : nullable TKwnullable */;
5662 short int var1
/* : Bool */;
5663 short int var2
/* : Bool */;
5664 val
* var_other
/* var other: nullable Object */;
5665 short int var4
/* : Bool */;
5666 short int var6
/* : Bool */;
5667 short int var7
/* : Bool */;
5670 const char* var_class_name
;
5671 val
* var8
/* : TClassid */;
5672 short int var9
/* : Bool */;
5673 short int var11
/* : Bool */;
5674 short int var13
/* : Bool */;
5675 short int var14
/* : Bool */;
5678 const char* var_class_name17
;
5679 val
* var18
/* : nullable TObra */;
5680 short int var19
/* : Bool */;
5681 short int var20
/* : Bool */;
5682 short int var22
/* : Bool */;
5683 short int var24
/* : Bool */;
5684 short int var25
/* : Bool */;
5687 const char* var_class_name28
;
5688 val
* var29
/* : ANodes[AType] */;
5689 val
* var31
/* : ANodes[AType] */;
5690 short int var32
/* : Bool */;
5691 val
* var33
/* : nullable TCbra */;
5692 short int var34
/* : Bool */;
5693 short int var35
/* : Bool */;
5694 short int var37
/* : Bool */;
5695 short int var39
/* : Bool */;
5696 short int var40
/* : Bool */;
5699 const char* var_class_name43
;
5700 val
* var44
/* : nullable AAnnotations */;
5701 short int var45
/* : Bool */;
5702 short int var46
/* : Bool */;
5703 short int var48
/* : Bool */;
5704 short int var50
/* : Bool */;
5705 short int var51
/* : Bool */;
5708 const char* var_class_name54
;
5711 var
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
5713 var1
= 0; /* <var_old_child:ANode> cannot be null */
5715 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwnullable> */
5716 var_other
= var_old_child
;
5718 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwnullable(TKwnullable)> */
5719 var6
= var
== var_other
;
5732 /* <var_new_child:nullable ANode> isa nullable TKwnullable */
5733 cltype
= type_nullable__nit__TKwnullable
.color
;
5734 idtype
= type_nullable__nit__TKwnullable
.id
;
5735 if(var_new_child
== NULL
) {
5738 if(cltype
>= var_new_child
->type
->table_size
) {
5741 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5744 if (unlikely(!var7
)) {
5745 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5746 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnullable", var_class_name
);
5747 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2386);
5751 nit__parser_prod___AType___n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_kwnullable= on <self:AType>*/
5756 var8
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
; /* _n_id on <self:AType> */
5757 if (unlikely(var8
== NULL
)) {
5758 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5759 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2389);
5763 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TClassid> */
5764 var_other
= var_old_child
;
5766 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TClassid> */
5767 var13
= var8
== var_other
;
5770 RET_LABEL12
:(void)0;
5775 RET_LABEL10
:(void)0;
5779 /* <var_new_child:nullable ANode> isa TClassid */
5780 cltype15
= type_nit__TClassid
.color
;
5781 idtype16
= type_nit__TClassid
.id
;
5782 if(var_new_child
== NULL
) {
5785 if(cltype15
>= var_new_child
->type
->table_size
) {
5788 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5791 if (unlikely(!var14
)) {
5792 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5793 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name17
);
5794 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2390);
5798 nit__parser_prod___AType___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_id= on <self:AType>*/
5803 var18
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_obra
].val
; /* _n_obra on <self:AType> */
5804 if (var18
== NULL
) {
5805 var19
= 0; /* <var_old_child:ANode> cannot be null */
5807 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable TObra> */
5808 var_other
= var_old_child
;
5810 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable TObra(TObra)> */
5811 var24
= var18
== var_other
;
5814 RET_LABEL23
:(void)0;
5819 RET_LABEL21
:(void)0;
5824 /* <var_new_child:nullable ANode> isa nullable TObra */
5825 cltype26
= type_nullable__nit__TObra
.color
;
5826 idtype27
= type_nullable__nit__TObra
.id
;
5827 if(var_new_child
== NULL
) {
5830 if(cltype26
>= var_new_child
->type
->table_size
) {
5833 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
5836 if (unlikely(!var25
)) {
5837 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5838 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TObra", var_class_name28
);
5839 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2394);
5843 nit__parser_prod___AType___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_obra= on <self:AType>*/
5849 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
5850 var31
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
5851 if (unlikely(var31
== NULL
)) {
5852 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
5853 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1729);
5857 RET_LABEL30
:(void)0;
5861 var32
= nit___nit__ANodes___replace_child(var29
, var_old_child
, var_new_child
);
5867 var33
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_cbra
].val
; /* _n_cbra on <self:AType> */
5868 if (var33
== NULL
) {
5869 var34
= 0; /* <var_old_child:ANode> cannot be null */
5871 { /* Inline kernel#Object#== (var33,var_old_child) on <var33:nullable TCbra> */
5872 var_other
= var_old_child
;
5874 { /* Inline kernel#Object#is_same_instance (var33,var_other) on <var33:nullable TCbra(TCbra)> */
5875 var39
= var33
== var_other
;
5878 RET_LABEL38
:(void)0;
5883 RET_LABEL36
:(void)0;
5888 /* <var_new_child:nullable ANode> isa nullable TCbra */
5889 cltype41
= type_nullable__nit__TCbra
.color
;
5890 idtype42
= type_nullable__nit__TCbra
.id
;
5891 if(var_new_child
== NULL
) {
5894 if(cltype41
>= var_new_child
->type
->table_size
) {
5897 var40
= var_new_child
->type
->type_table
[cltype41
] == idtype42
;
5900 if (unlikely(!var40
)) {
5901 var_class_name43
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5902 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCbra", var_class_name43
);
5903 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2399);
5907 nit__parser_prod___AType___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_cbra= on <self:AType>*/
5912 var44
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
5913 if (var44
== NULL
) {
5914 var45
= 0; /* <var_old_child:ANode> cannot be null */
5916 { /* Inline kernel#Object#== (var44,var_old_child) on <var44:nullable AAnnotations> */
5917 var_other
= var_old_child
;
5919 { /* Inline kernel#Object#is_same_instance (var44,var_other) on <var44:nullable AAnnotations(AAnnotations)> */
5920 var50
= var44
== var_other
;
5923 RET_LABEL49
:(void)0;
5928 RET_LABEL47
:(void)0;
5933 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5934 cltype52
= type_nullable__nit__AAnnotations
.color
;
5935 idtype53
= type_nullable__nit__AAnnotations
.id
;
5936 if(var_new_child
== NULL
) {
5939 if(cltype52
>= var_new_child
->type
->table_size
) {
5942 var51
= var_new_child
->type
->type_table
[cltype52
] == idtype53
;
5945 if (unlikely(!var51
)) {
5946 var_class_name54
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5947 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name54
);
5948 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2403);
5952 nit__parser_prod___AType___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_annotations= on <self:AType>*/
5959 /* method parser_prod#AType#n_kwnullable= for (self: AType, nullable TKwnullable) */
5960 void nit__parser_prod___AType___n_kwnullable_61d(val
* self
, val
* p0
) {
5961 val
* var_node
/* var node: nullable TKwnullable */;
5962 short int var
/* : Bool */;
5963 short int var1
/* : Bool */;
5964 val
* var_other
/* var other: nullable Object */;
5965 short int var3
/* : Bool */;
5966 short int var4
/* : Bool */;
5968 self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AType> */
5969 if (var_node
== NULL
) {
5970 var
= 0; /* is null */
5972 var
= 1; /* arg is null and recv is not */
5975 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwnullable> */
5976 var_other
= ((val
*)NULL
);
5978 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwnullable(TKwnullable)>*/
5989 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnullable(TKwnullable)> */
5990 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnullable(TKwnullable)> */
5998 /* method parser_prod#AType#n_id= for (self: AType, TClassid) */
5999 void nit__parser_prod___AType___n_id_61d(val
* self
, val
* p0
) {
6000 val
* var_node
/* var node: TClassid */;
6002 self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
= var_node
; /* _n_id on <self:AType> */
6004 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
6005 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
6011 /* method parser_prod#AType#n_obra= for (self: AType, nullable TObra) */
6012 void nit__parser_prod___AType___n_obra_61d(val
* self
, val
* p0
) {
6013 val
* var_node
/* var node: nullable TObra */;
6014 short int var
/* : Bool */;
6015 short int var1
/* : Bool */;
6016 val
* var_other
/* var other: nullable Object */;
6017 short int var3
/* : Bool */;
6018 short int var4
/* : Bool */;
6020 self
->attrs
[COLOR_nit__parser_nodes__AType___n_obra
].val
= var_node
; /* _n_obra on <self:AType> */
6021 if (var_node
== NULL
) {
6022 var
= 0; /* is null */
6024 var
= 1; /* arg is null and recv is not */
6027 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TObra> */
6028 var_other
= ((val
*)NULL
);
6030 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TObra(TObra)>*/
6041 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TObra(TObra)> */
6042 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TObra(TObra)> */
6050 /* method parser_prod#AType#n_cbra= for (self: AType, nullable TCbra) */
6051 void nit__parser_prod___AType___n_cbra_61d(val
* self
, val
* p0
) {
6052 val
* var_node
/* var node: nullable TCbra */;
6053 short int var
/* : Bool */;
6054 short int var1
/* : Bool */;
6055 val
* var_other
/* var other: nullable Object */;
6056 short int var3
/* : Bool */;
6057 short int var4
/* : Bool */;
6059 self
->attrs
[COLOR_nit__parser_nodes__AType___n_cbra
].val
= var_node
; /* _n_cbra on <self:AType> */
6060 if (var_node
== NULL
) {
6061 var
= 0; /* is null */
6063 var
= 1; /* arg is null and recv is not */
6066 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCbra> */
6067 var_other
= ((val
*)NULL
);
6069 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TCbra(TCbra)>*/
6080 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCbra(TCbra)> */
6081 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCbra(TCbra)> */
6089 /* method parser_prod#AType#n_annotations= for (self: AType, nullable AAnnotations) */
6090 void nit__parser_prod___AType___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
6091 val
* var_node
/* var node: nullable AAnnotations */;
6092 short int var
/* : Bool */;
6093 short int var1
/* : Bool */;
6094 val
* var_other
/* var other: nullable Object */;
6095 short int var3
/* : Bool */;
6096 short int var4
/* : Bool */;
6098 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AType> */
6099 if (var_node
== NULL
) {
6100 var
= 0; /* is null */
6102 var
= 1; /* arg is null and recv is not */
6105 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
6106 var_other
= ((val
*)NULL
);
6108 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
6119 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6120 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6128 /* method parser_prod#AType#visit_all for (self: AType, Visitor) */
6129 void nit__parser_prod___AType___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6130 val
* var_v
/* var v: Visitor */;
6131 val
* var
/* : nullable TKwnullable */;
6132 val
* var1
/* : TClassid */;
6133 val
* var2
/* : nullable TObra */;
6134 val
* var3
/* : ANodes[AType] */;
6135 val
* var5
/* : ANodes[AType] */;
6136 val
* var6
/* : nullable TCbra */;
6137 val
* var7
/* : nullable AAnnotations */;
6139 var
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
6141 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6143 var1
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_id
].val
; /* _n_id on <self:AType> */
6144 if (unlikely(var1
== NULL
)) {
6145 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6146 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2438);
6150 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6152 var2
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_obra
].val
; /* _n_obra on <self:AType> */
6154 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6157 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
6158 var5
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
6159 if (unlikely(var5
== NULL
)) {
6160 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
6161 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1729);
6169 nit___nit__ANodes___visit_all(var3
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var3:ANodes[AType]>*/
6171 var6
= self
->attrs
[COLOR_nit__parser_nodes__AType___n_cbra
].val
; /* _n_cbra on <self:AType> */
6173 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6175 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
6177 nit___nit__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6181 /* method parser_prod#ALabel#init_alabel for (self: ALabel, nullable TKwlabel, nullable TId) */
6182 void nit__parser_prod___ALabel___init_alabel(val
* self
, val
* p0
, val
* p1
) {
6183 val
* var_n_kwlabel
/* var n_kwlabel: nullable TKwlabel */;
6184 val
* var_n_id
/* var n_id: nullable TId */;
6185 short int var
/* : Bool */;
6186 short int var3
/* : Bool */;
6187 val
* var_other
/* var other: nullable Object */;
6188 short int var5
/* : Bool */;
6189 short int var6
/* : Bool */;
6191 { /* Inline kernel#Object#init (self) on <self:ALabel> */
6197 if (unlikely(var_n_kwlabel
== NULL
)) {
6198 PRINT_ERROR("Runtime error: %s", "Cast failed");
6199 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2451);
6202 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
= var_n_kwlabel
; /* _n_kwlabel on <self:ALabel> */
6203 if (var_n_kwlabel
== NULL
) {
6204 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6205 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2452);
6208 { /* Inline parser_nodes#ANode#parent= (var_n_kwlabel,self) on <var_n_kwlabel:nullable TKwlabel> */
6209 if (unlikely(var_n_kwlabel
== NULL
)) {
6210 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6211 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6214 var_n_kwlabel
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwlabel:nullable TKwlabel> */
6218 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
= var_n_id
; /* _n_id on <self:ALabel> */
6219 if (var_n_id
== NULL
) {
6220 var
= 0; /* is null */
6222 var
= 1; /* arg is null and recv is not */
6225 { /* Inline kernel#Object#!= (var_n_id,((val*)NULL)) on <var_n_id:nullable TId> */
6226 var_other
= ((val
*)NULL
);
6228 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_id
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_id
, var_other
); /* == on <var_n_id:nullable TId(TId)>*/
6239 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId(TId)> */
6240 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId(TId)> */
6248 /* method parser_prod#ALabel#replace_child for (self: ALabel, ANode, nullable ANode) */
6249 void nit__parser_prod___ALabel___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6250 val
* var_old_child
/* var old_child: ANode */;
6251 val
* var_new_child
/* var new_child: nullable ANode */;
6252 val
* var
/* : TKwlabel */;
6253 short int var1
/* : Bool */;
6254 val
* var_other
/* var other: nullable Object */;
6255 short int var3
/* : Bool */;
6256 short int var5
/* : Bool */;
6257 short int var6
/* : Bool */;
6260 const char* var_class_name
;
6261 val
* var7
/* : nullable TId */;
6262 short int var8
/* : Bool */;
6263 short int var9
/* : Bool */;
6264 short int var11
/* : Bool */;
6265 short int var13
/* : Bool */;
6266 short int var14
/* : Bool */;
6269 const char* var_class_name17
;
6272 var
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
6273 if (unlikely(var
== NULL
)) {
6274 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
6275 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2459);
6279 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwlabel> */
6280 var_other
= var_old_child
;
6282 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwlabel> */
6283 var5
= var
== var_other
;
6295 /* <var_new_child:nullable ANode> isa TKwlabel */
6296 cltype
= type_nit__TKwlabel
.color
;
6297 idtype
= type_nit__TKwlabel
.id
;
6298 if(var_new_child
== NULL
) {
6301 if(cltype
>= var_new_child
->type
->table_size
) {
6304 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6307 if (unlikely(!var6
)) {
6308 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6309 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwlabel", var_class_name
);
6310 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2460);
6314 nit__parser_prod___ALabel___n_kwlabel_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_kwlabel= on <self:ALabel>*/
6319 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
6321 var8
= 0; /* <var_old_child:ANode> cannot be null */
6323 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TId> */
6324 var_other
= var_old_child
;
6326 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TId(TId)> */
6327 var13
= var7
== var_other
;
6330 RET_LABEL12
:(void)0;
6335 RET_LABEL10
:(void)0;
6340 /* <var_new_child:nullable ANode> isa nullable TId */
6341 cltype15
= type_nullable__nit__TId
.color
;
6342 idtype16
= type_nullable__nit__TId
.id
;
6343 if(var_new_child
== NULL
) {
6346 if(cltype15
>= var_new_child
->type
->table_size
) {
6349 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
6352 if (unlikely(!var14
)) {
6353 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6354 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17
);
6355 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2464);
6359 nit__parser_prod___ALabel___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_id= on <self:ALabel>*/
6366 /* method parser_prod#ALabel#n_kwlabel= for (self: ALabel, TKwlabel) */
6367 void nit__parser_prod___ALabel___n_kwlabel_61d(val
* self
, val
* p0
) {
6368 val
* var_node
/* var node: TKwlabel */;
6370 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
= var_node
; /* _n_kwlabel on <self:ALabel> */
6372 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwlabel> */
6373 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwlabel> */
6379 /* method parser_prod#ALabel#n_id= for (self: ALabel, nullable TId) */
6380 void nit__parser_prod___ALabel___n_id_61d(val
* self
, val
* p0
) {
6381 val
* var_node
/* var node: nullable TId */;
6382 short int var
/* : Bool */;
6383 short int var1
/* : Bool */;
6384 val
* var_other
/* var other: nullable Object */;
6385 short int var3
/* : Bool */;
6386 short int var4
/* : Bool */;
6388 self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
= var_node
; /* _n_id on <self:ALabel> */
6389 if (var_node
== NULL
) {
6390 var
= 0; /* is null */
6392 var
= 1; /* arg is null and recv is not */
6395 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TId> */
6396 var_other
= ((val
*)NULL
);
6398 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TId(TId)>*/
6409 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TId(TId)> */
6410 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TId(TId)> */
6418 /* method parser_prod#ALabel#visit_all for (self: ALabel, Visitor) */
6419 void nit__parser_prod___ALabel___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6420 val
* var_v
/* var v: Visitor */;
6421 val
* var
/* : TKwlabel */;
6422 val
* var1
/* : nullable TId */;
6424 var
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
6425 if (unlikely(var
== NULL
)) {
6426 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
6427 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2483);
6431 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6433 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
6435 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6439 /* method parser_prod#ABlockExpr#init_ablockexpr for (self: ABlockExpr, Collection[Object], nullable TKwend) */
6440 void nit__parser_prod___ABlockExpr___init_ablockexpr(val
* self
, val
* p0
, val
* p1
) {
6441 val
* var_n_expr
/* var n_expr: Collection[Object] */;
6442 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
6443 val
* var
/* : ANodes[AExpr] */;
6444 val
* var3
/* : ANodes[AExpr] */;
6445 short int var4
/* : Bool */;
6446 short int var5
/* : Bool */;
6447 val
* var_other
/* var other: nullable Object */;
6448 short int var7
/* : Bool */;
6449 short int var8
/* : Bool */;
6451 { /* Inline kernel#Object#init (self) on <self:ABlockExpr> */
6458 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
6459 var3
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
6460 if (unlikely(var3
== NULL
)) {
6461 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6462 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1758);
6470 nit___nit__ANodes___unsafe_add_all(var
, var_n_expr
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
6472 self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ABlockExpr> */
6473 if (var_n_kwend
== NULL
) {
6474 var4
= 0; /* is null */
6476 var4
= 1; /* arg is null and recv is not */
6479 { /* Inline kernel#Object#!= (var_n_kwend,((val*)NULL)) on <var_n_kwend:nullable TKwend> */
6480 var_other
= ((val
*)NULL
);
6482 var7
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwend
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwend
, var_other
); /* == on <var_n_kwend:nullable TKwend(TKwend)>*/
6493 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend(TKwend)> */
6494 var_n_kwend
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend(TKwend)> */
6502 /* method parser_prod#ABlockExpr#replace_child for (self: ABlockExpr, ANode, nullable ANode) */
6503 void nit__parser_prod___ABlockExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6504 val
* var_old_child
/* var old_child: ANode */;
6505 val
* var_new_child
/* var new_child: nullable ANode */;
6506 val
* var
/* : ANodes[AExpr] */;
6507 val
* var2
/* : ANodes[AExpr] */;
6508 short int var3
/* : Bool */;
6509 val
* var4
/* : nullable TKwend */;
6510 short int var5
/* : Bool */;
6511 short int var6
/* : Bool */;
6512 val
* var_other
/* var other: nullable Object */;
6513 short int var8
/* : Bool */;
6514 short int var10
/* : Bool */;
6515 short int var11
/* : Bool */;
6518 const char* var_class_name
;
6522 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
6523 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
6524 if (unlikely(var2
== NULL
)) {
6525 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6526 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1758);
6534 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
6540 var4
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
6542 var5
= 0; /* <var_old_child:ANode> cannot be null */
6544 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable TKwend> */
6545 var_other
= var_old_child
;
6547 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable TKwend(TKwend)> */
6548 var10
= var4
== var_other
;
6561 /* <var_new_child:nullable ANode> isa nullable TKwend */
6562 cltype
= type_nullable__nit__TKwend
.color
;
6563 idtype
= type_nullable__nit__TKwend
.id
;
6564 if(var_new_child
== NULL
) {
6567 if(cltype
>= var_new_child
->type
->table_size
) {
6570 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6573 if (unlikely(!var11
)) {
6574 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6575 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name
);
6576 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2502);
6580 nit__parser_prod___ABlockExpr___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ABlockExpr#n_kwend= on <self:ABlockExpr>*/
6587 /* method parser_prod#ABlockExpr#n_kwend= for (self: ABlockExpr, nullable TKwend) */
6588 void nit__parser_prod___ABlockExpr___n_kwend_61d(val
* self
, val
* p0
) {
6589 val
* var_node
/* var node: nullable TKwend */;
6590 short int var
/* : Bool */;
6591 short int var1
/* : Bool */;
6592 val
* var_other
/* var other: nullable Object */;
6593 short int var3
/* : Bool */;
6594 short int var4
/* : Bool */;
6596 self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
= var_node
; /* _n_kwend on <self:ABlockExpr> */
6597 if (var_node
== NULL
) {
6598 var
= 0; /* is null */
6600 var
= 1; /* arg is null and recv is not */
6603 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwend> */
6604 var_other
= ((val
*)NULL
);
6606 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwend(TKwend)>*/
6617 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwend(TKwend)> */
6618 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwend(TKwend)> */
6626 /* method parser_prod#ABlockExpr#visit_all for (self: ABlockExpr, Visitor) */
6627 void nit__parser_prod___ABlockExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6628 val
* var_v
/* var v: Visitor */;
6629 val
* var
/* : ANodes[AExpr] */;
6630 val
* var2
/* : ANodes[AExpr] */;
6631 val
* var3
/* : nullable TKwend */;
6634 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
6635 var2
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
6636 if (unlikely(var2
== NULL
)) {
6637 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6638 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1758);
6646 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
6648 var3
= self
->attrs
[COLOR_nit__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
6650 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6654 /* method parser_prod#AVardeclExpr#init_avardeclexpr for (self: AVardeclExpr, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations) */
6655 void nit__parser_prod___AVardeclExpr___init_avardeclexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
6656 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
6657 val
* var_n_id
/* var n_id: nullable TId */;
6658 val
* var_n_type
/* var n_type: nullable AType */;
6659 val
* var_n_assign
/* var n_assign: nullable TAssign */;
6660 val
* var_n_expr
/* var n_expr: nullable AExpr */;
6661 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6662 short int var
/* : Bool */;
6663 short int var2
/* : Bool */;
6664 val
* var_other
/* var other: nullable Object */;
6665 short int var4
/* : Bool */;
6666 short int var5
/* : Bool */;
6667 short int var8
/* : Bool */;
6668 short int var9
/* : Bool */;
6669 short int var11
/* : Bool */;
6670 short int var12
/* : Bool */;
6671 short int var14
/* : Bool */;
6672 short int var15
/* : Bool */;
6673 short int var17
/* : Bool */;
6674 short int var18
/* : Bool */;
6675 short int var20
/* : Bool */;
6676 short int var21
/* : Bool */;
6677 short int var23
/* : Bool */;
6678 short int var24
/* : Bool */;
6679 short int var26
/* : Bool */;
6680 short int var27
/* : Bool */;
6681 short int var29
/* : Bool */;
6682 short int var30
/* : Bool */;
6684 { /* Inline kernel#Object#init (self) on <self:AVardeclExpr> */
6693 var_n_annotations
= p5
;
6694 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AVardeclExpr> */
6695 if (var_n_kwvar
== NULL
) {
6696 var
= 0; /* is null */
6698 var
= 1; /* arg is null and recv is not */
6701 { /* Inline kernel#Object#!= (var_n_kwvar,((val*)NULL)) on <var_n_kwvar:nullable TKwvar> */
6702 var_other
= ((val
*)NULL
);
6704 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwvar
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwvar
, var_other
); /* == on <var_n_kwvar:nullable TKwvar(TKwvar)>*/
6715 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar(TKwvar)> */
6716 var_n_kwvar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar(TKwvar)> */
6722 if (unlikely(var_n_id
== NULL
)) {
6723 PRINT_ERROR("Runtime error: %s", "Cast failed");
6724 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2532);
6727 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVardeclExpr> */
6728 if (var_n_id
== NULL
) {
6729 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6730 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2533);
6733 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
6734 if (unlikely(var_n_id
== NULL
)) {
6735 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6736 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
6739 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
6743 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AVardeclExpr> */
6744 if (var_n_type
== NULL
) {
6745 var8
= 0; /* is null */
6747 var8
= 1; /* arg is null and recv is not */
6750 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
6751 var_other
= ((val
*)NULL
);
6753 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
6758 RET_LABEL10
:(void)0;
6764 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
6765 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
6766 RET_LABEL13
:(void)0;
6771 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVardeclExpr> */
6772 if (var_n_assign
== NULL
) {
6773 var14
= 0; /* is null */
6775 var14
= 1; /* arg is null and recv is not */
6778 { /* Inline kernel#Object#!= (var_n_assign,((val*)NULL)) on <var_n_assign:nullable TAssign> */
6779 var_other
= ((val
*)NULL
);
6781 var17
= ((short int(*)(val
* self
, val
* p0
))(var_n_assign
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_assign
, var_other
); /* == on <var_n_assign:nullable TAssign(TAssign)>*/
6786 RET_LABEL16
:(void)0;
6792 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign(TAssign)> */
6793 var_n_assign
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign(TAssign)> */
6794 RET_LABEL19
:(void)0;
6799 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVardeclExpr> */
6800 if (var_n_expr
== NULL
) {
6801 var20
= 0; /* is null */
6803 var20
= 1; /* arg is null and recv is not */
6806 { /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on <var_n_expr:nullable AExpr> */
6807 var_other
= ((val
*)NULL
);
6809 var23
= ((short int(*)(val
* self
, val
* p0
))(var_n_expr
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_expr
, var_other
); /* == on <var_n_expr:nullable AExpr(AExpr)>*/
6814 RET_LABEL22
:(void)0;
6820 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
6821 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
6822 RET_LABEL25
:(void)0;
6827 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AVardeclExpr> */
6828 if (var_n_annotations
== NULL
) {
6829 var26
= 0; /* is null */
6831 var26
= 1; /* arg is null and recv is not */
6834 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
6835 var_other
= ((val
*)NULL
);
6837 var29
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
6842 RET_LABEL28
:(void)0;
6848 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6849 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6850 RET_LABEL31
:(void)0;
6857 /* method parser_prod#AVardeclExpr#replace_child for (self: AVardeclExpr, ANode, nullable ANode) */
6858 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6859 val
* var_old_child
/* var old_child: ANode */;
6860 val
* var_new_child
/* var new_child: nullable ANode */;
6861 val
* var
/* : nullable TKwvar */;
6862 short int var1
/* : Bool */;
6863 short int var2
/* : Bool */;
6864 val
* var_other
/* var other: nullable Object */;
6865 short int var4
/* : Bool */;
6866 short int var6
/* : Bool */;
6867 short int var7
/* : Bool */;
6870 const char* var_class_name
;
6871 val
* var8
/* : TId */;
6872 short int var9
/* : Bool */;
6873 short int var11
/* : Bool */;
6874 short int var13
/* : Bool */;
6875 short int var14
/* : Bool */;
6878 const char* var_class_name17
;
6879 val
* var18
/* : nullable AType */;
6880 short int var19
/* : Bool */;
6881 short int var20
/* : Bool */;
6882 short int var22
/* : Bool */;
6883 short int var24
/* : Bool */;
6884 short int var25
/* : Bool */;
6887 const char* var_class_name28
;
6888 val
* var29
/* : nullable TAssign */;
6889 short int var30
/* : Bool */;
6890 short int var31
/* : Bool */;
6891 short int var33
/* : Bool */;
6892 short int var35
/* : Bool */;
6893 short int var36
/* : Bool */;
6896 const char* var_class_name39
;
6897 val
* var40
/* : nullable AExpr */;
6898 short int var41
/* : Bool */;
6899 short int var42
/* : Bool */;
6900 short int var44
/* : Bool */;
6901 short int var46
/* : Bool */;
6902 short int var47
/* : Bool */;
6905 const char* var_class_name50
;
6906 val
* var51
/* : nullable AAnnotations */;
6907 short int var52
/* : Bool */;
6908 short int var53
/* : Bool */;
6909 short int var55
/* : Bool */;
6910 short int var57
/* : Bool */;
6911 short int var58
/* : Bool */;
6914 const char* var_class_name61
;
6917 var
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
6919 var1
= 0; /* <var_old_child:ANode> cannot be null */
6921 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwvar> */
6922 var_other
= var_old_child
;
6924 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwvar(TKwvar)> */
6925 var6
= var
== var_other
;
6938 /* <var_new_child:nullable ANode> isa nullable TKwvar */
6939 cltype
= type_nullable__nit__TKwvar
.color
;
6940 idtype
= type_nullable__nit__TKwvar
.id
;
6941 if(var_new_child
== NULL
) {
6944 if(cltype
>= var_new_child
->type
->table_size
) {
6947 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6950 if (unlikely(!var7
)) {
6951 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6952 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwvar", var_class_name
);
6953 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2547);
6957 nit__parser_prod___AVardeclExpr___n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_kwvar= on <self:AVardeclExpr>*/
6962 var8
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
6963 if (unlikely(var8
== NULL
)) {
6964 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
6965 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2550);
6969 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TId> */
6970 var_other
= var_old_child
;
6972 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TId> */
6973 var13
= var8
== var_other
;
6976 RET_LABEL12
:(void)0;
6981 RET_LABEL10
:(void)0;
6985 /* <var_new_child:nullable ANode> isa TId */
6986 cltype15
= type_nit__TId
.color
;
6987 idtype16
= type_nit__TId
.id
;
6988 if(var_new_child
== NULL
) {
6991 if(cltype15
>= var_new_child
->type
->table_size
) {
6994 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
6997 if (unlikely(!var14
)) {
6998 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6999 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17
);
7000 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2551);
7004 nit__parser_prod___AVardeclExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_id= on <self:AVardeclExpr>*/
7009 var18
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
7010 if (var18
== NULL
) {
7011 var19
= 0; /* <var_old_child:ANode> cannot be null */
7013 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable AType> */
7014 var_other
= var_old_child
;
7016 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable AType(AType)> */
7017 var24
= var18
== var_other
;
7020 RET_LABEL23
:(void)0;
7025 RET_LABEL21
:(void)0;
7030 /* <var_new_child:nullable ANode> isa nullable AType */
7031 cltype26
= type_nullable__nit__AType
.color
;
7032 idtype27
= type_nullable__nit__AType
.id
;
7033 if(var_new_child
== NULL
) {
7036 if(cltype26
>= var_new_child
->type
->table_size
) {
7039 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7042 if (unlikely(!var25
)) {
7043 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7044 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name28
);
7045 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2555);
7049 nit__parser_prod___AVardeclExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_type= on <self:AVardeclExpr>*/
7054 var29
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
7055 if (var29
== NULL
) {
7056 var30
= 0; /* <var_old_child:ANode> cannot be null */
7058 { /* Inline kernel#Object#== (var29,var_old_child) on <var29:nullable TAssign> */
7059 var_other
= var_old_child
;
7061 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:nullable TAssign(TAssign)> */
7062 var35
= var29
== var_other
;
7065 RET_LABEL34
:(void)0;
7070 RET_LABEL32
:(void)0;
7075 /* <var_new_child:nullable ANode> isa nullable TAssign */
7076 cltype37
= type_nullable__nit__TAssign
.color
;
7077 idtype38
= type_nullable__nit__TAssign
.id
;
7078 if(var_new_child
== NULL
) {
7081 if(cltype37
>= var_new_child
->type
->table_size
) {
7084 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
7087 if (unlikely(!var36
)) {
7088 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7089 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name39
);
7090 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2559);
7094 nit__parser_prod___AVardeclExpr___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_assign= on <self:AVardeclExpr>*/
7099 var40
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
7100 if (var40
== NULL
) {
7101 var41
= 0; /* <var_old_child:ANode> cannot be null */
7103 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable AExpr> */
7104 var_other
= var_old_child
;
7106 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable AExpr(AExpr)> */
7107 var46
= var40
== var_other
;
7110 RET_LABEL45
:(void)0;
7115 RET_LABEL43
:(void)0;
7120 /* <var_new_child:nullable ANode> isa nullable AExpr */
7121 cltype48
= type_nullable__nit__AExpr
.color
;
7122 idtype49
= type_nullable__nit__AExpr
.id
;
7123 if(var_new_child
== NULL
) {
7126 if(cltype48
>= var_new_child
->type
->table_size
) {
7129 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
7132 if (unlikely(!var47
)) {
7133 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7134 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name50
);
7135 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2563);
7139 nit__parser_prod___AVardeclExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_expr= on <self:AVardeclExpr>*/
7144 var51
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
7145 if (var51
== NULL
) {
7146 var52
= 0; /* <var_old_child:ANode> cannot be null */
7148 { /* Inline kernel#Object#== (var51,var_old_child) on <var51:nullable AAnnotations> */
7149 var_other
= var_old_child
;
7151 { /* Inline kernel#Object#is_same_instance (var51,var_other) on <var51:nullable AAnnotations(AAnnotations)> */
7152 var57
= var51
== var_other
;
7155 RET_LABEL56
:(void)0;
7160 RET_LABEL54
:(void)0;
7165 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7166 cltype59
= type_nullable__nit__AAnnotations
.color
;
7167 idtype60
= type_nullable__nit__AAnnotations
.id
;
7168 if(var_new_child
== NULL
) {
7171 if(cltype59
>= var_new_child
->type
->table_size
) {
7174 var58
= var_new_child
->type
->type_table
[cltype59
] == idtype60
;
7177 if (unlikely(!var58
)) {
7178 var_class_name61
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7179 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name61
);
7180 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2567);
7184 nit__parser_prod___AVardeclExpr___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_annotations= on <self:AVardeclExpr>*/
7191 /* method parser_prod#AVardeclExpr#n_kwvar= for (self: AVardeclExpr, nullable TKwvar) */
7192 void nit__parser_prod___AVardeclExpr___n_kwvar_61d(val
* self
, val
* p0
) {
7193 val
* var_node
/* var node: nullable TKwvar */;
7194 short int var
/* : Bool */;
7195 short int var1
/* : Bool */;
7196 val
* var_other
/* var other: nullable Object */;
7197 short int var3
/* : Bool */;
7198 short int var4
/* : Bool */;
7200 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AVardeclExpr> */
7201 if (var_node
== NULL
) {
7202 var
= 0; /* is null */
7204 var
= 1; /* arg is null and recv is not */
7207 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwvar> */
7208 var_other
= ((val
*)NULL
);
7210 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwvar(TKwvar)>*/
7221 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwvar(TKwvar)> */
7222 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwvar(TKwvar)> */
7230 /* method parser_prod#AVardeclExpr#n_id= for (self: AVardeclExpr, TId) */
7231 void nit__parser_prod___AVardeclExpr___n_id_61d(val
* self
, val
* p0
) {
7232 val
* var_node
/* var node: TId */;
7234 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
= var_node
; /* _n_id on <self:AVardeclExpr> */
7236 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7237 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7243 /* method parser_prod#AVardeclExpr#n_type= for (self: AVardeclExpr, nullable AType) */
7244 void nit__parser_prod___AVardeclExpr___n_type_61d(val
* self
, val
* p0
) {
7245 val
* var_node
/* var node: nullable AType */;
7246 short int var
/* : Bool */;
7247 short int var1
/* : Bool */;
7248 val
* var_other
/* var other: nullable Object */;
7249 short int var3
/* : Bool */;
7250 short int var4
/* : Bool */;
7252 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
= var_node
; /* _n_type on <self:AVardeclExpr> */
7253 if (var_node
== NULL
) {
7254 var
= 0; /* is null */
7256 var
= 1; /* arg is null and recv is not */
7259 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
7260 var_other
= ((val
*)NULL
);
7262 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
7273 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
7274 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
7282 /* method parser_prod#AVardeclExpr#n_assign= for (self: AVardeclExpr, nullable TAssign) */
7283 void nit__parser_prod___AVardeclExpr___n_assign_61d(val
* self
, val
* p0
) {
7284 val
* var_node
/* var node: nullable TAssign */;
7285 short int var
/* : Bool */;
7286 short int var1
/* : Bool */;
7287 val
* var_other
/* var other: nullable Object */;
7288 short int var3
/* : Bool */;
7289 short int var4
/* : Bool */;
7291 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVardeclExpr> */
7292 if (var_node
== NULL
) {
7293 var
= 0; /* is null */
7295 var
= 1; /* arg is null and recv is not */
7298 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TAssign> */
7299 var_other
= ((val
*)NULL
);
7301 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TAssign(TAssign)>*/
7312 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAssign(TAssign)> */
7313 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAssign(TAssign)> */
7321 /* method parser_prod#AVardeclExpr#n_expr= for (self: AVardeclExpr, nullable AExpr) */
7322 void nit__parser_prod___AVardeclExpr___n_expr_61d(val
* self
, val
* p0
) {
7323 val
* var_node
/* var node: nullable AExpr */;
7324 short int var
/* : Bool */;
7325 short int var1
/* : Bool */;
7326 val
* var_other
/* var other: nullable Object */;
7327 short int var3
/* : Bool */;
7328 short int var4
/* : Bool */;
7330 self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVardeclExpr> */
7331 if (var_node
== NULL
) {
7332 var
= 0; /* is null */
7334 var
= 1; /* arg is null and recv is not */
7337 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
7338 var_other
= ((val
*)NULL
);
7340 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
7351 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7352 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7360 /* method parser_prod#AVardeclExpr#n_annotations= for (self: AVardeclExpr, nullable AAnnotations) */
7361 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7362 val
* var_node
/* var node: nullable AAnnotations */;
7363 short int var
/* : Bool */;
7364 short int var1
/* : Bool */;
7365 val
* var_other
/* var other: nullable Object */;
7366 short int var3
/* : Bool */;
7367 short int var4
/* : Bool */;
7369 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AVardeclExpr> */
7370 if (var_node
== NULL
) {
7371 var
= 0; /* is null */
7373 var
= 1; /* arg is null and recv is not */
7376 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
7377 var_other
= ((val
*)NULL
);
7379 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
7390 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7391 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7399 /* method parser_prod#AVardeclExpr#visit_all for (self: AVardeclExpr, Visitor) */
7400 void nit__parser_prod___AVardeclExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7401 val
* var_v
/* var v: Visitor */;
7402 val
* var
/* : nullable TKwvar */;
7403 val
* var1
/* : TId */;
7404 val
* var2
/* : nullable AType */;
7405 val
* var3
/* : nullable TAssign */;
7406 val
* var4
/* : nullable AExpr */;
7407 val
* var5
/* : nullable AAnnotations */;
7409 var
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
7411 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7413 var1
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
7414 if (unlikely(var1
== NULL
)) {
7415 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7416 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2607);
7420 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7422 var2
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
7424 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7426 var3
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
7428 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7430 var4
= self
->attrs
[COLOR_nit__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
7432 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7434 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
7436 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7440 /* method parser_prod#AReturnExpr#init_areturnexpr for (self: AReturnExpr, nullable TKwreturn, nullable AExpr) */
7441 void nit__parser_prod___AReturnExpr___init_areturnexpr(val
* self
, val
* p0
, val
* p1
) {
7442 val
* var_n_kwreturn
/* var n_kwreturn: nullable TKwreturn */;
7443 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7444 short int var
/* : Bool */;
7445 short int var2
/* : Bool */;
7446 val
* var_other
/* var other: nullable Object */;
7447 short int var4
/* : Bool */;
7448 short int var5
/* : Bool */;
7449 short int var7
/* : Bool */;
7450 short int var8
/* : Bool */;
7451 short int var10
/* : Bool */;
7452 short int var11
/* : Bool */;
7454 { /* Inline kernel#Object#init (self) on <self:AReturnExpr> */
7458 var_n_kwreturn
= p0
;
7460 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_n_kwreturn
; /* _n_kwreturn on <self:AReturnExpr> */
7461 if (var_n_kwreturn
== NULL
) {
7462 var
= 0; /* is null */
7464 var
= 1; /* arg is null and recv is not */
7467 { /* Inline kernel#Object#!= (var_n_kwreturn,((val*)NULL)) on <var_n_kwreturn:nullable TKwreturn> */
7468 var_other
= ((val
*)NULL
);
7470 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwreturn
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwreturn
, var_other
); /* == on <var_n_kwreturn:nullable TKwreturn(TKwreturn)>*/
7481 { /* Inline parser_nodes#ANode#parent= (var_n_kwreturn,self) on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
7482 var_n_kwreturn
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
7488 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AReturnExpr> */
7489 if (var_n_expr
== NULL
) {
7490 var7
= 0; /* is null */
7492 var7
= 1; /* arg is null and recv is not */
7495 { /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on <var_n_expr:nullable AExpr> */
7496 var_other
= ((val
*)NULL
);
7498 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_expr
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_expr
, var_other
); /* == on <var_n_expr:nullable AExpr(AExpr)>*/
7509 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
7510 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
7511 RET_LABEL12
:(void)0;
7518 /* method parser_prod#AReturnExpr#replace_child for (self: AReturnExpr, ANode, nullable ANode) */
7519 void nit__parser_prod___AReturnExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7520 val
* var_old_child
/* var old_child: ANode */;
7521 val
* var_new_child
/* var new_child: nullable ANode */;
7522 val
* var
/* : nullable TKwreturn */;
7523 short int var1
/* : Bool */;
7524 short int var2
/* : Bool */;
7525 val
* var_other
/* var other: nullable Object */;
7526 short int var4
/* : Bool */;
7527 short int var6
/* : Bool */;
7528 short int var7
/* : Bool */;
7531 const char* var_class_name
;
7532 val
* var8
/* : nullable AExpr */;
7533 short int var9
/* : Bool */;
7534 short int var10
/* : Bool */;
7535 short int var12
/* : Bool */;
7536 short int var14
/* : Bool */;
7537 short int var15
/* : Bool */;
7540 const char* var_class_name18
;
7543 var
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
7545 var1
= 0; /* <var_old_child:ANode> cannot be null */
7547 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwreturn> */
7548 var_other
= var_old_child
;
7550 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwreturn(TKwreturn)> */
7551 var6
= var
== var_other
;
7564 /* <var_new_child:nullable ANode> isa nullable TKwreturn */
7565 cltype
= type_nullable__nit__TKwreturn
.color
;
7566 idtype
= type_nullable__nit__TKwreturn
.id
;
7567 if(var_new_child
== NULL
) {
7570 if(cltype
>= var_new_child
->type
->table_size
) {
7573 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7576 if (unlikely(!var7
)) {
7577 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7578 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwreturn", var_class_name
);
7579 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2629);
7583 nit__parser_prod___AReturnExpr___n_kwreturn_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_kwreturn= on <self:AReturnExpr>*/
7588 var8
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
7590 var9
= 0; /* <var_old_child:ANode> cannot be null */
7592 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
7593 var_other
= var_old_child
;
7595 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
7596 var14
= var8
== var_other
;
7599 RET_LABEL13
:(void)0;
7604 RET_LABEL11
:(void)0;
7609 /* <var_new_child:nullable ANode> isa nullable AExpr */
7610 cltype16
= type_nullable__nit__AExpr
.color
;
7611 idtype17
= type_nullable__nit__AExpr
.id
;
7612 if(var_new_child
== NULL
) {
7615 if(cltype16
>= var_new_child
->type
->table_size
) {
7618 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7621 if (unlikely(!var15
)) {
7622 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7623 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
7624 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2633);
7628 nit__parser_prod___AReturnExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_expr= on <self:AReturnExpr>*/
7635 /* method parser_prod#AReturnExpr#n_kwreturn= for (self: AReturnExpr, nullable TKwreturn) */
7636 void nit__parser_prod___AReturnExpr___n_kwreturn_61d(val
* self
, val
* p0
) {
7637 val
* var_node
/* var node: nullable TKwreturn */;
7638 short int var
/* : Bool */;
7639 short int var1
/* : Bool */;
7640 val
* var_other
/* var other: nullable Object */;
7641 short int var3
/* : Bool */;
7642 short int var4
/* : Bool */;
7644 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_node
; /* _n_kwreturn on <self:AReturnExpr> */
7645 if (var_node
== NULL
) {
7646 var
= 0; /* is null */
7648 var
= 1; /* arg is null and recv is not */
7651 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwreturn> */
7652 var_other
= ((val
*)NULL
);
7654 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwreturn(TKwreturn)>*/
7665 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwreturn(TKwreturn)> */
7666 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwreturn(TKwreturn)> */
7674 /* method parser_prod#AReturnExpr#n_expr= for (self: AReturnExpr, nullable AExpr) */
7675 void nit__parser_prod___AReturnExpr___n_expr_61d(val
* self
, val
* p0
) {
7676 val
* var_node
/* var node: nullable AExpr */;
7677 short int var
/* : Bool */;
7678 short int var1
/* : Bool */;
7679 val
* var_other
/* var other: nullable Object */;
7680 short int var3
/* : Bool */;
7681 short int var4
/* : Bool */;
7683 self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AReturnExpr> */
7684 if (var_node
== NULL
) {
7685 var
= 0; /* is null */
7687 var
= 1; /* arg is null and recv is not */
7690 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
7691 var_other
= ((val
*)NULL
);
7693 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
7704 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7705 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7713 /* method parser_prod#AReturnExpr#visit_all for (self: AReturnExpr, Visitor) */
7714 void nit__parser_prod___AReturnExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7715 val
* var_v
/* var v: Visitor */;
7716 val
* var
/* : nullable TKwreturn */;
7717 val
* var1
/* : nullable AExpr */;
7719 var
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
7721 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7723 var1
= self
->attrs
[COLOR_nit__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
7725 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7729 /* method parser_prod#ABreakExpr#init_abreakexpr for (self: ABreakExpr, nullable TKwbreak, nullable ALabel) */
7730 void nit__parser_prod___ABreakExpr___init_abreakexpr(val
* self
, val
* p0
, val
* p1
) {
7731 val
* var_n_kwbreak
/* var n_kwbreak: nullable TKwbreak */;
7732 val
* var_n_label
/* var n_label: nullable ALabel */;
7733 short int var
/* : Bool */;
7734 short int var3
/* : Bool */;
7735 val
* var_other
/* var other: nullable Object */;
7736 short int var5
/* : Bool */;
7737 short int var6
/* : Bool */;
7739 { /* Inline kernel#Object#init (self) on <self:ABreakExpr> */
7745 if (unlikely(var_n_kwbreak
== NULL
)) {
7746 PRINT_ERROR("Runtime error: %s", "Cast failed");
7747 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2662);
7750 self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_n_kwbreak
; /* _n_kwbreak on <self:ABreakExpr> */
7751 if (var_n_kwbreak
== NULL
) {
7752 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7753 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2663);
7756 { /* Inline parser_nodes#ANode#parent= (var_n_kwbreak,self) on <var_n_kwbreak:nullable TKwbreak> */
7757 if (unlikely(var_n_kwbreak
== NULL
)) {
7758 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7759 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
7762 var_n_kwbreak
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwbreak:nullable TKwbreak> */
7766 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ABreakExpr> */
7767 if (var_n_label
== NULL
) {
7768 var
= 0; /* is null */
7770 var
= 1; /* arg is null and recv is not */
7773 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
7774 var_other
= ((val
*)NULL
);
7776 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
7787 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
7788 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
7796 /* method parser_prod#ABreakExpr#replace_child for (self: ABreakExpr, ANode, nullable ANode) */
7797 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7798 val
* var_old_child
/* var old_child: ANode */;
7799 val
* var_new_child
/* var new_child: nullable ANode */;
7800 val
* var
/* : TKwbreak */;
7801 short int var1
/* : Bool */;
7802 val
* var_other
/* var other: nullable Object */;
7803 short int var3
/* : Bool */;
7804 short int var5
/* : Bool */;
7805 short int var6
/* : Bool */;
7808 const char* var_class_name
;
7809 val
* var7
/* : nullable ALabel */;
7810 short int var8
/* : Bool */;
7811 short int var9
/* : Bool */;
7812 short int var11
/* : Bool */;
7813 short int var13
/* : Bool */;
7814 short int var14
/* : Bool */;
7817 const char* var_class_name17
;
7820 var
= self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
7821 if (unlikely(var
== NULL
)) {
7822 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
7823 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2670);
7827 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwbreak> */
7828 var_other
= var_old_child
;
7830 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwbreak> */
7831 var5
= var
== var_other
;
7843 /* <var_new_child:nullable ANode> isa TKwbreak */
7844 cltype
= type_nit__TKwbreak
.color
;
7845 idtype
= type_nit__TKwbreak
.id
;
7846 if(var_new_child
== NULL
) {
7849 if(cltype
>= var_new_child
->type
->table_size
) {
7852 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7855 if (unlikely(!var6
)) {
7856 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7857 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwbreak", var_class_name
);
7858 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2671);
7862 nit__parser_prod___ABreakExpr___n_kwbreak_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_kwbreak= on <self:ABreakExpr>*/
7867 var7
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
7869 var8
= 0; /* <var_old_child:ANode> cannot be null */
7871 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable ALabel> */
7872 var_other
= var_old_child
;
7874 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable ALabel(ALabel)> */
7875 var13
= var7
== var_other
;
7878 RET_LABEL12
:(void)0;
7883 RET_LABEL10
:(void)0;
7888 /* <var_new_child:nullable ANode> isa nullable ALabel */
7889 cltype15
= type_nullable__nit__ALabel
.color
;
7890 idtype16
= type_nullable__nit__ALabel
.id
;
7891 if(var_new_child
== NULL
) {
7894 if(cltype15
>= var_new_child
->type
->table_size
) {
7897 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
7900 if (unlikely(!var14
)) {
7901 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7902 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name17
);
7903 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2675);
7907 nit__parser_prod___ABreakExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_label= on <self:ABreakExpr>*/
7914 /* method parser_prod#ABreakExpr#n_kwbreak= for (self: ABreakExpr, TKwbreak) */
7915 void nit__parser_prod___ABreakExpr___n_kwbreak_61d(val
* self
, val
* p0
) {
7916 val
* var_node
/* var node: TKwbreak */;
7918 self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_node
; /* _n_kwbreak on <self:ABreakExpr> */
7920 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwbreak> */
7921 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwbreak> */
7927 /* method parser_prod#ABreakExpr#n_label= for (self: ABreakExpr, nullable ALabel) */
7928 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
7929 val
* var_node
/* var node: nullable ALabel */;
7930 short int var
/* : Bool */;
7931 short int var1
/* : Bool */;
7932 val
* var_other
/* var other: nullable Object */;
7933 short int var3
/* : Bool */;
7934 short int var4
/* : Bool */;
7936 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ABreakExpr> */
7937 if (var_node
== NULL
) {
7938 var
= 0; /* is null */
7940 var
= 1; /* arg is null and recv is not */
7943 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
7944 var_other
= ((val
*)NULL
);
7946 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ALabel(ALabel)>*/
7957 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
7958 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
7966 /* method parser_prod#ABreakExpr#visit_all for (self: ABreakExpr, Visitor) */
7967 void nit__parser_prod___ABreakExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7968 val
* var_v
/* var v: Visitor */;
7969 val
* var
/* : TKwbreak */;
7970 val
* var1
/* : nullable ALabel */;
7972 var
= self
->attrs
[COLOR_nit__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
7973 if (unlikely(var
== NULL
)) {
7974 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
7975 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2694);
7979 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7981 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
7983 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7987 /* method parser_prod#AAbortExpr#init_aabortexpr for (self: AAbortExpr, nullable TKwabort) */
7988 void nit__parser_prod___AAbortExpr___init_aabortexpr(val
* self
, val
* p0
) {
7989 val
* var_n_kwabort
/* var n_kwabort: nullable TKwabort */;
7991 { /* Inline kernel#Object#init (self) on <self:AAbortExpr> */
7996 if (unlikely(var_n_kwabort
== NULL
)) {
7997 PRINT_ERROR("Runtime error: %s", "Cast failed");
7998 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2703);
8001 self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
= var_n_kwabort
; /* _n_kwabort on <self:AAbortExpr> */
8002 if (var_n_kwabort
== NULL
) {
8003 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8004 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2704);
8007 { /* Inline parser_nodes#ANode#parent= (var_n_kwabort,self) on <var_n_kwabort:nullable TKwabort> */
8008 if (unlikely(var_n_kwabort
== NULL
)) {
8009 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8010 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8013 var_n_kwabort
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabort:nullable TKwabort> */
8019 /* method parser_prod#AAbortExpr#replace_child for (self: AAbortExpr, ANode, nullable ANode) */
8020 void nit__parser_prod___AAbortExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8021 val
* var_old_child
/* var old_child: ANode */;
8022 val
* var_new_child
/* var new_child: nullable ANode */;
8023 val
* var
/* : TKwabort */;
8024 short int var1
/* : Bool */;
8025 val
* var_other
/* var other: nullable Object */;
8026 short int var3
/* : Bool */;
8027 short int var5
/* : Bool */;
8028 short int var6
/* : Bool */;
8031 const char* var_class_name
;
8034 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
8035 if (unlikely(var
== NULL
)) {
8036 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
8037 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2709);
8041 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabort> */
8042 var_other
= var_old_child
;
8044 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabort> */
8045 var5
= var
== var_other
;
8057 /* <var_new_child:nullable ANode> isa TKwabort */
8058 cltype
= type_nit__TKwabort
.color
;
8059 idtype
= type_nit__TKwabort
.id
;
8060 if(var_new_child
== NULL
) {
8063 if(cltype
>= var_new_child
->type
->table_size
) {
8066 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8069 if (unlikely(!var6
)) {
8070 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8071 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabort", var_class_name
);
8072 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2710);
8076 nit__parser_prod___AAbortExpr___n_kwabort_61d(self
, var_new_child
); /* Direct call parser_prod#AAbortExpr#n_kwabort= on <self:AAbortExpr>*/
8083 /* method parser_prod#AAbortExpr#n_kwabort= for (self: AAbortExpr, TKwabort) */
8084 void nit__parser_prod___AAbortExpr___n_kwabort_61d(val
* self
, val
* p0
) {
8085 val
* var_node
/* var node: TKwabort */;
8087 self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
= var_node
; /* _n_kwabort on <self:AAbortExpr> */
8089 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabort> */
8090 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabort> */
8096 /* method parser_prod#AAbortExpr#visit_all for (self: AAbortExpr, Visitor) */
8097 void nit__parser_prod___AAbortExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8098 val
* var_v
/* var v: Visitor */;
8099 val
* var
/* : TKwabort */;
8101 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
8102 if (unlikely(var
== NULL
)) {
8103 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
8104 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2724);
8108 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8112 /* method parser_prod#AContinueExpr#init_acontinueexpr for (self: AContinueExpr, nullable TKwcontinue, nullable ALabel) */
8113 void nit__parser_prod___AContinueExpr___init_acontinueexpr(val
* self
, val
* p0
, val
* p1
) {
8114 val
* var_n_kwcontinue
/* var n_kwcontinue: nullable TKwcontinue */;
8115 val
* var_n_label
/* var n_label: nullable ALabel */;
8116 short int var
/* : Bool */;
8117 short int var2
/* : Bool */;
8118 val
* var_other
/* var other: nullable Object */;
8119 short int var4
/* : Bool */;
8120 short int var5
/* : Bool */;
8121 short int var7
/* : Bool */;
8122 short int var8
/* : Bool */;
8123 short int var10
/* : Bool */;
8124 short int var11
/* : Bool */;
8126 { /* Inline kernel#Object#init (self) on <self:AContinueExpr> */
8130 var_n_kwcontinue
= p0
;
8132 self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_n_kwcontinue
; /* _n_kwcontinue on <self:AContinueExpr> */
8133 if (var_n_kwcontinue
== NULL
) {
8134 var
= 0; /* is null */
8136 var
= 1; /* arg is null and recv is not */
8139 { /* Inline kernel#Object#!= (var_n_kwcontinue,((val*)NULL)) on <var_n_kwcontinue:nullable TKwcontinue> */
8140 var_other
= ((val
*)NULL
);
8142 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwcontinue
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwcontinue
, var_other
); /* == on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)>*/
8153 { /* Inline parser_nodes#ANode#parent= (var_n_kwcontinue,self) on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
8154 var_n_kwcontinue
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
8160 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:AContinueExpr> */
8161 if (var_n_label
== NULL
) {
8162 var7
= 0; /* is null */
8164 var7
= 1; /* arg is null and recv is not */
8167 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
8168 var_other
= ((val
*)NULL
);
8170 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
8181 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
8182 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
8183 RET_LABEL12
:(void)0;
8190 /* method parser_prod#AContinueExpr#replace_child for (self: AContinueExpr, ANode, nullable ANode) */
8191 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8192 val
* var_old_child
/* var old_child: ANode */;
8193 val
* var_new_child
/* var new_child: nullable ANode */;
8194 val
* var
/* : nullable TKwcontinue */;
8195 short int var1
/* : Bool */;
8196 short int var2
/* : Bool */;
8197 val
* var_other
/* var other: nullable Object */;
8198 short int var4
/* : Bool */;
8199 short int var6
/* : Bool */;
8200 short int var7
/* : Bool */;
8203 const char* var_class_name
;
8204 val
* var8
/* : nullable ALabel */;
8205 short int var9
/* : Bool */;
8206 short int var10
/* : Bool */;
8207 short int var12
/* : Bool */;
8208 short int var14
/* : Bool */;
8209 short int var15
/* : Bool */;
8212 const char* var_class_name18
;
8215 var
= self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
8217 var1
= 0; /* <var_old_child:ANode> cannot be null */
8219 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwcontinue> */
8220 var_other
= var_old_child
;
8222 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwcontinue(TKwcontinue)> */
8223 var6
= var
== var_other
;
8236 /* <var_new_child:nullable ANode> isa nullable TKwcontinue */
8237 cltype
= type_nullable__nit__TKwcontinue
.color
;
8238 idtype
= type_nullable__nit__TKwcontinue
.id
;
8239 if(var_new_child
== NULL
) {
8242 if(cltype
>= var_new_child
->type
->table_size
) {
8245 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8248 if (unlikely(!var7
)) {
8249 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwcontinue", var_class_name
);
8251 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2742);
8255 nit__parser_prod___AContinueExpr___n_kwcontinue_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_kwcontinue= on <self:AContinueExpr>*/
8260 var8
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
8262 var9
= 0; /* <var_old_child:ANode> cannot be null */
8264 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable ALabel> */
8265 var_other
= var_old_child
;
8267 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable ALabel(ALabel)> */
8268 var14
= var8
== var_other
;
8271 RET_LABEL13
:(void)0;
8276 RET_LABEL11
:(void)0;
8281 /* <var_new_child:nullable ANode> isa nullable ALabel */
8282 cltype16
= type_nullable__nit__ALabel
.color
;
8283 idtype17
= type_nullable__nit__ALabel
.id
;
8284 if(var_new_child
== NULL
) {
8287 if(cltype16
>= var_new_child
->type
->table_size
) {
8290 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8293 if (unlikely(!var15
)) {
8294 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8295 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name18
);
8296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2746);
8300 nit__parser_prod___AContinueExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_label= on <self:AContinueExpr>*/
8307 /* method parser_prod#AContinueExpr#n_kwcontinue= for (self: AContinueExpr, nullable TKwcontinue) */
8308 void nit__parser_prod___AContinueExpr___n_kwcontinue_61d(val
* self
, val
* p0
) {
8309 val
* var_node
/* var node: nullable TKwcontinue */;
8310 short int var
/* : Bool */;
8311 short int var1
/* : Bool */;
8312 val
* var_other
/* var other: nullable Object */;
8313 short int var3
/* : Bool */;
8314 short int var4
/* : Bool */;
8316 self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_node
; /* _n_kwcontinue on <self:AContinueExpr> */
8317 if (var_node
== NULL
) {
8318 var
= 0; /* is null */
8320 var
= 1; /* arg is null and recv is not */
8323 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwcontinue> */
8324 var_other
= ((val
*)NULL
);
8326 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwcontinue(TKwcontinue)>*/
8337 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwcontinue(TKwcontinue)> */
8338 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwcontinue(TKwcontinue)> */
8346 /* method parser_prod#AContinueExpr#n_label= for (self: AContinueExpr, nullable ALabel) */
8347 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
8348 val
* var_node
/* var node: nullable ALabel */;
8349 short int var
/* : Bool */;
8350 short int var1
/* : Bool */;
8351 val
* var_other
/* var other: nullable Object */;
8352 short int var3
/* : Bool */;
8353 short int var4
/* : Bool */;
8355 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:AContinueExpr> */
8356 if (var_node
== NULL
) {
8357 var
= 0; /* is null */
8359 var
= 1; /* arg is null and recv is not */
8362 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
8363 var_other
= ((val
*)NULL
);
8365 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ALabel(ALabel)>*/
8376 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
8377 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
8385 /* method parser_prod#AContinueExpr#visit_all for (self: AContinueExpr, Visitor) */
8386 void nit__parser_prod___AContinueExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8387 val
* var_v
/* var v: Visitor */;
8388 val
* var
/* : nullable TKwcontinue */;
8389 val
* var1
/* : nullable ALabel */;
8391 var
= self
->attrs
[COLOR_nit__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
8393 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8395 var1
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
8397 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8401 /* method parser_prod#ADoExpr#init_adoexpr for (self: ADoExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */
8402 void nit__parser_prod___ADoExpr___init_adoexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
8403 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
8404 val
* var_n_block
/* var n_block: nullable AExpr */;
8405 val
* var_n_label
/* var n_label: nullable ALabel */;
8406 short int var
/* : Bool */;
8407 short int var3
/* : Bool */;
8408 val
* var_other
/* var other: nullable Object */;
8409 short int var5
/* : Bool */;
8410 short int var6
/* : Bool */;
8411 short int var8
/* : Bool */;
8412 short int var9
/* : Bool */;
8413 short int var11
/* : Bool */;
8414 short int var12
/* : Bool */;
8416 { /* Inline kernel#Object#init (self) on <self:ADoExpr> */
8423 if (unlikely(var_n_kwdo
== NULL
)) {
8424 PRINT_ERROR("Runtime error: %s", "Cast failed");
8425 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2776);
8428 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:ADoExpr> */
8429 if (var_n_kwdo
== NULL
) {
8430 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8431 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2777);
8434 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo> */
8435 if (unlikely(var_n_kwdo
== NULL
)) {
8436 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8440 var_n_kwdo
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo> */
8444 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
= var_n_block
; /* _n_block on <self:ADoExpr> */
8445 if (var_n_block
== NULL
) {
8446 var
= 0; /* is null */
8448 var
= 1; /* arg is null and recv is not */
8451 { /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on <var_n_block:nullable AExpr> */
8452 var_other
= ((val
*)NULL
);
8454 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_block
, var_other
); /* == on <var_n_block:nullable AExpr(AExpr)>*/
8465 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
8466 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
8472 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ADoExpr> */
8473 if (var_n_label
== NULL
) {
8474 var8
= 0; /* is null */
8476 var8
= 1; /* arg is null and recv is not */
8479 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
8480 var_other
= ((val
*)NULL
);
8482 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
8487 RET_LABEL10
:(void)0;
8493 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
8494 var_n_label
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
8495 RET_LABEL13
:(void)0;
8502 /* method parser_prod#ADoExpr#replace_child for (self: ADoExpr, ANode, nullable ANode) */
8503 void nit__parser_prod___ADoExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8504 val
* var_old_child
/* var old_child: ANode */;
8505 val
* var_new_child
/* var new_child: nullable ANode */;
8506 val
* var
/* : TKwdo */;
8507 short int var1
/* : Bool */;
8508 val
* var_other
/* var other: nullable Object */;
8509 short int var3
/* : Bool */;
8510 short int var5
/* : Bool */;
8511 short int var6
/* : Bool */;
8514 const char* var_class_name
;
8515 val
* var7
/* : nullable AExpr */;
8516 short int var8
/* : Bool */;
8517 short int var9
/* : Bool */;
8518 short int var11
/* : Bool */;
8519 short int var13
/* : Bool */;
8520 short int var14
/* : Bool */;
8523 const char* var_class_name17
;
8524 val
* var18
/* : nullable ALabel */;
8525 short int var19
/* : Bool */;
8526 short int var20
/* : Bool */;
8527 short int var22
/* : Bool */;
8528 short int var24
/* : Bool */;
8529 short int var25
/* : Bool */;
8532 const char* var_class_name28
;
8535 var
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
8536 if (unlikely(var
== NULL
)) {
8537 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
8538 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2786);
8542 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdo> */
8543 var_other
= var_old_child
;
8545 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdo> */
8546 var5
= var
== var_other
;
8558 /* <var_new_child:nullable ANode> isa TKwdo */
8559 cltype
= type_nit__TKwdo
.color
;
8560 idtype
= type_nit__TKwdo
.id
;
8561 if(var_new_child
== NULL
) {
8564 if(cltype
>= var_new_child
->type
->table_size
) {
8567 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8570 if (unlikely(!var6
)) {
8571 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8572 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name
);
8573 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2787);
8577 nit__parser_prod___ADoExpr___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_kwdo= on <self:ADoExpr>*/
8582 var7
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
8584 var8
= 0; /* <var_old_child:ANode> cannot be null */
8586 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AExpr> */
8587 var_other
= var_old_child
;
8589 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AExpr(AExpr)> */
8590 var13
= var7
== var_other
;
8593 RET_LABEL12
:(void)0;
8598 RET_LABEL10
:(void)0;
8603 /* <var_new_child:nullable ANode> isa nullable AExpr */
8604 cltype15
= type_nullable__nit__AExpr
.color
;
8605 idtype16
= type_nullable__nit__AExpr
.id
;
8606 if(var_new_child
== NULL
) {
8609 if(cltype15
>= var_new_child
->type
->table_size
) {
8612 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
8615 if (unlikely(!var14
)) {
8616 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8617 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name17
);
8618 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2791);
8622 nit__parser_prod___ADoExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_block= on <self:ADoExpr>*/
8627 var18
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
8628 if (var18
== NULL
) {
8629 var19
= 0; /* <var_old_child:ANode> cannot be null */
8631 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable ALabel> */
8632 var_other
= var_old_child
;
8634 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable ALabel(ALabel)> */
8635 var24
= var18
== var_other
;
8638 RET_LABEL23
:(void)0;
8643 RET_LABEL21
:(void)0;
8648 /* <var_new_child:nullable ANode> isa nullable ALabel */
8649 cltype26
= type_nullable__nit__ALabel
.color
;
8650 idtype27
= type_nullable__nit__ALabel
.id
;
8651 if(var_new_child
== NULL
) {
8654 if(cltype26
>= var_new_child
->type
->table_size
) {
8657 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
8660 if (unlikely(!var25
)) {
8661 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8662 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name28
);
8663 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2795);
8667 nit__parser_prod___ADoExpr___nit__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_label= on <self:ADoExpr>*/
8674 /* method parser_prod#ADoExpr#n_kwdo= for (self: ADoExpr, TKwdo) */
8675 void nit__parser_prod___ADoExpr___n_kwdo_61d(val
* self
, val
* p0
) {
8676 val
* var_node
/* var node: TKwdo */;
8678 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:ADoExpr> */
8680 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdo> */
8681 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdo> */
8687 /* method parser_prod#ADoExpr#n_block= for (self: ADoExpr, nullable AExpr) */
8688 void nit__parser_prod___ADoExpr___n_block_61d(val
* self
, val
* p0
) {
8689 val
* var_node
/* var node: nullable AExpr */;
8690 short int var
/* : Bool */;
8691 short int var1
/* : Bool */;
8692 val
* var_other
/* var other: nullable Object */;
8693 short int var3
/* : Bool */;
8694 short int var4
/* : Bool */;
8696 self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
= var_node
; /* _n_block on <self:ADoExpr> */
8697 if (var_node
== NULL
) {
8698 var
= 0; /* is null */
8700 var
= 1; /* arg is null and recv is not */
8703 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
8704 var_other
= ((val
*)NULL
);
8706 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
8717 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
8718 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
8726 /* method parser_prod#ADoExpr#n_label= for (self: ADoExpr, nullable ALabel) */
8727 void nit__parser_prod___ADoExpr___nit__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
8728 val
* var_node
/* var node: nullable ALabel */;
8729 short int var
/* : Bool */;
8730 short int var1
/* : Bool */;
8731 val
* var_other
/* var other: nullable Object */;
8732 short int var3
/* : Bool */;
8733 short int var4
/* : Bool */;
8735 self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ADoExpr> */
8736 if (var_node
== NULL
) {
8737 var
= 0; /* is null */
8739 var
= 1; /* arg is null and recv is not */
8742 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
8743 var_other
= ((val
*)NULL
);
8745 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ALabel(ALabel)>*/
8756 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
8757 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
8765 /* method parser_prod#ADoExpr#visit_all for (self: ADoExpr, Visitor) */
8766 void nit__parser_prod___ADoExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8767 val
* var_v
/* var v: Visitor */;
8768 val
* var
/* : TKwdo */;
8769 val
* var1
/* : nullable AExpr */;
8770 val
* var2
/* : nullable ALabel */;
8772 var
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
8773 if (unlikely(var
== NULL
)) {
8774 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
8775 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2819);
8779 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8781 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
8783 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8785 var2
= self
->attrs
[COLOR_nit__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
8787 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8791 /* method parser_prod#AIfExpr#init_aifexpr for (self: AIfExpr, nullable TKwif, nullable AExpr, nullable TKwthen, nullable AExpr, nullable TKwelse, nullable AExpr) */
8792 void nit__parser_prod___AIfExpr___init_aifexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
8793 val
* var_n_kwif
/* var n_kwif: nullable TKwif */;
8794 val
* var_n_expr
/* var n_expr: nullable AExpr */;
8795 val
* var_n_kwthen
/* var n_kwthen: nullable TKwthen */;
8796 val
* var_n_then
/* var n_then: nullable AExpr */;
8797 val
* var_n_kwelse
/* var n_kwelse: nullable TKwelse */;
8798 val
* var_n_else
/* var n_else: nullable AExpr */;
8799 short int var
/* : Bool */;
8800 short int var5
/* : Bool */;
8801 val
* var_other
/* var other: nullable Object */;
8802 short int var7
/* : Bool */;
8803 short int var8
/* : Bool */;
8804 short int var10
/* : Bool */;
8805 short int var11
/* : Bool */;
8806 short int var13
/* : Bool */;
8807 short int var14
/* : Bool */;
8808 short int var16
/* : Bool */;
8809 short int var17
/* : Bool */;
8810 short int var19
/* : Bool */;
8811 short int var20
/* : Bool */;
8813 { /* Inline kernel#Object#init (self) on <self:AIfExpr> */
8823 if (unlikely(var_n_kwif
== NULL
)) {
8824 PRINT_ERROR("Runtime error: %s", "Cast failed");
8825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2834);
8828 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
= var_n_kwif
; /* _n_kwif on <self:AIfExpr> */
8829 if (var_n_kwif
== NULL
) {
8830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8831 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2835);
8834 { /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on <var_n_kwif:nullable TKwif> */
8835 if (unlikely(var_n_kwif
== NULL
)) {
8836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8840 var_n_kwif
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwif:nullable TKwif> */
8844 if (unlikely(var_n_expr
== NULL
)) {
8845 PRINT_ERROR("Runtime error: %s", "Cast failed");
8846 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2836);
8849 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIfExpr> */
8850 if (var_n_expr
== NULL
) {
8851 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8852 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2837);
8855 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
8856 if (unlikely(var_n_expr
== NULL
)) {
8857 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8858 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8861 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
8865 if (unlikely(var_n_kwthen
== NULL
)) {
8866 PRINT_ERROR("Runtime error: %s", "Cast failed");
8867 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2838);
8870 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwthen
].val
= var_n_kwthen
; /* _n_kwthen on <self:AIfExpr> */
8871 if (var_n_kwthen
== NULL
) {
8872 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8873 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2839);
8876 { /* Inline parser_nodes#ANode#parent= (var_n_kwthen,self) on <var_n_kwthen:nullable TKwthen> */
8877 if (unlikely(var_n_kwthen
== NULL
)) {
8878 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8879 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
8882 var_n_kwthen
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwthen:nullable TKwthen> */
8886 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
= var_n_then
; /* _n_then on <self:AIfExpr> */
8887 if (var_n_then
== NULL
) {
8888 var
= 0; /* is null */
8890 var
= 1; /* arg is null and recv is not */
8893 { /* Inline kernel#Object#!= (var_n_then,((val*)NULL)) on <var_n_then:nullable AExpr> */
8894 var_other
= ((val
*)NULL
);
8896 var7
= ((short int(*)(val
* self
, val
* p0
))(var_n_then
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_then
, var_other
); /* == on <var_n_then:nullable AExpr(AExpr)>*/
8907 { /* Inline parser_nodes#ANode#parent= (var_n_then,self) on <var_n_then:nullable AExpr(AExpr)> */
8908 var_n_then
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_then:nullable AExpr(AExpr)> */
8914 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwelse
].val
= var_n_kwelse
; /* _n_kwelse on <self:AIfExpr> */
8915 if (var_n_kwelse
== NULL
) {
8916 var10
= 0; /* is null */
8918 var10
= 1; /* arg is null and recv is not */
8921 { /* Inline kernel#Object#!= (var_n_kwelse,((val*)NULL)) on <var_n_kwelse:nullable TKwelse> */
8922 var_other
= ((val
*)NULL
);
8924 var13
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwelse
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwelse
, var_other
); /* == on <var_n_kwelse:nullable TKwelse(TKwelse)>*/
8929 RET_LABEL12
:(void)0;
8935 { /* Inline parser_nodes#ANode#parent= (var_n_kwelse,self) on <var_n_kwelse:nullable TKwelse(TKwelse)> */
8936 var_n_kwelse
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwelse:nullable TKwelse(TKwelse)> */
8937 RET_LABEL15
:(void)0;
8942 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AIfExpr> */
8943 if (var_n_else
== NULL
) {
8944 var16
= 0; /* is null */
8946 var16
= 1; /* arg is null and recv is not */
8949 { /* Inline kernel#Object#!= (var_n_else,((val*)NULL)) on <var_n_else:nullable AExpr> */
8950 var_other
= ((val
*)NULL
);
8952 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_else
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_else
, var_other
); /* == on <var_n_else:nullable AExpr(AExpr)>*/
8957 RET_LABEL18
:(void)0;
8963 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr(AExpr)> */
8964 var_n_else
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr(AExpr)> */
8965 RET_LABEL21
:(void)0;
8972 /* method parser_prod#AIfExpr#replace_child for (self: AIfExpr, ANode, nullable ANode) */
8973 void nit__parser_prod___AIfExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8974 val
* var_old_child
/* var old_child: ANode */;
8975 val
* var_new_child
/* var new_child: nullable ANode */;
8976 val
* var
/* : TKwif */;
8977 short int var1
/* : Bool */;
8978 val
* var_other
/* var other: nullable Object */;
8979 short int var3
/* : Bool */;
8980 short int var5
/* : Bool */;
8981 short int var6
/* : Bool */;
8984 const char* var_class_name
;
8985 val
* var7
/* : AExpr */;
8986 short int var8
/* : Bool */;
8987 short int var10
/* : Bool */;
8988 short int var12
/* : Bool */;
8989 short int var13
/* : Bool */;
8992 const char* var_class_name16
;
8993 val
* var17
/* : TKwthen */;
8994 short int var18
/* : Bool */;
8995 short int var20
/* : Bool */;
8996 short int var22
/* : Bool */;
8997 short int var23
/* : Bool */;
9000 const char* var_class_name26
;
9001 val
* var27
/* : nullable AExpr */;
9002 short int var28
/* : Bool */;
9003 short int var29
/* : Bool */;
9004 short int var31
/* : Bool */;
9005 short int var33
/* : Bool */;
9006 short int var34
/* : Bool */;
9009 const char* var_class_name37
;
9010 val
* var38
/* : nullable TKwelse */;
9011 short int var39
/* : Bool */;
9012 short int var40
/* : Bool */;
9013 short int var42
/* : Bool */;
9014 short int var44
/* : Bool */;
9015 short int var45
/* : Bool */;
9018 const char* var_class_name48
;
9019 val
* var49
/* : nullable AExpr */;
9020 short int var50
/* : Bool */;
9021 short int var51
/* : Bool */;
9022 short int var53
/* : Bool */;
9023 short int var55
/* : Bool */;
9024 short int var56
/* : Bool */;
9027 const char* var_class_name59
;
9030 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
; /* _n_kwif on <self:AIfExpr> */
9031 if (unlikely(var
== NULL
)) {
9032 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
9033 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2850);
9037 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwif> */
9038 var_other
= var_old_child
;
9040 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwif> */
9041 var5
= var
== var_other
;
9053 /* <var_new_child:nullable ANode> isa TKwif */
9054 cltype
= type_nit__TKwif
.color
;
9055 idtype
= type_nit__TKwif
.id
;
9056 if(var_new_child
== NULL
) {
9059 if(cltype
>= var_new_child
->type
->table_size
) {
9062 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9065 if (unlikely(!var6
)) {
9066 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9067 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name
);
9068 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2851);
9072 nit__parser_prod___AIfExpr___n_kwif_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwif= on <self:AIfExpr>*/
9077 var7
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
; /* _n_expr on <self:AIfExpr> */
9078 if (unlikely(var7
== NULL
)) {
9079 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9080 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2854);
9084 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9085 var_other
= var_old_child
;
9087 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9088 var12
= var7
== var_other
;
9091 RET_LABEL11
:(void)0;
9100 /* <var_new_child:nullable ANode> isa AExpr */
9101 cltype14
= type_nit__AExpr
.color
;
9102 idtype15
= type_nit__AExpr
.id
;
9103 if(var_new_child
== NULL
) {
9106 if(cltype14
>= var_new_child
->type
->table_size
) {
9109 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9112 if (unlikely(!var13
)) {
9113 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9114 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9115 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2855);
9119 nit__parser_prod___AIfExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_expr= on <self:AIfExpr>*/
9124 var17
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfExpr> */
9125 if (unlikely(var17
== NULL
)) {
9126 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
9127 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2858);
9131 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwthen> */
9132 var_other
= var_old_child
;
9134 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwthen> */
9135 var22
= var17
== var_other
;
9138 RET_LABEL21
:(void)0;
9143 RET_LABEL19
:(void)0;
9147 /* <var_new_child:nullable ANode> isa TKwthen */
9148 cltype24
= type_nit__TKwthen
.color
;
9149 idtype25
= type_nit__TKwthen
.id
;
9150 if(var_new_child
== NULL
) {
9153 if(cltype24
>= var_new_child
->type
->table_size
) {
9156 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
9159 if (unlikely(!var23
)) {
9160 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9161 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwthen", var_class_name26
);
9162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2859);
9166 nit__parser_prod___AIfExpr___n_kwthen_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwthen= on <self:AIfExpr>*/
9171 var27
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
; /* _n_then on <self:AIfExpr> */
9172 if (var27
== NULL
) {
9173 var28
= 0; /* <var_old_child:ANode> cannot be null */
9175 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AExpr> */
9176 var_other
= var_old_child
;
9178 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AExpr(AExpr)> */
9179 var33
= var27
== var_other
;
9182 RET_LABEL32
:(void)0;
9187 RET_LABEL30
:(void)0;
9192 /* <var_new_child:nullable ANode> isa nullable AExpr */
9193 cltype35
= type_nullable__nit__AExpr
.color
;
9194 idtype36
= type_nullable__nit__AExpr
.id
;
9195 if(var_new_child
== NULL
) {
9198 if(cltype35
>= var_new_child
->type
->table_size
) {
9201 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
9204 if (unlikely(!var34
)) {
9205 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9206 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name37
);
9207 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2863);
9211 nit__parser_prod___AIfExpr___n_then_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_then= on <self:AIfExpr>*/
9216 var38
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfExpr> */
9217 if (var38
== NULL
) {
9218 var39
= 0; /* <var_old_child:ANode> cannot be null */
9220 { /* Inline kernel#Object#== (var38,var_old_child) on <var38:nullable TKwelse> */
9221 var_other
= var_old_child
;
9223 { /* Inline kernel#Object#is_same_instance (var38,var_other) on <var38:nullable TKwelse(TKwelse)> */
9224 var44
= var38
== var_other
;
9227 RET_LABEL43
:(void)0;
9232 RET_LABEL41
:(void)0;
9237 /* <var_new_child:nullable ANode> isa nullable TKwelse */
9238 cltype46
= type_nullable__nit__TKwelse
.color
;
9239 idtype47
= type_nullable__nit__TKwelse
.id
;
9240 if(var_new_child
== NULL
) {
9243 if(cltype46
>= var_new_child
->type
->table_size
) {
9246 var45
= var_new_child
->type
->type_table
[cltype46
] == idtype47
;
9249 if (unlikely(!var45
)) {
9250 var_class_name48
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9251 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwelse", var_class_name48
);
9252 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2867);
9256 nit__parser_prod___AIfExpr___n_kwelse_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwelse= on <self:AIfExpr>*/
9261 var49
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
; /* _n_else on <self:AIfExpr> */
9262 if (var49
== NULL
) {
9263 var50
= 0; /* <var_old_child:ANode> cannot be null */
9265 { /* Inline kernel#Object#== (var49,var_old_child) on <var49:nullable AExpr> */
9266 var_other
= var_old_child
;
9268 { /* Inline kernel#Object#is_same_instance (var49,var_other) on <var49:nullable AExpr(AExpr)> */
9269 var55
= var49
== var_other
;
9272 RET_LABEL54
:(void)0;
9277 RET_LABEL52
:(void)0;
9282 /* <var_new_child:nullable ANode> isa nullable AExpr */
9283 cltype57
= type_nullable__nit__AExpr
.color
;
9284 idtype58
= type_nullable__nit__AExpr
.id
;
9285 if(var_new_child
== NULL
) {
9288 if(cltype57
>= var_new_child
->type
->table_size
) {
9291 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
9294 if (unlikely(!var56
)) {
9295 var_class_name59
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9296 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name59
);
9297 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2871);
9301 nit__parser_prod___AIfExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_else= on <self:AIfExpr>*/
9308 /* method parser_prod#AIfExpr#n_kwif= for (self: AIfExpr, TKwif) */
9309 void nit__parser_prod___AIfExpr___n_kwif_61d(val
* self
, val
* p0
) {
9310 val
* var_node
/* var node: TKwif */;
9312 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
= var_node
; /* _n_kwif on <self:AIfExpr> */
9314 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwif> */
9315 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwif> */
9321 /* method parser_prod#AIfExpr#n_expr= for (self: AIfExpr, AExpr) */
9322 void nit__parser_prod___AIfExpr___n_expr_61d(val
* self
, val
* p0
) {
9323 val
* var_node
/* var node: AExpr */;
9325 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIfExpr> */
9327 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9328 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9334 /* method parser_prod#AIfExpr#n_kwthen= for (self: AIfExpr, TKwthen) */
9335 void nit__parser_prod___AIfExpr___n_kwthen_61d(val
* self
, val
* p0
) {
9336 val
* var_node
/* var node: TKwthen */;
9338 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwthen
].val
= var_node
; /* _n_kwthen on <self:AIfExpr> */
9340 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwthen> */
9341 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwthen> */
9347 /* method parser_prod#AIfExpr#n_then= for (self: AIfExpr, nullable AExpr) */
9348 void nit__parser_prod___AIfExpr___n_then_61d(val
* self
, val
* p0
) {
9349 val
* var_node
/* var node: nullable AExpr */;
9350 short int var
/* : Bool */;
9351 short int var1
/* : Bool */;
9352 val
* var_other
/* var other: nullable Object */;
9353 short int var3
/* : Bool */;
9354 short int var4
/* : Bool */;
9356 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
= var_node
; /* _n_then on <self:AIfExpr> */
9357 if (var_node
== NULL
) {
9358 var
= 0; /* is null */
9360 var
= 1; /* arg is null and recv is not */
9363 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9364 var_other
= ((val
*)NULL
);
9366 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
9377 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9378 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9386 /* method parser_prod#AIfExpr#n_kwelse= for (self: AIfExpr, nullable TKwelse) */
9387 void nit__parser_prod___AIfExpr___n_kwelse_61d(val
* self
, val
* p0
) {
9388 val
* var_node
/* var node: nullable TKwelse */;
9389 short int var
/* : Bool */;
9390 short int var1
/* : Bool */;
9391 val
* var_other
/* var other: nullable Object */;
9392 short int var3
/* : Bool */;
9393 short int var4
/* : Bool */;
9395 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwelse
].val
= var_node
; /* _n_kwelse on <self:AIfExpr> */
9396 if (var_node
== NULL
) {
9397 var
= 0; /* is null */
9399 var
= 1; /* arg is null and recv is not */
9402 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwelse> */
9403 var_other
= ((val
*)NULL
);
9405 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwelse(TKwelse)>*/
9416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwelse(TKwelse)> */
9417 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwelse(TKwelse)> */
9425 /* method parser_prod#AIfExpr#n_else= for (self: AIfExpr, nullable AExpr) */
9426 void nit__parser_prod___AIfExpr___n_else_61d(val
* self
, val
* p0
) {
9427 val
* var_node
/* var node: nullable AExpr */;
9428 short int var
/* : Bool */;
9429 short int var1
/* : Bool */;
9430 val
* var_other
/* var other: nullable Object */;
9431 short int var3
/* : Bool */;
9432 short int var4
/* : Bool */;
9434 self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
= var_node
; /* _n_else on <self:AIfExpr> */
9435 if (var_node
== NULL
) {
9436 var
= 0; /* is null */
9438 var
= 1; /* arg is null and recv is not */
9441 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9442 var_other
= ((val
*)NULL
);
9444 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
9455 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9456 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9464 /* method parser_prod#AIfExpr#visit_all for (self: AIfExpr, Visitor) */
9465 void nit__parser_prod___AIfExpr___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9466 val
* var_v
/* var v: Visitor */;
9467 val
* var
/* : TKwif */;
9468 val
* var1
/* : AExpr */;
9469 val
* var2
/* : TKwthen */;
9470 val
* var3
/* : nullable AExpr */;
9471 val
* var4
/* : nullable TKwelse */;
9472 val
* var5
/* : nullable AExpr */;
9474 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwif
].val
; /* _n_kwif on <self:AIfExpr> */
9475 if (unlikely(var
== NULL
)) {
9476 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
9477 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2910);
9481 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9483 var1
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_expr
].val
; /* _n_expr on <self:AIfExpr> */
9484 if (unlikely(var1
== NULL
)) {
9485 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9486 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2911);
9490 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9492 var2
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfExpr> */
9493 if (unlikely(var2
== NULL
)) {
9494 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
9495 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2912);
9499 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9501 var3
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_then
].val
; /* _n_then on <self:AIfExpr> */
9503 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9505 var4
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfExpr> */
9507 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9509 var5
= self
->attrs
[COLOR_nit__parser_nodes__AIfExpr___n_else
].val
; /* _n_else on <self:AIfExpr> */
9511 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9515 /* method parser_prod#AIfexprExpr#init_aifexprexpr for (self: AIfexprExpr, nullable TKwif, nullable AExpr, nullable TKwthen, nullable AExpr, nullable TKwelse, nullable AExpr) */
9516 void nit__parser_prod___AIfexprExpr___init_aifexprexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
9517 val
* var_n_kwif
/* var n_kwif: nullable TKwif */;
9518 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9519 val
* var_n_kwthen
/* var n_kwthen: nullable TKwthen */;
9520 val
* var_n_then
/* var n_then: nullable AExpr */;
9521 val
* var_n_kwelse
/* var n_kwelse: nullable TKwelse */;
9522 val
* var_n_else
/* var n_else: nullable AExpr */;
9524 { /* Inline kernel#Object#init (self) on <self:AIfexprExpr> */
9534 if (unlikely(var_n_kwif
== NULL
)) {
9535 PRINT_ERROR("Runtime error: %s", "Cast failed");
9536 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2928);
9539 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
= var_n_kwif
; /* _n_kwif on <self:AIfexprExpr> */
9540 if (var_n_kwif
== NULL
) {
9541 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9542 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2929);
9545 { /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on <var_n_kwif:nullable TKwif> */
9546 if (unlikely(var_n_kwif
== NULL
)) {
9547 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9548 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9551 var_n_kwif
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwif:nullable TKwif> */
9555 if (unlikely(var_n_expr
== NULL
)) {
9556 PRINT_ERROR("Runtime error: %s", "Cast failed");
9557 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2930);
9560 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIfexprExpr> */
9561 if (var_n_expr
== NULL
) {
9562 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9563 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2931);
9566 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9567 if (unlikely(var_n_expr
== NULL
)) {
9568 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9569 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9572 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9576 if (unlikely(var_n_kwthen
== NULL
)) {
9577 PRINT_ERROR("Runtime error: %s", "Cast failed");
9578 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2932);
9581 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
= var_n_kwthen
; /* _n_kwthen on <self:AIfexprExpr> */
9582 if (var_n_kwthen
== NULL
) {
9583 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9584 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2933);
9587 { /* Inline parser_nodes#ANode#parent= (var_n_kwthen,self) on <var_n_kwthen:nullable TKwthen> */
9588 if (unlikely(var_n_kwthen
== NULL
)) {
9589 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9590 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9593 var_n_kwthen
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwthen:nullable TKwthen> */
9597 if (unlikely(var_n_then
== NULL
)) {
9598 PRINT_ERROR("Runtime error: %s", "Cast failed");
9599 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2934);
9602 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
= var_n_then
; /* _n_then on <self:AIfexprExpr> */
9603 if (var_n_then
== NULL
) {
9604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9605 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2935);
9608 { /* Inline parser_nodes#ANode#parent= (var_n_then,self) on <var_n_then:nullable AExpr> */
9609 if (unlikely(var_n_then
== NULL
)) {
9610 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9611 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9614 var_n_then
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_then:nullable AExpr> */
9618 if (unlikely(var_n_kwelse
== NULL
)) {
9619 PRINT_ERROR("Runtime error: %s", "Cast failed");
9620 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2936);
9623 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
= var_n_kwelse
; /* _n_kwelse on <self:AIfexprExpr> */
9624 if (var_n_kwelse
== NULL
) {
9625 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9626 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2937);
9629 { /* Inline parser_nodes#ANode#parent= (var_n_kwelse,self) on <var_n_kwelse:nullable TKwelse> */
9630 if (unlikely(var_n_kwelse
== NULL
)) {
9631 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9632 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9635 var_n_kwelse
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwelse:nullable TKwelse> */
9639 if (unlikely(var_n_else
== NULL
)) {
9640 PRINT_ERROR("Runtime error: %s", "Cast failed");
9641 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2938);
9644 self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AIfexprExpr> */
9645 if (var_n_else
== NULL
) {
9646 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9647 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2939);
9650 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr> */
9651 if (unlikely(var_n_else
== NULL
)) {
9652 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9653 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 46);
9656 var_n_else
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr> */
9662 /* method parser_prod#AIfexprExpr#replace_child for (self: AIfexprExpr, ANode, nullable ANode) */
9663 void nit__parser_prod___AIfexprExpr___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9664 val
* var_old_child
/* var old_child: ANode */;
9665 val
* var_new_child
/* var new_child: nullable ANode */;
9666 val
* var
/* : TKwif */;
9667 short int var1
/* : Bool */;
9668 val
* var_other
/* var other: nullable Object */;
9669 short int var3
/* : Bool */;
9670 short int var5
/* : Bool */;
9671 short int var6
/* : Bool */;
9674 const char* var_class_name
;
9675 val
* var7
/* : AExpr */;
9676 short int var8
/* : Bool */;
9677 short int var10
/* : Bool */;
9678 short int var12
/* : Bool */;
9679 short int var13
/* : Bool */;
9682 const char* var_class_name16
;
9683 val
* var17
/* : TKwthen */;
9684 short int var18
/* : Bool */;
9685 short int var20
/* : Bool */;
9686 short int var22
/* : Bool */;
9687 short int var23
/* : Bool */;
9690 const char* var_class_name26
;
9691 val
* var27
/* : AExpr */;
9692 short int var28
/* : Bool */;
9693 short int var30
/* : Bool */;
9694 short int var32
/* : Bool */;
9695 short int var33
/* : Bool */;
9698 const char* var_class_name36
;
9699 val
* var37
/* : TKwelse */;
9700 short int var38
/* : Bool */;
9701 short int var40
/* : Bool */;
9702 short int var42
/* : Bool */;
9703 short int var43
/* : Bool */;
9706 const char* var_class_name46
;
9707 val
* var47
/* : AExpr */;
9708 short int var48
/* : Bool */;
9709 short int var50
/* : Bool */;
9710 short int var52
/* : Bool */;
9711 short int var53
/* : Bool */;
9714 const char* var_class_name56
;
9717 var
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwif
].val
; /* _n_kwif on <self:AIfexprExpr> */
9718 if (unlikely(var
== NULL
)) {
9719 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
9720 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2944);
9724 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwif> */
9725 var_other
= var_old_child
;
9727 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwif> */
9728 var5
= var
== var_other
;
9740 /* <var_new_child:nullable ANode> isa TKwif */
9741 cltype
= type_nit__TKwif
.color
;
9742 idtype
= type_nit__TKwif
.id
;
9743 if(var_new_child
== NULL
) {
9746 if(cltype
>= var_new_child
->type
->table_size
) {
9749 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9752 if (unlikely(!var6
)) {
9753 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9754 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name
);
9755 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2945);
9759 nit__parser_prod___AIfexprExpr___n_kwif_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwif= on <self:AIfexprExpr>*/
9764 var7
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_expr
].val
; /* _n_expr on <self:AIfexprExpr> */
9765 if (unlikely(var7
== NULL
)) {
9766 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9767 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2948);
9771 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9772 var_other
= var_old_child
;
9774 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9775 var12
= var7
== var_other
;
9778 RET_LABEL11
:(void)0;
9787 /* <var_new_child:nullable ANode> isa AExpr */
9788 cltype14
= type_nit__AExpr
.color
;
9789 idtype15
= type_nit__AExpr
.id
;
9790 if(var_new_child
== NULL
) {
9793 if(cltype14
>= var_new_child
->type
->table_size
) {
9796 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9799 if (unlikely(!var13
)) {
9800 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9801 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9802 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2949);
9806 nit__parser_prod___AIfexprExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_expr= on <self:AIfexprExpr>*/
9811 var17
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfexprExpr> */
9812 if (unlikely(var17
== NULL
)) {
9813 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
9814 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2952);
9818 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwthen> */
9819 var_other
= var_old_child
;
9821 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwthen> */
9822 var22
= var17
== var_other
;
9825 RET_LABEL21
:(void)0;
9830 RET_LABEL19
:(void)0;
9834 /* <var_new_child:nullable ANode> isa TKwthen */
9835 cltype24
= type_nit__TKwthen
.color
;
9836 idtype25
= type_nit__TKwthen
.id
;
9837 if(var_new_child
== NULL
) {
9840 if(cltype24
>= var_new_child
->type
->table_size
) {
9843 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
9846 if (unlikely(!var23
)) {
9847 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9848 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwthen", var_class_name26
);
9849 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2953);
9853 nit__parser_prod___AIfexprExpr___n_kwthen_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwthen= on <self:AIfexprExpr>*/
9858 var27
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_then
].val
; /* _n_then on <self:AIfexprExpr> */
9859 if (unlikely(var27
== NULL
)) {
9860 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_then");
9861 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2956);
9865 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:AExpr> */
9866 var_other
= var_old_child
;
9868 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:AExpr> */
9869 var32
= var27
== var_other
;
9872 RET_LABEL31
:(void)0;
9877 RET_LABEL29
:(void)0;
9881 /* <var_new_child:nullable ANode> isa AExpr */
9882 cltype34
= type_nit__AExpr
.color
;
9883 idtype35
= type_nit__AExpr
.id
;
9884 if(var_new_child
== NULL
) {
9887 if(cltype34
>= var_new_child
->type
->table_size
) {
9890 var33
= var_new_child
->type
->type_table
[cltype34
] == idtype35
;
9893 if (unlikely(!var33
)) {
9894 var_class_name36
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9895 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name36
);
9896 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2957);
9900 nit__parser_prod___AIfexprExpr___n_then_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_then= on <self:AIfexprExpr>*/
9905 var37
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfexprExpr> */
9906 if (unlikely(var37
== NULL
)) {
9907 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwelse");
9908 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2960);
9912 { /* Inline kernel#Object#== (var37,var_old_child) on <var37:TKwelse> */
9913 var_other
= var_old_child
;
9915 { /* Inline kernel#Object#is_same_instance (var37,var_other) on <var37:TKwelse> */
9916 var42
= var37
== var_other
;
9919 RET_LABEL41
:(void)0;
9924 RET_LABEL39
:(void)0;
9928 /* <var_new_child:nullable ANode> isa TKwelse */
9929 cltype44
= type_nit__TKwelse
.color
;
9930 idtype45
= type_nit__TKwelse
.id
;
9931 if(var_new_child
== NULL
) {
9934 if(cltype44
>= var_new_child
->type
->table_size
) {
9937 var43
= var_new_child
->type
->type_table
[cltype44
] == idtype45
;
9940 if (unlikely(!var43
)) {
9941 var_class_name46
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9942 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwelse", var_class_name46
);
9943 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2961);
9947 nit__parser_prod___AIfexprExpr___n_kwelse_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_kwelse= on <self:AIfexprExpr>*/
9952 var47
= self
->attrs
[COLOR_nit__parser_nodes__AIfexprExpr___n_else
].val
; /* _n_else on <self:AIfexprExpr> */
9953 if (unlikely(var47
== NULL
)) {
9954 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_else");
9955 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2964);
9959 { /* Inline kernel#Object#== (var47,var_old_child) on <var47:AExpr> */
9960 var_other
= var_old_child
;
9962 { /* Inline kernel#Object#is_same_instance (var47,var_other) on <var47:AExpr> */
9963 var52
= var47
== var_other
;
9966 RET_LABEL51
:(void)0;
9971 RET_LABEL49
:(void)0;
9975 /* <var_new_child:nullable ANode> isa AExpr */
9976 cltype54
= type_nit__AExpr
.color
;
9977 idtype55
= type_nit__AExpr
.id
;
9978 if(var_new_child
== NULL
) {
9981 if(cltype54
>= var_new_child
->type
->table_size
) {
9984 var53
= var_new_child
->type
->type_table
[cltype54
] == idtype55
;
9987 if (unlikely(!var53
)) {
9988 var_class_name56
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9989 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name56
);
9990 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 2965);
9994 nit__parser_prod___AIfexprExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AIfexprExpr#n_else= on <self:AIfexprExpr>*/