1 #include "nit__parser_prod.sep.0.h"
2 /* method parser_prod#AModule#init_amodule for (self: AModule, nullable AModuledecl, Collection[Object], Collection[Object], Collection[Object]) */
3 void nit__parser_prod___AModule___init_amodule(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4 val
* var_n_moduledecl
/* var n_moduledecl: nullable AModuledecl */;
5 val
* var_n_imports
/* var n_imports: Collection[Object] */;
6 val
* var_n_extern_code_blocks
/* var n_extern_code_blocks: Collection[Object] */;
7 val
* var_n_classdefs
/* var n_classdefs: Collection[Object] */;
9 short int var1
/* : Bool */;
10 short int var2
/* : Bool */;
11 val
* var_other
/* var other: nullable Object */;
12 short int var4
/* : Bool */;
13 short int var5
/* : Bool */;
14 val
* var7
/* : ANodes[AImport] */;
15 val
* var9
/* : ANodes[AImport] */;
16 val
* var10
/* : ANodes[AExternCodeBlock] */;
17 val
* var12
/* : ANodes[AExternCodeBlock] */;
18 val
* var13
/* : ANodes[AClassdef] */;
19 val
* var15
/* : ANodes[AClassdef] */;
20 var_n_moduledecl
= p0
;
22 var_n_extern_code_blocks
= p2
;
24 self
->attrs
[COLOR_nit__parser_nodes__AModule___n_moduledecl
].val
= var_n_moduledecl
; /* _n_moduledecl on <self:AModule> */
26 if (var_n_moduledecl
== NULL
) {
27 var1
= 0; /* is null */
29 var1
= 1; /* arg is null and recv is not */
32 { /* Inline kernel#Object#!= (var_n_moduledecl,var) on <var_n_moduledecl:nullable AModuledecl> */
35 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_moduledecl
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_moduledecl
, var_other
) /* == on <var_n_moduledecl:nullable AModuledecl(AModuledecl)>*/;
46 { /* Inline parser_nodes#ANode#parent= (var_n_moduledecl,self) on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
47 var_n_moduledecl
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
54 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
55 var9
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
56 if (unlikely(var9
== NULL
)) {
57 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
58 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 913);
66 nit___nit__ANodes___unsafe_add_all(var7
, var_n_imports
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[AImport]>*/
69 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
70 var12
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
71 if (unlikely(var12
== NULL
)) {
72 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
73 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 916);
81 nit___nit__ANodes___unsafe_add_all(var10
, var_n_extern_code_blocks
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var10:ANodes[AExternCodeBlock]>*/
84 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
85 var15
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
86 if (unlikely(var15
== NULL
)) {
87 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
88 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 919);
96 nit___nit__ANodes___unsafe_add_all(var13
, var_n_classdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var13:ANodes[AClassdef]>*/
100 /* method parser_prod#AModule#replace_child for (self: AModule, ANode, nullable ANode) */
101 void nit__parser_prod___AModule___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
102 val
* var_old_child
/* var old_child: ANode */;
103 val
* var_new_child
/* var new_child: nullable ANode */;
104 val
* var
/* : nullable AModuledecl */;
105 short int var1
/* : Bool */;
106 short int var2
/* : Bool */;
107 val
* var_other
/* var other: nullable Object */;
108 short int var4
/* : Bool */;
109 short int var6
/* : Bool */;
110 short int var7
/* : Bool */;
113 const char* var_class_name
;
114 val
* var8
/* : ANodes[AImport] */;
115 val
* var10
/* : ANodes[AImport] */;
116 short int var11
/* : Bool */;
117 val
* var12
/* : ANodes[AExternCodeBlock] */;
118 val
* var14
/* : ANodes[AExternCodeBlock] */;
119 short int var15
/* : Bool */;
120 val
* var16
/* : ANodes[AClassdef] */;
121 val
* var18
/* : ANodes[AClassdef] */;
122 short int var19
/* : Bool */;
125 var
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
127 var1
= 0; /* <var_old_child:ANode> cannot be null */
129 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AModuledecl> */
130 var_other
= var_old_child
;
132 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AModuledecl(AModuledecl)> */
133 var6
= var
== var_other
;
146 /* <var_new_child:nullable ANode> isa nullable AModuledecl */
147 cltype
= type_nullable__nit__AModuledecl
.color
;
148 idtype
= type_nullable__nit__AModuledecl
.id
;
149 if(var_new_child
== NULL
) {
152 if(cltype
>= var_new_child
->type
->table_size
) {
155 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
158 if (unlikely(!var7
)) {
159 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
160 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AModuledecl", var_class_name
);
161 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 27);
165 nit__parser_prod___AModule___n_moduledecl_61d(self
, var_new_child
); /* Direct call parser_prod#AModule#n_moduledecl= on <self:AModule>*/
171 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
172 var10
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
173 if (unlikely(var10
== NULL
)) {
174 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 913);
183 var11
= nit___nit__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
190 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
191 var14
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
192 if (unlikely(var14
== NULL
)) {
193 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
194 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 916);
202 var15
= nit___nit__ANodes___replace_child(var12
, var_old_child
, var_new_child
);
209 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
210 var18
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
211 if (unlikely(var18
== NULL
)) {
212 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
213 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 919);
221 var19
= nit___nit__ANodes___replace_child(var16
, var_old_child
, var_new_child
);
229 /* method parser_prod#AModule#n_moduledecl= for (self: AModule, nullable AModuledecl) */
230 void nit__parser_prod___AModule___n_moduledecl_61d(val
* self
, val
* p0
) {
231 val
* var_node
/* var node: nullable AModuledecl */;
232 val
* var
/* : null */;
233 short int var1
/* : Bool */;
234 short int var2
/* : Bool */;
235 val
* var_other
/* var other: nullable Object */;
236 short int var4
/* : Bool */;
237 short int var5
/* : Bool */;
239 self
->attrs
[COLOR_nit__parser_nodes__AModule___n_moduledecl
].val
= var_node
; /* _n_moduledecl on <self:AModule> */
241 if (var_node
== NULL
) {
242 var1
= 0; /* is null */
244 var1
= 1; /* arg is null and recv is not */
247 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AModuledecl> */
250 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AModuledecl(AModuledecl)>*/;
261 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AModuledecl(AModuledecl)> */
262 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AModuledecl(AModuledecl)> */
270 /* method parser_prod#AModule#visit_all for (self: AModule, Visitor) */
271 void nit__parser_prod___AModule___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
272 val
* var_v
/* var v: Visitor */;
273 val
* var
/* : nullable AModuledecl */;
274 val
* var1
/* : ANodes[AImport] */;
275 val
* var3
/* : ANodes[AImport] */;
276 val
* var4
/* : ANodes[AExternCodeBlock] */;
277 val
* var6
/* : ANodes[AExternCodeBlock] */;
278 val
* var7
/* : ANodes[AClassdef] */;
279 val
* var9
/* : ANodes[AClassdef] */;
281 var
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
283 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
286 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
287 var3
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
288 if (unlikely(var3
== NULL
)) {
289 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
290 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 913);
298 nit___nit__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AImport]>*/
301 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
302 var6
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
303 if (unlikely(var6
== NULL
)) {
304 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
305 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 916);
313 nit___nit__ANodes___visit_all(var4
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var4:ANodes[AExternCodeBlock]>*/
316 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
317 var9
= self
->attrs
[COLOR_nit__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
318 if (unlikely(var9
== NULL
)) {
319 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
320 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 919);
328 nit___nit__ANodes___visit_all(var7
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var7:ANodes[AClassdef]>*/
332 /* method parser_prod#AModuledecl#init_amoduledecl for (self: AModuledecl, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
333 void nit__parser_prod___AModuledecl___init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
334 val
* var_n_doc
/* var n_doc: nullable ADoc */;
335 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
336 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
337 val
* var_n_kwmodule
/* var n_kwmodule: nullable TKwmodule */;
338 val
* var_n_name
/* var n_name: nullable AModuleName */;
339 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
340 val
* var
/* : null */;
341 short int var1
/* : Bool */;
342 short int var2
/* : Bool */;
343 val
* var_other
/* var other: nullable Object */;
344 short int var4
/* : Bool */;
345 short int var5
/* : Bool */;
346 val
* var7
/* : null */;
347 short int var8
/* : Bool */;
348 short int var9
/* : Bool */;
349 short int var11
/* : Bool */;
350 short int var12
/* : Bool */;
351 val
* var17
/* : null */;
352 short int var18
/* : Bool */;
353 short int var19
/* : Bool */;
354 short int var21
/* : Bool */;
355 short int var22
/* : Bool */;
358 var_n_visibility
= p2
;
361 var_n_annotations
= p5
;
362 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AModuledecl> */
364 if (var_n_doc
== NULL
) {
365 var1
= 0; /* is null */
367 var1
= 1; /* arg is null and recv is not */
370 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
373 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)>*/;
384 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
385 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
391 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AModuledecl> */
393 if (var_n_kwredef
== NULL
) {
394 var8
= 0; /* is null */
396 var8
= 1; /* arg is null and recv is not */
399 { /* Inline kernel#Object#!= (var_n_kwredef,var7) on <var_n_kwredef:nullable TKwredef> */
402 var11
= ((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)>*/;
413 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
414 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
420 if (unlikely(var_n_visibility
== NULL
)) {
421 PRINT_ERROR("Runtime error: %s", "Cast failed");
422 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 64);
425 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AModuledecl> */
426 if (var_n_visibility
== NULL
) {
427 PRINT_ERROR("Runtime error: %s", "Receiver is null");
428 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 65);
431 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
432 if (unlikely(var_n_visibility
== NULL
)) {
433 PRINT_ERROR("Runtime error: %s", "Receiver is null");
434 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
437 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
441 if (unlikely(var_n_kwmodule
== NULL
)) {
442 PRINT_ERROR("Runtime error: %s", "Cast failed");
443 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 66);
446 self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_kwmodule
].val
= var_n_kwmodule
; /* _n_kwmodule on <self:AModuledecl> */
447 if (var_n_kwmodule
== NULL
) {
448 PRINT_ERROR("Runtime error: %s", "Receiver is null");
449 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 67);
452 { /* Inline parser_nodes#ANode#parent= (var_n_kwmodule,self) on <var_n_kwmodule:nullable TKwmodule> */
453 if (unlikely(var_n_kwmodule
== NULL
)) {
454 PRINT_ERROR("Runtime error: %s", "Receiver is null");
455 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
458 var_n_kwmodule
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmodule:nullable TKwmodule> */
462 if (unlikely(var_n_name
== NULL
)) {
463 PRINT_ERROR("Runtime error: %s", "Cast failed");
464 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 68);
467 self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_name
].val
= var_n_name
; /* _n_name on <self:AModuledecl> */
468 if (var_n_name
== NULL
) {
469 PRINT_ERROR("Runtime error: %s", "Receiver is null");
470 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 69);
473 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
474 if (unlikely(var_n_name
== NULL
)) {
475 PRINT_ERROR("Runtime error: %s", "Receiver is null");
476 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
479 var_n_name
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
483 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AModuledecl> */
485 if (var_n_annotations
== NULL
) {
486 var18
= 0; /* is null */
488 var18
= 1; /* arg is null and recv is not */
491 { /* Inline kernel#Object#!= (var_n_annotations,var17) on <var_n_annotations:nullable AAnnotations> */
494 var21
= ((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)>*/;
505 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
506 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
514 /* method parser_prod#AModuledecl#replace_child for (self: AModuledecl, ANode, nullable ANode) */
515 void nit__parser_prod___AModuledecl___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
516 val
* var_old_child
/* var old_child: ANode */;
517 val
* var_new_child
/* var new_child: nullable ANode */;
518 val
* var
/* : nullable ADoc */;
519 short int var1
/* : Bool */;
520 short int var2
/* : Bool */;
521 val
* var_other
/* var other: nullable Object */;
522 short int var4
/* : Bool */;
523 short int var6
/* : Bool */;
524 short int var7
/* : Bool */;
527 const char* var_class_name
;
528 val
* var8
/* : nullable TKwredef */;
529 short int var9
/* : Bool */;
530 short int var10
/* : Bool */;
531 short int var12
/* : Bool */;
532 short int var14
/* : Bool */;
533 short int var15
/* : Bool */;
536 const char* var_class_name18
;
537 val
* var19
/* : nullable AVisibility */;
538 short int var20
/* : Bool */;
539 short int var21
/* : Bool */;
540 short int var23
/* : Bool */;
541 short int var25
/* : Bool */;
542 short int var26
/* : Bool */;
545 const char* var_class_name29
;
546 val
* var30
/* : TKwmodule */;
547 short int var31
/* : Bool */;
548 short int var33
/* : Bool */;
549 short int var35
/* : Bool */;
550 short int var36
/* : Bool */;
553 const char* var_class_name39
;
554 val
* var40
/* : AModuleName */;
555 short int var41
/* : Bool */;
556 short int var43
/* : Bool */;
557 short int var45
/* : Bool */;
558 short int var46
/* : Bool */;
561 const char* var_class_name49
;
562 val
* var50
/* : nullable AAnnotations */;
563 short int var51
/* : Bool */;
564 short int var52
/* : Bool */;
565 short int var54
/* : Bool */;
566 short int var56
/* : Bool */;
567 short int var57
/* : Bool */;
570 const char* var_class_name60
;
573 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
575 var1
= 0; /* <var_old_child:ANode> cannot be null */
577 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
578 var_other
= var_old_child
;
580 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
581 var6
= var
== var_other
;
594 /* <var_new_child:nullable ANode> isa nullable ADoc */
595 cltype
= type_nullable__nit__ADoc
.color
;
596 idtype
= type_nullable__nit__ADoc
.id
;
597 if(var_new_child
== NULL
) {
600 if(cltype
>= var_new_child
->type
->table_size
) {
603 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
606 if (unlikely(!var7
)) {
607 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
608 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
609 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 77);
613 nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_doc= on <self:AModuledecl>*/
618 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
620 var9
= 0; /* <var_old_child:ANode> cannot be null */
622 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
623 var_other
= var_old_child
;
625 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
626 var14
= var8
== var_other
;
639 /* <var_new_child:nullable ANode> isa nullable TKwredef */
640 cltype16
= type_nullable__nit__TKwredef
.color
;
641 idtype17
= type_nullable__nit__TKwredef
.id
;
642 if(var_new_child
== NULL
) {
645 if(cltype16
>= var_new_child
->type
->table_size
) {
648 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
651 if (unlikely(!var15
)) {
652 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
653 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
654 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 81);
658 nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwredef= on <self:AModuledecl>*/
663 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
665 var20
= 0; /* <var_old_child:ANode> cannot be null */
667 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
668 var_other
= var_old_child
;
670 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
671 var25
= var19
== var_other
;
684 /* <var_new_child:nullable ANode> isa AVisibility */
685 cltype27
= type_nit__AVisibility
.color
;
686 idtype28
= type_nit__AVisibility
.id
;
687 if(var_new_child
== NULL
) {
690 if(cltype27
>= var_new_child
->type
->table_size
) {
693 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
696 if (unlikely(!var26
)) {
697 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
698 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
699 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 85);
703 nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_visibility= on <self:AModuledecl>*/
708 var30
= self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
709 if (unlikely(var30
== NULL
)) {
710 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
711 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 88);
715 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwmodule> */
716 var_other
= var_old_child
;
718 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwmodule> */
719 var35
= var30
== var_other
;
731 /* <var_new_child:nullable ANode> isa TKwmodule */
732 cltype37
= type_nit__TKwmodule
.color
;
733 idtype38
= type_nit__TKwmodule
.id
;
734 if(var_new_child
== NULL
) {
737 if(cltype37
>= var_new_child
->type
->table_size
) {
740 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
743 if (unlikely(!var36
)) {
744 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
745 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwmodule", var_class_name39
);
746 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 89);
750 nit__parser_prod___AModuledecl___n_kwmodule_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwmodule= on <self:AModuledecl>*/
755 var40
= self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
756 if (unlikely(var40
== NULL
)) {
757 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
758 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 92);
762 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:AModuleName> */
763 var_other
= var_old_child
;
765 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:AModuleName> */
766 var45
= var40
== var_other
;
778 /* <var_new_child:nullable ANode> isa AModuleName */
779 cltype47
= type_nit__AModuleName
.color
;
780 idtype48
= type_nit__AModuleName
.id
;
781 if(var_new_child
== NULL
) {
784 if(cltype47
>= var_new_child
->type
->table_size
) {
787 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
790 if (unlikely(!var46
)) {
791 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
792 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name49
);
793 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 93);
797 nit__parser_prod___AModuledecl___n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_name= on <self:AModuledecl>*/
802 var50
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
804 var51
= 0; /* <var_old_child:ANode> cannot be null */
806 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AAnnotations> */
807 var_other
= var_old_child
;
809 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AAnnotations(AAnnotations)> */
810 var56
= var50
== var_other
;
823 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
824 cltype58
= type_nullable__nit__AAnnotations
.color
;
825 idtype59
= type_nullable__nit__AAnnotations
.id
;
826 if(var_new_child
== NULL
) {
829 if(cltype58
>= var_new_child
->type
->table_size
) {
832 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
835 if (unlikely(!var57
)) {
836 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
837 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name60
);
838 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 97);
842 nit__parser_prod___AModuledecl___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_annotations= on <self:AModuledecl>*/
849 /* method parser_prod#AModuledecl#n_doc= for (self: AModuledecl, nullable ADoc) */
850 void nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
851 val
* var_node
/* var node: nullable ADoc */;
852 val
* var
/* : null */;
853 short int var1
/* : Bool */;
854 short int var2
/* : Bool */;
855 val
* var_other
/* var other: nullable Object */;
856 short int var4
/* : Bool */;
857 short int var5
/* : Bool */;
859 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AModuledecl> */
861 if (var_node
== NULL
) {
862 var1
= 0; /* is null */
864 var1
= 1; /* arg is null and recv is not */
867 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
870 var4
= ((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)>*/;
881 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
882 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
890 /* method parser_prod#AModuledecl#n_kwredef= for (self: AModuledecl, nullable TKwredef) */
891 void nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
892 val
* var_node
/* var node: nullable TKwredef */;
893 val
* var
/* : null */;
894 short int var1
/* : Bool */;
895 short int var2
/* : Bool */;
896 val
* var_other
/* var other: nullable Object */;
897 short int var4
/* : Bool */;
898 short int var5
/* : Bool */;
900 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AModuledecl> */
902 if (var_node
== NULL
) {
903 var1
= 0; /* is null */
905 var1
= 1; /* arg is null and recv is not */
908 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
911 var4
= ((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)>*/;
922 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
923 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
931 /* method parser_prod#AModuledecl#n_visibility= for (self: AModuledecl, nullable AVisibility) */
932 void nit__parser_prod___AModuledecl___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
933 val
* var_node
/* var node: nullable AVisibility */;
935 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AModuledecl> */
936 if (var_node
== NULL
) {
937 PRINT_ERROR("Runtime error: %s", "Receiver is null");
938 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 115);
941 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
942 if (unlikely(var_node
== NULL
)) {
943 PRINT_ERROR("Runtime error: %s", "Receiver is null");
944 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
947 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
953 /* method parser_prod#AModuledecl#n_kwmodule= for (self: AModuledecl, TKwmodule) */
954 void nit__parser_prod___AModuledecl___n_kwmodule_61d(val
* self
, val
* p0
) {
955 val
* var_node
/* var node: TKwmodule */;
957 self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_kwmodule
].val
= var_node
; /* _n_kwmodule on <self:AModuledecl> */
959 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwmodule> */
960 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwmodule> */
966 /* method parser_prod#AModuledecl#n_name= for (self: AModuledecl, AModuleName) */
967 void nit__parser_prod___AModuledecl___n_name_61d(val
* self
, val
* p0
) {
968 val
* var_node
/* var node: AModuleName */;
970 self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_name
].val
= var_node
; /* _n_name on <self:AModuledecl> */
972 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
973 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
979 /* method parser_prod#AModuledecl#n_annotations= for (self: AModuledecl, nullable AAnnotations) */
980 void nit__parser_prod___AModuledecl___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
981 val
* var_node
/* var node: nullable AAnnotations */;
982 val
* var
/* : null */;
983 short int var1
/* : Bool */;
984 short int var2
/* : Bool */;
985 val
* var_other
/* var other: nullable Object */;
986 short int var4
/* : Bool */;
987 short int var5
/* : Bool */;
989 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AModuledecl> */
991 if (var_node
== NULL
) {
992 var1
= 0; /* is null */
994 var1
= 1; /* arg is null and recv is not */
997 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1000 var4
= ((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)>*/;
1011 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1012 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1020 /* method parser_prod#AModuledecl#visit_all for (self: AModuledecl, Visitor) */
1021 void nit__parser_prod___AModuledecl___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1022 val
* var_v
/* var v: Visitor */;
1023 val
* var
/* : nullable ADoc */;
1024 val
* var1
/* : nullable TKwredef */;
1025 val
* var2
/* : nullable AVisibility */;
1026 val
* var3
/* : TKwmodule */;
1027 val
* var4
/* : AModuleName */;
1028 val
* var5
/* : nullable AAnnotations */;
1030 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
1032 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1034 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
1036 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1038 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
1040 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1042 var3
= self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
1043 if (unlikely(var3
== NULL
)) {
1044 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
1045 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 139);
1049 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1051 var4
= self
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
1052 if (unlikely(var4
== NULL
)) {
1053 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1054 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 140);
1058 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1060 var5
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
1062 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1066 /* method parser_prod#AStdImport#init_astdimport for (self: AStdImport, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1067 void nit__parser_prod___AStdImport___init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1068 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1069 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1070 val
* var_n_name
/* var n_name: nullable AModuleName */;
1071 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1072 val
* var
/* : null */;
1073 short int var4
/* : Bool */;
1074 short int var5
/* : Bool */;
1075 val
* var_other
/* var other: nullable Object */;
1076 short int var7
/* : Bool */;
1077 short int var8
/* : Bool */;
1078 var_n_visibility
= p0
;
1079 var_n_kwimport
= p1
;
1081 var_n_annotations
= p3
;
1082 if (unlikely(var_n_visibility
== NULL
)) {
1083 PRINT_ERROR("Runtime error: %s", "Cast failed");
1084 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 152);
1087 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdImport> */
1088 if (var_n_visibility
== NULL
) {
1089 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1090 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 153);
1093 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1094 if (unlikely(var_n_visibility
== NULL
)) {
1095 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1096 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1099 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1103 if (unlikely(var_n_kwimport
== NULL
)) {
1104 PRINT_ERROR("Runtime error: %s", "Cast failed");
1105 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 154);
1108 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AStdImport> */
1109 if (var_n_kwimport
== NULL
) {
1110 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1111 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 155);
1114 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1115 if (unlikely(var_n_kwimport
== NULL
)) {
1116 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1117 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1120 var_n_kwimport
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1124 if (unlikely(var_n_name
== NULL
)) {
1125 PRINT_ERROR("Runtime error: %s", "Cast failed");
1126 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 156);
1129 self
->attrs
[COLOR_nit__parser_nodes__AStdImport___n_name
].val
= var_n_name
; /* _n_name on <self:AStdImport> */
1130 if (var_n_name
== NULL
) {
1131 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1132 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 157);
1135 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
1136 if (unlikely(var_n_name
== NULL
)) {
1137 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1138 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1141 var_n_name
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
1145 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdImport> */
1147 if (var_n_annotations
== NULL
) {
1148 var4
= 0; /* is null */
1150 var4
= 1; /* arg is null and recv is not */
1153 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1156 var7
= ((short int (*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
1167 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1168 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1176 /* method parser_prod#AStdImport#replace_child for (self: AStdImport, ANode, nullable ANode) */
1177 void nit__parser_prod___AStdImport___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1178 val
* var_old_child
/* var old_child: ANode */;
1179 val
* var_new_child
/* var new_child: nullable ANode */;
1180 val
* var
/* : AVisibility */;
1181 short int var1
/* : Bool */;
1182 val
* var_other
/* var other: nullable Object */;
1183 short int var3
/* : Bool */;
1184 short int var5
/* : Bool */;
1185 short int var6
/* : Bool */;
1188 const char* var_class_name
;
1189 val
* var7
/* : TKwimport */;
1190 short int var8
/* : Bool */;
1191 short int var10
/* : Bool */;
1192 short int var12
/* : Bool */;
1193 short int var13
/* : Bool */;
1196 const char* var_class_name16
;
1197 val
* var17
/* : AModuleName */;
1198 short int var18
/* : Bool */;
1199 short int var20
/* : Bool */;
1200 short int var22
/* : Bool */;
1201 short int var23
/* : Bool */;
1204 const char* var_class_name26
;
1205 val
* var27
/* : nullable AAnnotations */;
1206 short int var28
/* : Bool */;
1207 short int var29
/* : Bool */;
1208 short int var31
/* : Bool */;
1209 short int var33
/* : Bool */;
1210 short int var34
/* : Bool */;
1213 const char* var_class_name37
;
1216 var
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1217 if (unlikely(var
== NULL
)) {
1218 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1219 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 164);
1223 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1224 var_other
= var_old_child
;
1226 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1227 var5
= var
== var_other
;
1239 /* <var_new_child:nullable ANode> isa AVisibility */
1240 cltype
= type_nit__AVisibility
.color
;
1241 idtype
= type_nit__AVisibility
.id
;
1242 if(var_new_child
== NULL
) {
1245 if(cltype
>= var_new_child
->type
->table_size
) {
1248 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1251 if (unlikely(!var6
)) {
1252 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1253 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1254 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 165);
1258 nit__parser_prod___AStdImport___nit__parser_nodes__AImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_visibility= on <self:AStdImport>*/
1263 var7
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1264 if (unlikely(var7
== NULL
)) {
1265 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1266 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 168);
1270 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwimport> */
1271 var_other
= var_old_child
;
1273 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwimport> */
1274 var12
= var7
== var_other
;
1277 RET_LABEL11
:(void)0;
1286 /* <var_new_child:nullable ANode> isa TKwimport */
1287 cltype14
= type_nit__TKwimport
.color
;
1288 idtype15
= type_nit__TKwimport
.id
;
1289 if(var_new_child
== NULL
) {
1292 if(cltype14
>= var_new_child
->type
->table_size
) {
1295 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1298 if (unlikely(!var13
)) {
1299 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1300 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name16
);
1301 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 169);
1305 nit__parser_prod___AStdImport___nit__parser_nodes__AImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_kwimport= on <self:AStdImport>*/
1310 var17
= self
->attrs
[COLOR_nit__parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1311 if (unlikely(var17
== NULL
)) {
1312 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1313 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 172);
1317 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AModuleName> */
1318 var_other
= var_old_child
;
1320 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AModuleName> */
1321 var22
= var17
== var_other
;
1324 RET_LABEL21
:(void)0;
1329 RET_LABEL19
:(void)0;
1333 /* <var_new_child:nullable ANode> isa AModuleName */
1334 cltype24
= type_nit__AModuleName
.color
;
1335 idtype25
= type_nit__AModuleName
.id
;
1336 if(var_new_child
== NULL
) {
1339 if(cltype24
>= var_new_child
->type
->table_size
) {
1342 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1345 if (unlikely(!var23
)) {
1346 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1347 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name26
);
1348 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 173);
1352 nit__parser_prod___AStdImport___n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_name= on <self:AStdImport>*/
1357 var27
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1358 if (var27
== NULL
) {
1359 var28
= 0; /* <var_old_child:ANode> cannot be null */
1361 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AAnnotations> */
1362 var_other
= var_old_child
;
1364 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AAnnotations(AAnnotations)> */
1365 var33
= var27
== var_other
;
1368 RET_LABEL32
:(void)0;
1373 RET_LABEL30
:(void)0;
1378 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1379 cltype35
= type_nullable__nit__AAnnotations
.color
;
1380 idtype36
= type_nullable__nit__AAnnotations
.id
;
1381 if(var_new_child
== NULL
) {
1384 if(cltype35
>= var_new_child
->type
->table_size
) {
1387 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
1390 if (unlikely(!var34
)) {
1391 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1392 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name37
);
1393 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 177);
1397 nit__parser_prod___AStdImport___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_annotations= on <self:AStdImport>*/
1404 /* method parser_prod#AStdImport#n_visibility= for (self: AStdImport, AVisibility) */
1405 void nit__parser_prod___AStdImport___nit__parser_nodes__AImport__n_visibility_61d(val
* self
, val
* p0
) {
1406 val
* var_node
/* var node: AVisibility */;
1408 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdImport> */
1410 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1411 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1417 /* method parser_prod#AStdImport#n_kwimport= for (self: AStdImport, TKwimport) */
1418 void nit__parser_prod___AStdImport___nit__parser_nodes__AImport__n_kwimport_61d(val
* self
, val
* p0
) {
1419 val
* var_node
/* var node: TKwimport */;
1421 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AStdImport> */
1423 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1424 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1430 /* method parser_prod#AStdImport#n_name= for (self: AStdImport, AModuleName) */
1431 void nit__parser_prod___AStdImport___n_name_61d(val
* self
, val
* p0
) {
1432 val
* var_node
/* var node: AModuleName */;
1434 self
->attrs
[COLOR_nit__parser_nodes__AStdImport___n_name
].val
= var_node
; /* _n_name on <self:AStdImport> */
1436 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
1437 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
1443 /* method parser_prod#AStdImport#n_annotations= for (self: AStdImport, nullable AAnnotations) */
1444 void nit__parser_prod___AStdImport___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1445 val
* var_node
/* var node: nullable AAnnotations */;
1446 val
* var
/* : null */;
1447 short int var1
/* : Bool */;
1448 short int var2
/* : Bool */;
1449 val
* var_other
/* var other: nullable Object */;
1450 short int var4
/* : Bool */;
1451 short int var5
/* : Bool */;
1453 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdImport> */
1455 if (var_node
== NULL
) {
1456 var1
= 0; /* is null */
1458 var1
= 1; /* arg is null and recv is not */
1461 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1464 var4
= ((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)>*/;
1475 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1476 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1484 /* method parser_prod#AStdImport#visit_all for (self: AStdImport, Visitor) */
1485 void nit__parser_prod___AStdImport___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1486 val
* var_v
/* var v: Visitor */;
1487 val
* var
/* : AVisibility */;
1488 val
* var1
/* : TKwimport */;
1489 val
* var2
/* : AModuleName */;
1490 val
* var3
/* : nullable AAnnotations */;
1492 var
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1493 if (unlikely(var
== NULL
)) {
1494 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1495 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 206);
1499 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1501 var1
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1502 if (unlikely(var1
== NULL
)) {
1503 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1504 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 207);
1508 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1510 var2
= self
->attrs
[COLOR_nit__parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1511 if (unlikely(var2
== NULL
)) {
1512 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1513 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 208);
1517 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1519 var3
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1521 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1525 /* method parser_prod#ANoImport#init_anoimport for (self: ANoImport, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1526 void nit__parser_prod___ANoImport___init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1527 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1528 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1529 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
1530 var_n_visibility
= p0
;
1531 var_n_kwimport
= p1
;
1533 if (unlikely(var_n_visibility
== NULL
)) {
1534 PRINT_ERROR("Runtime error: %s", "Cast failed");
1535 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 219);
1538 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ANoImport> */
1539 if (var_n_visibility
== NULL
) {
1540 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1541 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 220);
1544 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1545 if (unlikely(var_n_visibility
== NULL
)) {
1546 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1547 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1550 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1554 if (unlikely(var_n_kwimport
== NULL
)) {
1555 PRINT_ERROR("Runtime error: %s", "Cast failed");
1556 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 221);
1559 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:ANoImport> */
1560 if (var_n_kwimport
== NULL
) {
1561 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1562 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 222);
1565 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1566 if (unlikely(var_n_kwimport
== NULL
)) {
1567 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1568 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1571 var_n_kwimport
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1575 if (unlikely(var_n_kwend
== NULL
)) {
1576 PRINT_ERROR("Runtime error: %s", "Cast failed");
1577 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 223);
1580 self
->attrs
[COLOR_nit__parser_nodes__ANoImport___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ANoImport> */
1581 if (var_n_kwend
== NULL
) {
1582 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1583 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 224);
1586 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
1587 if (unlikely(var_n_kwend
== NULL
)) {
1588 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1589 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
1592 var_n_kwend
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
1598 /* method parser_prod#ANoImport#replace_child for (self: ANoImport, ANode, nullable ANode) */
1599 void nit__parser_prod___ANoImport___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1600 val
* var_old_child
/* var old_child: ANode */;
1601 val
* var_new_child
/* var new_child: nullable ANode */;
1602 val
* var
/* : AVisibility */;
1603 short int var1
/* : Bool */;
1604 val
* var_other
/* var other: nullable Object */;
1605 short int var3
/* : Bool */;
1606 short int var5
/* : Bool */;
1607 short int var6
/* : Bool */;
1610 const char* var_class_name
;
1611 val
* var7
/* : TKwimport */;
1612 short int var8
/* : Bool */;
1613 short int var10
/* : Bool */;
1614 short int var12
/* : Bool */;
1615 short int var13
/* : Bool */;
1618 const char* var_class_name16
;
1619 val
* var17
/* : TKwend */;
1620 short int var18
/* : Bool */;
1621 short int var20
/* : Bool */;
1622 short int var22
/* : Bool */;
1623 short int var23
/* : Bool */;
1626 const char* var_class_name26
;
1629 var
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1630 if (unlikely(var
== NULL
)) {
1631 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1632 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 229);
1636 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1637 var_other
= var_old_child
;
1639 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1640 var5
= var
== var_other
;
1652 /* <var_new_child:nullable ANode> isa AVisibility */
1653 cltype
= type_nit__AVisibility
.color
;
1654 idtype
= type_nit__AVisibility
.id
;
1655 if(var_new_child
== NULL
) {
1658 if(cltype
>= var_new_child
->type
->table_size
) {
1661 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1664 if (unlikely(!var6
)) {
1665 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1666 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1667 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 230);
1671 nit__parser_prod___ANoImport___nit__parser_nodes__AImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_visibility= on <self:ANoImport>*/
1676 var7
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1677 if (unlikely(var7
== NULL
)) {
1678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1679 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 233);
1683 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwimport> */
1684 var_other
= var_old_child
;
1686 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwimport> */
1687 var12
= var7
== var_other
;
1690 RET_LABEL11
:(void)0;
1699 /* <var_new_child:nullable ANode> isa TKwimport */
1700 cltype14
= type_nit__TKwimport
.color
;
1701 idtype15
= type_nit__TKwimport
.id
;
1702 if(var_new_child
== NULL
) {
1705 if(cltype14
>= var_new_child
->type
->table_size
) {
1708 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1711 if (unlikely(!var13
)) {
1712 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1713 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name16
);
1714 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 234);
1718 nit__parser_prod___ANoImport___nit__parser_nodes__AImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwimport= on <self:ANoImport>*/
1723 var17
= self
->attrs
[COLOR_nit__parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1724 if (unlikely(var17
== NULL
)) {
1725 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1726 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 237);
1730 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwend> */
1731 var_other
= var_old_child
;
1733 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwend> */
1734 var22
= var17
== var_other
;
1737 RET_LABEL21
:(void)0;
1742 RET_LABEL19
:(void)0;
1746 /* <var_new_child:nullable ANode> isa TKwend */
1747 cltype24
= type_nit__TKwend
.color
;
1748 idtype25
= type_nit__TKwend
.id
;
1749 if(var_new_child
== NULL
) {
1752 if(cltype24
>= var_new_child
->type
->table_size
) {
1755 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1758 if (unlikely(!var23
)) {
1759 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1760 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name26
);
1761 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 238);
1765 nit__parser_prod___ANoImport___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwend= on <self:ANoImport>*/
1772 /* method parser_prod#ANoImport#n_visibility= for (self: ANoImport, AVisibility) */
1773 void nit__parser_prod___ANoImport___nit__parser_nodes__AImport__n_visibility_61d(val
* self
, val
* p0
) {
1774 val
* var_node
/* var node: AVisibility */;
1776 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:ANoImport> */
1778 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1779 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1785 /* method parser_prod#ANoImport#n_kwimport= for (self: ANoImport, TKwimport) */
1786 void nit__parser_prod___ANoImport___nit__parser_nodes__AImport__n_kwimport_61d(val
* self
, val
* p0
) {
1787 val
* var_node
/* var node: TKwimport */;
1789 self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:ANoImport> */
1791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1792 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1798 /* method parser_prod#ANoImport#n_kwend= for (self: ANoImport, TKwend) */
1799 void nit__parser_prod___ANoImport___n_kwend_61d(val
* self
, val
* p0
) {
1800 val
* var_node
/* var node: TKwend */;
1802 self
->attrs
[COLOR_nit__parser_nodes__ANoImport___n_kwend
].val
= var_node
; /* _n_kwend on <self:ANoImport> */
1804 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
1805 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
1811 /* method parser_prod#ANoImport#visit_all for (self: ANoImport, Visitor) */
1812 void nit__parser_prod___ANoImport___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1813 val
* var_v
/* var v: Visitor */;
1814 val
* var
/* : AVisibility */;
1815 val
* var1
/* : TKwimport */;
1816 val
* var2
/* : TKwend */;
1818 var
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1819 if (unlikely(var
== NULL
)) {
1820 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1821 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 262);
1825 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1827 var1
= self
->attrs
[COLOR_nit__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1828 if (unlikely(var1
== NULL
)) {
1829 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1830 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 263);
1834 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1836 var2
= self
->attrs
[COLOR_nit__parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1837 if (unlikely(var2
== NULL
)) {
1838 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1839 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 264);
1843 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1847 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: APublicVisibility, nullable TKwpublic) */
1848 void nit__parser_prod___APublicVisibility___init_apublicvisibility(val
* self
, val
* p0
) {
1849 val
* var_n_kwpublic
/* var n_kwpublic: nullable TKwpublic */;
1850 val
* var
/* : null */;
1851 short int var1
/* : Bool */;
1852 short int var2
/* : Bool */;
1853 val
* var_other
/* var other: nullable Object */;
1854 short int var4
/* : Bool */;
1855 short int var5
/* : Bool */;
1856 var_n_kwpublic
= p0
;
1857 self
->attrs
[COLOR_nit__parser_nodes__APublicVisibility___n_kwpublic
].val
= var_n_kwpublic
; /* _n_kwpublic on <self:APublicVisibility> */
1859 if (var_n_kwpublic
== NULL
) {
1860 var1
= 0; /* is null */
1862 var1
= 1; /* arg is null and recv is not */
1865 { /* Inline kernel#Object#!= (var_n_kwpublic,var) on <var_n_kwpublic:nullable TKwpublic> */
1868 var4
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwpublic
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwpublic
, var_other
) /* == on <var_n_kwpublic:nullable TKwpublic(TKwpublic)>*/;
1879 { /* Inline parser_nodes#ANode#parent= (var_n_kwpublic,self) on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
1880 var_n_kwpublic
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
1888 /* method parser_prod#APublicVisibility#replace_child for (self: APublicVisibility, ANode, nullable ANode) */
1889 void nit__parser_prod___APublicVisibility___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1890 val
* var_old_child
/* var old_child: ANode */;
1891 val
* var_new_child
/* var new_child: nullable ANode */;
1892 val
* var
/* : nullable TKwpublic */;
1893 short int var1
/* : Bool */;
1894 short int var2
/* : Bool */;
1895 val
* var_other
/* var other: nullable Object */;
1896 short int var4
/* : Bool */;
1897 short int var6
/* : Bool */;
1898 short int var7
/* : Bool */;
1901 const char* var_class_name
;
1904 var
= self
->attrs
[COLOR_nit__parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
1906 var1
= 0; /* <var_old_child:ANode> cannot be null */
1908 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwpublic> */
1909 var_other
= var_old_child
;
1911 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwpublic(TKwpublic)> */
1912 var6
= var
== var_other
;
1925 /* <var_new_child:nullable ANode> isa nullable TKwpublic */
1926 cltype
= type_nullable__nit__TKwpublic
.color
;
1927 idtype
= type_nullable__nit__TKwpublic
.id
;
1928 if(var_new_child
== NULL
) {
1931 if(cltype
>= var_new_child
->type
->table_size
) {
1934 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1937 if (unlikely(!var7
)) {
1938 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1939 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwpublic", var_class_name
);
1940 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 279);
1944 nit__parser_prod___APublicVisibility___n_kwpublic_61d(self
, var_new_child
); /* Direct call parser_prod#APublicVisibility#n_kwpublic= on <self:APublicVisibility>*/
1951 /* method parser_prod#APublicVisibility#n_kwpublic= for (self: APublicVisibility, nullable TKwpublic) */
1952 void nit__parser_prod___APublicVisibility___n_kwpublic_61d(val
* self
, val
* p0
) {
1953 val
* var_node
/* var node: nullable TKwpublic */;
1954 val
* var
/* : null */;
1955 short int var1
/* : Bool */;
1956 short int var2
/* : Bool */;
1957 val
* var_other
/* var other: nullable Object */;
1958 short int var4
/* : Bool */;
1959 short int var5
/* : Bool */;
1961 self
->attrs
[COLOR_nit__parser_nodes__APublicVisibility___n_kwpublic
].val
= var_node
; /* _n_kwpublic on <self:APublicVisibility> */
1963 if (var_node
== NULL
) {
1964 var1
= 0; /* is null */
1966 var1
= 1; /* arg is null and recv is not */
1969 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwpublic> */
1972 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwpublic(TKwpublic)>*/;
1983 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwpublic(TKwpublic)> */
1984 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwpublic(TKwpublic)> */
1992 /* method parser_prod#APublicVisibility#visit_all for (self: APublicVisibility, Visitor) */
1993 void nit__parser_prod___APublicVisibility___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1994 val
* var_v
/* var v: Visitor */;
1995 val
* var
/* : nullable TKwpublic */;
1997 var
= self
->attrs
[COLOR_nit__parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
1999 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2003 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: APrivateVisibility, nullable TKwprivate) */
2004 void nit__parser_prod___APrivateVisibility___init_aprivatevisibility(val
* self
, val
* p0
) {
2005 val
* var_n_kwprivate
/* var n_kwprivate: nullable TKwprivate */;
2006 var_n_kwprivate
= p0
;
2007 if (unlikely(var_n_kwprivate
== NULL
)) {
2008 PRINT_ERROR("Runtime error: %s", "Cast failed");
2009 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 301);
2012 self
->attrs
[COLOR_nit__parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_n_kwprivate
; /* _n_kwprivate on <self:APrivateVisibility> */
2013 if (var_n_kwprivate
== NULL
) {
2014 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2015 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 302);
2018 { /* Inline parser_nodes#ANode#parent= (var_n_kwprivate,self) on <var_n_kwprivate:nullable TKwprivate> */
2019 if (unlikely(var_n_kwprivate
== NULL
)) {
2020 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2021 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2024 var_n_kwprivate
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprivate:nullable TKwprivate> */
2030 /* method parser_prod#APrivateVisibility#replace_child for (self: APrivateVisibility, ANode, nullable ANode) */
2031 void nit__parser_prod___APrivateVisibility___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2032 val
* var_old_child
/* var old_child: ANode */;
2033 val
* var_new_child
/* var new_child: nullable ANode */;
2034 val
* var
/* : TKwprivate */;
2035 short int var1
/* : Bool */;
2036 val
* var_other
/* var other: nullable Object */;
2037 short int var3
/* : Bool */;
2038 short int var5
/* : Bool */;
2039 short int var6
/* : Bool */;
2042 const char* var_class_name
;
2045 var
= self
->attrs
[COLOR_nit__parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2046 if (unlikely(var
== NULL
)) {
2047 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2048 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 307);
2052 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprivate> */
2053 var_other
= var_old_child
;
2055 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprivate> */
2056 var5
= var
== var_other
;
2068 /* <var_new_child:nullable ANode> isa TKwprivate */
2069 cltype
= type_nit__TKwprivate
.color
;
2070 idtype
= type_nit__TKwprivate
.id
;
2071 if(var_new_child
== NULL
) {
2074 if(cltype
>= var_new_child
->type
->table_size
) {
2077 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2080 if (unlikely(!var6
)) {
2081 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2082 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprivate", var_class_name
);
2083 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 308);
2087 nit__parser_prod___APrivateVisibility___n_kwprivate_61d(self
, var_new_child
); /* Direct call parser_prod#APrivateVisibility#n_kwprivate= on <self:APrivateVisibility>*/
2094 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: APrivateVisibility, TKwprivate) */
2095 void nit__parser_prod___APrivateVisibility___n_kwprivate_61d(val
* self
, val
* p0
) {
2096 val
* var_node
/* var node: TKwprivate */;
2098 self
->attrs
[COLOR_nit__parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_node
; /* _n_kwprivate on <self:APrivateVisibility> */
2100 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprivate> */
2101 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprivate> */
2107 /* method parser_prod#APrivateVisibility#visit_all for (self: APrivateVisibility, Visitor) */
2108 void nit__parser_prod___APrivateVisibility___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2109 val
* var_v
/* var v: Visitor */;
2110 val
* var
/* : TKwprivate */;
2112 var
= self
->attrs
[COLOR_nit__parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2113 if (unlikely(var
== NULL
)) {
2114 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2115 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 322);
2119 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2123 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: AProtectedVisibility, nullable TKwprotected) */
2124 void nit__parser_prod___AProtectedVisibility___init_aprotectedvisibility(val
* self
, val
* p0
) {
2125 val
* var_n_kwprotected
/* var n_kwprotected: nullable TKwprotected */;
2126 var_n_kwprotected
= p0
;
2127 if (unlikely(var_n_kwprotected
== NULL
)) {
2128 PRINT_ERROR("Runtime error: %s", "Cast failed");
2129 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 330);
2132 self
->attrs
[COLOR_nit__parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_n_kwprotected
; /* _n_kwprotected on <self:AProtectedVisibility> */
2133 if (var_n_kwprotected
== NULL
) {
2134 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2135 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 331);
2138 { /* Inline parser_nodes#ANode#parent= (var_n_kwprotected,self) on <var_n_kwprotected:nullable TKwprotected> */
2139 if (unlikely(var_n_kwprotected
== NULL
)) {
2140 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2141 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2144 var_n_kwprotected
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprotected:nullable TKwprotected> */
2150 /* method parser_prod#AProtectedVisibility#replace_child for (self: AProtectedVisibility, ANode, nullable ANode) */
2151 void nit__parser_prod___AProtectedVisibility___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2152 val
* var_old_child
/* var old_child: ANode */;
2153 val
* var_new_child
/* var new_child: nullable ANode */;
2154 val
* var
/* : TKwprotected */;
2155 short int var1
/* : Bool */;
2156 val
* var_other
/* var other: nullable Object */;
2157 short int var3
/* : Bool */;
2158 short int var5
/* : Bool */;
2159 short int var6
/* : Bool */;
2162 const char* var_class_name
;
2165 var
= self
->attrs
[COLOR_nit__parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2166 if (unlikely(var
== NULL
)) {
2167 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2168 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 336);
2172 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprotected> */
2173 var_other
= var_old_child
;
2175 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprotected> */
2176 var5
= var
== var_other
;
2188 /* <var_new_child:nullable ANode> isa TKwprotected */
2189 cltype
= type_nit__TKwprotected
.color
;
2190 idtype
= type_nit__TKwprotected
.id
;
2191 if(var_new_child
== NULL
) {
2194 if(cltype
>= var_new_child
->type
->table_size
) {
2197 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2200 if (unlikely(!var6
)) {
2201 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2202 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprotected", var_class_name
);
2203 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 337);
2207 nit__parser_prod___AProtectedVisibility___n_kwprotected_61d(self
, var_new_child
); /* Direct call parser_prod#AProtectedVisibility#n_kwprotected= on <self:AProtectedVisibility>*/
2214 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: AProtectedVisibility, TKwprotected) */
2215 void nit__parser_prod___AProtectedVisibility___n_kwprotected_61d(val
* self
, val
* p0
) {
2216 val
* var_node
/* var node: TKwprotected */;
2218 self
->attrs
[COLOR_nit__parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_node
; /* _n_kwprotected on <self:AProtectedVisibility> */
2220 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprotected> */
2221 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprotected> */
2227 /* method parser_prod#AProtectedVisibility#visit_all for (self: AProtectedVisibility, Visitor) */
2228 void nit__parser_prod___AProtectedVisibility___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2229 val
* var_v
/* var v: Visitor */;
2230 val
* var
/* : TKwprotected */;
2232 var
= self
->attrs
[COLOR_nit__parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2233 if (unlikely(var
== NULL
)) {
2234 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2235 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 351);
2239 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2243 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: AIntrudeVisibility, nullable TKwintrude) */
2244 void nit__parser_prod___AIntrudeVisibility___init_aintrudevisibility(val
* self
, val
* p0
) {
2245 val
* var_n_kwintrude
/* var n_kwintrude: nullable TKwintrude */;
2246 var_n_kwintrude
= p0
;
2247 if (unlikely(var_n_kwintrude
== NULL
)) {
2248 PRINT_ERROR("Runtime error: %s", "Cast failed");
2249 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 359);
2252 self
->attrs
[COLOR_nit__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_n_kwintrude
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2253 if (var_n_kwintrude
== NULL
) {
2254 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2255 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 360);
2258 { /* Inline parser_nodes#ANode#parent= (var_n_kwintrude,self) on <var_n_kwintrude:nullable TKwintrude> */
2259 if (unlikely(var_n_kwintrude
== NULL
)) {
2260 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2261 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2264 var_n_kwintrude
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwintrude:nullable TKwintrude> */
2270 /* method parser_prod#AIntrudeVisibility#replace_child for (self: AIntrudeVisibility, ANode, nullable ANode) */
2271 void nit__parser_prod___AIntrudeVisibility___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2272 val
* var_old_child
/* var old_child: ANode */;
2273 val
* var_new_child
/* var new_child: nullable ANode */;
2274 val
* var
/* : TKwintrude */;
2275 short int var1
/* : Bool */;
2276 val
* var_other
/* var other: nullable Object */;
2277 short int var3
/* : Bool */;
2278 short int var5
/* : Bool */;
2279 short int var6
/* : Bool */;
2282 const char* var_class_name
;
2285 var
= self
->attrs
[COLOR_nit__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2286 if (unlikely(var
== NULL
)) {
2287 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2288 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 365);
2292 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwintrude> */
2293 var_other
= var_old_child
;
2295 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwintrude> */
2296 var5
= var
== var_other
;
2308 /* <var_new_child:nullable ANode> isa TKwintrude */
2309 cltype
= type_nit__TKwintrude
.color
;
2310 idtype
= type_nit__TKwintrude
.id
;
2311 if(var_new_child
== NULL
) {
2314 if(cltype
>= var_new_child
->type
->table_size
) {
2317 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2320 if (unlikely(!var6
)) {
2321 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2322 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwintrude", var_class_name
);
2323 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 366);
2327 nit__parser_prod___AIntrudeVisibility___n_kwintrude_61d(self
, var_new_child
); /* Direct call parser_prod#AIntrudeVisibility#n_kwintrude= on <self:AIntrudeVisibility>*/
2334 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: AIntrudeVisibility, TKwintrude) */
2335 void nit__parser_prod___AIntrudeVisibility___n_kwintrude_61d(val
* self
, val
* p0
) {
2336 val
* var_node
/* var node: TKwintrude */;
2338 self
->attrs
[COLOR_nit__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_node
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2340 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwintrude> */
2341 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwintrude> */
2347 /* method parser_prod#AIntrudeVisibility#visit_all for (self: AIntrudeVisibility, Visitor) */
2348 void nit__parser_prod___AIntrudeVisibility___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2349 val
* var_v
/* var v: Visitor */;
2350 val
* var
/* : TKwintrude */;
2352 var
= self
->attrs
[COLOR_nit__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2353 if (unlikely(var
== NULL
)) {
2354 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2355 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 380);
2359 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2363 /* method parser_prod#AStdClassdef#init_astdclassdef for (self: AStdClassdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AClasskind, nullable TClassid, Collection[Object], nullable AAnnotations, nullable AExternCodeBlock, Collection[Object], Collection[Object], nullable TKwend) */
2364 void nit__parser_prod___AStdClassdef___init_astdclassdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
) {
2365 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2366 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2367 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2368 val
* var_n_classkind
/* var n_classkind: nullable AClasskind */;
2369 val
* var_n_id
/* var n_id: nullable TClassid */;
2370 val
* var_n_formaldefs
/* var n_formaldefs: Collection[Object] */;
2371 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2372 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
2373 val
* var_n_superclasses
/* var n_superclasses: Collection[Object] */;
2374 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
2375 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
2376 val
* var
/* : null */;
2377 short int var1
/* : Bool */;
2378 short int var2
/* : Bool */;
2379 val
* var_other
/* var other: nullable Object */;
2380 short int var4
/* : Bool */;
2381 short int var5
/* : Bool */;
2382 val
* var7
/* : null */;
2383 short int var8
/* : Bool */;
2384 short int var9
/* : Bool */;
2385 short int var11
/* : Bool */;
2386 short int var12
/* : Bool */;
2387 val
* var16
/* : null */;
2388 short int var17
/* : Bool */;
2389 short int var18
/* : Bool */;
2390 short int var20
/* : Bool */;
2391 short int var21
/* : Bool */;
2392 val
* var23
/* : ANodes[AFormaldef] */;
2393 val
* var25
/* : ANodes[AFormaldef] */;
2394 val
* var26
/* : null */;
2395 short int var27
/* : Bool */;
2396 short int var28
/* : Bool */;
2397 short int var30
/* : Bool */;
2398 short int var31
/* : Bool */;
2399 val
* var33
/* : null */;
2400 short int var34
/* : Bool */;
2401 short int var35
/* : Bool */;
2402 short int var37
/* : Bool */;
2403 short int var38
/* : Bool */;
2404 val
* var40
/* : ANodes[ASuperclass] */;
2405 val
* var42
/* : ANodes[ASuperclass] */;
2406 val
* var43
/* : ANodes[APropdef] */;
2407 val
* var45
/* : ANodes[APropdef] */;
2410 var_n_visibility
= p2
;
2411 var_n_classkind
= p3
;
2413 var_n_formaldefs
= p5
;
2414 var_n_annotations
= p6
;
2415 var_n_extern_code_block
= p7
;
2416 var_n_superclasses
= p8
;
2417 var_n_propdefs
= p9
;
2419 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AStdClassdef> */
2421 if (var_n_doc
== NULL
) {
2422 var1
= 0; /* is null */
2424 var1
= 1; /* arg is null and recv is not */
2427 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
2430 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)>*/;
2441 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
2442 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
2448 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AStdClassdef> */
2450 if (var_n_kwredef
== NULL
) {
2451 var8
= 0; /* is null */
2453 var8
= 1; /* arg is null and recv is not */
2456 { /* Inline kernel#Object#!= (var_n_kwredef,var7) on <var_n_kwredef:nullable TKwredef> */
2459 var11
= ((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)>*/;
2464 RET_LABEL10
:(void)0;
2470 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2471 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2472 RET_LABEL13
:(void)0;
2477 if (unlikely(var_n_visibility
== NULL
)) {
2478 PRINT_ERROR("Runtime error: %s", "Cast failed");
2479 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 402);
2482 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdClassdef> */
2483 if (var_n_visibility
== NULL
) {
2484 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2485 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 403);
2488 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
2489 if (unlikely(var_n_visibility
== NULL
)) {
2490 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2491 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2494 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
2495 RET_LABEL14
:(void)0;
2498 if (unlikely(var_n_classkind
== NULL
)) {
2499 PRINT_ERROR("Runtime error: %s", "Cast failed");
2500 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 404);
2503 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_classkind
].val
= var_n_classkind
; /* _n_classkind on <self:AStdClassdef> */
2504 if (var_n_classkind
== NULL
) {
2505 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2506 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 405);
2509 { /* Inline parser_nodes#ANode#parent= (var_n_classkind,self) on <var_n_classkind:nullable AClasskind> */
2510 if (unlikely(var_n_classkind
== NULL
)) {
2511 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2512 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2515 var_n_classkind
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_classkind:nullable AClasskind> */
2516 RET_LABEL15
:(void)0;
2519 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_id
].val
= var_n_id
; /* _n_id on <self:AStdClassdef> */
2521 if (var_n_id
== NULL
) {
2522 var17
= 0; /* is null */
2524 var17
= 1; /* arg is null and recv is not */
2527 { /* Inline kernel#Object#!= (var_n_id,var16) on <var_n_id:nullable TClassid> */
2530 var20
= ((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 TClassid(TClassid)>*/;
2535 RET_LABEL19
:(void)0;
2541 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid(TClassid)> */
2542 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid(TClassid)> */
2543 RET_LABEL22
:(void)0;
2549 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
2550 var25
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2551 if (unlikely(var25
== NULL
)) {
2552 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2553 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1027);
2557 RET_LABEL24
:(void)0;
2561 nit___nit__ANodes___unsafe_add_all(var23
, var_n_formaldefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var23:ANodes[AFormaldef]>*/
2563 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdClassdef> */
2565 if (var_n_annotations
== NULL
) {
2566 var27
= 0; /* is null */
2568 var27
= 1; /* arg is null and recv is not */
2571 { /* Inline kernel#Object#!= (var_n_annotations,var26) on <var_n_annotations:nullable AAnnotations> */
2574 var30
= ((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)>*/;
2579 RET_LABEL29
:(void)0;
2585 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2586 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2587 RET_LABEL32
:(void)0;
2592 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AStdClassdef> */
2594 if (var_n_extern_code_block
== NULL
) {
2595 var34
= 0; /* is null */
2597 var34
= 1; /* arg is null and recv is not */
2600 { /* Inline kernel#Object#!= (var_n_extern_code_block,var33) on <var_n_extern_code_block:nullable AExternCodeBlock> */
2603 var37
= ((short int (*)(val
* self
, val
* p0
))(var_n_extern_code_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
) /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
2608 RET_LABEL36
:(void)0;
2614 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2615 var_n_extern_code_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2616 RET_LABEL39
:(void)0;
2622 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
2623 var42
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2624 if (unlikely(var42
== NULL
)) {
2625 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
2626 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1033);
2630 RET_LABEL41
:(void)0;
2634 nit___nit__ANodes___unsafe_add_all(var40
, var_n_superclasses
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var40:ANodes[ASuperclass]>*/
2637 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
2638 var45
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2639 if (unlikely(var45
== NULL
)) {
2640 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
2641 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
2645 RET_LABEL44
:(void)0;
2649 nit___nit__ANodes___unsafe_add_all(var43
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var43:ANodes[APropdef]>*/
2651 if (unlikely(var_n_kwend
== NULL
)) {
2652 PRINT_ERROR("Runtime error: %s", "Cast failed");
2653 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 415);
2656 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AStdClassdef> */
2657 if (var_n_kwend
== NULL
) {
2658 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2659 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 416);
2662 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
2663 if (unlikely(var_n_kwend
== NULL
)) {
2664 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2665 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
2668 var_n_kwend
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
2669 RET_LABEL46
:(void)0;
2674 /* method parser_prod#AStdClassdef#replace_child for (self: AStdClassdef, ANode, nullable ANode) */
2675 void nit__parser_prod___AStdClassdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2676 val
* var_old_child
/* var old_child: ANode */;
2677 val
* var_new_child
/* var new_child: nullable ANode */;
2678 val
* var
/* : nullable ADoc */;
2679 short int var1
/* : Bool */;
2680 short int var2
/* : Bool */;
2681 val
* var_other
/* var other: nullable Object */;
2682 short int var4
/* : Bool */;
2683 short int var6
/* : Bool */;
2684 short int var7
/* : Bool */;
2687 const char* var_class_name
;
2688 val
* var8
/* : nullable TKwredef */;
2689 short int var9
/* : Bool */;
2690 short int var10
/* : Bool */;
2691 short int var12
/* : Bool */;
2692 short int var14
/* : Bool */;
2693 short int var15
/* : Bool */;
2696 const char* var_class_name18
;
2697 val
* var19
/* : nullable AVisibility */;
2698 short int var20
/* : Bool */;
2699 short int var21
/* : Bool */;
2700 short int var23
/* : Bool */;
2701 short int var25
/* : Bool */;
2702 short int var26
/* : Bool */;
2705 const char* var_class_name29
;
2706 val
* var30
/* : AClasskind */;
2707 short int var31
/* : Bool */;
2708 short int var33
/* : Bool */;
2709 short int var35
/* : Bool */;
2710 short int var36
/* : Bool */;
2713 const char* var_class_name39
;
2714 val
* var40
/* : nullable TClassid */;
2715 short int var41
/* : Bool */;
2716 short int var42
/* : Bool */;
2717 short int var44
/* : Bool */;
2718 short int var46
/* : Bool */;
2719 short int var47
/* : Bool */;
2722 const char* var_class_name50
;
2723 val
* var51
/* : ANodes[AFormaldef] */;
2724 val
* var53
/* : ANodes[AFormaldef] */;
2725 short int var54
/* : Bool */;
2726 val
* var55
/* : nullable AAnnotations */;
2727 short int var56
/* : Bool */;
2728 short int var57
/* : Bool */;
2729 short int var59
/* : Bool */;
2730 short int var61
/* : Bool */;
2731 short int var62
/* : Bool */;
2734 const char* var_class_name65
;
2735 val
* var66
/* : nullable AExternCodeBlock */;
2736 short int var67
/* : Bool */;
2737 short int var68
/* : Bool */;
2738 short int var70
/* : Bool */;
2739 short int var72
/* : Bool */;
2740 short int var73
/* : Bool */;
2743 const char* var_class_name76
;
2744 val
* var77
/* : ANodes[ASuperclass] */;
2745 val
* var79
/* : ANodes[ASuperclass] */;
2746 short int var80
/* : Bool */;
2747 val
* var81
/* : ANodes[APropdef] */;
2748 val
* var83
/* : ANodes[APropdef] */;
2749 short int var84
/* : Bool */;
2750 val
* var85
/* : TKwend */;
2751 short int var86
/* : Bool */;
2752 short int var88
/* : Bool */;
2753 short int var90
/* : Bool */;
2754 short int var91
/* : Bool */;
2757 const char* var_class_name94
;
2760 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
2762 var1
= 0; /* <var_old_child:ANode> cannot be null */
2764 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
2765 var_other
= var_old_child
;
2767 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
2768 var6
= var
== var_other
;
2781 /* <var_new_child:nullable ANode> isa nullable ADoc */
2782 cltype
= type_nullable__nit__ADoc
.color
;
2783 idtype
= type_nullable__nit__ADoc
.id
;
2784 if(var_new_child
== NULL
) {
2787 if(cltype
>= var_new_child
->type
->table_size
) {
2790 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2793 if (unlikely(!var7
)) {
2794 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2795 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
2796 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 422);
2800 nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_doc= on <self:AStdClassdef>*/
2805 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
2807 var9
= 0; /* <var_old_child:ANode> cannot be null */
2809 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
2810 var_other
= var_old_child
;
2812 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
2813 var14
= var8
== var_other
;
2816 RET_LABEL13
:(void)0;
2821 RET_LABEL11
:(void)0;
2826 /* <var_new_child:nullable ANode> isa nullable TKwredef */
2827 cltype16
= type_nullable__nit__TKwredef
.color
;
2828 idtype17
= type_nullable__nit__TKwredef
.id
;
2829 if(var_new_child
== NULL
) {
2832 if(cltype16
>= var_new_child
->type
->table_size
) {
2835 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2838 if (unlikely(!var15
)) {
2839 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2840 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
2841 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 426);
2845 nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwredef= on <self:AStdClassdef>*/
2850 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
2851 if (var19
== NULL
) {
2852 var20
= 0; /* <var_old_child:ANode> cannot be null */
2854 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
2855 var_other
= var_old_child
;
2857 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
2858 var25
= var19
== var_other
;
2861 RET_LABEL24
:(void)0;
2866 RET_LABEL22
:(void)0;
2871 /* <var_new_child:nullable ANode> isa AVisibility */
2872 cltype27
= type_nit__AVisibility
.color
;
2873 idtype28
= type_nit__AVisibility
.id
;
2874 if(var_new_child
== NULL
) {
2877 if(cltype27
>= var_new_child
->type
->table_size
) {
2880 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
2883 if (unlikely(!var26
)) {
2884 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2885 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
2886 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 430);
2890 nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_visibility= on <self:AStdClassdef>*/
2895 var30
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
2896 if (unlikely(var30
== NULL
)) {
2897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
2898 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 433);
2902 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AClasskind> */
2903 var_other
= var_old_child
;
2905 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AClasskind> */
2906 var35
= var30
== var_other
;
2909 RET_LABEL34
:(void)0;
2914 RET_LABEL32
:(void)0;
2918 /* <var_new_child:nullable ANode> isa AClasskind */
2919 cltype37
= type_nit__AClasskind
.color
;
2920 idtype38
= type_nit__AClasskind
.id
;
2921 if(var_new_child
== NULL
) {
2924 if(cltype37
>= var_new_child
->type
->table_size
) {
2927 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
2930 if (unlikely(!var36
)) {
2931 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2932 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AClasskind", var_class_name39
);
2933 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 434);
2937 nit__parser_prod___AStdClassdef___n_classkind_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_classkind= on <self:AStdClassdef>*/
2942 var40
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
2943 if (var40
== NULL
) {
2944 var41
= 0; /* <var_old_child:ANode> cannot be null */
2946 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable TClassid> */
2947 var_other
= var_old_child
;
2949 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable TClassid(TClassid)> */
2950 var46
= var40
== var_other
;
2953 RET_LABEL45
:(void)0;
2958 RET_LABEL43
:(void)0;
2963 /* <var_new_child:nullable ANode> isa nullable TClassid */
2964 cltype48
= type_nullable__nit__TClassid
.color
;
2965 idtype49
= type_nullable__nit__TClassid
.id
;
2966 if(var_new_child
== NULL
) {
2969 if(cltype48
>= var_new_child
->type
->table_size
) {
2972 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
2975 if (unlikely(!var47
)) {
2976 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2977 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TClassid", var_class_name50
);
2978 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 438);
2982 nit__parser_prod___AStdClassdef___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_id= on <self:AStdClassdef>*/
2988 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
2989 var53
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2990 if (unlikely(var53
== NULL
)) {
2991 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2992 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1027);
2996 RET_LABEL52
:(void)0;
3000 var54
= nit___nit__ANodes___replace_child(var51
, var_old_child
, var_new_child
);
3006 var55
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3007 if (var55
== NULL
) {
3008 var56
= 0; /* <var_old_child:ANode> cannot be null */
3010 { /* Inline kernel#Object#== (var55,var_old_child) on <var55:nullable AAnnotations> */
3011 var_other
= var_old_child
;
3013 { /* Inline kernel#Object#is_same_instance (var55,var_other) on <var55:nullable AAnnotations(AAnnotations)> */
3014 var61
= var55
== var_other
;
3017 RET_LABEL60
:(void)0;
3022 RET_LABEL58
:(void)0;
3027 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3028 cltype63
= type_nullable__nit__AAnnotations
.color
;
3029 idtype64
= type_nullable__nit__AAnnotations
.id
;
3030 if(var_new_child
== NULL
) {
3033 if(cltype63
>= var_new_child
->type
->table_size
) {
3036 var62
= var_new_child
->type
->type_table
[cltype63
] == idtype64
;
3039 if (unlikely(!var62
)) {
3040 var_class_name65
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3041 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name65
);
3042 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 443);
3046 nit__parser_prod___AStdClassdef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_annotations= on <self:AStdClassdef>*/
3051 var66
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3052 if (var66
== NULL
) {
3053 var67
= 0; /* <var_old_child:ANode> cannot be null */
3055 { /* Inline kernel#Object#== (var66,var_old_child) on <var66:nullable AExternCodeBlock> */
3056 var_other
= var_old_child
;
3058 { /* Inline kernel#Object#is_same_instance (var66,var_other) on <var66:nullable AExternCodeBlock(AExternCodeBlock)> */
3059 var72
= var66
== var_other
;
3062 RET_LABEL71
:(void)0;
3067 RET_LABEL69
:(void)0;
3072 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
3073 cltype74
= type_nullable__nit__AExternCodeBlock
.color
;
3074 idtype75
= type_nullable__nit__AExternCodeBlock
.id
;
3075 if(var_new_child
== NULL
) {
3078 if(cltype74
>= var_new_child
->type
->table_size
) {
3081 var73
= var_new_child
->type
->type_table
[cltype74
] == idtype75
;
3084 if (unlikely(!var73
)) {
3085 var_class_name76
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3086 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name76
);
3087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 447);
3091 nit__parser_prod___AStdClassdef___n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_extern_code_block= on <self:AStdClassdef>*/
3097 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
3098 var79
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3099 if (unlikely(var79
== NULL
)) {
3100 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
3101 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1033);
3105 RET_LABEL78
:(void)0;
3109 var80
= nit___nit__ANodes___replace_child(var77
, var_old_child
, var_new_child
);
3116 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3117 var83
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3118 if (unlikely(var83
== NULL
)) {
3119 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3120 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3124 RET_LABEL82
:(void)0;
3128 var84
= nit___nit__ANodes___replace_child(var81
, var_old_child
, var_new_child
);
3134 var85
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3135 if (unlikely(var85
== NULL
)) {
3136 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3137 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 452);
3141 { /* Inline kernel#Object#== (var85,var_old_child) on <var85:TKwend> */
3142 var_other
= var_old_child
;
3144 { /* Inline kernel#Object#is_same_instance (var85,var_other) on <var85:TKwend> */
3145 var90
= var85
== var_other
;
3148 RET_LABEL89
:(void)0;
3153 RET_LABEL87
:(void)0;
3157 /* <var_new_child:nullable ANode> isa TKwend */
3158 cltype92
= type_nit__TKwend
.color
;
3159 idtype93
= type_nit__TKwend
.id
;
3160 if(var_new_child
== NULL
) {
3163 if(cltype92
>= var_new_child
->type
->table_size
) {
3166 var91
= var_new_child
->type
->type_table
[cltype92
] == idtype93
;
3169 if (unlikely(!var91
)) {
3170 var_class_name94
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3171 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name94
);
3172 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 453);
3176 nit__parser_prod___AStdClassdef___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwend= on <self:AStdClassdef>*/
3183 /* method parser_prod#AStdClassdef#n_doc= for (self: AStdClassdef, nullable ADoc) */
3184 void nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
3185 val
* var_node
/* var node: nullable ADoc */;
3186 val
* var
/* : null */;
3187 short int var1
/* : Bool */;
3188 short int var2
/* : Bool */;
3189 val
* var_other
/* var other: nullable Object */;
3190 short int var4
/* : Bool */;
3191 short int var5
/* : Bool */;
3193 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AStdClassdef> */
3195 if (var_node
== NULL
) {
3196 var1
= 0; /* is null */
3198 var1
= 1; /* arg is null and recv is not */
3201 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
3204 var4
= ((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)>*/;
3215 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
3216 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
3224 /* method parser_prod#AStdClassdef#n_kwredef= for (self: AStdClassdef, nullable TKwredef) */
3225 void nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
3226 val
* var_node
/* var node: nullable TKwredef */;
3227 val
* var
/* : null */;
3228 short int var1
/* : Bool */;
3229 short int var2
/* : Bool */;
3230 val
* var_other
/* var other: nullable Object */;
3231 short int var4
/* : Bool */;
3232 short int var5
/* : Bool */;
3234 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AStdClassdef> */
3236 if (var_node
== NULL
) {
3237 var1
= 0; /* is null */
3239 var1
= 1; /* arg is null and recv is not */
3242 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
3245 var4
= ((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)>*/;
3256 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
3257 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
3265 /* method parser_prod#AStdClassdef#n_visibility= for (self: AStdClassdef, nullable AVisibility) */
3266 void nit__parser_prod___AStdClassdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
3267 val
* var_node
/* var node: nullable AVisibility */;
3269 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdClassdef> */
3270 if (var_node
== NULL
) {
3271 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3272 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 471);
3275 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
3276 if (unlikely(var_node
== NULL
)) {
3277 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3278 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3281 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
3287 /* method parser_prod#AStdClassdef#n_classkind= for (self: AStdClassdef, AClasskind) */
3288 void nit__parser_prod___AStdClassdef___n_classkind_61d(val
* self
, val
* p0
) {
3289 val
* var_node
/* var node: AClasskind */;
3291 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_classkind
].val
= var_node
; /* _n_classkind on <self:AStdClassdef> */
3293 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AClasskind> */
3294 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AClasskind> */
3300 /* method parser_prod#AStdClassdef#n_id= for (self: AStdClassdef, nullable TClassid) */
3301 void nit__parser_prod___AStdClassdef___n_id_61d(val
* self
, val
* p0
) {
3302 val
* var_node
/* var node: nullable TClassid */;
3303 val
* var
/* : null */;
3304 short int var1
/* : Bool */;
3305 short int var2
/* : Bool */;
3306 val
* var_other
/* var other: nullable Object */;
3307 short int var4
/* : Bool */;
3308 short int var5
/* : Bool */;
3310 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_id
].val
= var_node
; /* _n_id on <self:AStdClassdef> */
3312 if (var_node
== NULL
) {
3313 var1
= 0; /* is null */
3315 var1
= 1; /* arg is null and recv is not */
3318 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TClassid> */
3321 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TClassid(TClassid)>*/;
3332 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TClassid(TClassid)> */
3333 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TClassid(TClassid)> */
3341 /* method parser_prod#AStdClassdef#n_annotations= for (self: AStdClassdef, nullable AAnnotations) */
3342 void nit__parser_prod___AStdClassdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
3343 val
* var_node
/* var node: nullable AAnnotations */;
3344 val
* var
/* : null */;
3345 short int var1
/* : Bool */;
3346 short int var2
/* : Bool */;
3347 val
* var_other
/* var other: nullable Object */;
3348 short int var4
/* : Bool */;
3349 short int var5
/* : Bool */;
3351 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdClassdef> */
3353 if (var_node
== NULL
) {
3354 var1
= 0; /* is null */
3356 var1
= 1; /* arg is null and recv is not */
3359 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3362 var4
= ((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)>*/;
3373 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3374 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3382 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: AStdClassdef, nullable AExternCodeBlock) */
3383 void nit__parser_prod___AStdClassdef___n_extern_code_block_61d(val
* self
, val
* p0
) {
3384 val
* var_node
/* var node: nullable AExternCodeBlock */;
3385 val
* var
/* : null */;
3386 short int var1
/* : Bool */;
3387 short int var2
/* : Bool */;
3388 val
* var_other
/* var other: nullable Object */;
3389 short int var4
/* : Bool */;
3390 short int var5
/* : Bool */;
3392 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AStdClassdef> */
3394 if (var_node
== NULL
) {
3395 var1
= 0; /* is null */
3397 var1
= 1; /* arg is null and recv is not */
3400 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCodeBlock> */
3403 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
3414 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3415 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3423 /* method parser_prod#AStdClassdef#n_kwend= for (self: AStdClassdef, TKwend) */
3424 void nit__parser_prod___AStdClassdef___n_kwend_61d(val
* self
, val
* p0
) {
3425 val
* var_node
/* var node: TKwend */;
3427 self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AStdClassdef> */
3429 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
3430 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
3436 /* method parser_prod#AStdClassdef#visit_all for (self: AStdClassdef, Visitor) */
3437 void nit__parser_prod___AStdClassdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3438 val
* var_v
/* var v: Visitor */;
3439 val
* var
/* : nullable ADoc */;
3440 val
* var1
/* : nullable TKwredef */;
3441 val
* var2
/* : nullable AVisibility */;
3442 val
* var3
/* : AClasskind */;
3443 val
* var4
/* : nullable TClassid */;
3444 val
* var5
/* : ANodes[AFormaldef] */;
3445 val
* var7
/* : ANodes[AFormaldef] */;
3446 val
* var8
/* : nullable AAnnotations */;
3447 val
* var9
/* : nullable AExternCodeBlock */;
3448 val
* var10
/* : ANodes[ASuperclass] */;
3449 val
* var12
/* : ANodes[ASuperclass] */;
3450 val
* var13
/* : ANodes[APropdef] */;
3451 val
* var15
/* : ANodes[APropdef] */;
3452 val
* var16
/* : TKwend */;
3454 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3456 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3458 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3460 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3462 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3464 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3466 var3
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3467 if (unlikely(var3
== NULL
)) {
3468 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
3469 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 505);
3473 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3475 var4
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3477 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3480 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
3481 var7
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3482 if (unlikely(var7
== NULL
)) {
3483 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3484 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1027);
3492 nit___nit__ANodes___visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AFormaldef]>*/
3494 var8
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3496 nit___nit__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3498 var9
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3500 nit___nit__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3503 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
3504 var12
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3505 if (unlikely(var12
== NULL
)) {
3506 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
3507 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1033);
3511 RET_LABEL11
:(void)0;
3515 nit___nit__ANodes___visit_all(var10
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var10:ANodes[ASuperclass]>*/
3518 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3519 var15
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3520 if (unlikely(var15
== NULL
)) {
3521 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3522 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3526 RET_LABEL14
:(void)0;
3530 nit___nit__ANodes___visit_all(var13
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var13:ANodes[APropdef]>*/
3532 var16
= self
->attrs
[COLOR_nit__parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3533 if (unlikely(var16
== NULL
)) {
3534 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3535 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 512);
3539 nit___nit__Visitor___enter_visit(var_v
, var16
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3543 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: ATopClassdef, Collection[Object]) */
3544 void nit__parser_prod___ATopClassdef___init_atopclassdef(val
* self
, val
* p0
) {
3545 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3546 val
* var
/* : ANodes[APropdef] */;
3547 val
* var2
/* : ANodes[APropdef] */;
3548 var_n_propdefs
= p0
;
3550 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3551 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3552 if (unlikely(var2
== NULL
)) {
3553 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3554 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3562 nit___nit__ANodes___unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3566 /* method parser_prod#ATopClassdef#replace_child for (self: ATopClassdef, ANode, nullable ANode) */
3567 void nit__parser_prod___ATopClassdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3568 val
* var_old_child
/* var old_child: ANode */;
3569 val
* var_new_child
/* var new_child: nullable ANode */;
3570 val
* var
/* : ANodes[APropdef] */;
3571 val
* var2
/* : ANodes[APropdef] */;
3572 short int var3
/* : Bool */;
3576 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3577 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3578 if (unlikely(var2
== NULL
)) {
3579 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3580 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3588 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3596 /* method parser_prod#ATopClassdef#visit_all for (self: ATopClassdef, Visitor) */
3597 void nit__parser_prod___ATopClassdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3598 val
* var_v
/* var v: Visitor */;
3599 val
* var
/* : ANodes[APropdef] */;
3600 val
* var2
/* : ANodes[APropdef] */;
3603 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3604 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3605 if (unlikely(var2
== NULL
)) {
3606 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3607 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3615 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
3619 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: AMainClassdef, Collection[Object]) */
3620 void nit__parser_prod___AMainClassdef___init_amainclassdef(val
* self
, val
* p0
) {
3621 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3622 val
* var
/* : ANodes[APropdef] */;
3623 val
* var2
/* : ANodes[APropdef] */;
3624 var_n_propdefs
= p0
;
3626 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3627 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3628 if (unlikely(var2
== NULL
)) {
3629 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3630 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3638 nit___nit__ANodes___unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3642 /* method parser_prod#AMainClassdef#replace_child for (self: AMainClassdef, ANode, nullable ANode) */
3643 void nit__parser_prod___AMainClassdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3644 val
* var_old_child
/* var old_child: ANode */;
3645 val
* var_new_child
/* var new_child: nullable ANode */;
3646 val
* var
/* : ANodes[APropdef] */;
3647 val
* var2
/* : ANodes[APropdef] */;
3648 short int var3
/* : Bool */;
3652 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3653 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3654 if (unlikely(var2
== NULL
)) {
3655 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3656 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3664 var3
= nit___nit__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3672 /* method parser_prod#AMainClassdef#visit_all for (self: AMainClassdef, Visitor) */
3673 void nit__parser_prod___AMainClassdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3674 val
* var_v
/* var v: Visitor */;
3675 val
* var
/* : ANodes[APropdef] */;
3676 val
* var2
/* : ANodes[APropdef] */;
3679 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3680 var2
= self
->attrs
[COLOR_nit__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3681 if (unlikely(var2
== NULL
)) {
3682 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3683 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1012);
3691 nit___nit__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
3695 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: AConcreteClasskind, nullable TKwclass) */
3696 void nit__parser_prod___AConcreteClasskind___init_aconcreteclasskind(val
* self
, val
* p0
) {
3697 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3699 if (unlikely(var_n_kwclass
== NULL
)) {
3700 PRINT_ERROR("Runtime error: %s", "Cast failed");
3701 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 560);
3704 self
->attrs
[COLOR_nit__parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AConcreteClasskind> */
3705 if (var_n_kwclass
== NULL
) {
3706 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3707 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 561);
3710 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
3711 if (unlikely(var_n_kwclass
== NULL
)) {
3712 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3713 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3716 var_n_kwclass
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
3722 /* method parser_prod#AConcreteClasskind#replace_child for (self: AConcreteClasskind, ANode, nullable ANode) */
3723 void nit__parser_prod___AConcreteClasskind___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3724 val
* var_old_child
/* var old_child: ANode */;
3725 val
* var_new_child
/* var new_child: nullable ANode */;
3726 val
* var
/* : TKwclass */;
3727 short int var1
/* : Bool */;
3728 val
* var_other
/* var other: nullable Object */;
3729 short int var3
/* : Bool */;
3730 short int var5
/* : Bool */;
3731 short int var6
/* : Bool */;
3734 const char* var_class_name
;
3737 var
= self
->attrs
[COLOR_nit__parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3738 if (unlikely(var
== NULL
)) {
3739 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
3740 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 566);
3744 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwclass> */
3745 var_other
= var_old_child
;
3747 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwclass> */
3748 var5
= var
== var_other
;
3760 /* <var_new_child:nullable ANode> isa TKwclass */
3761 cltype
= type_nit__TKwclass
.color
;
3762 idtype
= type_nit__TKwclass
.id
;
3763 if(var_new_child
== NULL
) {
3766 if(cltype
>= var_new_child
->type
->table_size
) {
3769 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3772 if (unlikely(!var6
)) {
3773 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3774 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name
);
3775 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 567);
3779 nit__parser_prod___AConcreteClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AConcreteClasskind#n_kwclass= on <self:AConcreteClasskind>*/
3786 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: AConcreteClasskind, TKwclass) */
3787 void nit__parser_prod___AConcreteClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
3788 val
* var_node
/* var node: TKwclass */;
3790 self
->attrs
[COLOR_nit__parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AConcreteClasskind> */
3792 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
3793 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
3799 /* method parser_prod#AConcreteClasskind#visit_all for (self: AConcreteClasskind, Visitor) */
3800 void nit__parser_prod___AConcreteClasskind___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3801 val
* var_v
/* var v: Visitor */;
3802 val
* var
/* : TKwclass */;
3804 var
= self
->attrs
[COLOR_nit__parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3805 if (unlikely(var
== NULL
)) {
3806 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
3807 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 581);
3811 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3815 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: AAbstractClasskind, nullable TKwabstract, nullable TKwclass) */
3816 void nit__parser_prod___AAbstractClasskind___init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3817 val
* var_n_kwabstract
/* var n_kwabstract: nullable TKwabstract */;
3818 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3819 var_n_kwabstract
= p0
;
3821 if (unlikely(var_n_kwabstract
== NULL
)) {
3822 PRINT_ERROR("Runtime error: %s", "Cast failed");
3823 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 590);
3826 self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_n_kwabstract
; /* _n_kwabstract on <self:AAbstractClasskind> */
3827 if (var_n_kwabstract
== NULL
) {
3828 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3829 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 591);
3832 { /* Inline parser_nodes#ANode#parent= (var_n_kwabstract,self) on <var_n_kwabstract:nullable TKwabstract> */
3833 if (unlikely(var_n_kwabstract
== NULL
)) {
3834 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3835 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3838 var_n_kwabstract
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabstract:nullable TKwabstract> */
3842 if (unlikely(var_n_kwclass
== NULL
)) {
3843 PRINT_ERROR("Runtime error: %s", "Cast failed");
3844 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 592);
3847 self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AAbstractClasskind> */
3848 if (var_n_kwclass
== NULL
) {
3849 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3850 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 593);
3853 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
3854 if (unlikely(var_n_kwclass
== NULL
)) {
3855 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3856 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
3859 var_n_kwclass
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
3865 /* method parser_prod#AAbstractClasskind#replace_child for (self: AAbstractClasskind, ANode, nullable ANode) */
3866 void nit__parser_prod___AAbstractClasskind___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3867 val
* var_old_child
/* var old_child: ANode */;
3868 val
* var_new_child
/* var new_child: nullable ANode */;
3869 val
* var
/* : TKwabstract */;
3870 short int var1
/* : Bool */;
3871 val
* var_other
/* var other: nullable Object */;
3872 short int var3
/* : Bool */;
3873 short int var5
/* : Bool */;
3874 short int var6
/* : Bool */;
3877 const char* var_class_name
;
3878 val
* var7
/* : TKwclass */;
3879 short int var8
/* : Bool */;
3880 short int var10
/* : Bool */;
3881 short int var12
/* : Bool */;
3882 short int var13
/* : Bool */;
3885 const char* var_class_name16
;
3888 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
3889 if (unlikely(var
== NULL
)) {
3890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
3891 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 598);
3895 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabstract> */
3896 var_other
= var_old_child
;
3898 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabstract> */
3899 var5
= var
== var_other
;
3911 /* <var_new_child:nullable ANode> isa TKwabstract */
3912 cltype
= type_nit__TKwabstract
.color
;
3913 idtype
= type_nit__TKwabstract
.id
;
3914 if(var_new_child
== NULL
) {
3917 if(cltype
>= var_new_child
->type
->table_size
) {
3920 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3923 if (unlikely(!var6
)) {
3924 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3925 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabstract", var_class_name
);
3926 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 599);
3930 nit__parser_prod___AAbstractClasskind___n_kwabstract_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwabstract= on <self:AAbstractClasskind>*/
3935 var7
= self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
3936 if (unlikely(var7
== NULL
)) {
3937 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
3938 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 602);
3942 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwclass> */
3943 var_other
= var_old_child
;
3945 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwclass> */
3946 var12
= var7
== var_other
;
3949 RET_LABEL11
:(void)0;
3958 /* <var_new_child:nullable ANode> isa TKwclass */
3959 cltype14
= type_nit__TKwclass
.color
;
3960 idtype15
= type_nit__TKwclass
.id
;
3961 if(var_new_child
== NULL
) {
3964 if(cltype14
>= var_new_child
->type
->table_size
) {
3967 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3970 if (unlikely(!var13
)) {
3971 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3972 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name16
);
3973 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 603);
3977 nit__parser_prod___AAbstractClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwclass= on <self:AAbstractClasskind>*/
3984 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: AAbstractClasskind, TKwabstract) */
3985 void nit__parser_prod___AAbstractClasskind___n_kwabstract_61d(val
* self
, val
* p0
) {
3986 val
* var_node
/* var node: TKwabstract */;
3988 self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_node
; /* _n_kwabstract on <self:AAbstractClasskind> */
3990 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabstract> */
3991 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabstract> */
3997 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: AAbstractClasskind, TKwclass) */
3998 void nit__parser_prod___AAbstractClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
3999 val
* var_node
/* var node: TKwclass */;
4001 self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AAbstractClasskind> */
4003 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
4004 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
4010 /* method parser_prod#AAbstractClasskind#visit_all for (self: AAbstractClasskind, Visitor) */
4011 void nit__parser_prod___AAbstractClasskind___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4012 val
* var_v
/* var v: Visitor */;
4013 val
* var
/* : TKwabstract */;
4014 val
* var1
/* : TKwclass */;
4016 var
= self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
4017 if (unlikely(var
== NULL
)) {
4018 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
4019 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 622);
4023 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4025 var1
= self
->attrs
[COLOR_nit__parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4026 if (unlikely(var1
== NULL
)) {
4027 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4028 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 623);
4032 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4036 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: AInterfaceClasskind, nullable TKwinterface) */
4037 void nit__parser_prod___AInterfaceClasskind___init_ainterfaceclasskind(val
* self
, val
* p0
) {
4038 val
* var_n_kwinterface
/* var n_kwinterface: nullable TKwinterface */;
4039 var_n_kwinterface
= p0
;
4040 if (unlikely(var_n_kwinterface
== NULL
)) {
4041 PRINT_ERROR("Runtime error: %s", "Cast failed");
4042 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 631);
4045 self
->attrs
[COLOR_nit__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_n_kwinterface
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4046 if (var_n_kwinterface
== NULL
) {
4047 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4048 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 632);
4051 { /* Inline parser_nodes#ANode#parent= (var_n_kwinterface,self) on <var_n_kwinterface:nullable TKwinterface> */
4052 if (unlikely(var_n_kwinterface
== NULL
)) {
4053 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4054 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4057 var_n_kwinterface
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinterface:nullable TKwinterface> */
4063 /* method parser_prod#AInterfaceClasskind#replace_child for (self: AInterfaceClasskind, ANode, nullable ANode) */
4064 void nit__parser_prod___AInterfaceClasskind___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4065 val
* var_old_child
/* var old_child: ANode */;
4066 val
* var_new_child
/* var new_child: nullable ANode */;
4067 val
* var
/* : TKwinterface */;
4068 short int var1
/* : Bool */;
4069 val
* var_other
/* var other: nullable Object */;
4070 short int var3
/* : Bool */;
4071 short int var5
/* : Bool */;
4072 short int var6
/* : Bool */;
4075 const char* var_class_name
;
4078 var
= self
->attrs
[COLOR_nit__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4079 if (unlikely(var
== NULL
)) {
4080 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4081 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 637);
4085 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwinterface> */
4086 var_other
= var_old_child
;
4088 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwinterface> */
4089 var5
= var
== var_other
;
4101 /* <var_new_child:nullable ANode> isa TKwinterface */
4102 cltype
= type_nit__TKwinterface
.color
;
4103 idtype
= type_nit__TKwinterface
.id
;
4104 if(var_new_child
== NULL
) {
4107 if(cltype
>= var_new_child
->type
->table_size
) {
4110 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4113 if (unlikely(!var6
)) {
4114 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4115 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinterface", var_class_name
);
4116 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 638);
4120 nit__parser_prod___AInterfaceClasskind___n_kwinterface_61d(self
, var_new_child
); /* Direct call parser_prod#AInterfaceClasskind#n_kwinterface= on <self:AInterfaceClasskind>*/
4127 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: AInterfaceClasskind, TKwinterface) */
4128 void nit__parser_prod___AInterfaceClasskind___n_kwinterface_61d(val
* self
, val
* p0
) {
4129 val
* var_node
/* var node: TKwinterface */;
4131 self
->attrs
[COLOR_nit__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_node
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4133 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinterface> */
4134 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinterface> */
4140 /* method parser_prod#AInterfaceClasskind#visit_all for (self: AInterfaceClasskind, Visitor) */
4141 void nit__parser_prod___AInterfaceClasskind___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4142 val
* var_v
/* var v: Visitor */;
4143 val
* var
/* : TKwinterface */;
4145 var
= self
->attrs
[COLOR_nit__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4146 if (unlikely(var
== NULL
)) {
4147 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4148 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 652);
4152 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4156 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: AEnumClasskind, nullable TKwenum) */
4157 void nit__parser_prod___AEnumClasskind___init_aenumclasskind(val
* self
, val
* p0
) {
4158 val
* var_n_kwenum
/* var n_kwenum: nullable TKwenum */;
4160 if (unlikely(var_n_kwenum
== NULL
)) {
4161 PRINT_ERROR("Runtime error: %s", "Cast failed");
4162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 660);
4165 self
->attrs
[COLOR_nit__parser_nodes__AEnumClasskind___n_kwenum
].val
= var_n_kwenum
; /* _n_kwenum on <self:AEnumClasskind> */
4166 if (var_n_kwenum
== NULL
) {
4167 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4168 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 661);
4171 { /* Inline parser_nodes#ANode#parent= (var_n_kwenum,self) on <var_n_kwenum:nullable TKwenum> */
4172 if (unlikely(var_n_kwenum
== NULL
)) {
4173 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4174 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4177 var_n_kwenum
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwenum:nullable TKwenum> */
4183 /* method parser_prod#AEnumClasskind#replace_child for (self: AEnumClasskind, ANode, nullable ANode) */
4184 void nit__parser_prod___AEnumClasskind___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4185 val
* var_old_child
/* var old_child: ANode */;
4186 val
* var_new_child
/* var new_child: nullable ANode */;
4187 val
* var
/* : TKwenum */;
4188 short int var1
/* : Bool */;
4189 val
* var_other
/* var other: nullable Object */;
4190 short int var3
/* : Bool */;
4191 short int var5
/* : Bool */;
4192 short int var6
/* : Bool */;
4195 const char* var_class_name
;
4198 var
= self
->attrs
[COLOR_nit__parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4199 if (unlikely(var
== NULL
)) {
4200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4201 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 666);
4205 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwenum> */
4206 var_other
= var_old_child
;
4208 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwenum> */
4209 var5
= var
== var_other
;
4221 /* <var_new_child:nullable ANode> isa TKwenum */
4222 cltype
= type_nit__TKwenum
.color
;
4223 idtype
= type_nit__TKwenum
.id
;
4224 if(var_new_child
== NULL
) {
4227 if(cltype
>= var_new_child
->type
->table_size
) {
4230 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4233 if (unlikely(!var6
)) {
4234 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4235 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwenum", var_class_name
);
4236 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 667);
4240 nit__parser_prod___AEnumClasskind___n_kwenum_61d(self
, var_new_child
); /* Direct call parser_prod#AEnumClasskind#n_kwenum= on <self:AEnumClasskind>*/
4247 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: AEnumClasskind, TKwenum) */
4248 void nit__parser_prod___AEnumClasskind___n_kwenum_61d(val
* self
, val
* p0
) {
4249 val
* var_node
/* var node: TKwenum */;
4251 self
->attrs
[COLOR_nit__parser_nodes__AEnumClasskind___n_kwenum
].val
= var_node
; /* _n_kwenum on <self:AEnumClasskind> */
4253 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwenum> */
4254 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwenum> */
4260 /* method parser_prod#AEnumClasskind#visit_all for (self: AEnumClasskind, Visitor) */
4261 void nit__parser_prod___AEnumClasskind___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4262 val
* var_v
/* var v: Visitor */;
4263 val
* var
/* : TKwenum */;
4265 var
= self
->attrs
[COLOR_nit__parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4266 if (unlikely(var
== NULL
)) {
4267 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4268 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 681);
4272 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4276 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: AExternClasskind, nullable TKwextern, nullable TKwclass) */
4277 void nit__parser_prod___AExternClasskind___init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4278 val
* var_n_kwextern
/* var n_kwextern: nullable TKwextern */;
4279 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4280 val
* var
/* : null */;
4281 short int var2
/* : Bool */;
4282 short int var3
/* : Bool */;
4283 val
* var_other
/* var other: nullable Object */;
4284 short int var5
/* : Bool */;
4285 short int var6
/* : Bool */;
4286 var_n_kwextern
= p0
;
4288 if (unlikely(var_n_kwextern
== NULL
)) {
4289 PRINT_ERROR("Runtime error: %s", "Cast failed");
4290 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 690);
4293 self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwextern
].val
= var_n_kwextern
; /* _n_kwextern on <self:AExternClasskind> */
4294 if (var_n_kwextern
== NULL
) {
4295 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4296 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 691);
4299 { /* Inline parser_nodes#ANode#parent= (var_n_kwextern,self) on <var_n_kwextern:nullable TKwextern> */
4300 if (unlikely(var_n_kwextern
== NULL
)) {
4301 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4302 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4305 var_n_kwextern
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwextern:nullable TKwextern> */
4309 self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AExternClasskind> */
4311 if (var_n_kwclass
== NULL
) {
4312 var2
= 0; /* is null */
4314 var2
= 1; /* arg is null and recv is not */
4317 { /* Inline kernel#Object#!= (var_n_kwclass,var) on <var_n_kwclass:nullable TKwclass> */
4320 var5
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwclass
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwclass
, var_other
) /* == on <var_n_kwclass:nullable TKwclass(TKwclass)>*/;
4331 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4332 var_n_kwclass
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4340 /* method parser_prod#AExternClasskind#replace_child for (self: AExternClasskind, ANode, nullable ANode) */
4341 void nit__parser_prod___AExternClasskind___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4342 val
* var_old_child
/* var old_child: ANode */;
4343 val
* var_new_child
/* var new_child: nullable ANode */;
4344 val
* var
/* : TKwextern */;
4345 short int var1
/* : Bool */;
4346 val
* var_other
/* var other: nullable Object */;
4347 short int var3
/* : Bool */;
4348 short int var5
/* : Bool */;
4349 short int var6
/* : Bool */;
4352 const char* var_class_name
;
4353 val
* var7
/* : nullable TKwclass */;
4354 short int var8
/* : Bool */;
4355 short int var9
/* : Bool */;
4356 short int var11
/* : Bool */;
4357 short int var13
/* : Bool */;
4358 short int var14
/* : Bool */;
4361 const char* var_class_name17
;
4364 var
= self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4365 if (unlikely(var
== NULL
)) {
4366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
4367 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 698);
4371 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwextern> */
4372 var_other
= var_old_child
;
4374 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwextern> */
4375 var5
= var
== var_other
;
4387 /* <var_new_child:nullable ANode> isa TKwextern */
4388 cltype
= type_nit__TKwextern
.color
;
4389 idtype
= type_nit__TKwextern
.id
;
4390 if(var_new_child
== NULL
) {
4393 if(cltype
>= var_new_child
->type
->table_size
) {
4396 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4399 if (unlikely(!var6
)) {
4400 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4401 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwextern", var_class_name
);
4402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 699);
4406 nit__parser_prod___AExternClasskind___n_kwextern_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwextern= on <self:AExternClasskind>*/
4411 var7
= self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4413 var8
= 0; /* <var_old_child:ANode> cannot be null */
4415 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TKwclass> */
4416 var_other
= var_old_child
;
4418 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TKwclass(TKwclass)> */
4419 var13
= var7
== var_other
;
4422 RET_LABEL12
:(void)0;
4427 RET_LABEL10
:(void)0;
4432 /* <var_new_child:nullable ANode> isa nullable TKwclass */
4433 cltype15
= type_nullable__nit__TKwclass
.color
;
4434 idtype16
= type_nullable__nit__TKwclass
.id
;
4435 if(var_new_child
== NULL
) {
4438 if(cltype15
>= var_new_child
->type
->table_size
) {
4441 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4444 if (unlikely(!var14
)) {
4445 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4446 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwclass", var_class_name17
);
4447 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 703);
4451 nit__parser_prod___AExternClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwclass= on <self:AExternClasskind>*/
4458 /* method parser_prod#AExternClasskind#n_kwextern= for (self: AExternClasskind, TKwextern) */
4459 void nit__parser_prod___AExternClasskind___n_kwextern_61d(val
* self
, val
* p0
) {
4460 val
* var_node
/* var node: TKwextern */;
4462 self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwextern
].val
= var_node
; /* _n_kwextern on <self:AExternClasskind> */
4464 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwextern> */
4465 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwextern> */
4471 /* method parser_prod#AExternClasskind#n_kwclass= for (self: AExternClasskind, nullable TKwclass) */
4472 void nit__parser_prod___AExternClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
4473 val
* var_node
/* var node: nullable TKwclass */;
4474 val
* var
/* : null */;
4475 short int var1
/* : Bool */;
4476 short int var2
/* : Bool */;
4477 val
* var_other
/* var other: nullable Object */;
4478 short int var4
/* : Bool */;
4479 short int var5
/* : Bool */;
4481 self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AExternClasskind> */
4483 if (var_node
== NULL
) {
4484 var1
= 0; /* is null */
4486 var1
= 1; /* arg is null and recv is not */
4489 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwclass> */
4492 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwclass(TKwclass)>*/;
4503 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwclass(TKwclass)> */
4504 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwclass(TKwclass)> */
4512 /* method parser_prod#AExternClasskind#visit_all for (self: AExternClasskind, Visitor) */
4513 void nit__parser_prod___AExternClasskind___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4514 val
* var_v
/* var v: Visitor */;
4515 val
* var
/* : TKwextern */;
4516 val
* var1
/* : nullable TKwclass */;
4518 var
= self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4519 if (unlikely(var
== NULL
)) {
4520 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
4521 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 722);
4525 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4527 var1
= self
->attrs
[COLOR_nit__parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4529 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4533 /* method parser_prod#AFormaldef#init_aformaldef for (self: AFormaldef, nullable TClassid, nullable AType, nullable AAnnotations) */
4534 void nit__parser_prod___AFormaldef___init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4535 val
* var_n_id
/* var n_id: nullable TClassid */;
4536 val
* var_n_type
/* var n_type: nullable AType */;
4537 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4538 val
* var
/* : null */;
4539 short int var2
/* : Bool */;
4540 short int var3
/* : Bool */;
4541 val
* var_other
/* var other: nullable Object */;
4542 short int var5
/* : Bool */;
4543 short int var6
/* : Bool */;
4544 val
* var8
/* : null */;
4545 short int var9
/* : Bool */;
4546 short int var10
/* : Bool */;
4547 short int var12
/* : Bool */;
4548 short int var13
/* : Bool */;
4551 var_n_annotations
= p2
;
4552 if (unlikely(var_n_id
== NULL
)) {
4553 PRINT_ERROR("Runtime error: %s", "Cast failed");
4554 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 733);
4557 self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_id
].val
= var_n_id
; /* _n_id on <self:AFormaldef> */
4558 if (var_n_id
== NULL
) {
4559 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4560 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 734);
4563 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
4564 if (unlikely(var_n_id
== NULL
)) {
4565 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4566 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4569 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
4573 self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_type
].val
= var_n_type
; /* _n_type on <self:AFormaldef> */
4575 if (var_n_type
== NULL
) {
4576 var2
= 0; /* is null */
4578 var2
= 1; /* arg is null and recv is not */
4581 { /* Inline kernel#Object#!= (var_n_type,var) on <var_n_type:nullable AType> */
4584 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)>*/;
4595 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
4596 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
4602 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFormaldef> */
4604 if (var_n_annotations
== NULL
) {
4605 var9
= 0; /* is null */
4607 var9
= 1; /* arg is null and recv is not */
4610 { /* Inline kernel#Object#!= (var_n_annotations,var8) on <var_n_annotations:nullable AAnnotations> */
4613 var12
= ((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)>*/;
4618 RET_LABEL11
:(void)0;
4624 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4625 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4626 RET_LABEL14
:(void)0;
4633 /* method parser_prod#AFormaldef#replace_child for (self: AFormaldef, ANode, nullable ANode) */
4634 void nit__parser_prod___AFormaldef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4635 val
* var_old_child
/* var old_child: ANode */;
4636 val
* var_new_child
/* var new_child: nullable ANode */;
4637 val
* var
/* : TClassid */;
4638 short int var1
/* : Bool */;
4639 val
* var_other
/* var other: nullable Object */;
4640 short int var3
/* : Bool */;
4641 short int var5
/* : Bool */;
4642 short int var6
/* : Bool */;
4645 const char* var_class_name
;
4646 val
* var7
/* : nullable AType */;
4647 short int var8
/* : Bool */;
4648 short int var9
/* : Bool */;
4649 short int var11
/* : Bool */;
4650 short int var13
/* : Bool */;
4651 short int var14
/* : Bool */;
4654 const char* var_class_name17
;
4655 val
* var18
/* : nullable AAnnotations */;
4656 short int var19
/* : Bool */;
4657 short int var20
/* : Bool */;
4658 short int var22
/* : Bool */;
4659 short int var24
/* : Bool */;
4660 short int var25
/* : Bool */;
4663 const char* var_class_name28
;
4666 var
= self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4667 if (unlikely(var
== NULL
)) {
4668 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4669 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 743);
4673 { /* Inline kernel#Object#== (var,var_old_child) on <var:TClassid> */
4674 var_other
= var_old_child
;
4676 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TClassid> */
4677 var5
= var
== var_other
;
4689 /* <var_new_child:nullable ANode> isa TClassid */
4690 cltype
= type_nit__TClassid
.color
;
4691 idtype
= type_nit__TClassid
.id
;
4692 if(var_new_child
== NULL
) {
4695 if(cltype
>= var_new_child
->type
->table_size
) {
4698 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4701 if (unlikely(!var6
)) {
4702 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4703 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name
);
4704 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 744);
4708 nit__parser_prod___AFormaldef___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_id= on <self:AFormaldef>*/
4713 var7
= self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4715 var8
= 0; /* <var_old_child:ANode> cannot be null */
4717 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AType> */
4718 var_other
= var_old_child
;
4720 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AType(AType)> */
4721 var13
= var7
== var_other
;
4724 RET_LABEL12
:(void)0;
4729 RET_LABEL10
:(void)0;
4734 /* <var_new_child:nullable ANode> isa nullable AType */
4735 cltype15
= type_nullable__nit__AType
.color
;
4736 idtype16
= type_nullable__nit__AType
.id
;
4737 if(var_new_child
== NULL
) {
4740 if(cltype15
>= var_new_child
->type
->table_size
) {
4743 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4746 if (unlikely(!var14
)) {
4747 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4748 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17
);
4749 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 748);
4753 nit__parser_prod___AFormaldef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_type= on <self:AFormaldef>*/
4758 var18
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4759 if (var18
== NULL
) {
4760 var19
= 0; /* <var_old_child:ANode> cannot be null */
4762 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable AAnnotations> */
4763 var_other
= var_old_child
;
4765 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable AAnnotations(AAnnotations)> */
4766 var24
= var18
== var_other
;
4769 RET_LABEL23
:(void)0;
4774 RET_LABEL21
:(void)0;
4779 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4780 cltype26
= type_nullable__nit__AAnnotations
.color
;
4781 idtype27
= type_nullable__nit__AAnnotations
.id
;
4782 if(var_new_child
== NULL
) {
4785 if(cltype26
>= var_new_child
->type
->table_size
) {
4788 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
4791 if (unlikely(!var25
)) {
4792 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4793 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name28
);
4794 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 752);
4798 nit__parser_prod___AFormaldef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_annotations= on <self:AFormaldef>*/
4805 /* method parser_prod#AFormaldef#n_id= for (self: AFormaldef, TClassid) */
4806 void nit__parser_prod___AFormaldef___n_id_61d(val
* self
, val
* p0
) {
4807 val
* var_node
/* var node: TClassid */;
4809 self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_id
].val
= var_node
; /* _n_id on <self:AFormaldef> */
4811 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
4812 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
4818 /* method parser_prod#AFormaldef#n_type= for (self: AFormaldef, nullable AType) */
4819 void nit__parser_prod___AFormaldef___n_type_61d(val
* self
, val
* p0
) {
4820 val
* var_node
/* var node: nullable AType */;
4821 val
* var
/* : null */;
4822 short int var1
/* : Bool */;
4823 short int var2
/* : Bool */;
4824 val
* var_other
/* var other: nullable Object */;
4825 short int var4
/* : Bool */;
4826 short int var5
/* : Bool */;
4828 self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_type
].val
= var_node
; /* _n_type on <self:AFormaldef> */
4830 if (var_node
== NULL
) {
4831 var1
= 0; /* is null */
4833 var1
= 1; /* arg is null and recv is not */
4836 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
4839 var4
= ((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)>*/;
4850 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
4851 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
4859 /* method parser_prod#AFormaldef#n_annotations= for (self: AFormaldef, nullable AAnnotations) */
4860 void nit__parser_prod___AFormaldef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
4861 val
* var_node
/* var node: nullable AAnnotations */;
4862 val
* var
/* : null */;
4863 short int var1
/* : Bool */;
4864 short int var2
/* : Bool */;
4865 val
* var_other
/* var other: nullable Object */;
4866 short int var4
/* : Bool */;
4867 short int var5
/* : Bool */;
4869 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFormaldef> */
4871 if (var_node
== NULL
) {
4872 var1
= 0; /* is null */
4874 var1
= 1; /* arg is null and recv is not */
4877 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
4880 var4
= ((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)>*/;
4891 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4892 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
4900 /* method parser_prod#AFormaldef#visit_all for (self: AFormaldef, Visitor) */
4901 void nit__parser_prod___AFormaldef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4902 val
* var_v
/* var v: Visitor */;
4903 val
* var
/* : TClassid */;
4904 val
* var1
/* : nullable AType */;
4905 val
* var2
/* : nullable AAnnotations */;
4907 var
= self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4908 if (unlikely(var
== NULL
)) {
4909 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4910 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 776);
4914 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4916 var1
= self
->attrs
[COLOR_nit__parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4918 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4920 var2
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4922 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4926 /* method parser_prod#ASuperclass#init_asuperclass for (self: ASuperclass, nullable TKwsuper, nullable AType, nullable AAnnotations) */
4927 void nit__parser_prod___ASuperclass___init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4928 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
4929 val
* var_n_type
/* var n_type: nullable AType */;
4930 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4931 val
* var
/* : null */;
4932 short int var3
/* : Bool */;
4933 short int var4
/* : Bool */;
4934 val
* var_other
/* var other: nullable Object */;
4935 short int var6
/* : Bool */;
4936 short int var7
/* : Bool */;
4939 var_n_annotations
= p2
;
4940 if (unlikely(var_n_kwsuper
== NULL
)) {
4941 PRINT_ERROR("Runtime error: %s", "Cast failed");
4942 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 788);
4945 self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperclass> */
4946 if (var_n_kwsuper
== NULL
) {
4947 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4948 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 789);
4951 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
4952 if (unlikely(var_n_kwsuper
== NULL
)) {
4953 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4954 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4957 var_n_kwsuper
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
4961 if (unlikely(var_n_type
== NULL
)) {
4962 PRINT_ERROR("Runtime error: %s", "Cast failed");
4963 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 790);
4966 self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_type
].val
= var_n_type
; /* _n_type on <self:ASuperclass> */
4967 if (var_n_type
== NULL
) {
4968 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4969 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 791);
4972 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
4973 if (unlikely(var_n_type
== NULL
)) {
4974 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4975 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
4978 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
4982 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperclass> */
4984 if (var_n_annotations
== NULL
) {
4985 var3
= 0; /* is null */
4987 var3
= 1; /* arg is null and recv is not */
4990 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
4993 var6
= ((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)>*/;
5004 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5005 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5013 /* method parser_prod#ASuperclass#replace_child for (self: ASuperclass, ANode, nullable ANode) */
5014 void nit__parser_prod___ASuperclass___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5015 val
* var_old_child
/* var old_child: ANode */;
5016 val
* var_new_child
/* var new_child: nullable ANode */;
5017 val
* var
/* : TKwsuper */;
5018 short int var1
/* : Bool */;
5019 val
* var_other
/* var other: nullable Object */;
5020 short int var3
/* : Bool */;
5021 short int var5
/* : Bool */;
5022 short int var6
/* : Bool */;
5025 const char* var_class_name
;
5026 val
* var7
/* : AType */;
5027 short int var8
/* : Bool */;
5028 short int var10
/* : Bool */;
5029 short int var12
/* : Bool */;
5030 short int var13
/* : Bool */;
5033 const char* var_class_name16
;
5034 val
* var17
/* : nullable AAnnotations */;
5035 short int var18
/* : Bool */;
5036 short int var19
/* : Bool */;
5037 short int var21
/* : Bool */;
5038 short int var23
/* : Bool */;
5039 short int var24
/* : Bool */;
5042 const char* var_class_name27
;
5045 var
= self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5046 if (unlikely(var
== NULL
)) {
5047 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5048 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 798);
5052 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwsuper> */
5053 var_other
= var_old_child
;
5055 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwsuper> */
5056 var5
= var
== var_other
;
5068 /* <var_new_child:nullable ANode> isa TKwsuper */
5069 cltype
= type_nit__TKwsuper
.color
;
5070 idtype
= type_nit__TKwsuper
.id
;
5071 if(var_new_child
== NULL
) {
5074 if(cltype
>= var_new_child
->type
->table_size
) {
5077 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5080 if (unlikely(!var6
)) {
5081 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5082 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name
);
5083 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 799);
5087 nit__parser_prod___ASuperclass___n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_kwsuper= on <self:ASuperclass>*/
5092 var7
= self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5093 if (unlikely(var7
== NULL
)) {
5094 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5095 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 802);
5099 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AType> */
5100 var_other
= var_old_child
;
5102 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AType> */
5103 var12
= var7
== var_other
;
5106 RET_LABEL11
:(void)0;
5115 /* <var_new_child:nullable ANode> isa AType */
5116 cltype14
= type_nit__AType
.color
;
5117 idtype15
= type_nit__AType
.id
;
5118 if(var_new_child
== NULL
) {
5121 if(cltype14
>= var_new_child
->type
->table_size
) {
5124 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
5127 if (unlikely(!var13
)) {
5128 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5129 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name16
);
5130 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 803);
5134 nit__parser_prod___ASuperclass___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_type= on <self:ASuperclass>*/
5139 var17
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5140 if (var17
== NULL
) {
5141 var18
= 0; /* <var_old_child:ANode> cannot be null */
5143 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:nullable AAnnotations> */
5144 var_other
= var_old_child
;
5146 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:nullable AAnnotations(AAnnotations)> */
5147 var23
= var17
== var_other
;
5150 RET_LABEL22
:(void)0;
5155 RET_LABEL20
:(void)0;
5160 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5161 cltype25
= type_nullable__nit__AAnnotations
.color
;
5162 idtype26
= type_nullable__nit__AAnnotations
.id
;
5163 if(var_new_child
== NULL
) {
5166 if(cltype25
>= var_new_child
->type
->table_size
) {
5169 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
5172 if (unlikely(!var24
)) {
5173 var_class_name27
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5174 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name27
);
5175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 807);
5179 nit__parser_prod___ASuperclass___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_annotations= on <self:ASuperclass>*/
5186 /* method parser_prod#ASuperclass#n_kwsuper= for (self: ASuperclass, TKwsuper) */
5187 void nit__parser_prod___ASuperclass___n_kwsuper_61d(val
* self
, val
* p0
) {
5188 val
* var_node
/* var node: TKwsuper */;
5190 self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperclass> */
5192 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
5193 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
5199 /* method parser_prod#ASuperclass#n_type= for (self: ASuperclass, AType) */
5200 void nit__parser_prod___ASuperclass___n_type_61d(val
* self
, val
* p0
) {
5201 val
* var_node
/* var node: AType */;
5203 self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_type
].val
= var_node
; /* _n_type on <self:ASuperclass> */
5205 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5206 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5212 /* method parser_prod#ASuperclass#n_annotations= for (self: ASuperclass, nullable AAnnotations) */
5213 void nit__parser_prod___ASuperclass___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
5214 val
* var_node
/* var node: nullable AAnnotations */;
5215 val
* var
/* : null */;
5216 short int var1
/* : Bool */;
5217 short int var2
/* : Bool */;
5218 val
* var_other
/* var other: nullable Object */;
5219 short int var4
/* : Bool */;
5220 short int var5
/* : Bool */;
5222 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperclass> */
5224 if (var_node
== NULL
) {
5225 var1
= 0; /* is null */
5227 var1
= 1; /* arg is null and recv is not */
5230 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5233 var4
= ((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)>*/;
5244 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5245 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5253 /* method parser_prod#ASuperclass#visit_all for (self: ASuperclass, Visitor) */
5254 void nit__parser_prod___ASuperclass___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5255 val
* var_v
/* var v: Visitor */;
5256 val
* var
/* : TKwsuper */;
5257 val
* var1
/* : AType */;
5258 val
* var2
/* : nullable AAnnotations */;
5260 var
= self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5261 if (unlikely(var
== NULL
)) {
5262 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5263 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 831);
5267 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5269 var1
= self
->attrs
[COLOR_nit__parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5270 if (unlikely(var1
== NULL
)) {
5271 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5272 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 832);
5276 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5278 var2
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5280 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5284 /* method parser_prod#AAttrPropdef#init_aattrpropdef for (self: AAttrPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwvar, nullable TId, nullable AType, nullable AExpr, nullable AAnnotations, nullable AExpr) */
5285 void nit__parser_prod___AAttrPropdef___init_aattrpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
) {
5286 val
* var_n_doc
/* var n_doc: nullable ADoc */;
5287 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
5288 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
5289 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
5290 val
* var_n_id2
/* var n_id2: nullable TId */;
5291 val
* var_n_type
/* var n_type: nullable AType */;
5292 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5293 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5294 val
* var_n_block
/* var n_block: nullable AExpr */;
5295 val
* var
/* : null */;
5296 short int var1
/* : Bool */;
5297 short int var2
/* : Bool */;
5298 val
* var_other
/* var other: nullable Object */;
5299 short int var4
/* : Bool */;
5300 short int var5
/* : Bool */;
5301 val
* var7
/* : null */;
5302 short int var8
/* : Bool */;
5303 short int var9
/* : Bool */;
5304 short int var11
/* : Bool */;
5305 short int var12
/* : Bool */;
5306 val
* var17
/* : null */;
5307 short int var18
/* : Bool */;
5308 short int var19
/* : Bool */;
5309 short int var21
/* : Bool */;
5310 short int var22
/* : Bool */;
5311 val
* var24
/* : null */;
5312 short int var25
/* : Bool */;
5313 short int var26
/* : Bool */;
5314 short int var28
/* : Bool */;
5315 short int var29
/* : Bool */;
5316 val
* var31
/* : null */;
5317 short int var32
/* : Bool */;
5318 short int var33
/* : Bool */;
5319 short int var35
/* : Bool */;
5320 short int var36
/* : Bool */;
5321 val
* var38
/* : null */;
5322 short int var39
/* : Bool */;
5323 short int var40
/* : Bool */;
5324 short int var42
/* : Bool */;
5325 short int var43
/* : Bool */;
5328 var_n_visibility
= p2
;
5333 var_n_annotations
= p7
;
5335 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAttrPropdef> */
5337 if (var_n_doc
== NULL
) {
5338 var1
= 0; /* is null */
5340 var1
= 1; /* arg is null and recv is not */
5343 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
5346 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)>*/;
5357 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
5358 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
5364 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAttrPropdef> */
5366 if (var_n_kwredef
== NULL
) {
5367 var8
= 0; /* is null */
5369 var8
= 1; /* arg is null and recv is not */
5372 { /* Inline kernel#Object#!= (var_n_kwredef,var7) on <var_n_kwredef:nullable TKwredef> */
5375 var11
= ((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)>*/;
5380 RET_LABEL10
:(void)0;
5386 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5387 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5388 RET_LABEL13
:(void)0;
5393 if (unlikely(var_n_visibility
== NULL
)) {
5394 PRINT_ERROR("Runtime error: %s", "Cast failed");
5395 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 853);
5398 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAttrPropdef> */
5399 if (var_n_visibility
== NULL
) {
5400 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5401 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 854);
5404 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
5405 if (unlikely(var_n_visibility
== NULL
)) {
5406 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5407 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5410 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
5411 RET_LABEL14
:(void)0;
5414 if (unlikely(var_n_kwvar
== NULL
)) {
5415 PRINT_ERROR("Runtime error: %s", "Cast failed");
5416 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 855);
5419 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AAttrPropdef> */
5420 if (var_n_kwvar
== NULL
) {
5421 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5422 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 856);
5425 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar> */
5426 if (unlikely(var_n_kwvar
== NULL
)) {
5427 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5428 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5431 var_n_kwvar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar> */
5432 RET_LABEL15
:(void)0;
5435 if (unlikely(var_n_id2
== NULL
)) {
5436 PRINT_ERROR("Runtime error: %s", "Cast failed");
5437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 857);
5440 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_id2
].val
= var_n_id2
; /* _n_id2 on <self:AAttrPropdef> */
5441 if (var_n_id2
== NULL
) {
5442 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5443 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 858);
5446 { /* Inline parser_nodes#ANode#parent= (var_n_id2,self) on <var_n_id2:nullable TId> */
5447 if (unlikely(var_n_id2
== NULL
)) {
5448 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5449 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
5452 var_n_id2
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id2:nullable TId> */
5453 RET_LABEL16
:(void)0;
5456 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:AAttrPropdef> */
5458 if (var_n_type
== NULL
) {
5459 var18
= 0; /* is null */
5461 var18
= 1; /* arg is null and recv is not */
5464 { /* Inline kernel#Object#!= (var_n_type,var17) on <var_n_type:nullable AType> */
5467 var21
= ((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)>*/;
5472 RET_LABEL20
:(void)0;
5478 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5479 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5480 RET_LABEL23
:(void)0;
5485 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrPropdef> */
5487 if (var_n_expr
== NULL
) {
5488 var25
= 0; /* is null */
5490 var25
= 1; /* arg is null and recv is not */
5493 { /* Inline kernel#Object#!= (var_n_expr,var24) on <var_n_expr:nullable AExpr> */
5496 var28
= ((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)>*/;
5501 RET_LABEL27
:(void)0;
5507 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
5508 var_n_expr
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
5509 RET_LABEL30
:(void)0;
5514 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAttrPropdef> */
5516 if (var_n_annotations
== NULL
) {
5517 var32
= 0; /* is null */
5519 var32
= 1; /* arg is null and recv is not */
5522 { /* Inline kernel#Object#!= (var_n_annotations,var31) on <var_n_annotations:nullable AAnnotations> */
5525 var35
= ((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)>*/;
5530 RET_LABEL34
:(void)0;
5536 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5537 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5538 RET_LABEL37
:(void)0;
5543 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AAttrPropdef> */
5545 if (var_n_block
== NULL
) {
5546 var39
= 0; /* is null */
5548 var39
= 1; /* arg is null and recv is not */
5551 { /* Inline kernel#Object#!= (var_n_block,var38) on <var_n_block:nullable AExpr> */
5554 var42
= ((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)>*/;
5559 RET_LABEL41
:(void)0;
5565 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
5566 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
5567 RET_LABEL44
:(void)0;
5574 /* method parser_prod#AAttrPropdef#replace_child for (self: AAttrPropdef, ANode, nullable ANode) */
5575 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5576 val
* var_old_child
/* var old_child: ANode */;
5577 val
* var_new_child
/* var new_child: nullable ANode */;
5578 val
* var
/* : nullable ADoc */;
5579 short int var1
/* : Bool */;
5580 short int var2
/* : Bool */;
5581 val
* var_other
/* var other: nullable Object */;
5582 short int var4
/* : Bool */;
5583 short int var6
/* : Bool */;
5584 short int var7
/* : Bool */;
5587 const char* var_class_name
;
5588 val
* var8
/* : nullable TKwredef */;
5589 short int var9
/* : Bool */;
5590 short int var10
/* : Bool */;
5591 short int var12
/* : Bool */;
5592 short int var14
/* : Bool */;
5593 short int var15
/* : Bool */;
5596 const char* var_class_name18
;
5597 val
* var19
/* : nullable AVisibility */;
5598 short int var20
/* : Bool */;
5599 short int var21
/* : Bool */;
5600 short int var23
/* : Bool */;
5601 short int var25
/* : Bool */;
5602 short int var26
/* : Bool */;
5605 const char* var_class_name29
;
5606 val
* var30
/* : TKwvar */;
5607 short int var31
/* : Bool */;
5608 short int var33
/* : Bool */;
5609 short int var35
/* : Bool */;
5610 short int var36
/* : Bool */;
5613 const char* var_class_name39
;
5614 val
* var40
/* : TId */;
5615 short int var41
/* : Bool */;
5616 short int var43
/* : Bool */;
5617 short int var45
/* : Bool */;
5618 short int var46
/* : Bool */;
5621 const char* var_class_name49
;
5622 val
* var50
/* : nullable AType */;
5623 short int var51
/* : Bool */;
5624 short int var52
/* : Bool */;
5625 short int var54
/* : Bool */;
5626 short int var56
/* : Bool */;
5627 short int var57
/* : Bool */;
5630 const char* var_class_name60
;
5631 val
* var61
/* : nullable AExpr */;
5632 short int var62
/* : Bool */;
5633 short int var63
/* : Bool */;
5634 short int var65
/* : Bool */;
5635 short int var67
/* : Bool */;
5636 short int var68
/* : Bool */;
5639 const char* var_class_name71
;
5640 val
* var72
/* : nullable AAnnotations */;
5641 short int var73
/* : Bool */;
5642 short int var74
/* : Bool */;
5643 short int var76
/* : Bool */;
5644 short int var78
/* : Bool */;
5645 short int var79
/* : Bool */;
5648 const char* var_class_name82
;
5649 val
* var83
/* : nullable AExpr */;
5650 short int var84
/* : Bool */;
5651 short int var85
/* : Bool */;
5652 short int var87
/* : Bool */;
5653 short int var89
/* : Bool */;
5654 short int var90
/* : Bool */;
5657 const char* var_class_name93
;
5660 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5662 var1
= 0; /* <var_old_child:ANode> cannot be null */
5664 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
5665 var_other
= var_old_child
;
5667 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
5668 var6
= var
== var_other
;
5681 /* <var_new_child:nullable ANode> isa nullable ADoc */
5682 cltype
= type_nullable__nit__ADoc
.color
;
5683 idtype
= type_nullable__nit__ADoc
.id
;
5684 if(var_new_child
== NULL
) {
5687 if(cltype
>= var_new_child
->type
->table_size
) {
5690 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5693 if (unlikely(!var7
)) {
5694 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5695 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
5696 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 872);
5700 nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_doc= on <self:AAttrPropdef>*/
5705 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
5707 var9
= 0; /* <var_old_child:ANode> cannot be null */
5709 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
5710 var_other
= var_old_child
;
5712 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
5713 var14
= var8
== var_other
;
5716 RET_LABEL13
:(void)0;
5721 RET_LABEL11
:(void)0;
5726 /* <var_new_child:nullable ANode> isa nullable TKwredef */
5727 cltype16
= type_nullable__nit__TKwredef
.color
;
5728 idtype17
= type_nullable__nit__TKwredef
.id
;
5729 if(var_new_child
== NULL
) {
5732 if(cltype16
>= var_new_child
->type
->table_size
) {
5735 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5738 if (unlikely(!var15
)) {
5739 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5740 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
5741 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 876);
5745 nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwredef= on <self:AAttrPropdef>*/
5750 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
5751 if (var19
== NULL
) {
5752 var20
= 0; /* <var_old_child:ANode> cannot be null */
5754 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
5755 var_other
= var_old_child
;
5757 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
5758 var25
= var19
== var_other
;
5761 RET_LABEL24
:(void)0;
5766 RET_LABEL22
:(void)0;
5771 /* <var_new_child:nullable ANode> isa AVisibility */
5772 cltype27
= type_nit__AVisibility
.color
;
5773 idtype28
= type_nit__AVisibility
.id
;
5774 if(var_new_child
== NULL
) {
5777 if(cltype27
>= var_new_child
->type
->table_size
) {
5780 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5783 if (unlikely(!var26
)) {
5784 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5785 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
5786 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 880);
5790 nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_visibility= on <self:AAttrPropdef>*/
5795 var30
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
5796 if (unlikely(var30
== NULL
)) {
5797 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
5798 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 883);
5802 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwvar> */
5803 var_other
= var_old_child
;
5805 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwvar> */
5806 var35
= var30
== var_other
;
5809 RET_LABEL34
:(void)0;
5814 RET_LABEL32
:(void)0;
5818 /* <var_new_child:nullable ANode> isa TKwvar */
5819 cltype37
= type_nit__TKwvar
.color
;
5820 idtype38
= type_nit__TKwvar
.id
;
5821 if(var_new_child
== NULL
) {
5824 if(cltype37
>= var_new_child
->type
->table_size
) {
5827 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
5830 if (unlikely(!var36
)) {
5831 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5832 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwvar", var_class_name39
);
5833 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 884);
5837 nit__parser_prod___AAttrPropdef___n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwvar= on <self:AAttrPropdef>*/
5842 var40
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
5843 if (unlikely(var40
== NULL
)) {
5844 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
5845 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 887);
5849 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:TId> */
5850 var_other
= var_old_child
;
5852 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:TId> */
5853 var45
= var40
== var_other
;
5856 RET_LABEL44
:(void)0;
5861 RET_LABEL42
:(void)0;
5865 /* <var_new_child:nullable ANode> isa TId */
5866 cltype47
= type_nit__TId
.color
;
5867 idtype48
= type_nit__TId
.id
;
5868 if(var_new_child
== NULL
) {
5871 if(cltype47
>= var_new_child
->type
->table_size
) {
5874 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
5877 if (unlikely(!var46
)) {
5878 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5879 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name49
);
5880 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 888);
5884 nit__parser_prod___AAttrPropdef___n_id2_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_id2= on <self:AAttrPropdef>*/
5889 var50
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
5890 if (var50
== NULL
) {
5891 var51
= 0; /* <var_old_child:ANode> cannot be null */
5893 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AType> */
5894 var_other
= var_old_child
;
5896 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AType(AType)> */
5897 var56
= var50
== var_other
;
5900 RET_LABEL55
:(void)0;
5905 RET_LABEL53
:(void)0;
5910 /* <var_new_child:nullable ANode> isa nullable AType */
5911 cltype58
= type_nullable__nit__AType
.color
;
5912 idtype59
= type_nullable__nit__AType
.id
;
5913 if(var_new_child
== NULL
) {
5916 if(cltype58
>= var_new_child
->type
->table_size
) {
5919 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
5922 if (unlikely(!var57
)) {
5923 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5924 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name60
);
5925 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 892);
5929 nit__parser_prod___AAttrPropdef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_type= on <self:AAttrPropdef>*/
5934 var61
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
5935 if (var61
== NULL
) {
5936 var62
= 0; /* <var_old_child:ANode> cannot be null */
5938 { /* Inline kernel#Object#== (var61,var_old_child) on <var61:nullable AExpr> */
5939 var_other
= var_old_child
;
5941 { /* Inline kernel#Object#is_same_instance (var61,var_other) on <var61:nullable AExpr(AExpr)> */
5942 var67
= var61
== var_other
;
5945 RET_LABEL66
:(void)0;
5950 RET_LABEL64
:(void)0;
5955 /* <var_new_child:nullable ANode> isa nullable AExpr */
5956 cltype69
= type_nullable__nit__AExpr
.color
;
5957 idtype70
= type_nullable__nit__AExpr
.id
;
5958 if(var_new_child
== NULL
) {
5961 if(cltype69
>= var_new_child
->type
->table_size
) {
5964 var68
= var_new_child
->type
->type_table
[cltype69
] == idtype70
;
5967 if (unlikely(!var68
)) {
5968 var_class_name71
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5969 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name71
);
5970 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 896);
5974 nit__parser_prod___AAttrPropdef___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_expr= on <self:AAttrPropdef>*/
5979 var72
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
5980 if (var72
== NULL
) {
5981 var73
= 0; /* <var_old_child:ANode> cannot be null */
5983 { /* Inline kernel#Object#== (var72,var_old_child) on <var72:nullable AAnnotations> */
5984 var_other
= var_old_child
;
5986 { /* Inline kernel#Object#is_same_instance (var72,var_other) on <var72:nullable AAnnotations(AAnnotations)> */
5987 var78
= var72
== var_other
;
5990 RET_LABEL77
:(void)0;
5995 RET_LABEL75
:(void)0;
6000 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6001 cltype80
= type_nullable__nit__AAnnotations
.color
;
6002 idtype81
= type_nullable__nit__AAnnotations
.id
;
6003 if(var_new_child
== NULL
) {
6006 if(cltype80
>= var_new_child
->type
->table_size
) {
6009 var79
= var_new_child
->type
->type_table
[cltype80
] == idtype81
;
6012 if (unlikely(!var79
)) {
6013 var_class_name82
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6014 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name82
);
6015 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 900);
6019 nit__parser_prod___AAttrPropdef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_annotations= on <self:AAttrPropdef>*/
6024 var83
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
6025 if (var83
== NULL
) {
6026 var84
= 0; /* <var_old_child:ANode> cannot be null */
6028 { /* Inline kernel#Object#== (var83,var_old_child) on <var83:nullable AExpr> */
6029 var_other
= var_old_child
;
6031 { /* Inline kernel#Object#is_same_instance (var83,var_other) on <var83:nullable AExpr(AExpr)> */
6032 var89
= var83
== var_other
;
6035 RET_LABEL88
:(void)0;
6040 RET_LABEL86
:(void)0;
6045 /* <var_new_child:nullable ANode> isa nullable AExpr */
6046 cltype91
= type_nullable__nit__AExpr
.color
;
6047 idtype92
= type_nullable__nit__AExpr
.id
;
6048 if(var_new_child
== NULL
) {
6051 if(cltype91
>= var_new_child
->type
->table_size
) {
6054 var90
= var_new_child
->type
->type_table
[cltype91
] == idtype92
;
6057 if (unlikely(!var90
)) {
6058 var_class_name93
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6059 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name93
);
6060 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 904);
6064 nit__parser_prod___AAttrPropdef___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_block= on <self:AAttrPropdef>*/
6071 /* method parser_prod#AAttrPropdef#n_doc= for (self: AAttrPropdef, nullable ADoc) */
6072 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
6073 val
* var_node
/* var node: nullable ADoc */;
6074 val
* var
/* : null */;
6075 short int var1
/* : Bool */;
6076 short int var2
/* : Bool */;
6077 val
* var_other
/* var other: nullable Object */;
6078 short int var4
/* : Bool */;
6079 short int var5
/* : Bool */;
6081 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AAttrPropdef> */
6083 if (var_node
== NULL
) {
6084 var1
= 0; /* is null */
6086 var1
= 1; /* arg is null and recv is not */
6089 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
6092 var4
= ((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)>*/;
6103 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
6104 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
6112 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: AAttrPropdef, nullable TKwredef) */
6113 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
6114 val
* var_node
/* var node: nullable TKwredef */;
6115 val
* var
/* : null */;
6116 short int var1
/* : Bool */;
6117 short int var2
/* : Bool */;
6118 val
* var_other
/* var other: nullable Object */;
6119 short int var4
/* : Bool */;
6120 short int var5
/* : Bool */;
6122 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAttrPropdef> */
6124 if (var_node
== NULL
) {
6125 var1
= 0; /* is null */
6127 var1
= 1; /* arg is null and recv is not */
6130 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
6133 var4
= ((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)>*/;
6144 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
6145 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
6153 /* method parser_prod#AAttrPropdef#n_visibility= for (self: AAttrPropdef, nullable AVisibility) */
6154 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
6155 val
* var_node
/* var node: nullable AVisibility */;
6157 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAttrPropdef> */
6158 if (var_node
== NULL
) {
6159 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6160 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 922);
6163 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
6164 if (unlikely(var_node
== NULL
)) {
6165 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6166 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6169 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
6175 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: AAttrPropdef, TKwvar) */
6176 void nit__parser_prod___AAttrPropdef___n_kwvar_61d(val
* self
, val
* p0
) {
6177 val
* var_node
/* var node: TKwvar */;
6179 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AAttrPropdef> */
6181 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwvar> */
6182 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwvar> */
6188 /* method parser_prod#AAttrPropdef#n_id2= for (self: AAttrPropdef, TId) */
6189 void nit__parser_prod___AAttrPropdef___n_id2_61d(val
* self
, val
* p0
) {
6190 val
* var_node
/* var node: TId */;
6192 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_id2
].val
= var_node
; /* _n_id2 on <self:AAttrPropdef> */
6194 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6195 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6201 /* method parser_prod#AAttrPropdef#n_type= for (self: AAttrPropdef, nullable AType) */
6202 void nit__parser_prod___AAttrPropdef___n_type_61d(val
* self
, val
* p0
) {
6203 val
* var_node
/* var node: nullable AType */;
6204 val
* var
/* : null */;
6205 short int var1
/* : Bool */;
6206 short int var2
/* : Bool */;
6207 val
* var_other
/* var other: nullable Object */;
6208 short int var4
/* : Bool */;
6209 short int var5
/* : Bool */;
6211 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_type
].val
= var_node
; /* _n_type on <self:AAttrPropdef> */
6213 if (var_node
== NULL
) {
6214 var1
= 0; /* is null */
6216 var1
= 1; /* arg is null and recv is not */
6219 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
6222 var4
= ((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)>*/;
6233 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
6234 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
6242 /* method parser_prod#AAttrPropdef#n_expr= for (self: AAttrPropdef, nullable AExpr) */
6243 void nit__parser_prod___AAttrPropdef___n_expr_61d(val
* self
, val
* p0
) {
6244 val
* var_node
/* var node: nullable AExpr */;
6245 val
* var
/* : null */;
6246 short int var1
/* : Bool */;
6247 short int var2
/* : Bool */;
6248 val
* var_other
/* var other: nullable Object */;
6249 short int var4
/* : Bool */;
6250 short int var5
/* : Bool */;
6252 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrPropdef> */
6254 if (var_node
== NULL
) {
6255 var1
= 0; /* is null */
6257 var1
= 1; /* arg is null and recv is not */
6260 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6263 var4
= ((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)>*/;
6274 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6275 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6283 /* method parser_prod#AAttrPropdef#n_annotations= for (self: AAttrPropdef, nullable AAnnotations) */
6284 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
6285 val
* var_node
/* var node: nullable AAnnotations */;
6286 val
* var
/* : null */;
6287 short int var1
/* : Bool */;
6288 short int var2
/* : Bool */;
6289 val
* var_other
/* var other: nullable Object */;
6290 short int var4
/* : Bool */;
6291 short int var5
/* : Bool */;
6293 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAttrPropdef> */
6295 if (var_node
== NULL
) {
6296 var1
= 0; /* is null */
6298 var1
= 1; /* arg is null and recv is not */
6301 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
6304 var4
= ((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)>*/;
6315 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6316 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6324 /* method parser_prod#AAttrPropdef#n_block= for (self: AAttrPropdef, nullable AExpr) */
6325 void nit__parser_prod___AAttrPropdef___n_block_61d(val
* self
, val
* p0
) {
6326 val
* var_node
/* var node: nullable AExpr */;
6327 val
* var
/* : null */;
6328 short int var1
/* : Bool */;
6329 short int var2
/* : Bool */;
6330 val
* var_other
/* var other: nullable Object */;
6331 short int var4
/* : Bool */;
6332 short int var5
/* : Bool */;
6334 self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_block
].val
= var_node
; /* _n_block on <self:AAttrPropdef> */
6336 if (var_node
== NULL
) {
6337 var1
= 0; /* is null */
6339 var1
= 1; /* arg is null and recv is not */
6342 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6345 var4
= ((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)>*/;
6356 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6357 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6365 /* method parser_prod#AAttrPropdef#visit_all for (self: AAttrPropdef, Visitor) */
6366 void nit__parser_prod___AAttrPropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6367 val
* var_v
/* var v: Visitor */;
6368 val
* var
/* : nullable ADoc */;
6369 val
* var1
/* : nullable TKwredef */;
6370 val
* var2
/* : nullable AVisibility */;
6371 val
* var3
/* : TKwvar */;
6372 val
* var4
/* : TId */;
6373 val
* var5
/* : nullable AType */;
6374 val
* var6
/* : nullable AExpr */;
6375 val
* var7
/* : nullable AAnnotations */;
6376 val
* var8
/* : nullable AExpr */;
6378 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
6380 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6382 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6384 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6386 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
6388 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6390 var3
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
6391 if (unlikely(var3
== NULL
)) {
6392 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
6393 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 961);
6397 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6399 var4
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6400 if (unlikely(var4
== NULL
)) {
6401 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
6402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 962);
6406 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6408 var5
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6410 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6412 var6
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6414 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6416 var7
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6418 nit___nit__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6420 var8
= self
->attrs
[COLOR_nit__parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
6422 nit___nit__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6426 /* method parser_prod#AMainMethPropdef#init_amainmethpropdef for (self: AMainMethPropdef, nullable TKwredef, nullable AExpr) */
6427 void nit__parser_prod___AMainMethPropdef___init_amainmethpropdef(val
* self
, val
* p0
, val
* p1
) {
6428 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6429 val
* var_n_block
/* var n_block: nullable AExpr */;
6430 val
* var
/* : null */;
6431 short int var1
/* : Bool */;
6432 short int var2
/* : Bool */;
6433 val
* var_other
/* var other: nullable Object */;
6434 short int var4
/* : Bool */;
6435 short int var5
/* : Bool */;
6436 val
* var7
/* : null */;
6437 short int var8
/* : Bool */;
6438 short int var9
/* : Bool */;
6439 short int var11
/* : Bool */;
6440 short int var12
/* : Bool */;
6443 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMainMethPropdef> */
6445 if (var_n_kwredef
== NULL
) {
6446 var1
= 0; /* is null */
6448 var1
= 1; /* arg is null and recv is not */
6451 { /* Inline kernel#Object#!= (var_n_kwredef,var) on <var_n_kwredef:nullable TKwredef> */
6454 var4
= ((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)>*/;
6465 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6466 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6472 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMainMethPropdef> */
6474 if (var_n_block
== NULL
) {
6475 var8
= 0; /* is null */
6477 var8
= 1; /* arg is null and recv is not */
6480 { /* Inline kernel#Object#!= (var_n_block,var7) on <var_n_block:nullable AExpr> */
6483 var11
= ((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)>*/;
6488 RET_LABEL10
:(void)0;
6494 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
6495 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
6496 RET_LABEL13
:(void)0;
6503 /* method parser_prod#AMainMethPropdef#replace_child for (self: AMainMethPropdef, ANode, nullable ANode) */
6504 void nit__parser_prod___AMainMethPropdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6505 val
* var_old_child
/* var old_child: ANode */;
6506 val
* var_new_child
/* var new_child: nullable ANode */;
6507 val
* var
/* : nullable TKwredef */;
6508 short int var1
/* : Bool */;
6509 short int var2
/* : Bool */;
6510 val
* var_other
/* var other: nullable Object */;
6511 short int var4
/* : Bool */;
6512 short int var6
/* : Bool */;
6513 short int var7
/* : Bool */;
6516 const char* var_class_name
;
6517 val
* var8
/* : nullable AExpr */;
6518 short int var9
/* : Bool */;
6519 short int var10
/* : Bool */;
6520 short int var12
/* : Bool */;
6521 short int var14
/* : Bool */;
6522 short int var15
/* : Bool */;
6525 const char* var_class_name18
;
6528 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
6530 var1
= 0; /* <var_old_child:ANode> cannot be null */
6532 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwredef> */
6533 var_other
= var_old_child
;
6535 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwredef(TKwredef)> */
6536 var6
= var
== var_other
;
6549 /* <var_new_child:nullable ANode> isa nullable TKwredef */
6550 cltype
= type_nullable__nit__TKwredef
.color
;
6551 idtype
= type_nullable__nit__TKwredef
.id
;
6552 if(var_new_child
== NULL
) {
6555 if(cltype
>= var_new_child
->type
->table_size
) {
6558 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6561 if (unlikely(!var7
)) {
6562 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6563 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name
);
6564 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 984);
6568 nit__parser_prod___AMainMethPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_kwredef= on <self:AMainMethPropdef>*/
6573 var8
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
6575 var9
= 0; /* <var_old_child:ANode> cannot be null */
6577 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
6578 var_other
= var_old_child
;
6580 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
6581 var14
= var8
== var_other
;
6584 RET_LABEL13
:(void)0;
6589 RET_LABEL11
:(void)0;
6594 /* <var_new_child:nullable ANode> isa nullable AExpr */
6595 cltype16
= type_nullable__nit__AExpr
.color
;
6596 idtype17
= type_nullable__nit__AExpr
.id
;
6597 if(var_new_child
== NULL
) {
6600 if(cltype16
>= var_new_child
->type
->table_size
) {
6603 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6606 if (unlikely(!var15
)) {
6607 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6608 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
6609 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 988);
6613 nit__parser_prod___AMainMethPropdef___nit__parser_nodes__AMethPropdef__n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_block= on <self:AMainMethPropdef>*/
6620 /* method parser_prod#AMainMethPropdef#n_kwredef= for (self: AMainMethPropdef, nullable TKwredef) */
6621 void nit__parser_prod___AMainMethPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
6622 val
* var_node
/* var node: nullable TKwredef */;
6623 val
* var
/* : null */;
6624 short int var1
/* : Bool */;
6625 short int var2
/* : Bool */;
6626 val
* var_other
/* var other: nullable Object */;
6627 short int var4
/* : Bool */;
6628 short int var5
/* : Bool */;
6630 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMainMethPropdef> */
6632 if (var_node
== NULL
) {
6633 var1
= 0; /* is null */
6635 var1
= 1; /* arg is null and recv is not */
6638 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
6641 var4
= ((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)>*/;
6652 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
6653 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
6661 /* method parser_prod#AMainMethPropdef#n_block= for (self: AMainMethPropdef, nullable AExpr) */
6662 void nit__parser_prod___AMainMethPropdef___nit__parser_nodes__AMethPropdef__n_block_61d(val
* self
, val
* p0
) {
6663 val
* var_node
/* var node: nullable AExpr */;
6664 val
* var
/* : null */;
6665 short int var1
/* : Bool */;
6666 short int var2
/* : Bool */;
6667 val
* var_other
/* var other: nullable Object */;
6668 short int var4
/* : Bool */;
6669 short int var5
/* : Bool */;
6671 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMainMethPropdef> */
6673 if (var_node
== NULL
) {
6674 var1
= 0; /* is null */
6676 var1
= 1; /* arg is null and recv is not */
6679 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6682 var4
= ((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)>*/;
6693 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6694 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6702 /* method parser_prod#AMainMethPropdef#visit_all for (self: AMainMethPropdef, Visitor) */
6703 void nit__parser_prod___AMainMethPropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6704 val
* var_v
/* var v: Visitor */;
6705 val
* var
/* : nullable TKwredef */;
6706 val
* var1
/* : nullable AExpr */;
6708 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
6710 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6712 var1
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
6714 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6718 /* method parser_prod#ATypePropdef#init_atypepropdef for (self: ATypePropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwtype, nullable TClassid, nullable AType, nullable AAnnotations) */
6719 void nit__parser_prod___ATypePropdef___init_atypepropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
6720 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6721 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6722 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6723 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
6724 val
* var_n_id
/* var n_id: nullable TClassid */;
6725 val
* var_n_type
/* var n_type: nullable AType */;
6726 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6727 val
* var
/* : null */;
6728 short int var1
/* : Bool */;
6729 short int var2
/* : Bool */;
6730 val
* var_other
/* var other: nullable Object */;
6731 short int var4
/* : Bool */;
6732 short int var5
/* : Bool */;
6733 val
* var7
/* : null */;
6734 short int var8
/* : Bool */;
6735 short int var9
/* : Bool */;
6736 short int var11
/* : Bool */;
6737 short int var12
/* : Bool */;
6738 val
* var18
/* : null */;
6739 short int var19
/* : Bool */;
6740 short int var20
/* : Bool */;
6741 short int var22
/* : Bool */;
6742 short int var23
/* : Bool */;
6745 var_n_visibility
= p2
;
6749 var_n_annotations
= p6
;
6750 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ATypePropdef> */
6752 if (var_n_doc
== NULL
) {
6753 var1
= 0; /* is null */
6755 var1
= 1; /* arg is null and recv is not */
6758 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
6761 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)>*/;
6772 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
6773 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
6779 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ATypePropdef> */
6781 if (var_n_kwredef
== NULL
) {
6782 var8
= 0; /* is null */
6784 var8
= 1; /* arg is null and recv is not */
6787 { /* Inline kernel#Object#!= (var_n_kwredef,var7) on <var_n_kwredef:nullable TKwredef> */
6790 var11
= ((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)>*/;
6795 RET_LABEL10
:(void)0;
6801 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6802 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6803 RET_LABEL13
:(void)0;
6808 if (unlikely(var_n_visibility
== NULL
)) {
6809 PRINT_ERROR("Runtime error: %s", "Cast failed");
6810 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1026);
6813 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ATypePropdef> */
6814 if (var_n_visibility
== NULL
) {
6815 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6816 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1027);
6819 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
6820 if (unlikely(var_n_visibility
== NULL
)) {
6821 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6822 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6825 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
6826 RET_LABEL14
:(void)0;
6829 if (unlikely(var_n_kwtype
== NULL
)) {
6830 PRINT_ERROR("Runtime error: %s", "Cast failed");
6831 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1028);
6834 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ATypePropdef> */
6835 if (var_n_kwtype
== NULL
) {
6836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1029);
6840 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
6841 if (unlikely(var_n_kwtype
== NULL
)) {
6842 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6843 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6846 var_n_kwtype
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
6847 RET_LABEL15
:(void)0;
6850 if (unlikely(var_n_id
== NULL
)) {
6851 PRINT_ERROR("Runtime error: %s", "Cast failed");
6852 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1030);
6855 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_id
].val
= var_n_id
; /* _n_id on <self:ATypePropdef> */
6856 if (var_n_id
== NULL
) {
6857 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6858 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1031);
6861 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
6862 if (unlikely(var_n_id
== NULL
)) {
6863 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6864 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6867 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
6868 RET_LABEL16
:(void)0;
6871 if (unlikely(var_n_type
== NULL
)) {
6872 PRINT_ERROR("Runtime error: %s", "Cast failed");
6873 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1032);
6876 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_type
].val
= var_n_type
; /* _n_type on <self:ATypePropdef> */
6877 if (var_n_type
== NULL
) {
6878 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6879 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1033);
6882 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
6883 if (unlikely(var_n_type
== NULL
)) {
6884 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6885 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
6888 var_n_type
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
6889 RET_LABEL17
:(void)0;
6892 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATypePropdef> */
6894 if (var_n_annotations
== NULL
) {
6895 var19
= 0; /* is null */
6897 var19
= 1; /* arg is null and recv is not */
6900 { /* Inline kernel#Object#!= (var_n_annotations,var18) on <var_n_annotations:nullable AAnnotations> */
6903 var22
= ((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)>*/;
6908 RET_LABEL21
:(void)0;
6914 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6915 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6916 RET_LABEL24
:(void)0;
6923 /* method parser_prod#ATypePropdef#replace_child for (self: ATypePropdef, ANode, nullable ANode) */
6924 void nit__parser_prod___ATypePropdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6925 val
* var_old_child
/* var old_child: ANode */;
6926 val
* var_new_child
/* var new_child: nullable ANode */;
6927 val
* var
/* : nullable ADoc */;
6928 short int var1
/* : Bool */;
6929 short int var2
/* : Bool */;
6930 val
* var_other
/* var other: nullable Object */;
6931 short int var4
/* : Bool */;
6932 short int var6
/* : Bool */;
6933 short int var7
/* : Bool */;
6936 const char* var_class_name
;
6937 val
* var8
/* : nullable TKwredef */;
6938 short int var9
/* : Bool */;
6939 short int var10
/* : Bool */;
6940 short int var12
/* : Bool */;
6941 short int var14
/* : Bool */;
6942 short int var15
/* : Bool */;
6945 const char* var_class_name18
;
6946 val
* var19
/* : nullable AVisibility */;
6947 short int var20
/* : Bool */;
6948 short int var21
/* : Bool */;
6949 short int var23
/* : Bool */;
6950 short int var25
/* : Bool */;
6951 short int var26
/* : Bool */;
6954 const char* var_class_name29
;
6955 val
* var30
/* : TKwtype */;
6956 short int var31
/* : Bool */;
6957 short int var33
/* : Bool */;
6958 short int var35
/* : Bool */;
6959 short int var36
/* : Bool */;
6962 const char* var_class_name39
;
6963 val
* var40
/* : TClassid */;
6964 short int var41
/* : Bool */;
6965 short int var43
/* : Bool */;
6966 short int var45
/* : Bool */;
6967 short int var46
/* : Bool */;
6970 const char* var_class_name49
;
6971 val
* var50
/* : AType */;
6972 short int var51
/* : Bool */;
6973 short int var53
/* : Bool */;
6974 short int var55
/* : Bool */;
6975 short int var56
/* : Bool */;
6978 const char* var_class_name59
;
6979 val
* var60
/* : nullable AAnnotations */;
6980 short int var61
/* : Bool */;
6981 short int var62
/* : Bool */;
6982 short int var64
/* : Bool */;
6983 short int var66
/* : Bool */;
6984 short int var67
/* : Bool */;
6987 const char* var_class_name70
;
6990 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
6992 var1
= 0; /* <var_old_child:ANode> cannot be null */
6994 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
6995 var_other
= var_old_child
;
6997 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
6998 var6
= var
== var_other
;
7011 /* <var_new_child:nullable ANode> isa nullable ADoc */
7012 cltype
= type_nullable__nit__ADoc
.color
;
7013 idtype
= type_nullable__nit__ADoc
.id
;
7014 if(var_new_child
== NULL
) {
7017 if(cltype
>= var_new_child
->type
->table_size
) {
7020 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7023 if (unlikely(!var7
)) {
7024 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7025 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
7026 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1041);
7030 nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_doc= on <self:ATypePropdef>*/
7035 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
7037 var9
= 0; /* <var_old_child:ANode> cannot be null */
7039 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
7040 var_other
= var_old_child
;
7042 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
7043 var14
= var8
== var_other
;
7046 RET_LABEL13
:(void)0;
7051 RET_LABEL11
:(void)0;
7056 /* <var_new_child:nullable ANode> isa nullable TKwredef */
7057 cltype16
= type_nullable__nit__TKwredef
.color
;
7058 idtype17
= type_nullable__nit__TKwredef
.id
;
7059 if(var_new_child
== NULL
) {
7062 if(cltype16
>= var_new_child
->type
->table_size
) {
7065 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7068 if (unlikely(!var15
)) {
7069 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7070 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
7071 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1045);
7075 nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwredef= on <self:ATypePropdef>*/
7080 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
7081 if (var19
== NULL
) {
7082 var20
= 0; /* <var_old_child:ANode> cannot be null */
7084 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
7085 var_other
= var_old_child
;
7087 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
7088 var25
= var19
== var_other
;
7091 RET_LABEL24
:(void)0;
7096 RET_LABEL22
:(void)0;
7101 /* <var_new_child:nullable ANode> isa AVisibility */
7102 cltype27
= type_nit__AVisibility
.color
;
7103 idtype28
= type_nit__AVisibility
.id
;
7104 if(var_new_child
== NULL
) {
7107 if(cltype27
>= var_new_child
->type
->table_size
) {
7110 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
7113 if (unlikely(!var26
)) {
7114 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7115 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
7116 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1049);
7120 nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_visibility= on <self:ATypePropdef>*/
7125 var30
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
7126 if (unlikely(var30
== NULL
)) {
7127 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
7128 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1052);
7132 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwtype> */
7133 var_other
= var_old_child
;
7135 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwtype> */
7136 var35
= var30
== var_other
;
7139 RET_LABEL34
:(void)0;
7144 RET_LABEL32
:(void)0;
7148 /* <var_new_child:nullable ANode> isa TKwtype */
7149 cltype37
= type_nit__TKwtype
.color
;
7150 idtype38
= type_nit__TKwtype
.id
;
7151 if(var_new_child
== NULL
) {
7154 if(cltype37
>= var_new_child
->type
->table_size
) {
7157 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
7160 if (unlikely(!var36
)) {
7161 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7162 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name39
);
7163 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1053);
7167 nit__parser_prod___ATypePropdef___n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwtype= on <self:ATypePropdef>*/
7172 var40
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_id
].val
; /* _n_id on <self:ATypePropdef> */
7173 if (unlikely(var40
== NULL
)) {
7174 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7175 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1056);
7179 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:TClassid> */
7180 var_other
= var_old_child
;
7182 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:TClassid> */
7183 var45
= var40
== var_other
;
7186 RET_LABEL44
:(void)0;
7191 RET_LABEL42
:(void)0;
7195 /* <var_new_child:nullable ANode> isa TClassid */
7196 cltype47
= type_nit__TClassid
.color
;
7197 idtype48
= type_nit__TClassid
.id
;
7198 if(var_new_child
== NULL
) {
7201 if(cltype47
>= var_new_child
->type
->table_size
) {
7204 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
7207 if (unlikely(!var46
)) {
7208 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7209 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name49
);
7210 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1057);
7214 nit__parser_prod___ATypePropdef___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_id= on <self:ATypePropdef>*/
7219 var50
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
7220 if (unlikely(var50
== NULL
)) {
7221 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
7222 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1060);
7226 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:AType> */
7227 var_other
= var_old_child
;
7229 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:AType> */
7230 var55
= var50
== var_other
;
7233 RET_LABEL54
:(void)0;
7238 RET_LABEL52
:(void)0;
7242 /* <var_new_child:nullable ANode> isa AType */
7243 cltype57
= type_nit__AType
.color
;
7244 idtype58
= type_nit__AType
.id
;
7245 if(var_new_child
== NULL
) {
7248 if(cltype57
>= var_new_child
->type
->table_size
) {
7251 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
7254 if (unlikely(!var56
)) {
7255 var_class_name59
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7256 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name59
);
7257 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1061);
7261 nit__parser_prod___ATypePropdef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_type= on <self:ATypePropdef>*/
7266 var60
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
7267 if (var60
== NULL
) {
7268 var61
= 0; /* <var_old_child:ANode> cannot be null */
7270 { /* Inline kernel#Object#== (var60,var_old_child) on <var60:nullable AAnnotations> */
7271 var_other
= var_old_child
;
7273 { /* Inline kernel#Object#is_same_instance (var60,var_other) on <var60:nullable AAnnotations(AAnnotations)> */
7274 var66
= var60
== var_other
;
7277 RET_LABEL65
:(void)0;
7282 RET_LABEL63
:(void)0;
7287 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7288 cltype68
= type_nullable__nit__AAnnotations
.color
;
7289 idtype69
= type_nullable__nit__AAnnotations
.id
;
7290 if(var_new_child
== NULL
) {
7293 if(cltype68
>= var_new_child
->type
->table_size
) {
7296 var67
= var_new_child
->type
->type_table
[cltype68
] == idtype69
;
7299 if (unlikely(!var67
)) {
7300 var_class_name70
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7301 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name70
);
7302 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1065);
7306 nit__parser_prod___ATypePropdef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_annotations= on <self:ATypePropdef>*/
7313 /* method parser_prod#ATypePropdef#n_doc= for (self: ATypePropdef, nullable ADoc) */
7314 void nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
7315 val
* var_node
/* var node: nullable ADoc */;
7316 val
* var
/* : null */;
7317 short int var1
/* : Bool */;
7318 short int var2
/* : Bool */;
7319 val
* var_other
/* var other: nullable Object */;
7320 short int var4
/* : Bool */;
7321 short int var5
/* : Bool */;
7323 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:ATypePropdef> */
7325 if (var_node
== NULL
) {
7326 var1
= 0; /* is null */
7328 var1
= 1; /* arg is null and recv is not */
7331 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
7334 var4
= ((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)>*/;
7345 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
7346 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
7354 /* method parser_prod#ATypePropdef#n_kwredef= for (self: ATypePropdef, nullable TKwredef) */
7355 void nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
7356 val
* var_node
/* var node: nullable TKwredef */;
7357 val
* var
/* : null */;
7358 short int var1
/* : Bool */;
7359 short int var2
/* : Bool */;
7360 val
* var_other
/* var other: nullable Object */;
7361 short int var4
/* : Bool */;
7362 short int var5
/* : Bool */;
7364 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ATypePropdef> */
7366 if (var_node
== NULL
) {
7367 var1
= 0; /* is null */
7369 var1
= 1; /* arg is null and recv is not */
7372 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
7375 var4
= ((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)>*/;
7386 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
7387 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
7395 /* method parser_prod#ATypePropdef#n_visibility= for (self: ATypePropdef, nullable AVisibility) */
7396 void nit__parser_prod___ATypePropdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
7397 val
* var_node
/* var node: nullable AVisibility */;
7399 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:ATypePropdef> */
7400 if (var_node
== NULL
) {
7401 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1083);
7405 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
7406 if (unlikely(var_node
== NULL
)) {
7407 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7408 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7411 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
7417 /* method parser_prod#ATypePropdef#n_kwtype= for (self: ATypePropdef, TKwtype) */
7418 void nit__parser_prod___ATypePropdef___n_kwtype_61d(val
* self
, val
* p0
) {
7419 val
* var_node
/* var node: TKwtype */;
7421 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ATypePropdef> */
7423 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
7424 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
7430 /* method parser_prod#ATypePropdef#n_id= for (self: ATypePropdef, TClassid) */
7431 void nit__parser_prod___ATypePropdef___n_id_61d(val
* self
, val
* p0
) {
7432 val
* var_node
/* var node: TClassid */;
7434 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_id
].val
= var_node
; /* _n_id on <self:ATypePropdef> */
7436 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
7437 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
7443 /* method parser_prod#ATypePropdef#n_type= for (self: ATypePropdef, AType) */
7444 void nit__parser_prod___ATypePropdef___n_type_61d(val
* self
, val
* p0
) {
7445 val
* var_node
/* var node: AType */;
7447 self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_type
].val
= var_node
; /* _n_type on <self:ATypePropdef> */
7449 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
7450 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
7456 /* method parser_prod#ATypePropdef#n_annotations= for (self: ATypePropdef, nullable AAnnotations) */
7457 void nit__parser_prod___ATypePropdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7458 val
* var_node
/* var node: nullable AAnnotations */;
7459 val
* var
/* : null */;
7460 short int var1
/* : Bool */;
7461 short int var2
/* : Bool */;
7462 val
* var_other
/* var other: nullable Object */;
7463 short int var4
/* : Bool */;
7464 short int var5
/* : Bool */;
7466 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATypePropdef> */
7468 if (var_node
== NULL
) {
7469 var1
= 0; /* is null */
7471 var1
= 1; /* arg is null and recv is not */
7474 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
7477 var4
= ((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)>*/;
7488 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7489 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7497 /* method parser_prod#ATypePropdef#visit_all for (self: ATypePropdef, Visitor) */
7498 void nit__parser_prod___ATypePropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7499 val
* var_v
/* var v: Visitor */;
7500 val
* var
/* : nullable ADoc */;
7501 val
* var1
/* : nullable TKwredef */;
7502 val
* var2
/* : nullable AVisibility */;
7503 val
* var3
/* : TKwtype */;
7504 val
* var4
/* : TClassid */;
7505 val
* var5
/* : AType */;
7506 val
* var6
/* : nullable AAnnotations */;
7508 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
7510 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7512 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
7514 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7516 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
7518 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7520 var3
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
7521 if (unlikely(var3
== NULL
)) {
7522 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
7523 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1112);
7527 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7529 var4
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_id
].val
; /* _n_id on <self:ATypePropdef> */
7530 if (unlikely(var4
== NULL
)) {
7531 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7532 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1113);
7536 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7538 var5
= self
->attrs
[COLOR_nit__parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
7539 if (unlikely(var5
== NULL
)) {
7540 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
7541 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1114);
7545 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7547 var6
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
7549 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7553 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: AMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable TKwinit, nullable TKwnew, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExternCalls, nullable AExternCodeBlock, nullable AExpr) */
7554 void nit__parser_prod___AMethPropdef___init_amethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
, val
* p11
) {
7555 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7556 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7557 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7558 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
7559 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
7560 val
* var_n_kwnew
/* var n_kwnew: nullable TKwnew */;
7561 val
* var_n_methid
/* var n_methid: nullable AMethid */;
7562 val
* var_n_signature
/* var n_signature: nullable ASignature */;
7563 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7564 val
* var_n_extern_calls
/* var n_extern_calls: nullable AExternCalls */;
7565 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
7566 val
* var_n_block
/* var n_block: nullable AExpr */;
7567 val
* var
/* : null */;
7568 short int var1
/* : Bool */;
7569 short int var2
/* : Bool */;
7570 val
* var_other
/* var other: nullable Object */;
7571 short int var4
/* : Bool */;
7572 short int var5
/* : Bool */;
7573 val
* var7
/* : null */;
7574 short int var8
/* : Bool */;
7575 short int var9
/* : Bool */;
7576 short int var11
/* : Bool */;
7577 short int var12
/* : Bool */;
7578 val
* var15
/* : null */;
7579 short int var16
/* : Bool */;
7580 short int var17
/* : Bool */;
7581 short int var19
/* : Bool */;
7582 short int var20
/* : Bool */;
7583 val
* var22
/* : null */;
7584 short int var23
/* : Bool */;
7585 short int var24
/* : Bool */;
7586 short int var26
/* : Bool */;
7587 short int var27
/* : Bool */;
7588 val
* var29
/* : null */;
7589 short int var30
/* : Bool */;
7590 short int var31
/* : Bool */;
7591 short int var33
/* : Bool */;
7592 short int var34
/* : Bool */;
7593 val
* var36
/* : null */;
7594 short int var37
/* : Bool */;
7595 short int var38
/* : Bool */;
7596 short int var40
/* : Bool */;
7597 short int var41
/* : Bool */;
7598 val
* var44
/* : null */;
7599 short int var45
/* : Bool */;
7600 short int var46
/* : Bool */;
7601 short int var48
/* : Bool */;
7602 short int var49
/* : Bool */;
7603 val
* var51
/* : null */;
7604 short int var52
/* : Bool */;
7605 short int var53
/* : Bool */;
7606 short int var55
/* : Bool */;
7607 short int var56
/* : Bool */;
7608 val
* var58
/* : null */;
7609 short int var59
/* : Bool */;
7610 short int var60
/* : Bool */;
7611 short int var62
/* : Bool */;
7612 short int var63
/* : Bool */;
7613 val
* var65
/* : null */;
7614 short int var66
/* : Bool */;
7615 short int var67
/* : Bool */;
7616 short int var69
/* : Bool */;
7617 short int var70
/* : Bool */;
7620 var_n_visibility
= p2
;
7625 var_n_signature
= p7
;
7626 var_n_annotations
= p8
;
7627 var_n_extern_calls
= p9
;
7628 var_n_extern_code_block
= p10
;
7630 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AMethPropdef> */
7632 if (var_n_doc
== NULL
) {
7633 var1
= 0; /* is null */
7635 var1
= 1; /* arg is null and recv is not */
7638 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
7641 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)>*/;
7652 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
7653 var_n_doc
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
7659 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMethPropdef> */
7661 if (var_n_kwredef
== NULL
) {
7662 var8
= 0; /* is null */
7664 var8
= 1; /* arg is null and recv is not */
7667 { /* Inline kernel#Object#!= (var_n_kwredef,var7) on <var_n_kwredef:nullable TKwredef> */
7670 var11
= ((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)>*/;
7675 RET_LABEL10
:(void)0;
7681 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7682 var_n_kwredef
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7683 RET_LABEL13
:(void)0;
7688 if (unlikely(var_n_visibility
== NULL
)) {
7689 PRINT_ERROR("Runtime error: %s", "Cast failed");
7690 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1138);
7693 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AMethPropdef> */
7694 if (var_n_visibility
== NULL
) {
7695 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7696 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1139);
7699 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
7700 if (unlikely(var_n_visibility
== NULL
)) {
7701 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7702 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7705 var_n_visibility
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
7706 RET_LABEL14
:(void)0;
7709 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AMethPropdef> */
7711 if (var_n_kwmeth
== NULL
) {
7712 var16
= 0; /* is null */
7714 var16
= 1; /* arg is null and recv is not */
7717 { /* Inline kernel#Object#!= (var_n_kwmeth,var15) on <var_n_kwmeth:nullable TKwmeth> */
7720 var19
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwmeth
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwmeth
, var_other
) /* == on <var_n_kwmeth:nullable TKwmeth(TKwmeth)>*/;
7725 RET_LABEL18
:(void)0;
7731 { /* Inline parser_nodes#ANode#parent= (var_n_kwmeth,self) on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
7732 var_n_kwmeth
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
7733 RET_LABEL21
:(void)0;
7738 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AMethPropdef> */
7740 if (var_n_kwinit
== NULL
) {
7741 var23
= 0; /* is null */
7743 var23
= 1; /* arg is null and recv is not */
7746 { /* Inline kernel#Object#!= (var_n_kwinit,var22) on <var_n_kwinit:nullable TKwinit> */
7749 var26
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwinit
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwinit
, var_other
) /* == on <var_n_kwinit:nullable TKwinit(TKwinit)>*/;
7754 RET_LABEL25
:(void)0;
7760 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit(TKwinit)> */
7761 var_n_kwinit
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit(TKwinit)> */
7762 RET_LABEL28
:(void)0;
7767 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwnew
].val
= var_n_kwnew
; /* _n_kwnew on <self:AMethPropdef> */
7769 if (var_n_kwnew
== NULL
) {
7770 var30
= 0; /* is null */
7772 var30
= 1; /* arg is null and recv is not */
7775 { /* Inline kernel#Object#!= (var_n_kwnew,var29) on <var_n_kwnew:nullable TKwnew> */
7778 var33
= ((short int (*)(val
* self
, val
* p0
))(var_n_kwnew
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_kwnew
, var_other
) /* == on <var_n_kwnew:nullable TKwnew(TKwnew)>*/;
7783 RET_LABEL32
:(void)0;
7789 { /* Inline parser_nodes#ANode#parent= (var_n_kwnew,self) on <var_n_kwnew:nullable TKwnew(TKwnew)> */
7790 var_n_kwnew
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnew:nullable TKwnew(TKwnew)> */
7791 RET_LABEL35
:(void)0;
7796 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AMethPropdef> */
7798 if (var_n_methid
== NULL
) {
7799 var37
= 0; /* is null */
7801 var37
= 1; /* arg is null and recv is not */
7804 { /* Inline kernel#Object#!= (var_n_methid,var36) on <var_n_methid:nullable AMethid> */
7807 var40
= ((short int (*)(val
* self
, val
* p0
))(var_n_methid
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_methid
, var_other
) /* == on <var_n_methid:nullable AMethid(AMethid)>*/;
7812 RET_LABEL39
:(void)0;
7818 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid(AMethid)> */
7819 var_n_methid
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid(AMethid)> */
7820 RET_LABEL42
:(void)0;
7825 if (unlikely(var_n_signature
== NULL
)) {
7826 PRINT_ERROR("Runtime error: %s", "Cast failed");
7827 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1148);
7830 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AMethPropdef> */
7831 if (var_n_signature
== NULL
) {
7832 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7833 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1149);
7836 { /* Inline parser_nodes#ANode#parent= (var_n_signature,self) on <var_n_signature:nullable ASignature> */
7837 if (unlikely(var_n_signature
== NULL
)) {
7838 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7839 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
7842 var_n_signature
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_signature:nullable ASignature> */
7843 RET_LABEL43
:(void)0;
7846 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AMethPropdef> */
7848 if (var_n_annotations
== NULL
) {
7849 var45
= 0; /* is null */
7851 var45
= 1; /* arg is null and recv is not */
7854 { /* Inline kernel#Object#!= (var_n_annotations,var44) on <var_n_annotations:nullable AAnnotations> */
7857 var48
= ((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)>*/;
7862 RET_LABEL47
:(void)0;
7868 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7869 var_n_annotations
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7870 RET_LABEL50
:(void)0;
7875 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_calls
].val
= var_n_extern_calls
; /* _n_extern_calls on <self:AMethPropdef> */
7877 if (var_n_extern_calls
== NULL
) {
7878 var52
= 0; /* is null */
7880 var52
= 1; /* arg is null and recv is not */
7883 { /* Inline kernel#Object#!= (var_n_extern_calls,var51) on <var_n_extern_calls:nullable AExternCalls> */
7886 var55
= ((short int (*)(val
* self
, val
* p0
))(var_n_extern_calls
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_extern_calls
, var_other
) /* == on <var_n_extern_calls:nullable AExternCalls(AExternCalls)>*/;
7891 RET_LABEL54
:(void)0;
7897 { /* Inline parser_nodes#ANode#parent= (var_n_extern_calls,self) on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
7898 var_n_extern_calls
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
7899 RET_LABEL57
:(void)0;
7904 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AMethPropdef> */
7906 if (var_n_extern_code_block
== NULL
) {
7907 var59
= 0; /* is null */
7909 var59
= 1; /* arg is null and recv is not */
7912 { /* Inline kernel#Object#!= (var_n_extern_code_block,var58) on <var_n_extern_code_block:nullable AExternCodeBlock> */
7915 var62
= ((short int (*)(val
* self
, val
* p0
))(var_n_extern_code_block
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
) /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
7920 RET_LABEL61
:(void)0;
7926 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
7927 var_n_extern_code_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
7928 RET_LABEL64
:(void)0;
7933 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMethPropdef> */
7935 if (var_n_block
== NULL
) {
7936 var66
= 0; /* is null */
7938 var66
= 1; /* arg is null and recv is not */
7941 { /* Inline kernel#Object#!= (var_n_block,var65) on <var_n_block:nullable AExpr> */
7944 var69
= ((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)>*/;
7949 RET_LABEL68
:(void)0;
7955 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
7956 var_n_block
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
7957 RET_LABEL71
:(void)0;
7964 /* method parser_prod#AMethPropdef#replace_child for (self: AMethPropdef, ANode, nullable ANode) */
7965 void nit__parser_prod___AMethPropdef___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7966 val
* var_old_child
/* var old_child: ANode */;
7967 val
* var_new_child
/* var new_child: nullable ANode */;
7968 val
* var
/* : nullable ADoc */;
7969 short int var1
/* : Bool */;
7970 short int var2
/* : Bool */;
7971 val
* var_other
/* var other: nullable Object */;
7972 short int var4
/* : Bool */;
7973 short int var6
/* : Bool */;
7974 short int var7
/* : Bool */;
7977 const char* var_class_name
;
7978 val
* var8
/* : nullable TKwredef */;
7979 short int var9
/* : Bool */;
7980 short int var10
/* : Bool */;
7981 short int var12
/* : Bool */;
7982 short int var14
/* : Bool */;
7983 short int var15
/* : Bool */;
7986 const char* var_class_name18
;
7987 val
* var19
/* : nullable AVisibility */;
7988 short int var20
/* : Bool */;
7989 short int var21
/* : Bool */;
7990 short int var23
/* : Bool */;
7991 short int var25
/* : Bool */;
7992 short int var26
/* : Bool */;
7995 const char* var_class_name29
;
7996 val
* var30
/* : nullable TKwmeth */;
7997 short int var31
/* : Bool */;
7998 short int var32
/* : Bool */;
7999 short int var34
/* : Bool */;
8000 short int var36
/* : Bool */;
8001 short int var37
/* : Bool */;
8004 const char* var_class_name40
;
8005 val
* var41
/* : nullable TKwinit */;
8006 short int var42
/* : Bool */;
8007 short int var43
/* : Bool */;
8008 short int var45
/* : Bool */;
8009 short int var47
/* : Bool */;
8010 short int var48
/* : Bool */;
8013 const char* var_class_name51
;
8014 val
* var52
/* : nullable TKwnew */;
8015 short int var53
/* : Bool */;
8016 short int var54
/* : Bool */;
8017 short int var56
/* : Bool */;
8018 short int var58
/* : Bool */;
8019 short int var59
/* : Bool */;
8022 const char* var_class_name62
;
8023 val
* var63
/* : nullable AMethid */;
8024 short int var64
/* : Bool */;
8025 short int var65
/* : Bool */;
8026 short int var67
/* : Bool */;
8027 short int var69
/* : Bool */;
8028 short int var70
/* : Bool */;
8031 const char* var_class_name73
;
8032 val
* var74
/* : nullable ASignature */;
8033 short int var75
/* : Bool */;
8034 short int var76
/* : Bool */;
8035 short int var78
/* : Bool */;
8036 short int var80
/* : Bool */;
8037 short int var81
/* : Bool */;
8040 const char* var_class_name84
;
8041 val
* var85
/* : nullable AAnnotations */;
8042 short int var86
/* : Bool */;
8043 short int var87
/* : Bool */;
8044 short int var89
/* : Bool */;
8045 short int var91
/* : Bool */;
8046 short int var92
/* : Bool */;
8049 const char* var_class_name95
;
8050 val
* var96
/* : nullable AExternCalls */;
8051 short int var97
/* : Bool */;
8052 short int var98
/* : Bool */;
8053 short int var100
/* : Bool */;
8054 short int var102
/* : Bool */;
8055 short int var103
/* : Bool */;
8058 const char* var_class_name106
;
8059 val
* var107
/* : nullable AExternCodeBlock */;
8060 short int var108
/* : Bool */;
8061 short int var109
/* : Bool */;
8062 short int var111
/* : Bool */;
8063 short int var113
/* : Bool */;
8064 short int var114
/* : Bool */;
8067 const char* var_class_name117
;
8068 val
* var118
/* : nullable AExpr */;
8069 short int var119
/* : Bool */;
8070 short int var120
/* : Bool */;
8071 short int var122
/* : Bool */;
8072 short int var124
/* : Bool */;
8073 short int var125
/* : Bool */;
8076 const char* var_class_name128
;
8079 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
8081 var1
= 0; /* <var_old_child:ANode> cannot be null */
8083 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
8084 var_other
= var_old_child
;
8086 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
8087 var6
= var
== var_other
;
8100 /* <var_new_child:nullable ANode> isa nullable ADoc */
8101 cltype
= type_nullable__nit__ADoc
.color
;
8102 idtype
= type_nullable__nit__ADoc
.id
;
8103 if(var_new_child
== NULL
) {
8106 if(cltype
>= var_new_child
->type
->table_size
) {
8109 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8112 if (unlikely(!var7
)) {
8113 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8114 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
8115 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1163);
8119 nit__parser_prod___AMethPropdef___nit__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_doc= on <self:AMethPropdef>*/
8124 var8
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
8126 var9
= 0; /* <var_old_child:ANode> cannot be null */
8128 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
8129 var_other
= var_old_child
;
8131 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
8132 var14
= var8
== var_other
;
8135 RET_LABEL13
:(void)0;
8140 RET_LABEL11
:(void)0;
8145 /* <var_new_child:nullable ANode> isa nullable TKwredef */
8146 cltype16
= type_nullable__nit__TKwredef
.color
;
8147 idtype17
= type_nullable__nit__TKwredef
.id
;
8148 if(var_new_child
== NULL
) {
8151 if(cltype16
>= var_new_child
->type
->table_size
) {
8154 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8157 if (unlikely(!var15
)) {
8158 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8159 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
8160 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1167);
8164 ((void (*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_nit__parser_nodes__ADefinition__n_kwredef_61d
]))(self
, var_new_child
) /* n_kwredef= on <self:AMethPropdef>*/;
8169 var19
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
8170 if (var19
== NULL
) {
8171 var20
= 0; /* <var_old_child:ANode> cannot be null */
8173 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
8174 var_other
= var_old_child
;
8176 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
8177 var25
= var19
== var_other
;
8180 RET_LABEL24
:(void)0;
8185 RET_LABEL22
:(void)0;
8190 /* <var_new_child:nullable ANode> isa AVisibility */
8191 cltype27
= type_nit__AVisibility
.color
;
8192 idtype28
= type_nit__AVisibility
.id
;
8193 if(var_new_child
== NULL
) {
8196 if(cltype27
>= var_new_child
->type
->table_size
) {
8199 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
8202 if (unlikely(!var26
)) {
8203 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8204 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
8205 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1171);
8209 nit__parser_prod___AMethPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_visibility= on <self:AMethPropdef>*/
8214 var30
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AMethPropdef> */
8215 if (var30
== NULL
) {
8216 var31
= 0; /* <var_old_child:ANode> cannot be null */
8218 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable TKwmeth> */
8219 var_other
= var_old_child
;
8221 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable TKwmeth(TKwmeth)> */
8222 var36
= var30
== var_other
;
8225 RET_LABEL35
:(void)0;
8230 RET_LABEL33
:(void)0;
8235 /* <var_new_child:nullable ANode> isa nullable TKwmeth */
8236 cltype38
= type_nullable__nit__TKwmeth
.color
;
8237 idtype39
= type_nullable__nit__TKwmeth
.id
;
8238 if(var_new_child
== NULL
) {
8241 if(cltype38
>= var_new_child
->type
->table_size
) {
8244 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
8247 if (unlikely(!var37
)) {
8248 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8249 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwmeth", var_class_name40
);
8250 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1175);
8254 nit__parser_prod___AMethPropdef___n_kwmeth_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwmeth= on <self:AMethPropdef>*/
8259 var41
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AMethPropdef> */
8260 if (var41
== NULL
) {
8261 var42
= 0; /* <var_old_child:ANode> cannot be null */
8263 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TKwinit> */
8264 var_other
= var_old_child
;
8266 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TKwinit(TKwinit)> */
8267 var47
= var41
== var_other
;
8270 RET_LABEL46
:(void)0;
8275 RET_LABEL44
:(void)0;
8280 /* <var_new_child:nullable ANode> isa nullable TKwinit */
8281 cltype49
= type_nullable__nit__TKwinit
.color
;
8282 idtype50
= type_nullable__nit__TKwinit
.id
;
8283 if(var_new_child
== NULL
) {
8286 if(cltype49
>= var_new_child
->type
->table_size
) {
8289 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
8292 if (unlikely(!var48
)) {
8293 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8294 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwinit", var_class_name51
);
8295 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1179);
8299 nit__parser_prod___AMethPropdef___n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwinit= on <self:AMethPropdef>*/
8304 var52
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwnew
].val
; /* _n_kwnew on <self:AMethPropdef> */
8305 if (var52
== NULL
) {
8306 var53
= 0; /* <var_old_child:ANode> cannot be null */
8308 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable TKwnew> */
8309 var_other
= var_old_child
;
8311 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable TKwnew(TKwnew)> */
8312 var58
= var52
== var_other
;
8315 RET_LABEL57
:(void)0;
8320 RET_LABEL55
:(void)0;
8325 /* <var_new_child:nullable ANode> isa nullable TKwnew */
8326 cltype60
= type_nullable__nit__TKwnew
.color
;
8327 idtype61
= type_nullable__nit__TKwnew
.id
;
8328 if(var_new_child
== NULL
) {
8331 if(cltype60
>= var_new_child
->type
->table_size
) {
8334 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
8337 if (unlikely(!var59
)) {
8338 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8339 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnew", var_class_name62
);
8340 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1183);
8344 nit__parser_prod___AMethPropdef___n_kwnew_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwnew= on <self:AMethPropdef>*/
8349 var63
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
8350 if (var63
== NULL
) {
8351 var64
= 0; /* <var_old_child:ANode> cannot be null */
8353 { /* Inline kernel#Object#== (var63,var_old_child) on <var63:nullable AMethid> */
8354 var_other
= var_old_child
;
8356 { /* Inline kernel#Object#is_same_instance (var63,var_other) on <var63:nullable AMethid(AMethid)> */
8357 var69
= var63
== var_other
;
8360 RET_LABEL68
:(void)0;
8365 RET_LABEL66
:(void)0;
8370 /* <var_new_child:nullable ANode> isa nullable AMethid */
8371 cltype71
= type_nullable__nit__AMethid
.color
;
8372 idtype72
= type_nullable__nit__AMethid
.id
;
8373 if(var_new_child
== NULL
) {
8376 if(cltype71
>= var_new_child
->type
->table_size
) {
8379 var70
= var_new_child
->type
->type_table
[cltype71
] == idtype72
;
8382 if (unlikely(!var70
)) {
8383 var_class_name73
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8384 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AMethid", var_class_name73
);
8385 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1187);
8389 nit__parser_prod___AMethPropdef___n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_methid= on <self:AMethPropdef>*/
8394 var74
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
8395 if (var74
== NULL
) {
8396 var75
= 0; /* <var_old_child:ANode> cannot be null */
8398 { /* Inline kernel#Object#== (var74,var_old_child) on <var74:nullable ASignature> */
8399 var_other
= var_old_child
;
8401 { /* Inline kernel#Object#is_same_instance (var74,var_other) on <var74:nullable ASignature(ASignature)> */
8402 var80
= var74
== var_other
;
8405 RET_LABEL79
:(void)0;
8410 RET_LABEL77
:(void)0;
8415 /* <var_new_child:nullable ANode> isa ASignature */
8416 cltype82
= type_nit__ASignature
.color
;
8417 idtype83
= type_nit__ASignature
.id
;
8418 if(var_new_child
== NULL
) {
8421 if(cltype82
>= var_new_child
->type
->table_size
) {
8424 var81
= var_new_child
->type
->type_table
[cltype82
] == idtype83
;
8427 if (unlikely(!var81
)) {
8428 var_class_name84
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8429 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "ASignature", var_class_name84
);
8430 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1191);
8434 nit__parser_prod___AMethPropdef___n_signature_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_signature= on <self:AMethPropdef>*/
8439 var85
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AMethPropdef> */
8440 if (var85
== NULL
) {
8441 var86
= 0; /* <var_old_child:ANode> cannot be null */
8443 { /* Inline kernel#Object#== (var85,var_old_child) on <var85:nullable AAnnotations> */
8444 var_other
= var_old_child
;
8446 { /* Inline kernel#Object#is_same_instance (var85,var_other) on <var85:nullable AAnnotations(AAnnotations)> */
8447 var91
= var85
== var_other
;
8450 RET_LABEL90
:(void)0;
8455 RET_LABEL88
:(void)0;
8460 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8461 cltype93
= type_nullable__nit__AAnnotations
.color
;
8462 idtype94
= type_nullable__nit__AAnnotations
.id
;
8463 if(var_new_child
== NULL
) {
8466 if(cltype93
>= var_new_child
->type
->table_size
) {
8469 var92
= var_new_child
->type
->type_table
[cltype93
] == idtype94
;
8472 if (unlikely(!var92
)) {
8473 var_class_name95
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8474 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name95
);
8475 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1195);
8479 nit__parser_prod___AMethPropdef___nit__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_annotations= on <self:AMethPropdef>*/
8484 var96
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AMethPropdef> */
8485 if (var96
== NULL
) {
8486 var97
= 0; /* <var_old_child:ANode> cannot be null */
8488 { /* Inline kernel#Object#== (var96,var_old_child) on <var96:nullable AExternCalls> */
8489 var_other
= var_old_child
;
8491 { /* Inline kernel#Object#is_same_instance (var96,var_other) on <var96:nullable AExternCalls(AExternCalls)> */
8492 var102
= var96
== var_other
;
8495 RET_LABEL101
:(void)0;
8500 RET_LABEL99
:(void)0;
8505 /* <var_new_child:nullable ANode> isa nullable AExternCalls */
8506 cltype104
= type_nullable__nit__AExternCalls
.color
;
8507 idtype105
= type_nullable__nit__AExternCalls
.id
;
8508 if(var_new_child
== NULL
) {
8511 if(cltype104
>= var_new_child
->type
->table_size
) {
8514 var103
= var_new_child
->type
->type_table
[cltype104
] == idtype105
;
8517 if (unlikely(!var103
)) {
8518 var_class_name106
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8519 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCalls", var_class_name106
);
8520 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1199);
8524 nit__parser_prod___AMethPropdef___n_extern_calls_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_calls= on <self:AMethPropdef>*/
8529 var107
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AMethPropdef> */
8530 if (var107
== NULL
) {
8531 var108
= 0; /* <var_old_child:ANode> cannot be null */
8533 { /* Inline kernel#Object#== (var107,var_old_child) on <var107:nullable AExternCodeBlock> */
8534 var_other
= var_old_child
;
8536 { /* Inline kernel#Object#is_same_instance (var107,var_other) on <var107:nullable AExternCodeBlock(AExternCodeBlock)> */
8537 var113
= var107
== var_other
;
8540 RET_LABEL112
:(void)0;
8545 RET_LABEL110
:(void)0;
8550 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
8551 cltype115
= type_nullable__nit__AExternCodeBlock
.color
;
8552 idtype116
= type_nullable__nit__AExternCodeBlock
.id
;
8553 if(var_new_child
== NULL
) {
8556 if(cltype115
>= var_new_child
->type
->table_size
) {
8559 var114
= var_new_child
->type
->type_table
[cltype115
] == idtype116
;
8562 if (unlikely(!var114
)) {
8563 var_class_name117
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8564 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name117
);
8565 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1203);
8569 nit__parser_prod___AMethPropdef___n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_code_block= on <self:AMethPropdef>*/
8574 var118
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMethPropdef> */
8575 if (var118
== NULL
) {
8576 var119
= 0; /* <var_old_child:ANode> cannot be null */
8578 { /* Inline kernel#Object#== (var118,var_old_child) on <var118:nullable AExpr> */
8579 var_other
= var_old_child
;
8581 { /* Inline kernel#Object#is_same_instance (var118,var_other) on <var118:nullable AExpr(AExpr)> */
8582 var124
= var118
== var_other
;
8585 RET_LABEL123
:(void)0;
8590 RET_LABEL121
:(void)0;
8595 /* <var_new_child:nullable ANode> isa nullable AExpr */
8596 cltype126
= type_nullable__nit__AExpr
.color
;
8597 idtype127
= type_nullable__nit__AExpr
.id
;
8598 if(var_new_child
== NULL
) {
8601 if(cltype126
>= var_new_child
->type
->table_size
) {
8604 var125
= var_new_child
->type
->type_table
[cltype126
] == idtype127
;
8607 if (unlikely(!var125
)) {
8608 var_class_name128
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8609 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name128
);
8610 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1207);
8614 ((void (*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_nit__parser_nodes__AMethPropdef__n_block_61d
]))(self
, var_new_child
) /* n_block= on <self:AMethPropdef>*/;
8621 /* method parser_prod#AMethPropdef#n_doc= for (self: AMethPropdef, nullable ADoc) */
8622 void nit__parser_prod___AMethPropdef___nit__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
8623 val
* var_node
/* var node: nullable ADoc */;
8624 val
* var
/* : null */;
8625 short int var1
/* : Bool */;
8626 short int var2
/* : Bool */;
8627 val
* var_other
/* var other: nullable Object */;
8628 short int var4
/* : Bool */;
8629 short int var5
/* : Bool */;
8631 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AMethPropdef> */
8633 if (var_node
== NULL
) {
8634 var1
= 0; /* is null */
8636 var1
= 1; /* arg is null and recv is not */
8639 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
8642 var4
= ((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)>*/;
8653 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
8654 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
8662 /* method parser_prod#AMethPropdef#n_kwredef= for (self: AMethPropdef, nullable TKwredef) */
8663 void nit__parser_prod___AMethPropdef___nit__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
8664 val
* var_node
/* var node: nullable TKwredef */;
8665 val
* var
/* : null */;
8666 short int var1
/* : Bool */;
8667 short int var2
/* : Bool */;
8668 val
* var_other
/* var other: nullable Object */;
8669 short int var4
/* : Bool */;
8670 short int var5
/* : Bool */;
8672 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMethPropdef> */
8674 if (var_node
== NULL
) {
8675 var1
= 0; /* is null */
8677 var1
= 1; /* arg is null and recv is not */
8680 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
8683 var4
= ((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)>*/;
8694 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
8695 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
8703 /* method parser_prod#AMethPropdef#n_visibility= for (self: AMethPropdef, nullable AVisibility) */
8704 void nit__parser_prod___AMethPropdef___nit__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
8705 val
* var_node
/* var node: nullable AVisibility */;
8707 self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AMethPropdef> */
8708 if (var_node
== NULL
) {
8709 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8710 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1225);
8713 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
8714 if (unlikely(var_node
== NULL
)) {
8715 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8716 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8719 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
8725 /* method parser_prod#AMethPropdef#n_kwmeth= for (self: AMethPropdef, nullable TKwmeth) */
8726 void nit__parser_prod___AMethPropdef___n_kwmeth_61d(val
* self
, val
* p0
) {
8727 val
* var_node
/* var node: nullable TKwmeth */;
8728 val
* var
/* : null */;
8729 short int var1
/* : Bool */;
8730 short int var2
/* : Bool */;
8731 val
* var_other
/* var other: nullable Object */;
8732 short int var4
/* : Bool */;
8733 short int var5
/* : Bool */;
8735 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AMethPropdef> */
8737 if (var_node
== NULL
) {
8738 var1
= 0; /* is null */
8740 var1
= 1; /* arg is null and recv is not */
8743 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwmeth> */
8746 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwmeth(TKwmeth)>*/;
8757 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwmeth(TKwmeth)> */
8758 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwmeth(TKwmeth)> */
8766 /* method parser_prod#AMethPropdef#n_kwinit= for (self: AMethPropdef, nullable TKwinit) */
8767 void nit__parser_prod___AMethPropdef___n_kwinit_61d(val
* self
, val
* p0
) {
8768 val
* var_node
/* var node: nullable TKwinit */;
8769 val
* var
/* : null */;
8770 short int var1
/* : Bool */;
8771 short int var2
/* : Bool */;
8772 val
* var_other
/* var other: nullable Object */;
8773 short int var4
/* : Bool */;
8774 short int var5
/* : Bool */;
8776 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AMethPropdef> */
8778 if (var_node
== NULL
) {
8779 var1
= 0; /* is null */
8781 var1
= 1; /* arg is null and recv is not */
8784 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwinit> */
8787 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwinit(TKwinit)>*/;
8798 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwinit(TKwinit)> */
8799 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwinit(TKwinit)> */
8807 /* method parser_prod#AMethPropdef#n_kwnew= for (self: AMethPropdef, nullable TKwnew) */
8808 void nit__parser_prod___AMethPropdef___n_kwnew_61d(val
* self
, val
* p0
) {
8809 val
* var_node
/* var node: nullable TKwnew */;
8810 val
* var
/* : null */;
8811 short int var1
/* : Bool */;
8812 short int var2
/* : Bool */;
8813 val
* var_other
/* var other: nullable Object */;
8814 short int var4
/* : Bool */;
8815 short int var5
/* : Bool */;
8817 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwnew
].val
= var_node
; /* _n_kwnew on <self:AMethPropdef> */
8819 if (var_node
== NULL
) {
8820 var1
= 0; /* is null */
8822 var1
= 1; /* arg is null and recv is not */
8825 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwnew> */
8828 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwnew(TKwnew)>*/;
8839 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnew(TKwnew)> */
8840 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnew(TKwnew)> */
8848 /* method parser_prod#AMethPropdef#n_methid= for (self: AMethPropdef, nullable AMethid) */
8849 void nit__parser_prod___AMethPropdef___n_methid_61d(val
* self
, val
* p0
) {
8850 val
* var_node
/* var node: nullable AMethid */;
8851 val
* var
/* : null */;
8852 short int var1
/* : Bool */;
8853 short int var2
/* : Bool */;
8854 val
* var_other
/* var other: nullable Object */;
8855 short int var4
/* : Bool */;
8856 short int var5
/* : Bool */;
8858 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AMethPropdef> */
8860 if (var_node
== NULL
) {
8861 var1
= 0; /* is null */
8863 var1
= 1; /* arg is null and recv is not */
8866 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AMethid> */
8869 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AMethid(AMethid)>*/;
8880 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AMethid(AMethid)> */
8881 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AMethid(AMethid)> */
8889 /* method parser_prod#AMethPropdef#n_signature= for (self: AMethPropdef, nullable ASignature) */
8890 void nit__parser_prod___AMethPropdef___n_signature_61d(val
* self
, val
* p0
) {
8891 val
* var_node
/* var node: nullable ASignature */;
8893 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AMethPropdef> */
8894 if (var_node
== NULL
) {
8895 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8896 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1250);
8899 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ASignature> */
8900 if (unlikely(var_node
== NULL
)) {
8901 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8902 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
8905 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ASignature> */
8911 /* method parser_prod#AMethPropdef#n_annotations= for (self: AMethPropdef, nullable AAnnotations) */
8912 void nit__parser_prod___AMethPropdef___nit__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
8913 val
* var_node
/* var node: nullable AAnnotations */;
8914 val
* var
/* : null */;
8915 short int var1
/* : Bool */;
8916 short int var2
/* : Bool */;
8917 val
* var_other
/* var other: nullable Object */;
8918 short int var4
/* : Bool */;
8919 short int var5
/* : Bool */;
8921 self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AMethPropdef> */
8923 if (var_node
== NULL
) {
8924 var1
= 0; /* is null */
8926 var1
= 1; /* arg is null and recv is not */
8929 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
8932 var4
= ((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)>*/;
8943 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8944 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8952 /* method parser_prod#AMethPropdef#n_extern_calls= for (self: AMethPropdef, nullable AExternCalls) */
8953 void nit__parser_prod___AMethPropdef___n_extern_calls_61d(val
* self
, val
* p0
) {
8954 val
* var_node
/* var node: nullable AExternCalls */;
8955 val
* var
/* : null */;
8956 short int var1
/* : Bool */;
8957 short int var2
/* : Bool */;
8958 val
* var_other
/* var other: nullable Object */;
8959 short int var4
/* : Bool */;
8960 short int var5
/* : Bool */;
8962 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_calls
].val
= var_node
; /* _n_extern_calls on <self:AMethPropdef> */
8964 if (var_node
== NULL
) {
8965 var1
= 0; /* is null */
8967 var1
= 1; /* arg is null and recv is not */
8970 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCalls> */
8973 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCalls(AExternCalls)>*/;
8984 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCalls(AExternCalls)> */
8985 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCalls(AExternCalls)> */
8993 /* method parser_prod#AMethPropdef#n_extern_code_block= for (self: AMethPropdef, nullable AExternCodeBlock) */
8994 void nit__parser_prod___AMethPropdef___n_extern_code_block_61d(val
* self
, val
* p0
) {
8995 val
* var_node
/* var node: nullable AExternCodeBlock */;
8996 val
* var
/* : null */;
8997 short int var1
/* : Bool */;
8998 short int var2
/* : Bool */;
8999 val
* var_other
/* var other: nullable Object */;
9000 short int var4
/* : Bool */;
9001 short int var5
/* : Bool */;
9003 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AMethPropdef> */
9005 if (var_node
== NULL
) {
9006 var1
= 0; /* is null */
9008 var1
= 1; /* arg is null and recv is not */
9011 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCodeBlock> */
9014 var4
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
9025 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9026 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9034 /* method parser_prod#AMethPropdef#n_block= for (self: AMethPropdef, nullable AExpr) */
9035 void nit__parser_prod___AMethPropdef___n_block_61d(val
* self
, val
* p0
) {
9036 val
* var_node
/* var node: nullable AExpr */;
9037 val
* var
/* : null */;
9038 short int var1
/* : Bool */;
9039 short int var2
/* : Bool */;
9040 val
* var_other
/* var other: nullable Object */;
9041 short int var4
/* : Bool */;
9042 short int var5
/* : Bool */;
9044 self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMethPropdef> */
9046 if (var_node
== NULL
) {
9047 var1
= 0; /* is null */
9049 var1
= 1; /* arg is null and recv is not */
9052 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
9055 var4
= ((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)>*/;
9066 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9067 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9075 /* method parser_prod#AMethPropdef#visit_all for (self: AMethPropdef, Visitor) */
9076 void nit__parser_prod___AMethPropdef___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9077 val
* var_v
/* var v: Visitor */;
9078 val
* var
/* : nullable ADoc */;
9079 val
* var1
/* : nullable TKwredef */;
9080 val
* var2
/* : nullable AVisibility */;
9081 val
* var3
/* : nullable TKwmeth */;
9082 val
* var4
/* : nullable TKwinit */;
9083 val
* var5
/* : nullable TKwnew */;
9084 val
* var6
/* : nullable AMethid */;
9085 val
* var7
/* : nullable ASignature */;
9086 val
* var8
/* : nullable AAnnotations */;
9087 val
* var9
/* : nullable AExternCalls */;
9088 val
* var10
/* : nullable AExternCodeBlock */;
9089 val
* var11
/* : nullable AExpr */;
9091 var
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
9093 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9095 var1
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
9097 nit___nit__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9099 var2
= self
->attrs
[COLOR_nit__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
9101 nit___nit__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9103 var3
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AMethPropdef> */
9105 nit___nit__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9107 var4
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AMethPropdef> */
9109 nit___nit__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9111 var5
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_kwnew
].val
; /* _n_kwnew on <self:AMethPropdef> */
9113 nit___nit__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9115 var6
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
9117 nit___nit__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9119 var7
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
9121 nit___nit__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9123 var8
= self
->attrs
[COLOR_nit__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AMethPropdef> */
9125 nit___nit__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9127 var9
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AMethPropdef> */
9129 nit___nit__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9131 var10
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AMethPropdef> */
9133 nit___nit__Visitor___enter_visit(var_v
, var10
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9135 var11
= self
->attrs
[COLOR_nit__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMethPropdef> */
9137 nit___nit__Visitor___enter_visit(var_v
, var11
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9141 /* method parser_prod#AIdMethid#init_aidmethid for (self: AIdMethid, nullable TId) */
9142 void nit__parser_prod___AIdMethid___init_aidmethid(val
* self
, val
* p0
) {
9143 val
* var_n_id
/* var n_id: nullable TId */;
9145 if (unlikely(var_n_id
== NULL
)) {
9146 PRINT_ERROR("Runtime error: %s", "Cast failed");
9147 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1295);
9150 self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdMethid> */
9151 if (var_n_id
== NULL
) {
9152 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9153 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1296);
9156 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
9157 if (unlikely(var_n_id
== NULL
)) {
9158 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9159 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9162 var_n_id
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
9168 /* method parser_prod#AIdMethid#replace_child for (self: AIdMethid, ANode, nullable ANode) */
9169 void nit__parser_prod___AIdMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9170 val
* var_old_child
/* var old_child: ANode */;
9171 val
* var_new_child
/* var new_child: nullable ANode */;
9172 val
* var
/* : TId */;
9173 short int var1
/* : Bool */;
9174 val
* var_other
/* var other: nullable Object */;
9175 short int var3
/* : Bool */;
9176 short int var5
/* : Bool */;
9177 short int var6
/* : Bool */;
9180 const char* var_class_name
;
9183 var
= self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
9184 if (unlikely(var
== NULL
)) {
9185 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
9186 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1301);
9190 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
9191 var_other
= var_old_child
;
9193 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
9194 var5
= var
== var_other
;
9206 /* <var_new_child:nullable ANode> isa TId */
9207 cltype
= type_nit__TId
.color
;
9208 idtype
= type_nit__TId
.id
;
9209 if(var_new_child
== NULL
) {
9212 if(cltype
>= var_new_child
->type
->table_size
) {
9215 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9218 if (unlikely(!var6
)) {
9219 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9220 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
9221 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1302);
9225 nit__parser_prod___AIdMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIdMethid#n_id= on <self:AIdMethid>*/
9232 /* method parser_prod#AIdMethid#n_id= for (self: AIdMethid, TId) */
9233 void nit__parser_prod___AIdMethid___n_id_61d(val
* self
, val
* p0
) {
9234 val
* var_node
/* var node: TId */;
9236 self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
= var_node
; /* _n_id on <self:AIdMethid> */
9238 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
9239 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
9245 /* method parser_prod#AIdMethid#visit_all for (self: AIdMethid, Visitor) */
9246 void nit__parser_prod___AIdMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9247 val
* var_v
/* var v: Visitor */;
9248 val
* var
/* : TId */;
9250 var
= self
->attrs
[COLOR_nit__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
9251 if (unlikely(var
== NULL
)) {
9252 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
9253 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1316);
9257 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9261 /* method parser_prod#APlusMethid#init_aplusmethid for (self: APlusMethid, nullable TPlus) */
9262 void nit__parser_prod___APlusMethid___init_aplusmethid(val
* self
, val
* p0
) {
9263 val
* var_n_plus
/* var n_plus: nullable TPlus */;
9265 if (unlikely(var_n_plus
== NULL
)) {
9266 PRINT_ERROR("Runtime error: %s", "Cast failed");
9267 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1324);
9270 self
->attrs
[COLOR_nit__parser_nodes__APlusMethid___n_plus
].val
= var_n_plus
; /* _n_plus on <self:APlusMethid> */
9271 if (var_n_plus
== NULL
) {
9272 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9273 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1325);
9276 { /* Inline parser_nodes#ANode#parent= (var_n_plus,self) on <var_n_plus:nullable TPlus> */
9277 if (unlikely(var_n_plus
== NULL
)) {
9278 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9279 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9282 var_n_plus
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_plus:nullable TPlus> */
9288 /* method parser_prod#APlusMethid#replace_child for (self: APlusMethid, ANode, nullable ANode) */
9289 void nit__parser_prod___APlusMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9290 val
* var_old_child
/* var old_child: ANode */;
9291 val
* var_new_child
/* var new_child: nullable ANode */;
9292 val
* var
/* : TPlus */;
9293 short int var1
/* : Bool */;
9294 val
* var_other
/* var other: nullable Object */;
9295 short int var3
/* : Bool */;
9296 short int var5
/* : Bool */;
9297 short int var6
/* : Bool */;
9300 const char* var_class_name
;
9303 var
= self
->attrs
[COLOR_nit__parser_nodes__APlusMethid___n_plus
].val
; /* _n_plus on <self:APlusMethid> */
9304 if (unlikely(var
== NULL
)) {
9305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_plus");
9306 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1330);
9310 { /* Inline kernel#Object#== (var,var_old_child) on <var:TPlus> */
9311 var_other
= var_old_child
;
9313 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TPlus> */
9314 var5
= var
== var_other
;
9326 /* <var_new_child:nullable ANode> isa TPlus */
9327 cltype
= type_nit__TPlus
.color
;
9328 idtype
= type_nit__TPlus
.id
;
9329 if(var_new_child
== NULL
) {
9332 if(cltype
>= var_new_child
->type
->table_size
) {
9335 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9338 if (unlikely(!var6
)) {
9339 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9340 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name
);
9341 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1331);
9345 nit__parser_prod___APlusMethid___n_plus_61d(self
, var_new_child
); /* Direct call parser_prod#APlusMethid#n_plus= on <self:APlusMethid>*/
9352 /* method parser_prod#APlusMethid#n_plus= for (self: APlusMethid, TPlus) */
9353 void nit__parser_prod___APlusMethid___n_plus_61d(val
* self
, val
* p0
) {
9354 val
* var_node
/* var node: TPlus */;
9356 self
->attrs
[COLOR_nit__parser_nodes__APlusMethid___n_plus
].val
= var_node
; /* _n_plus on <self:APlusMethid> */
9358 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TPlus> */
9359 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TPlus> */
9365 /* method parser_prod#APlusMethid#visit_all for (self: APlusMethid, Visitor) */
9366 void nit__parser_prod___APlusMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9367 val
* var_v
/* var v: Visitor */;
9368 val
* var
/* : TPlus */;
9370 var
= self
->attrs
[COLOR_nit__parser_nodes__APlusMethid___n_plus
].val
; /* _n_plus on <self:APlusMethid> */
9371 if (unlikely(var
== NULL
)) {
9372 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_plus");
9373 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1345);
9377 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9381 /* method parser_prod#AMinusMethid#init_aminusmethid for (self: AMinusMethid, nullable TMinus) */
9382 void nit__parser_prod___AMinusMethid___init_aminusmethid(val
* self
, val
* p0
) {
9383 val
* var_n_minus
/* var n_minus: nullable TMinus */;
9385 if (unlikely(var_n_minus
== NULL
)) {
9386 PRINT_ERROR("Runtime error: %s", "Cast failed");
9387 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1353);
9390 self
->attrs
[COLOR_nit__parser_nodes__AMinusMethid___n_minus
].val
= var_n_minus
; /* _n_minus on <self:AMinusMethid> */
9391 if (var_n_minus
== NULL
) {
9392 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9393 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1354);
9396 { /* Inline parser_nodes#ANode#parent= (var_n_minus,self) on <var_n_minus:nullable TMinus> */
9397 if (unlikely(var_n_minus
== NULL
)) {
9398 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9399 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9402 var_n_minus
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_minus:nullable TMinus> */
9408 /* method parser_prod#AMinusMethid#replace_child for (self: AMinusMethid, ANode, nullable ANode) */
9409 void nit__parser_prod___AMinusMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9410 val
* var_old_child
/* var old_child: ANode */;
9411 val
* var_new_child
/* var new_child: nullable ANode */;
9412 val
* var
/* : TMinus */;
9413 short int var1
/* : Bool */;
9414 val
* var_other
/* var other: nullable Object */;
9415 short int var3
/* : Bool */;
9416 short int var5
/* : Bool */;
9417 short int var6
/* : Bool */;
9420 const char* var_class_name
;
9423 var
= self
->attrs
[COLOR_nit__parser_nodes__AMinusMethid___n_minus
].val
; /* _n_minus on <self:AMinusMethid> */
9424 if (unlikely(var
== NULL
)) {
9425 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minus");
9426 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1359);
9430 { /* Inline kernel#Object#== (var,var_old_child) on <var:TMinus> */
9431 var_other
= var_old_child
;
9433 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TMinus> */
9434 var5
= var
== var_other
;
9446 /* <var_new_child:nullable ANode> isa TMinus */
9447 cltype
= type_nit__TMinus
.color
;
9448 idtype
= type_nit__TMinus
.id
;
9449 if(var_new_child
== NULL
) {
9452 if(cltype
>= var_new_child
->type
->table_size
) {
9455 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9458 if (unlikely(!var6
)) {
9459 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9460 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name
);
9461 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1360);
9465 nit__parser_prod___AMinusMethid___n_minus_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusMethid#n_minus= on <self:AMinusMethid>*/
9472 /* method parser_prod#AMinusMethid#n_minus= for (self: AMinusMethid, TMinus) */
9473 void nit__parser_prod___AMinusMethid___n_minus_61d(val
* self
, val
* p0
) {
9474 val
* var_node
/* var node: TMinus */;
9476 self
->attrs
[COLOR_nit__parser_nodes__AMinusMethid___n_minus
].val
= var_node
; /* _n_minus on <self:AMinusMethid> */
9478 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TMinus> */
9479 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TMinus> */
9485 /* method parser_prod#AMinusMethid#visit_all for (self: AMinusMethid, Visitor) */
9486 void nit__parser_prod___AMinusMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9487 val
* var_v
/* var v: Visitor */;
9488 val
* var
/* : TMinus */;
9490 var
= self
->attrs
[COLOR_nit__parser_nodes__AMinusMethid___n_minus
].val
; /* _n_minus on <self:AMinusMethid> */
9491 if (unlikely(var
== NULL
)) {
9492 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minus");
9493 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1374);
9497 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9501 /* method parser_prod#AStarMethid#init_astarmethid for (self: AStarMethid, nullable TStar) */
9502 void nit__parser_prod___AStarMethid___init_astarmethid(val
* self
, val
* p0
) {
9503 val
* var_n_star
/* var n_star: nullable TStar */;
9505 if (unlikely(var_n_star
== NULL
)) {
9506 PRINT_ERROR("Runtime error: %s", "Cast failed");
9507 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1382);
9510 self
->attrs
[COLOR_nit__parser_nodes__AStarMethid___n_star
].val
= var_n_star
; /* _n_star on <self:AStarMethid> */
9511 if (var_n_star
== NULL
) {
9512 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9513 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1383);
9516 { /* Inline parser_nodes#ANode#parent= (var_n_star,self) on <var_n_star:nullable TStar> */
9517 if (unlikely(var_n_star
== NULL
)) {
9518 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9519 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9522 var_n_star
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_star:nullable TStar> */
9528 /* method parser_prod#AStarMethid#replace_child for (self: AStarMethid, ANode, nullable ANode) */
9529 void nit__parser_prod___AStarMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9530 val
* var_old_child
/* var old_child: ANode */;
9531 val
* var_new_child
/* var new_child: nullable ANode */;
9532 val
* var
/* : TStar */;
9533 short int var1
/* : Bool */;
9534 val
* var_other
/* var other: nullable Object */;
9535 short int var3
/* : Bool */;
9536 short int var5
/* : Bool */;
9537 short int var6
/* : Bool */;
9540 const char* var_class_name
;
9543 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarMethid___n_star
].val
; /* _n_star on <self:AStarMethid> */
9544 if (unlikely(var
== NULL
)) {
9545 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_star");
9546 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1388);
9550 { /* Inline kernel#Object#== (var,var_old_child) on <var:TStar> */
9551 var_other
= var_old_child
;
9553 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TStar> */
9554 var5
= var
== var_other
;
9566 /* <var_new_child:nullable ANode> isa TStar */
9567 cltype
= type_nit__TStar
.color
;
9568 idtype
= type_nit__TStar
.id
;
9569 if(var_new_child
== NULL
) {
9572 if(cltype
>= var_new_child
->type
->table_size
) {
9575 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9578 if (unlikely(!var6
)) {
9579 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9580 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStar", var_class_name
);
9581 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1389);
9585 nit__parser_prod___AStarMethid___n_star_61d(self
, var_new_child
); /* Direct call parser_prod#AStarMethid#n_star= on <self:AStarMethid>*/
9592 /* method parser_prod#AStarMethid#n_star= for (self: AStarMethid, TStar) */
9593 void nit__parser_prod___AStarMethid___n_star_61d(val
* self
, val
* p0
) {
9594 val
* var_node
/* var node: TStar */;
9596 self
->attrs
[COLOR_nit__parser_nodes__AStarMethid___n_star
].val
= var_node
; /* _n_star on <self:AStarMethid> */
9598 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TStar> */
9599 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TStar> */
9605 /* method parser_prod#AStarMethid#visit_all for (self: AStarMethid, Visitor) */
9606 void nit__parser_prod___AStarMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9607 val
* var_v
/* var v: Visitor */;
9608 val
* var
/* : TStar */;
9610 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarMethid___n_star
].val
; /* _n_star on <self:AStarMethid> */
9611 if (unlikely(var
== NULL
)) {
9612 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_star");
9613 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1403);
9617 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9621 /* method parser_prod#AStarstarMethid#init_astarstarmethid for (self: AStarstarMethid, nullable TStarstar) */
9622 void nit__parser_prod___AStarstarMethid___init_astarstarmethid(val
* self
, val
* p0
) {
9623 val
* var_n_starstar
/* var n_starstar: nullable TStarstar */;
9624 var_n_starstar
= p0
;
9625 if (unlikely(var_n_starstar
== NULL
)) {
9626 PRINT_ERROR("Runtime error: %s", "Cast failed");
9627 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1411);
9630 self
->attrs
[COLOR_nit__parser_nodes__AStarstarMethid___n_starstar
].val
= var_n_starstar
; /* _n_starstar on <self:AStarstarMethid> */
9631 if (var_n_starstar
== NULL
) {
9632 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9633 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1412);
9636 { /* Inline parser_nodes#ANode#parent= (var_n_starstar,self) on <var_n_starstar:nullable TStarstar> */
9637 if (unlikely(var_n_starstar
== NULL
)) {
9638 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9639 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9642 var_n_starstar
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_starstar:nullable TStarstar> */
9648 /* method parser_prod#AStarstarMethid#replace_child for (self: AStarstarMethid, ANode, nullable ANode) */
9649 void nit__parser_prod___AStarstarMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9650 val
* var_old_child
/* var old_child: ANode */;
9651 val
* var_new_child
/* var new_child: nullable ANode */;
9652 val
* var
/* : TStarstar */;
9653 short int var1
/* : Bool */;
9654 val
* var_other
/* var other: nullable Object */;
9655 short int var3
/* : Bool */;
9656 short int var5
/* : Bool */;
9657 short int var6
/* : Bool */;
9660 const char* var_class_name
;
9663 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarstarMethid___n_starstar
].val
; /* _n_starstar on <self:AStarstarMethid> */
9664 if (unlikely(var
== NULL
)) {
9665 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_starstar");
9666 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1417);
9670 { /* Inline kernel#Object#== (var,var_old_child) on <var:TStarstar> */
9671 var_other
= var_old_child
;
9673 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TStarstar> */
9674 var5
= var
== var_other
;
9686 /* <var_new_child:nullable ANode> isa TStarstar */
9687 cltype
= type_nit__TStarstar
.color
;
9688 idtype
= type_nit__TStarstar
.id
;
9689 if(var_new_child
== NULL
) {
9692 if(cltype
>= var_new_child
->type
->table_size
) {
9695 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9698 if (unlikely(!var6
)) {
9699 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9700 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstar", var_class_name
);
9701 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1418);
9705 nit__parser_prod___AStarstarMethid___n_starstar_61d(self
, var_new_child
); /* Direct call parser_prod#AStarstarMethid#n_starstar= on <self:AStarstarMethid>*/
9712 /* method parser_prod#AStarstarMethid#n_starstar= for (self: AStarstarMethid, TStarstar) */
9713 void nit__parser_prod___AStarstarMethid___n_starstar_61d(val
* self
, val
* p0
) {
9714 val
* var_node
/* var node: TStarstar */;
9716 self
->attrs
[COLOR_nit__parser_nodes__AStarstarMethid___n_starstar
].val
= var_node
; /* _n_starstar on <self:AStarstarMethid> */
9718 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TStarstar> */
9719 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TStarstar> */
9725 /* method parser_prod#AStarstarMethid#visit_all for (self: AStarstarMethid, Visitor) */
9726 void nit__parser_prod___AStarstarMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9727 val
* var_v
/* var v: Visitor */;
9728 val
* var
/* : TStarstar */;
9730 var
= self
->attrs
[COLOR_nit__parser_nodes__AStarstarMethid___n_starstar
].val
; /* _n_starstar on <self:AStarstarMethid> */
9731 if (unlikely(var
== NULL
)) {
9732 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_starstar");
9733 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1432);
9737 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9741 /* method parser_prod#ASlashMethid#init_aslashmethid for (self: ASlashMethid, nullable TSlash) */
9742 void nit__parser_prod___ASlashMethid___init_aslashmethid(val
* self
, val
* p0
) {
9743 val
* var_n_slash
/* var n_slash: nullable TSlash */;
9745 if (unlikely(var_n_slash
== NULL
)) {
9746 PRINT_ERROR("Runtime error: %s", "Cast failed");
9747 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1440);
9750 self
->attrs
[COLOR_nit__parser_nodes__ASlashMethid___n_slash
].val
= var_n_slash
; /* _n_slash on <self:ASlashMethid> */
9751 if (var_n_slash
== NULL
) {
9752 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9753 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1441);
9756 { /* Inline parser_nodes#ANode#parent= (var_n_slash,self) on <var_n_slash:nullable TSlash> */
9757 if (unlikely(var_n_slash
== NULL
)) {
9758 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9759 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9762 var_n_slash
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_slash:nullable TSlash> */
9768 /* method parser_prod#ASlashMethid#replace_child for (self: ASlashMethid, ANode, nullable ANode) */
9769 void nit__parser_prod___ASlashMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9770 val
* var_old_child
/* var old_child: ANode */;
9771 val
* var_new_child
/* var new_child: nullable ANode */;
9772 val
* var
/* : TSlash */;
9773 short int var1
/* : Bool */;
9774 val
* var_other
/* var other: nullable Object */;
9775 short int var3
/* : Bool */;
9776 short int var5
/* : Bool */;
9777 short int var6
/* : Bool */;
9780 const char* var_class_name
;
9783 var
= self
->attrs
[COLOR_nit__parser_nodes__ASlashMethid___n_slash
].val
; /* _n_slash on <self:ASlashMethid> */
9784 if (unlikely(var
== NULL
)) {
9785 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_slash");
9786 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1446);
9790 { /* Inline kernel#Object#== (var,var_old_child) on <var:TSlash> */
9791 var_other
= var_old_child
;
9793 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TSlash> */
9794 var5
= var
== var_other
;
9806 /* <var_new_child:nullable ANode> isa TSlash */
9807 cltype
= type_nit__TSlash
.color
;
9808 idtype
= type_nit__TSlash
.id
;
9809 if(var_new_child
== NULL
) {
9812 if(cltype
>= var_new_child
->type
->table_size
) {
9815 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9818 if (unlikely(!var6
)) {
9819 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9820 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name
);
9821 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1447);
9825 nit__parser_prod___ASlashMethid___n_slash_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashMethid#n_slash= on <self:ASlashMethid>*/
9832 /* method parser_prod#ASlashMethid#n_slash= for (self: ASlashMethid, TSlash) */
9833 void nit__parser_prod___ASlashMethid___n_slash_61d(val
* self
, val
* p0
) {
9834 val
* var_node
/* var node: TSlash */;
9836 self
->attrs
[COLOR_nit__parser_nodes__ASlashMethid___n_slash
].val
= var_node
; /* _n_slash on <self:ASlashMethid> */
9838 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TSlash> */
9839 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TSlash> */
9845 /* method parser_prod#ASlashMethid#visit_all for (self: ASlashMethid, Visitor) */
9846 void nit__parser_prod___ASlashMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9847 val
* var_v
/* var v: Visitor */;
9848 val
* var
/* : TSlash */;
9850 var
= self
->attrs
[COLOR_nit__parser_nodes__ASlashMethid___n_slash
].val
; /* _n_slash on <self:ASlashMethid> */
9851 if (unlikely(var
== NULL
)) {
9852 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_slash");
9853 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1461);
9857 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9861 /* method parser_prod#APercentMethid#init_apercentmethid for (self: APercentMethid, nullable TPercent) */
9862 void nit__parser_prod___APercentMethid___init_apercentmethid(val
* self
, val
* p0
) {
9863 val
* var_n_percent
/* var n_percent: nullable TPercent */;
9865 if (unlikely(var_n_percent
== NULL
)) {
9866 PRINT_ERROR("Runtime error: %s", "Cast failed");
9867 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1469);
9870 self
->attrs
[COLOR_nit__parser_nodes__APercentMethid___n_percent
].val
= var_n_percent
; /* _n_percent on <self:APercentMethid> */
9871 if (var_n_percent
== NULL
) {
9872 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9873 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1470);
9876 { /* Inline parser_nodes#ANode#parent= (var_n_percent,self) on <var_n_percent:nullable TPercent> */
9877 if (unlikely(var_n_percent
== NULL
)) {
9878 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9879 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 36);
9882 var_n_percent
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_percent:nullable TPercent> */
9888 /* method parser_prod#APercentMethid#replace_child for (self: APercentMethid, ANode, nullable ANode) */
9889 void nit__parser_prod___APercentMethid___nit__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9890 val
* var_old_child
/* var old_child: ANode */;
9891 val
* var_new_child
/* var new_child: nullable ANode */;
9892 val
* var
/* : TPercent */;
9893 short int var1
/* : Bool */;
9894 val
* var_other
/* var other: nullable Object */;
9895 short int var3
/* : Bool */;
9896 short int var5
/* : Bool */;
9897 short int var6
/* : Bool */;
9900 const char* var_class_name
;
9903 var
= self
->attrs
[COLOR_nit__parser_nodes__APercentMethid___n_percent
].val
; /* _n_percent on <self:APercentMethid> */
9904 if (unlikely(var
== NULL
)) {
9905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_percent");
9906 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1475);
9910 { /* Inline kernel#Object#== (var,var_old_child) on <var:TPercent> */
9911 var_other
= var_old_child
;
9913 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TPercent> */
9914 var5
= var
== var_other
;
9926 /* <var_new_child:nullable ANode> isa TPercent */
9927 cltype
= type_nit__TPercent
.color
;
9928 idtype
= type_nit__TPercent
.id
;
9929 if(var_new_child
== NULL
) {
9932 if(cltype
>= var_new_child
->type
->table_size
) {
9935 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9938 if (unlikely(!var6
)) {
9939 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9940 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name
);
9941 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1476);
9945 nit__parser_prod___APercentMethid___n_percent_61d(self
, var_new_child
); /* Direct call parser_prod#APercentMethid#n_percent= on <self:APercentMethid>*/
9952 /* method parser_prod#APercentMethid#n_percent= for (self: APercentMethid, TPercent) */
9953 void nit__parser_prod___APercentMethid___n_percent_61d(val
* self
, val
* p0
) {
9954 val
* var_node
/* var node: TPercent */;
9956 self
->attrs
[COLOR_nit__parser_nodes__APercentMethid___n_percent
].val
= var_node
; /* _n_percent on <self:APercentMethid> */
9958 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TPercent> */
9959 var_node
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TPercent> */
9965 /* method parser_prod#APercentMethid#visit_all for (self: APercentMethid, Visitor) */
9966 void nit__parser_prod___APercentMethid___nit__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9967 val
* var_v
/* var v: Visitor */;
9968 val
* var
/* : TPercent */;
9970 var
= self
->attrs
[COLOR_nit__parser_nodes__APercentMethid___n_percent
].val
; /* _n_percent on <self:APercentMethid> */
9971 if (unlikely(var
== NULL
)) {
9972 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_percent");
9973 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_prod
, 1490);
9977 nit___nit__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/