1 #include "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 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 short int var6
/* : Bool */;
15 val
* var8
/* : ANodes[AImport] */;
16 val
* var10
/* : ANodes[AImport] */;
17 val
* var11
/* : ANodes[AExternCodeBlock] */;
18 val
* var13
/* : ANodes[AExternCodeBlock] */;
19 val
* var14
/* : ANodes[AClassdef] */;
20 val
* var16
/* : ANodes[AClassdef] */;
21 var_n_moduledecl
= p0
;
23 var_n_extern_code_blocks
= p2
;
25 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_n_moduledecl
; /* _n_moduledecl on <self:AModule> */
27 if (var_n_moduledecl
== NULL
) {
28 var1
= 0; /* is null */
30 var1
= 1; /* arg is null and recv is not */
33 { /* Inline kernel#Object#!= (var_n_moduledecl,var) on <var_n_moduledecl:nullable AModuledecl> */
36 var5
= ((short int (*)(val
*, val
*))(var_n_moduledecl
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_moduledecl
, var_other
) /* == on <var_n_moduledecl:nullable AModuledecl(AModuledecl)>*/;
48 { /* Inline parser_nodes#ANode#parent= (var_n_moduledecl,self) on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
49 var_n_moduledecl
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
56 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
57 var10
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
58 if (unlikely(var10
== NULL
)) {
59 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
60 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 857);
68 parser_nodes__ANodes__unsafe_add_all(var8
, var_n_imports
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var8:ANodes[AImport]>*/
71 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
72 var13
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
73 if (unlikely(var13
== NULL
)) {
74 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
75 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 858);
83 parser_nodes__ANodes__unsafe_add_all(var11
, var_n_extern_code_blocks
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var11:ANodes[AExternCodeBlock]>*/
86 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
87 var16
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
88 if (unlikely(var16
== NULL
)) {
89 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
90 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 859);
98 parser_nodes__ANodes__unsafe_add_all(var14
, var_n_classdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var14:ANodes[AClassdef]>*/
102 /* method parser_prod#AModule#init_amodule for (self: Object, nullable AModuledecl, Collection[Object], Collection[Object], Collection[Object]) */
103 void VIRTUAL_parser_prod__AModule__init_amodule(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
104 parser_prod__AModule__init_amodule(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AModule#init_amodule on <self:Object(AModule)>*/
107 /* method parser_prod#AModule#replace_child for (self: AModule, ANode, nullable ANode) */
108 void parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
109 val
* var_old_child
/* var old_child: ANode */;
110 val
* var_new_child
/* var new_child: nullable ANode */;
111 val
* var
/* : nullable AModuledecl */;
112 short int var1
/* : Bool */;
113 short int var2
/* : Bool */;
114 val
* var_other
/* var other: nullable Object */;
115 short int var4
/* : Bool */;
116 short int var6
/* : Bool */;
117 short int var7
/* : Bool */;
120 const char* var_class_name
;
121 val
* var8
/* : ANodes[AImport] */;
122 val
* var10
/* : ANodes[AImport] */;
123 short int var11
/* : Bool */;
124 val
* var12
/* : ANodes[AExternCodeBlock] */;
125 val
* var14
/* : ANodes[AExternCodeBlock] */;
126 short int var15
/* : Bool */;
127 val
* var16
/* : ANodes[AClassdef] */;
128 val
* var18
/* : ANodes[AClassdef] */;
129 short int var19
/* : Bool */;
132 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
134 var1
= 0; /* <var_old_child:ANode> cannot be null */
136 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AModuledecl> */
137 var_other
= var_old_child
;
139 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AModuledecl(AModuledecl)> */
140 var6
= var
== var_other
;
153 /* <var_new_child:nullable ANode> isa nullable AModuledecl */
154 cltype
= type_nullable_parser_nodes__AModuledecl
.color
;
155 idtype
= type_nullable_parser_nodes__AModuledecl
.id
;
156 if(var_new_child
== NULL
) {
159 if(cltype
>= var_new_child
->type
->table_size
) {
162 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
165 if (unlikely(!var7
)) {
166 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
167 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AModuledecl", var_class_name
);
168 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 27);
172 parser_prod__AModule__n_moduledecl_61d(self
, var_new_child
); /* Direct call parser_prod#AModule#n_moduledecl= on <self:AModule>*/
178 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
179 var10
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
180 if (unlikely(var10
== NULL
)) {
181 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
182 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 857);
190 var11
= parser_nodes__ANodes__replace_child(var8
, var_old_child
, var_new_child
);
197 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
198 var14
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
199 if (unlikely(var14
== NULL
)) {
200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
201 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 858);
209 var15
= parser_nodes__ANodes__replace_child(var12
, var_old_child
, var_new_child
);
216 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
217 var18
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
218 if (unlikely(var18
== NULL
)) {
219 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
220 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 859);
228 var19
= parser_nodes__ANodes__replace_child(var16
, var_old_child
, var_new_child
);
236 /* method parser_prod#AModule#replace_child for (self: Object, ANode, nullable ANode) */
237 void VIRTUAL_parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
238 parser_prod__AModule__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AModule#replace_child on <self:Object(AModule)>*/
241 /* method parser_prod#AModule#n_moduledecl= for (self: AModule, nullable AModuledecl) */
242 void parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
243 val
* var_node
/* var node: nullable AModuledecl */;
244 val
* var
/* : null */;
245 short int var1
/* : Bool */;
246 short int var2
/* : Bool */;
247 val
* var_other
/* var other: nullable Object */;
248 short int var4
/* : Bool */;
249 short int var5
/* : Bool */;
250 short int var6
/* : Bool */;
252 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_node
; /* _n_moduledecl on <self:AModule> */
254 if (var_node
== NULL
) {
255 var1
= 0; /* is null */
257 var1
= 1; /* arg is null and recv is not */
260 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AModuledecl> */
263 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AModuledecl(AModuledecl)>*/;
275 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AModuledecl(AModuledecl)> */
276 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AModuledecl(AModuledecl)> */
284 /* method parser_prod#AModule#n_moduledecl= for (self: Object, nullable AModuledecl) */
285 void VIRTUAL_parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
286 parser_prod__AModule__n_moduledecl_61d(self
, p0
); /* Direct call parser_prod#AModule#n_moduledecl= on <self:Object(AModule)>*/
289 /* method parser_prod#AModule#visit_all for (self: AModule, Visitor) */
290 void parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
291 val
* var_v
/* var v: Visitor */;
292 val
* var
/* : nullable AModuledecl */;
293 val
* var1
/* : ANodes[AImport] */;
294 val
* var3
/* : ANodes[AImport] */;
295 val
* var4
/* : ANodes[AExternCodeBlock] */;
296 val
* var6
/* : ANodes[AExternCodeBlock] */;
297 val
* var7
/* : ANodes[AClassdef] */;
298 val
* var9
/* : ANodes[AClassdef] */;
300 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
302 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
305 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
306 var3
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
307 if (unlikely(var3
== NULL
)) {
308 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
309 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 857);
317 parser_nodes__ANodes__visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AImport]>*/
320 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
321 var6
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
322 if (unlikely(var6
== NULL
)) {
323 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
324 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 858);
332 parser_nodes__ANodes__visit_all(var4
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var4:ANodes[AExternCodeBlock]>*/
335 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
336 var9
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
337 if (unlikely(var9
== NULL
)) {
338 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
339 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 859);
347 parser_nodes__ANodes__visit_all(var7
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var7:ANodes[AClassdef]>*/
351 /* method parser_prod#AModule#visit_all for (self: Object, Visitor) */
352 void VIRTUAL_parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
353 parser_prod__AModule__visit_all(self
, p0
); /* Direct call parser_prod#AModule#visit_all on <self:Object(AModule)>*/
356 /* method parser_prod#AModuledecl#init_amoduledecl for (self: AModuledecl, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
357 void parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
358 val
* var_n_doc
/* var n_doc: nullable ADoc */;
359 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
360 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
361 val
* var_n_kwmodule
/* var n_kwmodule: nullable TKwmodule */;
362 val
* var_n_name
/* var n_name: nullable AModuleName */;
363 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
364 val
* var
/* : null */;
365 short int var1
/* : Bool */;
366 short int var2
/* : Bool */;
367 val
* var_other
/* var other: nullable Object */;
368 short int var4
/* : Bool */;
369 short int var5
/* : Bool */;
370 short int var6
/* : Bool */;
371 val
* var8
/* : null */;
372 short int var9
/* : Bool */;
373 short int var10
/* : Bool */;
374 short int var12
/* : Bool */;
375 short int var13
/* : Bool */;
376 short int var14
/* : Bool */;
377 val
* var19
/* : null */;
378 short int var20
/* : Bool */;
379 short int var21
/* : Bool */;
380 short int var23
/* : Bool */;
381 short int var24
/* : Bool */;
382 short int var25
/* : Bool */;
385 var_n_visibility
= p2
;
388 var_n_annotations
= p5
;
389 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AModuledecl> */
391 if (var_n_doc
== NULL
) {
392 var1
= 0; /* is null */
394 var1
= 1; /* arg is null and recv is not */
397 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
400 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
412 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
413 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
419 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AModuledecl> */
421 if (var_n_kwredef
== NULL
) {
422 var9
= 0; /* is null */
424 var9
= 1; /* arg is null and recv is not */
427 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
430 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
442 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
443 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
449 if (unlikely(var_n_visibility
== NULL
)) {
450 PRINT_ERROR("Runtime error: %s", "Cast failed");
451 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 64);
454 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AModuledecl> */
455 if (var_n_visibility
== NULL
) {
456 PRINT_ERROR("Runtime error: %s", "Receiver is null");
457 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 65);
460 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
461 if (unlikely(var_n_visibility
== NULL
)) {
462 PRINT_ERROR("Runtime error: %s", "Receiver is null");
463 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
466 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
470 if (unlikely(var_n_kwmodule
== NULL
)) {
471 PRINT_ERROR("Runtime error: %s", "Cast failed");
472 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 66);
475 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_n_kwmodule
; /* _n_kwmodule on <self:AModuledecl> */
476 if (var_n_kwmodule
== NULL
) {
477 PRINT_ERROR("Runtime error: %s", "Receiver is null");
478 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 67);
481 { /* Inline parser_nodes#ANode#parent= (var_n_kwmodule,self) on <var_n_kwmodule:nullable TKwmodule> */
482 if (unlikely(var_n_kwmodule
== NULL
)) {
483 PRINT_ERROR("Runtime error: %s", "Receiver is null");
484 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
487 var_n_kwmodule
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmodule:nullable TKwmodule> */
491 if (unlikely(var_n_name
== NULL
)) {
492 PRINT_ERROR("Runtime error: %s", "Cast failed");
493 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 68);
496 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_n_name
; /* _n_name on <self:AModuledecl> */
497 if (var_n_name
== NULL
) {
498 PRINT_ERROR("Runtime error: %s", "Receiver is null");
499 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 69);
502 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
503 if (unlikely(var_n_name
== NULL
)) {
504 PRINT_ERROR("Runtime error: %s", "Receiver is null");
505 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
508 var_n_name
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
512 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AModuledecl> */
514 if (var_n_annotations
== NULL
) {
515 var20
= 0; /* is null */
517 var20
= 1; /* arg is null and recv is not */
520 { /* Inline kernel#Object#!= (var_n_annotations,var19) on <var_n_annotations:nullable AAnnotations> */
523 var24
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
535 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
536 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
544 /* method parser_prod#AModuledecl#init_amoduledecl for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
545 void VIRTUAL_parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
546 parser_prod__AModuledecl__init_amoduledecl(self
, p0
, p1
, p2
, p3
, p4
, p5
); /* Direct call parser_prod#AModuledecl#init_amoduledecl on <self:Object(AModuledecl)>*/
549 /* method parser_prod#AModuledecl#replace_child for (self: AModuledecl, ANode, nullable ANode) */
550 void parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
551 val
* var_old_child
/* var old_child: ANode */;
552 val
* var_new_child
/* var new_child: nullable ANode */;
553 val
* var
/* : nullable ADoc */;
554 short int var1
/* : Bool */;
555 short int var2
/* : Bool */;
556 val
* var_other
/* var other: nullable Object */;
557 short int var4
/* : Bool */;
558 short int var6
/* : Bool */;
559 short int var7
/* : Bool */;
562 const char* var_class_name
;
563 val
* var8
/* : nullable TKwredef */;
564 short int var9
/* : Bool */;
565 short int var10
/* : Bool */;
566 short int var12
/* : Bool */;
567 short int var14
/* : Bool */;
568 short int var15
/* : Bool */;
571 const char* var_class_name18
;
572 val
* var19
/* : AVisibility */;
573 short int var20
/* : Bool */;
574 short int var21
/* : Bool */;
575 short int var23
/* : Bool */;
576 short int var25
/* : Bool */;
577 short int var26
/* : Bool */;
580 const char* var_class_name29
;
581 val
* var30
/* : TKwmodule */;
582 short int var31
/* : Bool */;
583 short int var32
/* : Bool */;
584 short int var34
/* : Bool */;
585 short int var36
/* : Bool */;
586 short int var37
/* : Bool */;
589 const char* var_class_name40
;
590 val
* var41
/* : AModuleName */;
591 short int var42
/* : Bool */;
592 short int var43
/* : Bool */;
593 short int var45
/* : Bool */;
594 short int var47
/* : Bool */;
595 short int var48
/* : Bool */;
598 const char* var_class_name51
;
599 val
* var52
/* : nullable AAnnotations */;
600 short int var53
/* : Bool */;
601 short int var54
/* : Bool */;
602 short int var56
/* : Bool */;
603 short int var58
/* : Bool */;
604 short int var59
/* : Bool */;
607 const char* var_class_name62
;
610 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
612 var1
= 0; /* <var_old_child:ANode> cannot be null */
614 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
615 var_other
= var_old_child
;
617 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
618 var6
= var
== var_other
;
631 /* <var_new_child:nullable ANode> isa nullable ADoc */
632 cltype
= type_nullable_parser_nodes__ADoc
.color
;
633 idtype
= type_nullable_parser_nodes__ADoc
.id
;
634 if(var_new_child
== NULL
) {
637 if(cltype
>= var_new_child
->type
->table_size
) {
640 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
643 if (unlikely(!var7
)) {
644 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
645 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
646 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 77);
650 parser_prod__AModuledecl__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_doc= on <self:AModuledecl>*/
655 var8
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
657 var9
= 0; /* <var_old_child:ANode> cannot be null */
659 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
660 var_other
= var_old_child
;
662 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
663 var14
= var8
== var_other
;
676 /* <var_new_child:nullable ANode> isa nullable TKwredef */
677 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
678 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
679 if(var_new_child
== NULL
) {
682 if(cltype16
>= var_new_child
->type
->table_size
) {
685 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
688 if (unlikely(!var15
)) {
689 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
690 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
691 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 81);
695 parser_prod__AModuledecl__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwredef= on <self:AModuledecl>*/
700 var19
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
701 if (unlikely(var19
== NULL
)) {
702 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
703 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 84);
707 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AVisibility> */
708 var_other
= var_old_child
;
710 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AVisibility> */
711 var25
= var19
== var_other
;
724 /* <var_new_child:nullable ANode> isa AVisibility */
725 cltype27
= type_parser_nodes__AVisibility
.color
;
726 idtype28
= type_parser_nodes__AVisibility
.id
;
727 if(var_new_child
== NULL
) {
730 if(cltype27
>= var_new_child
->type
->table_size
) {
733 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
736 if (unlikely(!var26
)) {
737 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
738 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
739 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 85);
743 parser_prod__AModuledecl__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_visibility= on <self:AModuledecl>*/
748 var30
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
749 if (unlikely(var30
== NULL
)) {
750 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
751 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 88);
755 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwmodule> */
756 var_other
= var_old_child
;
758 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwmodule> */
759 var36
= var30
== var_other
;
772 /* <var_new_child:nullable ANode> isa TKwmodule */
773 cltype38
= type_parser_nodes__TKwmodule
.color
;
774 idtype39
= type_parser_nodes__TKwmodule
.id
;
775 if(var_new_child
== NULL
) {
778 if(cltype38
>= var_new_child
->type
->table_size
) {
781 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
784 if (unlikely(!var37
)) {
785 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
786 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwmodule", var_class_name40
);
787 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 89);
791 parser_prod__AModuledecl__n_kwmodule_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwmodule= on <self:AModuledecl>*/
796 var41
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
797 if (unlikely(var41
== NULL
)) {
798 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
799 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 92);
803 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:AModuleName> */
804 var_other
= var_old_child
;
806 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:AModuleName> */
807 var47
= var41
== var_other
;
820 /* <var_new_child:nullable ANode> isa AModuleName */
821 cltype49
= type_parser_nodes__AModuleName
.color
;
822 idtype50
= type_parser_nodes__AModuleName
.id
;
823 if(var_new_child
== NULL
) {
826 if(cltype49
>= var_new_child
->type
->table_size
) {
829 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
832 if (unlikely(!var48
)) {
833 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
834 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name51
);
835 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 93);
839 parser_prod__AModuledecl__n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_name= on <self:AModuledecl>*/
844 var52
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
846 var53
= 0; /* <var_old_child:ANode> cannot be null */
848 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable AAnnotations> */
849 var_other
= var_old_child
;
851 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable AAnnotations(AAnnotations)> */
852 var58
= var52
== var_other
;
865 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
866 cltype60
= type_nullable_parser_nodes__AAnnotations
.color
;
867 idtype61
= type_nullable_parser_nodes__AAnnotations
.id
;
868 if(var_new_child
== NULL
) {
871 if(cltype60
>= var_new_child
->type
->table_size
) {
874 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
877 if (unlikely(!var59
)) {
878 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
879 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name62
);
880 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 97);
884 parser_prod__AModuledecl__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_annotations= on <self:AModuledecl>*/
891 /* method parser_prod#AModuledecl#replace_child for (self: Object, ANode, nullable ANode) */
892 void VIRTUAL_parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
893 parser_prod__AModuledecl__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AModuledecl#replace_child on <self:Object(AModuledecl)>*/
896 /* method parser_prod#AModuledecl#n_doc= for (self: AModuledecl, nullable ADoc) */
897 void parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
898 val
* var_node
/* var node: nullable ADoc */;
899 val
* var
/* : null */;
900 short int var1
/* : Bool */;
901 short int var2
/* : Bool */;
902 val
* var_other
/* var other: nullable Object */;
903 short int var4
/* : Bool */;
904 short int var5
/* : Bool */;
905 short int var6
/* : Bool */;
907 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_node
; /* _n_doc on <self:AModuledecl> */
909 if (var_node
== NULL
) {
910 var1
= 0; /* is null */
912 var1
= 1; /* arg is null and recv is not */
915 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
918 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
930 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
931 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
939 /* method parser_prod#AModuledecl#n_doc= for (self: Object, nullable ADoc) */
940 void VIRTUAL_parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
941 parser_prod__AModuledecl__n_doc_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_doc= on <self:Object(AModuledecl)>*/
944 /* method parser_prod#AModuledecl#n_kwredef= for (self: AModuledecl, nullable TKwredef) */
945 void parser_prod__AModuledecl__n_kwredef_61d(val
* self
, val
* p0
) {
946 val
* var_node
/* var node: nullable TKwredef */;
947 val
* var
/* : null */;
948 short int var1
/* : Bool */;
949 short int var2
/* : Bool */;
950 val
* var_other
/* var other: nullable Object */;
951 short int var4
/* : Bool */;
952 short int var5
/* : Bool */;
953 short int var6
/* : Bool */;
955 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AModuledecl> */
957 if (var_node
== NULL
) {
958 var1
= 0; /* is null */
960 var1
= 1; /* arg is null and recv is not */
963 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
966 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
978 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
979 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
987 /* method parser_prod#AModuledecl#n_kwredef= for (self: Object, nullable TKwredef) */
988 void VIRTUAL_parser_prod__AModuledecl__n_kwredef_61d(val
* self
, val
* p0
) {
989 parser_prod__AModuledecl__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_kwredef= on <self:Object(AModuledecl)>*/
992 /* method parser_prod#AModuledecl#n_visibility= for (self: AModuledecl, AVisibility) */
993 void parser_prod__AModuledecl__n_visibility_61d(val
* self
, val
* p0
) {
994 val
* var_node
/* var node: AVisibility */;
996 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_visibility
].val
= var_node
; /* _n_visibility on <self:AModuledecl> */
998 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
999 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1005 /* method parser_prod#AModuledecl#n_visibility= for (self: Object, AVisibility) */
1006 void VIRTUAL_parser_prod__AModuledecl__n_visibility_61d(val
* self
, val
* p0
) {
1007 parser_prod__AModuledecl__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_visibility= on <self:Object(AModuledecl)>*/
1010 /* method parser_prod#AModuledecl#n_kwmodule= for (self: AModuledecl, TKwmodule) */
1011 void parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
1012 val
* var_node
/* var node: TKwmodule */;
1014 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_node
; /* _n_kwmodule on <self:AModuledecl> */
1016 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwmodule> */
1017 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwmodule> */
1023 /* method parser_prod#AModuledecl#n_kwmodule= for (self: Object, TKwmodule) */
1024 void VIRTUAL_parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
1025 parser_prod__AModuledecl__n_kwmodule_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_kwmodule= on <self:Object(AModuledecl)>*/
1028 /* method parser_prod#AModuledecl#n_name= for (self: AModuledecl, AModuleName) */
1029 void parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
1030 val
* var_node
/* var node: AModuleName */;
1032 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_node
; /* _n_name on <self:AModuledecl> */
1034 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
1035 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
1041 /* method parser_prod#AModuledecl#n_name= for (self: Object, AModuleName) */
1042 void VIRTUAL_parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
1043 parser_prod__AModuledecl__n_name_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_name= on <self:Object(AModuledecl)>*/
1046 /* method parser_prod#AModuledecl#n_annotations= for (self: AModuledecl, nullable AAnnotations) */
1047 void parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
1048 val
* var_node
/* var node: nullable AAnnotations */;
1049 val
* var
/* : null */;
1050 short int var1
/* : Bool */;
1051 short int var2
/* : Bool */;
1052 val
* var_other
/* var other: nullable Object */;
1053 short int var4
/* : Bool */;
1054 short int var5
/* : Bool */;
1055 short int var6
/* : Bool */;
1057 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AModuledecl> */
1059 if (var_node
== NULL
) {
1060 var1
= 0; /* is null */
1062 var1
= 1; /* arg is null and recv is not */
1065 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1068 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
1080 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1081 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1089 /* method parser_prod#AModuledecl#n_annotations= for (self: Object, nullable AAnnotations) */
1090 void VIRTUAL_parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
1091 parser_prod__AModuledecl__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AModuledecl#n_annotations= on <self:Object(AModuledecl)>*/
1094 /* method parser_prod#AModuledecl#visit_all for (self: AModuledecl, Visitor) */
1095 void parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
1096 val
* var_v
/* var v: Visitor */;
1097 val
* var
/* : nullable ADoc */;
1098 val
* var1
/* : nullable TKwredef */;
1099 val
* var2
/* : AVisibility */;
1100 val
* var3
/* : TKwmodule */;
1101 val
* var4
/* : AModuleName */;
1102 val
* var5
/* : nullable AAnnotations */;
1104 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
1106 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1108 var1
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
1110 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1112 var2
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
1113 if (unlikely(var2
== NULL
)) {
1114 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1115 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 138);
1119 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1121 var3
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
1122 if (unlikely(var3
== NULL
)) {
1123 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
1124 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 139);
1128 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1130 var4
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
1131 if (unlikely(var4
== NULL
)) {
1132 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1133 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 140);
1137 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1139 var5
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
1141 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1145 /* method parser_prod#AModuledecl#visit_all for (self: Object, Visitor) */
1146 void VIRTUAL_parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
1147 parser_prod__AModuledecl__visit_all(self
, p0
); /* Direct call parser_prod#AModuledecl#visit_all on <self:Object(AModuledecl)>*/
1150 /* method parser_prod#AStdImport#init_astdimport for (self: AStdImport, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1151 void parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1152 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1153 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1154 val
* var_n_name
/* var n_name: nullable AModuleName */;
1155 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1156 val
* var
/* : null */;
1157 short int var4
/* : Bool */;
1158 short int var5
/* : Bool */;
1159 val
* var_other
/* var other: nullable Object */;
1160 short int var7
/* : Bool */;
1161 short int var8
/* : Bool */;
1162 short int var9
/* : Bool */;
1163 var_n_visibility
= p0
;
1164 var_n_kwimport
= p1
;
1166 var_n_annotations
= p3
;
1167 if (unlikely(var_n_visibility
== NULL
)) {
1168 PRINT_ERROR("Runtime error: %s", "Cast failed");
1169 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 152);
1172 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdImport> */
1173 if (var_n_visibility
== NULL
) {
1174 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1175 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 153);
1178 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1179 if (unlikely(var_n_visibility
== NULL
)) {
1180 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1181 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1184 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1188 if (unlikely(var_n_kwimport
== NULL
)) {
1189 PRINT_ERROR("Runtime error: %s", "Cast failed");
1190 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 154);
1193 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AStdImport> */
1194 if (var_n_kwimport
== NULL
) {
1195 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1196 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 155);
1199 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1200 if (unlikely(var_n_kwimport
== NULL
)) {
1201 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1202 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1205 var_n_kwimport
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1209 if (unlikely(var_n_name
== NULL
)) {
1210 PRINT_ERROR("Runtime error: %s", "Cast failed");
1211 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 156);
1214 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_n_name
; /* _n_name on <self:AStdImport> */
1215 if (var_n_name
== NULL
) {
1216 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1217 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 157);
1220 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
1221 if (unlikely(var_n_name
== NULL
)) {
1222 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1223 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1226 var_n_name
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
1230 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdImport> */
1232 if (var_n_annotations
== NULL
) {
1233 var4
= 0; /* is null */
1235 var4
= 1; /* arg is null and recv is not */
1238 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
1241 var8
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
1253 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1254 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1255 RET_LABEL10
:(void)0;
1262 /* method parser_prod#AStdImport#init_astdimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1263 void VIRTUAL_parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1264 parser_prod__AStdImport__init_astdimport(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AStdImport#init_astdimport on <self:Object(AStdImport)>*/
1267 /* method parser_prod#AStdImport#replace_child for (self: AStdImport, ANode, nullable ANode) */
1268 void parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1269 val
* var_old_child
/* var old_child: ANode */;
1270 val
* var_new_child
/* var new_child: nullable ANode */;
1271 val
* var
/* : AVisibility */;
1272 short int var1
/* : Bool */;
1273 short int var2
/* : Bool */;
1274 val
* var_other
/* var other: nullable Object */;
1275 short int var4
/* : Bool */;
1276 short int var6
/* : Bool */;
1277 short int var7
/* : Bool */;
1280 const char* var_class_name
;
1281 val
* var8
/* : TKwimport */;
1282 short int var9
/* : Bool */;
1283 short int var10
/* : Bool */;
1284 short int var12
/* : Bool */;
1285 short int var14
/* : Bool */;
1286 short int var15
/* : Bool */;
1289 const char* var_class_name18
;
1290 val
* var19
/* : AModuleName */;
1291 short int var20
/* : Bool */;
1292 short int var21
/* : Bool */;
1293 short int var23
/* : Bool */;
1294 short int var25
/* : Bool */;
1295 short int var26
/* : Bool */;
1298 const char* var_class_name29
;
1299 val
* var30
/* : nullable AAnnotations */;
1300 short int var31
/* : Bool */;
1301 short int var32
/* : Bool */;
1302 short int var34
/* : Bool */;
1303 short int var36
/* : Bool */;
1304 short int var37
/* : Bool */;
1307 const char* var_class_name40
;
1310 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1311 if (unlikely(var
== NULL
)) {
1312 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1313 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 164);
1317 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1318 var_other
= var_old_child
;
1320 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1321 var6
= var
== var_other
;
1334 /* <var_new_child:nullable ANode> isa AVisibility */
1335 cltype
= type_parser_nodes__AVisibility
.color
;
1336 idtype
= type_parser_nodes__AVisibility
.id
;
1337 if(var_new_child
== NULL
) {
1340 if(cltype
>= var_new_child
->type
->table_size
) {
1343 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1346 if (unlikely(!var7
)) {
1347 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1348 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1349 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 165);
1353 parser_prod__AStdImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_visibility= on <self:AStdImport>*/
1358 var8
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1359 if (unlikely(var8
== NULL
)) {
1360 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1361 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 168);
1365 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwimport> */
1366 var_other
= var_old_child
;
1368 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwimport> */
1369 var14
= var8
== var_other
;
1372 RET_LABEL13
:(void)0;
1377 RET_LABEL11
:(void)0;
1382 /* <var_new_child:nullable ANode> isa TKwimport */
1383 cltype16
= type_parser_nodes__TKwimport
.color
;
1384 idtype17
= type_parser_nodes__TKwimport
.id
;
1385 if(var_new_child
== NULL
) {
1388 if(cltype16
>= var_new_child
->type
->table_size
) {
1391 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1394 if (unlikely(!var15
)) {
1395 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1396 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name18
);
1397 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 169);
1401 parser_prod__AStdImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_kwimport= on <self:AStdImport>*/
1406 var19
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1407 if (unlikely(var19
== NULL
)) {
1408 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1409 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 172);
1413 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AModuleName> */
1414 var_other
= var_old_child
;
1416 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AModuleName> */
1417 var25
= var19
== var_other
;
1420 RET_LABEL24
:(void)0;
1425 RET_LABEL22
:(void)0;
1430 /* <var_new_child:nullable ANode> isa AModuleName */
1431 cltype27
= type_parser_nodes__AModuleName
.color
;
1432 idtype28
= type_parser_nodes__AModuleName
.id
;
1433 if(var_new_child
== NULL
) {
1436 if(cltype27
>= var_new_child
->type
->table_size
) {
1439 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
1442 if (unlikely(!var26
)) {
1443 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1444 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name29
);
1445 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 173);
1449 parser_prod__AStdImport__n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_name= on <self:AStdImport>*/
1454 var30
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1455 if (var30
== NULL
) {
1456 var31
= 0; /* <var_old_child:ANode> cannot be null */
1458 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable AAnnotations> */
1459 var_other
= var_old_child
;
1461 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable AAnnotations(AAnnotations)> */
1462 var36
= var30
== var_other
;
1465 RET_LABEL35
:(void)0;
1470 RET_LABEL33
:(void)0;
1475 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1476 cltype38
= type_nullable_parser_nodes__AAnnotations
.color
;
1477 idtype39
= type_nullable_parser_nodes__AAnnotations
.id
;
1478 if(var_new_child
== NULL
) {
1481 if(cltype38
>= var_new_child
->type
->table_size
) {
1484 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
1487 if (unlikely(!var37
)) {
1488 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1489 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name40
);
1490 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 177);
1494 parser_prod__AStdImport__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_annotations= on <self:AStdImport>*/
1501 /* method parser_prod#AStdImport#replace_child for (self: Object, ANode, nullable ANode) */
1502 void VIRTUAL_parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1503 parser_prod__AStdImport__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStdImport#replace_child on <self:Object(AStdImport)>*/
1506 /* method parser_prod#AStdImport#n_visibility= for (self: AStdImport, AVisibility) */
1507 void parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1508 val
* var_node
/* var node: AVisibility */;
1510 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdImport> */
1512 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1513 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1519 /* method parser_prod#AStdImport#n_visibility= for (self: Object, AVisibility) */
1520 void VIRTUAL_parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1521 parser_prod__AStdImport__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AStdImport#n_visibility= on <self:Object(AStdImport)>*/
1524 /* method parser_prod#AStdImport#n_kwimport= for (self: AStdImport, TKwimport) */
1525 void parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1526 val
* var_node
/* var node: TKwimport */;
1528 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AStdImport> */
1530 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1531 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1537 /* method parser_prod#AStdImport#n_kwimport= for (self: Object, TKwimport) */
1538 void VIRTUAL_parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1539 parser_prod__AStdImport__n_kwimport_61d(self
, p0
); /* Direct call parser_prod#AStdImport#n_kwimport= on <self:Object(AStdImport)>*/
1542 /* method parser_prod#AStdImport#n_name= for (self: AStdImport, AModuleName) */
1543 void parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1544 val
* var_node
/* var node: AModuleName */;
1546 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_node
; /* _n_name on <self:AStdImport> */
1548 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
1549 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
1555 /* method parser_prod#AStdImport#n_name= for (self: Object, AModuleName) */
1556 void VIRTUAL_parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1557 parser_prod__AStdImport__n_name_61d(self
, p0
); /* Direct call parser_prod#AStdImport#n_name= on <self:Object(AStdImport)>*/
1560 /* method parser_prod#AStdImport#n_annotations= for (self: AStdImport, nullable AAnnotations) */
1561 void parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1562 val
* var_node
/* var node: nullable AAnnotations */;
1563 val
* var
/* : null */;
1564 short int var1
/* : Bool */;
1565 short int var2
/* : Bool */;
1566 val
* var_other
/* var other: nullable Object */;
1567 short int var4
/* : Bool */;
1568 short int var5
/* : Bool */;
1569 short int var6
/* : Bool */;
1571 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdImport> */
1573 if (var_node
== NULL
) {
1574 var1
= 0; /* is null */
1576 var1
= 1; /* arg is null and recv is not */
1579 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
1582 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
1594 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1595 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1603 /* method parser_prod#AStdImport#n_annotations= for (self: Object, nullable AAnnotations) */
1604 void VIRTUAL_parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1605 parser_prod__AStdImport__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AStdImport#n_annotations= on <self:Object(AStdImport)>*/
1608 /* method parser_prod#AStdImport#visit_all for (self: AStdImport, Visitor) */
1609 void parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1610 val
* var_v
/* var v: Visitor */;
1611 val
* var
/* : AVisibility */;
1612 val
* var1
/* : TKwimport */;
1613 val
* var2
/* : AModuleName */;
1614 val
* var3
/* : nullable AAnnotations */;
1616 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1617 if (unlikely(var
== NULL
)) {
1618 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1619 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 206);
1623 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1625 var1
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1626 if (unlikely(var1
== NULL
)) {
1627 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1628 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 207);
1632 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1634 var2
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1635 if (unlikely(var2
== NULL
)) {
1636 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1637 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 208);
1641 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1643 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1645 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1649 /* method parser_prod#AStdImport#visit_all for (self: Object, Visitor) */
1650 void VIRTUAL_parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1651 parser_prod__AStdImport__visit_all(self
, p0
); /* Direct call parser_prod#AStdImport#visit_all on <self:Object(AStdImport)>*/
1654 /* method parser_prod#ANoImport#init_anoimport for (self: ANoImport, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1655 void parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1656 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1657 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1658 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
1659 var_n_visibility
= p0
;
1660 var_n_kwimport
= p1
;
1662 if (unlikely(var_n_visibility
== NULL
)) {
1663 PRINT_ERROR("Runtime error: %s", "Cast failed");
1664 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 219);
1667 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ANoImport> */
1668 if (var_n_visibility
== NULL
) {
1669 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1670 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 220);
1673 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1674 if (unlikely(var_n_visibility
== NULL
)) {
1675 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1676 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1679 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1683 if (unlikely(var_n_kwimport
== NULL
)) {
1684 PRINT_ERROR("Runtime error: %s", "Cast failed");
1685 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 221);
1688 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:ANoImport> */
1689 if (var_n_kwimport
== NULL
) {
1690 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1691 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 222);
1694 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1695 if (unlikely(var_n_kwimport
== NULL
)) {
1696 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1697 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1700 var_n_kwimport
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1704 if (unlikely(var_n_kwend
== NULL
)) {
1705 PRINT_ERROR("Runtime error: %s", "Cast failed");
1706 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 223);
1709 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ANoImport> */
1710 if (var_n_kwend
== NULL
) {
1711 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1712 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 224);
1715 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
1716 if (unlikely(var_n_kwend
== NULL
)) {
1717 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1718 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
1721 var_n_kwend
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
1727 /* method parser_prod#ANoImport#init_anoimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1728 void VIRTUAL_parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1729 parser_prod__ANoImport__init_anoimport(self
, p0
, p1
, p2
); /* Direct call parser_prod#ANoImport#init_anoimport on <self:Object(ANoImport)>*/
1732 /* method parser_prod#ANoImport#replace_child for (self: ANoImport, ANode, nullable ANode) */
1733 void parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1734 val
* var_old_child
/* var old_child: ANode */;
1735 val
* var_new_child
/* var new_child: nullable ANode */;
1736 val
* var
/* : AVisibility */;
1737 short int var1
/* : Bool */;
1738 short int var2
/* : Bool */;
1739 val
* var_other
/* var other: nullable Object */;
1740 short int var4
/* : Bool */;
1741 short int var6
/* : Bool */;
1742 short int var7
/* : Bool */;
1745 const char* var_class_name
;
1746 val
* var8
/* : TKwimport */;
1747 short int var9
/* : Bool */;
1748 short int var10
/* : Bool */;
1749 short int var12
/* : Bool */;
1750 short int var14
/* : Bool */;
1751 short int var15
/* : Bool */;
1754 const char* var_class_name18
;
1755 val
* var19
/* : TKwend */;
1756 short int var20
/* : Bool */;
1757 short int var21
/* : Bool */;
1758 short int var23
/* : Bool */;
1759 short int var25
/* : Bool */;
1760 short int var26
/* : Bool */;
1763 const char* var_class_name29
;
1766 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1767 if (unlikely(var
== NULL
)) {
1768 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1769 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 229);
1773 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1774 var_other
= var_old_child
;
1776 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1777 var6
= var
== var_other
;
1790 /* <var_new_child:nullable ANode> isa AVisibility */
1791 cltype
= type_parser_nodes__AVisibility
.color
;
1792 idtype
= type_parser_nodes__AVisibility
.id
;
1793 if(var_new_child
== NULL
) {
1796 if(cltype
>= var_new_child
->type
->table_size
) {
1799 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1802 if (unlikely(!var7
)) {
1803 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1804 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1805 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 230);
1809 parser_prod__ANoImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_visibility= on <self:ANoImport>*/
1814 var8
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1815 if (unlikely(var8
== NULL
)) {
1816 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1817 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 233);
1821 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwimport> */
1822 var_other
= var_old_child
;
1824 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwimport> */
1825 var14
= var8
== var_other
;
1828 RET_LABEL13
:(void)0;
1833 RET_LABEL11
:(void)0;
1838 /* <var_new_child:nullable ANode> isa TKwimport */
1839 cltype16
= type_parser_nodes__TKwimport
.color
;
1840 idtype17
= type_parser_nodes__TKwimport
.id
;
1841 if(var_new_child
== NULL
) {
1844 if(cltype16
>= var_new_child
->type
->table_size
) {
1847 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1850 if (unlikely(!var15
)) {
1851 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1852 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name18
);
1853 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 234);
1857 parser_prod__ANoImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwimport= on <self:ANoImport>*/
1862 var19
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1863 if (unlikely(var19
== NULL
)) {
1864 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1865 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 237);
1869 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwend> */
1870 var_other
= var_old_child
;
1872 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwend> */
1873 var25
= var19
== var_other
;
1876 RET_LABEL24
:(void)0;
1881 RET_LABEL22
:(void)0;
1886 /* <var_new_child:nullable ANode> isa TKwend */
1887 cltype27
= type_parser_nodes__TKwend
.color
;
1888 idtype28
= type_parser_nodes__TKwend
.id
;
1889 if(var_new_child
== NULL
) {
1892 if(cltype27
>= var_new_child
->type
->table_size
) {
1895 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
1898 if (unlikely(!var26
)) {
1899 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1900 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name29
);
1901 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 238);
1905 parser_prod__ANoImport__n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwend= on <self:ANoImport>*/
1912 /* method parser_prod#ANoImport#replace_child for (self: Object, ANode, nullable ANode) */
1913 void VIRTUAL_parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1914 parser_prod__ANoImport__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ANoImport#replace_child on <self:Object(ANoImport)>*/
1917 /* method parser_prod#ANoImport#n_visibility= for (self: ANoImport, AVisibility) */
1918 void parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1919 val
* var_node
/* var node: AVisibility */;
1921 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:ANoImport> */
1923 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1924 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1930 /* method parser_prod#ANoImport#n_visibility= for (self: Object, AVisibility) */
1931 void VIRTUAL_parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1932 parser_prod__ANoImport__n_visibility_61d(self
, p0
); /* Direct call parser_prod#ANoImport#n_visibility= on <self:Object(ANoImport)>*/
1935 /* method parser_prod#ANoImport#n_kwimport= for (self: ANoImport, TKwimport) */
1936 void parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1937 val
* var_node
/* var node: TKwimport */;
1939 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:ANoImport> */
1941 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1942 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1948 /* method parser_prod#ANoImport#n_kwimport= for (self: Object, TKwimport) */
1949 void VIRTUAL_parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1950 parser_prod__ANoImport__n_kwimport_61d(self
, p0
); /* Direct call parser_prod#ANoImport#n_kwimport= on <self:Object(ANoImport)>*/
1953 /* method parser_prod#ANoImport#n_kwend= for (self: ANoImport, TKwend) */
1954 void parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1955 val
* var_node
/* var node: TKwend */;
1957 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_node
; /* _n_kwend on <self:ANoImport> */
1959 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
1960 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
1966 /* method parser_prod#ANoImport#n_kwend= for (self: Object, TKwend) */
1967 void VIRTUAL_parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1968 parser_prod__ANoImport__n_kwend_61d(self
, p0
); /* Direct call parser_prod#ANoImport#n_kwend= on <self:Object(ANoImport)>*/
1971 /* method parser_prod#ANoImport#visit_all for (self: ANoImport, Visitor) */
1972 void parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
1973 val
* var_v
/* var v: Visitor */;
1974 val
* var
/* : AVisibility */;
1975 val
* var1
/* : TKwimport */;
1976 val
* var2
/* : TKwend */;
1978 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1979 if (unlikely(var
== NULL
)) {
1980 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1981 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 262);
1985 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1987 var1
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1988 if (unlikely(var1
== NULL
)) {
1989 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1990 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 263);
1994 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1996 var2
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1997 if (unlikely(var2
== NULL
)) {
1998 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1999 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 264);
2003 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2007 /* method parser_prod#ANoImport#visit_all for (self: Object, Visitor) */
2008 void VIRTUAL_parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
2009 parser_prod__ANoImport__visit_all(self
, p0
); /* Direct call parser_prod#ANoImport#visit_all on <self:Object(ANoImport)>*/
2012 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: APublicVisibility, nullable TKwpublic) */
2013 void parser_prod__APublicVisibility__init_apublicvisibility(val
* self
, val
* p0
) {
2014 val
* var_n_kwpublic
/* var n_kwpublic: nullable TKwpublic */;
2015 val
* var
/* : null */;
2016 short int var1
/* : Bool */;
2017 short int var2
/* : Bool */;
2018 val
* var_other
/* var other: nullable Object */;
2019 short int var4
/* : Bool */;
2020 short int var5
/* : Bool */;
2021 short int var6
/* : Bool */;
2022 var_n_kwpublic
= p0
;
2023 self
->attrs
[COLOR_parser_nodes__APublicVisibility___n_kwpublic
].val
= var_n_kwpublic
; /* _n_kwpublic on <self:APublicVisibility> */
2025 if (var_n_kwpublic
== NULL
) {
2026 var1
= 0; /* is null */
2028 var1
= 1; /* arg is null and recv is not */
2031 { /* Inline kernel#Object#!= (var_n_kwpublic,var) on <var_n_kwpublic:nullable TKwpublic> */
2034 var5
= ((short int (*)(val
*, val
*))(var_n_kwpublic
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwpublic
, var_other
) /* == on <var_n_kwpublic:nullable TKwpublic(TKwpublic)>*/;
2046 { /* Inline parser_nodes#ANode#parent= (var_n_kwpublic,self) on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
2047 var_n_kwpublic
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
2055 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: Object, nullable TKwpublic) */
2056 void VIRTUAL_parser_prod__APublicVisibility__init_apublicvisibility(val
* self
, val
* p0
) {
2057 parser_prod__APublicVisibility__init_apublicvisibility(self
, p0
); /* Direct call parser_prod#APublicVisibility#init_apublicvisibility on <self:Object(APublicVisibility)>*/
2060 /* method parser_prod#APublicVisibility#replace_child for (self: APublicVisibility, ANode, nullable ANode) */
2061 void parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2062 val
* var_old_child
/* var old_child: ANode */;
2063 val
* var_new_child
/* var new_child: nullable ANode */;
2064 val
* var
/* : nullable TKwpublic */;
2065 short int var1
/* : Bool */;
2066 short int var2
/* : Bool */;
2067 val
* var_other
/* var other: nullable Object */;
2068 short int var4
/* : Bool */;
2069 short int var6
/* : Bool */;
2070 short int var7
/* : Bool */;
2073 const char* var_class_name
;
2076 var
= self
->attrs
[COLOR_parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
2078 var1
= 0; /* <var_old_child:ANode> cannot be null */
2080 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwpublic> */
2081 var_other
= var_old_child
;
2083 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwpublic(TKwpublic)> */
2084 var6
= var
== var_other
;
2097 /* <var_new_child:nullable ANode> isa nullable TKwpublic */
2098 cltype
= type_nullable_parser_nodes__TKwpublic
.color
;
2099 idtype
= type_nullable_parser_nodes__TKwpublic
.id
;
2100 if(var_new_child
== NULL
) {
2103 if(cltype
>= var_new_child
->type
->table_size
) {
2106 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2109 if (unlikely(!var7
)) {
2110 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2111 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwpublic", var_class_name
);
2112 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 279);
2116 parser_prod__APublicVisibility__n_kwpublic_61d(self
, var_new_child
); /* Direct call parser_prod#APublicVisibility#n_kwpublic= on <self:APublicVisibility>*/
2123 /* method parser_prod#APublicVisibility#replace_child for (self: Object, ANode, nullable ANode) */
2124 void VIRTUAL_parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2125 parser_prod__APublicVisibility__replace_child(self
, p0
, p1
); /* Direct call parser_prod#APublicVisibility#replace_child on <self:Object(APublicVisibility)>*/
2128 /* method parser_prod#APublicVisibility#n_kwpublic= for (self: APublicVisibility, nullable TKwpublic) */
2129 void parser_prod__APublicVisibility__n_kwpublic_61d(val
* self
, val
* p0
) {
2130 val
* var_node
/* var node: nullable TKwpublic */;
2131 val
* var
/* : null */;
2132 short int var1
/* : Bool */;
2133 short int var2
/* : Bool */;
2134 val
* var_other
/* var other: nullable Object */;
2135 short int var4
/* : Bool */;
2136 short int var5
/* : Bool */;
2137 short int var6
/* : Bool */;
2139 self
->attrs
[COLOR_parser_nodes__APublicVisibility___n_kwpublic
].val
= var_node
; /* _n_kwpublic on <self:APublicVisibility> */
2141 if (var_node
== NULL
) {
2142 var1
= 0; /* is null */
2144 var1
= 1; /* arg is null and recv is not */
2147 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwpublic> */
2150 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwpublic(TKwpublic)>*/;
2162 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwpublic(TKwpublic)> */
2163 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwpublic(TKwpublic)> */
2171 /* method parser_prod#APublicVisibility#n_kwpublic= for (self: Object, nullable TKwpublic) */
2172 void VIRTUAL_parser_prod__APublicVisibility__n_kwpublic_61d(val
* self
, val
* p0
) {
2173 parser_prod__APublicVisibility__n_kwpublic_61d(self
, p0
); /* Direct call parser_prod#APublicVisibility#n_kwpublic= on <self:Object(APublicVisibility)>*/
2176 /* method parser_prod#APublicVisibility#visit_all for (self: APublicVisibility, Visitor) */
2177 void parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
2178 val
* var_v
/* var v: Visitor */;
2179 val
* var
/* : nullable TKwpublic */;
2181 var
= self
->attrs
[COLOR_parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
2183 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2187 /* method parser_prod#APublicVisibility#visit_all for (self: Object, Visitor) */
2188 void VIRTUAL_parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
2189 parser_prod__APublicVisibility__visit_all(self
, p0
); /* Direct call parser_prod#APublicVisibility#visit_all on <self:Object(APublicVisibility)>*/
2192 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: APrivateVisibility, nullable TKwprivate) */
2193 void parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
2194 val
* var_n_kwprivate
/* var n_kwprivate: nullable TKwprivate */;
2195 var_n_kwprivate
= p0
;
2196 if (unlikely(var_n_kwprivate
== NULL
)) {
2197 PRINT_ERROR("Runtime error: %s", "Cast failed");
2198 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 301);
2201 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_n_kwprivate
; /* _n_kwprivate on <self:APrivateVisibility> */
2202 if (var_n_kwprivate
== NULL
) {
2203 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2204 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 302);
2207 { /* Inline parser_nodes#ANode#parent= (var_n_kwprivate,self) on <var_n_kwprivate:nullable TKwprivate> */
2208 if (unlikely(var_n_kwprivate
== NULL
)) {
2209 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2210 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2213 var_n_kwprivate
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprivate:nullable TKwprivate> */
2219 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: Object, nullable TKwprivate) */
2220 void VIRTUAL_parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
2221 parser_prod__APrivateVisibility__init_aprivatevisibility(self
, p0
); /* Direct call parser_prod#APrivateVisibility#init_aprivatevisibility on <self:Object(APrivateVisibility)>*/
2224 /* method parser_prod#APrivateVisibility#replace_child for (self: APrivateVisibility, ANode, nullable ANode) */
2225 void parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2226 val
* var_old_child
/* var old_child: ANode */;
2227 val
* var_new_child
/* var new_child: nullable ANode */;
2228 val
* var
/* : TKwprivate */;
2229 short int var1
/* : Bool */;
2230 short int var2
/* : Bool */;
2231 val
* var_other
/* var other: nullable Object */;
2232 short int var4
/* : Bool */;
2233 short int var6
/* : Bool */;
2234 short int var7
/* : Bool */;
2237 const char* var_class_name
;
2240 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2241 if (unlikely(var
== NULL
)) {
2242 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2243 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 307);
2247 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprivate> */
2248 var_other
= var_old_child
;
2250 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprivate> */
2251 var6
= var
== var_other
;
2264 /* <var_new_child:nullable ANode> isa TKwprivate */
2265 cltype
= type_parser_nodes__TKwprivate
.color
;
2266 idtype
= type_parser_nodes__TKwprivate
.id
;
2267 if(var_new_child
== NULL
) {
2270 if(cltype
>= var_new_child
->type
->table_size
) {
2273 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2276 if (unlikely(!var7
)) {
2277 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2278 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprivate", var_class_name
);
2279 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 308);
2283 parser_prod__APrivateVisibility__n_kwprivate_61d(self
, var_new_child
); /* Direct call parser_prod#APrivateVisibility#n_kwprivate= on <self:APrivateVisibility>*/
2290 /* method parser_prod#APrivateVisibility#replace_child for (self: Object, ANode, nullable ANode) */
2291 void VIRTUAL_parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2292 parser_prod__APrivateVisibility__replace_child(self
, p0
, p1
); /* Direct call parser_prod#APrivateVisibility#replace_child on <self:Object(APrivateVisibility)>*/
2295 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: APrivateVisibility, TKwprivate) */
2296 void parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
2297 val
* var_node
/* var node: TKwprivate */;
2299 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_node
; /* _n_kwprivate on <self:APrivateVisibility> */
2301 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprivate> */
2302 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprivate> */
2308 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: Object, TKwprivate) */
2309 void VIRTUAL_parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
2310 parser_prod__APrivateVisibility__n_kwprivate_61d(self
, p0
); /* Direct call parser_prod#APrivateVisibility#n_kwprivate= on <self:Object(APrivateVisibility)>*/
2313 /* method parser_prod#APrivateVisibility#visit_all for (self: APrivateVisibility, Visitor) */
2314 void parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
2315 val
* var_v
/* var v: Visitor */;
2316 val
* var
/* : TKwprivate */;
2318 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2319 if (unlikely(var
== NULL
)) {
2320 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2321 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 322);
2325 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2329 /* method parser_prod#APrivateVisibility#visit_all for (self: Object, Visitor) */
2330 void VIRTUAL_parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
2331 parser_prod__APrivateVisibility__visit_all(self
, p0
); /* Direct call parser_prod#APrivateVisibility#visit_all on <self:Object(APrivateVisibility)>*/
2334 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: AProtectedVisibility, nullable TKwprotected) */
2335 void parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
2336 val
* var_n_kwprotected
/* var n_kwprotected: nullable TKwprotected */;
2337 var_n_kwprotected
= p0
;
2338 if (unlikely(var_n_kwprotected
== NULL
)) {
2339 PRINT_ERROR("Runtime error: %s", "Cast failed");
2340 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 330);
2343 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_n_kwprotected
; /* _n_kwprotected on <self:AProtectedVisibility> */
2344 if (var_n_kwprotected
== NULL
) {
2345 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2346 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 331);
2349 { /* Inline parser_nodes#ANode#parent= (var_n_kwprotected,self) on <var_n_kwprotected:nullable TKwprotected> */
2350 if (unlikely(var_n_kwprotected
== NULL
)) {
2351 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2352 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2355 var_n_kwprotected
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprotected:nullable TKwprotected> */
2361 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: Object, nullable TKwprotected) */
2362 void VIRTUAL_parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
2363 parser_prod__AProtectedVisibility__init_aprotectedvisibility(self
, p0
); /* Direct call parser_prod#AProtectedVisibility#init_aprotectedvisibility on <self:Object(AProtectedVisibility)>*/
2366 /* method parser_prod#AProtectedVisibility#replace_child for (self: AProtectedVisibility, ANode, nullable ANode) */
2367 void parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2368 val
* var_old_child
/* var old_child: ANode */;
2369 val
* var_new_child
/* var new_child: nullable ANode */;
2370 val
* var
/* : TKwprotected */;
2371 short int var1
/* : Bool */;
2372 short int var2
/* : Bool */;
2373 val
* var_other
/* var other: nullable Object */;
2374 short int var4
/* : Bool */;
2375 short int var6
/* : Bool */;
2376 short int var7
/* : Bool */;
2379 const char* var_class_name
;
2382 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2383 if (unlikely(var
== NULL
)) {
2384 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2385 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 336);
2389 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprotected> */
2390 var_other
= var_old_child
;
2392 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprotected> */
2393 var6
= var
== var_other
;
2406 /* <var_new_child:nullable ANode> isa TKwprotected */
2407 cltype
= type_parser_nodes__TKwprotected
.color
;
2408 idtype
= type_parser_nodes__TKwprotected
.id
;
2409 if(var_new_child
== NULL
) {
2412 if(cltype
>= var_new_child
->type
->table_size
) {
2415 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2418 if (unlikely(!var7
)) {
2419 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2420 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprotected", var_class_name
);
2421 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 337);
2425 parser_prod__AProtectedVisibility__n_kwprotected_61d(self
, var_new_child
); /* Direct call parser_prod#AProtectedVisibility#n_kwprotected= on <self:AProtectedVisibility>*/
2432 /* method parser_prod#AProtectedVisibility#replace_child for (self: Object, ANode, nullable ANode) */
2433 void VIRTUAL_parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2434 parser_prod__AProtectedVisibility__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AProtectedVisibility#replace_child on <self:Object(AProtectedVisibility)>*/
2437 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: AProtectedVisibility, TKwprotected) */
2438 void parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
2439 val
* var_node
/* var node: TKwprotected */;
2441 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_node
; /* _n_kwprotected on <self:AProtectedVisibility> */
2443 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprotected> */
2444 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprotected> */
2450 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: Object, TKwprotected) */
2451 void VIRTUAL_parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
2452 parser_prod__AProtectedVisibility__n_kwprotected_61d(self
, p0
); /* Direct call parser_prod#AProtectedVisibility#n_kwprotected= on <self:Object(AProtectedVisibility)>*/
2455 /* method parser_prod#AProtectedVisibility#visit_all for (self: AProtectedVisibility, Visitor) */
2456 void parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
2457 val
* var_v
/* var v: Visitor */;
2458 val
* var
/* : TKwprotected */;
2460 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2461 if (unlikely(var
== NULL
)) {
2462 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2463 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 351);
2467 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2471 /* method parser_prod#AProtectedVisibility#visit_all for (self: Object, Visitor) */
2472 void VIRTUAL_parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
2473 parser_prod__AProtectedVisibility__visit_all(self
, p0
); /* Direct call parser_prod#AProtectedVisibility#visit_all on <self:Object(AProtectedVisibility)>*/
2476 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: AIntrudeVisibility, nullable TKwintrude) */
2477 void parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
2478 val
* var_n_kwintrude
/* var n_kwintrude: nullable TKwintrude */;
2479 var_n_kwintrude
= p0
;
2480 if (unlikely(var_n_kwintrude
== NULL
)) {
2481 PRINT_ERROR("Runtime error: %s", "Cast failed");
2482 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 359);
2485 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_n_kwintrude
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2486 if (var_n_kwintrude
== NULL
) {
2487 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2488 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 360);
2491 { /* Inline parser_nodes#ANode#parent= (var_n_kwintrude,self) on <var_n_kwintrude:nullable TKwintrude> */
2492 if (unlikely(var_n_kwintrude
== NULL
)) {
2493 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2494 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2497 var_n_kwintrude
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwintrude:nullable TKwintrude> */
2503 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: Object, nullable TKwintrude) */
2504 void VIRTUAL_parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
2505 parser_prod__AIntrudeVisibility__init_aintrudevisibility(self
, p0
); /* Direct call parser_prod#AIntrudeVisibility#init_aintrudevisibility on <self:Object(AIntrudeVisibility)>*/
2508 /* method parser_prod#AIntrudeVisibility#replace_child for (self: AIntrudeVisibility, ANode, nullable ANode) */
2509 void parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2510 val
* var_old_child
/* var old_child: ANode */;
2511 val
* var_new_child
/* var new_child: nullable ANode */;
2512 val
* var
/* : TKwintrude */;
2513 short int var1
/* : Bool */;
2514 short int var2
/* : Bool */;
2515 val
* var_other
/* var other: nullable Object */;
2516 short int var4
/* : Bool */;
2517 short int var6
/* : Bool */;
2518 short int var7
/* : Bool */;
2521 const char* var_class_name
;
2524 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2525 if (unlikely(var
== NULL
)) {
2526 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2527 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 365);
2531 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwintrude> */
2532 var_other
= var_old_child
;
2534 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwintrude> */
2535 var6
= var
== var_other
;
2548 /* <var_new_child:nullable ANode> isa TKwintrude */
2549 cltype
= type_parser_nodes__TKwintrude
.color
;
2550 idtype
= type_parser_nodes__TKwintrude
.id
;
2551 if(var_new_child
== NULL
) {
2554 if(cltype
>= var_new_child
->type
->table_size
) {
2557 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2560 if (unlikely(!var7
)) {
2561 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2562 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwintrude", var_class_name
);
2563 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 366);
2567 parser_prod__AIntrudeVisibility__n_kwintrude_61d(self
, var_new_child
); /* Direct call parser_prod#AIntrudeVisibility#n_kwintrude= on <self:AIntrudeVisibility>*/
2574 /* method parser_prod#AIntrudeVisibility#replace_child for (self: Object, ANode, nullable ANode) */
2575 void VIRTUAL_parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2576 parser_prod__AIntrudeVisibility__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AIntrudeVisibility#replace_child on <self:Object(AIntrudeVisibility)>*/
2579 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: AIntrudeVisibility, TKwintrude) */
2580 void parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
2581 val
* var_node
/* var node: TKwintrude */;
2583 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_node
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2585 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwintrude> */
2586 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwintrude> */
2592 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: Object, TKwintrude) */
2593 void VIRTUAL_parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
2594 parser_prod__AIntrudeVisibility__n_kwintrude_61d(self
, p0
); /* Direct call parser_prod#AIntrudeVisibility#n_kwintrude= on <self:Object(AIntrudeVisibility)>*/
2597 /* method parser_prod#AIntrudeVisibility#visit_all for (self: AIntrudeVisibility, Visitor) */
2598 void parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2599 val
* var_v
/* var v: Visitor */;
2600 val
* var
/* : TKwintrude */;
2602 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2603 if (unlikely(var
== NULL
)) {
2604 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2605 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 380);
2609 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2613 /* method parser_prod#AIntrudeVisibility#visit_all for (self: Object, Visitor) */
2614 void VIRTUAL_parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2615 parser_prod__AIntrudeVisibility__visit_all(self
, p0
); /* Direct call parser_prod#AIntrudeVisibility#visit_all on <self:Object(AIntrudeVisibility)>*/
2618 /* 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) */
2619 void 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
) {
2620 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2621 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2622 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2623 val
* var_n_classkind
/* var n_classkind: nullable AClasskind */;
2624 val
* var_n_id
/* var n_id: nullable TClassid */;
2625 val
* var_n_formaldefs
/* var n_formaldefs: Collection[Object] */;
2626 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2627 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
2628 val
* var_n_superclasses
/* var n_superclasses: Collection[Object] */;
2629 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
2630 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
2631 val
* var
/* : null */;
2632 short int var1
/* : Bool */;
2633 short int var2
/* : Bool */;
2634 val
* var_other
/* var other: nullable Object */;
2635 short int var4
/* : Bool */;
2636 short int var5
/* : Bool */;
2637 short int var6
/* : Bool */;
2638 val
* var8
/* : null */;
2639 short int var9
/* : Bool */;
2640 short int var10
/* : Bool */;
2641 short int var12
/* : Bool */;
2642 short int var13
/* : Bool */;
2643 short int var14
/* : Bool */;
2644 val
* var18
/* : null */;
2645 short int var19
/* : Bool */;
2646 short int var20
/* : Bool */;
2647 short int var22
/* : Bool */;
2648 short int var23
/* : Bool */;
2649 short int var24
/* : Bool */;
2650 val
* var26
/* : ANodes[AFormaldef] */;
2651 val
* var28
/* : ANodes[AFormaldef] */;
2652 val
* var29
/* : null */;
2653 short int var30
/* : Bool */;
2654 short int var31
/* : Bool */;
2655 short int var33
/* : Bool */;
2656 short int var34
/* : Bool */;
2657 short int var35
/* : Bool */;
2658 val
* var37
/* : null */;
2659 short int var38
/* : Bool */;
2660 short int var39
/* : Bool */;
2661 short int var41
/* : Bool */;
2662 short int var42
/* : Bool */;
2663 short int var43
/* : Bool */;
2664 val
* var45
/* : ANodes[ASuperclass] */;
2665 val
* var47
/* : ANodes[ASuperclass] */;
2666 val
* var48
/* : ANodes[APropdef] */;
2667 val
* var50
/* : ANodes[APropdef] */;
2670 var_n_visibility
= p2
;
2671 var_n_classkind
= p3
;
2673 var_n_formaldefs
= p5
;
2674 var_n_annotations
= p6
;
2675 var_n_extern_code_block
= p7
;
2676 var_n_superclasses
= p8
;
2677 var_n_propdefs
= p9
;
2679 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AStdClassdef> */
2681 if (var_n_doc
== NULL
) {
2682 var1
= 0; /* is null */
2684 var1
= 1; /* arg is null and recv is not */
2687 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
2690 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
2702 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
2703 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
2709 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AStdClassdef> */
2711 if (var_n_kwredef
== NULL
) {
2712 var9
= 0; /* is null */
2714 var9
= 1; /* arg is null and recv is not */
2717 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
2720 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
2726 RET_LABEL11
:(void)0;
2732 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2733 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2734 RET_LABEL15
:(void)0;
2739 if (unlikely(var_n_visibility
== NULL
)) {
2740 PRINT_ERROR("Runtime error: %s", "Cast failed");
2741 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 402);
2744 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdClassdef> */
2745 if (var_n_visibility
== NULL
) {
2746 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2747 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 403);
2750 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
2751 if (unlikely(var_n_visibility
== NULL
)) {
2752 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2753 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2756 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
2757 RET_LABEL16
:(void)0;
2760 if (unlikely(var_n_classkind
== NULL
)) {
2761 PRINT_ERROR("Runtime error: %s", "Cast failed");
2762 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 404);
2765 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_n_classkind
; /* _n_classkind on <self:AStdClassdef> */
2766 if (var_n_classkind
== NULL
) {
2767 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2768 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 405);
2771 { /* Inline parser_nodes#ANode#parent= (var_n_classkind,self) on <var_n_classkind:nullable AClasskind> */
2772 if (unlikely(var_n_classkind
== NULL
)) {
2773 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2774 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2777 var_n_classkind
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_classkind:nullable AClasskind> */
2778 RET_LABEL17
:(void)0;
2781 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_n_id
; /* _n_id on <self:AStdClassdef> */
2783 if (var_n_id
== NULL
) {
2784 var19
= 0; /* is null */
2786 var19
= 1; /* arg is null and recv is not */
2789 { /* Inline kernel#Object#!= (var_n_id,var18) on <var_n_id:nullable TClassid> */
2792 var23
= ((short int (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_id
, var_other
) /* == on <var_n_id:nullable TClassid(TClassid)>*/;
2798 RET_LABEL21
:(void)0;
2804 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid(TClassid)> */
2805 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid(TClassid)> */
2806 RET_LABEL25
:(void)0;
2812 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
2813 var28
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2814 if (unlikely(var28
== NULL
)) {
2815 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2816 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 940);
2820 RET_LABEL27
:(void)0;
2824 parser_nodes__ANodes__unsafe_add_all(var26
, var_n_formaldefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var26:ANodes[AFormaldef]>*/
2826 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdClassdef> */
2828 if (var_n_annotations
== NULL
) {
2829 var30
= 0; /* is null */
2831 var30
= 1; /* arg is null and recv is not */
2834 { /* Inline kernel#Object#!= (var_n_annotations,var29) on <var_n_annotations:nullable AAnnotations> */
2837 var34
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
2843 RET_LABEL32
:(void)0;
2849 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2850 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2851 RET_LABEL36
:(void)0;
2856 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AStdClassdef> */
2858 if (var_n_extern_code_block
== NULL
) {
2859 var38
= 0; /* is null */
2861 var38
= 1; /* arg is null and recv is not */
2864 { /* Inline kernel#Object#!= (var_n_extern_code_block,var37) on <var_n_extern_code_block:nullable AExternCodeBlock> */
2867 var42
= ((short int (*)(val
*, val
*))(var_n_extern_code_block
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
) /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
2873 RET_LABEL40
:(void)0;
2879 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2880 var_n_extern_code_block
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2881 RET_LABEL44
:(void)0;
2887 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
2888 var47
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2889 if (unlikely(var47
== NULL
)) {
2890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
2891 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 942);
2895 RET_LABEL46
:(void)0;
2899 parser_nodes__ANodes__unsafe_add_all(var45
, var_n_superclasses
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var45:ANodes[ASuperclass]>*/
2902 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
2903 var50
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2904 if (unlikely(var50
== NULL
)) {
2905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
2906 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
2910 RET_LABEL49
:(void)0;
2914 parser_nodes__ANodes__unsafe_add_all(var48
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var48:ANodes[APropdef]>*/
2916 if (unlikely(var_n_kwend
== NULL
)) {
2917 PRINT_ERROR("Runtime error: %s", "Cast failed");
2918 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 415);
2921 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AStdClassdef> */
2922 if (var_n_kwend
== NULL
) {
2923 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2924 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 416);
2927 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
2928 if (unlikely(var_n_kwend
== NULL
)) {
2929 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2930 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
2933 var_n_kwend
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
2934 RET_LABEL51
:(void)0;
2939 /* method parser_prod#AStdClassdef#init_astdclassdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AClasskind, nullable TClassid, Collection[Object], nullable AAnnotations, nullable AExternCodeBlock, Collection[Object], Collection[Object], nullable TKwend) */
2940 void VIRTUAL_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
) {
2941 parser_prod__AStdClassdef__init_astdclassdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
); /* Direct call parser_prod#AStdClassdef#init_astdclassdef on <self:Object(AStdClassdef)>*/
2944 /* method parser_prod#AStdClassdef#replace_child for (self: AStdClassdef, ANode, nullable ANode) */
2945 void parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
2946 val
* var_old_child
/* var old_child: ANode */;
2947 val
* var_new_child
/* var new_child: nullable ANode */;
2948 val
* var
/* : nullable ADoc */;
2949 short int var1
/* : Bool */;
2950 short int var2
/* : Bool */;
2951 val
* var_other
/* var other: nullable Object */;
2952 short int var4
/* : Bool */;
2953 short int var6
/* : Bool */;
2954 short int var7
/* : Bool */;
2957 const char* var_class_name
;
2958 val
* var8
/* : nullable TKwredef */;
2959 short int var9
/* : Bool */;
2960 short int var10
/* : Bool */;
2961 short int var12
/* : Bool */;
2962 short int var14
/* : Bool */;
2963 short int var15
/* : Bool */;
2966 const char* var_class_name18
;
2967 val
* var19
/* : AVisibility */;
2968 short int var20
/* : Bool */;
2969 short int var21
/* : Bool */;
2970 short int var23
/* : Bool */;
2971 short int var25
/* : Bool */;
2972 short int var26
/* : Bool */;
2975 const char* var_class_name29
;
2976 val
* var30
/* : AClasskind */;
2977 short int var31
/* : Bool */;
2978 short int var32
/* : Bool */;
2979 short int var34
/* : Bool */;
2980 short int var36
/* : Bool */;
2981 short int var37
/* : Bool */;
2984 const char* var_class_name40
;
2985 val
* var41
/* : nullable TClassid */;
2986 short int var42
/* : Bool */;
2987 short int var43
/* : Bool */;
2988 short int var45
/* : Bool */;
2989 short int var47
/* : Bool */;
2990 short int var48
/* : Bool */;
2993 const char* var_class_name51
;
2994 val
* var52
/* : ANodes[AFormaldef] */;
2995 val
* var54
/* : ANodes[AFormaldef] */;
2996 short int var55
/* : Bool */;
2997 val
* var56
/* : nullable AAnnotations */;
2998 short int var57
/* : Bool */;
2999 short int var58
/* : Bool */;
3000 short int var60
/* : Bool */;
3001 short int var62
/* : Bool */;
3002 short int var63
/* : Bool */;
3005 const char* var_class_name66
;
3006 val
* var67
/* : nullable AExternCodeBlock */;
3007 short int var68
/* : Bool */;
3008 short int var69
/* : Bool */;
3009 short int var71
/* : Bool */;
3010 short int var73
/* : Bool */;
3011 short int var74
/* : Bool */;
3014 const char* var_class_name77
;
3015 val
* var78
/* : ANodes[ASuperclass] */;
3016 val
* var80
/* : ANodes[ASuperclass] */;
3017 short int var81
/* : Bool */;
3018 val
* var82
/* : ANodes[APropdef] */;
3019 val
* var84
/* : ANodes[APropdef] */;
3020 short int var85
/* : Bool */;
3021 val
* var86
/* : TKwend */;
3022 short int var87
/* : Bool */;
3023 short int var88
/* : Bool */;
3024 short int var90
/* : Bool */;
3025 short int var92
/* : Bool */;
3026 short int var93
/* : Bool */;
3029 const char* var_class_name96
;
3032 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3034 var1
= 0; /* <var_old_child:ANode> cannot be null */
3036 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
3037 var_other
= var_old_child
;
3039 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
3040 var6
= var
== var_other
;
3053 /* <var_new_child:nullable ANode> isa nullable ADoc */
3054 cltype
= type_nullable_parser_nodes__ADoc
.color
;
3055 idtype
= type_nullable_parser_nodes__ADoc
.id
;
3056 if(var_new_child
== NULL
) {
3059 if(cltype
>= var_new_child
->type
->table_size
) {
3062 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3065 if (unlikely(!var7
)) {
3066 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3067 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
3068 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 422);
3072 parser_prod__AStdClassdef__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_doc= on <self:AStdClassdef>*/
3077 var8
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3079 var9
= 0; /* <var_old_child:ANode> cannot be null */
3081 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
3082 var_other
= var_old_child
;
3084 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
3085 var14
= var8
== var_other
;
3088 RET_LABEL13
:(void)0;
3093 RET_LABEL11
:(void)0;
3098 /* <var_new_child:nullable ANode> isa nullable TKwredef */
3099 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
3100 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
3101 if(var_new_child
== NULL
) {
3104 if(cltype16
>= var_new_child
->type
->table_size
) {
3107 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
3110 if (unlikely(!var15
)) {
3111 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3112 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
3113 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 426);
3117 parser_prod__AStdClassdef__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwredef= on <self:AStdClassdef>*/
3122 var19
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3123 if (unlikely(var19
== NULL
)) {
3124 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
3125 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 429);
3129 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:AVisibility> */
3130 var_other
= var_old_child
;
3132 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:AVisibility> */
3133 var25
= var19
== var_other
;
3136 RET_LABEL24
:(void)0;
3141 RET_LABEL22
:(void)0;
3146 /* <var_new_child:nullable ANode> isa AVisibility */
3147 cltype27
= type_parser_nodes__AVisibility
.color
;
3148 idtype28
= type_parser_nodes__AVisibility
.id
;
3149 if(var_new_child
== NULL
) {
3152 if(cltype27
>= var_new_child
->type
->table_size
) {
3155 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
3158 if (unlikely(!var26
)) {
3159 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3160 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
3161 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 430);
3165 parser_prod__AStdClassdef__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_visibility= on <self:AStdClassdef>*/
3170 var30
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3171 if (unlikely(var30
== NULL
)) {
3172 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
3173 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 433);
3177 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AClasskind> */
3178 var_other
= var_old_child
;
3180 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AClasskind> */
3181 var36
= var30
== var_other
;
3184 RET_LABEL35
:(void)0;
3189 RET_LABEL33
:(void)0;
3194 /* <var_new_child:nullable ANode> isa AClasskind */
3195 cltype38
= type_parser_nodes__AClasskind
.color
;
3196 idtype39
= type_parser_nodes__AClasskind
.id
;
3197 if(var_new_child
== NULL
) {
3200 if(cltype38
>= var_new_child
->type
->table_size
) {
3203 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
3206 if (unlikely(!var37
)) {
3207 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3208 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AClasskind", var_class_name40
);
3209 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 434);
3213 parser_prod__AStdClassdef__n_classkind_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_classkind= on <self:AStdClassdef>*/
3218 var41
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3219 if (var41
== NULL
) {
3220 var42
= 0; /* <var_old_child:ANode> cannot be null */
3222 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TClassid> */
3223 var_other
= var_old_child
;
3225 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TClassid(TClassid)> */
3226 var47
= var41
== var_other
;
3229 RET_LABEL46
:(void)0;
3234 RET_LABEL44
:(void)0;
3239 /* <var_new_child:nullable ANode> isa nullable TClassid */
3240 cltype49
= type_nullable_parser_nodes__TClassid
.color
;
3241 idtype50
= type_nullable_parser_nodes__TClassid
.id
;
3242 if(var_new_child
== NULL
) {
3245 if(cltype49
>= var_new_child
->type
->table_size
) {
3248 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
3251 if (unlikely(!var48
)) {
3252 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3253 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TClassid", var_class_name51
);
3254 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 438);
3258 parser_prod__AStdClassdef__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_id= on <self:AStdClassdef>*/
3264 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
3265 var54
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3266 if (unlikely(var54
== NULL
)) {
3267 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3268 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 940);
3272 RET_LABEL53
:(void)0;
3276 var55
= parser_nodes__ANodes__replace_child(var52
, var_old_child
, var_new_child
);
3282 var56
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3283 if (var56
== NULL
) {
3284 var57
= 0; /* <var_old_child:ANode> cannot be null */
3286 { /* Inline kernel#Object#== (var56,var_old_child) on <var56:nullable AAnnotations> */
3287 var_other
= var_old_child
;
3289 { /* Inline kernel#Object#is_same_instance (var56,var_other) on <var56:nullable AAnnotations(AAnnotations)> */
3290 var62
= var56
== var_other
;
3293 RET_LABEL61
:(void)0;
3298 RET_LABEL59
:(void)0;
3303 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3304 cltype64
= type_nullable_parser_nodes__AAnnotations
.color
;
3305 idtype65
= type_nullable_parser_nodes__AAnnotations
.id
;
3306 if(var_new_child
== NULL
) {
3309 if(cltype64
>= var_new_child
->type
->table_size
) {
3312 var63
= var_new_child
->type
->type_table
[cltype64
] == idtype65
;
3315 if (unlikely(!var63
)) {
3316 var_class_name66
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3317 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name66
);
3318 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 443);
3322 parser_prod__AStdClassdef__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_annotations= on <self:AStdClassdef>*/
3327 var67
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3328 if (var67
== NULL
) {
3329 var68
= 0; /* <var_old_child:ANode> cannot be null */
3331 { /* Inline kernel#Object#== (var67,var_old_child) on <var67:nullable AExternCodeBlock> */
3332 var_other
= var_old_child
;
3334 { /* Inline kernel#Object#is_same_instance (var67,var_other) on <var67:nullable AExternCodeBlock(AExternCodeBlock)> */
3335 var73
= var67
== var_other
;
3338 RET_LABEL72
:(void)0;
3343 RET_LABEL70
:(void)0;
3348 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
3349 cltype75
= type_nullable_parser_nodes__AExternCodeBlock
.color
;
3350 idtype76
= type_nullable_parser_nodes__AExternCodeBlock
.id
;
3351 if(var_new_child
== NULL
) {
3354 if(cltype75
>= var_new_child
->type
->table_size
) {
3357 var74
= var_new_child
->type
->type_table
[cltype75
] == idtype76
;
3360 if (unlikely(!var74
)) {
3361 var_class_name77
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3362 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name77
);
3363 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 447);
3367 parser_prod__AStdClassdef__n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_extern_code_block= on <self:AStdClassdef>*/
3373 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
3374 var80
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3375 if (unlikely(var80
== NULL
)) {
3376 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
3377 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 942);
3381 RET_LABEL79
:(void)0;
3385 var81
= parser_nodes__ANodes__replace_child(var78
, var_old_child
, var_new_child
);
3392 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3393 var84
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3394 if (unlikely(var84
== NULL
)) {
3395 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3396 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3400 RET_LABEL83
:(void)0;
3404 var85
= parser_nodes__ANodes__replace_child(var82
, var_old_child
, var_new_child
);
3410 var86
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3411 if (unlikely(var86
== NULL
)) {
3412 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3413 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 452);
3417 { /* Inline kernel#Object#== (var86,var_old_child) on <var86:TKwend> */
3418 var_other
= var_old_child
;
3420 { /* Inline kernel#Object#is_same_instance (var86,var_other) on <var86:TKwend> */
3421 var92
= var86
== var_other
;
3424 RET_LABEL91
:(void)0;
3429 RET_LABEL89
:(void)0;
3434 /* <var_new_child:nullable ANode> isa TKwend */
3435 cltype94
= type_parser_nodes__TKwend
.color
;
3436 idtype95
= type_parser_nodes__TKwend
.id
;
3437 if(var_new_child
== NULL
) {
3440 if(cltype94
>= var_new_child
->type
->table_size
) {
3443 var93
= var_new_child
->type
->type_table
[cltype94
] == idtype95
;
3446 if (unlikely(!var93
)) {
3447 var_class_name96
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3448 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name96
);
3449 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 453);
3453 parser_prod__AStdClassdef__n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwend= on <self:AStdClassdef>*/
3460 /* method parser_prod#AStdClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3461 void VIRTUAL_parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3462 parser_prod__AStdClassdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AStdClassdef#replace_child on <self:Object(AStdClassdef)>*/
3465 /* method parser_prod#AStdClassdef#n_doc= for (self: AStdClassdef, nullable ADoc) */
3466 void parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
3467 val
* var_node
/* var node: nullable ADoc */;
3468 val
* var
/* : null */;
3469 short int var1
/* : Bool */;
3470 short int var2
/* : Bool */;
3471 val
* var_other
/* var other: nullable Object */;
3472 short int var4
/* : Bool */;
3473 short int var5
/* : Bool */;
3474 short int var6
/* : Bool */;
3476 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_node
; /* _n_doc on <self:AStdClassdef> */
3478 if (var_node
== NULL
) {
3479 var1
= 0; /* is null */
3481 var1
= 1; /* arg is null and recv is not */
3484 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
3487 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
3499 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
3500 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
3508 /* method parser_prod#AStdClassdef#n_doc= for (self: Object, nullable ADoc) */
3509 void VIRTUAL_parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
3510 parser_prod__AStdClassdef__n_doc_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_doc= on <self:Object(AStdClassdef)>*/
3513 /* method parser_prod#AStdClassdef#n_kwredef= for (self: AStdClassdef, nullable TKwredef) */
3514 void parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
3515 val
* var_node
/* var node: nullable TKwredef */;
3516 val
* var
/* : null */;
3517 short int var1
/* : Bool */;
3518 short int var2
/* : Bool */;
3519 val
* var_other
/* var other: nullable Object */;
3520 short int var4
/* : Bool */;
3521 short int var5
/* : Bool */;
3522 short int var6
/* : Bool */;
3524 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AStdClassdef> */
3526 if (var_node
== NULL
) {
3527 var1
= 0; /* is null */
3529 var1
= 1; /* arg is null and recv is not */
3532 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
3535 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
3547 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
3548 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
3556 /* method parser_prod#AStdClassdef#n_kwredef= for (self: Object, nullable TKwredef) */
3557 void VIRTUAL_parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
3558 parser_prod__AStdClassdef__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_kwredef= on <self:Object(AStdClassdef)>*/
3561 /* method parser_prod#AStdClassdef#n_visibility= for (self: AStdClassdef, AVisibility) */
3562 void parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
3563 val
* var_node
/* var node: AVisibility */;
3565 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdClassdef> */
3567 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
3568 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
3574 /* method parser_prod#AStdClassdef#n_visibility= for (self: Object, AVisibility) */
3575 void VIRTUAL_parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
3576 parser_prod__AStdClassdef__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_visibility= on <self:Object(AStdClassdef)>*/
3579 /* method parser_prod#AStdClassdef#n_classkind= for (self: AStdClassdef, AClasskind) */
3580 void parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
3581 val
* var_node
/* var node: AClasskind */;
3583 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_node
; /* _n_classkind on <self:AStdClassdef> */
3585 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AClasskind> */
3586 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AClasskind> */
3592 /* method parser_prod#AStdClassdef#n_classkind= for (self: Object, AClasskind) */
3593 void VIRTUAL_parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
3594 parser_prod__AStdClassdef__n_classkind_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_classkind= on <self:Object(AStdClassdef)>*/
3597 /* method parser_prod#AStdClassdef#n_id= for (self: AStdClassdef, nullable TClassid) */
3598 void parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
3599 val
* var_node
/* var node: nullable TClassid */;
3600 val
* var
/* : null */;
3601 short int var1
/* : Bool */;
3602 short int var2
/* : Bool */;
3603 val
* var_other
/* var other: nullable Object */;
3604 short int var4
/* : Bool */;
3605 short int var5
/* : Bool */;
3606 short int var6
/* : Bool */;
3608 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_node
; /* _n_id on <self:AStdClassdef> */
3610 if (var_node
== NULL
) {
3611 var1
= 0; /* is null */
3613 var1
= 1; /* arg is null and recv is not */
3616 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TClassid> */
3619 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TClassid(TClassid)>*/;
3631 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TClassid(TClassid)> */
3632 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TClassid(TClassid)> */
3640 /* method parser_prod#AStdClassdef#n_id= for (self: Object, nullable TClassid) */
3641 void VIRTUAL_parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
3642 parser_prod__AStdClassdef__n_id_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_id= on <self:Object(AStdClassdef)>*/
3645 /* method parser_prod#AStdClassdef#n_annotations= for (self: AStdClassdef, nullable AAnnotations) */
3646 void parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
3647 val
* var_node
/* var node: nullable AAnnotations */;
3648 val
* var
/* : null */;
3649 short int var1
/* : Bool */;
3650 short int var2
/* : Bool */;
3651 val
* var_other
/* var other: nullable Object */;
3652 short int var4
/* : Bool */;
3653 short int var5
/* : Bool */;
3654 short int var6
/* : Bool */;
3656 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdClassdef> */
3658 if (var_node
== NULL
) {
3659 var1
= 0; /* is null */
3661 var1
= 1; /* arg is null and recv is not */
3664 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3667 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3679 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3680 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3688 /* method parser_prod#AStdClassdef#n_annotations= for (self: Object, nullable AAnnotations) */
3689 void VIRTUAL_parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
3690 parser_prod__AStdClassdef__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_annotations= on <self:Object(AStdClassdef)>*/
3693 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: AStdClassdef, nullable AExternCodeBlock) */
3694 void parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3695 val
* var_node
/* var node: nullable AExternCodeBlock */;
3696 val
* var
/* : null */;
3697 short int var1
/* : Bool */;
3698 short int var2
/* : Bool */;
3699 val
* var_other
/* var other: nullable Object */;
3700 short int var4
/* : Bool */;
3701 short int var5
/* : Bool */;
3702 short int var6
/* : Bool */;
3704 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AStdClassdef> */
3706 if (var_node
== NULL
) {
3707 var1
= 0; /* is null */
3709 var1
= 1; /* arg is null and recv is not */
3712 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCodeBlock> */
3715 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
3727 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3728 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3736 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
3737 void VIRTUAL_parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3738 parser_prod__AStdClassdef__n_extern_code_block_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_extern_code_block= on <self:Object(AStdClassdef)>*/
3741 /* method parser_prod#AStdClassdef#n_kwend= for (self: AStdClassdef, TKwend) */
3742 void parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3743 val
* var_node
/* var node: TKwend */;
3745 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AStdClassdef> */
3747 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
3748 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
3754 /* method parser_prod#AStdClassdef#n_kwend= for (self: Object, TKwend) */
3755 void VIRTUAL_parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3756 parser_prod__AStdClassdef__n_kwend_61d(self
, p0
); /* Direct call parser_prod#AStdClassdef#n_kwend= on <self:Object(AStdClassdef)>*/
3759 /* method parser_prod#AStdClassdef#visit_all for (self: AStdClassdef, Visitor) */
3760 void parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3761 val
* var_v
/* var v: Visitor */;
3762 val
* var
/* : nullable ADoc */;
3763 val
* var1
/* : nullable TKwredef */;
3764 val
* var2
/* : AVisibility */;
3765 val
* var3
/* : AClasskind */;
3766 val
* var4
/* : nullable TClassid */;
3767 val
* var5
/* : ANodes[AFormaldef] */;
3768 val
* var7
/* : ANodes[AFormaldef] */;
3769 val
* var8
/* : nullable AAnnotations */;
3770 val
* var9
/* : nullable AExternCodeBlock */;
3771 val
* var10
/* : ANodes[ASuperclass] */;
3772 val
* var12
/* : ANodes[ASuperclass] */;
3773 val
* var13
/* : ANodes[APropdef] */;
3774 val
* var15
/* : ANodes[APropdef] */;
3775 val
* var16
/* : TKwend */;
3777 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3779 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3781 var1
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3783 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3785 var2
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3786 if (unlikely(var2
== NULL
)) {
3787 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
3788 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 504);
3792 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3794 var3
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3795 if (unlikely(var3
== NULL
)) {
3796 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
3797 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 505);
3801 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3803 var4
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3805 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3808 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
3809 var7
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3810 if (unlikely(var7
== NULL
)) {
3811 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3812 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 940);
3820 parser_nodes__ANodes__visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AFormaldef]>*/
3822 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3824 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3826 var9
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3828 parser_nodes__Visitor__enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3831 { /* Inline parser_nodes#AStdClassdef#n_superclasses (self) on <self:AStdClassdef> */
3832 var12
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3833 if (unlikely(var12
== NULL
)) {
3834 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_superclasses");
3835 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 942);
3839 RET_LABEL11
:(void)0;
3843 parser_nodes__ANodes__visit_all(var10
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var10:ANodes[ASuperclass]>*/
3846 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3847 var15
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3848 if (unlikely(var15
== NULL
)) {
3849 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3850 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3854 RET_LABEL14
:(void)0;
3858 parser_nodes__ANodes__visit_all(var13
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var13:ANodes[APropdef]>*/
3860 var16
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3861 if (unlikely(var16
== NULL
)) {
3862 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3863 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 512);
3867 parser_nodes__Visitor__enter_visit(var_v
, var16
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3871 /* method parser_prod#AStdClassdef#visit_all for (self: Object, Visitor) */
3872 void VIRTUAL_parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3873 parser_prod__AStdClassdef__visit_all(self
, p0
); /* Direct call parser_prod#AStdClassdef#visit_all on <self:Object(AStdClassdef)>*/
3876 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: ATopClassdef, Collection[Object]) */
3877 void parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3878 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3879 val
* var
/* : ANodes[APropdef] */;
3880 val
* var2
/* : ANodes[APropdef] */;
3881 var_n_propdefs
= p0
;
3883 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3884 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3885 if (unlikely(var2
== NULL
)) {
3886 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3887 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3895 parser_nodes__ANodes__unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3899 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: Object, Collection[Object]) */
3900 void VIRTUAL_parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3901 parser_prod__ATopClassdef__init_atopclassdef(self
, p0
); /* Direct call parser_prod#ATopClassdef#init_atopclassdef on <self:Object(ATopClassdef)>*/
3904 /* method parser_prod#ATopClassdef#replace_child for (self: ATopClassdef, ANode, nullable ANode) */
3905 void parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3906 val
* var_old_child
/* var old_child: ANode */;
3907 val
* var_new_child
/* var new_child: nullable ANode */;
3908 val
* var
/* : ANodes[APropdef] */;
3909 val
* var2
/* : ANodes[APropdef] */;
3910 short int var3
/* : Bool */;
3914 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3915 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3916 if (unlikely(var2
== NULL
)) {
3917 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3918 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3926 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
3934 /* method parser_prod#ATopClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3935 void VIRTUAL_parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3936 parser_prod__ATopClassdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATopClassdef#replace_child on <self:Object(ATopClassdef)>*/
3939 /* method parser_prod#ATopClassdef#visit_all for (self: ATopClassdef, Visitor) */
3940 void parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3941 val
* var_v
/* var v: Visitor */;
3942 val
* var
/* : ANodes[APropdef] */;
3943 val
* var2
/* : ANodes[APropdef] */;
3946 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3947 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3948 if (unlikely(var2
== NULL
)) {
3949 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3950 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3958 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
3962 /* method parser_prod#ATopClassdef#visit_all for (self: Object, Visitor) */
3963 void VIRTUAL_parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3964 parser_prod__ATopClassdef__visit_all(self
, p0
); /* Direct call parser_prod#ATopClassdef#visit_all on <self:Object(ATopClassdef)>*/
3967 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: AMainClassdef, Collection[Object]) */
3968 void parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3969 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3970 val
* var
/* : ANodes[APropdef] */;
3971 val
* var2
/* : ANodes[APropdef] */;
3972 var_n_propdefs
= p0
;
3974 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3975 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3976 if (unlikely(var2
== NULL
)) {
3977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3978 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
3986 parser_nodes__ANodes__unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3990 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: Object, Collection[Object]) */
3991 void VIRTUAL_parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3992 parser_prod__AMainClassdef__init_amainclassdef(self
, p0
); /* Direct call parser_prod#AMainClassdef#init_amainclassdef on <self:Object(AMainClassdef)>*/
3995 /* method parser_prod#AMainClassdef#replace_child for (self: AMainClassdef, ANode, nullable ANode) */
3996 void parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3997 val
* var_old_child
/* var old_child: ANode */;
3998 val
* var_new_child
/* var new_child: nullable ANode */;
3999 val
* var
/* : ANodes[APropdef] */;
4000 val
* var2
/* : ANodes[APropdef] */;
4001 short int var3
/* : Bool */;
4005 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
4006 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
4007 if (unlikely(var2
== NULL
)) {
4008 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
4009 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
4017 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
4025 /* method parser_prod#AMainClassdef#replace_child for (self: Object, ANode, nullable ANode) */
4026 void VIRTUAL_parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
4027 parser_prod__AMainClassdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMainClassdef#replace_child on <self:Object(AMainClassdef)>*/
4030 /* method parser_prod#AMainClassdef#visit_all for (self: AMainClassdef, Visitor) */
4031 void parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
4032 val
* var_v
/* var v: Visitor */;
4033 val
* var
/* : ANodes[APropdef] */;
4034 val
* var2
/* : ANodes[APropdef] */;
4037 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
4038 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
4039 if (unlikely(var2
== NULL
)) {
4040 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
4041 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 929);
4049 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
4053 /* method parser_prod#AMainClassdef#visit_all for (self: Object, Visitor) */
4054 void VIRTUAL_parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
4055 parser_prod__AMainClassdef__visit_all(self
, p0
); /* Direct call parser_prod#AMainClassdef#visit_all on <self:Object(AMainClassdef)>*/
4058 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: AConcreteClasskind, nullable TKwclass) */
4059 void parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
4060 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4062 if (unlikely(var_n_kwclass
== NULL
)) {
4063 PRINT_ERROR("Runtime error: %s", "Cast failed");
4064 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 560);
4067 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AConcreteClasskind> */
4068 if (var_n_kwclass
== NULL
) {
4069 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4070 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 561);
4073 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
4074 if (unlikely(var_n_kwclass
== NULL
)) {
4075 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4076 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4079 var_n_kwclass
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
4085 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: Object, nullable TKwclass) */
4086 void VIRTUAL_parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
4087 parser_prod__AConcreteClasskind__init_aconcreteclasskind(self
, p0
); /* Direct call parser_prod#AConcreteClasskind#init_aconcreteclasskind on <self:Object(AConcreteClasskind)>*/
4090 /* method parser_prod#AConcreteClasskind#replace_child for (self: AConcreteClasskind, ANode, nullable ANode) */
4091 void parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4092 val
* var_old_child
/* var old_child: ANode */;
4093 val
* var_new_child
/* var new_child: nullable ANode */;
4094 val
* var
/* : TKwclass */;
4095 short int var1
/* : Bool */;
4096 short int var2
/* : Bool */;
4097 val
* var_other
/* var other: nullable Object */;
4098 short int var4
/* : Bool */;
4099 short int var6
/* : Bool */;
4100 short int var7
/* : Bool */;
4103 const char* var_class_name
;
4106 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
4107 if (unlikely(var
== NULL
)) {
4108 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4109 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 566);
4113 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwclass> */
4114 var_other
= var_old_child
;
4116 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwclass> */
4117 var6
= var
== var_other
;
4130 /* <var_new_child:nullable ANode> isa TKwclass */
4131 cltype
= type_parser_nodes__TKwclass
.color
;
4132 idtype
= type_parser_nodes__TKwclass
.id
;
4133 if(var_new_child
== NULL
) {
4136 if(cltype
>= var_new_child
->type
->table_size
) {
4139 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4142 if (unlikely(!var7
)) {
4143 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4144 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name
);
4145 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 567);
4149 parser_prod__AConcreteClasskind__n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AConcreteClasskind#n_kwclass= on <self:AConcreteClasskind>*/
4156 /* method parser_prod#AConcreteClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4157 void VIRTUAL_parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4158 parser_prod__AConcreteClasskind__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AConcreteClasskind#replace_child on <self:Object(AConcreteClasskind)>*/
4161 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: AConcreteClasskind, TKwclass) */
4162 void parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4163 val
* var_node
/* var node: TKwclass */;
4165 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AConcreteClasskind> */
4167 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
4168 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
4174 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: Object, TKwclass) */
4175 void VIRTUAL_parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4176 parser_prod__AConcreteClasskind__n_kwclass_61d(self
, p0
); /* Direct call parser_prod#AConcreteClasskind#n_kwclass= on <self:Object(AConcreteClasskind)>*/
4179 /* method parser_prod#AConcreteClasskind#visit_all for (self: AConcreteClasskind, Visitor) */
4180 void parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
4181 val
* var_v
/* var v: Visitor */;
4182 val
* var
/* : TKwclass */;
4184 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
4185 if (unlikely(var
== NULL
)) {
4186 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4187 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 581);
4191 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4195 /* method parser_prod#AConcreteClasskind#visit_all for (self: Object, Visitor) */
4196 void VIRTUAL_parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
4197 parser_prod__AConcreteClasskind__visit_all(self
, p0
); /* Direct call parser_prod#AConcreteClasskind#visit_all on <self:Object(AConcreteClasskind)>*/
4200 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: AAbstractClasskind, nullable TKwabstract, nullable TKwclass) */
4201 void parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
4202 val
* var_n_kwabstract
/* var n_kwabstract: nullable TKwabstract */;
4203 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4204 var_n_kwabstract
= p0
;
4206 if (unlikely(var_n_kwabstract
== NULL
)) {
4207 PRINT_ERROR("Runtime error: %s", "Cast failed");
4208 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 590);
4211 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_n_kwabstract
; /* _n_kwabstract on <self:AAbstractClasskind> */
4212 if (var_n_kwabstract
== NULL
) {
4213 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4214 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 591);
4217 { /* Inline parser_nodes#ANode#parent= (var_n_kwabstract,self) on <var_n_kwabstract:nullable TKwabstract> */
4218 if (unlikely(var_n_kwabstract
== NULL
)) {
4219 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4220 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4223 var_n_kwabstract
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabstract:nullable TKwabstract> */
4227 if (unlikely(var_n_kwclass
== NULL
)) {
4228 PRINT_ERROR("Runtime error: %s", "Cast failed");
4229 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 592);
4232 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AAbstractClasskind> */
4233 if (var_n_kwclass
== NULL
) {
4234 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4235 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 593);
4238 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
4239 if (unlikely(var_n_kwclass
== NULL
)) {
4240 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4241 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4244 var_n_kwclass
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
4250 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: Object, nullable TKwabstract, nullable TKwclass) */
4251 void VIRTUAL_parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
4252 parser_prod__AAbstractClasskind__init_aabstractclasskind(self
, p0
, p1
); /* Direct call parser_prod#AAbstractClasskind#init_aabstractclasskind on <self:Object(AAbstractClasskind)>*/
4255 /* method parser_prod#AAbstractClasskind#replace_child for (self: AAbstractClasskind, ANode, nullable ANode) */
4256 void parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4257 val
* var_old_child
/* var old_child: ANode */;
4258 val
* var_new_child
/* var new_child: nullable ANode */;
4259 val
* var
/* : TKwabstract */;
4260 short int var1
/* : Bool */;
4261 short int var2
/* : Bool */;
4262 val
* var_other
/* var other: nullable Object */;
4263 short int var4
/* : Bool */;
4264 short int var6
/* : Bool */;
4265 short int var7
/* : Bool */;
4268 const char* var_class_name
;
4269 val
* var8
/* : TKwclass */;
4270 short int var9
/* : Bool */;
4271 short int var10
/* : Bool */;
4272 short int var12
/* : Bool */;
4273 short int var14
/* : Bool */;
4274 short int var15
/* : Bool */;
4277 const char* var_class_name18
;
4280 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
4281 if (unlikely(var
== NULL
)) {
4282 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
4283 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 598);
4287 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabstract> */
4288 var_other
= var_old_child
;
4290 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabstract> */
4291 var6
= var
== var_other
;
4304 /* <var_new_child:nullable ANode> isa TKwabstract */
4305 cltype
= type_parser_nodes__TKwabstract
.color
;
4306 idtype
= type_parser_nodes__TKwabstract
.id
;
4307 if(var_new_child
== NULL
) {
4310 if(cltype
>= var_new_child
->type
->table_size
) {
4313 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4316 if (unlikely(!var7
)) {
4317 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4318 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabstract", var_class_name
);
4319 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 599);
4323 parser_prod__AAbstractClasskind__n_kwabstract_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwabstract= on <self:AAbstractClasskind>*/
4328 var8
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4329 if (unlikely(var8
== NULL
)) {
4330 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4331 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 602);
4335 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwclass> */
4336 var_other
= var_old_child
;
4338 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwclass> */
4339 var14
= var8
== var_other
;
4342 RET_LABEL13
:(void)0;
4347 RET_LABEL11
:(void)0;
4352 /* <var_new_child:nullable ANode> isa TKwclass */
4353 cltype16
= type_parser_nodes__TKwclass
.color
;
4354 idtype17
= type_parser_nodes__TKwclass
.id
;
4355 if(var_new_child
== NULL
) {
4358 if(cltype16
>= var_new_child
->type
->table_size
) {
4361 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4364 if (unlikely(!var15
)) {
4365 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4366 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name18
);
4367 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 603);
4371 parser_prod__AAbstractClasskind__n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwclass= on <self:AAbstractClasskind>*/
4378 /* method parser_prod#AAbstractClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4379 void VIRTUAL_parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4380 parser_prod__AAbstractClasskind__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAbstractClasskind#replace_child on <self:Object(AAbstractClasskind)>*/
4383 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: AAbstractClasskind, TKwabstract) */
4384 void parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
4385 val
* var_node
/* var node: TKwabstract */;
4387 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_node
; /* _n_kwabstract on <self:AAbstractClasskind> */
4389 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabstract> */
4390 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabstract> */
4396 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: Object, TKwabstract) */
4397 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
4398 parser_prod__AAbstractClasskind__n_kwabstract_61d(self
, p0
); /* Direct call parser_prod#AAbstractClasskind#n_kwabstract= on <self:Object(AAbstractClasskind)>*/
4401 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: AAbstractClasskind, TKwclass) */
4402 void parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4403 val
* var_node
/* var node: TKwclass */;
4405 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AAbstractClasskind> */
4407 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
4408 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
4414 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: Object, TKwclass) */
4415 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4416 parser_prod__AAbstractClasskind__n_kwclass_61d(self
, p0
); /* Direct call parser_prod#AAbstractClasskind#n_kwclass= on <self:Object(AAbstractClasskind)>*/
4419 /* method parser_prod#AAbstractClasskind#visit_all for (self: AAbstractClasskind, Visitor) */
4420 void parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
4421 val
* var_v
/* var v: Visitor */;
4422 val
* var
/* : TKwabstract */;
4423 val
* var1
/* : TKwclass */;
4425 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
4426 if (unlikely(var
== NULL
)) {
4427 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
4428 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 622);
4432 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4434 var1
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4435 if (unlikely(var1
== NULL
)) {
4436 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4437 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 623);
4441 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4445 /* method parser_prod#AAbstractClasskind#visit_all for (self: Object, Visitor) */
4446 void VIRTUAL_parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
4447 parser_prod__AAbstractClasskind__visit_all(self
, p0
); /* Direct call parser_prod#AAbstractClasskind#visit_all on <self:Object(AAbstractClasskind)>*/
4450 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: AInterfaceClasskind, nullable TKwinterface) */
4451 void parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
4452 val
* var_n_kwinterface
/* var n_kwinterface: nullable TKwinterface */;
4453 var_n_kwinterface
= p0
;
4454 if (unlikely(var_n_kwinterface
== NULL
)) {
4455 PRINT_ERROR("Runtime error: %s", "Cast failed");
4456 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 631);
4459 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_n_kwinterface
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4460 if (var_n_kwinterface
== NULL
) {
4461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4462 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 632);
4465 { /* Inline parser_nodes#ANode#parent= (var_n_kwinterface,self) on <var_n_kwinterface:nullable TKwinterface> */
4466 if (unlikely(var_n_kwinterface
== NULL
)) {
4467 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4468 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4471 var_n_kwinterface
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinterface:nullable TKwinterface> */
4477 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: Object, nullable TKwinterface) */
4478 void VIRTUAL_parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
4479 parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(self
, p0
); /* Direct call parser_prod#AInterfaceClasskind#init_ainterfaceclasskind on <self:Object(AInterfaceClasskind)>*/
4482 /* method parser_prod#AInterfaceClasskind#replace_child for (self: AInterfaceClasskind, ANode, nullable ANode) */
4483 void parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4484 val
* var_old_child
/* var old_child: ANode */;
4485 val
* var_new_child
/* var new_child: nullable ANode */;
4486 val
* var
/* : TKwinterface */;
4487 short int var1
/* : Bool */;
4488 short int var2
/* : Bool */;
4489 val
* var_other
/* var other: nullable Object */;
4490 short int var4
/* : Bool */;
4491 short int var6
/* : Bool */;
4492 short int var7
/* : Bool */;
4495 const char* var_class_name
;
4498 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4499 if (unlikely(var
== NULL
)) {
4500 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4501 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 637);
4505 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwinterface> */
4506 var_other
= var_old_child
;
4508 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwinterface> */
4509 var6
= var
== var_other
;
4522 /* <var_new_child:nullable ANode> isa TKwinterface */
4523 cltype
= type_parser_nodes__TKwinterface
.color
;
4524 idtype
= type_parser_nodes__TKwinterface
.id
;
4525 if(var_new_child
== NULL
) {
4528 if(cltype
>= var_new_child
->type
->table_size
) {
4531 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4534 if (unlikely(!var7
)) {
4535 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4536 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinterface", var_class_name
);
4537 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 638);
4541 parser_prod__AInterfaceClasskind__n_kwinterface_61d(self
, var_new_child
); /* Direct call parser_prod#AInterfaceClasskind#n_kwinterface= on <self:AInterfaceClasskind>*/
4548 /* method parser_prod#AInterfaceClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4549 void VIRTUAL_parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4550 parser_prod__AInterfaceClasskind__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInterfaceClasskind#replace_child on <self:Object(AInterfaceClasskind)>*/
4553 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: AInterfaceClasskind, TKwinterface) */
4554 void parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4555 val
* var_node
/* var node: TKwinterface */;
4557 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_node
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4559 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinterface> */
4560 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinterface> */
4566 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: Object, TKwinterface) */
4567 void VIRTUAL_parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4568 parser_prod__AInterfaceClasskind__n_kwinterface_61d(self
, p0
); /* Direct call parser_prod#AInterfaceClasskind#n_kwinterface= on <self:Object(AInterfaceClasskind)>*/
4571 /* method parser_prod#AInterfaceClasskind#visit_all for (self: AInterfaceClasskind, Visitor) */
4572 void parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4573 val
* var_v
/* var v: Visitor */;
4574 val
* var
/* : TKwinterface */;
4576 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4577 if (unlikely(var
== NULL
)) {
4578 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4579 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 652);
4583 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4587 /* method parser_prod#AInterfaceClasskind#visit_all for (self: Object, Visitor) */
4588 void VIRTUAL_parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4589 parser_prod__AInterfaceClasskind__visit_all(self
, p0
); /* Direct call parser_prod#AInterfaceClasskind#visit_all on <self:Object(AInterfaceClasskind)>*/
4592 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: AEnumClasskind, nullable TKwenum) */
4593 void parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4594 val
* var_n_kwenum
/* var n_kwenum: nullable TKwenum */;
4596 if (unlikely(var_n_kwenum
== NULL
)) {
4597 PRINT_ERROR("Runtime error: %s", "Cast failed");
4598 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 660);
4601 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_n_kwenum
; /* _n_kwenum on <self:AEnumClasskind> */
4602 if (var_n_kwenum
== NULL
) {
4603 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4604 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 661);
4607 { /* Inline parser_nodes#ANode#parent= (var_n_kwenum,self) on <var_n_kwenum:nullable TKwenum> */
4608 if (unlikely(var_n_kwenum
== NULL
)) {
4609 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4610 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4613 var_n_kwenum
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwenum:nullable TKwenum> */
4619 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: Object, nullable TKwenum) */
4620 void VIRTUAL_parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4621 parser_prod__AEnumClasskind__init_aenumclasskind(self
, p0
); /* Direct call parser_prod#AEnumClasskind#init_aenumclasskind on <self:Object(AEnumClasskind)>*/
4624 /* method parser_prod#AEnumClasskind#replace_child for (self: AEnumClasskind, ANode, nullable ANode) */
4625 void parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4626 val
* var_old_child
/* var old_child: ANode */;
4627 val
* var_new_child
/* var new_child: nullable ANode */;
4628 val
* var
/* : TKwenum */;
4629 short int var1
/* : Bool */;
4630 short int var2
/* : Bool */;
4631 val
* var_other
/* var other: nullable Object */;
4632 short int var4
/* : Bool */;
4633 short int var6
/* : Bool */;
4634 short int var7
/* : Bool */;
4637 const char* var_class_name
;
4640 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4641 if (unlikely(var
== NULL
)) {
4642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4643 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 666);
4647 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwenum> */
4648 var_other
= var_old_child
;
4650 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwenum> */
4651 var6
= var
== var_other
;
4664 /* <var_new_child:nullable ANode> isa TKwenum */
4665 cltype
= type_parser_nodes__TKwenum
.color
;
4666 idtype
= type_parser_nodes__TKwenum
.id
;
4667 if(var_new_child
== NULL
) {
4670 if(cltype
>= var_new_child
->type
->table_size
) {
4673 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4676 if (unlikely(!var7
)) {
4677 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4678 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwenum", var_class_name
);
4679 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 667);
4683 parser_prod__AEnumClasskind__n_kwenum_61d(self
, var_new_child
); /* Direct call parser_prod#AEnumClasskind#n_kwenum= on <self:AEnumClasskind>*/
4690 /* method parser_prod#AEnumClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4691 void VIRTUAL_parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4692 parser_prod__AEnumClasskind__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AEnumClasskind#replace_child on <self:Object(AEnumClasskind)>*/
4695 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: AEnumClasskind, TKwenum) */
4696 void parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4697 val
* var_node
/* var node: TKwenum */;
4699 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_node
; /* _n_kwenum on <self:AEnumClasskind> */
4701 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwenum> */
4702 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwenum> */
4708 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: Object, TKwenum) */
4709 void VIRTUAL_parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4710 parser_prod__AEnumClasskind__n_kwenum_61d(self
, p0
); /* Direct call parser_prod#AEnumClasskind#n_kwenum= on <self:Object(AEnumClasskind)>*/
4713 /* method parser_prod#AEnumClasskind#visit_all for (self: AEnumClasskind, Visitor) */
4714 void parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4715 val
* var_v
/* var v: Visitor */;
4716 val
* var
/* : TKwenum */;
4718 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4719 if (unlikely(var
== NULL
)) {
4720 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4721 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 681);
4725 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4729 /* method parser_prod#AEnumClasskind#visit_all for (self: Object, Visitor) */
4730 void VIRTUAL_parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4731 parser_prod__AEnumClasskind__visit_all(self
, p0
); /* Direct call parser_prod#AEnumClasskind#visit_all on <self:Object(AEnumClasskind)>*/
4734 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: AExternClasskind, nullable TKwextern, nullable TKwclass) */
4735 void parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4736 val
* var_n_kwextern
/* var n_kwextern: nullable TKwextern */;
4737 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4738 val
* var
/* : null */;
4739 short int var2
/* : Bool */;
4740 short int var3
/* : Bool */;
4741 val
* var_other
/* var other: nullable Object */;
4742 short int var5
/* : Bool */;
4743 short int var6
/* : Bool */;
4744 short int var7
/* : Bool */;
4745 var_n_kwextern
= p0
;
4747 if (unlikely(var_n_kwextern
== NULL
)) {
4748 PRINT_ERROR("Runtime error: %s", "Cast failed");
4749 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 690);
4752 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_n_kwextern
; /* _n_kwextern on <self:AExternClasskind> */
4753 if (var_n_kwextern
== NULL
) {
4754 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4755 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 691);
4758 { /* Inline parser_nodes#ANode#parent= (var_n_kwextern,self) on <var_n_kwextern:nullable TKwextern> */
4759 if (unlikely(var_n_kwextern
== NULL
)) {
4760 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4761 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
4764 var_n_kwextern
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwextern:nullable TKwextern> */
4768 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AExternClasskind> */
4770 if (var_n_kwclass
== NULL
) {
4771 var2
= 0; /* is null */
4773 var2
= 1; /* arg is null and recv is not */
4776 { /* Inline kernel#Object#!= (var_n_kwclass,var) on <var_n_kwclass:nullable TKwclass> */
4779 var6
= ((short int (*)(val
*, val
*))(var_n_kwclass
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwclass
, var_other
) /* == on <var_n_kwclass:nullable TKwclass(TKwclass)>*/;
4791 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4792 var_n_kwclass
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4800 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: Object, nullable TKwextern, nullable TKwclass) */
4801 void VIRTUAL_parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4802 parser_prod__AExternClasskind__init_aexternclasskind(self
, p0
, p1
); /* Direct call parser_prod#AExternClasskind#init_aexternclasskind on <self:Object(AExternClasskind)>*/
4805 /* method parser_prod#AExternClasskind#replace_child for (self: AExternClasskind, ANode, nullable ANode) */
4806 void parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4807 val
* var_old_child
/* var old_child: ANode */;
4808 val
* var_new_child
/* var new_child: nullable ANode */;
4809 val
* var
/* : TKwextern */;
4810 short int var1
/* : Bool */;
4811 short int var2
/* : Bool */;
4812 val
* var_other
/* var other: nullable Object */;
4813 short int var4
/* : Bool */;
4814 short int var6
/* : Bool */;
4815 short int var7
/* : Bool */;
4818 const char* var_class_name
;
4819 val
* var8
/* : nullable TKwclass */;
4820 short int var9
/* : Bool */;
4821 short int var10
/* : Bool */;
4822 short int var12
/* : Bool */;
4823 short int var14
/* : Bool */;
4824 short int var15
/* : Bool */;
4827 const char* var_class_name18
;
4830 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4831 if (unlikely(var
== NULL
)) {
4832 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
4833 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 698);
4837 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwextern> */
4838 var_other
= var_old_child
;
4840 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwextern> */
4841 var6
= var
== var_other
;
4854 /* <var_new_child:nullable ANode> isa TKwextern */
4855 cltype
= type_parser_nodes__TKwextern
.color
;
4856 idtype
= type_parser_nodes__TKwextern
.id
;
4857 if(var_new_child
== NULL
) {
4860 if(cltype
>= var_new_child
->type
->table_size
) {
4863 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4866 if (unlikely(!var7
)) {
4867 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4868 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwextern", var_class_name
);
4869 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 699);
4873 parser_prod__AExternClasskind__n_kwextern_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwextern= on <self:AExternClasskind>*/
4878 var8
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4880 var9
= 0; /* <var_old_child:ANode> cannot be null */
4882 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwclass> */
4883 var_other
= var_old_child
;
4885 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwclass(TKwclass)> */
4886 var14
= var8
== var_other
;
4889 RET_LABEL13
:(void)0;
4894 RET_LABEL11
:(void)0;
4899 /* <var_new_child:nullable ANode> isa nullable TKwclass */
4900 cltype16
= type_nullable_parser_nodes__TKwclass
.color
;
4901 idtype17
= type_nullable_parser_nodes__TKwclass
.id
;
4902 if(var_new_child
== NULL
) {
4905 if(cltype16
>= var_new_child
->type
->table_size
) {
4908 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
4911 if (unlikely(!var15
)) {
4912 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4913 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwclass", var_class_name18
);
4914 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 703);
4918 parser_prod__AExternClasskind__n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwclass= on <self:AExternClasskind>*/
4925 /* method parser_prod#AExternClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4926 void VIRTUAL_parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4927 parser_prod__AExternClasskind__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExternClasskind#replace_child on <self:Object(AExternClasskind)>*/
4930 /* method parser_prod#AExternClasskind#n_kwextern= for (self: AExternClasskind, TKwextern) */
4931 void parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4932 val
* var_node
/* var node: TKwextern */;
4934 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_node
; /* _n_kwextern on <self:AExternClasskind> */
4936 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwextern> */
4937 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwextern> */
4943 /* method parser_prod#AExternClasskind#n_kwextern= for (self: Object, TKwextern) */
4944 void VIRTUAL_parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4945 parser_prod__AExternClasskind__n_kwextern_61d(self
, p0
); /* Direct call parser_prod#AExternClasskind#n_kwextern= on <self:Object(AExternClasskind)>*/
4948 /* method parser_prod#AExternClasskind#n_kwclass= for (self: AExternClasskind, nullable TKwclass) */
4949 void parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4950 val
* var_node
/* var node: nullable TKwclass */;
4951 val
* var
/* : null */;
4952 short int var1
/* : Bool */;
4953 short int var2
/* : Bool */;
4954 val
* var_other
/* var other: nullable Object */;
4955 short int var4
/* : Bool */;
4956 short int var5
/* : Bool */;
4957 short int var6
/* : Bool */;
4959 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AExternClasskind> */
4961 if (var_node
== NULL
) {
4962 var1
= 0; /* is null */
4964 var1
= 1; /* arg is null and recv is not */
4967 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwclass> */
4970 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwclass(TKwclass)>*/;
4982 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwclass(TKwclass)> */
4983 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwclass(TKwclass)> */
4991 /* method parser_prod#AExternClasskind#n_kwclass= for (self: Object, nullable TKwclass) */
4992 void VIRTUAL_parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4993 parser_prod__AExternClasskind__n_kwclass_61d(self
, p0
); /* Direct call parser_prod#AExternClasskind#n_kwclass= on <self:Object(AExternClasskind)>*/
4996 /* method parser_prod#AExternClasskind#visit_all for (self: AExternClasskind, Visitor) */
4997 void parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
4998 val
* var_v
/* var v: Visitor */;
4999 val
* var
/* : TKwextern */;
5000 val
* var1
/* : nullable TKwclass */;
5002 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
5003 if (unlikely(var
== NULL
)) {
5004 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
5005 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 722);
5009 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5011 var1
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
5013 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5017 /* method parser_prod#AExternClasskind#visit_all for (self: Object, Visitor) */
5018 void VIRTUAL_parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
5019 parser_prod__AExternClasskind__visit_all(self
, p0
); /* Direct call parser_prod#AExternClasskind#visit_all on <self:Object(AExternClasskind)>*/
5022 /* method parser_prod#AFormaldef#init_aformaldef for (self: AFormaldef, nullable TClassid, nullable AType, nullable AAnnotations) */
5023 void parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5024 val
* var_n_id
/* var n_id: nullable TClassid */;
5025 val
* var_n_type
/* var n_type: nullable AType */;
5026 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5027 val
* var
/* : null */;
5028 short int var2
/* : Bool */;
5029 short int var3
/* : Bool */;
5030 val
* var_other
/* var other: nullable Object */;
5031 short int var5
/* : Bool */;
5032 short int var6
/* : Bool */;
5033 short int var7
/* : Bool */;
5034 val
* var9
/* : null */;
5035 short int var10
/* : Bool */;
5036 short int var11
/* : Bool */;
5037 short int var13
/* : Bool */;
5038 short int var14
/* : Bool */;
5039 short int var15
/* : Bool */;
5042 var_n_annotations
= p2
;
5043 if (unlikely(var_n_id
== NULL
)) {
5044 PRINT_ERROR("Runtime error: %s", "Cast failed");
5045 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 733);
5048 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_n_id
; /* _n_id on <self:AFormaldef> */
5049 if (var_n_id
== NULL
) {
5050 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5051 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 734);
5054 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
5055 if (unlikely(var_n_id
== NULL
)) {
5056 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5057 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5060 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
5064 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_n_type
; /* _n_type on <self:AFormaldef> */
5066 if (var_n_type
== NULL
) {
5067 var2
= 0; /* is null */
5069 var2
= 1; /* arg is null and recv is not */
5072 { /* Inline kernel#Object#!= (var_n_type,var) on <var_n_type:nullable AType> */
5075 var6
= ((short int (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
5087 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5088 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5094 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFormaldef> */
5096 if (var_n_annotations
== NULL
) {
5097 var10
= 0; /* is null */
5099 var10
= 1; /* arg is null and recv is not */
5102 { /* Inline kernel#Object#!= (var_n_annotations,var9) on <var_n_annotations:nullable AAnnotations> */
5105 var14
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
5111 RET_LABEL12
:(void)0;
5117 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5118 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5119 RET_LABEL16
:(void)0;
5126 /* method parser_prod#AFormaldef#init_aformaldef for (self: Object, nullable TClassid, nullable AType, nullable AAnnotations) */
5127 void VIRTUAL_parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5128 parser_prod__AFormaldef__init_aformaldef(self
, p0
, p1
, p2
); /* Direct call parser_prod#AFormaldef#init_aformaldef on <self:Object(AFormaldef)>*/
5131 /* method parser_prod#AFormaldef#replace_child for (self: AFormaldef, ANode, nullable ANode) */
5132 void parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5133 val
* var_old_child
/* var old_child: ANode */;
5134 val
* var_new_child
/* var new_child: nullable ANode */;
5135 val
* var
/* : TClassid */;
5136 short int var1
/* : Bool */;
5137 short int var2
/* : Bool */;
5138 val
* var_other
/* var other: nullable Object */;
5139 short int var4
/* : Bool */;
5140 short int var6
/* : Bool */;
5141 short int var7
/* : Bool */;
5144 const char* var_class_name
;
5145 val
* var8
/* : nullable AType */;
5146 short int var9
/* : Bool */;
5147 short int var10
/* : Bool */;
5148 short int var12
/* : Bool */;
5149 short int var14
/* : Bool */;
5150 short int var15
/* : Bool */;
5153 const char* var_class_name18
;
5154 val
* var19
/* : nullable AAnnotations */;
5155 short int var20
/* : Bool */;
5156 short int var21
/* : Bool */;
5157 short int var23
/* : Bool */;
5158 short int var25
/* : Bool */;
5159 short int var26
/* : Bool */;
5162 const char* var_class_name29
;
5165 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
5166 if (unlikely(var
== NULL
)) {
5167 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5168 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 743);
5172 { /* Inline kernel#Object#== (var,var_old_child) on <var:TClassid> */
5173 var_other
= var_old_child
;
5175 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TClassid> */
5176 var6
= var
== var_other
;
5189 /* <var_new_child:nullable ANode> isa TClassid */
5190 cltype
= type_parser_nodes__TClassid
.color
;
5191 idtype
= type_parser_nodes__TClassid
.id
;
5192 if(var_new_child
== NULL
) {
5195 if(cltype
>= var_new_child
->type
->table_size
) {
5198 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5201 if (unlikely(!var7
)) {
5202 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5203 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name
);
5204 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 744);
5208 parser_prod__AFormaldef__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_id= on <self:AFormaldef>*/
5213 var8
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
5215 var9
= 0; /* <var_old_child:ANode> cannot be null */
5217 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AType> */
5218 var_other
= var_old_child
;
5220 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AType(AType)> */
5221 var14
= var8
== var_other
;
5224 RET_LABEL13
:(void)0;
5229 RET_LABEL11
:(void)0;
5234 /* <var_new_child:nullable ANode> isa nullable AType */
5235 cltype16
= type_nullable_parser_nodes__AType
.color
;
5236 idtype17
= type_nullable_parser_nodes__AType
.id
;
5237 if(var_new_child
== NULL
) {
5240 if(cltype16
>= var_new_child
->type
->table_size
) {
5243 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5246 if (unlikely(!var15
)) {
5247 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5248 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name18
);
5249 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 748);
5253 parser_prod__AFormaldef__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_type= on <self:AFormaldef>*/
5258 var19
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
5259 if (var19
== NULL
) {
5260 var20
= 0; /* <var_old_child:ANode> cannot be null */
5262 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AAnnotations> */
5263 var_other
= var_old_child
;
5265 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AAnnotations(AAnnotations)> */
5266 var25
= var19
== var_other
;
5269 RET_LABEL24
:(void)0;
5274 RET_LABEL22
:(void)0;
5279 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5280 cltype27
= type_nullable_parser_nodes__AAnnotations
.color
;
5281 idtype28
= type_nullable_parser_nodes__AAnnotations
.id
;
5282 if(var_new_child
== NULL
) {
5285 if(cltype27
>= var_new_child
->type
->table_size
) {
5288 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5291 if (unlikely(!var26
)) {
5292 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5293 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name29
);
5294 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 752);
5298 parser_prod__AFormaldef__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_annotations= on <self:AFormaldef>*/
5305 /* method parser_prod#AFormaldef#replace_child for (self: Object, ANode, nullable ANode) */
5306 void VIRTUAL_parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5307 parser_prod__AFormaldef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AFormaldef#replace_child on <self:Object(AFormaldef)>*/
5310 /* method parser_prod#AFormaldef#n_id= for (self: AFormaldef, TClassid) */
5311 void parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
5312 val
* var_node
/* var node: TClassid */;
5314 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_node
; /* _n_id on <self:AFormaldef> */
5316 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
5317 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
5323 /* method parser_prod#AFormaldef#n_id= for (self: Object, TClassid) */
5324 void VIRTUAL_parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
5325 parser_prod__AFormaldef__n_id_61d(self
, p0
); /* Direct call parser_prod#AFormaldef#n_id= on <self:Object(AFormaldef)>*/
5328 /* method parser_prod#AFormaldef#n_type= for (self: AFormaldef, nullable AType) */
5329 void parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
5330 val
* var_node
/* var node: nullable AType */;
5331 val
* var
/* : null */;
5332 short int var1
/* : Bool */;
5333 short int var2
/* : Bool */;
5334 val
* var_other
/* var other: nullable Object */;
5335 short int var4
/* : Bool */;
5336 short int var5
/* : Bool */;
5337 short int var6
/* : Bool */;
5339 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_node
; /* _n_type on <self:AFormaldef> */
5341 if (var_node
== NULL
) {
5342 var1
= 0; /* is null */
5344 var1
= 1; /* arg is null and recv is not */
5347 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
5350 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
5362 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
5363 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
5371 /* method parser_prod#AFormaldef#n_type= for (self: Object, nullable AType) */
5372 void VIRTUAL_parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
5373 parser_prod__AFormaldef__n_type_61d(self
, p0
); /* Direct call parser_prod#AFormaldef#n_type= on <self:Object(AFormaldef)>*/
5376 /* method parser_prod#AFormaldef#n_annotations= for (self: AFormaldef, nullable AAnnotations) */
5377 void parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
5378 val
* var_node
/* var node: nullable AAnnotations */;
5379 val
* var
/* : null */;
5380 short int var1
/* : Bool */;
5381 short int var2
/* : Bool */;
5382 val
* var_other
/* var other: nullable Object */;
5383 short int var4
/* : Bool */;
5384 short int var5
/* : Bool */;
5385 short int var6
/* : Bool */;
5387 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFormaldef> */
5389 if (var_node
== NULL
) {
5390 var1
= 0; /* is null */
5392 var1
= 1; /* arg is null and recv is not */
5395 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5398 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5410 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5411 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5419 /* method parser_prod#AFormaldef#n_annotations= for (self: Object, nullable AAnnotations) */
5420 void VIRTUAL_parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
5421 parser_prod__AFormaldef__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AFormaldef#n_annotations= on <self:Object(AFormaldef)>*/
5424 /* method parser_prod#AFormaldef#visit_all for (self: AFormaldef, Visitor) */
5425 void parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
5426 val
* var_v
/* var v: Visitor */;
5427 val
* var
/* : TClassid */;
5428 val
* var1
/* : nullable AType */;
5429 val
* var2
/* : nullable AAnnotations */;
5431 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
5432 if (unlikely(var
== NULL
)) {
5433 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5434 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 776);
5438 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5440 var1
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
5442 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5444 var2
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
5446 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5450 /* method parser_prod#AFormaldef#visit_all for (self: Object, Visitor) */
5451 void VIRTUAL_parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
5452 parser_prod__AFormaldef__visit_all(self
, p0
); /* Direct call parser_prod#AFormaldef#visit_all on <self:Object(AFormaldef)>*/
5455 /* method parser_prod#ASuperclass#init_asuperclass for (self: ASuperclass, nullable TKwsuper, nullable AType, nullable AAnnotations) */
5456 void parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5457 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
5458 val
* var_n_type
/* var n_type: nullable AType */;
5459 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5460 val
* var
/* : null */;
5461 short int var3
/* : Bool */;
5462 short int var4
/* : Bool */;
5463 val
* var_other
/* var other: nullable Object */;
5464 short int var6
/* : Bool */;
5465 short int var7
/* : Bool */;
5466 short int var8
/* : Bool */;
5469 var_n_annotations
= p2
;
5470 if (unlikely(var_n_kwsuper
== NULL
)) {
5471 PRINT_ERROR("Runtime error: %s", "Cast failed");
5472 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 788);
5475 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperclass> */
5476 if (var_n_kwsuper
== NULL
) {
5477 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5478 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 789);
5481 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
5482 if (unlikely(var_n_kwsuper
== NULL
)) {
5483 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5484 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5487 var_n_kwsuper
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
5491 if (unlikely(var_n_type
== NULL
)) {
5492 PRINT_ERROR("Runtime error: %s", "Cast failed");
5493 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 790);
5496 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_n_type
; /* _n_type on <self:ASuperclass> */
5497 if (var_n_type
== NULL
) {
5498 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5499 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 791);
5502 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
5503 if (unlikely(var_n_type
== NULL
)) {
5504 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5505 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5508 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
5512 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperclass> */
5514 if (var_n_annotations
== NULL
) {
5515 var3
= 0; /* is null */
5517 var3
= 1; /* arg is null and recv is not */
5520 { /* Inline kernel#Object#!= (var_n_annotations,var) on <var_n_annotations:nullable AAnnotations> */
5523 var7
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
5535 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5536 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5544 /* method parser_prod#ASuperclass#init_asuperclass for (self: Object, nullable TKwsuper, nullable AType, nullable AAnnotations) */
5545 void VIRTUAL_parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
5546 parser_prod__ASuperclass__init_asuperclass(self
, p0
, p1
, p2
); /* Direct call parser_prod#ASuperclass#init_asuperclass on <self:Object(ASuperclass)>*/
5549 /* method parser_prod#ASuperclass#replace_child for (self: ASuperclass, ANode, nullable ANode) */
5550 void parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
5551 val
* var_old_child
/* var old_child: ANode */;
5552 val
* var_new_child
/* var new_child: nullable ANode */;
5553 val
* var
/* : TKwsuper */;
5554 short int var1
/* : Bool */;
5555 short int var2
/* : Bool */;
5556 val
* var_other
/* var other: nullable Object */;
5557 short int var4
/* : Bool */;
5558 short int var6
/* : Bool */;
5559 short int var7
/* : Bool */;
5562 const char* var_class_name
;
5563 val
* var8
/* : AType */;
5564 short int var9
/* : Bool */;
5565 short int var10
/* : Bool */;
5566 short int var12
/* : Bool */;
5567 short int var14
/* : Bool */;
5568 short int var15
/* : Bool */;
5571 const char* var_class_name18
;
5572 val
* var19
/* : nullable AAnnotations */;
5573 short int var20
/* : Bool */;
5574 short int var21
/* : Bool */;
5575 short int var23
/* : Bool */;
5576 short int var25
/* : Bool */;
5577 short int var26
/* : Bool */;
5580 const char* var_class_name29
;
5583 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5584 if (unlikely(var
== NULL
)) {
5585 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5586 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 798);
5590 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwsuper> */
5591 var_other
= var_old_child
;
5593 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwsuper> */
5594 var6
= var
== var_other
;
5607 /* <var_new_child:nullable ANode> isa TKwsuper */
5608 cltype
= type_parser_nodes__TKwsuper
.color
;
5609 idtype
= type_parser_nodes__TKwsuper
.id
;
5610 if(var_new_child
== NULL
) {
5613 if(cltype
>= var_new_child
->type
->table_size
) {
5616 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5619 if (unlikely(!var7
)) {
5620 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5621 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name
);
5622 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 799);
5626 parser_prod__ASuperclass__n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_kwsuper= on <self:ASuperclass>*/
5631 var8
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5632 if (unlikely(var8
== NULL
)) {
5633 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5634 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 802);
5638 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AType> */
5639 var_other
= var_old_child
;
5641 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AType> */
5642 var14
= var8
== var_other
;
5645 RET_LABEL13
:(void)0;
5650 RET_LABEL11
:(void)0;
5655 /* <var_new_child:nullable ANode> isa AType */
5656 cltype16
= type_parser_nodes__AType
.color
;
5657 idtype17
= type_parser_nodes__AType
.id
;
5658 if(var_new_child
== NULL
) {
5661 if(cltype16
>= var_new_child
->type
->table_size
) {
5664 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5667 if (unlikely(!var15
)) {
5668 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name18
);
5670 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 803);
5674 parser_prod__ASuperclass__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_type= on <self:ASuperclass>*/
5679 var19
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5680 if (var19
== NULL
) {
5681 var20
= 0; /* <var_old_child:ANode> cannot be null */
5683 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AAnnotations> */
5684 var_other
= var_old_child
;
5686 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AAnnotations(AAnnotations)> */
5687 var25
= var19
== var_other
;
5690 RET_LABEL24
:(void)0;
5695 RET_LABEL22
:(void)0;
5700 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5701 cltype27
= type_nullable_parser_nodes__AAnnotations
.color
;
5702 idtype28
= type_nullable_parser_nodes__AAnnotations
.id
;
5703 if(var_new_child
== NULL
) {
5706 if(cltype27
>= var_new_child
->type
->table_size
) {
5709 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5712 if (unlikely(!var26
)) {
5713 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5714 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name29
);
5715 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 807);
5719 parser_prod__ASuperclass__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperclass#n_annotations= on <self:ASuperclass>*/
5726 /* method parser_prod#ASuperclass#replace_child for (self: Object, ANode, nullable ANode) */
5727 void VIRTUAL_parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
5728 parser_prod__ASuperclass__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ASuperclass#replace_child on <self:Object(ASuperclass)>*/
5731 /* method parser_prod#ASuperclass#n_kwsuper= for (self: ASuperclass, TKwsuper) */
5732 void parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
5733 val
* var_node
/* var node: TKwsuper */;
5735 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperclass> */
5737 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
5738 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
5744 /* method parser_prod#ASuperclass#n_kwsuper= for (self: Object, TKwsuper) */
5745 void VIRTUAL_parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
5746 parser_prod__ASuperclass__n_kwsuper_61d(self
, p0
); /* Direct call parser_prod#ASuperclass#n_kwsuper= on <self:Object(ASuperclass)>*/
5749 /* method parser_prod#ASuperclass#n_type= for (self: ASuperclass, AType) */
5750 void parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
5751 val
* var_node
/* var node: AType */;
5753 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_node
; /* _n_type on <self:ASuperclass> */
5755 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
5756 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
5762 /* method parser_prod#ASuperclass#n_type= for (self: Object, AType) */
5763 void VIRTUAL_parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
5764 parser_prod__ASuperclass__n_type_61d(self
, p0
); /* Direct call parser_prod#ASuperclass#n_type= on <self:Object(ASuperclass)>*/
5767 /* method parser_prod#ASuperclass#n_annotations= for (self: ASuperclass, nullable AAnnotations) */
5768 void parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
5769 val
* var_node
/* var node: nullable AAnnotations */;
5770 val
* var
/* : null */;
5771 short int var1
/* : Bool */;
5772 short int var2
/* : Bool */;
5773 val
* var_other
/* var other: nullable Object */;
5774 short int var4
/* : Bool */;
5775 short int var5
/* : Bool */;
5776 short int var6
/* : Bool */;
5778 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperclass> */
5780 if (var_node
== NULL
) {
5781 var1
= 0; /* is null */
5783 var1
= 1; /* arg is null and recv is not */
5786 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
5789 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
5801 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5802 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5810 /* method parser_prod#ASuperclass#n_annotations= for (self: Object, nullable AAnnotations) */
5811 void VIRTUAL_parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
5812 parser_prod__ASuperclass__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ASuperclass#n_annotations= on <self:Object(ASuperclass)>*/
5815 /* method parser_prod#ASuperclass#visit_all for (self: ASuperclass, Visitor) */
5816 void parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
5817 val
* var_v
/* var v: Visitor */;
5818 val
* var
/* : TKwsuper */;
5819 val
* var1
/* : AType */;
5820 val
* var2
/* : nullable AAnnotations */;
5822 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5823 if (unlikely(var
== NULL
)) {
5824 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5825 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 831);
5829 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5831 var1
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5832 if (unlikely(var1
== NULL
)) {
5833 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
5834 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 832);
5838 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5840 var2
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5842 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5846 /* method parser_prod#ASuperclass#visit_all for (self: Object, Visitor) */
5847 void VIRTUAL_parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
5848 parser_prod__ASuperclass__visit_all(self
, p0
); /* Direct call parser_prod#ASuperclass#visit_all on <self:Object(ASuperclass)>*/
5851 /* 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) */
5852 void 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
) {
5853 val
* var_n_doc
/* var n_doc: nullable ADoc */;
5854 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
5855 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
5856 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
5857 val
* var_n_id2
/* var n_id2: nullable TId */;
5858 val
* var_n_type
/* var n_type: nullable AType */;
5859 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5860 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5861 val
* var_n_block
/* var n_block: nullable AExpr */;
5862 val
* var
/* : null */;
5863 short int var1
/* : Bool */;
5864 short int var2
/* : Bool */;
5865 val
* var_other
/* var other: nullable Object */;
5866 short int var4
/* : Bool */;
5867 short int var5
/* : Bool */;
5868 short int var6
/* : Bool */;
5869 val
* var8
/* : null */;
5870 short int var9
/* : Bool */;
5871 short int var10
/* : Bool */;
5872 short int var12
/* : Bool */;
5873 short int var13
/* : Bool */;
5874 short int var14
/* : Bool */;
5875 val
* var19
/* : null */;
5876 short int var20
/* : Bool */;
5877 short int var21
/* : Bool */;
5878 short int var23
/* : Bool */;
5879 short int var24
/* : Bool */;
5880 short int var25
/* : Bool */;
5881 val
* var27
/* : null */;
5882 short int var28
/* : Bool */;
5883 short int var29
/* : Bool */;
5884 short int var31
/* : Bool */;
5885 short int var32
/* : Bool */;
5886 short int var33
/* : Bool */;
5887 val
* var35
/* : null */;
5888 short int var36
/* : Bool */;
5889 short int var37
/* : Bool */;
5890 short int var39
/* : Bool */;
5891 short int var40
/* : Bool */;
5892 short int var41
/* : Bool */;
5893 val
* var43
/* : null */;
5894 short int var44
/* : Bool */;
5895 short int var45
/* : Bool */;
5896 short int var47
/* : Bool */;
5897 short int var48
/* : Bool */;
5898 short int var49
/* : Bool */;
5901 var_n_visibility
= p2
;
5906 var_n_annotations
= p7
;
5908 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAttrPropdef> */
5910 if (var_n_doc
== NULL
) {
5911 var1
= 0; /* is null */
5913 var1
= 1; /* arg is null and recv is not */
5916 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
5919 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
5931 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
5932 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
5938 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAttrPropdef> */
5940 if (var_n_kwredef
== NULL
) {
5941 var9
= 0; /* is null */
5943 var9
= 1; /* arg is null and recv is not */
5946 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
5949 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
5955 RET_LABEL11
:(void)0;
5961 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5962 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5963 RET_LABEL15
:(void)0;
5968 if (unlikely(var_n_visibility
== NULL
)) {
5969 PRINT_ERROR("Runtime error: %s", "Cast failed");
5970 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 853);
5973 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAttrPropdef> */
5974 if (var_n_visibility
== NULL
) {
5975 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5976 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 854);
5979 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
5980 if (unlikely(var_n_visibility
== NULL
)) {
5981 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5982 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
5985 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
5986 RET_LABEL16
:(void)0;
5989 if (unlikely(var_n_kwvar
== NULL
)) {
5990 PRINT_ERROR("Runtime error: %s", "Cast failed");
5991 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 855);
5994 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AAttrPropdef> */
5995 if (var_n_kwvar
== NULL
) {
5996 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5997 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 856);
6000 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar> */
6001 if (unlikely(var_n_kwvar
== NULL
)) {
6002 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6003 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6006 var_n_kwvar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar> */
6007 RET_LABEL17
:(void)0;
6010 if (unlikely(var_n_id2
== NULL
)) {
6011 PRINT_ERROR("Runtime error: %s", "Cast failed");
6012 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 857);
6015 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_n_id2
; /* _n_id2 on <self:AAttrPropdef> */
6016 if (var_n_id2
== NULL
) {
6017 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6018 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 858);
6021 { /* Inline parser_nodes#ANode#parent= (var_n_id2,self) on <var_n_id2:nullable TId> */
6022 if (unlikely(var_n_id2
== NULL
)) {
6023 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6024 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6027 var_n_id2
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id2:nullable TId> */
6028 RET_LABEL18
:(void)0;
6031 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:AAttrPropdef> */
6033 if (var_n_type
== NULL
) {
6034 var20
= 0; /* is null */
6036 var20
= 1; /* arg is null and recv is not */
6039 { /* Inline kernel#Object#!= (var_n_type,var19) on <var_n_type:nullable AType> */
6042 var24
= ((short int (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_type
, var_other
) /* == on <var_n_type:nullable AType(AType)>*/;
6048 RET_LABEL22
:(void)0;
6054 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
6055 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
6056 RET_LABEL26
:(void)0;
6061 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrPropdef> */
6063 if (var_n_expr
== NULL
) {
6064 var28
= 0; /* is null */
6066 var28
= 1; /* arg is null and recv is not */
6069 { /* Inline kernel#Object#!= (var_n_expr,var27) on <var_n_expr:nullable AExpr> */
6072 var32
= ((short int (*)(val
*, val
*))(var_n_expr
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_expr
, var_other
) /* == on <var_n_expr:nullable AExpr(AExpr)>*/;
6078 RET_LABEL30
:(void)0;
6084 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
6085 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
6086 RET_LABEL34
:(void)0;
6091 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAttrPropdef> */
6093 if (var_n_annotations
== NULL
) {
6094 var36
= 0; /* is null */
6096 var36
= 1; /* arg is null and recv is not */
6099 { /* Inline kernel#Object#!= (var_n_annotations,var35) on <var_n_annotations:nullable AAnnotations> */
6102 var40
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
6108 RET_LABEL38
:(void)0;
6114 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6115 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6116 RET_LABEL42
:(void)0;
6121 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AAttrPropdef> */
6123 if (var_n_block
== NULL
) {
6124 var44
= 0; /* is null */
6126 var44
= 1; /* arg is null and recv is not */
6129 { /* Inline kernel#Object#!= (var_n_block,var43) on <var_n_block:nullable AExpr> */
6132 var48
= ((short int (*)(val
*, val
*))(var_n_block
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
6138 RET_LABEL46
:(void)0;
6144 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
6145 var_n_block
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
6146 RET_LABEL50
:(void)0;
6153 /* method parser_prod#AAttrPropdef#init_aattrpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwvar, nullable TId, nullable AType, nullable AExpr, nullable AAnnotations, nullable AExpr) */
6154 void VIRTUAL_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
) {
6155 parser_prod__AAttrPropdef__init_aattrpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
); /* Direct call parser_prod#AAttrPropdef#init_aattrpropdef on <self:Object(AAttrPropdef)>*/
6158 /* method parser_prod#AAttrPropdef#replace_child for (self: AAttrPropdef, ANode, nullable ANode) */
6159 void parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6160 val
* var_old_child
/* var old_child: ANode */;
6161 val
* var_new_child
/* var new_child: nullable ANode */;
6162 val
* var
/* : nullable ADoc */;
6163 short int var1
/* : Bool */;
6164 short int var2
/* : Bool */;
6165 val
* var_other
/* var other: nullable Object */;
6166 short int var4
/* : Bool */;
6167 short int var6
/* : Bool */;
6168 short int var7
/* : Bool */;
6171 const char* var_class_name
;
6172 val
* var8
/* : nullable TKwredef */;
6173 short int var9
/* : Bool */;
6174 short int var10
/* : Bool */;
6175 short int var12
/* : Bool */;
6176 short int var14
/* : Bool */;
6177 short int var15
/* : Bool */;
6180 const char* var_class_name18
;
6181 val
* var19
/* : nullable AVisibility */;
6182 short int var20
/* : Bool */;
6183 short int var21
/* : Bool */;
6184 short int var23
/* : Bool */;
6185 short int var25
/* : Bool */;
6186 short int var26
/* : Bool */;
6189 const char* var_class_name29
;
6190 val
* var30
/* : TKwvar */;
6191 short int var31
/* : Bool */;
6192 short int var32
/* : Bool */;
6193 short int var34
/* : Bool */;
6194 short int var36
/* : Bool */;
6195 short int var37
/* : Bool */;
6198 const char* var_class_name40
;
6199 val
* var41
/* : TId */;
6200 short int var42
/* : Bool */;
6201 short int var43
/* : Bool */;
6202 short int var45
/* : Bool */;
6203 short int var47
/* : Bool */;
6204 short int var48
/* : Bool */;
6207 const char* var_class_name51
;
6208 val
* var52
/* : nullable AType */;
6209 short int var53
/* : Bool */;
6210 short int var54
/* : Bool */;
6211 short int var56
/* : Bool */;
6212 short int var58
/* : Bool */;
6213 short int var59
/* : Bool */;
6216 const char* var_class_name62
;
6217 val
* var63
/* : nullable AExpr */;
6218 short int var64
/* : Bool */;
6219 short int var65
/* : Bool */;
6220 short int var67
/* : Bool */;
6221 short int var69
/* : Bool */;
6222 short int var70
/* : Bool */;
6225 const char* var_class_name73
;
6226 val
* var74
/* : nullable AAnnotations */;
6227 short int var75
/* : Bool */;
6228 short int var76
/* : Bool */;
6229 short int var78
/* : Bool */;
6230 short int var80
/* : Bool */;
6231 short int var81
/* : Bool */;
6234 const char* var_class_name84
;
6235 val
* var85
/* : nullable AExpr */;
6236 short int var86
/* : Bool */;
6237 short int var87
/* : Bool */;
6238 short int var89
/* : Bool */;
6239 short int var91
/* : Bool */;
6240 short int var92
/* : Bool */;
6243 const char* var_class_name95
;
6246 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
6248 var1
= 0; /* <var_old_child:ANode> cannot be null */
6250 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
6251 var_other
= var_old_child
;
6253 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
6254 var6
= var
== var_other
;
6267 /* <var_new_child:nullable ANode> isa nullable ADoc */
6268 cltype
= type_nullable_parser_nodes__ADoc
.color
;
6269 idtype
= type_nullable_parser_nodes__ADoc
.id
;
6270 if(var_new_child
== NULL
) {
6273 if(cltype
>= var_new_child
->type
->table_size
) {
6276 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6279 if (unlikely(!var7
)) {
6280 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6281 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
6282 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 872);
6286 parser_prod__AAttrPropdef__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_doc= on <self:AAttrPropdef>*/
6291 var8
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6293 var9
= 0; /* <var_old_child:ANode> cannot be null */
6295 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
6296 var_other
= var_old_child
;
6298 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
6299 var14
= var8
== var_other
;
6302 RET_LABEL13
:(void)0;
6307 RET_LABEL11
:(void)0;
6312 /* <var_new_child:nullable ANode> isa nullable TKwredef */
6313 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
6314 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
6315 if(var_new_child
== NULL
) {
6318 if(cltype16
>= var_new_child
->type
->table_size
) {
6321 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6324 if (unlikely(!var15
)) {
6325 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6326 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
6327 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 876);
6331 parser_prod__AAttrPropdef__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwredef= on <self:AAttrPropdef>*/
6336 var19
= self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
6337 if (var19
== NULL
) {
6338 var20
= 0; /* <var_old_child:ANode> cannot be null */
6340 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
6341 var_other
= var_old_child
;
6343 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
6344 var25
= var19
== var_other
;
6347 RET_LABEL24
:(void)0;
6352 RET_LABEL22
:(void)0;
6357 /* <var_new_child:nullable ANode> isa AVisibility */
6358 cltype27
= type_parser_nodes__AVisibility
.color
;
6359 idtype28
= type_parser_nodes__AVisibility
.id
;
6360 if(var_new_child
== NULL
) {
6363 if(cltype27
>= var_new_child
->type
->table_size
) {
6366 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
6369 if (unlikely(!var26
)) {
6370 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6371 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
6372 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 880);
6376 parser_prod__AAttrPropdef__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_visibility= on <self:AAttrPropdef>*/
6381 var30
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
6382 if (unlikely(var30
== NULL
)) {
6383 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
6384 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 883);
6388 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwvar> */
6389 var_other
= var_old_child
;
6391 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwvar> */
6392 var36
= var30
== var_other
;
6395 RET_LABEL35
:(void)0;
6400 RET_LABEL33
:(void)0;
6405 /* <var_new_child:nullable ANode> isa TKwvar */
6406 cltype38
= type_parser_nodes__TKwvar
.color
;
6407 idtype39
= type_parser_nodes__TKwvar
.id
;
6408 if(var_new_child
== NULL
) {
6411 if(cltype38
>= var_new_child
->type
->table_size
) {
6414 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
6417 if (unlikely(!var37
)) {
6418 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6419 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwvar", var_class_name40
);
6420 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 884);
6424 parser_prod__AAttrPropdef__n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwvar= on <self:AAttrPropdef>*/
6429 var41
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6430 if (unlikely(var41
== NULL
)) {
6431 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
6432 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 887);
6436 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:TId> */
6437 var_other
= var_old_child
;
6439 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:TId> */
6440 var47
= var41
== var_other
;
6443 RET_LABEL46
:(void)0;
6448 RET_LABEL44
:(void)0;
6453 /* <var_new_child:nullable ANode> isa TId */
6454 cltype49
= type_parser_nodes__TId
.color
;
6455 idtype50
= type_parser_nodes__TId
.id
;
6456 if(var_new_child
== NULL
) {
6459 if(cltype49
>= var_new_child
->type
->table_size
) {
6462 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
6465 if (unlikely(!var48
)) {
6466 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6467 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name51
);
6468 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 888);
6472 parser_prod__AAttrPropdef__n_id2_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_id2= on <self:AAttrPropdef>*/
6477 var52
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6478 if (var52
== NULL
) {
6479 var53
= 0; /* <var_old_child:ANode> cannot be null */
6481 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable AType> */
6482 var_other
= var_old_child
;
6484 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable AType(AType)> */
6485 var58
= var52
== var_other
;
6488 RET_LABEL57
:(void)0;
6493 RET_LABEL55
:(void)0;
6498 /* <var_new_child:nullable ANode> isa nullable AType */
6499 cltype60
= type_nullable_parser_nodes__AType
.color
;
6500 idtype61
= type_nullable_parser_nodes__AType
.id
;
6501 if(var_new_child
== NULL
) {
6504 if(cltype60
>= var_new_child
->type
->table_size
) {
6507 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
6510 if (unlikely(!var59
)) {
6511 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6512 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name62
);
6513 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 892);
6517 parser_prod__AAttrPropdef__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_type= on <self:AAttrPropdef>*/
6522 var63
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6523 if (var63
== NULL
) {
6524 var64
= 0; /* <var_old_child:ANode> cannot be null */
6526 { /* Inline kernel#Object#== (var63,var_old_child) on <var63:nullable AExpr> */
6527 var_other
= var_old_child
;
6529 { /* Inline kernel#Object#is_same_instance (var63,var_other) on <var63:nullable AExpr(AExpr)> */
6530 var69
= var63
== var_other
;
6533 RET_LABEL68
:(void)0;
6538 RET_LABEL66
:(void)0;
6543 /* <var_new_child:nullable ANode> isa nullable AExpr */
6544 cltype71
= type_nullable_parser_nodes__AExpr
.color
;
6545 idtype72
= type_nullable_parser_nodes__AExpr
.id
;
6546 if(var_new_child
== NULL
) {
6549 if(cltype71
>= var_new_child
->type
->table_size
) {
6552 var70
= var_new_child
->type
->type_table
[cltype71
] == idtype72
;
6555 if (unlikely(!var70
)) {
6556 var_class_name73
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6557 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name73
);
6558 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 896);
6562 parser_prod__AAttrPropdef__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_expr= on <self:AAttrPropdef>*/
6567 var74
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6568 if (var74
== NULL
) {
6569 var75
= 0; /* <var_old_child:ANode> cannot be null */
6571 { /* Inline kernel#Object#== (var74,var_old_child) on <var74:nullable AAnnotations> */
6572 var_other
= var_old_child
;
6574 { /* Inline kernel#Object#is_same_instance (var74,var_other) on <var74:nullable AAnnotations(AAnnotations)> */
6575 var80
= var74
== var_other
;
6578 RET_LABEL79
:(void)0;
6583 RET_LABEL77
:(void)0;
6588 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6589 cltype82
= type_nullable_parser_nodes__AAnnotations
.color
;
6590 idtype83
= type_nullable_parser_nodes__AAnnotations
.id
;
6591 if(var_new_child
== NULL
) {
6594 if(cltype82
>= var_new_child
->type
->table_size
) {
6597 var81
= var_new_child
->type
->type_table
[cltype82
] == idtype83
;
6600 if (unlikely(!var81
)) {
6601 var_class_name84
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6602 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name84
);
6603 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 900);
6607 parser_prod__AAttrPropdef__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_annotations= on <self:AAttrPropdef>*/
6612 var85
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
6613 if (var85
== NULL
) {
6614 var86
= 0; /* <var_old_child:ANode> cannot be null */
6616 { /* Inline kernel#Object#== (var85,var_old_child) on <var85:nullable AExpr> */
6617 var_other
= var_old_child
;
6619 { /* Inline kernel#Object#is_same_instance (var85,var_other) on <var85:nullable AExpr(AExpr)> */
6620 var91
= var85
== var_other
;
6623 RET_LABEL90
:(void)0;
6628 RET_LABEL88
:(void)0;
6633 /* <var_new_child:nullable ANode> isa nullable AExpr */
6634 cltype93
= type_nullable_parser_nodes__AExpr
.color
;
6635 idtype94
= type_nullable_parser_nodes__AExpr
.id
;
6636 if(var_new_child
== NULL
) {
6639 if(cltype93
>= var_new_child
->type
->table_size
) {
6642 var92
= var_new_child
->type
->type_table
[cltype93
] == idtype94
;
6645 if (unlikely(!var92
)) {
6646 var_class_name95
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6647 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name95
);
6648 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 904);
6652 parser_prod__AAttrPropdef__n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_block= on <self:AAttrPropdef>*/
6659 /* method parser_prod#AAttrPropdef#replace_child for (self: Object, ANode, nullable ANode) */
6660 void VIRTUAL_parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6661 parser_prod__AAttrPropdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAttrPropdef#replace_child on <self:Object(AAttrPropdef)>*/
6664 /* method parser_prod#AAttrPropdef#n_doc= for (self: AAttrPropdef, nullable ADoc) */
6665 void parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
6666 val
* var_node
/* var node: nullable ADoc */;
6667 val
* var
/* : null */;
6668 short int var1
/* : Bool */;
6669 short int var2
/* : Bool */;
6670 val
* var_other
/* var other: nullable Object */;
6671 short int var4
/* : Bool */;
6672 short int var5
/* : Bool */;
6673 short int var6
/* : Bool */;
6675 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AAttrPropdef> */
6677 if (var_node
== NULL
) {
6678 var1
= 0; /* is null */
6680 var1
= 1; /* arg is null and recv is not */
6683 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
6686 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
6698 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
6699 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
6707 /* method parser_prod#AAttrPropdef#n_doc= for (self: Object, nullable ADoc) */
6708 void VIRTUAL_parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
6709 parser_prod__AAttrPropdef__n_doc_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_doc= on <self:Object(AAttrPropdef)>*/
6712 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: AAttrPropdef, nullable TKwredef) */
6713 void parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6714 val
* var_node
/* var node: nullable TKwredef */;
6715 val
* var
/* : null */;
6716 short int var1
/* : Bool */;
6717 short int var2
/* : Bool */;
6718 val
* var_other
/* var other: nullable Object */;
6719 short int var4
/* : Bool */;
6720 short int var5
/* : Bool */;
6721 short int var6
/* : Bool */;
6723 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAttrPropdef> */
6725 if (var_node
== NULL
) {
6726 var1
= 0; /* is null */
6728 var1
= 1; /* arg is null and recv is not */
6731 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
6734 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
6746 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
6747 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
6755 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
6756 void VIRTUAL_parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6757 parser_prod__AAttrPropdef__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_kwredef= on <self:Object(AAttrPropdef)>*/
6760 /* method parser_prod#AAttrPropdef#n_visibility= for (self: AAttrPropdef, nullable AVisibility) */
6761 void parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6762 val
* var_node
/* var node: nullable AVisibility */;
6764 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAttrPropdef> */
6765 if (var_node
== NULL
) {
6766 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6767 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 922);
6770 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
6771 if (unlikely(var_node
== NULL
)) {
6772 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6773 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
6776 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
6782 /* method parser_prod#AAttrPropdef#n_visibility= for (self: Object, nullable AVisibility) */
6783 void VIRTUAL_parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6784 parser_prod__AAttrPropdef__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_visibility= on <self:Object(AAttrPropdef)>*/
6787 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: AAttrPropdef, TKwvar) */
6788 void parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
6789 val
* var_node
/* var node: TKwvar */;
6791 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AAttrPropdef> */
6793 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwvar> */
6794 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwvar> */
6800 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: Object, TKwvar) */
6801 void VIRTUAL_parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
6802 parser_prod__AAttrPropdef__n_kwvar_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_kwvar= on <self:Object(AAttrPropdef)>*/
6805 /* method parser_prod#AAttrPropdef#n_id2= for (self: AAttrPropdef, TId) */
6806 void parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
6807 val
* var_node
/* var node: TId */;
6809 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_node
; /* _n_id2 on <self:AAttrPropdef> */
6811 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6812 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6818 /* method parser_prod#AAttrPropdef#n_id2= for (self: Object, TId) */
6819 void VIRTUAL_parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
6820 parser_prod__AAttrPropdef__n_id2_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_id2= on <self:Object(AAttrPropdef)>*/
6823 /* method parser_prod#AAttrPropdef#n_type= for (self: AAttrPropdef, nullable AType) */
6824 void parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
6825 val
* var_node
/* var node: nullable AType */;
6826 val
* var
/* : null */;
6827 short int var1
/* : Bool */;
6828 short int var2
/* : Bool */;
6829 val
* var_other
/* var other: nullable Object */;
6830 short int var4
/* : Bool */;
6831 short int var5
/* : Bool */;
6832 short int var6
/* : Bool */;
6834 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_node
; /* _n_type on <self:AAttrPropdef> */
6836 if (var_node
== NULL
) {
6837 var1
= 0; /* is null */
6839 var1
= 1; /* arg is null and recv is not */
6842 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AType> */
6845 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AType(AType)>*/;
6857 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
6858 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
6866 /* method parser_prod#AAttrPropdef#n_type= for (self: Object, nullable AType) */
6867 void VIRTUAL_parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
6868 parser_prod__AAttrPropdef__n_type_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_type= on <self:Object(AAttrPropdef)>*/
6871 /* method parser_prod#AAttrPropdef#n_expr= for (self: AAttrPropdef, nullable AExpr) */
6872 void parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
6873 val
* var_node
/* var node: nullable AExpr */;
6874 val
* var
/* : null */;
6875 short int var1
/* : Bool */;
6876 short int var2
/* : Bool */;
6877 val
* var_other
/* var other: nullable Object */;
6878 short int var4
/* : Bool */;
6879 short int var5
/* : Bool */;
6880 short int var6
/* : Bool */;
6882 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrPropdef> */
6884 if (var_node
== NULL
) {
6885 var1
= 0; /* is null */
6887 var1
= 1; /* arg is null and recv is not */
6890 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6893 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
6905 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6906 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6914 /* method parser_prod#AAttrPropdef#n_expr= for (self: Object, nullable AExpr) */
6915 void VIRTUAL_parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
6916 parser_prod__AAttrPropdef__n_expr_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_expr= on <self:Object(AAttrPropdef)>*/
6919 /* method parser_prod#AAttrPropdef#n_annotations= for (self: AAttrPropdef, nullable AAnnotations) */
6920 void parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
6921 val
* var_node
/* var node: nullable AAnnotations */;
6922 val
* var
/* : null */;
6923 short int var1
/* : Bool */;
6924 short int var2
/* : Bool */;
6925 val
* var_other
/* var other: nullable Object */;
6926 short int var4
/* : Bool */;
6927 short int var5
/* : Bool */;
6928 short int var6
/* : Bool */;
6930 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAttrPropdef> */
6932 if (var_node
== NULL
) {
6933 var1
= 0; /* is null */
6935 var1
= 1; /* arg is null and recv is not */
6938 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
6941 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
6953 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6954 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6962 /* method parser_prod#AAttrPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
6963 void VIRTUAL_parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
6964 parser_prod__AAttrPropdef__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_annotations= on <self:Object(AAttrPropdef)>*/
6967 /* method parser_prod#AAttrPropdef#n_block= for (self: AAttrPropdef, nullable AExpr) */
6968 void parser_prod__AAttrPropdef__n_block_61d(val
* self
, val
* p0
) {
6969 val
* var_node
/* var node: nullable AExpr */;
6970 val
* var
/* : null */;
6971 short int var1
/* : Bool */;
6972 short int var2
/* : Bool */;
6973 val
* var_other
/* var other: nullable Object */;
6974 short int var4
/* : Bool */;
6975 short int var5
/* : Bool */;
6976 short int var6
/* : Bool */;
6978 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_block
].val
= var_node
; /* _n_block on <self:AAttrPropdef> */
6980 if (var_node
== NULL
) {
6981 var1
= 0; /* is null */
6983 var1
= 1; /* arg is null and recv is not */
6986 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
6989 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
7001 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7002 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7010 /* method parser_prod#AAttrPropdef#n_block= for (self: Object, nullable AExpr) */
7011 void VIRTUAL_parser_prod__AAttrPropdef__n_block_61d(val
* self
, val
* p0
) {
7012 parser_prod__AAttrPropdef__n_block_61d(self
, p0
); /* Direct call parser_prod#AAttrPropdef#n_block= on <self:Object(AAttrPropdef)>*/
7015 /* method parser_prod#AAttrPropdef#visit_all for (self: AAttrPropdef, Visitor) */
7016 void parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
7017 val
* var_v
/* var v: Visitor */;
7018 val
* var
/* : nullable ADoc */;
7019 val
* var1
/* : nullable TKwredef */;
7020 val
* var2
/* : nullable AVisibility */;
7021 val
* var3
/* : TKwvar */;
7022 val
* var4
/* : TId */;
7023 val
* var5
/* : nullable AType */;
7024 val
* var6
/* : nullable AExpr */;
7025 val
* var7
/* : nullable AAnnotations */;
7026 val
* var8
/* : nullable AExpr */;
7028 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
7030 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7032 var1
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
7034 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7036 var2
= self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
7038 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7040 var3
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
7041 if (unlikely(var3
== NULL
)) {
7042 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
7043 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 961);
7047 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7049 var4
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
7050 if (unlikely(var4
== NULL
)) {
7051 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
7052 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 962);
7056 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7058 var5
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
7060 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7062 var6
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
7064 parser_nodes__Visitor__enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7066 var7
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
7068 parser_nodes__Visitor__enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7070 var8
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
7072 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7076 /* method parser_prod#AAttrPropdef#visit_all for (self: Object, Visitor) */
7077 void VIRTUAL_parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
7078 parser_prod__AAttrPropdef__visit_all(self
, p0
); /* Direct call parser_prod#AAttrPropdef#visit_all on <self:Object(AAttrPropdef)>*/
7081 /* method parser_prod#AMainMethPropdef#init_amainmethpropdef for (self: AMainMethPropdef, nullable TKwredef, nullable AExpr) */
7082 void parser_prod__AMainMethPropdef__init_amainmethpropdef(val
* self
, val
* p0
, val
* p1
) {
7083 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7084 val
* var_n_block
/* var n_block: nullable AExpr */;
7085 val
* var
/* : null */;
7086 short int var1
/* : Bool */;
7087 short int var2
/* : Bool */;
7088 val
* var_other
/* var other: nullable Object */;
7089 short int var4
/* : Bool */;
7090 short int var5
/* : Bool */;
7091 short int var6
/* : Bool */;
7092 val
* var8
/* : null */;
7093 short int var9
/* : Bool */;
7094 short int var10
/* : Bool */;
7095 short int var12
/* : Bool */;
7096 short int var13
/* : Bool */;
7097 short int var14
/* : Bool */;
7100 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMainMethPropdef> */
7102 if (var_n_kwredef
== NULL
) {
7103 var1
= 0; /* is null */
7105 var1
= 1; /* arg is null and recv is not */
7108 { /* Inline kernel#Object#!= (var_n_kwredef,var) on <var_n_kwredef:nullable TKwredef> */
7111 var5
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
7123 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7124 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7130 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMainMethPropdef> */
7132 if (var_n_block
== NULL
) {
7133 var9
= 0; /* is null */
7135 var9
= 1; /* arg is null and recv is not */
7138 { /* Inline kernel#Object#!= (var_n_block,var8) on <var_n_block:nullable AExpr> */
7141 var13
= ((short int (*)(val
*, val
*))(var_n_block
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
7147 RET_LABEL11
:(void)0;
7153 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
7154 var_n_block
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
7155 RET_LABEL15
:(void)0;
7162 /* method parser_prod#AMainMethPropdef#init_amainmethpropdef for (self: Object, nullable TKwredef, nullable AExpr) */
7163 void VIRTUAL_parser_prod__AMainMethPropdef__init_amainmethpropdef(val
* self
, val
* p0
, val
* p1
) {
7164 parser_prod__AMainMethPropdef__init_amainmethpropdef(self
, p0
, p1
); /* Direct call parser_prod#AMainMethPropdef#init_amainmethpropdef on <self:Object(AMainMethPropdef)>*/
7167 /* method parser_prod#AMainMethPropdef#replace_child for (self: AMainMethPropdef, ANode, nullable ANode) */
7168 void parser_prod__AMainMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7169 val
* var_old_child
/* var old_child: ANode */;
7170 val
* var_new_child
/* var new_child: nullable ANode */;
7171 val
* var
/* : nullable TKwredef */;
7172 short int var1
/* : Bool */;
7173 short int var2
/* : Bool */;
7174 val
* var_other
/* var other: nullable Object */;
7175 short int var4
/* : Bool */;
7176 short int var6
/* : Bool */;
7177 short int var7
/* : Bool */;
7180 const char* var_class_name
;
7181 val
* var8
/* : nullable AExpr */;
7182 short int var9
/* : Bool */;
7183 short int var10
/* : Bool */;
7184 short int var12
/* : Bool */;
7185 short int var14
/* : Bool */;
7186 short int var15
/* : Bool */;
7189 const char* var_class_name18
;
7192 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
7194 var1
= 0; /* <var_old_child:ANode> cannot be null */
7196 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwredef> */
7197 var_other
= var_old_child
;
7199 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwredef(TKwredef)> */
7200 var6
= var
== var_other
;
7213 /* <var_new_child:nullable ANode> isa nullable TKwredef */
7214 cltype
= type_nullable_parser_nodes__TKwredef
.color
;
7215 idtype
= type_nullable_parser_nodes__TKwredef
.id
;
7216 if(var_new_child
== NULL
) {
7219 if(cltype
>= var_new_child
->type
->table_size
) {
7222 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7225 if (unlikely(!var7
)) {
7226 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7227 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name
);
7228 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 984);
7232 parser_prod__AMainMethPropdef__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_kwredef= on <self:AMainMethPropdef>*/
7237 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
7239 var9
= 0; /* <var_old_child:ANode> cannot be null */
7241 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
7242 var_other
= var_old_child
;
7244 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
7245 var14
= var8
== var_other
;
7248 RET_LABEL13
:(void)0;
7253 RET_LABEL11
:(void)0;
7258 /* <var_new_child:nullable ANode> isa nullable AExpr */
7259 cltype16
= type_nullable_parser_nodes__AExpr
.color
;
7260 idtype17
= type_nullable_parser_nodes__AExpr
.id
;
7261 if(var_new_child
== NULL
) {
7264 if(cltype16
>= var_new_child
->type
->table_size
) {
7267 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7270 if (unlikely(!var15
)) {
7271 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7272 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
7273 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 988);
7277 parser_prod__AMainMethPropdef__n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_block= on <self:AMainMethPropdef>*/
7284 /* method parser_prod#AMainMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
7285 void VIRTUAL_parser_prod__AMainMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7286 parser_prod__AMainMethPropdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMainMethPropdef#replace_child on <self:Object(AMainMethPropdef)>*/
7289 /* method parser_prod#AMainMethPropdef#n_kwredef= for (self: AMainMethPropdef, nullable TKwredef) */
7290 void parser_prod__AMainMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7291 val
* var_node
/* var node: nullable TKwredef */;
7292 val
* var
/* : null */;
7293 short int var1
/* : Bool */;
7294 short int var2
/* : Bool */;
7295 val
* var_other
/* var other: nullable Object */;
7296 short int var4
/* : Bool */;
7297 short int var5
/* : Bool */;
7298 short int var6
/* : Bool */;
7300 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMainMethPropdef> */
7302 if (var_node
== NULL
) {
7303 var1
= 0; /* is null */
7305 var1
= 1; /* arg is null and recv is not */
7308 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
7311 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
7323 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
7324 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
7332 /* method parser_prod#AMainMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
7333 void VIRTUAL_parser_prod__AMainMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7334 parser_prod__AMainMethPropdef__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AMainMethPropdef#n_kwredef= on <self:Object(AMainMethPropdef)>*/
7337 /* method parser_prod#AMainMethPropdef#n_block= for (self: AMainMethPropdef, nullable AExpr) */
7338 void parser_prod__AMainMethPropdef__n_block_61d(val
* self
, val
* p0
) {
7339 val
* var_node
/* var node: nullable AExpr */;
7340 val
* var
/* : null */;
7341 short int var1
/* : Bool */;
7342 short int var2
/* : Bool */;
7343 val
* var_other
/* var other: nullable Object */;
7344 short int var4
/* : Bool */;
7345 short int var5
/* : Bool */;
7346 short int var6
/* : Bool */;
7348 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMainMethPropdef> */
7350 if (var_node
== NULL
) {
7351 var1
= 0; /* is null */
7353 var1
= 1; /* arg is null and recv is not */
7356 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
7359 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
7371 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7372 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7380 /* method parser_prod#AMainMethPropdef#n_block= for (self: Object, nullable AExpr) */
7381 void VIRTUAL_parser_prod__AMainMethPropdef__n_block_61d(val
* self
, val
* p0
) {
7382 parser_prod__AMainMethPropdef__n_block_61d(self
, p0
); /* Direct call parser_prod#AMainMethPropdef#n_block= on <self:Object(AMainMethPropdef)>*/
7385 /* method parser_prod#AMainMethPropdef#visit_all for (self: AMainMethPropdef, Visitor) */
7386 void parser_prod__AMainMethPropdef__visit_all(val
* self
, val
* p0
) {
7387 val
* var_v
/* var v: Visitor */;
7388 val
* var
/* : nullable TKwredef */;
7389 val
* var1
/* : nullable AExpr */;
7391 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
7393 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7395 var1
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
7397 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7401 /* method parser_prod#AMainMethPropdef#visit_all for (self: Object, Visitor) */
7402 void VIRTUAL_parser_prod__AMainMethPropdef__visit_all(val
* self
, val
* p0
) {
7403 parser_prod__AMainMethPropdef__visit_all(self
, p0
); /* Direct call parser_prod#AMainMethPropdef#visit_all on <self:Object(AMainMethPropdef)>*/
7406 /* method parser_prod#ATypePropdef#init_atypepropdef for (self: ATypePropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwtype, nullable TClassid, nullable AType, nullable AAnnotations) */
7407 void parser_prod__ATypePropdef__init_atypepropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
7408 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7409 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7410 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7411 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
7412 val
* var_n_id
/* var n_id: nullable TClassid */;
7413 val
* var_n_type
/* var n_type: nullable AType */;
7414 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7415 val
* var
/* : null */;
7416 short int var1
/* : Bool */;
7417 short int var2
/* : Bool */;
7418 val
* var_other
/* var other: nullable Object */;
7419 short int var4
/* : Bool */;
7420 short int var5
/* : Bool */;
7421 short int var6
/* : Bool */;
7422 val
* var8
/* : null */;
7423 short int var9
/* : Bool */;
7424 short int var10
/* : Bool */;
7425 short int var12
/* : Bool */;
7426 short int var13
/* : Bool */;
7427 short int var14
/* : Bool */;
7428 val
* var20
/* : null */;
7429 short int var21
/* : Bool */;
7430 short int var22
/* : Bool */;
7431 short int var24
/* : Bool */;
7432 short int var25
/* : Bool */;
7433 short int var26
/* : Bool */;
7436 var_n_visibility
= p2
;
7440 var_n_annotations
= p6
;
7441 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ATypePropdef> */
7443 if (var_n_doc
== NULL
) {
7444 var1
= 0; /* is null */
7446 var1
= 1; /* arg is null and recv is not */
7449 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
7452 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
7464 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
7465 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
7471 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ATypePropdef> */
7473 if (var_n_kwredef
== NULL
) {
7474 var9
= 0; /* is null */
7476 var9
= 1; /* arg is null and recv is not */
7479 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
7482 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
7488 RET_LABEL11
:(void)0;
7494 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7495 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7496 RET_LABEL15
:(void)0;
7501 if (unlikely(var_n_visibility
== NULL
)) {
7502 PRINT_ERROR("Runtime error: %s", "Cast failed");
7503 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1026);
7506 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ATypePropdef> */
7507 if (var_n_visibility
== NULL
) {
7508 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7509 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1027);
7512 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
7513 if (unlikely(var_n_visibility
== NULL
)) {
7514 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7515 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7518 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
7519 RET_LABEL16
:(void)0;
7522 if (unlikely(var_n_kwtype
== NULL
)) {
7523 PRINT_ERROR("Runtime error: %s", "Cast failed");
7524 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1028);
7527 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ATypePropdef> */
7528 if (var_n_kwtype
== NULL
) {
7529 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7530 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1029);
7533 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
7534 if (unlikely(var_n_kwtype
== NULL
)) {
7535 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7536 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7539 var_n_kwtype
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
7540 RET_LABEL17
:(void)0;
7543 if (unlikely(var_n_id
== NULL
)) {
7544 PRINT_ERROR("Runtime error: %s", "Cast failed");
7545 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1030);
7548 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_id
].val
= var_n_id
; /* _n_id on <self:ATypePropdef> */
7549 if (var_n_id
== NULL
) {
7550 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7551 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1031);
7554 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
7555 if (unlikely(var_n_id
== NULL
)) {
7556 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7557 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7560 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
7561 RET_LABEL18
:(void)0;
7564 if (unlikely(var_n_type
== NULL
)) {
7565 PRINT_ERROR("Runtime error: %s", "Cast failed");
7566 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1032);
7569 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_type
].val
= var_n_type
; /* _n_type on <self:ATypePropdef> */
7570 if (var_n_type
== NULL
) {
7571 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7572 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1033);
7575 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
7576 if (unlikely(var_n_type
== NULL
)) {
7577 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7578 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
7581 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
7582 RET_LABEL19
:(void)0;
7585 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATypePropdef> */
7587 if (var_n_annotations
== NULL
) {
7588 var21
= 0; /* is null */
7590 var21
= 1; /* arg is null and recv is not */
7593 { /* Inline kernel#Object#!= (var_n_annotations,var20) on <var_n_annotations:nullable AAnnotations> */
7596 var25
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
7602 RET_LABEL23
:(void)0;
7608 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7609 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7610 RET_LABEL27
:(void)0;
7617 /* method parser_prod#ATypePropdef#init_atypepropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwtype, nullable TClassid, nullable AType, nullable AAnnotations) */
7618 void VIRTUAL_parser_prod__ATypePropdef__init_atypepropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
7619 parser_prod__ATypePropdef__init_atypepropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
); /* Direct call parser_prod#ATypePropdef#init_atypepropdef on <self:Object(ATypePropdef)>*/
7622 /* method parser_prod#ATypePropdef#replace_child for (self: ATypePropdef, ANode, nullable ANode) */
7623 void parser_prod__ATypePropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7624 val
* var_old_child
/* var old_child: ANode */;
7625 val
* var_new_child
/* var new_child: nullable ANode */;
7626 val
* var
/* : nullable ADoc */;
7627 short int var1
/* : Bool */;
7628 short int var2
/* : Bool */;
7629 val
* var_other
/* var other: nullable Object */;
7630 short int var4
/* : Bool */;
7631 short int var6
/* : Bool */;
7632 short int var7
/* : Bool */;
7635 const char* var_class_name
;
7636 val
* var8
/* : nullable TKwredef */;
7637 short int var9
/* : Bool */;
7638 short int var10
/* : Bool */;
7639 short int var12
/* : Bool */;
7640 short int var14
/* : Bool */;
7641 short int var15
/* : Bool */;
7644 const char* var_class_name18
;
7645 val
* var19
/* : nullable AVisibility */;
7646 short int var20
/* : Bool */;
7647 short int var21
/* : Bool */;
7648 short int var23
/* : Bool */;
7649 short int var25
/* : Bool */;
7650 short int var26
/* : Bool */;
7653 const char* var_class_name29
;
7654 val
* var30
/* : TKwtype */;
7655 short int var31
/* : Bool */;
7656 short int var32
/* : Bool */;
7657 short int var34
/* : Bool */;
7658 short int var36
/* : Bool */;
7659 short int var37
/* : Bool */;
7662 const char* var_class_name40
;
7663 val
* var41
/* : TClassid */;
7664 short int var42
/* : Bool */;
7665 short int var43
/* : Bool */;
7666 short int var45
/* : Bool */;
7667 short int var47
/* : Bool */;
7668 short int var48
/* : Bool */;
7671 const char* var_class_name51
;
7672 val
* var52
/* : AType */;
7673 short int var53
/* : Bool */;
7674 short int var54
/* : Bool */;
7675 short int var56
/* : Bool */;
7676 short int var58
/* : Bool */;
7677 short int var59
/* : Bool */;
7680 const char* var_class_name62
;
7681 val
* var63
/* : nullable AAnnotations */;
7682 short int var64
/* : Bool */;
7683 short int var65
/* : Bool */;
7684 short int var67
/* : Bool */;
7685 short int var69
/* : Bool */;
7686 short int var70
/* : Bool */;
7689 const char* var_class_name73
;
7692 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
7694 var1
= 0; /* <var_old_child:ANode> cannot be null */
7696 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
7697 var_other
= var_old_child
;
7699 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
7700 var6
= var
== var_other
;
7713 /* <var_new_child:nullable ANode> isa nullable ADoc */
7714 cltype
= type_nullable_parser_nodes__ADoc
.color
;
7715 idtype
= type_nullable_parser_nodes__ADoc
.id
;
7716 if(var_new_child
== NULL
) {
7719 if(cltype
>= var_new_child
->type
->table_size
) {
7722 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7725 if (unlikely(!var7
)) {
7726 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7727 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
7728 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1041);
7732 parser_prod__ATypePropdef__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_doc= on <self:ATypePropdef>*/
7737 var8
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
7739 var9
= 0; /* <var_old_child:ANode> cannot be null */
7741 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
7742 var_other
= var_old_child
;
7744 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
7745 var14
= var8
== var_other
;
7748 RET_LABEL13
:(void)0;
7753 RET_LABEL11
:(void)0;
7758 /* <var_new_child:nullable ANode> isa nullable TKwredef */
7759 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
7760 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
7761 if(var_new_child
== NULL
) {
7764 if(cltype16
>= var_new_child
->type
->table_size
) {
7767 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7770 if (unlikely(!var15
)) {
7771 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7772 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
7773 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1045);
7777 parser_prod__ATypePropdef__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwredef= on <self:ATypePropdef>*/
7782 var19
= self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
7783 if (var19
== NULL
) {
7784 var20
= 0; /* <var_old_child:ANode> cannot be null */
7786 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
7787 var_other
= var_old_child
;
7789 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
7790 var25
= var19
== var_other
;
7793 RET_LABEL24
:(void)0;
7798 RET_LABEL22
:(void)0;
7803 /* <var_new_child:nullable ANode> isa AVisibility */
7804 cltype27
= type_parser_nodes__AVisibility
.color
;
7805 idtype28
= type_parser_nodes__AVisibility
.id
;
7806 if(var_new_child
== NULL
) {
7809 if(cltype27
>= var_new_child
->type
->table_size
) {
7812 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
7815 if (unlikely(!var26
)) {
7816 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7817 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
7818 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1049);
7822 parser_prod__ATypePropdef__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_visibility= on <self:ATypePropdef>*/
7827 var30
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
7828 if (unlikely(var30
== NULL
)) {
7829 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
7830 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1052);
7834 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwtype> */
7835 var_other
= var_old_child
;
7837 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwtype> */
7838 var36
= var30
== var_other
;
7841 RET_LABEL35
:(void)0;
7846 RET_LABEL33
:(void)0;
7851 /* <var_new_child:nullable ANode> isa TKwtype */
7852 cltype38
= type_parser_nodes__TKwtype
.color
;
7853 idtype39
= type_parser_nodes__TKwtype
.id
;
7854 if(var_new_child
== NULL
) {
7857 if(cltype38
>= var_new_child
->type
->table_size
) {
7860 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
7863 if (unlikely(!var37
)) {
7864 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7865 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name40
);
7866 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1053);
7870 parser_prod__ATypePropdef__n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwtype= on <self:ATypePropdef>*/
7875 var41
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_id
].val
; /* _n_id on <self:ATypePropdef> */
7876 if (unlikely(var41
== NULL
)) {
7877 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7878 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1056);
7882 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:TClassid> */
7883 var_other
= var_old_child
;
7885 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:TClassid> */
7886 var47
= var41
== var_other
;
7889 RET_LABEL46
:(void)0;
7894 RET_LABEL44
:(void)0;
7899 /* <var_new_child:nullable ANode> isa TClassid */
7900 cltype49
= type_parser_nodes__TClassid
.color
;
7901 idtype50
= type_parser_nodes__TClassid
.id
;
7902 if(var_new_child
== NULL
) {
7905 if(cltype49
>= var_new_child
->type
->table_size
) {
7908 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
7911 if (unlikely(!var48
)) {
7912 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7913 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name51
);
7914 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1057);
7918 parser_prod__ATypePropdef__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_id= on <self:ATypePropdef>*/
7923 var52
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
7924 if (unlikely(var52
== NULL
)) {
7925 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
7926 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1060);
7930 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:AType> */
7931 var_other
= var_old_child
;
7933 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:AType> */
7934 var58
= var52
== var_other
;
7937 RET_LABEL57
:(void)0;
7942 RET_LABEL55
:(void)0;
7947 /* <var_new_child:nullable ANode> isa AType */
7948 cltype60
= type_parser_nodes__AType
.color
;
7949 idtype61
= type_parser_nodes__AType
.id
;
7950 if(var_new_child
== NULL
) {
7953 if(cltype60
>= var_new_child
->type
->table_size
) {
7956 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
7959 if (unlikely(!var59
)) {
7960 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7961 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name62
);
7962 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1061);
7966 parser_prod__ATypePropdef__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_type= on <self:ATypePropdef>*/
7971 var63
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
7972 if (var63
== NULL
) {
7973 var64
= 0; /* <var_old_child:ANode> cannot be null */
7975 { /* Inline kernel#Object#== (var63,var_old_child) on <var63:nullable AAnnotations> */
7976 var_other
= var_old_child
;
7978 { /* Inline kernel#Object#is_same_instance (var63,var_other) on <var63:nullable AAnnotations(AAnnotations)> */
7979 var69
= var63
== var_other
;
7982 RET_LABEL68
:(void)0;
7987 RET_LABEL66
:(void)0;
7992 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7993 cltype71
= type_nullable_parser_nodes__AAnnotations
.color
;
7994 idtype72
= type_nullable_parser_nodes__AAnnotations
.id
;
7995 if(var_new_child
== NULL
) {
7998 if(cltype71
>= var_new_child
->type
->table_size
) {
8001 var70
= var_new_child
->type
->type_table
[cltype71
] == idtype72
;
8004 if (unlikely(!var70
)) {
8005 var_class_name73
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8006 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name73
);
8007 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1065);
8011 parser_prod__ATypePropdef__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_annotations= on <self:ATypePropdef>*/
8018 /* method parser_prod#ATypePropdef#replace_child for (self: Object, ANode, nullable ANode) */
8019 void VIRTUAL_parser_prod__ATypePropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8020 parser_prod__ATypePropdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATypePropdef#replace_child on <self:Object(ATypePropdef)>*/
8023 /* method parser_prod#ATypePropdef#n_doc= for (self: ATypePropdef, nullable ADoc) */
8024 void parser_prod__ATypePropdef__n_doc_61d(val
* self
, val
* p0
) {
8025 val
* var_node
/* var node: nullable ADoc */;
8026 val
* var
/* : null */;
8027 short int var1
/* : Bool */;
8028 short int var2
/* : Bool */;
8029 val
* var_other
/* var other: nullable Object */;
8030 short int var4
/* : Bool */;
8031 short int var5
/* : Bool */;
8032 short int var6
/* : Bool */;
8034 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:ATypePropdef> */
8036 if (var_node
== NULL
) {
8037 var1
= 0; /* is null */
8039 var1
= 1; /* arg is null and recv is not */
8042 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
8045 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
8057 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
8058 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
8066 /* method parser_prod#ATypePropdef#n_doc= for (self: Object, nullable ADoc) */
8067 void VIRTUAL_parser_prod__ATypePropdef__n_doc_61d(val
* self
, val
* p0
) {
8068 parser_prod__ATypePropdef__n_doc_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_doc= on <self:Object(ATypePropdef)>*/
8071 /* method parser_prod#ATypePropdef#n_kwredef= for (self: ATypePropdef, nullable TKwredef) */
8072 void parser_prod__ATypePropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8073 val
* var_node
/* var node: nullable TKwredef */;
8074 val
* var
/* : null */;
8075 short int var1
/* : Bool */;
8076 short int var2
/* : Bool */;
8077 val
* var_other
/* var other: nullable Object */;
8078 short int var4
/* : Bool */;
8079 short int var5
/* : Bool */;
8080 short int var6
/* : Bool */;
8082 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ATypePropdef> */
8084 if (var_node
== NULL
) {
8085 var1
= 0; /* is null */
8087 var1
= 1; /* arg is null and recv is not */
8090 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
8093 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
8105 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
8106 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
8114 /* method parser_prod#ATypePropdef#n_kwredef= for (self: Object, nullable TKwredef) */
8115 void VIRTUAL_parser_prod__ATypePropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8116 parser_prod__ATypePropdef__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_kwredef= on <self:Object(ATypePropdef)>*/
8119 /* method parser_prod#ATypePropdef#n_visibility= for (self: ATypePropdef, nullable AVisibility) */
8120 void parser_prod__ATypePropdef__n_visibility_61d(val
* self
, val
* p0
) {
8121 val
* var_node
/* var node: nullable AVisibility */;
8123 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:ATypePropdef> */
8124 if (var_node
== NULL
) {
8125 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8126 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1083);
8129 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
8130 if (unlikely(var_node
== NULL
)) {
8131 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8132 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8135 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
8141 /* method parser_prod#ATypePropdef#n_visibility= for (self: Object, nullable AVisibility) */
8142 void VIRTUAL_parser_prod__ATypePropdef__n_visibility_61d(val
* self
, val
* p0
) {
8143 parser_prod__ATypePropdef__n_visibility_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_visibility= on <self:Object(ATypePropdef)>*/
8146 /* method parser_prod#ATypePropdef#n_kwtype= for (self: ATypePropdef, TKwtype) */
8147 void parser_prod__ATypePropdef__n_kwtype_61d(val
* self
, val
* p0
) {
8148 val
* var_node
/* var node: TKwtype */;
8150 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ATypePropdef> */
8152 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
8153 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
8159 /* method parser_prod#ATypePropdef#n_kwtype= for (self: Object, TKwtype) */
8160 void VIRTUAL_parser_prod__ATypePropdef__n_kwtype_61d(val
* self
, val
* p0
) {
8161 parser_prod__ATypePropdef__n_kwtype_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_kwtype= on <self:Object(ATypePropdef)>*/
8164 /* method parser_prod#ATypePropdef#n_id= for (self: ATypePropdef, TClassid) */
8165 void parser_prod__ATypePropdef__n_id_61d(val
* self
, val
* p0
) {
8166 val
* var_node
/* var node: TClassid */;
8168 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_id
].val
= var_node
; /* _n_id on <self:ATypePropdef> */
8170 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
8171 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
8177 /* method parser_prod#ATypePropdef#n_id= for (self: Object, TClassid) */
8178 void VIRTUAL_parser_prod__ATypePropdef__n_id_61d(val
* self
, val
* p0
) {
8179 parser_prod__ATypePropdef__n_id_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_id= on <self:Object(ATypePropdef)>*/
8182 /* method parser_prod#ATypePropdef#n_type= for (self: ATypePropdef, AType) */
8183 void parser_prod__ATypePropdef__n_type_61d(val
* self
, val
* p0
) {
8184 val
* var_node
/* var node: AType */;
8186 self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_type
].val
= var_node
; /* _n_type on <self:ATypePropdef> */
8188 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
8189 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
8195 /* method parser_prod#ATypePropdef#n_type= for (self: Object, AType) */
8196 void VIRTUAL_parser_prod__ATypePropdef__n_type_61d(val
* self
, val
* p0
) {
8197 parser_prod__ATypePropdef__n_type_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_type= on <self:Object(ATypePropdef)>*/
8200 /* method parser_prod#ATypePropdef#n_annotations= for (self: ATypePropdef, nullable AAnnotations) */
8201 void parser_prod__ATypePropdef__n_annotations_61d(val
* self
, val
* p0
) {
8202 val
* var_node
/* var node: nullable AAnnotations */;
8203 val
* var
/* : null */;
8204 short int var1
/* : Bool */;
8205 short int var2
/* : Bool */;
8206 val
* var_other
/* var other: nullable Object */;
8207 short int var4
/* : Bool */;
8208 short int var5
/* : Bool */;
8209 short int var6
/* : Bool */;
8211 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATypePropdef> */
8213 if (var_node
== NULL
) {
8214 var1
= 0; /* is null */
8216 var1
= 1; /* arg is null and recv is not */
8219 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
8222 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
8234 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
8235 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
8243 /* method parser_prod#ATypePropdef#n_annotations= for (self: Object, nullable AAnnotations) */
8244 void VIRTUAL_parser_prod__ATypePropdef__n_annotations_61d(val
* self
, val
* p0
) {
8245 parser_prod__ATypePropdef__n_annotations_61d(self
, p0
); /* Direct call parser_prod#ATypePropdef#n_annotations= on <self:Object(ATypePropdef)>*/
8248 /* method parser_prod#ATypePropdef#visit_all for (self: ATypePropdef, Visitor) */
8249 void parser_prod__ATypePropdef__visit_all(val
* self
, val
* p0
) {
8250 val
* var_v
/* var v: Visitor */;
8251 val
* var
/* : nullable ADoc */;
8252 val
* var1
/* : nullable TKwredef */;
8253 val
* var2
/* : nullable AVisibility */;
8254 val
* var3
/* : TKwtype */;
8255 val
* var4
/* : TClassid */;
8256 val
* var5
/* : AType */;
8257 val
* var6
/* : nullable AAnnotations */;
8259 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
8261 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8263 var1
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
8265 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8267 var2
= self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
8269 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8271 var3
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
8272 if (unlikely(var3
== NULL
)) {
8273 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
8274 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1112);
8278 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8280 var4
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_id
].val
; /* _n_id on <self:ATypePropdef> */
8281 if (unlikely(var4
== NULL
)) {
8282 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
8283 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1113);
8287 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8289 var5
= self
->attrs
[COLOR_parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
8290 if (unlikely(var5
== NULL
)) {
8291 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
8292 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1114);
8296 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8298 var6
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
8300 parser_nodes__Visitor__enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8304 /* method parser_prod#ATypePropdef#visit_all for (self: Object, Visitor) */
8305 void VIRTUAL_parser_prod__ATypePropdef__visit_all(val
* self
, val
* p0
) {
8306 parser_prod__ATypePropdef__visit_all(self
, p0
); /* Direct call parser_prod#ATypePropdef#visit_all on <self:Object(ATypePropdef)>*/
8309 /* 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) */
8310 void 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
) {
8311 val
* var_n_doc
/* var n_doc: nullable ADoc */;
8312 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
8313 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
8314 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
8315 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
8316 val
* var_n_kwnew
/* var n_kwnew: nullable TKwnew */;
8317 val
* var_n_methid
/* var n_methid: nullable AMethid */;
8318 val
* var_n_signature
/* var n_signature: nullable ASignature */;
8319 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8320 val
* var_n_extern_calls
/* var n_extern_calls: nullable AExternCalls */;
8321 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
8322 val
* var_n_block
/* var n_block: nullable AExpr */;
8323 val
* var
/* : null */;
8324 short int var1
/* : Bool */;
8325 short int var2
/* : Bool */;
8326 val
* var_other
/* var other: nullable Object */;
8327 short int var4
/* : Bool */;
8328 short int var5
/* : Bool */;
8329 short int var6
/* : Bool */;
8330 val
* var8
/* : null */;
8331 short int var9
/* : Bool */;
8332 short int var10
/* : Bool */;
8333 short int var12
/* : Bool */;
8334 short int var13
/* : Bool */;
8335 short int var14
/* : Bool */;
8336 val
* var17
/* : null */;
8337 short int var18
/* : Bool */;
8338 short int var19
/* : Bool */;
8339 short int var21
/* : Bool */;
8340 short int var22
/* : Bool */;
8341 short int var23
/* : Bool */;
8342 val
* var25
/* : null */;
8343 short int var26
/* : Bool */;
8344 short int var27
/* : Bool */;
8345 short int var29
/* : Bool */;
8346 short int var30
/* : Bool */;
8347 short int var31
/* : Bool */;
8348 val
* var33
/* : null */;
8349 short int var34
/* : Bool */;
8350 short int var35
/* : Bool */;
8351 short int var37
/* : Bool */;
8352 short int var38
/* : Bool */;
8353 short int var39
/* : Bool */;
8354 val
* var41
/* : null */;
8355 short int var42
/* : Bool */;
8356 short int var43
/* : Bool */;
8357 short int var45
/* : Bool */;
8358 short int var46
/* : Bool */;
8359 short int var47
/* : Bool */;
8360 val
* var50
/* : null */;
8361 short int var51
/* : Bool */;
8362 short int var52
/* : Bool */;
8363 short int var54
/* : Bool */;
8364 short int var55
/* : Bool */;
8365 short int var56
/* : Bool */;
8366 val
* var58
/* : null */;
8367 short int var59
/* : Bool */;
8368 short int var60
/* : Bool */;
8369 short int var62
/* : Bool */;
8370 short int var63
/* : Bool */;
8371 short int var64
/* : Bool */;
8372 val
* var66
/* : null */;
8373 short int var67
/* : Bool */;
8374 short int var68
/* : Bool */;
8375 short int var70
/* : Bool */;
8376 short int var71
/* : Bool */;
8377 short int var72
/* : Bool */;
8378 val
* var74
/* : null */;
8379 short int var75
/* : Bool */;
8380 short int var76
/* : Bool */;
8381 short int var78
/* : Bool */;
8382 short int var79
/* : Bool */;
8383 short int var80
/* : Bool */;
8386 var_n_visibility
= p2
;
8391 var_n_signature
= p7
;
8392 var_n_annotations
= p8
;
8393 var_n_extern_calls
= p9
;
8394 var_n_extern_code_block
= p10
;
8396 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AMethPropdef> */
8398 if (var_n_doc
== NULL
) {
8399 var1
= 0; /* is null */
8401 var1
= 1; /* arg is null and recv is not */
8404 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
8407 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
8419 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
8420 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
8426 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMethPropdef> */
8428 if (var_n_kwredef
== NULL
) {
8429 var9
= 0; /* is null */
8431 var9
= 1; /* arg is null and recv is not */
8434 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
8437 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
8443 RET_LABEL11
:(void)0;
8449 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
8450 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
8451 RET_LABEL15
:(void)0;
8456 if (unlikely(var_n_visibility
== NULL
)) {
8457 PRINT_ERROR("Runtime error: %s", "Cast failed");
8458 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1138);
8461 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AMethPropdef> */
8462 if (var_n_visibility
== NULL
) {
8463 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8464 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1139);
8467 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
8468 if (unlikely(var_n_visibility
== NULL
)) {
8469 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8470 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8473 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
8474 RET_LABEL16
:(void)0;
8477 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AMethPropdef> */
8479 if (var_n_kwmeth
== NULL
) {
8480 var18
= 0; /* is null */
8482 var18
= 1; /* arg is null and recv is not */
8485 { /* Inline kernel#Object#!= (var_n_kwmeth,var17) on <var_n_kwmeth:nullable TKwmeth> */
8488 var22
= ((short int (*)(val
*, val
*))(var_n_kwmeth
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwmeth
, var_other
) /* == on <var_n_kwmeth:nullable TKwmeth(TKwmeth)>*/;
8494 RET_LABEL20
:(void)0;
8500 { /* Inline parser_nodes#ANode#parent= (var_n_kwmeth,self) on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
8501 var_n_kwmeth
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
8502 RET_LABEL24
:(void)0;
8507 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AMethPropdef> */
8509 if (var_n_kwinit
== NULL
) {
8510 var26
= 0; /* is null */
8512 var26
= 1; /* arg is null and recv is not */
8515 { /* Inline kernel#Object#!= (var_n_kwinit,var25) on <var_n_kwinit:nullable TKwinit> */
8518 var30
= ((short int (*)(val
*, val
*))(var_n_kwinit
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwinit
, var_other
) /* == on <var_n_kwinit:nullable TKwinit(TKwinit)>*/;
8524 RET_LABEL28
:(void)0;
8530 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit(TKwinit)> */
8531 var_n_kwinit
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit(TKwinit)> */
8532 RET_LABEL32
:(void)0;
8537 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwnew
].val
= var_n_kwnew
; /* _n_kwnew on <self:AMethPropdef> */
8539 if (var_n_kwnew
== NULL
) {
8540 var34
= 0; /* is null */
8542 var34
= 1; /* arg is null and recv is not */
8545 { /* Inline kernel#Object#!= (var_n_kwnew,var33) on <var_n_kwnew:nullable TKwnew> */
8548 var38
= ((short int (*)(val
*, val
*))(var_n_kwnew
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwnew
, var_other
) /* == on <var_n_kwnew:nullable TKwnew(TKwnew)>*/;
8554 RET_LABEL36
:(void)0;
8560 { /* Inline parser_nodes#ANode#parent= (var_n_kwnew,self) on <var_n_kwnew:nullable TKwnew(TKwnew)> */
8561 var_n_kwnew
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnew:nullable TKwnew(TKwnew)> */
8562 RET_LABEL40
:(void)0;
8567 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AMethPropdef> */
8569 if (var_n_methid
== NULL
) {
8570 var42
= 0; /* is null */
8572 var42
= 1; /* arg is null and recv is not */
8575 { /* Inline kernel#Object#!= (var_n_methid,var41) on <var_n_methid:nullable AMethid> */
8578 var46
= ((short int (*)(val
*, val
*))(var_n_methid
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_methid
, var_other
) /* == on <var_n_methid:nullable AMethid(AMethid)>*/;
8584 RET_LABEL44
:(void)0;
8590 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid(AMethid)> */
8591 var_n_methid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid(AMethid)> */
8592 RET_LABEL48
:(void)0;
8597 if (unlikely(var_n_signature
== NULL
)) {
8598 PRINT_ERROR("Runtime error: %s", "Cast failed");
8599 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1148);
8602 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AMethPropdef> */
8603 if (var_n_signature
== NULL
) {
8604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8605 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1149);
8608 { /* Inline parser_nodes#ANode#parent= (var_n_signature,self) on <var_n_signature:nullable ASignature> */
8609 if (unlikely(var_n_signature
== NULL
)) {
8610 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8611 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
8614 var_n_signature
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_signature:nullable ASignature> */
8615 RET_LABEL49
:(void)0;
8618 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AMethPropdef> */
8620 if (var_n_annotations
== NULL
) {
8621 var51
= 0; /* is null */
8623 var51
= 1; /* arg is null and recv is not */
8626 { /* Inline kernel#Object#!= (var_n_annotations,var50) on <var_n_annotations:nullable AAnnotations> */
8629 var55
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
8635 RET_LABEL53
:(void)0;
8641 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8642 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
8643 RET_LABEL57
:(void)0;
8648 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_calls
].val
= var_n_extern_calls
; /* _n_extern_calls on <self:AMethPropdef> */
8650 if (var_n_extern_calls
== NULL
) {
8651 var59
= 0; /* is null */
8653 var59
= 1; /* arg is null and recv is not */
8656 { /* Inline kernel#Object#!= (var_n_extern_calls,var58) on <var_n_extern_calls:nullable AExternCalls> */
8659 var63
= ((short int (*)(val
*, val
*))(var_n_extern_calls
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_extern_calls
, var_other
) /* == on <var_n_extern_calls:nullable AExternCalls(AExternCalls)>*/;
8665 RET_LABEL61
:(void)0;
8671 { /* Inline parser_nodes#ANode#parent= (var_n_extern_calls,self) on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
8672 var_n_extern_calls
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
8673 RET_LABEL65
:(void)0;
8678 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AMethPropdef> */
8680 if (var_n_extern_code_block
== NULL
) {
8681 var67
= 0; /* is null */
8683 var67
= 1; /* arg is null and recv is not */
8686 { /* Inline kernel#Object#!= (var_n_extern_code_block,var66) on <var_n_extern_code_block:nullable AExternCodeBlock> */
8689 var71
= ((short int (*)(val
*, val
*))(var_n_extern_code_block
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
) /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
8695 RET_LABEL69
:(void)0;
8701 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
8702 var_n_extern_code_block
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
8703 RET_LABEL73
:(void)0;
8708 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMethPropdef> */
8710 if (var_n_block
== NULL
) {
8711 var75
= 0; /* is null */
8713 var75
= 1; /* arg is null and recv is not */
8716 { /* Inline kernel#Object#!= (var_n_block,var74) on <var_n_block:nullable AExpr> */
8719 var79
= ((short int (*)(val
*, val
*))(var_n_block
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_block
, var_other
) /* == on <var_n_block:nullable AExpr(AExpr)>*/;
8725 RET_LABEL77
:(void)0;
8731 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
8732 var_n_block
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
8733 RET_LABEL81
:(void)0;
8740 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable TKwinit, nullable TKwnew, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExternCalls, nullable AExternCodeBlock, nullable AExpr) */
8741 void VIRTUAL_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
) {
8742 parser_prod__AMethPropdef__init_amethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
, p11
); /* Direct call parser_prod#AMethPropdef#init_amethpropdef on <self:Object(AMethPropdef)>*/
8745 /* method parser_prod#AMethPropdef#replace_child for (self: AMethPropdef, ANode, nullable ANode) */
8746 void parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8747 val
* var_old_child
/* var old_child: ANode */;
8748 val
* var_new_child
/* var new_child: nullable ANode */;
8749 val
* var
/* : nullable ADoc */;
8750 short int var1
/* : Bool */;
8751 short int var2
/* : Bool */;
8752 val
* var_other
/* var other: nullable Object */;
8753 short int var4
/* : Bool */;
8754 short int var6
/* : Bool */;
8755 short int var7
/* : Bool */;
8758 const char* var_class_name
;
8759 val
* var8
/* : nullable TKwredef */;
8760 short int var9
/* : Bool */;
8761 short int var10
/* : Bool */;
8762 short int var12
/* : Bool */;
8763 short int var14
/* : Bool */;
8764 short int var15
/* : Bool */;
8767 const char* var_class_name18
;
8768 val
* var19
/* : nullable AVisibility */;
8769 short int var20
/* : Bool */;
8770 short int var21
/* : Bool */;
8771 short int var23
/* : Bool */;
8772 short int var25
/* : Bool */;
8773 short int var26
/* : Bool */;
8776 const char* var_class_name29
;
8777 val
* var30
/* : nullable TKwmeth */;
8778 short int var31
/* : Bool */;
8779 short int var32
/* : Bool */;
8780 short int var34
/* : Bool */;
8781 short int var36
/* : Bool */;
8782 short int var37
/* : Bool */;
8785 const char* var_class_name40
;
8786 val
* var41
/* : nullable TKwinit */;
8787 short int var42
/* : Bool */;
8788 short int var43
/* : Bool */;
8789 short int var45
/* : Bool */;
8790 short int var47
/* : Bool */;
8791 short int var48
/* : Bool */;
8794 const char* var_class_name51
;
8795 val
* var52
/* : nullable TKwnew */;
8796 short int var53
/* : Bool */;
8797 short int var54
/* : Bool */;
8798 short int var56
/* : Bool */;
8799 short int var58
/* : Bool */;
8800 short int var59
/* : Bool */;
8803 const char* var_class_name62
;
8804 val
* var63
/* : nullable AMethid */;
8805 short int var64
/* : Bool */;
8806 short int var65
/* : Bool */;
8807 short int var67
/* : Bool */;
8808 short int var69
/* : Bool */;
8809 short int var70
/* : Bool */;
8812 const char* var_class_name73
;
8813 val
* var74
/* : nullable ASignature */;
8814 short int var75
/* : Bool */;
8815 short int var76
/* : Bool */;
8816 short int var78
/* : Bool */;
8817 short int var80
/* : Bool */;
8818 short int var81
/* : Bool */;
8821 const char* var_class_name84
;
8822 val
* var85
/* : nullable AAnnotations */;
8823 short int var86
/* : Bool */;
8824 short int var87
/* : Bool */;
8825 short int var89
/* : Bool */;
8826 short int var91
/* : Bool */;
8827 short int var92
/* : Bool */;
8830 const char* var_class_name95
;
8831 val
* var96
/* : nullable AExternCalls */;
8832 short int var97
/* : Bool */;
8833 short int var98
/* : Bool */;
8834 short int var100
/* : Bool */;
8835 short int var102
/* : Bool */;
8836 short int var103
/* : Bool */;
8839 const char* var_class_name106
;
8840 val
* var107
/* : nullable AExternCodeBlock */;
8841 short int var108
/* : Bool */;
8842 short int var109
/* : Bool */;
8843 short int var111
/* : Bool */;
8844 short int var113
/* : Bool */;
8845 short int var114
/* : Bool */;
8848 const char* var_class_name117
;
8849 val
* var118
/* : nullable AExpr */;
8850 short int var119
/* : Bool */;
8851 short int var120
/* : Bool */;
8852 short int var122
/* : Bool */;
8853 short int var124
/* : Bool */;
8854 short int var125
/* : Bool */;
8857 const char* var_class_name128
;
8860 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
8862 var1
= 0; /* <var_old_child:ANode> cannot be null */
8864 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
8865 var_other
= var_old_child
;
8867 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
8868 var6
= var
== var_other
;
8881 /* <var_new_child:nullable ANode> isa nullable ADoc */
8882 cltype
= type_nullable_parser_nodes__ADoc
.color
;
8883 idtype
= type_nullable_parser_nodes__ADoc
.id
;
8884 if(var_new_child
== NULL
) {
8887 if(cltype
>= var_new_child
->type
->table_size
) {
8890 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8893 if (unlikely(!var7
)) {
8894 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8895 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
8896 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1163);
8900 parser_prod__AMethPropdef__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_doc= on <self:AMethPropdef>*/
8905 var8
= self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
8907 var9
= 0; /* <var_old_child:ANode> cannot be null */
8909 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
8910 var_other
= var_old_child
;
8912 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
8913 var14
= var8
== var_other
;
8916 RET_LABEL13
:(void)0;
8921 RET_LABEL11
:(void)0;
8926 /* <var_new_child:nullable ANode> isa nullable TKwredef */
8927 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
8928 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
8929 if(var_new_child
== NULL
) {
8932 if(cltype16
>= var_new_child
->type
->table_size
) {
8935 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8938 if (unlikely(!var15
)) {
8939 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8940 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
8941 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1167);
8945 ((void (*)(val
*, val
*))(self
->class->vft
[COLOR_parser_nodes__APropdef__n_kwredef_61d
]))(self
, var_new_child
) /* n_kwredef= on <self:AMethPropdef>*/;
8950 var19
= self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
8951 if (var19
== NULL
) {
8952 var20
= 0; /* <var_old_child:ANode> cannot be null */
8954 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
8955 var_other
= var_old_child
;
8957 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
8958 var25
= var19
== var_other
;
8961 RET_LABEL24
:(void)0;
8966 RET_LABEL22
:(void)0;
8971 /* <var_new_child:nullable ANode> isa AVisibility */
8972 cltype27
= type_parser_nodes__AVisibility
.color
;
8973 idtype28
= type_parser_nodes__AVisibility
.id
;
8974 if(var_new_child
== NULL
) {
8977 if(cltype27
>= var_new_child
->type
->table_size
) {
8980 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
8983 if (unlikely(!var26
)) {
8984 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8985 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
8986 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1171);
8990 parser_prod__AMethPropdef__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_visibility= on <self:AMethPropdef>*/
8995 var30
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AMethPropdef> */
8996 if (var30
== NULL
) {
8997 var31
= 0; /* <var_old_child:ANode> cannot be null */
8999 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable TKwmeth> */
9000 var_other
= var_old_child
;
9002 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable TKwmeth(TKwmeth)> */
9003 var36
= var30
== var_other
;
9006 RET_LABEL35
:(void)0;
9011 RET_LABEL33
:(void)0;
9016 /* <var_new_child:nullable ANode> isa nullable TKwmeth */
9017 cltype38
= type_nullable_parser_nodes__TKwmeth
.color
;
9018 idtype39
= type_nullable_parser_nodes__TKwmeth
.id
;
9019 if(var_new_child
== NULL
) {
9022 if(cltype38
>= var_new_child
->type
->table_size
) {
9025 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
9028 if (unlikely(!var37
)) {
9029 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9030 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwmeth", var_class_name40
);
9031 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1175);
9035 parser_prod__AMethPropdef__n_kwmeth_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwmeth= on <self:AMethPropdef>*/
9040 var41
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AMethPropdef> */
9041 if (var41
== NULL
) {
9042 var42
= 0; /* <var_old_child:ANode> cannot be null */
9044 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TKwinit> */
9045 var_other
= var_old_child
;
9047 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TKwinit(TKwinit)> */
9048 var47
= var41
== var_other
;
9051 RET_LABEL46
:(void)0;
9056 RET_LABEL44
:(void)0;
9061 /* <var_new_child:nullable ANode> isa nullable TKwinit */
9062 cltype49
= type_nullable_parser_nodes__TKwinit
.color
;
9063 idtype50
= type_nullable_parser_nodes__TKwinit
.id
;
9064 if(var_new_child
== NULL
) {
9067 if(cltype49
>= var_new_child
->type
->table_size
) {
9070 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
9073 if (unlikely(!var48
)) {
9074 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9075 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwinit", var_class_name51
);
9076 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1179);
9080 parser_prod__AMethPropdef__n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwinit= on <self:AMethPropdef>*/
9085 var52
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwnew
].val
; /* _n_kwnew on <self:AMethPropdef> */
9086 if (var52
== NULL
) {
9087 var53
= 0; /* <var_old_child:ANode> cannot be null */
9089 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable TKwnew> */
9090 var_other
= var_old_child
;
9092 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable TKwnew(TKwnew)> */
9093 var58
= var52
== var_other
;
9096 RET_LABEL57
:(void)0;
9101 RET_LABEL55
:(void)0;
9106 /* <var_new_child:nullable ANode> isa nullable TKwnew */
9107 cltype60
= type_nullable_parser_nodes__TKwnew
.color
;
9108 idtype61
= type_nullable_parser_nodes__TKwnew
.id
;
9109 if(var_new_child
== NULL
) {
9112 if(cltype60
>= var_new_child
->type
->table_size
) {
9115 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
9118 if (unlikely(!var59
)) {
9119 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9120 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnew", var_class_name62
);
9121 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1183);
9125 parser_prod__AMethPropdef__n_kwnew_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwnew= on <self:AMethPropdef>*/
9130 var63
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
9131 if (var63
== NULL
) {
9132 var64
= 0; /* <var_old_child:ANode> cannot be null */
9134 { /* Inline kernel#Object#== (var63,var_old_child) on <var63:nullable AMethid> */
9135 var_other
= var_old_child
;
9137 { /* Inline kernel#Object#is_same_instance (var63,var_other) on <var63:nullable AMethid(AMethid)> */
9138 var69
= var63
== var_other
;
9141 RET_LABEL68
:(void)0;
9146 RET_LABEL66
:(void)0;
9151 /* <var_new_child:nullable ANode> isa nullable AMethid */
9152 cltype71
= type_nullable_parser_nodes__AMethid
.color
;
9153 idtype72
= type_nullable_parser_nodes__AMethid
.id
;
9154 if(var_new_child
== NULL
) {
9157 if(cltype71
>= var_new_child
->type
->table_size
) {
9160 var70
= var_new_child
->type
->type_table
[cltype71
] == idtype72
;
9163 if (unlikely(!var70
)) {
9164 var_class_name73
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9165 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AMethid", var_class_name73
);
9166 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1187);
9170 parser_prod__AMethPropdef__n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_methid= on <self:AMethPropdef>*/
9175 var74
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
9176 if (var74
== NULL
) {
9177 var75
= 0; /* <var_old_child:ANode> cannot be null */
9179 { /* Inline kernel#Object#== (var74,var_old_child) on <var74:nullable ASignature> */
9180 var_other
= var_old_child
;
9182 { /* Inline kernel#Object#is_same_instance (var74,var_other) on <var74:nullable ASignature(ASignature)> */
9183 var80
= var74
== var_other
;
9186 RET_LABEL79
:(void)0;
9191 RET_LABEL77
:(void)0;
9196 /* <var_new_child:nullable ANode> isa ASignature */
9197 cltype82
= type_parser_nodes__ASignature
.color
;
9198 idtype83
= type_parser_nodes__ASignature
.id
;
9199 if(var_new_child
== NULL
) {
9202 if(cltype82
>= var_new_child
->type
->table_size
) {
9205 var81
= var_new_child
->type
->type_table
[cltype82
] == idtype83
;
9208 if (unlikely(!var81
)) {
9209 var_class_name84
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9210 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "ASignature", var_class_name84
);
9211 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1191);
9215 parser_prod__AMethPropdef__n_signature_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_signature= on <self:AMethPropdef>*/
9220 var85
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AMethPropdef> */
9221 if (var85
== NULL
) {
9222 var86
= 0; /* <var_old_child:ANode> cannot be null */
9224 { /* Inline kernel#Object#== (var85,var_old_child) on <var85:nullable AAnnotations> */
9225 var_other
= var_old_child
;
9227 { /* Inline kernel#Object#is_same_instance (var85,var_other) on <var85:nullable AAnnotations(AAnnotations)> */
9228 var91
= var85
== var_other
;
9231 RET_LABEL90
:(void)0;
9236 RET_LABEL88
:(void)0;
9241 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9242 cltype93
= type_nullable_parser_nodes__AAnnotations
.color
;
9243 idtype94
= type_nullable_parser_nodes__AAnnotations
.id
;
9244 if(var_new_child
== NULL
) {
9247 if(cltype93
>= var_new_child
->type
->table_size
) {
9250 var92
= var_new_child
->type
->type_table
[cltype93
] == idtype94
;
9253 if (unlikely(!var92
)) {
9254 var_class_name95
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9255 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name95
);
9256 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1195);
9260 parser_prod__AMethPropdef__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_annotations= on <self:AMethPropdef>*/
9265 var96
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AMethPropdef> */
9266 if (var96
== NULL
) {
9267 var97
= 0; /* <var_old_child:ANode> cannot be null */
9269 { /* Inline kernel#Object#== (var96,var_old_child) on <var96:nullable AExternCalls> */
9270 var_other
= var_old_child
;
9272 { /* Inline kernel#Object#is_same_instance (var96,var_other) on <var96:nullable AExternCalls(AExternCalls)> */
9273 var102
= var96
== var_other
;
9276 RET_LABEL101
:(void)0;
9281 RET_LABEL99
:(void)0;
9286 /* <var_new_child:nullable ANode> isa nullable AExternCalls */
9287 cltype104
= type_nullable_parser_nodes__AExternCalls
.color
;
9288 idtype105
= type_nullable_parser_nodes__AExternCalls
.id
;
9289 if(var_new_child
== NULL
) {
9292 if(cltype104
>= var_new_child
->type
->table_size
) {
9295 var103
= var_new_child
->type
->type_table
[cltype104
] == idtype105
;
9298 if (unlikely(!var103
)) {
9299 var_class_name106
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9300 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCalls", var_class_name106
);
9301 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1199);
9305 parser_prod__AMethPropdef__n_extern_calls_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_calls= on <self:AMethPropdef>*/
9310 var107
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AMethPropdef> */
9311 if (var107
== NULL
) {
9312 var108
= 0; /* <var_old_child:ANode> cannot be null */
9314 { /* Inline kernel#Object#== (var107,var_old_child) on <var107:nullable AExternCodeBlock> */
9315 var_other
= var_old_child
;
9317 { /* Inline kernel#Object#is_same_instance (var107,var_other) on <var107:nullable AExternCodeBlock(AExternCodeBlock)> */
9318 var113
= var107
== var_other
;
9321 RET_LABEL112
:(void)0;
9326 RET_LABEL110
:(void)0;
9331 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
9332 cltype115
= type_nullable_parser_nodes__AExternCodeBlock
.color
;
9333 idtype116
= type_nullable_parser_nodes__AExternCodeBlock
.id
;
9334 if(var_new_child
== NULL
) {
9337 if(cltype115
>= var_new_child
->type
->table_size
) {
9340 var114
= var_new_child
->type
->type_table
[cltype115
] == idtype116
;
9343 if (unlikely(!var114
)) {
9344 var_class_name117
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9345 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name117
);
9346 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1203);
9350 parser_prod__AMethPropdef__n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_code_block= on <self:AMethPropdef>*/
9355 var118
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMethPropdef> */
9356 if (var118
== NULL
) {
9357 var119
= 0; /* <var_old_child:ANode> cannot be null */
9359 { /* Inline kernel#Object#== (var118,var_old_child) on <var118:nullable AExpr> */
9360 var_other
= var_old_child
;
9362 { /* Inline kernel#Object#is_same_instance (var118,var_other) on <var118:nullable AExpr(AExpr)> */
9363 var124
= var118
== var_other
;
9366 RET_LABEL123
:(void)0;
9371 RET_LABEL121
:(void)0;
9376 /* <var_new_child:nullable ANode> isa nullable AExpr */
9377 cltype126
= type_nullable_parser_nodes__AExpr
.color
;
9378 idtype127
= type_nullable_parser_nodes__AExpr
.id
;
9379 if(var_new_child
== NULL
) {
9382 if(cltype126
>= var_new_child
->type
->table_size
) {
9385 var125
= var_new_child
->type
->type_table
[cltype126
] == idtype127
;
9388 if (unlikely(!var125
)) {
9389 var_class_name128
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9390 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name128
);
9391 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1207);
9395 ((void (*)(val
*, val
*))(self
->class->vft
[COLOR_parser_nodes__AMethPropdef__n_block_61d
]))(self
, var_new_child
) /* n_block= on <self:AMethPropdef>*/;
9402 /* method parser_prod#AMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
9403 void VIRTUAL_parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9404 parser_prod__AMethPropdef__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AMethPropdef#replace_child on <self:Object(AMethPropdef)>*/
9407 /* method parser_prod#AMethPropdef#n_doc= for (self: AMethPropdef, nullable ADoc) */
9408 void parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9409 val
* var_node
/* var node: nullable ADoc */;
9410 val
* var
/* : null */;
9411 short int var1
/* : Bool */;
9412 short int var2
/* : Bool */;
9413 val
* var_other
/* var other: nullable Object */;
9414 short int var4
/* : Bool */;
9415 short int var5
/* : Bool */;
9416 short int var6
/* : Bool */;
9418 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AMethPropdef> */
9420 if (var_node
== NULL
) {
9421 var1
= 0; /* is null */
9423 var1
= 1; /* arg is null and recv is not */
9426 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
9429 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
9441 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
9442 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
9450 /* method parser_prod#AMethPropdef#n_doc= for (self: Object, nullable ADoc) */
9451 void VIRTUAL_parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9452 parser_prod__AMethPropdef__n_doc_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_doc= on <self:Object(AMethPropdef)>*/
9455 /* method parser_prod#AMethPropdef#n_kwredef= for (self: AMethPropdef, nullable TKwredef) */
9456 void parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9457 val
* var_node
/* var node: nullable TKwredef */;
9458 val
* var
/* : null */;
9459 short int var1
/* : Bool */;
9460 short int var2
/* : Bool */;
9461 val
* var_other
/* var other: nullable Object */;
9462 short int var4
/* : Bool */;
9463 short int var5
/* : Bool */;
9464 short int var6
/* : Bool */;
9466 self
->attrs
[COLOR_parser_nodes__APropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMethPropdef> */
9468 if (var_node
== NULL
) {
9469 var1
= 0; /* is null */
9471 var1
= 1; /* arg is null and recv is not */
9474 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
9477 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
9489 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
9490 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
9498 /* method parser_prod#AMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
9499 void VIRTUAL_parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9500 parser_prod__AMethPropdef__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_kwredef= on <self:Object(AMethPropdef)>*/
9503 /* method parser_prod#AMethPropdef#n_visibility= for (self: AMethPropdef, nullable AVisibility) */
9504 void parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9505 val
* var_node
/* var node: nullable AVisibility */;
9507 self
->attrs
[COLOR_parser_nodes__APropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AMethPropdef> */
9508 if (var_node
== NULL
) {
9509 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9510 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1225);
9513 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
9514 if (unlikely(var_node
== NULL
)) {
9515 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9516 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9519 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
9525 /* method parser_prod#AMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
9526 void VIRTUAL_parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9527 parser_prod__AMethPropdef__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_visibility= on <self:Object(AMethPropdef)>*/
9530 /* method parser_prod#AMethPropdef#n_kwmeth= for (self: AMethPropdef, nullable TKwmeth) */
9531 void parser_prod__AMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9532 val
* var_node
/* var node: nullable TKwmeth */;
9533 val
* var
/* : null */;
9534 short int var1
/* : Bool */;
9535 short int var2
/* : Bool */;
9536 val
* var_other
/* var other: nullable Object */;
9537 short int var4
/* : Bool */;
9538 short int var5
/* : Bool */;
9539 short int var6
/* : Bool */;
9541 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AMethPropdef> */
9543 if (var_node
== NULL
) {
9544 var1
= 0; /* is null */
9546 var1
= 1; /* arg is null and recv is not */
9549 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwmeth> */
9552 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwmeth(TKwmeth)>*/;
9564 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwmeth(TKwmeth)> */
9565 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwmeth(TKwmeth)> */
9573 /* method parser_prod#AMethPropdef#n_kwmeth= for (self: Object, nullable TKwmeth) */
9574 void VIRTUAL_parser_prod__AMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9575 parser_prod__AMethPropdef__n_kwmeth_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_kwmeth= on <self:Object(AMethPropdef)>*/
9578 /* method parser_prod#AMethPropdef#n_kwinit= for (self: AMethPropdef, nullable TKwinit) */
9579 void parser_prod__AMethPropdef__n_kwinit_61d(val
* self
, val
* p0
) {
9580 val
* var_node
/* var node: nullable TKwinit */;
9581 val
* var
/* : null */;
9582 short int var1
/* : Bool */;
9583 short int var2
/* : Bool */;
9584 val
* var_other
/* var other: nullable Object */;
9585 short int var4
/* : Bool */;
9586 short int var5
/* : Bool */;
9587 short int var6
/* : Bool */;
9589 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AMethPropdef> */
9591 if (var_node
== NULL
) {
9592 var1
= 0; /* is null */
9594 var1
= 1; /* arg is null and recv is not */
9597 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwinit> */
9600 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwinit(TKwinit)>*/;
9612 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwinit(TKwinit)> */
9613 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwinit(TKwinit)> */
9621 /* method parser_prod#AMethPropdef#n_kwinit= for (self: Object, nullable TKwinit) */
9622 void VIRTUAL_parser_prod__AMethPropdef__n_kwinit_61d(val
* self
, val
* p0
) {
9623 parser_prod__AMethPropdef__n_kwinit_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_kwinit= on <self:Object(AMethPropdef)>*/
9626 /* method parser_prod#AMethPropdef#n_kwnew= for (self: AMethPropdef, nullable TKwnew) */
9627 void parser_prod__AMethPropdef__n_kwnew_61d(val
* self
, val
* p0
) {
9628 val
* var_node
/* var node: nullable TKwnew */;
9629 val
* var
/* : null */;
9630 short int var1
/* : Bool */;
9631 short int var2
/* : Bool */;
9632 val
* var_other
/* var other: nullable Object */;
9633 short int var4
/* : Bool */;
9634 short int var5
/* : Bool */;
9635 short int var6
/* : Bool */;
9637 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwnew
].val
= var_node
; /* _n_kwnew on <self:AMethPropdef> */
9639 if (var_node
== NULL
) {
9640 var1
= 0; /* is null */
9642 var1
= 1; /* arg is null and recv is not */
9645 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwnew> */
9648 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwnew(TKwnew)>*/;
9660 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnew(TKwnew)> */
9661 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnew(TKwnew)> */
9669 /* method parser_prod#AMethPropdef#n_kwnew= for (self: Object, nullable TKwnew) */
9670 void VIRTUAL_parser_prod__AMethPropdef__n_kwnew_61d(val
* self
, val
* p0
) {
9671 parser_prod__AMethPropdef__n_kwnew_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_kwnew= on <self:Object(AMethPropdef)>*/
9674 /* method parser_prod#AMethPropdef#n_methid= for (self: AMethPropdef, nullable AMethid) */
9675 void parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9676 val
* var_node
/* var node: nullable AMethid */;
9677 val
* var
/* : null */;
9678 short int var1
/* : Bool */;
9679 short int var2
/* : Bool */;
9680 val
* var_other
/* var other: nullable Object */;
9681 short int var4
/* : Bool */;
9682 short int var5
/* : Bool */;
9683 short int var6
/* : Bool */;
9685 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AMethPropdef> */
9687 if (var_node
== NULL
) {
9688 var1
= 0; /* is null */
9690 var1
= 1; /* arg is null and recv is not */
9693 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AMethid> */
9696 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AMethid(AMethid)>*/;
9708 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AMethid(AMethid)> */
9709 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AMethid(AMethid)> */
9717 /* method parser_prod#AMethPropdef#n_methid= for (self: Object, nullable AMethid) */
9718 void VIRTUAL_parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9719 parser_prod__AMethPropdef__n_methid_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_methid= on <self:Object(AMethPropdef)>*/
9722 /* method parser_prod#AMethPropdef#n_signature= for (self: AMethPropdef, nullable ASignature) */
9723 void parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9724 val
* var_node
/* var node: nullable ASignature */;
9726 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AMethPropdef> */
9727 if (var_node
== NULL
) {
9728 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9729 PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 1250);
9732 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ASignature> */
9733 if (unlikely(var_node
== NULL
)) {
9734 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9735 PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36);
9738 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ASignature> */
9744 /* method parser_prod#AMethPropdef#n_signature= for (self: Object, nullable ASignature) */
9745 void VIRTUAL_parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9746 parser_prod__AMethPropdef__n_signature_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_signature= on <self:Object(AMethPropdef)>*/
9749 /* method parser_prod#AMethPropdef#n_annotations= for (self: AMethPropdef, nullable AAnnotations) */
9750 void parser_prod__AMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9751 val
* var_node
/* var node: nullable AAnnotations */;
9752 val
* var
/* : null */;
9753 short int var1
/* : Bool */;
9754 short int var2
/* : Bool */;
9755 val
* var_other
/* var other: nullable Object */;
9756 short int var4
/* : Bool */;
9757 short int var5
/* : Bool */;
9758 short int var6
/* : Bool */;
9760 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AMethPropdef> */
9762 if (var_node
== NULL
) {
9763 var1
= 0; /* is null */
9765 var1
= 1; /* arg is null and recv is not */
9768 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
9771 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
9783 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9784 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9792 /* method parser_prod#AMethPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
9793 void VIRTUAL_parser_prod__AMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9794 parser_prod__AMethPropdef__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_annotations= on <self:Object(AMethPropdef)>*/
9797 /* method parser_prod#AMethPropdef#n_extern_calls= for (self: AMethPropdef, nullable AExternCalls) */
9798 void parser_prod__AMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
9799 val
* var_node
/* var node: nullable AExternCalls */;
9800 val
* var
/* : null */;
9801 short int var1
/* : Bool */;
9802 short int var2
/* : Bool */;
9803 val
* var_other
/* var other: nullable Object */;
9804 short int var4
/* : Bool */;
9805 short int var5
/* : Bool */;
9806 short int var6
/* : Bool */;
9808 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_calls
].val
= var_node
; /* _n_extern_calls on <self:AMethPropdef> */
9810 if (var_node
== NULL
) {
9811 var1
= 0; /* is null */
9813 var1
= 1; /* arg is null and recv is not */
9816 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCalls> */
9819 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCalls(AExternCalls)>*/;
9831 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCalls(AExternCalls)> */
9832 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCalls(AExternCalls)> */
9840 /* method parser_prod#AMethPropdef#n_extern_calls= for (self: Object, nullable AExternCalls) */
9841 void VIRTUAL_parser_prod__AMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
9842 parser_prod__AMethPropdef__n_extern_calls_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_extern_calls= on <self:Object(AMethPropdef)>*/
9845 /* method parser_prod#AMethPropdef#n_extern_code_block= for (self: AMethPropdef, nullable AExternCodeBlock) */
9846 void parser_prod__AMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
9847 val
* var_node
/* var node: nullable AExternCodeBlock */;
9848 val
* var
/* : null */;
9849 short int var1
/* : Bool */;
9850 short int var2
/* : Bool */;
9851 val
* var_other
/* var other: nullable Object */;
9852 short int var4
/* : Bool */;
9853 short int var5
/* : Bool */;
9854 short int var6
/* : Bool */;
9856 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AMethPropdef> */
9858 if (var_node
== NULL
) {
9859 var1
= 0; /* is null */
9861 var1
= 1; /* arg is null and recv is not */
9864 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExternCodeBlock> */
9867 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
9879 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9880 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9888 /* method parser_prod#AMethPropdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
9889 void VIRTUAL_parser_prod__AMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
9890 parser_prod__AMethPropdef__n_extern_code_block_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_extern_code_block= on <self:Object(AMethPropdef)>*/
9893 /* method parser_prod#AMethPropdef#n_block= for (self: AMethPropdef, nullable AExpr) */
9894 void parser_prod__AMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9895 val
* var_node
/* var node: nullable AExpr */;
9896 val
* var
/* : null */;
9897 short int var1
/* : Bool */;
9898 short int var2
/* : Bool */;
9899 val
* var_other
/* var other: nullable Object */;
9900 short int var4
/* : Bool */;
9901 short int var5
/* : Bool */;
9902 short int var6
/* : Bool */;
9904 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMethPropdef> */
9906 if (var_node
== NULL
) {
9907 var1
= 0; /* is null */
9909 var1
= 1; /* arg is null and recv is not */
9912 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AExpr> */
9915 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AExpr(AExpr)>*/;
9927 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9928 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9936 /* method parser_prod#AMethPropdef#n_block= for (self: Object, nullable AExpr) */
9937 void VIRTUAL_parser_prod__AMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9938 parser_prod__AMethPropdef__n_block_61d(self
, p0
); /* Direct call parser_prod#AMethPropdef#n_block= on <self:Object(AMethPropdef)>*/