1 #include "nitc__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 nitc__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] */;
8 short int var
/* : Bool */;
9 short int var2
/* : Bool */;
10 val
* var_other
/* var other: nullable Object */;
11 short int var4
/* : Bool */;
12 short int var5
/* : Bool */;
13 val
* var7
/* : ANodes[AImport] */;
14 val
* var9
/* : ANodes[AImport] */;
15 val
* var10
/* : ANodes[AExternCodeBlock] */;
16 val
* var12
/* : ANodes[AExternCodeBlock] */;
17 val
* var13
/* : ANodes[AClassdef] */;
18 val
* var15
/* : ANodes[AClassdef] */;
20 { /* Inline kernel#Object#init (self) on <self:AModule> */
24 var_n_moduledecl
= p0
;
26 var_n_extern_code_blocks
= p2
;
28 self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_moduledecl
].val
= var_n_moduledecl
; /* _n_moduledecl on <self:AModule> */
29 if (var_n_moduledecl
== NULL
) {
30 var
= 0; /* is null */
32 var
= 1; /* arg is null and recv is not */
35 { /* Inline kernel#Object#!= (var_n_moduledecl,((val*)NULL)) on <var_n_moduledecl:nullable AModuledecl> */
36 var_other
= ((val
*)NULL
);
38 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_moduledecl
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_moduledecl
, var_other
); /* == on <var_n_moduledecl:nullable AModuledecl(AModuledecl)>*/
49 { /* Inline parser_nodes#ANode#parent= (var_n_moduledecl,self) on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
50 var_n_moduledecl
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_moduledecl:nullable AModuledecl(AModuledecl)> */
57 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
58 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
59 if (unlikely(var9
== NULL
)) {
60 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
61 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1056);
69 nitc___nitc__ANodes___unsafe_add_all(var7
, var_n_imports
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[AImport]>*/
72 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
73 var12
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
74 if (unlikely(var12
== NULL
)) {
75 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
76 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1059);
84 nitc___nitc__ANodes___unsafe_add_all(var10
, var_n_extern_code_blocks
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var10:ANodes[AExternCodeBlock]>*/
87 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
88 var15
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
89 if (unlikely(var15
== NULL
)) {
90 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
91 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1062);
99 nitc___nitc__ANodes___unsafe_add_all(var13
, var_n_classdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var13:ANodes[AClassdef]>*/
103 /* method parser_prod#AModule#replace_child for (self: AModule, ANode, nullable ANode) */
104 void nitc__parser_prod___AModule___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
105 val
* var_old_child
/* var old_child: ANode */;
106 val
* var_new_child
/* var new_child: nullable ANode */;
107 val
* var
/* : nullable AModuledecl */;
108 short int var1
/* : Bool */;
109 short int var2
/* : Bool */;
110 val
* var_other
/* var other: nullable Object */;
111 short int var4
/* : Bool */;
112 short int var6
/* : Bool */;
113 short int var7
/* : Bool */;
116 const char* var_class_name
;
117 val
* var8
/* : ANodes[AImport] */;
118 val
* var10
/* : ANodes[AImport] */;
119 short int var11
/* : Bool */;
120 val
* var12
/* : ANodes[AExternCodeBlock] */;
121 val
* var14
/* : ANodes[AExternCodeBlock] */;
122 short int var15
/* : Bool */;
123 val
* var16
/* : ANodes[AClassdef] */;
124 val
* var18
/* : ANodes[AClassdef] */;
125 short int var19
/* : Bool */;
128 var
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
130 var1
= 0; /* <var_old_child:ANode> cannot be null */
132 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AModuledecl> */
133 var_other
= var_old_child
;
135 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AModuledecl(AModuledecl)> */
136 var6
= var
== var_other
;
149 /* <var_new_child:nullable ANode> isa nullable AModuledecl */
150 cltype
= type_nullable__nitc__AModuledecl
.color
;
151 idtype
= type_nullable__nitc__AModuledecl
.id
;
152 if(var_new_child
== NULL
) {
155 if(cltype
>= var_new_child
->type
->table_size
) {
158 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
161 if (unlikely(!var7
)) {
162 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
163 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AModuledecl", var_class_name
);
164 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 27);
168 nitc__parser_prod___AModule___n_moduledecl_61d(self
, var_new_child
); /* Direct call parser_prod#AModule#n_moduledecl= on <self:AModule>*/
174 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
175 var10
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
176 if (unlikely(var10
== NULL
)) {
177 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
178 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1056);
186 var11
= nitc___nitc__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
193 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
194 var14
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
195 if (unlikely(var14
== NULL
)) {
196 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
197 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1059);
205 var15
= nitc___nitc__ANodes___replace_child(var12
, var_old_child
, var_new_child
);
212 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
213 var18
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
214 if (unlikely(var18
== NULL
)) {
215 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
216 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1062);
224 var19
= nitc___nitc__ANodes___replace_child(var16
, var_old_child
, var_new_child
);
232 /* method parser_prod#AModule#n_moduledecl= for (self: AModule, nullable AModuledecl) */
233 void nitc__parser_prod___AModule___n_moduledecl_61d(val
* self
, val
* p0
) {
234 val
* var_node
/* var node: nullable AModuledecl */;
235 short int var
/* : Bool */;
236 short int var1
/* : Bool */;
237 val
* var_other
/* var other: nullable Object */;
238 short int var3
/* : Bool */;
239 short int var4
/* : Bool */;
241 self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_moduledecl
].val
= var_node
; /* _n_moduledecl on <self:AModule> */
242 if (var_node
== NULL
) {
243 var
= 0; /* is null */
245 var
= 1; /* arg is null and recv is not */
248 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AModuledecl> */
249 var_other
= ((val
*)NULL
);
251 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AModuledecl(AModuledecl)>*/
262 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AModuledecl(AModuledecl)> */
263 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AModuledecl(AModuledecl)> */
271 /* method parser_prod#AModule#visit_all for (self: AModule, Visitor) */
272 void nitc__parser_prod___AModule___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
273 val
* var_v
/* var v: Visitor */;
274 val
* var
/* : nullable AModuledecl */;
275 val
* var1
/* : ANodes[AImport] */;
276 val
* var3
/* : ANodes[AImport] */;
277 val
* var4
/* : ANodes[AExternCodeBlock] */;
278 val
* var6
/* : ANodes[AExternCodeBlock] */;
279 val
* var7
/* : ANodes[AClassdef] */;
280 val
* var9
/* : ANodes[AClassdef] */;
282 var
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
284 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
287 { /* Inline parser_nodes#AModule#n_imports (self) on <self:AModule> */
288 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
289 if (unlikely(var3
== NULL
)) {
290 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_imports");
291 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1056);
299 nitc___nitc__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AImport]>*/
302 { /* Inline parser_nodes#AModule#n_extern_code_blocks (self) on <self:AModule> */
303 var6
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
304 if (unlikely(var6
== NULL
)) {
305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
306 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1059);
314 nitc___nitc__ANodes___visit_all(var4
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var4:ANodes[AExternCodeBlock]>*/
317 { /* Inline parser_nodes#AModule#n_classdefs (self) on <self:AModule> */
318 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
319 if (unlikely(var9
== NULL
)) {
320 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classdefs");
321 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1062);
329 nitc___nitc__ANodes___visit_all(var7
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var7:ANodes[AClassdef]>*/
333 /* method parser_prod#AModuledecl#init_amoduledecl for (self: AModuledecl, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
334 void nitc__parser_prod___AModuledecl___init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
335 val
* var_n_doc
/* var n_doc: nullable ADoc */;
336 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
337 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
338 val
* var_n_kwmodule
/* var n_kwmodule: nullable TKwmodule */;
339 val
* var_n_name
/* var n_name: nullable AModuleName */;
340 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
341 short int var
/* : Bool */;
342 short int var2
/* : Bool */;
343 val
* var_other
/* var other: nullable Object */;
344 short int var4
/* : Bool */;
345 short int var5
/* : Bool */;
346 short int var7
/* : Bool */;
347 short int var8
/* : Bool */;
348 short int var10
/* : Bool */;
349 short int var11
/* : Bool */;
350 short int var16
/* : Bool */;
351 short int var17
/* : Bool */;
352 short int var19
/* : Bool */;
353 short int var20
/* : Bool */;
355 { /* Inline kernel#Object#init (self) on <self:AModuledecl> */
361 var_n_visibility
= p2
;
364 var_n_annotations
= p5
;
365 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AModuledecl> */
366 if (var_n_doc
== NULL
) {
367 var
= 0; /* is null */
369 var
= 1; /* arg is null and recv is not */
372 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
373 var_other
= ((val
*)NULL
);
375 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
386 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
387 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
393 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AModuledecl> */
394 if (var_n_kwredef
== NULL
) {
395 var7
= 0; /* is null */
397 var7
= 1; /* arg is null and recv is not */
400 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
401 var_other
= ((val
*)NULL
);
403 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
414 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
415 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
421 if (unlikely(var_n_visibility
== NULL
)) {
422 PRINT_ERROR("Runtime error: %s", "Cast failed");
423 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 64);
426 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AModuledecl> */
427 if (var_n_visibility
== NULL
) {
428 PRINT_ERROR("Runtime error: %s", "Receiver is null");
429 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 65);
432 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
433 if (unlikely(var_n_visibility
== NULL
)) {
434 PRINT_ERROR("Runtime error: %s", "Receiver is null");
435 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
438 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
442 if (unlikely(var_n_kwmodule
== NULL
)) {
443 PRINT_ERROR("Runtime error: %s", "Cast failed");
444 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 66);
447 self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_kwmodule
].val
= var_n_kwmodule
; /* _n_kwmodule on <self:AModuledecl> */
448 if (var_n_kwmodule
== NULL
) {
449 PRINT_ERROR("Runtime error: %s", "Receiver is null");
450 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 67);
453 { /* Inline parser_nodes#ANode#parent= (var_n_kwmodule,self) on <var_n_kwmodule:nullable TKwmodule> */
454 if (unlikely(var_n_kwmodule
== NULL
)) {
455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
456 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
459 var_n_kwmodule
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmodule:nullable TKwmodule> */
463 if (unlikely(var_n_name
== NULL
)) {
464 PRINT_ERROR("Runtime error: %s", "Cast failed");
465 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 68);
468 self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_name
].val
= var_n_name
; /* _n_name on <self:AModuledecl> */
469 if (var_n_name
== NULL
) {
470 PRINT_ERROR("Runtime error: %s", "Receiver is null");
471 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 69);
474 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
475 if (unlikely(var_n_name
== NULL
)) {
476 PRINT_ERROR("Runtime error: %s", "Receiver is null");
477 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
480 var_n_name
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
484 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AModuledecl> */
485 if (var_n_annotations
== NULL
) {
486 var16
= 0; /* is null */
488 var16
= 1; /* arg is null and recv is not */
491 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
492 var_other
= ((val
*)NULL
);
494 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
505 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
506 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
514 /* method parser_prod#AModuledecl#replace_child for (self: AModuledecl, ANode, nullable ANode) */
515 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
516 val
* var_old_child
/* var old_child: ANode */;
517 val
* var_new_child
/* var new_child: nullable ANode */;
518 val
* var
/* : nullable ADoc */;
519 short int var1
/* : Bool */;
520 short int var2
/* : Bool */;
521 val
* var_other
/* var other: nullable Object */;
522 short int var4
/* : Bool */;
523 short int var6
/* : Bool */;
524 short int var7
/* : Bool */;
527 const char* var_class_name
;
528 val
* var8
/* : nullable TKwredef */;
529 short int var9
/* : Bool */;
530 short int var10
/* : Bool */;
531 short int var12
/* : Bool */;
532 short int var14
/* : Bool */;
533 short int var15
/* : Bool */;
536 const char* var_class_name18
;
537 val
* var19
/* : nullable AVisibility */;
538 short int var20
/* : Bool */;
539 short int var21
/* : Bool */;
540 short int var23
/* : Bool */;
541 short int var25
/* : Bool */;
542 short int var26
/* : Bool */;
545 const char* var_class_name29
;
546 val
* var30
/* : TKwmodule */;
547 short int var31
/* : Bool */;
548 short int var33
/* : Bool */;
549 short int var35
/* : Bool */;
550 short int var36
/* : Bool */;
553 const char* var_class_name39
;
554 val
* var40
/* : AModuleName */;
555 short int var41
/* : Bool */;
556 short int var43
/* : Bool */;
557 short int var45
/* : Bool */;
558 short int var46
/* : Bool */;
561 const char* var_class_name49
;
562 val
* var50
/* : nullable AAnnotations */;
563 short int var51
/* : Bool */;
564 short int var52
/* : Bool */;
565 short int var54
/* : Bool */;
566 short int var56
/* : Bool */;
567 short int var57
/* : Bool */;
570 const char* var_class_name60
;
573 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
575 var1
= 0; /* <var_old_child:ANode> cannot be null */
577 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
578 var_other
= var_old_child
;
580 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
581 var6
= var
== var_other
;
594 /* <var_new_child:nullable ANode> isa nullable ADoc */
595 cltype
= type_nullable__nitc__ADoc
.color
;
596 idtype
= type_nullable__nitc__ADoc
.id
;
597 if(var_new_child
== NULL
) {
600 if(cltype
>= var_new_child
->type
->table_size
) {
603 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
606 if (unlikely(!var7
)) {
607 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
608 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
609 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 77);
613 nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_doc= on <self:AModuledecl>*/
618 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
620 var9
= 0; /* <var_old_child:ANode> cannot be null */
622 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
623 var_other
= var_old_child
;
625 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
626 var14
= var8
== var_other
;
639 /* <var_new_child:nullable ANode> isa nullable TKwredef */
640 cltype16
= type_nullable__nitc__TKwredef
.color
;
641 idtype17
= type_nullable__nitc__TKwredef
.id
;
642 if(var_new_child
== NULL
) {
645 if(cltype16
>= var_new_child
->type
->table_size
) {
648 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
651 if (unlikely(!var15
)) {
652 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
653 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
654 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 81);
658 nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwredef= on <self:AModuledecl>*/
663 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
665 var20
= 0; /* <var_old_child:ANode> cannot be null */
667 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
668 var_other
= var_old_child
;
670 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
671 var25
= var19
== var_other
;
684 /* <var_new_child:nullable ANode> isa AVisibility */
685 cltype27
= type_nitc__AVisibility
.color
;
686 idtype28
= type_nitc__AVisibility
.id
;
687 if(var_new_child
== NULL
) {
690 if(cltype27
>= var_new_child
->type
->table_size
) {
693 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
696 if (unlikely(!var26
)) {
697 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
698 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
699 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 85);
703 nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_visibility= on <self:AModuledecl>*/
708 var30
= self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
709 if (unlikely(var30
== NULL
)) {
710 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
711 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 88);
715 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwmodule> */
716 var_other
= var_old_child
;
718 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwmodule> */
719 var35
= var30
== var_other
;
731 /* <var_new_child:nullable ANode> isa TKwmodule */
732 cltype37
= type_nitc__TKwmodule
.color
;
733 idtype38
= type_nitc__TKwmodule
.id
;
734 if(var_new_child
== NULL
) {
737 if(cltype37
>= var_new_child
->type
->table_size
) {
740 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
743 if (unlikely(!var36
)) {
744 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
745 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwmodule", var_class_name39
);
746 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 89);
750 nitc__parser_prod___AModuledecl___n_kwmodule_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_kwmodule= on <self:AModuledecl>*/
755 var40
= self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
756 if (unlikely(var40
== NULL
)) {
757 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
758 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 92);
762 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:AModuleName> */
763 var_other
= var_old_child
;
765 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:AModuleName> */
766 var45
= var40
== var_other
;
778 /* <var_new_child:nullable ANode> isa AModuleName */
779 cltype47
= type_nitc__AModuleName
.color
;
780 idtype48
= type_nitc__AModuleName
.id
;
781 if(var_new_child
== NULL
) {
784 if(cltype47
>= var_new_child
->type
->table_size
) {
787 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
790 if (unlikely(!var46
)) {
791 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
792 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name49
);
793 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 93);
797 nitc__parser_prod___AModuledecl___n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_name= on <self:AModuledecl>*/
802 var50
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
804 var51
= 0; /* <var_old_child:ANode> cannot be null */
806 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AAnnotations> */
807 var_other
= var_old_child
;
809 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AAnnotations(AAnnotations)> */
810 var56
= var50
== var_other
;
823 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
824 cltype58
= type_nullable__nitc__AAnnotations
.color
;
825 idtype59
= type_nullable__nitc__AAnnotations
.id
;
826 if(var_new_child
== NULL
) {
829 if(cltype58
>= var_new_child
->type
->table_size
) {
832 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
835 if (unlikely(!var57
)) {
836 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
837 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name60
);
838 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 97);
842 nitc__parser_prod___AModuledecl___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AModuledecl#n_annotations= on <self:AModuledecl>*/
849 /* method parser_prod#AModuledecl#n_doc= for (self: AModuledecl, nullable ADoc) */
850 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
851 val
* var_node
/* var node: nullable ADoc */;
852 short int var
/* : Bool */;
853 short int var1
/* : Bool */;
854 val
* var_other
/* var other: nullable Object */;
855 short int var3
/* : Bool */;
856 short int var4
/* : Bool */;
858 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AModuledecl> */
859 if (var_node
== NULL
) {
860 var
= 0; /* is null */
862 var
= 1; /* arg is null and recv is not */
865 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
866 var_other
= ((val
*)NULL
);
868 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
879 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
880 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
888 /* method parser_prod#AModuledecl#n_kwredef= for (self: AModuledecl, nullable TKwredef) */
889 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
890 val
* var_node
/* var node: nullable TKwredef */;
891 short int var
/* : Bool */;
892 short int var1
/* : Bool */;
893 val
* var_other
/* var other: nullable Object */;
894 short int var3
/* : Bool */;
895 short int var4
/* : Bool */;
897 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AModuledecl> */
898 if (var_node
== NULL
) {
899 var
= 0; /* is null */
901 var
= 1; /* arg is null and recv is not */
904 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
905 var_other
= ((val
*)NULL
);
907 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
918 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
919 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
927 /* method parser_prod#AModuledecl#n_visibility= for (self: AModuledecl, nullable AVisibility) */
928 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
929 val
* var_node
/* var node: nullable AVisibility */;
931 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AModuledecl> */
932 if (var_node
== NULL
) {
933 PRINT_ERROR("Runtime error: %s", "Receiver is null");
934 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 115);
937 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
938 if (unlikely(var_node
== NULL
)) {
939 PRINT_ERROR("Runtime error: %s", "Receiver is null");
940 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
943 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
949 /* method parser_prod#AModuledecl#n_kwmodule= for (self: AModuledecl, TKwmodule) */
950 void nitc__parser_prod___AModuledecl___n_kwmodule_61d(val
* self
, val
* p0
) {
951 val
* var_node
/* var node: TKwmodule */;
953 self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_kwmodule
].val
= var_node
; /* _n_kwmodule on <self:AModuledecl> */
955 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwmodule> */
956 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwmodule> */
962 /* method parser_prod#AModuledecl#n_name= for (self: AModuledecl, AModuleName) */
963 void nitc__parser_prod___AModuledecl___n_name_61d(val
* self
, val
* p0
) {
964 val
* var_node
/* var node: AModuleName */;
966 self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_name
].val
= var_node
; /* _n_name on <self:AModuledecl> */
968 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
969 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
975 /* method parser_prod#AModuledecl#n_annotations= for (self: AModuledecl, nullable AAnnotations) */
976 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
977 val
* var_node
/* var node: nullable AAnnotations */;
978 short int var
/* : Bool */;
979 short int var1
/* : Bool */;
980 val
* var_other
/* var other: nullable Object */;
981 short int var3
/* : Bool */;
982 short int var4
/* : Bool */;
984 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AModuledecl> */
985 if (var_node
== NULL
) {
986 var
= 0; /* is null */
988 var
= 1; /* arg is null and recv is not */
991 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
992 var_other
= ((val
*)NULL
);
994 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
1005 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1006 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1014 /* method parser_prod#AModuledecl#visit_all for (self: AModuledecl, Visitor) */
1015 void nitc__parser_prod___AModuledecl___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1016 val
* var_v
/* var v: Visitor */;
1017 val
* var
/* : nullable ADoc */;
1018 val
* var1
/* : nullable TKwredef */;
1019 val
* var2
/* : nullable AVisibility */;
1020 val
* var3
/* : TKwmodule */;
1021 val
* var4
/* : AModuleName */;
1022 val
* var5
/* : nullable AAnnotations */;
1024 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
1026 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1028 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AModuledecl> */
1030 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1032 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AModuledecl> */
1034 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1036 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
1037 if (unlikely(var3
== NULL
)) {
1038 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwmodule");
1039 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 139);
1043 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1045 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
1046 if (unlikely(var4
== NULL
)) {
1047 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1048 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 140);
1052 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1054 var5
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
1056 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1060 /* method parser_prod#AStdImport#init_astdimport for (self: AStdImport, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1061 void nitc__parser_prod___AStdImport___init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1062 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1063 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1064 val
* var_n_name
/* var n_name: nullable AModuleName */;
1065 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1066 short int var
/* : Bool */;
1067 short int var5
/* : Bool */;
1068 val
* var_other
/* var other: nullable Object */;
1069 short int var7
/* : Bool */;
1070 short int var8
/* : Bool */;
1072 { /* Inline kernel#Object#init (self) on <self:AStdImport> */
1076 var_n_visibility
= p0
;
1077 var_n_kwimport
= p1
;
1079 var_n_annotations
= p3
;
1080 if (unlikely(var_n_visibility
== NULL
)) {
1081 PRINT_ERROR("Runtime error: %s", "Cast failed");
1082 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 152);
1085 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdImport> */
1086 if (var_n_visibility
== NULL
) {
1087 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1088 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 153);
1091 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1092 if (unlikely(var_n_visibility
== NULL
)) {
1093 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1094 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1097 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1101 if (unlikely(var_n_kwimport
== NULL
)) {
1102 PRINT_ERROR("Runtime error: %s", "Cast failed");
1103 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 154);
1106 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AStdImport> */
1107 if (var_n_kwimport
== NULL
) {
1108 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1109 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 155);
1112 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1113 if (unlikely(var_n_kwimport
== NULL
)) {
1114 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1115 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1118 var_n_kwimport
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1122 if (unlikely(var_n_name
== NULL
)) {
1123 PRINT_ERROR("Runtime error: %s", "Cast failed");
1124 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 156);
1127 self
->attrs
[COLOR_nitc__parser_nodes__AStdImport___n_name
].val
= var_n_name
; /* _n_name on <self:AStdImport> */
1128 if (var_n_name
== NULL
) {
1129 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1130 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 157);
1133 { /* Inline parser_nodes#ANode#parent= (var_n_name,self) on <var_n_name:nullable AModuleName> */
1134 if (unlikely(var_n_name
== NULL
)) {
1135 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1136 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1139 var_n_name
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_name:nullable AModuleName> */
1143 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdImport> */
1144 if (var_n_annotations
== NULL
) {
1145 var
= 0; /* is null */
1147 var
= 1; /* arg is null and recv is not */
1150 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
1151 var_other
= ((val
*)NULL
);
1153 var7
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
1164 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1165 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
1173 /* method parser_prod#AStdImport#replace_child for (self: AStdImport, ANode, nullable ANode) */
1174 void nitc__parser_prod___AStdImport___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1175 val
* var_old_child
/* var old_child: ANode */;
1176 val
* var_new_child
/* var new_child: nullable ANode */;
1177 val
* var
/* : AVisibility */;
1178 short int var1
/* : Bool */;
1179 val
* var_other
/* var other: nullable Object */;
1180 short int var3
/* : Bool */;
1181 short int var5
/* : Bool */;
1182 short int var6
/* : Bool */;
1185 const char* var_class_name
;
1186 val
* var7
/* : TKwimport */;
1187 short int var8
/* : Bool */;
1188 short int var10
/* : Bool */;
1189 short int var12
/* : Bool */;
1190 short int var13
/* : Bool */;
1193 const char* var_class_name16
;
1194 val
* var17
/* : AModuleName */;
1195 short int var18
/* : Bool */;
1196 short int var20
/* : Bool */;
1197 short int var22
/* : Bool */;
1198 short int var23
/* : Bool */;
1201 const char* var_class_name26
;
1202 val
* var27
/* : nullable AAnnotations */;
1203 short int var28
/* : Bool */;
1204 short int var29
/* : Bool */;
1205 short int var31
/* : Bool */;
1206 short int var33
/* : Bool */;
1207 short int var34
/* : Bool */;
1210 const char* var_class_name37
;
1213 var
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1214 if (unlikely(var
== NULL
)) {
1215 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1216 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 164);
1220 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1221 var_other
= var_old_child
;
1223 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1224 var5
= var
== var_other
;
1236 /* <var_new_child:nullable ANode> isa AVisibility */
1237 cltype
= type_nitc__AVisibility
.color
;
1238 idtype
= type_nitc__AVisibility
.id
;
1239 if(var_new_child
== NULL
) {
1242 if(cltype
>= var_new_child
->type
->table_size
) {
1245 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1248 if (unlikely(!var6
)) {
1249 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1250 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1251 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 165);
1255 nitc__parser_prod___AStdImport___nitc__parser_nodes__AImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_visibility= on <self:AStdImport>*/
1260 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1261 if (unlikely(var7
== NULL
)) {
1262 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1263 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 168);
1267 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwimport> */
1268 var_other
= var_old_child
;
1270 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwimport> */
1271 var12
= var7
== var_other
;
1274 RET_LABEL11
:(void)0;
1283 /* <var_new_child:nullable ANode> isa TKwimport */
1284 cltype14
= type_nitc__TKwimport
.color
;
1285 idtype15
= type_nitc__TKwimport
.id
;
1286 if(var_new_child
== NULL
) {
1289 if(cltype14
>= var_new_child
->type
->table_size
) {
1292 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1295 if (unlikely(!var13
)) {
1296 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1297 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name16
);
1298 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 169);
1302 nitc__parser_prod___AStdImport___nitc__parser_nodes__AImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_kwimport= on <self:AStdImport>*/
1307 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1308 if (unlikely(var17
== NULL
)) {
1309 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1310 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 172);
1314 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:AModuleName> */
1315 var_other
= var_old_child
;
1317 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:AModuleName> */
1318 var22
= var17
== var_other
;
1321 RET_LABEL21
:(void)0;
1326 RET_LABEL19
:(void)0;
1330 /* <var_new_child:nullable ANode> isa AModuleName */
1331 cltype24
= type_nitc__AModuleName
.color
;
1332 idtype25
= type_nitc__AModuleName
.id
;
1333 if(var_new_child
== NULL
) {
1336 if(cltype24
>= var_new_child
->type
->table_size
) {
1339 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1342 if (unlikely(!var23
)) {
1343 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1344 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModuleName", var_class_name26
);
1345 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 173);
1349 nitc__parser_prod___AStdImport___n_name_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_name= on <self:AStdImport>*/
1354 var27
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1355 if (var27
== NULL
) {
1356 var28
= 0; /* <var_old_child:ANode> cannot be null */
1358 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AAnnotations> */
1359 var_other
= var_old_child
;
1361 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AAnnotations(AAnnotations)> */
1362 var33
= var27
== var_other
;
1365 RET_LABEL32
:(void)0;
1370 RET_LABEL30
:(void)0;
1375 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
1376 cltype35
= type_nullable__nitc__AAnnotations
.color
;
1377 idtype36
= type_nullable__nitc__AAnnotations
.id
;
1378 if(var_new_child
== NULL
) {
1381 if(cltype35
>= var_new_child
->type
->table_size
) {
1384 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
1387 if (unlikely(!var34
)) {
1388 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1389 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name37
);
1390 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 177);
1394 nitc__parser_prod___AStdImport___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AStdImport#n_annotations= on <self:AStdImport>*/
1401 /* method parser_prod#AStdImport#n_visibility= for (self: AStdImport, AVisibility) */
1402 void nitc__parser_prod___AStdImport___nitc__parser_nodes__AImport__n_visibility_61d(val
* self
, val
* p0
) {
1403 val
* var_node
/* var node: AVisibility */;
1405 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdImport> */
1407 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1408 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1414 /* method parser_prod#AStdImport#n_kwimport= for (self: AStdImport, TKwimport) */
1415 void nitc__parser_prod___AStdImport___nitc__parser_nodes__AImport__n_kwimport_61d(val
* self
, val
* p0
) {
1416 val
* var_node
/* var node: TKwimport */;
1418 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AStdImport> */
1420 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1421 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1427 /* method parser_prod#AStdImport#n_name= for (self: AStdImport, AModuleName) */
1428 void nitc__parser_prod___AStdImport___n_name_61d(val
* self
, val
* p0
) {
1429 val
* var_node
/* var node: AModuleName */;
1431 self
->attrs
[COLOR_nitc__parser_nodes__AStdImport___n_name
].val
= var_node
; /* _n_name on <self:AStdImport> */
1433 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AModuleName> */
1434 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AModuleName> */
1440 /* method parser_prod#AStdImport#n_annotations= for (self: AStdImport, nullable AAnnotations) */
1441 void nitc__parser_prod___AStdImport___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1442 val
* var_node
/* var node: nullable AAnnotations */;
1443 short int var
/* : Bool */;
1444 short int var1
/* : Bool */;
1445 val
* var_other
/* var other: nullable Object */;
1446 short int var3
/* : Bool */;
1447 short int var4
/* : Bool */;
1449 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdImport> */
1450 if (var_node
== NULL
) {
1451 var
= 0; /* is null */
1453 var
= 1; /* arg is null and recv is not */
1456 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1457 var_other
= ((val
*)NULL
);
1459 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
1470 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1471 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1479 /* method parser_prod#AStdImport#visit_all for (self: AStdImport, Visitor) */
1480 void nitc__parser_prod___AStdImport___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1481 val
* var_v
/* var v: Visitor */;
1482 val
* var
/* : AVisibility */;
1483 val
* var1
/* : TKwimport */;
1484 val
* var2
/* : AModuleName */;
1485 val
* var3
/* : nullable AAnnotations */;
1487 var
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1488 if (unlikely(var
== NULL
)) {
1489 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1490 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 206);
1494 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1496 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1497 if (unlikely(var1
== NULL
)) {
1498 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1499 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 207);
1503 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1505 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1506 if (unlikely(var2
== NULL
)) {
1507 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
1508 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 208);
1512 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1514 var3
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1516 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1520 /* method parser_prod#ANoImport#init_anoimport for (self: ANoImport, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1521 void nitc__parser_prod___ANoImport___init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1522 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1523 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1524 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
1526 { /* Inline kernel#Object#init (self) on <self:ANoImport> */
1530 var_n_visibility
= p0
;
1531 var_n_kwimport
= p1
;
1533 if (unlikely(var_n_visibility
== NULL
)) {
1534 PRINT_ERROR("Runtime error: %s", "Cast failed");
1535 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 219);
1538 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ANoImport> */
1539 if (var_n_visibility
== NULL
) {
1540 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1541 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 220);
1544 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
1545 if (unlikely(var_n_visibility
== NULL
)) {
1546 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1547 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1550 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
1554 if (unlikely(var_n_kwimport
== NULL
)) {
1555 PRINT_ERROR("Runtime error: %s", "Cast failed");
1556 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 221);
1559 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:ANoImport> */
1560 if (var_n_kwimport
== NULL
) {
1561 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1562 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 222);
1565 { /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on <var_n_kwimport:nullable TKwimport> */
1566 if (unlikely(var_n_kwimport
== NULL
)) {
1567 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1568 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1571 var_n_kwimport
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwimport:nullable TKwimport> */
1575 if (unlikely(var_n_kwend
== NULL
)) {
1576 PRINT_ERROR("Runtime error: %s", "Cast failed");
1577 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 223);
1580 self
->attrs
[COLOR_nitc__parser_nodes__ANoImport___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ANoImport> */
1581 if (var_n_kwend
== NULL
) {
1582 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1583 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 224);
1586 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
1587 if (unlikely(var_n_kwend
== NULL
)) {
1588 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1589 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1592 var_n_kwend
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
1598 /* method parser_prod#ANoImport#replace_child for (self: ANoImport, ANode, nullable ANode) */
1599 void nitc__parser_prod___ANoImport___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1600 val
* var_old_child
/* var old_child: ANode */;
1601 val
* var_new_child
/* var new_child: nullable ANode */;
1602 val
* var
/* : AVisibility */;
1603 short int var1
/* : Bool */;
1604 val
* var_other
/* var other: nullable Object */;
1605 short int var3
/* : Bool */;
1606 short int var5
/* : Bool */;
1607 short int var6
/* : Bool */;
1610 const char* var_class_name
;
1611 val
* var7
/* : TKwimport */;
1612 short int var8
/* : Bool */;
1613 short int var10
/* : Bool */;
1614 short int var12
/* : Bool */;
1615 short int var13
/* : Bool */;
1618 const char* var_class_name16
;
1619 val
* var17
/* : TKwend */;
1620 short int var18
/* : Bool */;
1621 short int var20
/* : Bool */;
1622 short int var22
/* : Bool */;
1623 short int var23
/* : Bool */;
1626 const char* var_class_name26
;
1629 var
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1630 if (unlikely(var
== NULL
)) {
1631 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1632 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 229);
1636 { /* Inline kernel#Object#== (var,var_old_child) on <var:AVisibility> */
1637 var_other
= var_old_child
;
1639 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AVisibility> */
1640 var5
= var
== var_other
;
1652 /* <var_new_child:nullable ANode> isa AVisibility */
1653 cltype
= type_nitc__AVisibility
.color
;
1654 idtype
= type_nitc__AVisibility
.id
;
1655 if(var_new_child
== NULL
) {
1658 if(cltype
>= var_new_child
->type
->table_size
) {
1661 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1664 if (unlikely(!var6
)) {
1665 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1666 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name
);
1667 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 230);
1671 nitc__parser_prod___ANoImport___nitc__parser_nodes__AImport__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_visibility= on <self:ANoImport>*/
1676 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1677 if (unlikely(var7
== NULL
)) {
1678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1679 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 233);
1683 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwimport> */
1684 var_other
= var_old_child
;
1686 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwimport> */
1687 var12
= var7
== var_other
;
1690 RET_LABEL11
:(void)0;
1699 /* <var_new_child:nullable ANode> isa TKwimport */
1700 cltype14
= type_nitc__TKwimport
.color
;
1701 idtype15
= type_nitc__TKwimport
.id
;
1702 if(var_new_child
== NULL
) {
1705 if(cltype14
>= var_new_child
->type
->table_size
) {
1708 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
1711 if (unlikely(!var13
)) {
1712 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1713 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name16
);
1714 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 234);
1718 nitc__parser_prod___ANoImport___nitc__parser_nodes__AImport__n_kwimport_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwimport= on <self:ANoImport>*/
1723 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1724 if (unlikely(var17
== NULL
)) {
1725 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1726 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 237);
1730 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwend> */
1731 var_other
= var_old_child
;
1733 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwend> */
1734 var22
= var17
== var_other
;
1737 RET_LABEL21
:(void)0;
1742 RET_LABEL19
:(void)0;
1746 /* <var_new_child:nullable ANode> isa TKwend */
1747 cltype24
= type_nitc__TKwend
.color
;
1748 idtype25
= type_nitc__TKwend
.id
;
1749 if(var_new_child
== NULL
) {
1752 if(cltype24
>= var_new_child
->type
->table_size
) {
1755 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1758 if (unlikely(!var23
)) {
1759 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1760 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name26
);
1761 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 238);
1765 nitc__parser_prod___ANoImport___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ANoImport#n_kwend= on <self:ANoImport>*/
1772 /* method parser_prod#ANoImport#n_visibility= for (self: ANoImport, AVisibility) */
1773 void nitc__parser_prod___ANoImport___nitc__parser_nodes__AImport__n_visibility_61d(val
* self
, val
* p0
) {
1774 val
* var_node
/* var node: AVisibility */;
1776 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:ANoImport> */
1778 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AVisibility> */
1779 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AVisibility> */
1785 /* method parser_prod#ANoImport#n_kwimport= for (self: ANoImport, TKwimport) */
1786 void nitc__parser_prod___ANoImport___nitc__parser_nodes__AImport__n_kwimport_61d(val
* self
, val
* p0
) {
1787 val
* var_node
/* var node: TKwimport */;
1789 self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:ANoImport> */
1791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwimport> */
1792 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwimport> */
1798 /* method parser_prod#ANoImport#n_kwend= for (self: ANoImport, TKwend) */
1799 void nitc__parser_prod___ANoImport___n_kwend_61d(val
* self
, val
* p0
) {
1800 val
* var_node
/* var node: TKwend */;
1802 self
->attrs
[COLOR_nitc__parser_nodes__ANoImport___n_kwend
].val
= var_node
; /* _n_kwend on <self:ANoImport> */
1804 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
1805 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
1811 /* method parser_prod#ANoImport#visit_all for (self: ANoImport, Visitor) */
1812 void nitc__parser_prod___ANoImport___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1813 val
* var_v
/* var v: Visitor */;
1814 val
* var
/* : AVisibility */;
1815 val
* var1
/* : TKwimport */;
1816 val
* var2
/* : TKwend */;
1818 var
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1819 if (unlikely(var
== NULL
)) {
1820 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_visibility");
1821 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 262);
1825 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1827 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1828 if (unlikely(var1
== NULL
)) {
1829 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport");
1830 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 263);
1834 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1836 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1837 if (unlikely(var2
== NULL
)) {
1838 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
1839 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 264);
1843 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1847 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: APublicVisibility, nullable TKwpublic) */
1848 void nitc__parser_prod___APublicVisibility___init_apublicvisibility(val
* self
, val
* p0
) {
1849 val
* var_n_kwpublic
/* var n_kwpublic: nullable TKwpublic */;
1850 short int var
/* : Bool */;
1851 short int var2
/* : Bool */;
1852 val
* var_other
/* var other: nullable Object */;
1853 short int var4
/* : Bool */;
1854 short int var5
/* : Bool */;
1856 { /* Inline kernel#Object#init (self) on <self:APublicVisibility> */
1860 var_n_kwpublic
= p0
;
1861 self
->attrs
[COLOR_nitc__parser_nodes__APublicVisibility___n_kwpublic
].val
= var_n_kwpublic
; /* _n_kwpublic on <self:APublicVisibility> */
1862 if (var_n_kwpublic
== NULL
) {
1863 var
= 0; /* is null */
1865 var
= 1; /* arg is null and recv is not */
1868 { /* Inline kernel#Object#!= (var_n_kwpublic,((val*)NULL)) on <var_n_kwpublic:nullable TKwpublic> */
1869 var_other
= ((val
*)NULL
);
1871 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwpublic
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwpublic
, var_other
); /* == on <var_n_kwpublic:nullable TKwpublic(TKwpublic)>*/
1882 { /* Inline parser_nodes#ANode#parent= (var_n_kwpublic,self) on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
1883 var_n_kwpublic
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwpublic:nullable TKwpublic(TKwpublic)> */
1891 /* method parser_prod#APublicVisibility#replace_child for (self: APublicVisibility, ANode, nullable ANode) */
1892 void nitc__parser_prod___APublicVisibility___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1893 val
* var_old_child
/* var old_child: ANode */;
1894 val
* var_new_child
/* var new_child: nullable ANode */;
1895 val
* var
/* : nullable TKwpublic */;
1896 short int var1
/* : Bool */;
1897 short int var2
/* : Bool */;
1898 val
* var_other
/* var other: nullable Object */;
1899 short int var4
/* : Bool */;
1900 short int var6
/* : Bool */;
1901 short int var7
/* : Bool */;
1904 const char* var_class_name
;
1907 var
= self
->attrs
[COLOR_nitc__parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
1909 var1
= 0; /* <var_old_child:ANode> cannot be null */
1911 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwpublic> */
1912 var_other
= var_old_child
;
1914 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwpublic(TKwpublic)> */
1915 var6
= var
== var_other
;
1928 /* <var_new_child:nullable ANode> isa nullable TKwpublic */
1929 cltype
= type_nullable__nitc__TKwpublic
.color
;
1930 idtype
= type_nullable__nitc__TKwpublic
.id
;
1931 if(var_new_child
== NULL
) {
1934 if(cltype
>= var_new_child
->type
->table_size
) {
1937 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1940 if (unlikely(!var7
)) {
1941 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1942 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwpublic", var_class_name
);
1943 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 279);
1947 nitc__parser_prod___APublicVisibility___n_kwpublic_61d(self
, var_new_child
); /* Direct call parser_prod#APublicVisibility#n_kwpublic= on <self:APublicVisibility>*/
1954 /* method parser_prod#APublicVisibility#n_kwpublic= for (self: APublicVisibility, nullable TKwpublic) */
1955 void nitc__parser_prod___APublicVisibility___n_kwpublic_61d(val
* self
, val
* p0
) {
1956 val
* var_node
/* var node: nullable TKwpublic */;
1957 short int var
/* : Bool */;
1958 short int var1
/* : Bool */;
1959 val
* var_other
/* var other: nullable Object */;
1960 short int var3
/* : Bool */;
1961 short int var4
/* : Bool */;
1963 self
->attrs
[COLOR_nitc__parser_nodes__APublicVisibility___n_kwpublic
].val
= var_node
; /* _n_kwpublic on <self:APublicVisibility> */
1964 if (var_node
== NULL
) {
1965 var
= 0; /* is null */
1967 var
= 1; /* arg is null and recv is not */
1970 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwpublic> */
1971 var_other
= ((val
*)NULL
);
1973 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwpublic(TKwpublic)>*/
1984 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwpublic(TKwpublic)> */
1985 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwpublic(TKwpublic)> */
1993 /* method parser_prod#APublicVisibility#visit_all for (self: APublicVisibility, Visitor) */
1994 void nitc__parser_prod___APublicVisibility___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1995 val
* var_v
/* var v: Visitor */;
1996 val
* var
/* : nullable TKwpublic */;
1998 var
= self
->attrs
[COLOR_nitc__parser_nodes__APublicVisibility___n_kwpublic
].val
; /* _n_kwpublic on <self:APublicVisibility> */
2000 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2004 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: APrivateVisibility, nullable TKwprivate) */
2005 void nitc__parser_prod___APrivateVisibility___init_aprivatevisibility(val
* self
, val
* p0
) {
2006 val
* var_n_kwprivate
/* var n_kwprivate: nullable TKwprivate */;
2008 { /* Inline kernel#Object#init (self) on <self:APrivateVisibility> */
2012 var_n_kwprivate
= p0
;
2013 if (unlikely(var_n_kwprivate
== NULL
)) {
2014 PRINT_ERROR("Runtime error: %s", "Cast failed");
2015 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 301);
2018 self
->attrs
[COLOR_nitc__parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_n_kwprivate
; /* _n_kwprivate on <self:APrivateVisibility> */
2019 if (var_n_kwprivate
== NULL
) {
2020 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2021 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 302);
2024 { /* Inline parser_nodes#ANode#parent= (var_n_kwprivate,self) on <var_n_kwprivate:nullable TKwprivate> */
2025 if (unlikely(var_n_kwprivate
== NULL
)) {
2026 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2027 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2030 var_n_kwprivate
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprivate:nullable TKwprivate> */
2036 /* method parser_prod#APrivateVisibility#replace_child for (self: APrivateVisibility, ANode, nullable ANode) */
2037 void nitc__parser_prod___APrivateVisibility___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2038 val
* var_old_child
/* var old_child: ANode */;
2039 val
* var_new_child
/* var new_child: nullable ANode */;
2040 val
* var
/* : TKwprivate */;
2041 short int var1
/* : Bool */;
2042 val
* var_other
/* var other: nullable Object */;
2043 short int var3
/* : Bool */;
2044 short int var5
/* : Bool */;
2045 short int var6
/* : Bool */;
2048 const char* var_class_name
;
2051 var
= self
->attrs
[COLOR_nitc__parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2052 if (unlikely(var
== NULL
)) {
2053 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2054 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 307);
2058 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprivate> */
2059 var_other
= var_old_child
;
2061 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprivate> */
2062 var5
= var
== var_other
;
2074 /* <var_new_child:nullable ANode> isa TKwprivate */
2075 cltype
= type_nitc__TKwprivate
.color
;
2076 idtype
= type_nitc__TKwprivate
.id
;
2077 if(var_new_child
== NULL
) {
2080 if(cltype
>= var_new_child
->type
->table_size
) {
2083 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2086 if (unlikely(!var6
)) {
2087 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprivate", var_class_name
);
2089 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 308);
2093 nitc__parser_prod___APrivateVisibility___n_kwprivate_61d(self
, var_new_child
); /* Direct call parser_prod#APrivateVisibility#n_kwprivate= on <self:APrivateVisibility>*/
2100 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: APrivateVisibility, TKwprivate) */
2101 void nitc__parser_prod___APrivateVisibility___n_kwprivate_61d(val
* self
, val
* p0
) {
2102 val
* var_node
/* var node: TKwprivate */;
2104 self
->attrs
[COLOR_nitc__parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_node
; /* _n_kwprivate on <self:APrivateVisibility> */
2106 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprivate> */
2107 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprivate> */
2113 /* method parser_prod#APrivateVisibility#visit_all for (self: APrivateVisibility, Visitor) */
2114 void nitc__parser_prod___APrivateVisibility___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2115 val
* var_v
/* var v: Visitor */;
2116 val
* var
/* : TKwprivate */;
2118 var
= self
->attrs
[COLOR_nitc__parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
2119 if (unlikely(var
== NULL
)) {
2120 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprivate");
2121 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 322);
2125 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2129 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: AProtectedVisibility, nullable TKwprotected) */
2130 void nitc__parser_prod___AProtectedVisibility___init_aprotectedvisibility(val
* self
, val
* p0
) {
2131 val
* var_n_kwprotected
/* var n_kwprotected: nullable TKwprotected */;
2133 { /* Inline kernel#Object#init (self) on <self:AProtectedVisibility> */
2137 var_n_kwprotected
= p0
;
2138 if (unlikely(var_n_kwprotected
== NULL
)) {
2139 PRINT_ERROR("Runtime error: %s", "Cast failed");
2140 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 330);
2143 self
->attrs
[COLOR_nitc__parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_n_kwprotected
; /* _n_kwprotected on <self:AProtectedVisibility> */
2144 if (var_n_kwprotected
== NULL
) {
2145 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2146 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 331);
2149 { /* Inline parser_nodes#ANode#parent= (var_n_kwprotected,self) on <var_n_kwprotected:nullable TKwprotected> */
2150 if (unlikely(var_n_kwprotected
== NULL
)) {
2151 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2152 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2155 var_n_kwprotected
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwprotected:nullable TKwprotected> */
2161 /* method parser_prod#AProtectedVisibility#replace_child for (self: AProtectedVisibility, ANode, nullable ANode) */
2162 void nitc__parser_prod___AProtectedVisibility___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2163 val
* var_old_child
/* var old_child: ANode */;
2164 val
* var_new_child
/* var new_child: nullable ANode */;
2165 val
* var
/* : TKwprotected */;
2166 short int var1
/* : Bool */;
2167 val
* var_other
/* var other: nullable Object */;
2168 short int var3
/* : Bool */;
2169 short int var5
/* : Bool */;
2170 short int var6
/* : Bool */;
2173 const char* var_class_name
;
2176 var
= self
->attrs
[COLOR_nitc__parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2177 if (unlikely(var
== NULL
)) {
2178 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2179 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 336);
2183 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwprotected> */
2184 var_other
= var_old_child
;
2186 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwprotected> */
2187 var5
= var
== var_other
;
2199 /* <var_new_child:nullable ANode> isa TKwprotected */
2200 cltype
= type_nitc__TKwprotected
.color
;
2201 idtype
= type_nitc__TKwprotected
.id
;
2202 if(var_new_child
== NULL
) {
2205 if(cltype
>= var_new_child
->type
->table_size
) {
2208 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2211 if (unlikely(!var6
)) {
2212 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2213 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwprotected", var_class_name
);
2214 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 337);
2218 nitc__parser_prod___AProtectedVisibility___n_kwprotected_61d(self
, var_new_child
); /* Direct call parser_prod#AProtectedVisibility#n_kwprotected= on <self:AProtectedVisibility>*/
2225 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: AProtectedVisibility, TKwprotected) */
2226 void nitc__parser_prod___AProtectedVisibility___n_kwprotected_61d(val
* self
, val
* p0
) {
2227 val
* var_node
/* var node: TKwprotected */;
2229 self
->attrs
[COLOR_nitc__parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_node
; /* _n_kwprotected on <self:AProtectedVisibility> */
2231 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwprotected> */
2232 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwprotected> */
2238 /* method parser_prod#AProtectedVisibility#visit_all for (self: AProtectedVisibility, Visitor) */
2239 void nitc__parser_prod___AProtectedVisibility___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2240 val
* var_v
/* var v: Visitor */;
2241 val
* var
/* : TKwprotected */;
2243 var
= self
->attrs
[COLOR_nitc__parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
2244 if (unlikely(var
== NULL
)) {
2245 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwprotected");
2246 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 351);
2250 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2254 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: AIntrudeVisibility, nullable TKwintrude) */
2255 void nitc__parser_prod___AIntrudeVisibility___init_aintrudevisibility(val
* self
, val
* p0
) {
2256 val
* var_n_kwintrude
/* var n_kwintrude: nullable TKwintrude */;
2258 { /* Inline kernel#Object#init (self) on <self:AIntrudeVisibility> */
2262 var_n_kwintrude
= p0
;
2263 if (unlikely(var_n_kwintrude
== NULL
)) {
2264 PRINT_ERROR("Runtime error: %s", "Cast failed");
2265 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 359);
2268 self
->attrs
[COLOR_nitc__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_n_kwintrude
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2269 if (var_n_kwintrude
== NULL
) {
2270 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2271 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 360);
2274 { /* Inline parser_nodes#ANode#parent= (var_n_kwintrude,self) on <var_n_kwintrude:nullable TKwintrude> */
2275 if (unlikely(var_n_kwintrude
== NULL
)) {
2276 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2277 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2280 var_n_kwintrude
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwintrude:nullable TKwintrude> */
2286 /* method parser_prod#AIntrudeVisibility#replace_child for (self: AIntrudeVisibility, ANode, nullable ANode) */
2287 void nitc__parser_prod___AIntrudeVisibility___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2288 val
* var_old_child
/* var old_child: ANode */;
2289 val
* var_new_child
/* var new_child: nullable ANode */;
2290 val
* var
/* : TKwintrude */;
2291 short int var1
/* : Bool */;
2292 val
* var_other
/* var other: nullable Object */;
2293 short int var3
/* : Bool */;
2294 short int var5
/* : Bool */;
2295 short int var6
/* : Bool */;
2298 const char* var_class_name
;
2301 var
= self
->attrs
[COLOR_nitc__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2302 if (unlikely(var
== NULL
)) {
2303 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2304 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 365);
2308 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwintrude> */
2309 var_other
= var_old_child
;
2311 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwintrude> */
2312 var5
= var
== var_other
;
2324 /* <var_new_child:nullable ANode> isa TKwintrude */
2325 cltype
= type_nitc__TKwintrude
.color
;
2326 idtype
= type_nitc__TKwintrude
.id
;
2327 if(var_new_child
== NULL
) {
2330 if(cltype
>= var_new_child
->type
->table_size
) {
2333 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2336 if (unlikely(!var6
)) {
2337 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2338 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwintrude", var_class_name
);
2339 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 366);
2343 nitc__parser_prod___AIntrudeVisibility___n_kwintrude_61d(self
, var_new_child
); /* Direct call parser_prod#AIntrudeVisibility#n_kwintrude= on <self:AIntrudeVisibility>*/
2350 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: AIntrudeVisibility, TKwintrude) */
2351 void nitc__parser_prod___AIntrudeVisibility___n_kwintrude_61d(val
* self
, val
* p0
) {
2352 val
* var_node
/* var node: TKwintrude */;
2354 self
->attrs
[COLOR_nitc__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_node
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2356 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwintrude> */
2357 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwintrude> */
2363 /* method parser_prod#AIntrudeVisibility#visit_all for (self: AIntrudeVisibility, Visitor) */
2364 void nitc__parser_prod___AIntrudeVisibility___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2365 val
* var_v
/* var v: Visitor */;
2366 val
* var
/* : TKwintrude */;
2368 var
= self
->attrs
[COLOR_nitc__parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2369 if (unlikely(var
== NULL
)) {
2370 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2371 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 380);
2375 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2379 /* method parser_prod#AStdClassdef#init_astdclassdef for (self: AStdClassdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AClasskind, nullable AQclassid, nullable TObra, Collection[Object], nullable TCbra, nullable AExternCodeBlock, Collection[Object], nullable TKwend) */
2380 void nitc__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
) {
2381 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2382 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2383 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2384 val
* var_n_classkind
/* var n_classkind: nullable AClasskind */;
2385 val
* var_n_qid
/* var n_qid: nullable AQclassid */;
2386 val
* var_n_obra
/* var n_obra: nullable TObra */;
2387 val
* var_n_formaldefs
/* var n_formaldefs: Collection[Object] */;
2388 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
2389 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
2390 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
2391 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
2392 short int var
/* : Bool */;
2393 short int var2
/* : Bool */;
2394 val
* var_other
/* var other: nullable Object */;
2395 short int var4
/* : Bool */;
2396 short int var5
/* : Bool */;
2397 short int var7
/* : Bool */;
2398 short int var8
/* : Bool */;
2399 short int var10
/* : Bool */;
2400 short int var11
/* : Bool */;
2401 short int var15
/* : Bool */;
2402 short int var16
/* : Bool */;
2403 short int var18
/* : Bool */;
2404 short int var19
/* : Bool */;
2405 short int var21
/* : Bool */;
2406 short int var22
/* : Bool */;
2407 short int var24
/* : Bool */;
2408 short int var25
/* : Bool */;
2409 val
* var27
/* : ANodes[AFormaldef] */;
2410 val
* var29
/* : ANodes[AFormaldef] */;
2411 short int var30
/* : Bool */;
2412 short int var31
/* : Bool */;
2413 short int var33
/* : Bool */;
2414 short int var34
/* : Bool */;
2415 short int var36
/* : Bool */;
2416 short int var37
/* : Bool */;
2417 short int var39
/* : Bool */;
2418 short int var40
/* : Bool */;
2419 val
* var42
/* : ANodes[APropdef] */;
2420 val
* var44
/* : ANodes[APropdef] */;
2422 { /* Inline kernel#Object#init (self) on <self:AStdClassdef> */
2428 var_n_visibility
= p2
;
2429 var_n_classkind
= p3
;
2432 var_n_formaldefs
= p6
;
2434 var_n_extern_code_block
= p8
;
2435 var_n_propdefs
= p9
;
2437 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AStdClassdef> */
2438 if (var_n_doc
== NULL
) {
2439 var
= 0; /* is null */
2441 var
= 1; /* arg is null and recv is not */
2444 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
2445 var_other
= ((val
*)NULL
);
2447 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
2458 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
2459 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
2465 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AStdClassdef> */
2466 if (var_n_kwredef
== NULL
) {
2467 var7
= 0; /* is null */
2469 var7
= 1; /* arg is null and recv is not */
2472 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
2473 var_other
= ((val
*)NULL
);
2475 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
2486 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2487 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2488 RET_LABEL12
:(void)0;
2493 if (unlikely(var_n_visibility
== NULL
)) {
2494 PRINT_ERROR("Runtime error: %s", "Cast failed");
2495 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 402);
2498 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdClassdef> */
2499 if (var_n_visibility
== NULL
) {
2500 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2501 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 403);
2504 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
2505 if (unlikely(var_n_visibility
== NULL
)) {
2506 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2507 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2510 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
2511 RET_LABEL13
:(void)0;
2514 if (unlikely(var_n_classkind
== NULL
)) {
2515 PRINT_ERROR("Runtime error: %s", "Cast failed");
2516 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 404);
2519 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_classkind
].val
= var_n_classkind
; /* _n_classkind on <self:AStdClassdef> */
2520 if (var_n_classkind
== NULL
) {
2521 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2522 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 405);
2525 { /* Inline parser_nodes#ANode#parent= (var_n_classkind,self) on <var_n_classkind:nullable AClasskind> */
2526 if (unlikely(var_n_classkind
== NULL
)) {
2527 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2528 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2531 var_n_classkind
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_classkind:nullable AClasskind> */
2532 RET_LABEL14
:(void)0;
2535 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_qid
].val
= var_n_qid
; /* _n_qid on <self:AStdClassdef> */
2536 if (var_n_qid
== NULL
) {
2537 var15
= 0; /* is null */
2539 var15
= 1; /* arg is null and recv is not */
2542 { /* Inline kernel#Object#!= (var_n_qid,((val*)NULL)) on <var_n_qid:nullable AQclassid> */
2543 var_other
= ((val
*)NULL
);
2545 var18
= ((short int(*)(val
* self
, val
* p0
))(var_n_qid
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_qid
, var_other
); /* == on <var_n_qid:nullable AQclassid(AQclassid)>*/
2550 RET_LABEL17
:(void)0;
2556 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQclassid(AQclassid)> */
2557 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQclassid(AQclassid)> */
2558 RET_LABEL20
:(void)0;
2563 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AStdClassdef> */
2564 if (var_n_obra
== NULL
) {
2565 var21
= 0; /* is null */
2567 var21
= 1; /* arg is null and recv is not */
2570 { /* Inline kernel#Object#!= (var_n_obra,((val*)NULL)) on <var_n_obra:nullable TObra> */
2571 var_other
= ((val
*)NULL
);
2573 var24
= ((short int(*)(val
* self
, val
* p0
))(var_n_obra
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_obra
, var_other
); /* == on <var_n_obra:nullable TObra(TObra)>*/
2578 RET_LABEL23
:(void)0;
2584 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra(TObra)> */
2585 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra(TObra)> */
2586 RET_LABEL26
:(void)0;
2592 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
2593 var29
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2594 if (unlikely(var29
== NULL
)) {
2595 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2596 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1173);
2600 RET_LABEL28
:(void)0;
2604 nitc___nitc__ANodes___unsafe_add_all(var27
, var_n_formaldefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var27:ANodes[AFormaldef]>*/
2606 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AStdClassdef> */
2607 if (var_n_cbra
== NULL
) {
2608 var30
= 0; /* is null */
2610 var30
= 1; /* arg is null and recv is not */
2613 { /* Inline kernel#Object#!= (var_n_cbra,((val*)NULL)) on <var_n_cbra:nullable TCbra> */
2614 var_other
= ((val
*)NULL
);
2616 var33
= ((short int(*)(val
* self
, val
* p0
))(var_n_cbra
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_cbra
, var_other
); /* == on <var_n_cbra:nullable TCbra(TCbra)>*/
2621 RET_LABEL32
:(void)0;
2627 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra(TCbra)> */
2628 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra(TCbra)> */
2629 RET_LABEL35
:(void)0;
2634 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AStdClassdef> */
2635 if (var_n_extern_code_block
== NULL
) {
2636 var36
= 0; /* is null */
2638 var36
= 1; /* arg is null and recv is not */
2641 { /* Inline kernel#Object#!= (var_n_extern_code_block,((val*)NULL)) on <var_n_extern_code_block:nullable AExternCodeBlock> */
2642 var_other
= ((val
*)NULL
);
2644 var39
= ((short int(*)(val
* self
, val
* p0
))(var_n_extern_code_block
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
); /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/
2649 RET_LABEL38
:(void)0;
2655 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2656 var_n_extern_code_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
2657 RET_LABEL41
:(void)0;
2663 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
2664 var44
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2665 if (unlikely(var44
== NULL
)) {
2666 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
2667 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
2671 RET_LABEL43
:(void)0;
2675 nitc___nitc__ANodes___unsafe_add_all(var42
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var42:ANodes[APropdef]>*/
2677 if (unlikely(var_n_kwend
== NULL
)) {
2678 PRINT_ERROR("Runtime error: %s", "Cast failed");
2679 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 416);
2682 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AStdClassdef> */
2683 if (var_n_kwend
== NULL
) {
2684 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2685 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 417);
2688 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend> */
2689 if (unlikely(var_n_kwend
== NULL
)) {
2690 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2691 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2694 var_n_kwend
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend> */
2695 RET_LABEL45
:(void)0;
2700 /* method parser_prod#AStdClassdef#replace_child for (self: AStdClassdef, ANode, nullable ANode) */
2701 void nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2702 val
* var_old_child
/* var old_child: ANode */;
2703 val
* var_new_child
/* var new_child: nullable ANode */;
2704 val
* var
/* : nullable ADoc */;
2705 short int var1
/* : Bool */;
2706 short int var2
/* : Bool */;
2707 val
* var_other
/* var other: nullable Object */;
2708 short int var4
/* : Bool */;
2709 short int var6
/* : Bool */;
2710 short int var7
/* : Bool */;
2713 const char* var_class_name
;
2714 val
* var8
/* : nullable TKwredef */;
2715 short int var9
/* : Bool */;
2716 short int var10
/* : Bool */;
2717 short int var12
/* : Bool */;
2718 short int var14
/* : Bool */;
2719 short int var15
/* : Bool */;
2722 const char* var_class_name18
;
2723 val
* var19
/* : nullable AVisibility */;
2724 short int var20
/* : Bool */;
2725 short int var21
/* : Bool */;
2726 short int var23
/* : Bool */;
2727 short int var25
/* : Bool */;
2728 short int var26
/* : Bool */;
2731 const char* var_class_name29
;
2732 val
* var30
/* : AClasskind */;
2733 short int var31
/* : Bool */;
2734 short int var33
/* : Bool */;
2735 short int var35
/* : Bool */;
2736 short int var36
/* : Bool */;
2739 const char* var_class_name39
;
2740 val
* var40
/* : nullable AQclassid */;
2741 short int var41
/* : Bool */;
2742 short int var42
/* : Bool */;
2743 short int var44
/* : Bool */;
2744 short int var46
/* : Bool */;
2745 short int var47
/* : Bool */;
2748 const char* var_class_name50
;
2749 val
* var51
/* : nullable TObra */;
2750 short int var52
/* : Bool */;
2751 short int var53
/* : Bool */;
2752 short int var55
/* : Bool */;
2753 short int var57
/* : Bool */;
2754 short int var58
/* : Bool */;
2757 const char* var_class_name61
;
2758 val
* var62
/* : ANodes[AFormaldef] */;
2759 val
* var64
/* : ANodes[AFormaldef] */;
2760 short int var65
/* : Bool */;
2761 val
* var66
/* : nullable TCbra */;
2762 short int var67
/* : Bool */;
2763 short int var68
/* : Bool */;
2764 short int var70
/* : Bool */;
2765 short int var72
/* : Bool */;
2766 short int var73
/* : Bool */;
2769 const char* var_class_name76
;
2770 val
* var77
/* : nullable AExternCodeBlock */;
2771 short int var78
/* : Bool */;
2772 short int var79
/* : Bool */;
2773 short int var81
/* : Bool */;
2774 short int var83
/* : Bool */;
2775 short int var84
/* : Bool */;
2778 const char* var_class_name87
;
2779 val
* var88
/* : ANodes[APropdef] */;
2780 val
* var90
/* : ANodes[APropdef] */;
2781 short int var91
/* : Bool */;
2782 val
* var92
/* : TKwend */;
2783 short int var93
/* : Bool */;
2784 short int var95
/* : Bool */;
2785 short int var97
/* : Bool */;
2786 short int var98
/* : Bool */;
2789 const char* var_class_name101
;
2792 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
2794 var1
= 0; /* <var_old_child:ANode> cannot be null */
2796 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
2797 var_other
= var_old_child
;
2799 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
2800 var6
= var
== var_other
;
2813 /* <var_new_child:nullable ANode> isa nullable ADoc */
2814 cltype
= type_nullable__nitc__ADoc
.color
;
2815 idtype
= type_nullable__nitc__ADoc
.id
;
2816 if(var_new_child
== NULL
) {
2819 if(cltype
>= var_new_child
->type
->table_size
) {
2822 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2825 if (unlikely(!var7
)) {
2826 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2827 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
2828 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 423);
2832 nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_doc= on <self:AStdClassdef>*/
2837 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
2839 var9
= 0; /* <var_old_child:ANode> cannot be null */
2841 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
2842 var_other
= var_old_child
;
2844 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
2845 var14
= var8
== var_other
;
2848 RET_LABEL13
:(void)0;
2853 RET_LABEL11
:(void)0;
2858 /* <var_new_child:nullable ANode> isa nullable TKwredef */
2859 cltype16
= type_nullable__nitc__TKwredef
.color
;
2860 idtype17
= type_nullable__nitc__TKwredef
.id
;
2861 if(var_new_child
== NULL
) {
2864 if(cltype16
>= var_new_child
->type
->table_size
) {
2867 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2870 if (unlikely(!var15
)) {
2871 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2872 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
2873 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 427);
2877 nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwredef= on <self:AStdClassdef>*/
2882 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
2883 if (var19
== NULL
) {
2884 var20
= 0; /* <var_old_child:ANode> cannot be null */
2886 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
2887 var_other
= var_old_child
;
2889 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
2890 var25
= var19
== var_other
;
2893 RET_LABEL24
:(void)0;
2898 RET_LABEL22
:(void)0;
2903 /* <var_new_child:nullable ANode> isa AVisibility */
2904 cltype27
= type_nitc__AVisibility
.color
;
2905 idtype28
= type_nitc__AVisibility
.id
;
2906 if(var_new_child
== NULL
) {
2909 if(cltype27
>= var_new_child
->type
->table_size
) {
2912 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
2915 if (unlikely(!var26
)) {
2916 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2917 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
2918 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 431);
2922 nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_visibility= on <self:AStdClassdef>*/
2927 var30
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
2928 if (unlikely(var30
== NULL
)) {
2929 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
2930 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 434);
2934 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AClasskind> */
2935 var_other
= var_old_child
;
2937 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AClasskind> */
2938 var35
= var30
== var_other
;
2941 RET_LABEL34
:(void)0;
2946 RET_LABEL32
:(void)0;
2950 /* <var_new_child:nullable ANode> isa AClasskind */
2951 cltype37
= type_nitc__AClasskind
.color
;
2952 idtype38
= type_nitc__AClasskind
.id
;
2953 if(var_new_child
== NULL
) {
2956 if(cltype37
>= var_new_child
->type
->table_size
) {
2959 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
2962 if (unlikely(!var36
)) {
2963 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2964 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AClasskind", var_class_name39
);
2965 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 435);
2969 nitc__parser_prod___AStdClassdef___n_classkind_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_classkind= on <self:AStdClassdef>*/
2974 var40
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_qid
].val
; /* _n_qid on <self:AStdClassdef> */
2975 if (var40
== NULL
) {
2976 var41
= 0; /* <var_old_child:ANode> cannot be null */
2978 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable AQclassid> */
2979 var_other
= var_old_child
;
2981 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable AQclassid(AQclassid)> */
2982 var46
= var40
== var_other
;
2985 RET_LABEL45
:(void)0;
2990 RET_LABEL43
:(void)0;
2995 /* <var_new_child:nullable ANode> isa nullable AQclassid */
2996 cltype48
= type_nullable__nitc__AQclassid
.color
;
2997 idtype49
= type_nullable__nitc__AQclassid
.id
;
2998 if(var_new_child
== NULL
) {
3001 if(cltype48
>= var_new_child
->type
->table_size
) {
3004 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
3007 if (unlikely(!var47
)) {
3008 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3009 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQclassid", var_class_name50
);
3010 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 439);
3014 nitc__parser_prod___AStdClassdef___n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_qid= on <self:AStdClassdef>*/
3019 var51
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_obra
].val
; /* _n_obra on <self:AStdClassdef> */
3020 if (var51
== NULL
) {
3021 var52
= 0; /* <var_old_child:ANode> cannot be null */
3023 { /* Inline kernel#Object#== (var51,var_old_child) on <var51:nullable TObra> */
3024 var_other
= var_old_child
;
3026 { /* Inline kernel#Object#is_same_instance (var51,var_other) on <var51:nullable TObra(TObra)> */
3027 var57
= var51
== var_other
;
3030 RET_LABEL56
:(void)0;
3035 RET_LABEL54
:(void)0;
3040 /* <var_new_child:nullable ANode> isa nullable TObra */
3041 cltype59
= type_nullable__nitc__TObra
.color
;
3042 idtype60
= type_nullable__nitc__TObra
.id
;
3043 if(var_new_child
== NULL
) {
3046 if(cltype59
>= var_new_child
->type
->table_size
) {
3049 var58
= var_new_child
->type
->type_table
[cltype59
] == idtype60
;
3052 if (unlikely(!var58
)) {
3053 var_class_name61
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3054 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TObra", var_class_name61
);
3055 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 443);
3059 nitc__parser_prod___AStdClassdef___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_obra= on <self:AStdClassdef>*/
3065 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
3066 var64
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3067 if (unlikely(var64
== NULL
)) {
3068 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3069 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1173);
3073 RET_LABEL63
:(void)0;
3077 var65
= nitc___nitc__ANodes___replace_child(var62
, var_old_child
, var_new_child
);
3083 var66
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_cbra
].val
; /* _n_cbra on <self:AStdClassdef> */
3084 if (var66
== NULL
) {
3085 var67
= 0; /* <var_old_child:ANode> cannot be null */
3087 { /* Inline kernel#Object#== (var66,var_old_child) on <var66:nullable TCbra> */
3088 var_other
= var_old_child
;
3090 { /* Inline kernel#Object#is_same_instance (var66,var_other) on <var66:nullable TCbra(TCbra)> */
3091 var72
= var66
== var_other
;
3094 RET_LABEL71
:(void)0;
3099 RET_LABEL69
:(void)0;
3104 /* <var_new_child:nullable ANode> isa nullable TCbra */
3105 cltype74
= type_nullable__nitc__TCbra
.color
;
3106 idtype75
= type_nullable__nitc__TCbra
.id
;
3107 if(var_new_child
== NULL
) {
3110 if(cltype74
>= var_new_child
->type
->table_size
) {
3113 var73
= var_new_child
->type
->type_table
[cltype74
] == idtype75
;
3116 if (unlikely(!var73
)) {
3117 var_class_name76
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3118 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCbra", var_class_name76
);
3119 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 448);
3123 nitc__parser_prod___AStdClassdef___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_cbra= on <self:AStdClassdef>*/
3128 var77
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3129 if (var77
== NULL
) {
3130 var78
= 0; /* <var_old_child:ANode> cannot be null */
3132 { /* Inline kernel#Object#== (var77,var_old_child) on <var77:nullable AExternCodeBlock> */
3133 var_other
= var_old_child
;
3135 { /* Inline kernel#Object#is_same_instance (var77,var_other) on <var77:nullable AExternCodeBlock(AExternCodeBlock)> */
3136 var83
= var77
== var_other
;
3139 RET_LABEL82
:(void)0;
3144 RET_LABEL80
:(void)0;
3149 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
3150 cltype85
= type_nullable__nitc__AExternCodeBlock
.color
;
3151 idtype86
= type_nullable__nitc__AExternCodeBlock
.id
;
3152 if(var_new_child
== NULL
) {
3155 if(cltype85
>= var_new_child
->type
->table_size
) {
3158 var84
= var_new_child
->type
->type_table
[cltype85
] == idtype86
;
3161 if (unlikely(!var84
)) {
3162 var_class_name87
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3163 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name87
);
3164 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 452);
3168 nitc__parser_prod___AStdClassdef___n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_extern_code_block= on <self:AStdClassdef>*/
3174 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3175 var90
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3176 if (unlikely(var90
== NULL
)) {
3177 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3178 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3182 RET_LABEL89
:(void)0;
3186 var91
= nitc___nitc__ANodes___replace_child(var88
, var_old_child
, var_new_child
);
3192 var92
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3193 if (unlikely(var92
== NULL
)) {
3194 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3195 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 456);
3199 { /* Inline kernel#Object#== (var92,var_old_child) on <var92:TKwend> */
3200 var_other
= var_old_child
;
3202 { /* Inline kernel#Object#is_same_instance (var92,var_other) on <var92:TKwend> */
3203 var97
= var92
== var_other
;
3206 RET_LABEL96
:(void)0;
3211 RET_LABEL94
:(void)0;
3215 /* <var_new_child:nullable ANode> isa TKwend */
3216 cltype99
= type_nitc__TKwend
.color
;
3217 idtype100
= type_nitc__TKwend
.id
;
3218 if(var_new_child
== NULL
) {
3221 if(cltype99
>= var_new_child
->type
->table_size
) {
3224 var98
= var_new_child
->type
->type_table
[cltype99
] == idtype100
;
3227 if (unlikely(!var98
)) {
3228 var_class_name101
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3229 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwend", var_class_name101
);
3230 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 457);
3234 nitc__parser_prod___AStdClassdef___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#AStdClassdef#n_kwend= on <self:AStdClassdef>*/
3241 /* method parser_prod#AStdClassdef#n_doc= for (self: AStdClassdef, nullable ADoc) */
3242 void nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
3243 val
* var_node
/* var node: nullable ADoc */;
3244 short int var
/* : Bool */;
3245 short int var1
/* : Bool */;
3246 val
* var_other
/* var other: nullable Object */;
3247 short int var3
/* : Bool */;
3248 short int var4
/* : Bool */;
3250 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AStdClassdef> */
3251 if (var_node
== NULL
) {
3252 var
= 0; /* is null */
3254 var
= 1; /* arg is null and recv is not */
3257 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
3258 var_other
= ((val
*)NULL
);
3260 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
3271 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
3272 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
3280 /* method parser_prod#AStdClassdef#n_kwredef= for (self: AStdClassdef, nullable TKwredef) */
3281 void nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
3282 val
* var_node
/* var node: nullable TKwredef */;
3283 short int var
/* : Bool */;
3284 short int var1
/* : Bool */;
3285 val
* var_other
/* var other: nullable Object */;
3286 short int var3
/* : Bool */;
3287 short int var4
/* : Bool */;
3289 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AStdClassdef> */
3290 if (var_node
== NULL
) {
3291 var
= 0; /* is null */
3293 var
= 1; /* arg is null and recv is not */
3296 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
3297 var_other
= ((val
*)NULL
);
3299 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
3310 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
3311 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
3319 /* method parser_prod#AStdClassdef#n_visibility= for (self: AStdClassdef, nullable AVisibility) */
3320 void nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
3321 val
* var_node
/* var node: nullable AVisibility */;
3323 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdClassdef> */
3324 if (var_node
== NULL
) {
3325 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3326 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 475);
3329 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
3330 if (unlikely(var_node
== NULL
)) {
3331 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3332 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3335 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
3341 /* method parser_prod#AStdClassdef#n_classkind= for (self: AStdClassdef, AClasskind) */
3342 void nitc__parser_prod___AStdClassdef___n_classkind_61d(val
* self
, val
* p0
) {
3343 val
* var_node
/* var node: AClasskind */;
3345 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_classkind
].val
= var_node
; /* _n_classkind on <self:AStdClassdef> */
3347 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AClasskind> */
3348 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AClasskind> */
3354 /* method parser_prod#AStdClassdef#n_qid= for (self: AStdClassdef, nullable AQclassid) */
3355 void nitc__parser_prod___AStdClassdef___n_qid_61d(val
* self
, val
* p0
) {
3356 val
* var_node
/* var node: nullable AQclassid */;
3357 short int var
/* : Bool */;
3358 short int var1
/* : Bool */;
3359 val
* var_other
/* var other: nullable Object */;
3360 short int var3
/* : Bool */;
3361 short int var4
/* : Bool */;
3363 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_qid
].val
= var_node
; /* _n_qid on <self:AStdClassdef> */
3364 if (var_node
== NULL
) {
3365 var
= 0; /* is null */
3367 var
= 1; /* arg is null and recv is not */
3370 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQclassid> */
3371 var_other
= ((val
*)NULL
);
3373 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AQclassid(AQclassid)>*/
3384 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQclassid(AQclassid)> */
3385 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQclassid(AQclassid)> */
3393 /* method parser_prod#AStdClassdef#n_obra= for (self: AStdClassdef, nullable TObra) */
3394 void nitc__parser_prod___AStdClassdef___n_obra_61d(val
* self
, val
* p0
) {
3395 val
* var_node
/* var node: nullable TObra */;
3396 short int var
/* : Bool */;
3397 short int var1
/* : Bool */;
3398 val
* var_other
/* var other: nullable Object */;
3399 short int var3
/* : Bool */;
3400 short int var4
/* : Bool */;
3402 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_obra
].val
= var_node
; /* _n_obra on <self:AStdClassdef> */
3403 if (var_node
== NULL
) {
3404 var
= 0; /* is null */
3406 var
= 1; /* arg is null and recv is not */
3409 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TObra> */
3410 var_other
= ((val
*)NULL
);
3412 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TObra(TObra)>*/
3423 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TObra(TObra)> */
3424 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TObra(TObra)> */
3432 /* method parser_prod#AStdClassdef#n_cbra= for (self: AStdClassdef, nullable TCbra) */
3433 void nitc__parser_prod___AStdClassdef___n_cbra_61d(val
* self
, val
* p0
) {
3434 val
* var_node
/* var node: nullable TCbra */;
3435 short int var
/* : Bool */;
3436 short int var1
/* : Bool */;
3437 val
* var_other
/* var other: nullable Object */;
3438 short int var3
/* : Bool */;
3439 short int var4
/* : Bool */;
3441 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_cbra
].val
= var_node
; /* _n_cbra on <self:AStdClassdef> */
3442 if (var_node
== NULL
) {
3443 var
= 0; /* is null */
3445 var
= 1; /* arg is null and recv is not */
3448 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCbra> */
3449 var_other
= ((val
*)NULL
);
3451 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TCbra(TCbra)>*/
3462 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCbra(TCbra)> */
3463 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCbra(TCbra)> */
3471 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: AStdClassdef, nullable AExternCodeBlock) */
3472 void nitc__parser_prod___AStdClassdef___n_extern_code_block_61d(val
* self
, val
* p0
) {
3473 val
* var_node
/* var node: nullable AExternCodeBlock */;
3474 short int var
/* : Bool */;
3475 short int var1
/* : Bool */;
3476 val
* var_other
/* var other: nullable Object */;
3477 short int var3
/* : Bool */;
3478 short int var4
/* : Bool */;
3480 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AStdClassdef> */
3481 if (var_node
== NULL
) {
3482 var
= 0; /* is null */
3484 var
= 1; /* arg is null and recv is not */
3487 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExternCodeBlock> */
3488 var_other
= ((val
*)NULL
);
3490 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/
3501 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3502 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
3510 /* method parser_prod#AStdClassdef#n_kwend= for (self: AStdClassdef, TKwend) */
3511 void nitc__parser_prod___AStdClassdef___n_kwend_61d(val
* self
, val
* p0
) {
3512 val
* var_node
/* var node: TKwend */;
3514 self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AStdClassdef> */
3516 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwend> */
3517 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwend> */
3523 /* method parser_prod#AStdClassdef#visit_all for (self: AStdClassdef, Visitor) */
3524 void nitc__parser_prod___AStdClassdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3525 val
* var_v
/* var v: Visitor */;
3526 val
* var
/* : nullable ADoc */;
3527 val
* var1
/* : nullable TKwredef */;
3528 val
* var2
/* : nullable AVisibility */;
3529 val
* var3
/* : AClasskind */;
3530 val
* var4
/* : nullable AQclassid */;
3531 val
* var5
/* : nullable TObra */;
3532 val
* var6
/* : ANodes[AFormaldef] */;
3533 val
* var8
/* : ANodes[AFormaldef] */;
3534 val
* var9
/* : nullable TCbra */;
3535 val
* var10
/* : nullable AExternCodeBlock */;
3536 val
* var11
/* : ANodes[APropdef] */;
3537 val
* var13
/* : ANodes[APropdef] */;
3538 val
* var14
/* : TKwend */;
3540 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3542 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3544 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3546 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3548 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3550 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3552 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3553 if (unlikely(var3
== NULL
)) {
3554 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_classkind");
3555 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 514);
3559 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3561 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_qid
].val
; /* _n_qid on <self:AStdClassdef> */
3563 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3565 var5
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_obra
].val
; /* _n_obra on <self:AStdClassdef> */
3567 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3570 { /* Inline parser_nodes#AStdClassdef#n_formaldefs (self) on <self:AStdClassdef> */
3571 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3572 if (unlikely(var8
== NULL
)) {
3573 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3574 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1173);
3582 nitc___nitc__ANodes___visit_all(var6
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var6:ANodes[AFormaldef]>*/
3584 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_cbra
].val
; /* _n_cbra on <self:AStdClassdef> */
3586 nitc___nitc__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3588 var10
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3590 nitc___nitc__Visitor___enter_visit(var_v
, var10
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3593 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AStdClassdef> */
3594 var13
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3595 if (unlikely(var13
== NULL
)) {
3596 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3597 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3601 RET_LABEL12
:(void)0;
3605 nitc___nitc__ANodes___visit_all(var11
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var11:ANodes[APropdef]>*/
3607 var14
= self
->attrs
[COLOR_nitc__parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3608 if (unlikely(var14
== NULL
)) {
3609 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwend");
3610 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 521);
3614 nitc___nitc__Visitor___enter_visit(var_v
, var14
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3618 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: ATopClassdef, Collection[Object]) */
3619 void nitc__parser_prod___ATopClassdef___init_atopclassdef(val
* self
, val
* p0
) {
3620 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3621 val
* var
/* : ANodes[APropdef] */;
3622 val
* var3
/* : ANodes[APropdef] */;
3624 { /* Inline kernel#Object#init (self) on <self:ATopClassdef> */
3628 var_n_propdefs
= p0
;
3630 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3631 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3632 if (unlikely(var3
== NULL
)) {
3633 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3634 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3642 nitc___nitc__ANodes___unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3646 /* method parser_prod#ATopClassdef#replace_child for (self: ATopClassdef, ANode, nullable ANode) */
3647 void nitc__parser_prod___ATopClassdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3648 val
* var_old_child
/* var old_child: ANode */;
3649 val
* var_new_child
/* var new_child: nullable ANode */;
3650 val
* var
/* : ANodes[APropdef] */;
3651 val
* var2
/* : ANodes[APropdef] */;
3652 short int var3
/* : Bool */;
3656 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3657 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3658 if (unlikely(var2
== NULL
)) {
3659 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3660 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3668 var3
= nitc___nitc__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3676 /* method parser_prod#ATopClassdef#visit_all for (self: ATopClassdef, Visitor) */
3677 void nitc__parser_prod___ATopClassdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3678 val
* var_v
/* var v: Visitor */;
3679 val
* var
/* : ANodes[APropdef] */;
3680 val
* var2
/* : ANodes[APropdef] */;
3683 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:ATopClassdef> */
3684 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3685 if (unlikely(var2
== NULL
)) {
3686 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3687 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3695 nitc___nitc__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
3699 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: AMainClassdef, Collection[Object]) */
3700 void nitc__parser_prod___AMainClassdef___init_amainclassdef(val
* self
, val
* p0
) {
3701 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3702 val
* var
/* : ANodes[APropdef] */;
3703 val
* var3
/* : ANodes[APropdef] */;
3705 { /* Inline kernel#Object#init (self) on <self:AMainClassdef> */
3709 var_n_propdefs
= p0
;
3711 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3712 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3713 if (unlikely(var3
== NULL
)) {
3714 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3715 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3723 nitc___nitc__ANodes___unsafe_add_all(var
, var_n_propdefs
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[APropdef]>*/
3727 /* method parser_prod#AMainClassdef#replace_child for (self: AMainClassdef, ANode, nullable ANode) */
3728 void nitc__parser_prod___AMainClassdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3729 val
* var_old_child
/* var old_child: ANode */;
3730 val
* var_new_child
/* var new_child: nullable ANode */;
3731 val
* var
/* : ANodes[APropdef] */;
3732 val
* var2
/* : ANodes[APropdef] */;
3733 short int var3
/* : Bool */;
3737 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3738 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3739 if (unlikely(var2
== NULL
)) {
3740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3741 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3749 var3
= nitc___nitc__ANodes___replace_child(var
, var_old_child
, var_new_child
);
3757 /* method parser_prod#AMainClassdef#visit_all for (self: AMainClassdef, Visitor) */
3758 void nitc__parser_prod___AMainClassdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3759 val
* var_v
/* var v: Visitor */;
3760 val
* var
/* : ANodes[APropdef] */;
3761 val
* var2
/* : ANodes[APropdef] */;
3764 { /* Inline parser_nodes#AClassdef#n_propdefs (self) on <self:AMainClassdef> */
3765 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3766 if (unlikely(var2
== NULL
)) {
3767 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_propdefs");
3768 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1155);
3776 nitc___nitc__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[APropdef]>*/
3780 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: AConcreteClasskind, nullable TKwclass) */
3781 void nitc__parser_prod___AConcreteClasskind___init_aconcreteclasskind(val
* self
, val
* p0
) {
3782 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3784 { /* Inline kernel#Object#init (self) on <self:AConcreteClasskind> */
3789 if (unlikely(var_n_kwclass
== NULL
)) {
3790 PRINT_ERROR("Runtime error: %s", "Cast failed");
3791 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 569);
3794 self
->attrs
[COLOR_nitc__parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AConcreteClasskind> */
3795 if (var_n_kwclass
== NULL
) {
3796 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3797 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 570);
3800 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
3801 if (unlikely(var_n_kwclass
== NULL
)) {
3802 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3803 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3806 var_n_kwclass
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
3812 /* method parser_prod#AConcreteClasskind#replace_child for (self: AConcreteClasskind, ANode, nullable ANode) */
3813 void nitc__parser_prod___AConcreteClasskind___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3814 val
* var_old_child
/* var old_child: ANode */;
3815 val
* var_new_child
/* var new_child: nullable ANode */;
3816 val
* var
/* : TKwclass */;
3817 short int var1
/* : Bool */;
3818 val
* var_other
/* var other: nullable Object */;
3819 short int var3
/* : Bool */;
3820 short int var5
/* : Bool */;
3821 short int var6
/* : Bool */;
3824 const char* var_class_name
;
3827 var
= self
->attrs
[COLOR_nitc__parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3828 if (unlikely(var
== NULL
)) {
3829 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
3830 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 575);
3834 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwclass> */
3835 var_other
= var_old_child
;
3837 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwclass> */
3838 var5
= var
== var_other
;
3850 /* <var_new_child:nullable ANode> isa TKwclass */
3851 cltype
= type_nitc__TKwclass
.color
;
3852 idtype
= type_nitc__TKwclass
.id
;
3853 if(var_new_child
== NULL
) {
3856 if(cltype
>= var_new_child
->type
->table_size
) {
3859 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3862 if (unlikely(!var6
)) {
3863 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3864 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name
);
3865 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 576);
3869 nitc__parser_prod___AConcreteClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AConcreteClasskind#n_kwclass= on <self:AConcreteClasskind>*/
3876 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: AConcreteClasskind, TKwclass) */
3877 void nitc__parser_prod___AConcreteClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
3878 val
* var_node
/* var node: TKwclass */;
3880 self
->attrs
[COLOR_nitc__parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AConcreteClasskind> */
3882 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
3883 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
3889 /* method parser_prod#AConcreteClasskind#visit_all for (self: AConcreteClasskind, Visitor) */
3890 void nitc__parser_prod___AConcreteClasskind___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3891 val
* var_v
/* var v: Visitor */;
3892 val
* var
/* : TKwclass */;
3894 var
= self
->attrs
[COLOR_nitc__parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3895 if (unlikely(var
== NULL
)) {
3896 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
3897 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 590);
3901 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3905 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: AAbstractClasskind, nullable TKwabstract, nullable TKwclass) */
3906 void nitc__parser_prod___AAbstractClasskind___init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3907 val
* var_n_kwabstract
/* var n_kwabstract: nullable TKwabstract */;
3908 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3910 { /* Inline kernel#Object#init (self) on <self:AAbstractClasskind> */
3914 var_n_kwabstract
= p0
;
3916 if (unlikely(var_n_kwabstract
== NULL
)) {
3917 PRINT_ERROR("Runtime error: %s", "Cast failed");
3918 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 599);
3921 self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_n_kwabstract
; /* _n_kwabstract on <self:AAbstractClasskind> */
3922 if (var_n_kwabstract
== NULL
) {
3923 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3924 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 600);
3927 { /* Inline parser_nodes#ANode#parent= (var_n_kwabstract,self) on <var_n_kwabstract:nullable TKwabstract> */
3928 if (unlikely(var_n_kwabstract
== NULL
)) {
3929 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3930 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3933 var_n_kwabstract
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabstract:nullable TKwabstract> */
3937 if (unlikely(var_n_kwclass
== NULL
)) {
3938 PRINT_ERROR("Runtime error: %s", "Cast failed");
3939 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 601);
3942 self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AAbstractClasskind> */
3943 if (var_n_kwclass
== NULL
) {
3944 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3945 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 602);
3948 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass> */
3949 if (unlikely(var_n_kwclass
== NULL
)) {
3950 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3951 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3954 var_n_kwclass
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass> */
3960 /* method parser_prod#AAbstractClasskind#replace_child for (self: AAbstractClasskind, ANode, nullable ANode) */
3961 void nitc__parser_prod___AAbstractClasskind___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3962 val
* var_old_child
/* var old_child: ANode */;
3963 val
* var_new_child
/* var new_child: nullable ANode */;
3964 val
* var
/* : TKwabstract */;
3965 short int var1
/* : Bool */;
3966 val
* var_other
/* var other: nullable Object */;
3967 short int var3
/* : Bool */;
3968 short int var5
/* : Bool */;
3969 short int var6
/* : Bool */;
3972 const char* var_class_name
;
3973 val
* var7
/* : TKwclass */;
3974 short int var8
/* : Bool */;
3975 short int var10
/* : Bool */;
3976 short int var12
/* : Bool */;
3977 short int var13
/* : Bool */;
3980 const char* var_class_name16
;
3983 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
3984 if (unlikely(var
== NULL
)) {
3985 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
3986 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 607);
3990 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabstract> */
3991 var_other
= var_old_child
;
3993 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabstract> */
3994 var5
= var
== var_other
;
4006 /* <var_new_child:nullable ANode> isa TKwabstract */
4007 cltype
= type_nitc__TKwabstract
.color
;
4008 idtype
= type_nitc__TKwabstract
.id
;
4009 if(var_new_child
== NULL
) {
4012 if(cltype
>= var_new_child
->type
->table_size
) {
4015 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4018 if (unlikely(!var6
)) {
4019 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4020 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabstract", var_class_name
);
4021 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 608);
4025 nitc__parser_prod___AAbstractClasskind___n_kwabstract_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwabstract= on <self:AAbstractClasskind>*/
4030 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4031 if (unlikely(var7
== NULL
)) {
4032 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4033 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 611);
4037 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TKwclass> */
4038 var_other
= var_old_child
;
4040 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TKwclass> */
4041 var12
= var7
== var_other
;
4044 RET_LABEL11
:(void)0;
4053 /* <var_new_child:nullable ANode> isa TKwclass */
4054 cltype14
= type_nitc__TKwclass
.color
;
4055 idtype15
= type_nitc__TKwclass
.id
;
4056 if(var_new_child
== NULL
) {
4059 if(cltype14
>= var_new_child
->type
->table_size
) {
4062 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4065 if (unlikely(!var13
)) {
4066 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4067 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwclass", var_class_name16
);
4068 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 612);
4072 nitc__parser_prod___AAbstractClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AAbstractClasskind#n_kwclass= on <self:AAbstractClasskind>*/
4079 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: AAbstractClasskind, TKwabstract) */
4080 void nitc__parser_prod___AAbstractClasskind___n_kwabstract_61d(val
* self
, val
* p0
) {
4081 val
* var_node
/* var node: TKwabstract */;
4083 self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_node
; /* _n_kwabstract on <self:AAbstractClasskind> */
4085 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabstract> */
4086 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabstract> */
4092 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: AAbstractClasskind, TKwclass) */
4093 void nitc__parser_prod___AAbstractClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
4094 val
* var_node
/* var node: TKwclass */;
4096 self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AAbstractClasskind> */
4098 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwclass> */
4099 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwclass> */
4105 /* method parser_prod#AAbstractClasskind#visit_all for (self: AAbstractClasskind, Visitor) */
4106 void nitc__parser_prod___AAbstractClasskind___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4107 val
* var_v
/* var v: Visitor */;
4108 val
* var
/* : TKwabstract */;
4109 val
* var1
/* : TKwclass */;
4111 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
4112 if (unlikely(var
== NULL
)) {
4113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabstract");
4114 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 631);
4118 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4120 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4121 if (unlikely(var1
== NULL
)) {
4122 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwclass");
4123 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 632);
4127 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4131 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: AInterfaceClasskind, nullable TKwinterface) */
4132 void nitc__parser_prod___AInterfaceClasskind___init_ainterfaceclasskind(val
* self
, val
* p0
) {
4133 val
* var_n_kwinterface
/* var n_kwinterface: nullable TKwinterface */;
4135 { /* Inline kernel#Object#init (self) on <self:AInterfaceClasskind> */
4139 var_n_kwinterface
= p0
;
4140 if (unlikely(var_n_kwinterface
== NULL
)) {
4141 PRINT_ERROR("Runtime error: %s", "Cast failed");
4142 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 640);
4145 self
->attrs
[COLOR_nitc__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_n_kwinterface
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4146 if (var_n_kwinterface
== NULL
) {
4147 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4148 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 641);
4151 { /* Inline parser_nodes#ANode#parent= (var_n_kwinterface,self) on <var_n_kwinterface:nullable TKwinterface> */
4152 if (unlikely(var_n_kwinterface
== NULL
)) {
4153 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4154 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4157 var_n_kwinterface
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinterface:nullable TKwinterface> */
4163 /* method parser_prod#AInterfaceClasskind#replace_child for (self: AInterfaceClasskind, ANode, nullable ANode) */
4164 void nitc__parser_prod___AInterfaceClasskind___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4165 val
* var_old_child
/* var old_child: ANode */;
4166 val
* var_new_child
/* var new_child: nullable ANode */;
4167 val
* var
/* : TKwinterface */;
4168 short int var1
/* : Bool */;
4169 val
* var_other
/* var other: nullable Object */;
4170 short int var3
/* : Bool */;
4171 short int var5
/* : Bool */;
4172 short int var6
/* : Bool */;
4175 const char* var_class_name
;
4178 var
= self
->attrs
[COLOR_nitc__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4179 if (unlikely(var
== NULL
)) {
4180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4181 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 646);
4185 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwinterface> */
4186 var_other
= var_old_child
;
4188 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwinterface> */
4189 var5
= var
== var_other
;
4201 /* <var_new_child:nullable ANode> isa TKwinterface */
4202 cltype
= type_nitc__TKwinterface
.color
;
4203 idtype
= type_nitc__TKwinterface
.id
;
4204 if(var_new_child
== NULL
) {
4207 if(cltype
>= var_new_child
->type
->table_size
) {
4210 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4213 if (unlikely(!var6
)) {
4214 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4215 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwinterface", var_class_name
);
4216 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 647);
4220 nitc__parser_prod___AInterfaceClasskind___n_kwinterface_61d(self
, var_new_child
); /* Direct call parser_prod#AInterfaceClasskind#n_kwinterface= on <self:AInterfaceClasskind>*/
4227 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: AInterfaceClasskind, TKwinterface) */
4228 void nitc__parser_prod___AInterfaceClasskind___n_kwinterface_61d(val
* self
, val
* p0
) {
4229 val
* var_node
/* var node: TKwinterface */;
4231 self
->attrs
[COLOR_nitc__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_node
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4233 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwinterface> */
4234 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwinterface> */
4240 /* method parser_prod#AInterfaceClasskind#visit_all for (self: AInterfaceClasskind, Visitor) */
4241 void nitc__parser_prod___AInterfaceClasskind___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4242 val
* var_v
/* var v: Visitor */;
4243 val
* var
/* : TKwinterface */;
4245 var
= self
->attrs
[COLOR_nitc__parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4246 if (unlikely(var
== NULL
)) {
4247 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4248 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 661);
4252 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4256 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: AEnumClasskind, nullable TKwenum) */
4257 void nitc__parser_prod___AEnumClasskind___init_aenumclasskind(val
* self
, val
* p0
) {
4258 val
* var_n_kwenum
/* var n_kwenum: nullable TKwenum */;
4260 { /* Inline kernel#Object#init (self) on <self:AEnumClasskind> */
4265 if (unlikely(var_n_kwenum
== NULL
)) {
4266 PRINT_ERROR("Runtime error: %s", "Cast failed");
4267 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 669);
4270 self
->attrs
[COLOR_nitc__parser_nodes__AEnumClasskind___n_kwenum
].val
= var_n_kwenum
; /* _n_kwenum on <self:AEnumClasskind> */
4271 if (var_n_kwenum
== NULL
) {
4272 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4273 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 670);
4276 { /* Inline parser_nodes#ANode#parent= (var_n_kwenum,self) on <var_n_kwenum:nullable TKwenum> */
4277 if (unlikely(var_n_kwenum
== NULL
)) {
4278 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4279 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4282 var_n_kwenum
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwenum:nullable TKwenum> */
4288 /* method parser_prod#AEnumClasskind#replace_child for (self: AEnumClasskind, ANode, nullable ANode) */
4289 void nitc__parser_prod___AEnumClasskind___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4290 val
* var_old_child
/* var old_child: ANode */;
4291 val
* var_new_child
/* var new_child: nullable ANode */;
4292 val
* var
/* : TKwenum */;
4293 short int var1
/* : Bool */;
4294 val
* var_other
/* var other: nullable Object */;
4295 short int var3
/* : Bool */;
4296 short int var5
/* : Bool */;
4297 short int var6
/* : Bool */;
4300 const char* var_class_name
;
4303 var
= self
->attrs
[COLOR_nitc__parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4304 if (unlikely(var
== NULL
)) {
4305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4306 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 675);
4310 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwenum> */
4311 var_other
= var_old_child
;
4313 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwenum> */
4314 var5
= var
== var_other
;
4326 /* <var_new_child:nullable ANode> isa TKwenum */
4327 cltype
= type_nitc__TKwenum
.color
;
4328 idtype
= type_nitc__TKwenum
.id
;
4329 if(var_new_child
== NULL
) {
4332 if(cltype
>= var_new_child
->type
->table_size
) {
4335 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4338 if (unlikely(!var6
)) {
4339 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4340 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwenum", var_class_name
);
4341 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 676);
4345 nitc__parser_prod___AEnumClasskind___n_kwenum_61d(self
, var_new_child
); /* Direct call parser_prod#AEnumClasskind#n_kwenum= on <self:AEnumClasskind>*/
4352 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: AEnumClasskind, TKwenum) */
4353 void nitc__parser_prod___AEnumClasskind___n_kwenum_61d(val
* self
, val
* p0
) {
4354 val
* var_node
/* var node: TKwenum */;
4356 self
->attrs
[COLOR_nitc__parser_nodes__AEnumClasskind___n_kwenum
].val
= var_node
; /* _n_kwenum on <self:AEnumClasskind> */
4358 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwenum> */
4359 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwenum> */
4365 /* method parser_prod#AEnumClasskind#visit_all for (self: AEnumClasskind, Visitor) */
4366 void nitc__parser_prod___AEnumClasskind___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4367 val
* var_v
/* var v: Visitor */;
4368 val
* var
/* : TKwenum */;
4370 var
= self
->attrs
[COLOR_nitc__parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4371 if (unlikely(var
== NULL
)) {
4372 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwenum");
4373 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 690);
4377 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4381 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: AExternClasskind, nullable TKwextern, nullable TKwclass) */
4382 void nitc__parser_prod___AExternClasskind___init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4383 val
* var_n_kwextern
/* var n_kwextern: nullable TKwextern */;
4384 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4385 short int var
/* : Bool */;
4386 short int var3
/* : Bool */;
4387 val
* var_other
/* var other: nullable Object */;
4388 short int var5
/* : Bool */;
4389 short int var6
/* : Bool */;
4391 { /* Inline kernel#Object#init (self) on <self:AExternClasskind> */
4395 var_n_kwextern
= p0
;
4397 if (unlikely(var_n_kwextern
== NULL
)) {
4398 PRINT_ERROR("Runtime error: %s", "Cast failed");
4399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 699);
4402 self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwextern
].val
= var_n_kwextern
; /* _n_kwextern on <self:AExternClasskind> */
4403 if (var_n_kwextern
== NULL
) {
4404 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4405 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 700);
4408 { /* Inline parser_nodes#ANode#parent= (var_n_kwextern,self) on <var_n_kwextern:nullable TKwextern> */
4409 if (unlikely(var_n_kwextern
== NULL
)) {
4410 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4411 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4414 var_n_kwextern
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwextern:nullable TKwextern> */
4418 self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AExternClasskind> */
4419 if (var_n_kwclass
== NULL
) {
4420 var
= 0; /* is null */
4422 var
= 1; /* arg is null and recv is not */
4425 { /* Inline kernel#Object#!= (var_n_kwclass,((val*)NULL)) on <var_n_kwclass:nullable TKwclass> */
4426 var_other
= ((val
*)NULL
);
4428 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwclass
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwclass
, var_other
); /* == on <var_n_kwclass:nullable TKwclass(TKwclass)>*/
4439 { /* Inline parser_nodes#ANode#parent= (var_n_kwclass,self) on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4440 var_n_kwclass
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwclass:nullable TKwclass(TKwclass)> */
4448 /* method parser_prod#AExternClasskind#replace_child for (self: AExternClasskind, ANode, nullable ANode) */
4449 void nitc__parser_prod___AExternClasskind___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4450 val
* var_old_child
/* var old_child: ANode */;
4451 val
* var_new_child
/* var new_child: nullable ANode */;
4452 val
* var
/* : TKwextern */;
4453 short int var1
/* : Bool */;
4454 val
* var_other
/* var other: nullable Object */;
4455 short int var3
/* : Bool */;
4456 short int var5
/* : Bool */;
4457 short int var6
/* : Bool */;
4460 const char* var_class_name
;
4461 val
* var7
/* : nullable TKwclass */;
4462 short int var8
/* : Bool */;
4463 short int var9
/* : Bool */;
4464 short int var11
/* : Bool */;
4465 short int var13
/* : Bool */;
4466 short int var14
/* : Bool */;
4469 const char* var_class_name17
;
4472 var
= self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4473 if (unlikely(var
== NULL
)) {
4474 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
4475 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 707);
4479 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwextern> */
4480 var_other
= var_old_child
;
4482 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwextern> */
4483 var5
= var
== var_other
;
4495 /* <var_new_child:nullable ANode> isa TKwextern */
4496 cltype
= type_nitc__TKwextern
.color
;
4497 idtype
= type_nitc__TKwextern
.id
;
4498 if(var_new_child
== NULL
) {
4501 if(cltype
>= var_new_child
->type
->table_size
) {
4504 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4507 if (unlikely(!var6
)) {
4508 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4509 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwextern", var_class_name
);
4510 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 708);
4514 nitc__parser_prod___AExternClasskind___n_kwextern_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwextern= on <self:AExternClasskind>*/
4519 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4521 var8
= 0; /* <var_old_child:ANode> cannot be null */
4523 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TKwclass> */
4524 var_other
= var_old_child
;
4526 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TKwclass(TKwclass)> */
4527 var13
= var7
== var_other
;
4530 RET_LABEL12
:(void)0;
4535 RET_LABEL10
:(void)0;
4540 /* <var_new_child:nullable ANode> isa nullable TKwclass */
4541 cltype15
= type_nullable__nitc__TKwclass
.color
;
4542 idtype16
= type_nullable__nitc__TKwclass
.id
;
4543 if(var_new_child
== NULL
) {
4546 if(cltype15
>= var_new_child
->type
->table_size
) {
4549 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4552 if (unlikely(!var14
)) {
4553 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4554 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwclass", var_class_name17
);
4555 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 712);
4559 nitc__parser_prod___AExternClasskind___n_kwclass_61d(self
, var_new_child
); /* Direct call parser_prod#AExternClasskind#n_kwclass= on <self:AExternClasskind>*/
4566 /* method parser_prod#AExternClasskind#n_kwextern= for (self: AExternClasskind, TKwextern) */
4567 void nitc__parser_prod___AExternClasskind___n_kwextern_61d(val
* self
, val
* p0
) {
4568 val
* var_node
/* var node: TKwextern */;
4570 self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwextern
].val
= var_node
; /* _n_kwextern on <self:AExternClasskind> */
4572 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwextern> */
4573 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwextern> */
4579 /* method parser_prod#AExternClasskind#n_kwclass= for (self: AExternClasskind, nullable TKwclass) */
4580 void nitc__parser_prod___AExternClasskind___n_kwclass_61d(val
* self
, val
* p0
) {
4581 val
* var_node
/* var node: nullable TKwclass */;
4582 short int var
/* : Bool */;
4583 short int var1
/* : Bool */;
4584 val
* var_other
/* var other: nullable Object */;
4585 short int var3
/* : Bool */;
4586 short int var4
/* : Bool */;
4588 self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AExternClasskind> */
4589 if (var_node
== NULL
) {
4590 var
= 0; /* is null */
4592 var
= 1; /* arg is null and recv is not */
4595 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwclass> */
4596 var_other
= ((val
*)NULL
);
4598 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwclass(TKwclass)>*/
4609 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwclass(TKwclass)> */
4610 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwclass(TKwclass)> */
4618 /* method parser_prod#AExternClasskind#visit_all for (self: AExternClasskind, Visitor) */
4619 void nitc__parser_prod___AExternClasskind___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4620 val
* var_v
/* var v: Visitor */;
4621 val
* var
/* : TKwextern */;
4622 val
* var1
/* : nullable TKwclass */;
4624 var
= self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4625 if (unlikely(var
== NULL
)) {
4626 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwextern");
4627 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 731);
4631 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4633 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4635 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4639 /* method parser_prod#AFormaldef#init_aformaldef for (self: AFormaldef, nullable TClassid, nullable AType, nullable AAnnotations) */
4640 void nitc__parser_prod___AFormaldef___init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4641 val
* var_n_id
/* var n_id: nullable TClassid */;
4642 val
* var_n_type
/* var n_type: nullable AType */;
4643 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4644 short int var
/* : Bool */;
4645 short int var3
/* : Bool */;
4646 val
* var_other
/* var other: nullable Object */;
4647 short int var5
/* : Bool */;
4648 short int var6
/* : Bool */;
4649 short int var8
/* : Bool */;
4650 short int var9
/* : Bool */;
4651 short int var11
/* : Bool */;
4652 short int var12
/* : Bool */;
4654 { /* Inline kernel#Object#init (self) on <self:AFormaldef> */
4660 var_n_annotations
= p2
;
4661 if (unlikely(var_n_id
== NULL
)) {
4662 PRINT_ERROR("Runtime error: %s", "Cast failed");
4663 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 742);
4666 self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_id
].val
= var_n_id
; /* _n_id on <self:AFormaldef> */
4667 if (var_n_id
== NULL
) {
4668 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4669 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 743);
4672 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
4673 if (unlikely(var_n_id
== NULL
)) {
4674 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4675 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4678 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
4682 self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_type
].val
= var_n_type
; /* _n_type on <self:AFormaldef> */
4683 if (var_n_type
== NULL
) {
4684 var
= 0; /* is null */
4686 var
= 1; /* arg is null and recv is not */
4689 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
4690 var_other
= ((val
*)NULL
);
4692 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
4703 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
4704 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
4710 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFormaldef> */
4711 if (var_n_annotations
== NULL
) {
4712 var8
= 0; /* is null */
4714 var8
= 1; /* arg is null and recv is not */
4717 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
4718 var_other
= ((val
*)NULL
);
4720 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
4725 RET_LABEL10
:(void)0;
4731 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4732 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
4733 RET_LABEL13
:(void)0;
4740 /* method parser_prod#AFormaldef#replace_child for (self: AFormaldef, ANode, nullable ANode) */
4741 void nitc__parser_prod___AFormaldef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4742 val
* var_old_child
/* var old_child: ANode */;
4743 val
* var_new_child
/* var new_child: nullable ANode */;
4744 val
* var
/* : TClassid */;
4745 short int var1
/* : Bool */;
4746 val
* var_other
/* var other: nullable Object */;
4747 short int var3
/* : Bool */;
4748 short int var5
/* : Bool */;
4749 short int var6
/* : Bool */;
4752 const char* var_class_name
;
4753 val
* var7
/* : nullable AType */;
4754 short int var8
/* : Bool */;
4755 short int var9
/* : Bool */;
4756 short int var11
/* : Bool */;
4757 short int var13
/* : Bool */;
4758 short int var14
/* : Bool */;
4761 const char* var_class_name17
;
4762 val
* var18
/* : nullable AAnnotations */;
4763 short int var19
/* : Bool */;
4764 short int var20
/* : Bool */;
4765 short int var22
/* : Bool */;
4766 short int var24
/* : Bool */;
4767 short int var25
/* : Bool */;
4770 const char* var_class_name28
;
4773 var
= self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4774 if (unlikely(var
== NULL
)) {
4775 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4776 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 752);
4780 { /* Inline kernel#Object#== (var,var_old_child) on <var:TClassid> */
4781 var_other
= var_old_child
;
4783 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TClassid> */
4784 var5
= var
== var_other
;
4796 /* <var_new_child:nullable ANode> isa TClassid */
4797 cltype
= type_nitc__TClassid
.color
;
4798 idtype
= type_nitc__TClassid
.id
;
4799 if(var_new_child
== NULL
) {
4802 if(cltype
>= var_new_child
->type
->table_size
) {
4805 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4808 if (unlikely(!var6
)) {
4809 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4810 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name
);
4811 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 753);
4815 nitc__parser_prod___AFormaldef___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_id= on <self:AFormaldef>*/
4820 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4822 var8
= 0; /* <var_old_child:ANode> cannot be null */
4824 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AType> */
4825 var_other
= var_old_child
;
4827 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AType(AType)> */
4828 var13
= var7
== var_other
;
4831 RET_LABEL12
:(void)0;
4836 RET_LABEL10
:(void)0;
4841 /* <var_new_child:nullable ANode> isa nullable AType */
4842 cltype15
= type_nullable__nitc__AType
.color
;
4843 idtype16
= type_nullable__nitc__AType
.id
;
4844 if(var_new_child
== NULL
) {
4847 if(cltype15
>= var_new_child
->type
->table_size
) {
4850 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4853 if (unlikely(!var14
)) {
4854 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4855 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17
);
4856 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 757);
4860 nitc__parser_prod___AFormaldef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_type= on <self:AFormaldef>*/
4865 var18
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4866 if (var18
== NULL
) {
4867 var19
= 0; /* <var_old_child:ANode> cannot be null */
4869 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable AAnnotations> */
4870 var_other
= var_old_child
;
4872 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable AAnnotations(AAnnotations)> */
4873 var24
= var18
== var_other
;
4876 RET_LABEL23
:(void)0;
4881 RET_LABEL21
:(void)0;
4886 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
4887 cltype26
= type_nullable__nitc__AAnnotations
.color
;
4888 idtype27
= type_nullable__nitc__AAnnotations
.id
;
4889 if(var_new_child
== NULL
) {
4892 if(cltype26
>= var_new_child
->type
->table_size
) {
4895 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
4898 if (unlikely(!var25
)) {
4899 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4900 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name28
);
4901 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 761);
4905 nitc__parser_prod___AFormaldef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AFormaldef#n_annotations= on <self:AFormaldef>*/
4912 /* method parser_prod#AFormaldef#n_id= for (self: AFormaldef, TClassid) */
4913 void nitc__parser_prod___AFormaldef___n_id_61d(val
* self
, val
* p0
) {
4914 val
* var_node
/* var node: TClassid */;
4916 self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_id
].val
= var_node
; /* _n_id on <self:AFormaldef> */
4918 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
4919 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
4925 /* method parser_prod#AFormaldef#n_type= for (self: AFormaldef, nullable AType) */
4926 void nitc__parser_prod___AFormaldef___n_type_61d(val
* self
, val
* p0
) {
4927 val
* var_node
/* var node: nullable AType */;
4928 short int var
/* : Bool */;
4929 short int var1
/* : Bool */;
4930 val
* var_other
/* var other: nullable Object */;
4931 short int var3
/* : Bool */;
4932 short int var4
/* : Bool */;
4934 self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_type
].val
= var_node
; /* _n_type on <self:AFormaldef> */
4935 if (var_node
== NULL
) {
4936 var
= 0; /* is null */
4938 var
= 1; /* arg is null and recv is not */
4941 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
4942 var_other
= ((val
*)NULL
);
4944 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
4955 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
4956 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
4964 /* method parser_prod#AFormaldef#n_annotations= for (self: AFormaldef, nullable AAnnotations) */
4965 void nitc__parser_prod___AFormaldef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
4966 val
* var_node
/* var node: nullable AAnnotations */;
4967 short int var
/* : Bool */;
4968 short int var1
/* : Bool */;
4969 val
* var_other
/* var other: nullable Object */;
4970 short int var3
/* : Bool */;
4971 short int var4
/* : Bool */;
4973 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFormaldef> */
4974 if (var_node
== NULL
) {
4975 var
= 0; /* is null */
4977 var
= 1; /* arg is null and recv is not */
4980 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
4981 var_other
= ((val
*)NULL
);
4983 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
4994 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
4995 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5003 /* method parser_prod#AFormaldef#visit_all for (self: AFormaldef, Visitor) */
5004 void nitc__parser_prod___AFormaldef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5005 val
* var_v
/* var v: Visitor */;
5006 val
* var
/* : TClassid */;
5007 val
* var1
/* : nullable AType */;
5008 val
* var2
/* : nullable AAnnotations */;
5010 var
= self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
5011 if (unlikely(var
== NULL
)) {
5012 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5013 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 785);
5017 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5019 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
5021 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5023 var2
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
5025 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5029 /* method parser_prod#AAttrPropdef#init_aattrpropdef for (self: AAttrPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations, nullable TKwdo, nullable AExpr, nullable TKwend) */
5030 void nitc__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
, val
* p9
, val
* p10
, val
* p11
) {
5031 val
* var_n_doc
/* var n_doc: nullable ADoc */;
5032 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
5033 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
5034 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
5035 val
* var_n_id2
/* var n_id2: nullable TId */;
5036 val
* var_n_type
/* var n_type: nullable AType */;
5037 val
* var_n_assign
/* var n_assign: nullable TAssign */;
5038 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5039 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5040 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
5041 val
* var_n_block
/* var n_block: nullable AExpr */;
5042 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
5043 short int var
/* : Bool */;
5044 short int var2
/* : Bool */;
5045 val
* var_other
/* var other: nullable Object */;
5046 short int var4
/* : Bool */;
5047 short int var5
/* : Bool */;
5048 short int var7
/* : Bool */;
5049 short int var8
/* : Bool */;
5050 short int var10
/* : Bool */;
5051 short int var11
/* : Bool */;
5052 short int var16
/* : Bool */;
5053 short int var17
/* : Bool */;
5054 short int var19
/* : Bool */;
5055 short int var20
/* : Bool */;
5056 short int var22
/* : Bool */;
5057 short int var23
/* : Bool */;
5058 short int var25
/* : Bool */;
5059 short int var26
/* : Bool */;
5060 short int var28
/* : Bool */;
5061 short int var29
/* : Bool */;
5062 short int var31
/* : Bool */;
5063 short int var32
/* : Bool */;
5064 short int var34
/* : Bool */;
5065 short int var35
/* : Bool */;
5066 short int var37
/* : Bool */;
5067 short int var38
/* : Bool */;
5068 short int var40
/* : Bool */;
5069 short int var41
/* : Bool */;
5070 short int var43
/* : Bool */;
5071 short int var44
/* : Bool */;
5072 short int var46
/* : Bool */;
5073 short int var47
/* : Bool */;
5074 short int var49
/* : Bool */;
5075 short int var50
/* : Bool */;
5076 short int var52
/* : Bool */;
5077 short int var53
/* : Bool */;
5078 short int var55
/* : Bool */;
5079 short int var56
/* : Bool */;
5081 { /* Inline kernel#Object#init (self) on <self:AAttrPropdef> */
5087 var_n_visibility
= p2
;
5093 var_n_annotations
= p8
;
5097 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAttrPropdef> */
5098 if (var_n_doc
== NULL
) {
5099 var
= 0; /* is null */
5101 var
= 1; /* arg is null and recv is not */
5104 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
5105 var_other
= ((val
*)NULL
);
5107 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
5118 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
5119 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
5125 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAttrPropdef> */
5126 if (var_n_kwredef
== NULL
) {
5127 var7
= 0; /* is null */
5129 var7
= 1; /* arg is null and recv is not */
5132 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
5133 var_other
= ((val
*)NULL
);
5135 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
5146 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5147 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
5148 RET_LABEL12
:(void)0;
5153 if (unlikely(var_n_visibility
== NULL
)) {
5154 PRINT_ERROR("Runtime error: %s", "Cast failed");
5155 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 810);
5158 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAttrPropdef> */
5159 if (var_n_visibility
== NULL
) {
5160 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5161 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 811);
5164 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
5165 if (unlikely(var_n_visibility
== NULL
)) {
5166 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5167 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5170 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
5171 RET_LABEL13
:(void)0;
5174 if (unlikely(var_n_kwvar
== NULL
)) {
5175 PRINT_ERROR("Runtime error: %s", "Cast failed");
5176 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 812);
5179 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AAttrPropdef> */
5180 if (var_n_kwvar
== NULL
) {
5181 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5182 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 813);
5185 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar> */
5186 if (unlikely(var_n_kwvar
== NULL
)) {
5187 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5188 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5191 var_n_kwvar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar> */
5192 RET_LABEL14
:(void)0;
5195 if (unlikely(var_n_id2
== NULL
)) {
5196 PRINT_ERROR("Runtime error: %s", "Cast failed");
5197 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 814);
5200 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_id2
].val
= var_n_id2
; /* _n_id2 on <self:AAttrPropdef> */
5201 if (var_n_id2
== NULL
) {
5202 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5203 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 815);
5206 { /* Inline parser_nodes#ANode#parent= (var_n_id2,self) on <var_n_id2:nullable TId> */
5207 if (unlikely(var_n_id2
== NULL
)) {
5208 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5209 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5212 var_n_id2
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id2:nullable TId> */
5213 RET_LABEL15
:(void)0;
5216 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:AAttrPropdef> */
5217 if (var_n_type
== NULL
) {
5218 var16
= 0; /* is null */
5220 var16
= 1; /* arg is null and recv is not */
5223 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
5224 var_other
= ((val
*)NULL
);
5226 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_type
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_type
, var_other
); /* == on <var_n_type:nullable AType(AType)>*/
5231 RET_LABEL18
:(void)0;
5237 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5238 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5239 RET_LABEL21
:(void)0;
5244 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAttrPropdef> */
5245 if (var_n_assign
== NULL
) {
5246 var22
= 0; /* is null */
5248 var22
= 1; /* arg is null and recv is not */
5251 { /* Inline kernel#Object#!= (var_n_assign,((val*)NULL)) on <var_n_assign:nullable TAssign> */
5252 var_other
= ((val
*)NULL
);
5254 var25
= ((short int(*)(val
* self
, val
* p0
))(var_n_assign
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_assign
, var_other
); /* == on <var_n_assign:nullable TAssign(TAssign)>*/
5259 RET_LABEL24
:(void)0;
5265 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign(TAssign)> */
5266 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign(TAssign)> */
5267 RET_LABEL27
:(void)0;
5272 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrPropdef> */
5273 if (var_n_expr
== NULL
) {
5274 var28
= 0; /* is null */
5276 var28
= 1; /* arg is null and recv is not */
5279 { /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on <var_n_expr:nullable AExpr> */
5280 var_other
= ((val
*)NULL
);
5282 var31
= ((short int(*)(val
* self
, val
* p0
))(var_n_expr
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_expr
, var_other
); /* == on <var_n_expr:nullable AExpr(AExpr)>*/
5287 RET_LABEL30
:(void)0;
5293 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
5294 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
5295 RET_LABEL33
:(void)0;
5300 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAttrPropdef> */
5301 if (var_n_annotations
== NULL
) {
5302 var34
= 0; /* is null */
5304 var34
= 1; /* arg is null and recv is not */
5307 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
5308 var_other
= ((val
*)NULL
);
5310 var37
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
5315 RET_LABEL36
:(void)0;
5321 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5322 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5323 RET_LABEL39
:(void)0;
5328 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:AAttrPropdef> */
5329 if (var_n_kwdo
== NULL
) {
5330 var40
= 0; /* is null */
5332 var40
= 1; /* arg is null and recv is not */
5335 { /* Inline kernel#Object#!= (var_n_kwdo,((val*)NULL)) on <var_n_kwdo:nullable TKwdo> */
5336 var_other
= ((val
*)NULL
);
5338 var43
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwdo
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwdo
, var_other
); /* == on <var_n_kwdo:nullable TKwdo(TKwdo)>*/
5343 RET_LABEL42
:(void)0;
5349 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo(TKwdo)> */
5350 var_n_kwdo
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo(TKwdo)> */
5351 RET_LABEL45
:(void)0;
5356 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AAttrPropdef> */
5357 if (var_n_block
== NULL
) {
5358 var46
= 0; /* is null */
5360 var46
= 1; /* arg is null and recv is not */
5363 { /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on <var_n_block:nullable AExpr> */
5364 var_other
= ((val
*)NULL
);
5366 var49
= ((short int(*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_block
, var_other
); /* == on <var_n_block:nullable AExpr(AExpr)>*/
5371 RET_LABEL48
:(void)0;
5377 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
5378 var_n_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
5379 RET_LABEL51
:(void)0;
5384 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AAttrPropdef> */
5385 if (var_n_kwend
== NULL
) {
5386 var52
= 0; /* is null */
5388 var52
= 1; /* arg is null and recv is not */
5391 { /* Inline kernel#Object#!= (var_n_kwend,((val*)NULL)) on <var_n_kwend:nullable TKwend> */
5392 var_other
= ((val
*)NULL
);
5394 var55
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwend
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwend
, var_other
); /* == on <var_n_kwend:nullable TKwend(TKwend)>*/
5399 RET_LABEL54
:(void)0;
5405 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend(TKwend)> */
5406 var_n_kwend
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend(TKwend)> */
5407 RET_LABEL57
:(void)0;
5414 /* method parser_prod#AAttrPropdef#replace_child for (self: AAttrPropdef, ANode, nullable ANode) */
5415 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5416 val
* var_old_child
/* var old_child: ANode */;
5417 val
* var_new_child
/* var new_child: nullable ANode */;
5418 val
* var
/* : nullable ADoc */;
5419 short int var1
/* : Bool */;
5420 short int var2
/* : Bool */;
5421 val
* var_other
/* var other: nullable Object */;
5422 short int var4
/* : Bool */;
5423 short int var6
/* : Bool */;
5424 short int var7
/* : Bool */;
5427 const char* var_class_name
;
5428 val
* var8
/* : nullable TKwredef */;
5429 short int var9
/* : Bool */;
5430 short int var10
/* : Bool */;
5431 short int var12
/* : Bool */;
5432 short int var14
/* : Bool */;
5433 short int var15
/* : Bool */;
5436 const char* var_class_name18
;
5437 val
* var19
/* : nullable AVisibility */;
5438 short int var20
/* : Bool */;
5439 short int var21
/* : Bool */;
5440 short int var23
/* : Bool */;
5441 short int var25
/* : Bool */;
5442 short int var26
/* : Bool */;
5445 const char* var_class_name29
;
5446 val
* var30
/* : TKwvar */;
5447 short int var31
/* : Bool */;
5448 short int var33
/* : Bool */;
5449 short int var35
/* : Bool */;
5450 short int var36
/* : Bool */;
5453 const char* var_class_name39
;
5454 val
* var40
/* : TId */;
5455 short int var41
/* : Bool */;
5456 short int var43
/* : Bool */;
5457 short int var45
/* : Bool */;
5458 short int var46
/* : Bool */;
5461 const char* var_class_name49
;
5462 val
* var50
/* : nullable AType */;
5463 short int var51
/* : Bool */;
5464 short int var52
/* : Bool */;
5465 short int var54
/* : Bool */;
5466 short int var56
/* : Bool */;
5467 short int var57
/* : Bool */;
5470 const char* var_class_name60
;
5471 val
* var61
/* : nullable TAssign */;
5472 short int var62
/* : Bool */;
5473 short int var63
/* : Bool */;
5474 short int var65
/* : Bool */;
5475 short int var67
/* : Bool */;
5476 short int var68
/* : Bool */;
5479 const char* var_class_name71
;
5480 val
* var72
/* : nullable AExpr */;
5481 short int var73
/* : Bool */;
5482 short int var74
/* : Bool */;
5483 short int var76
/* : Bool */;
5484 short int var78
/* : Bool */;
5485 short int var79
/* : Bool */;
5488 const char* var_class_name82
;
5489 val
* var83
/* : nullable AAnnotations */;
5490 short int var84
/* : Bool */;
5491 short int var85
/* : Bool */;
5492 short int var87
/* : Bool */;
5493 short int var89
/* : Bool */;
5494 short int var90
/* : Bool */;
5497 const char* var_class_name93
;
5498 val
* var94
/* : nullable TKwdo */;
5499 short int var95
/* : Bool */;
5500 short int var96
/* : Bool */;
5501 short int var98
/* : Bool */;
5502 short int var100
/* : Bool */;
5503 short int var101
/* : Bool */;
5506 const char* var_class_name104
;
5507 val
* var105
/* : nullable AExpr */;
5508 short int var106
/* : Bool */;
5509 short int var107
/* : Bool */;
5510 short int var109
/* : Bool */;
5511 short int var111
/* : Bool */;
5512 short int var112
/* : Bool */;
5515 const char* var_class_name115
;
5516 val
* var116
/* : nullable TKwend */;
5517 short int var117
/* : Bool */;
5518 short int var118
/* : Bool */;
5519 short int var120
/* : Bool */;
5520 short int var122
/* : Bool */;
5521 short int var123
/* : Bool */;
5524 const char* var_class_name126
;
5527 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5529 var1
= 0; /* <var_old_child:ANode> cannot be null */
5531 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
5532 var_other
= var_old_child
;
5534 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
5535 var6
= var
== var_other
;
5548 /* <var_new_child:nullable ANode> isa nullable ADoc */
5549 cltype
= type_nullable__nitc__ADoc
.color
;
5550 idtype
= type_nullable__nitc__ADoc
.id
;
5551 if(var_new_child
== NULL
) {
5554 if(cltype
>= var_new_child
->type
->table_size
) {
5557 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5560 if (unlikely(!var7
)) {
5561 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5562 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
5563 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 835);
5567 nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_doc= on <self:AAttrPropdef>*/
5572 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
5574 var9
= 0; /* <var_old_child:ANode> cannot be null */
5576 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
5577 var_other
= var_old_child
;
5579 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
5580 var14
= var8
== var_other
;
5583 RET_LABEL13
:(void)0;
5588 RET_LABEL11
:(void)0;
5593 /* <var_new_child:nullable ANode> isa nullable TKwredef */
5594 cltype16
= type_nullable__nitc__TKwredef
.color
;
5595 idtype17
= type_nullable__nitc__TKwredef
.id
;
5596 if(var_new_child
== NULL
) {
5599 if(cltype16
>= var_new_child
->type
->table_size
) {
5602 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
5605 if (unlikely(!var15
)) {
5606 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5607 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
5608 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 839);
5612 nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwredef= on <self:AAttrPropdef>*/
5617 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
5618 if (var19
== NULL
) {
5619 var20
= 0; /* <var_old_child:ANode> cannot be null */
5621 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
5622 var_other
= var_old_child
;
5624 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
5625 var25
= var19
== var_other
;
5628 RET_LABEL24
:(void)0;
5633 RET_LABEL22
:(void)0;
5638 /* <var_new_child:nullable ANode> isa AVisibility */
5639 cltype27
= type_nitc__AVisibility
.color
;
5640 idtype28
= type_nitc__AVisibility
.id
;
5641 if(var_new_child
== NULL
) {
5644 if(cltype27
>= var_new_child
->type
->table_size
) {
5647 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5650 if (unlikely(!var26
)) {
5651 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5652 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
5653 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 843);
5657 nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_visibility= on <self:AAttrPropdef>*/
5662 var30
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
5663 if (unlikely(var30
== NULL
)) {
5664 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
5665 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 846);
5669 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwvar> */
5670 var_other
= var_old_child
;
5672 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwvar> */
5673 var35
= var30
== var_other
;
5676 RET_LABEL34
:(void)0;
5681 RET_LABEL32
:(void)0;
5685 /* <var_new_child:nullable ANode> isa TKwvar */
5686 cltype37
= type_nitc__TKwvar
.color
;
5687 idtype38
= type_nitc__TKwvar
.id
;
5688 if(var_new_child
== NULL
) {
5691 if(cltype37
>= var_new_child
->type
->table_size
) {
5694 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
5697 if (unlikely(!var36
)) {
5698 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5699 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwvar", var_class_name39
);
5700 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 847);
5704 nitc__parser_prod___AAttrPropdef___n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwvar= on <self:AAttrPropdef>*/
5709 var40
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
5710 if (unlikely(var40
== NULL
)) {
5711 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
5712 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 850);
5716 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:TId> */
5717 var_other
= var_old_child
;
5719 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:TId> */
5720 var45
= var40
== var_other
;
5723 RET_LABEL44
:(void)0;
5728 RET_LABEL42
:(void)0;
5732 /* <var_new_child:nullable ANode> isa TId */
5733 cltype47
= type_nitc__TId
.color
;
5734 idtype48
= type_nitc__TId
.id
;
5735 if(var_new_child
== NULL
) {
5738 if(cltype47
>= var_new_child
->type
->table_size
) {
5741 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
5744 if (unlikely(!var46
)) {
5745 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5746 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name49
);
5747 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 851);
5751 nitc__parser_prod___AAttrPropdef___n_id2_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_id2= on <self:AAttrPropdef>*/
5756 var50
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
5757 if (var50
== NULL
) {
5758 var51
= 0; /* <var_old_child:ANode> cannot be null */
5760 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AType> */
5761 var_other
= var_old_child
;
5763 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AType(AType)> */
5764 var56
= var50
== var_other
;
5767 RET_LABEL55
:(void)0;
5772 RET_LABEL53
:(void)0;
5777 /* <var_new_child:nullable ANode> isa nullable AType */
5778 cltype58
= type_nullable__nitc__AType
.color
;
5779 idtype59
= type_nullable__nitc__AType
.id
;
5780 if(var_new_child
== NULL
) {
5783 if(cltype58
>= var_new_child
->type
->table_size
) {
5786 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
5789 if (unlikely(!var57
)) {
5790 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5791 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name60
);
5792 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 855);
5796 nitc__parser_prod___AAttrPropdef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_type= on <self:AAttrPropdef>*/
5801 var61
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_assign
].val
; /* _n_assign on <self:AAttrPropdef> */
5802 if (var61
== NULL
) {
5803 var62
= 0; /* <var_old_child:ANode> cannot be null */
5805 { /* Inline kernel#Object#== (var61,var_old_child) on <var61:nullable TAssign> */
5806 var_other
= var_old_child
;
5808 { /* Inline kernel#Object#is_same_instance (var61,var_other) on <var61:nullable TAssign(TAssign)> */
5809 var67
= var61
== var_other
;
5812 RET_LABEL66
:(void)0;
5817 RET_LABEL64
:(void)0;
5822 /* <var_new_child:nullable ANode> isa nullable TAssign */
5823 cltype69
= type_nullable__nitc__TAssign
.color
;
5824 idtype70
= type_nullable__nitc__TAssign
.id
;
5825 if(var_new_child
== NULL
) {
5828 if(cltype69
>= var_new_child
->type
->table_size
) {
5831 var68
= var_new_child
->type
->type_table
[cltype69
] == idtype70
;
5834 if (unlikely(!var68
)) {
5835 var_class_name71
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5836 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name71
);
5837 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 859);
5841 nitc__parser_prod___AAttrPropdef___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_assign= on <self:AAttrPropdef>*/
5846 var72
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
5847 if (var72
== NULL
) {
5848 var73
= 0; /* <var_old_child:ANode> cannot be null */
5850 { /* Inline kernel#Object#== (var72,var_old_child) on <var72:nullable AExpr> */
5851 var_other
= var_old_child
;
5853 { /* Inline kernel#Object#is_same_instance (var72,var_other) on <var72:nullable AExpr(AExpr)> */
5854 var78
= var72
== var_other
;
5857 RET_LABEL77
:(void)0;
5862 RET_LABEL75
:(void)0;
5867 /* <var_new_child:nullable ANode> isa nullable AExpr */
5868 cltype80
= type_nullable__nitc__AExpr
.color
;
5869 idtype81
= type_nullable__nitc__AExpr
.id
;
5870 if(var_new_child
== NULL
) {
5873 if(cltype80
>= var_new_child
->type
->table_size
) {
5876 var79
= var_new_child
->type
->type_table
[cltype80
] == idtype81
;
5879 if (unlikely(!var79
)) {
5880 var_class_name82
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5881 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name82
);
5882 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 863);
5886 nitc__parser_prod___AAttrPropdef___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_expr= on <self:AAttrPropdef>*/
5891 var83
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
5892 if (var83
== NULL
) {
5893 var84
= 0; /* <var_old_child:ANode> cannot be null */
5895 { /* Inline kernel#Object#== (var83,var_old_child) on <var83:nullable AAnnotations> */
5896 var_other
= var_old_child
;
5898 { /* Inline kernel#Object#is_same_instance (var83,var_other) on <var83:nullable AAnnotations(AAnnotations)> */
5899 var89
= var83
== var_other
;
5902 RET_LABEL88
:(void)0;
5907 RET_LABEL86
:(void)0;
5912 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5913 cltype91
= type_nullable__nitc__AAnnotations
.color
;
5914 idtype92
= type_nullable__nitc__AAnnotations
.id
;
5915 if(var_new_child
== NULL
) {
5918 if(cltype91
>= var_new_child
->type
->table_size
) {
5921 var90
= var_new_child
->type
->type_table
[cltype91
] == idtype92
;
5924 if (unlikely(!var90
)) {
5925 var_class_name93
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5926 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name93
);
5927 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 867);
5931 nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_annotations= on <self:AAttrPropdef>*/
5936 var94
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwdo
].val
; /* _n_kwdo on <self:AAttrPropdef> */
5937 if (var94
== NULL
) {
5938 var95
= 0; /* <var_old_child:ANode> cannot be null */
5940 { /* Inline kernel#Object#== (var94,var_old_child) on <var94:nullable TKwdo> */
5941 var_other
= var_old_child
;
5943 { /* Inline kernel#Object#is_same_instance (var94,var_other) on <var94:nullable TKwdo(TKwdo)> */
5944 var100
= var94
== var_other
;
5947 RET_LABEL99
:(void)0;
5952 RET_LABEL97
:(void)0;
5957 /* <var_new_child:nullable ANode> isa nullable TKwdo */
5958 cltype102
= type_nullable__nitc__TKwdo
.color
;
5959 idtype103
= type_nullable__nitc__TKwdo
.id
;
5960 if(var_new_child
== NULL
) {
5963 if(cltype102
>= var_new_child
->type
->table_size
) {
5966 var101
= var_new_child
->type
->type_table
[cltype102
] == idtype103
;
5969 if (unlikely(!var101
)) {
5970 var_class_name104
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5971 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwdo", var_class_name104
);
5972 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 871);
5976 nitc__parser_prod___AAttrPropdef___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwdo= on <self:AAttrPropdef>*/
5981 var105
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
5982 if (var105
== NULL
) {
5983 var106
= 0; /* <var_old_child:ANode> cannot be null */
5985 { /* Inline kernel#Object#== (var105,var_old_child) on <var105:nullable AExpr> */
5986 var_other
= var_old_child
;
5988 { /* Inline kernel#Object#is_same_instance (var105,var_other) on <var105:nullable AExpr(AExpr)> */
5989 var111
= var105
== var_other
;
5992 RET_LABEL110
:(void)0;
5997 RET_LABEL108
:(void)0;
6002 /* <var_new_child:nullable ANode> isa nullable AExpr */
6003 cltype113
= type_nullable__nitc__AExpr
.color
;
6004 idtype114
= type_nullable__nitc__AExpr
.id
;
6005 if(var_new_child
== NULL
) {
6008 if(cltype113
>= var_new_child
->type
->table_size
) {
6011 var112
= var_new_child
->type
->type_table
[cltype113
] == idtype114
;
6014 if (unlikely(!var112
)) {
6015 var_class_name115
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6016 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name115
);
6017 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 875);
6021 nitc__parser_prod___AAttrPropdef___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_block= on <self:AAttrPropdef>*/
6026 var116
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwend
].val
; /* _n_kwend on <self:AAttrPropdef> */
6027 if (var116
== NULL
) {
6028 var117
= 0; /* <var_old_child:ANode> cannot be null */
6030 { /* Inline kernel#Object#== (var116,var_old_child) on <var116:nullable TKwend> */
6031 var_other
= var_old_child
;
6033 { /* Inline kernel#Object#is_same_instance (var116,var_other) on <var116:nullable TKwend(TKwend)> */
6034 var122
= var116
== var_other
;
6037 RET_LABEL121
:(void)0;
6042 RET_LABEL119
:(void)0;
6047 /* <var_new_child:nullable ANode> isa nullable TKwend */
6048 cltype124
= type_nullable__nitc__TKwend
.color
;
6049 idtype125
= type_nullable__nitc__TKwend
.id
;
6050 if(var_new_child
== NULL
) {
6053 if(cltype124
>= var_new_child
->type
->table_size
) {
6056 var123
= var_new_child
->type
->type_table
[cltype124
] == idtype125
;
6059 if (unlikely(!var123
)) {
6060 var_class_name126
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6061 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name126
);
6062 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 879);
6066 nitc__parser_prod___AAttrPropdef___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#AAttrPropdef#n_kwend= on <self:AAttrPropdef>*/
6073 /* method parser_prod#AAttrPropdef#n_doc= for (self: AAttrPropdef, nullable ADoc) */
6074 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
6075 val
* var_node
/* var node: nullable ADoc */;
6076 short int var
/* : Bool */;
6077 short int var1
/* : Bool */;
6078 val
* var_other
/* var other: nullable Object */;
6079 short int var3
/* : Bool */;
6080 short int var4
/* : Bool */;
6082 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AAttrPropdef> */
6083 if (var_node
== NULL
) {
6084 var
= 0; /* is null */
6086 var
= 1; /* arg is null and recv is not */
6089 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
6090 var_other
= ((val
*)NULL
);
6092 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
6103 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
6104 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
6112 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: AAttrPropdef, nullable TKwredef) */
6113 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
6114 val
* var_node
/* var node: nullable TKwredef */;
6115 short int var
/* : Bool */;
6116 short int var1
/* : Bool */;
6117 val
* var_other
/* var other: nullable Object */;
6118 short int var3
/* : Bool */;
6119 short int var4
/* : Bool */;
6121 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAttrPropdef> */
6122 if (var_node
== NULL
) {
6123 var
= 0; /* is null */
6125 var
= 1; /* arg is null and recv is not */
6128 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
6129 var_other
= ((val
*)NULL
);
6131 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
6142 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
6143 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
6151 /* method parser_prod#AAttrPropdef#n_visibility= for (self: AAttrPropdef, nullable AVisibility) */
6152 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
6153 val
* var_node
/* var node: nullable AVisibility */;
6155 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAttrPropdef> */
6156 if (var_node
== NULL
) {
6157 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6158 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 897);
6161 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
6162 if (unlikely(var_node
== NULL
)) {
6163 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6164 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6167 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
6173 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: AAttrPropdef, TKwvar) */
6174 void nitc__parser_prod___AAttrPropdef___n_kwvar_61d(val
* self
, val
* p0
) {
6175 val
* var_node
/* var node: TKwvar */;
6177 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AAttrPropdef> */
6179 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwvar> */
6180 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwvar> */
6186 /* method parser_prod#AAttrPropdef#n_id2= for (self: AAttrPropdef, TId) */
6187 void nitc__parser_prod___AAttrPropdef___n_id2_61d(val
* self
, val
* p0
) {
6188 val
* var_node
/* var node: TId */;
6190 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_id2
].val
= var_node
; /* _n_id2 on <self:AAttrPropdef> */
6192 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
6193 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
6199 /* method parser_prod#AAttrPropdef#n_type= for (self: AAttrPropdef, nullable AType) */
6200 void nitc__parser_prod___AAttrPropdef___n_type_61d(val
* self
, val
* p0
) {
6201 val
* var_node
/* var node: nullable AType */;
6202 short int var
/* : Bool */;
6203 short int var1
/* : Bool */;
6204 val
* var_other
/* var other: nullable Object */;
6205 short int var3
/* : Bool */;
6206 short int var4
/* : Bool */;
6208 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_type
].val
= var_node
; /* _n_type on <self:AAttrPropdef> */
6209 if (var_node
== NULL
) {
6210 var
= 0; /* is null */
6212 var
= 1; /* arg is null and recv is not */
6215 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
6216 var_other
= ((val
*)NULL
);
6218 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AType(AType)>*/
6229 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
6230 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
6238 /* method parser_prod#AAttrPropdef#n_assign= for (self: AAttrPropdef, nullable TAssign) */
6239 void nitc__parser_prod___AAttrPropdef___n_assign_61d(val
* self
, val
* p0
) {
6240 val
* var_node
/* var node: nullable TAssign */;
6241 short int var
/* : Bool */;
6242 short int var1
/* : Bool */;
6243 val
* var_other
/* var other: nullable Object */;
6244 short int var3
/* : Bool */;
6245 short int var4
/* : Bool */;
6247 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_assign
].val
= var_node
; /* _n_assign on <self:AAttrPropdef> */
6248 if (var_node
== NULL
) {
6249 var
= 0; /* is null */
6251 var
= 1; /* arg is null and recv is not */
6254 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TAssign> */
6255 var_other
= ((val
*)NULL
);
6257 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TAssign(TAssign)>*/
6268 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAssign(TAssign)> */
6269 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAssign(TAssign)> */
6277 /* method parser_prod#AAttrPropdef#n_expr= for (self: AAttrPropdef, nullable AExpr) */
6278 void nitc__parser_prod___AAttrPropdef___n_expr_61d(val
* self
, val
* p0
) {
6279 val
* var_node
/* var node: nullable AExpr */;
6280 short int var
/* : Bool */;
6281 short int var1
/* : Bool */;
6282 val
* var_other
/* var other: nullable Object */;
6283 short int var3
/* : Bool */;
6284 short int var4
/* : Bool */;
6286 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrPropdef> */
6287 if (var_node
== NULL
) {
6288 var
= 0; /* is null */
6290 var
= 1; /* arg is null and recv is not */
6293 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
6294 var_other
= ((val
*)NULL
);
6296 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
6307 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6308 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6316 /* method parser_prod#AAttrPropdef#n_annotations= for (self: AAttrPropdef, nullable AAnnotations) */
6317 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
6318 val
* var_node
/* var node: nullable AAnnotations */;
6319 short int var
/* : Bool */;
6320 short int var1
/* : Bool */;
6321 val
* var_other
/* var other: nullable Object */;
6322 short int var3
/* : Bool */;
6323 short int var4
/* : Bool */;
6325 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAttrPropdef> */
6326 if (var_node
== NULL
) {
6327 var
= 0; /* is null */
6329 var
= 1; /* arg is null and recv is not */
6332 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
6333 var_other
= ((val
*)NULL
);
6335 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
6346 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6347 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6355 /* method parser_prod#AAttrPropdef#n_kwdo= for (self: AAttrPropdef, nullable TKwdo) */
6356 void nitc__parser_prod___AAttrPropdef___n_kwdo_61d(val
* self
, val
* p0
) {
6357 val
* var_node
/* var node: nullable TKwdo */;
6358 short int var
/* : Bool */;
6359 short int var1
/* : Bool */;
6360 val
* var_other
/* var other: nullable Object */;
6361 short int var3
/* : Bool */;
6362 short int var4
/* : Bool */;
6364 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:AAttrPropdef> */
6365 if (var_node
== NULL
) {
6366 var
= 0; /* is null */
6368 var
= 1; /* arg is null and recv is not */
6371 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwdo> */
6372 var_other
= ((val
*)NULL
);
6374 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwdo(TKwdo)>*/
6385 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwdo(TKwdo)> */
6386 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwdo(TKwdo)> */
6394 /* method parser_prod#AAttrPropdef#n_block= for (self: AAttrPropdef, nullable AExpr) */
6395 void nitc__parser_prod___AAttrPropdef___n_block_61d(val
* self
, val
* p0
) {
6396 val
* var_node
/* var node: nullable AExpr */;
6397 short int var
/* : Bool */;
6398 short int var1
/* : Bool */;
6399 val
* var_other
/* var other: nullable Object */;
6400 short int var3
/* : Bool */;
6401 short int var4
/* : Bool */;
6403 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_block
].val
= var_node
; /* _n_block on <self:AAttrPropdef> */
6404 if (var_node
== NULL
) {
6405 var
= 0; /* is null */
6407 var
= 1; /* arg is null and recv is not */
6410 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
6411 var_other
= ((val
*)NULL
);
6413 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
6424 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6425 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6433 /* method parser_prod#AAttrPropdef#n_kwend= for (self: AAttrPropdef, nullable TKwend) */
6434 void nitc__parser_prod___AAttrPropdef___n_kwend_61d(val
* self
, val
* p0
) {
6435 val
* var_node
/* var node: nullable TKwend */;
6436 short int var
/* : Bool */;
6437 short int var1
/* : Bool */;
6438 val
* var_other
/* var other: nullable Object */;
6439 short int var3
/* : Bool */;
6440 short int var4
/* : Bool */;
6442 self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AAttrPropdef> */
6443 if (var_node
== NULL
) {
6444 var
= 0; /* is null */
6446 var
= 1; /* arg is null and recv is not */
6449 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwend> */
6450 var_other
= ((val
*)NULL
);
6452 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwend(TKwend)>*/
6463 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwend(TKwend)> */
6464 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwend(TKwend)> */
6472 /* method parser_prod#AAttrPropdef#visit_all for (self: AAttrPropdef, Visitor) */
6473 void nitc__parser_prod___AAttrPropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6474 val
* var_v
/* var v: Visitor */;
6475 val
* var
/* : nullable ADoc */;
6476 val
* var1
/* : nullable TKwredef */;
6477 val
* var2
/* : nullable AVisibility */;
6478 val
* var3
/* : TKwvar */;
6479 val
* var4
/* : TId */;
6480 val
* var5
/* : nullable AType */;
6481 val
* var6
/* : nullable TAssign */;
6482 val
* var7
/* : nullable AExpr */;
6483 val
* var8
/* : nullable AAnnotations */;
6484 val
* var9
/* : nullable TKwdo */;
6485 val
* var10
/* : nullable AExpr */;
6486 val
* var11
/* : nullable TKwend */;
6488 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
6490 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6492 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6494 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6496 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
6498 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6500 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
6501 if (unlikely(var3
== NULL
)) {
6502 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwvar");
6503 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 951);
6507 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6509 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6510 if (unlikely(var4
== NULL
)) {
6511 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id2");
6512 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 952);
6516 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6518 var5
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6520 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6522 var6
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_assign
].val
; /* _n_assign on <self:AAttrPropdef> */
6524 nitc___nitc__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6526 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6528 nitc___nitc__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6530 var8
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6532 nitc___nitc__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6534 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwdo
].val
; /* _n_kwdo on <self:AAttrPropdef> */
6536 nitc___nitc__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6538 var10
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_block
].val
; /* _n_block on <self:AAttrPropdef> */
6540 nitc___nitc__Visitor___enter_visit(var_v
, var10
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6542 var11
= self
->attrs
[COLOR_nitc__parser_nodes__AAttrPropdef___n_kwend
].val
; /* _n_kwend on <self:AAttrPropdef> */
6544 nitc___nitc__Visitor___enter_visit(var_v
, var11
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6548 /* method parser_prod#AMainMethPropdef#init_amainmethpropdef for (self: AMainMethPropdef, nullable TKwredef, nullable AExpr) */
6549 void nitc__parser_prod___AMainMethPropdef___init_amainmethpropdef(val
* self
, val
* p0
, val
* p1
) {
6550 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6551 val
* var_n_block
/* var n_block: nullable AExpr */;
6552 short int var
/* : Bool */;
6553 short int var2
/* : Bool */;
6554 val
* var_other
/* var other: nullable Object */;
6555 short int var4
/* : Bool */;
6556 short int var5
/* : Bool */;
6557 short int var7
/* : Bool */;
6558 short int var8
/* : Bool */;
6559 short int var10
/* : Bool */;
6560 short int var11
/* : Bool */;
6562 { /* Inline kernel#Object#init (self) on <self:AMainMethPropdef> */
6568 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMainMethPropdef> */
6569 if (var_n_kwredef
== NULL
) {
6570 var
= 0; /* is null */
6572 var
= 1; /* arg is null and recv is not */
6575 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
6576 var_other
= ((val
*)NULL
);
6578 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
6589 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6590 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6596 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMainMethPropdef> */
6597 if (var_n_block
== NULL
) {
6598 var7
= 0; /* is null */
6600 var7
= 1; /* arg is null and recv is not */
6603 { /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on <var_n_block:nullable AExpr> */
6604 var_other
= ((val
*)NULL
);
6606 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_block
, var_other
); /* == on <var_n_block:nullable AExpr(AExpr)>*/
6617 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
6618 var_n_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
6619 RET_LABEL12
:(void)0;
6626 /* method parser_prod#AMainMethPropdef#replace_child for (self: AMainMethPropdef, ANode, nullable ANode) */
6627 void nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6628 val
* var_old_child
/* var old_child: ANode */;
6629 val
* var_new_child
/* var new_child: nullable ANode */;
6630 val
* var
/* : nullable TKwredef */;
6631 short int var1
/* : Bool */;
6632 short int var2
/* : Bool */;
6633 val
* var_other
/* var other: nullable Object */;
6634 short int var4
/* : Bool */;
6635 short int var6
/* : Bool */;
6636 short int var7
/* : Bool */;
6639 const char* var_class_name
;
6640 val
* var8
/* : nullable AExpr */;
6641 short int var9
/* : Bool */;
6642 short int var10
/* : Bool */;
6643 short int var12
/* : Bool */;
6644 short int var14
/* : Bool */;
6645 short int var15
/* : Bool */;
6648 const char* var_class_name18
;
6651 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
6653 var1
= 0; /* <var_old_child:ANode> cannot be null */
6655 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwredef> */
6656 var_other
= var_old_child
;
6658 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwredef(TKwredef)> */
6659 var6
= var
== var_other
;
6672 /* <var_new_child:nullable ANode> isa nullable TKwredef */
6673 cltype
= type_nullable__nitc__TKwredef
.color
;
6674 idtype
= type_nullable__nitc__TKwredef
.id
;
6675 if(var_new_child
== NULL
) {
6678 if(cltype
>= var_new_child
->type
->table_size
) {
6681 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6684 if (unlikely(!var7
)) {
6685 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6686 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name
);
6687 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 977);
6691 nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_kwredef= on <self:AMainMethPropdef>*/
6696 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
6698 var9
= 0; /* <var_old_child:ANode> cannot be null */
6700 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
6701 var_other
= var_old_child
;
6703 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
6704 var14
= var8
== var_other
;
6707 RET_LABEL13
:(void)0;
6712 RET_LABEL11
:(void)0;
6717 /* <var_new_child:nullable ANode> isa nullable AExpr */
6718 cltype16
= type_nullable__nitc__AExpr
.color
;
6719 idtype17
= type_nullable__nitc__AExpr
.id
;
6720 if(var_new_child
== NULL
) {
6723 if(cltype16
>= var_new_child
->type
->table_size
) {
6726 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
6729 if (unlikely(!var15
)) {
6730 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6731 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
6732 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 981);
6736 nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__AMethPropdef__n_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMainMethPropdef#n_block= on <self:AMainMethPropdef>*/
6743 /* method parser_prod#AMainMethPropdef#n_kwredef= for (self: AMainMethPropdef, nullable TKwredef) */
6744 void nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
6745 val
* var_node
/* var node: nullable TKwredef */;
6746 short int var
/* : Bool */;
6747 short int var1
/* : Bool */;
6748 val
* var_other
/* var other: nullable Object */;
6749 short int var3
/* : Bool */;
6750 short int var4
/* : Bool */;
6752 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMainMethPropdef> */
6753 if (var_node
== NULL
) {
6754 var
= 0; /* is null */
6756 var
= 1; /* arg is null and recv is not */
6759 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
6760 var_other
= ((val
*)NULL
);
6762 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
6773 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
6774 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
6782 /* method parser_prod#AMainMethPropdef#n_block= for (self: AMainMethPropdef, nullable AExpr) */
6783 void nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__AMethPropdef__n_block_61d(val
* self
, val
* p0
) {
6784 val
* var_node
/* var node: nullable AExpr */;
6785 short int var
/* : Bool */;
6786 short int var1
/* : Bool */;
6787 val
* var_other
/* var other: nullable Object */;
6788 short int var3
/* : Bool */;
6789 short int var4
/* : Bool */;
6791 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMainMethPropdef> */
6792 if (var_node
== NULL
) {
6793 var
= 0; /* is null */
6795 var
= 1; /* arg is null and recv is not */
6798 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
6799 var_other
= ((val
*)NULL
);
6801 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
6812 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
6813 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
6821 /* method parser_prod#AMainMethPropdef#visit_all for (self: AMainMethPropdef, Visitor) */
6822 void nitc__parser_prod___AMainMethPropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6823 val
* var_v
/* var v: Visitor */;
6824 val
* var
/* : nullable TKwredef */;
6825 val
* var1
/* : nullable AExpr */;
6827 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMainMethPropdef> */
6829 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6831 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMainMethPropdef> */
6833 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6837 /* method parser_prod#ATypePropdef#init_atypepropdef for (self: ATypePropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwtype, nullable AQclassid, nullable AType, nullable AAnnotations) */
6838 void nitc__parser_prod___ATypePropdef___init_atypepropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
6839 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6840 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6841 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6842 val
* var_n_kwtype
/* var n_kwtype: nullable TKwtype */;
6843 val
* var_n_qid
/* var n_qid: nullable AQclassid */;
6844 val
* var_n_type
/* var n_type: nullable AType */;
6845 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6846 short int var
/* : Bool */;
6847 short int var2
/* : Bool */;
6848 val
* var_other
/* var other: nullable Object */;
6849 short int var4
/* : Bool */;
6850 short int var5
/* : Bool */;
6851 short int var7
/* : Bool */;
6852 short int var8
/* : Bool */;
6853 short int var10
/* : Bool */;
6854 short int var11
/* : Bool */;
6855 short int var17
/* : Bool */;
6856 short int var18
/* : Bool */;
6857 short int var20
/* : Bool */;
6858 short int var21
/* : Bool */;
6860 { /* Inline kernel#Object#init (self) on <self:ATypePropdef> */
6866 var_n_visibility
= p2
;
6870 var_n_annotations
= p6
;
6871 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ATypePropdef> */
6872 if (var_n_doc
== NULL
) {
6873 var
= 0; /* is null */
6875 var
= 1; /* arg is null and recv is not */
6878 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
6879 var_other
= ((val
*)NULL
);
6881 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
6892 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
6893 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
6899 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ATypePropdef> */
6900 if (var_n_kwredef
== NULL
) {
6901 var7
= 0; /* is null */
6903 var7
= 1; /* arg is null and recv is not */
6906 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
6907 var_other
= ((val
*)NULL
);
6909 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
6920 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6921 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
6922 RET_LABEL12
:(void)0;
6927 if (unlikely(var_n_visibility
== NULL
)) {
6928 PRINT_ERROR("Runtime error: %s", "Cast failed");
6929 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1019);
6932 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ATypePropdef> */
6933 if (var_n_visibility
== NULL
) {
6934 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6935 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1020);
6938 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
6939 if (unlikely(var_n_visibility
== NULL
)) {
6940 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6941 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6944 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
6945 RET_LABEL13
:(void)0;
6948 if (unlikely(var_n_kwtype
== NULL
)) {
6949 PRINT_ERROR("Runtime error: %s", "Cast failed");
6950 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1021);
6953 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_kwtype
].val
= var_n_kwtype
; /* _n_kwtype on <self:ATypePropdef> */
6954 if (var_n_kwtype
== NULL
) {
6955 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6956 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1022);
6959 { /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on <var_n_kwtype:nullable TKwtype> */
6960 if (unlikely(var_n_kwtype
== NULL
)) {
6961 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6965 var_n_kwtype
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwtype:nullable TKwtype> */
6966 RET_LABEL14
:(void)0;
6969 if (unlikely(var_n_qid
== NULL
)) {
6970 PRINT_ERROR("Runtime error: %s", "Cast failed");
6971 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1023);
6974 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_qid
].val
= var_n_qid
; /* _n_qid on <self:ATypePropdef> */
6975 if (var_n_qid
== NULL
) {
6976 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6977 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1024);
6980 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQclassid> */
6981 if (unlikely(var_n_qid
== NULL
)) {
6982 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6983 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6986 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQclassid> */
6987 RET_LABEL15
:(void)0;
6990 if (unlikely(var_n_type
== NULL
)) {
6991 PRINT_ERROR("Runtime error: %s", "Cast failed");
6992 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1025);
6995 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_type
].val
= var_n_type
; /* _n_type on <self:ATypePropdef> */
6996 if (var_n_type
== NULL
) {
6997 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6998 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1026);
7001 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
7002 if (unlikely(var_n_type
== NULL
)) {
7003 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7004 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7007 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
7008 RET_LABEL16
:(void)0;
7011 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ATypePropdef> */
7012 if (var_n_annotations
== NULL
) {
7013 var17
= 0; /* is null */
7015 var17
= 1; /* arg is null and recv is not */
7018 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
7019 var_other
= ((val
*)NULL
);
7021 var20
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
7026 RET_LABEL19
:(void)0;
7032 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7033 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7034 RET_LABEL22
:(void)0;
7041 /* method parser_prod#ATypePropdef#replace_child for (self: ATypePropdef, ANode, nullable ANode) */
7042 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7043 val
* var_old_child
/* var old_child: ANode */;
7044 val
* var_new_child
/* var new_child: nullable ANode */;
7045 val
* var
/* : nullable ADoc */;
7046 short int var1
/* : Bool */;
7047 short int var2
/* : Bool */;
7048 val
* var_other
/* var other: nullable Object */;
7049 short int var4
/* : Bool */;
7050 short int var6
/* : Bool */;
7051 short int var7
/* : Bool */;
7054 const char* var_class_name
;
7055 val
* var8
/* : nullable TKwredef */;
7056 short int var9
/* : Bool */;
7057 short int var10
/* : Bool */;
7058 short int var12
/* : Bool */;
7059 short int var14
/* : Bool */;
7060 short int var15
/* : Bool */;
7063 const char* var_class_name18
;
7064 val
* var19
/* : nullable AVisibility */;
7065 short int var20
/* : Bool */;
7066 short int var21
/* : Bool */;
7067 short int var23
/* : Bool */;
7068 short int var25
/* : Bool */;
7069 short int var26
/* : Bool */;
7072 const char* var_class_name29
;
7073 val
* var30
/* : TKwtype */;
7074 short int var31
/* : Bool */;
7075 short int var33
/* : Bool */;
7076 short int var35
/* : Bool */;
7077 short int var36
/* : Bool */;
7080 const char* var_class_name39
;
7081 val
* var40
/* : AQclassid */;
7082 short int var41
/* : Bool */;
7083 short int var43
/* : Bool */;
7084 short int var45
/* : Bool */;
7085 short int var46
/* : Bool */;
7088 const char* var_class_name49
;
7089 val
* var50
/* : AType */;
7090 short int var51
/* : Bool */;
7091 short int var53
/* : Bool */;
7092 short int var55
/* : Bool */;
7093 short int var56
/* : Bool */;
7096 const char* var_class_name59
;
7097 val
* var60
/* : nullable AAnnotations */;
7098 short int var61
/* : Bool */;
7099 short int var62
/* : Bool */;
7100 short int var64
/* : Bool */;
7101 short int var66
/* : Bool */;
7102 short int var67
/* : Bool */;
7105 const char* var_class_name70
;
7108 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
7110 var1
= 0; /* <var_old_child:ANode> cannot be null */
7112 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
7113 var_other
= var_old_child
;
7115 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
7116 var6
= var
== var_other
;
7129 /* <var_new_child:nullable ANode> isa nullable ADoc */
7130 cltype
= type_nullable__nitc__ADoc
.color
;
7131 idtype
= type_nullable__nitc__ADoc
.id
;
7132 if(var_new_child
== NULL
) {
7135 if(cltype
>= var_new_child
->type
->table_size
) {
7138 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7141 if (unlikely(!var7
)) {
7142 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7143 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
7144 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1034);
7148 nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_doc= on <self:ATypePropdef>*/
7153 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
7155 var9
= 0; /* <var_old_child:ANode> cannot be null */
7157 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
7158 var_other
= var_old_child
;
7160 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
7161 var14
= var8
== var_other
;
7164 RET_LABEL13
:(void)0;
7169 RET_LABEL11
:(void)0;
7174 /* <var_new_child:nullable ANode> isa nullable TKwredef */
7175 cltype16
= type_nullable__nitc__TKwredef
.color
;
7176 idtype17
= type_nullable__nitc__TKwredef
.id
;
7177 if(var_new_child
== NULL
) {
7180 if(cltype16
>= var_new_child
->type
->table_size
) {
7183 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
7186 if (unlikely(!var15
)) {
7187 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7188 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
7189 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1038);
7193 nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwredef= on <self:ATypePropdef>*/
7198 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
7199 if (var19
== NULL
) {
7200 var20
= 0; /* <var_old_child:ANode> cannot be null */
7202 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
7203 var_other
= var_old_child
;
7205 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
7206 var25
= var19
== var_other
;
7209 RET_LABEL24
:(void)0;
7214 RET_LABEL22
:(void)0;
7219 /* <var_new_child:nullable ANode> isa AVisibility */
7220 cltype27
= type_nitc__AVisibility
.color
;
7221 idtype28
= type_nitc__AVisibility
.id
;
7222 if(var_new_child
== NULL
) {
7225 if(cltype27
>= var_new_child
->type
->table_size
) {
7228 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
7231 if (unlikely(!var26
)) {
7232 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7233 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
7234 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1042);
7238 nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_visibility= on <self:ATypePropdef>*/
7243 var30
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
7244 if (unlikely(var30
== NULL
)) {
7245 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
7246 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1045);
7250 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwtype> */
7251 var_other
= var_old_child
;
7253 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwtype> */
7254 var35
= var30
== var_other
;
7257 RET_LABEL34
:(void)0;
7262 RET_LABEL32
:(void)0;
7266 /* <var_new_child:nullable ANode> isa TKwtype */
7267 cltype37
= type_nitc__TKwtype
.color
;
7268 idtype38
= type_nitc__TKwtype
.id
;
7269 if(var_new_child
== NULL
) {
7272 if(cltype37
>= var_new_child
->type
->table_size
) {
7275 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
7278 if (unlikely(!var36
)) {
7279 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7280 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name39
);
7281 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1046);
7285 nitc__parser_prod___ATypePropdef___n_kwtype_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_kwtype= on <self:ATypePropdef>*/
7290 var40
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_qid
].val
; /* _n_qid on <self:ATypePropdef> */
7291 if (unlikely(var40
== NULL
)) {
7292 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
7293 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1049);
7297 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:AQclassid> */
7298 var_other
= var_old_child
;
7300 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:AQclassid> */
7301 var45
= var40
== var_other
;
7304 RET_LABEL44
:(void)0;
7309 RET_LABEL42
:(void)0;
7313 /* <var_new_child:nullable ANode> isa AQclassid */
7314 cltype47
= type_nitc__AQclassid
.color
;
7315 idtype48
= type_nitc__AQclassid
.id
;
7316 if(var_new_child
== NULL
) {
7319 if(cltype47
>= var_new_child
->type
->table_size
) {
7322 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
7325 if (unlikely(!var46
)) {
7326 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7327 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQclassid", var_class_name49
);
7328 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1050);
7332 nitc__parser_prod___ATypePropdef___n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_qid= on <self:ATypePropdef>*/
7337 var50
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
7338 if (unlikely(var50
== NULL
)) {
7339 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
7340 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1053);
7344 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:AType> */
7345 var_other
= var_old_child
;
7347 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:AType> */
7348 var55
= var50
== var_other
;
7351 RET_LABEL54
:(void)0;
7356 RET_LABEL52
:(void)0;
7360 /* <var_new_child:nullable ANode> isa AType */
7361 cltype57
= type_nitc__AType
.color
;
7362 idtype58
= type_nitc__AType
.id
;
7363 if(var_new_child
== NULL
) {
7366 if(cltype57
>= var_new_child
->type
->table_size
) {
7369 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
7372 if (unlikely(!var56
)) {
7373 var_class_name59
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7374 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name59
);
7375 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1054);
7379 nitc__parser_prod___ATypePropdef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_type= on <self:ATypePropdef>*/
7384 var60
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
7385 if (var60
== NULL
) {
7386 var61
= 0; /* <var_old_child:ANode> cannot be null */
7388 { /* Inline kernel#Object#== (var60,var_old_child) on <var60:nullable AAnnotations> */
7389 var_other
= var_old_child
;
7391 { /* Inline kernel#Object#is_same_instance (var60,var_other) on <var60:nullable AAnnotations(AAnnotations)> */
7392 var66
= var60
== var_other
;
7395 RET_LABEL65
:(void)0;
7400 RET_LABEL63
:(void)0;
7405 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7406 cltype68
= type_nullable__nitc__AAnnotations
.color
;
7407 idtype69
= type_nullable__nitc__AAnnotations
.id
;
7408 if(var_new_child
== NULL
) {
7411 if(cltype68
>= var_new_child
->type
->table_size
) {
7414 var67
= var_new_child
->type
->type_table
[cltype68
] == idtype69
;
7417 if (unlikely(!var67
)) {
7418 var_class_name70
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7419 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name70
);
7420 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1058);
7424 nitc__parser_prod___ATypePropdef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ATypePropdef#n_annotations= on <self:ATypePropdef>*/
7431 /* method parser_prod#ATypePropdef#n_doc= for (self: ATypePropdef, nullable ADoc) */
7432 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
7433 val
* var_node
/* var node: nullable ADoc */;
7434 short int var
/* : Bool */;
7435 short int var1
/* : Bool */;
7436 val
* var_other
/* var other: nullable Object */;
7437 short int var3
/* : Bool */;
7438 short int var4
/* : Bool */;
7440 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:ATypePropdef> */
7441 if (var_node
== NULL
) {
7442 var
= 0; /* is null */
7444 var
= 1; /* arg is null and recv is not */
7447 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
7448 var_other
= ((val
*)NULL
);
7450 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
7461 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
7462 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
7470 /* method parser_prod#ATypePropdef#n_kwredef= for (self: ATypePropdef, nullable TKwredef) */
7471 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
7472 val
* var_node
/* var node: nullable TKwredef */;
7473 short int var
/* : Bool */;
7474 short int var1
/* : Bool */;
7475 val
* var_other
/* var other: nullable Object */;
7476 short int var3
/* : Bool */;
7477 short int var4
/* : Bool */;
7479 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ATypePropdef> */
7480 if (var_node
== NULL
) {
7481 var
= 0; /* is null */
7483 var
= 1; /* arg is null and recv is not */
7486 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
7487 var_other
= ((val
*)NULL
);
7489 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
7500 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
7501 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
7509 /* method parser_prod#ATypePropdef#n_visibility= for (self: ATypePropdef, nullable AVisibility) */
7510 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
7511 val
* var_node
/* var node: nullable AVisibility */;
7513 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:ATypePropdef> */
7514 if (var_node
== NULL
) {
7515 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7516 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1076);
7519 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
7520 if (unlikely(var_node
== NULL
)) {
7521 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7522 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7525 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
7531 /* method parser_prod#ATypePropdef#n_kwtype= for (self: ATypePropdef, TKwtype) */
7532 void nitc__parser_prod___ATypePropdef___n_kwtype_61d(val
* self
, val
* p0
) {
7533 val
* var_node
/* var node: TKwtype */;
7535 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_kwtype
].val
= var_node
; /* _n_kwtype on <self:ATypePropdef> */
7537 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwtype> */
7538 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwtype> */
7544 /* method parser_prod#ATypePropdef#n_qid= for (self: ATypePropdef, AQclassid) */
7545 void nitc__parser_prod___ATypePropdef___n_qid_61d(val
* self
, val
* p0
) {
7546 val
* var_node
/* var node: AQclassid */;
7548 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_qid
].val
= var_node
; /* _n_qid on <self:ATypePropdef> */
7550 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AQclassid> */
7551 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AQclassid> */
7557 /* method parser_prod#ATypePropdef#n_type= for (self: ATypePropdef, AType) */
7558 void nitc__parser_prod___ATypePropdef___n_type_61d(val
* self
, val
* p0
) {
7559 val
* var_node
/* var node: AType */;
7561 self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_type
].val
= var_node
; /* _n_type on <self:ATypePropdef> */
7563 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
7564 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
7570 /* method parser_prod#ATypePropdef#n_annotations= for (self: ATypePropdef, nullable AAnnotations) */
7571 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7572 val
* var_node
/* var node: nullable AAnnotations */;
7573 short int var
/* : Bool */;
7574 short int var1
/* : Bool */;
7575 val
* var_other
/* var other: nullable Object */;
7576 short int var3
/* : Bool */;
7577 short int var4
/* : Bool */;
7579 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ATypePropdef> */
7580 if (var_node
== NULL
) {
7581 var
= 0; /* is null */
7583 var
= 1; /* arg is null and recv is not */
7586 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
7587 var_other
= ((val
*)NULL
);
7589 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
7600 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7601 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7609 /* method parser_prod#ATypePropdef#visit_all for (self: ATypePropdef, Visitor) */
7610 void nitc__parser_prod___ATypePropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7611 val
* var_v
/* var v: Visitor */;
7612 val
* var
/* : nullable ADoc */;
7613 val
* var1
/* : nullable TKwredef */;
7614 val
* var2
/* : nullable AVisibility */;
7615 val
* var3
/* : TKwtype */;
7616 val
* var4
/* : AQclassid */;
7617 val
* var5
/* : AType */;
7618 val
* var6
/* : nullable AAnnotations */;
7620 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ATypePropdef> */
7622 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7624 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ATypePropdef> */
7626 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7628 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ATypePropdef> */
7630 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7632 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_kwtype
].val
; /* _n_kwtype on <self:ATypePropdef> */
7633 if (unlikely(var3
== NULL
)) {
7634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype");
7635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1105);
7639 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7641 var4
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_qid
].val
; /* _n_qid on <self:ATypePropdef> */
7642 if (unlikely(var4
== NULL
)) {
7643 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
7644 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1106);
7648 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7650 var5
= self
->attrs
[COLOR_nitc__parser_nodes__ATypePropdef___n_type
].val
; /* _n_type on <self:ATypePropdef> */
7651 if (unlikely(var5
== NULL
)) {
7652 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
7653 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1107);
7657 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7659 var6
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ATypePropdef> */
7661 nitc___nitc__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7665 /* 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 TKwdo, nullable AExpr, nullable TKwend) */
7666 void nitc__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
, val
* p12
, val
* p13
) {
7667 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7668 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7669 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7670 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
7671 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
7672 val
* var_n_kwnew
/* var n_kwnew: nullable TKwnew */;
7673 val
* var_n_methid
/* var n_methid: nullable AMethid */;
7674 val
* var_n_signature
/* var n_signature: nullable ASignature */;
7675 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7676 val
* var_n_extern_calls
/* var n_extern_calls: nullable AExternCalls */;
7677 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
7678 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
7679 val
* var_n_block
/* var n_block: nullable AExpr */;
7680 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
7681 short int var
/* : Bool */;
7682 short int var2
/* : Bool */;
7683 val
* var_other
/* var other: nullable Object */;
7684 short int var4
/* : Bool */;
7685 short int var5
/* : Bool */;
7686 short int var7
/* : Bool */;
7687 short int var8
/* : Bool */;
7688 short int var10
/* : Bool */;
7689 short int var11
/* : Bool */;
7690 short int var14
/* : Bool */;
7691 short int var15
/* : Bool */;
7692 short int var17
/* : Bool */;
7693 short int var18
/* : Bool */;
7694 short int var20
/* : Bool */;
7695 short int var21
/* : Bool */;
7696 short int var23
/* : Bool */;
7697 short int var24
/* : Bool */;
7698 short int var26
/* : Bool */;
7699 short int var27
/* : Bool */;
7700 short int var29
/* : Bool */;
7701 short int var30
/* : Bool */;
7702 short int var32
/* : Bool */;
7703 short int var33
/* : Bool */;
7704 short int var35
/* : Bool */;
7705 short int var36
/* : Bool */;
7706 short int var39
/* : Bool */;
7707 short int var40
/* : Bool */;
7708 short int var42
/* : Bool */;
7709 short int var43
/* : Bool */;
7710 short int var45
/* : Bool */;
7711 short int var46
/* : Bool */;
7712 short int var48
/* : Bool */;
7713 short int var49
/* : Bool */;
7714 short int var51
/* : Bool */;
7715 short int var52
/* : Bool */;
7716 short int var54
/* : Bool */;
7717 short int var55
/* : Bool */;
7718 short int var57
/* : Bool */;
7719 short int var58
/* : Bool */;
7720 short int var60
/* : Bool */;
7721 short int var61
/* : Bool */;
7722 short int var63
/* : Bool */;
7723 short int var64
/* : Bool */;
7724 short int var66
/* : Bool */;
7725 short int var67
/* : Bool */;
7726 short int var69
/* : Bool */;
7727 short int var70
/* : Bool */;
7728 short int var72
/* : Bool */;
7729 short int var73
/* : Bool */;
7731 { /* Inline kernel#Object#init (self) on <self:AMethPropdef> */
7737 var_n_visibility
= p2
;
7742 var_n_signature
= p7
;
7743 var_n_annotations
= p8
;
7744 var_n_extern_calls
= p9
;
7745 var_n_extern_code_block
= p10
;
7749 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AMethPropdef> */
7750 if (var_n_doc
== NULL
) {
7751 var
= 0; /* is null */
7753 var
= 1; /* arg is null and recv is not */
7756 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
7757 var_other
= ((val
*)NULL
);
7759 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
7770 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
7771 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
7777 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMethPropdef> */
7778 if (var_n_kwredef
== NULL
) {
7779 var7
= 0; /* is null */
7781 var7
= 1; /* arg is null and recv is not */
7784 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
7785 var_other
= ((val
*)NULL
);
7787 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
7798 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7799 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
7800 RET_LABEL12
:(void)0;
7805 if (unlikely(var_n_visibility
== NULL
)) {
7806 PRINT_ERROR("Runtime error: %s", "Cast failed");
7807 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1133);
7810 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AMethPropdef> */
7811 if (var_n_visibility
== NULL
) {
7812 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7813 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1134);
7816 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
7817 if (unlikely(var_n_visibility
== NULL
)) {
7818 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7819 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7822 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
7823 RET_LABEL13
:(void)0;
7826 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AMethPropdef> */
7827 if (var_n_kwmeth
== NULL
) {
7828 var14
= 0; /* is null */
7830 var14
= 1; /* arg is null and recv is not */
7833 { /* Inline kernel#Object#!= (var_n_kwmeth,((val*)NULL)) on <var_n_kwmeth:nullable TKwmeth> */
7834 var_other
= ((val
*)NULL
);
7836 var17
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwmeth
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwmeth
, var_other
); /* == on <var_n_kwmeth:nullable TKwmeth(TKwmeth)>*/
7841 RET_LABEL16
:(void)0;
7847 { /* Inline parser_nodes#ANode#parent= (var_n_kwmeth,self) on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
7848 var_n_kwmeth
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwmeth:nullable TKwmeth(TKwmeth)> */
7849 RET_LABEL19
:(void)0;
7854 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AMethPropdef> */
7855 if (var_n_kwinit
== NULL
) {
7856 var20
= 0; /* is null */
7858 var20
= 1; /* arg is null and recv is not */
7861 { /* Inline kernel#Object#!= (var_n_kwinit,((val*)NULL)) on <var_n_kwinit:nullable TKwinit> */
7862 var_other
= ((val
*)NULL
);
7864 var23
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwinit
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwinit
, var_other
); /* == on <var_n_kwinit:nullable TKwinit(TKwinit)>*/
7869 RET_LABEL22
:(void)0;
7875 { /* Inline parser_nodes#ANode#parent= (var_n_kwinit,self) on <var_n_kwinit:nullable TKwinit(TKwinit)> */
7876 var_n_kwinit
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwinit:nullable TKwinit(TKwinit)> */
7877 RET_LABEL25
:(void)0;
7882 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwnew
].val
= var_n_kwnew
; /* _n_kwnew on <self:AMethPropdef> */
7883 if (var_n_kwnew
== NULL
) {
7884 var26
= 0; /* is null */
7886 var26
= 1; /* arg is null and recv is not */
7889 { /* Inline kernel#Object#!= (var_n_kwnew,((val*)NULL)) on <var_n_kwnew:nullable TKwnew> */
7890 var_other
= ((val
*)NULL
);
7892 var29
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwnew
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwnew
, var_other
); /* == on <var_n_kwnew:nullable TKwnew(TKwnew)>*/
7897 RET_LABEL28
:(void)0;
7903 { /* Inline parser_nodes#ANode#parent= (var_n_kwnew,self) on <var_n_kwnew:nullable TKwnew(TKwnew)> */
7904 var_n_kwnew
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnew:nullable TKwnew(TKwnew)> */
7905 RET_LABEL31
:(void)0;
7910 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AMethPropdef> */
7911 if (var_n_methid
== NULL
) {
7912 var32
= 0; /* is null */
7914 var32
= 1; /* arg is null and recv is not */
7917 { /* Inline kernel#Object#!= (var_n_methid,((val*)NULL)) on <var_n_methid:nullable AMethid> */
7918 var_other
= ((val
*)NULL
);
7920 var35
= ((short int(*)(val
* self
, val
* p0
))(var_n_methid
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_methid
, var_other
); /* == on <var_n_methid:nullable AMethid(AMethid)>*/
7925 RET_LABEL34
:(void)0;
7931 { /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on <var_n_methid:nullable AMethid(AMethid)> */
7932 var_n_methid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_methid:nullable AMethid(AMethid)> */
7933 RET_LABEL37
:(void)0;
7938 if (unlikely(var_n_signature
== NULL
)) {
7939 PRINT_ERROR("Runtime error: %s", "Cast failed");
7940 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1143);
7943 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AMethPropdef> */
7944 if (var_n_signature
== NULL
) {
7945 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7946 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1144);
7949 { /* Inline parser_nodes#ANode#parent= (var_n_signature,self) on <var_n_signature:nullable ASignature> */
7950 if (unlikely(var_n_signature
== NULL
)) {
7951 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7952 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7955 var_n_signature
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_signature:nullable ASignature> */
7956 RET_LABEL38
:(void)0;
7959 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AMethPropdef> */
7960 if (var_n_annotations
== NULL
) {
7961 var39
= 0; /* is null */
7963 var39
= 1; /* arg is null and recv is not */
7966 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
7967 var_other
= ((val
*)NULL
);
7969 var42
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
7974 RET_LABEL41
:(void)0;
7980 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7981 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7982 RET_LABEL44
:(void)0;
7987 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_calls
].val
= var_n_extern_calls
; /* _n_extern_calls on <self:AMethPropdef> */
7988 if (var_n_extern_calls
== NULL
) {
7989 var45
= 0; /* is null */
7991 var45
= 1; /* arg is null and recv is not */
7994 { /* Inline kernel#Object#!= (var_n_extern_calls,((val*)NULL)) on <var_n_extern_calls:nullable AExternCalls> */
7995 var_other
= ((val
*)NULL
);
7997 var48
= ((short int(*)(val
* self
, val
* p0
))(var_n_extern_calls
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_extern_calls
, var_other
); /* == on <var_n_extern_calls:nullable AExternCalls(AExternCalls)>*/
8002 RET_LABEL47
:(void)0;
8008 { /* Inline parser_nodes#ANode#parent= (var_n_extern_calls,self) on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
8009 var_n_extern_calls
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_calls:nullable AExternCalls(AExternCalls)> */
8010 RET_LABEL50
:(void)0;
8015 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AMethPropdef> */
8016 if (var_n_extern_code_block
== NULL
) {
8017 var51
= 0; /* is null */
8019 var51
= 1; /* arg is null and recv is not */
8022 { /* Inline kernel#Object#!= (var_n_extern_code_block,((val*)NULL)) on <var_n_extern_code_block:nullable AExternCodeBlock> */
8023 var_other
= ((val
*)NULL
);
8025 var54
= ((short int(*)(val
* self
, val
* p0
))(var_n_extern_code_block
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_extern_code_block
, var_other
); /* == on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/
8030 RET_LABEL53
:(void)0;
8036 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_block,self) on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
8037 var_n_extern_code_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)> */
8038 RET_LABEL56
:(void)0;
8043 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:AMethPropdef> */
8044 if (var_n_kwdo
== NULL
) {
8045 var57
= 0; /* is null */
8047 var57
= 1; /* arg is null and recv is not */
8050 { /* Inline kernel#Object#!= (var_n_kwdo,((val*)NULL)) on <var_n_kwdo:nullable TKwdo> */
8051 var_other
= ((val
*)NULL
);
8053 var60
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwdo
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwdo
, var_other
); /* == on <var_n_kwdo:nullable TKwdo(TKwdo)>*/
8058 RET_LABEL59
:(void)0;
8064 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo(TKwdo)> */
8065 var_n_kwdo
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo(TKwdo)> */
8066 RET_LABEL62
:(void)0;
8071 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AMethPropdef> */
8072 if (var_n_block
== NULL
) {
8073 var63
= 0; /* is null */
8075 var63
= 1; /* arg is null and recv is not */
8078 { /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on <var_n_block:nullable AExpr> */
8079 var_other
= ((val
*)NULL
);
8081 var66
= ((short int(*)(val
* self
, val
* p0
))(var_n_block
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_block
, var_other
); /* == on <var_n_block:nullable AExpr(AExpr)>*/
8086 RET_LABEL65
:(void)0;
8092 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
8093 var_n_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
8094 RET_LABEL68
:(void)0;
8099 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AMethPropdef> */
8100 if (var_n_kwend
== NULL
) {
8101 var69
= 0; /* is null */
8103 var69
= 1; /* arg is null and recv is not */
8106 { /* Inline kernel#Object#!= (var_n_kwend,((val*)NULL)) on <var_n_kwend:nullable TKwend> */
8107 var_other
= ((val
*)NULL
);
8109 var72
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwend
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwend
, var_other
); /* == on <var_n_kwend:nullable TKwend(TKwend)>*/
8114 RET_LABEL71
:(void)0;
8120 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend(TKwend)> */
8121 var_n_kwend
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend(TKwend)> */
8122 RET_LABEL74
:(void)0;
8129 /* method parser_prod#AMethPropdef#replace_child for (self: AMethPropdef, ANode, nullable ANode) */
8130 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8131 val
* var_old_child
/* var old_child: ANode */;
8132 val
* var_new_child
/* var new_child: nullable ANode */;
8133 val
* var
/* : nullable ADoc */;
8134 short int var1
/* : Bool */;
8135 short int var2
/* : Bool */;
8136 val
* var_other
/* var other: nullable Object */;
8137 short int var4
/* : Bool */;
8138 short int var6
/* : Bool */;
8139 short int var7
/* : Bool */;
8142 const char* var_class_name
;
8143 val
* var8
/* : nullable TKwredef */;
8144 short int var9
/* : Bool */;
8145 short int var10
/* : Bool */;
8146 short int var12
/* : Bool */;
8147 short int var14
/* : Bool */;
8148 short int var15
/* : Bool */;
8151 const char* var_class_name18
;
8152 val
* var19
/* : nullable AVisibility */;
8153 short int var20
/* : Bool */;
8154 short int var21
/* : Bool */;
8155 short int var23
/* : Bool */;
8156 short int var25
/* : Bool */;
8157 short int var26
/* : Bool */;
8160 const char* var_class_name29
;
8161 val
* var30
/* : nullable TKwmeth */;
8162 short int var31
/* : Bool */;
8163 short int var32
/* : Bool */;
8164 short int var34
/* : Bool */;
8165 short int var36
/* : Bool */;
8166 short int var37
/* : Bool */;
8169 const char* var_class_name40
;
8170 val
* var41
/* : nullable TKwinit */;
8171 short int var42
/* : Bool */;
8172 short int var43
/* : Bool */;
8173 short int var45
/* : Bool */;
8174 short int var47
/* : Bool */;
8175 short int var48
/* : Bool */;
8178 const char* var_class_name51
;
8179 val
* var52
/* : nullable TKwnew */;
8180 short int var53
/* : Bool */;
8181 short int var54
/* : Bool */;
8182 short int var56
/* : Bool */;
8183 short int var58
/* : Bool */;
8184 short int var59
/* : Bool */;
8187 const char* var_class_name62
;
8188 val
* var63
/* : nullable AMethid */;
8189 short int var64
/* : Bool */;
8190 short int var65
/* : Bool */;
8191 short int var67
/* : Bool */;
8192 short int var69
/* : Bool */;
8193 short int var70
/* : Bool */;
8196 const char* var_class_name73
;
8197 val
* var74
/* : nullable ASignature */;
8198 short int var75
/* : Bool */;
8199 short int var76
/* : Bool */;
8200 short int var78
/* : Bool */;
8201 short int var80
/* : Bool */;
8202 short int var81
/* : Bool */;
8205 const char* var_class_name84
;
8206 val
* var85
/* : nullable AAnnotations */;
8207 short int var86
/* : Bool */;
8208 short int var87
/* : Bool */;
8209 short int var89
/* : Bool */;
8210 short int var91
/* : Bool */;
8211 short int var92
/* : Bool */;
8214 const char* var_class_name95
;
8215 val
* var96
/* : nullable AExternCalls */;
8216 short int var97
/* : Bool */;
8217 short int var98
/* : Bool */;
8218 short int var100
/* : Bool */;
8219 short int var102
/* : Bool */;
8220 short int var103
/* : Bool */;
8223 const char* var_class_name106
;
8224 val
* var107
/* : nullable AExternCodeBlock */;
8225 short int var108
/* : Bool */;
8226 short int var109
/* : Bool */;
8227 short int var111
/* : Bool */;
8228 short int var113
/* : Bool */;
8229 short int var114
/* : Bool */;
8232 const char* var_class_name117
;
8233 val
* var118
/* : nullable TKwdo */;
8234 short int var119
/* : Bool */;
8235 short int var120
/* : Bool */;
8236 short int var122
/* : Bool */;
8237 short int var124
/* : Bool */;
8238 short int var125
/* : Bool */;
8241 const char* var_class_name128
;
8242 val
* var129
/* : nullable AExpr */;
8243 short int var130
/* : Bool */;
8244 short int var131
/* : Bool */;
8245 short int var133
/* : Bool */;
8246 short int var135
/* : Bool */;
8247 short int var136
/* : Bool */;
8250 const char* var_class_name139
;
8251 val
* var140
/* : nullable TKwend */;
8252 short int var141
/* : Bool */;
8253 short int var142
/* : Bool */;
8254 short int var144
/* : Bool */;
8255 short int var146
/* : Bool */;
8256 short int var147
/* : Bool */;
8259 const char* var_class_name150
;
8262 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
8264 var1
= 0; /* <var_old_child:ANode> cannot be null */
8266 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
8267 var_other
= var_old_child
;
8269 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
8270 var6
= var
== var_other
;
8283 /* <var_new_child:nullable ANode> isa nullable ADoc */
8284 cltype
= type_nullable__nitc__ADoc
.color
;
8285 idtype
= type_nullable__nitc__ADoc
.id
;
8286 if(var_new_child
== NULL
) {
8289 if(cltype
>= var_new_child
->type
->table_size
) {
8292 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8295 if (unlikely(!var7
)) {
8296 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8297 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
8298 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1162);
8302 nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_doc= on <self:AMethPropdef>*/
8307 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
8309 var9
= 0; /* <var_old_child:ANode> cannot be null */
8311 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
8312 var_other
= var_old_child
;
8314 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
8315 var14
= var8
== var_other
;
8318 RET_LABEL13
:(void)0;
8323 RET_LABEL11
:(void)0;
8328 /* <var_new_child:nullable ANode> isa nullable TKwredef */
8329 cltype16
= type_nullable__nitc__TKwredef
.color
;
8330 idtype17
= type_nullable__nitc__TKwredef
.id
;
8331 if(var_new_child
== NULL
) {
8334 if(cltype16
>= var_new_child
->type
->table_size
) {
8337 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8340 if (unlikely(!var15
)) {
8341 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8342 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
8343 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1166);
8347 ((void(*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_nitc__parser_nodes__ADefinition__n_kwredef_61d
]))(self
, var_new_child
); /* n_kwredef= on <self:AMethPropdef>*/
8352 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
8353 if (var19
== NULL
) {
8354 var20
= 0; /* <var_old_child:ANode> cannot be null */
8356 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
8357 var_other
= var_old_child
;
8359 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
8360 var25
= var19
== var_other
;
8363 RET_LABEL24
:(void)0;
8368 RET_LABEL22
:(void)0;
8373 /* <var_new_child:nullable ANode> isa AVisibility */
8374 cltype27
= type_nitc__AVisibility
.color
;
8375 idtype28
= type_nitc__AVisibility
.id
;
8376 if(var_new_child
== NULL
) {
8379 if(cltype27
>= var_new_child
->type
->table_size
) {
8382 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
8385 if (unlikely(!var26
)) {
8386 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8387 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
8388 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1170);
8392 nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_visibility= on <self:AMethPropdef>*/
8397 var30
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AMethPropdef> */
8398 if (var30
== NULL
) {
8399 var31
= 0; /* <var_old_child:ANode> cannot be null */
8401 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:nullable TKwmeth> */
8402 var_other
= var_old_child
;
8404 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:nullable TKwmeth(TKwmeth)> */
8405 var36
= var30
== var_other
;
8408 RET_LABEL35
:(void)0;
8413 RET_LABEL33
:(void)0;
8418 /* <var_new_child:nullable ANode> isa nullable TKwmeth */
8419 cltype38
= type_nullable__nitc__TKwmeth
.color
;
8420 idtype39
= type_nullable__nitc__TKwmeth
.id
;
8421 if(var_new_child
== NULL
) {
8424 if(cltype38
>= var_new_child
->type
->table_size
) {
8427 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
8430 if (unlikely(!var37
)) {
8431 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8432 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwmeth", var_class_name40
);
8433 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1174);
8437 nitc__parser_prod___AMethPropdef___n_kwmeth_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwmeth= on <self:AMethPropdef>*/
8442 var41
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AMethPropdef> */
8443 if (var41
== NULL
) {
8444 var42
= 0; /* <var_old_child:ANode> cannot be null */
8446 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TKwinit> */
8447 var_other
= var_old_child
;
8449 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TKwinit(TKwinit)> */
8450 var47
= var41
== var_other
;
8453 RET_LABEL46
:(void)0;
8458 RET_LABEL44
:(void)0;
8463 /* <var_new_child:nullable ANode> isa nullable TKwinit */
8464 cltype49
= type_nullable__nitc__TKwinit
.color
;
8465 idtype50
= type_nullable__nitc__TKwinit
.id
;
8466 if(var_new_child
== NULL
) {
8469 if(cltype49
>= var_new_child
->type
->table_size
) {
8472 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
8475 if (unlikely(!var48
)) {
8476 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8477 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwinit", var_class_name51
);
8478 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1178);
8482 nitc__parser_prod___AMethPropdef___n_kwinit_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwinit= on <self:AMethPropdef>*/
8487 var52
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwnew
].val
; /* _n_kwnew on <self:AMethPropdef> */
8488 if (var52
== NULL
) {
8489 var53
= 0; /* <var_old_child:ANode> cannot be null */
8491 { /* Inline kernel#Object#== (var52,var_old_child) on <var52:nullable TKwnew> */
8492 var_other
= var_old_child
;
8494 { /* Inline kernel#Object#is_same_instance (var52,var_other) on <var52:nullable TKwnew(TKwnew)> */
8495 var58
= var52
== var_other
;
8498 RET_LABEL57
:(void)0;
8503 RET_LABEL55
:(void)0;
8508 /* <var_new_child:nullable ANode> isa nullable TKwnew */
8509 cltype60
= type_nullable__nitc__TKwnew
.color
;
8510 idtype61
= type_nullable__nitc__TKwnew
.id
;
8511 if(var_new_child
== NULL
) {
8514 if(cltype60
>= var_new_child
->type
->table_size
) {
8517 var59
= var_new_child
->type
->type_table
[cltype60
] == idtype61
;
8520 if (unlikely(!var59
)) {
8521 var_class_name62
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8522 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnew", var_class_name62
);
8523 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1182);
8527 nitc__parser_prod___AMethPropdef___n_kwnew_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwnew= on <self:AMethPropdef>*/
8532 var63
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
8533 if (var63
== NULL
) {
8534 var64
= 0; /* <var_old_child:ANode> cannot be null */
8536 { /* Inline kernel#Object#== (var63,var_old_child) on <var63:nullable AMethid> */
8537 var_other
= var_old_child
;
8539 { /* Inline kernel#Object#is_same_instance (var63,var_other) on <var63:nullable AMethid(AMethid)> */
8540 var69
= var63
== var_other
;
8543 RET_LABEL68
:(void)0;
8548 RET_LABEL66
:(void)0;
8553 /* <var_new_child:nullable ANode> isa nullable AMethid */
8554 cltype71
= type_nullable__nitc__AMethid
.color
;
8555 idtype72
= type_nullable__nitc__AMethid
.id
;
8556 if(var_new_child
== NULL
) {
8559 if(cltype71
>= var_new_child
->type
->table_size
) {
8562 var70
= var_new_child
->type
->type_table
[cltype71
] == idtype72
;
8565 if (unlikely(!var70
)) {
8566 var_class_name73
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8567 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AMethid", var_class_name73
);
8568 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1186);
8572 nitc__parser_prod___AMethPropdef___n_methid_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_methid= on <self:AMethPropdef>*/
8577 var74
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
8578 if (var74
== NULL
) {
8579 var75
= 0; /* <var_old_child:ANode> cannot be null */
8581 { /* Inline kernel#Object#== (var74,var_old_child) on <var74:nullable ASignature> */
8582 var_other
= var_old_child
;
8584 { /* Inline kernel#Object#is_same_instance (var74,var_other) on <var74:nullable ASignature(ASignature)> */
8585 var80
= var74
== var_other
;
8588 RET_LABEL79
:(void)0;
8593 RET_LABEL77
:(void)0;
8598 /* <var_new_child:nullable ANode> isa ASignature */
8599 cltype82
= type_nitc__ASignature
.color
;
8600 idtype83
= type_nitc__ASignature
.id
;
8601 if(var_new_child
== NULL
) {
8604 if(cltype82
>= var_new_child
->type
->table_size
) {
8607 var81
= var_new_child
->type
->type_table
[cltype82
] == idtype83
;
8610 if (unlikely(!var81
)) {
8611 var_class_name84
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8612 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "ASignature", var_class_name84
);
8613 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1190);
8617 nitc__parser_prod___AMethPropdef___n_signature_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_signature= on <self:AMethPropdef>*/
8622 var85
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AMethPropdef> */
8623 if (var85
== NULL
) {
8624 var86
= 0; /* <var_old_child:ANode> cannot be null */
8626 { /* Inline kernel#Object#== (var85,var_old_child) on <var85:nullable AAnnotations> */
8627 var_other
= var_old_child
;
8629 { /* Inline kernel#Object#is_same_instance (var85,var_other) on <var85:nullable AAnnotations(AAnnotations)> */
8630 var91
= var85
== var_other
;
8633 RET_LABEL90
:(void)0;
8638 RET_LABEL88
:(void)0;
8643 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
8644 cltype93
= type_nullable__nitc__AAnnotations
.color
;
8645 idtype94
= type_nullable__nitc__AAnnotations
.id
;
8646 if(var_new_child
== NULL
) {
8649 if(cltype93
>= var_new_child
->type
->table_size
) {
8652 var92
= var_new_child
->type
->type_table
[cltype93
] == idtype94
;
8655 if (unlikely(!var92
)) {
8656 var_class_name95
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8657 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name95
);
8658 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1194);
8662 nitc__parser_prod___AMethPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_annotations= on <self:AMethPropdef>*/
8667 var96
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AMethPropdef> */
8668 if (var96
== NULL
) {
8669 var97
= 0; /* <var_old_child:ANode> cannot be null */
8671 { /* Inline kernel#Object#== (var96,var_old_child) on <var96:nullable AExternCalls> */
8672 var_other
= var_old_child
;
8674 { /* Inline kernel#Object#is_same_instance (var96,var_other) on <var96:nullable AExternCalls(AExternCalls)> */
8675 var102
= var96
== var_other
;
8678 RET_LABEL101
:(void)0;
8683 RET_LABEL99
:(void)0;
8688 /* <var_new_child:nullable ANode> isa nullable AExternCalls */
8689 cltype104
= type_nullable__nitc__AExternCalls
.color
;
8690 idtype105
= type_nullable__nitc__AExternCalls
.id
;
8691 if(var_new_child
== NULL
) {
8694 if(cltype104
>= var_new_child
->type
->table_size
) {
8697 var103
= var_new_child
->type
->type_table
[cltype104
] == idtype105
;
8700 if (unlikely(!var103
)) {
8701 var_class_name106
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8702 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCalls", var_class_name106
);
8703 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1198);
8707 nitc__parser_prod___AMethPropdef___n_extern_calls_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_calls= on <self:AMethPropdef>*/
8712 var107
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AMethPropdef> */
8713 if (var107
== NULL
) {
8714 var108
= 0; /* <var_old_child:ANode> cannot be null */
8716 { /* Inline kernel#Object#== (var107,var_old_child) on <var107:nullable AExternCodeBlock> */
8717 var_other
= var_old_child
;
8719 { /* Inline kernel#Object#is_same_instance (var107,var_other) on <var107:nullable AExternCodeBlock(AExternCodeBlock)> */
8720 var113
= var107
== var_other
;
8723 RET_LABEL112
:(void)0;
8728 RET_LABEL110
:(void)0;
8733 /* <var_new_child:nullable ANode> isa nullable AExternCodeBlock */
8734 cltype115
= type_nullable__nitc__AExternCodeBlock
.color
;
8735 idtype116
= type_nullable__nitc__AExternCodeBlock
.id
;
8736 if(var_new_child
== NULL
) {
8739 if(cltype115
>= var_new_child
->type
->table_size
) {
8742 var114
= var_new_child
->type
->type_table
[cltype115
] == idtype116
;
8745 if (unlikely(!var114
)) {
8746 var_class_name117
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8747 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExternCodeBlock", var_class_name117
);
8748 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1202);
8752 nitc__parser_prod___AMethPropdef___n_extern_code_block_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_extern_code_block= on <self:AMethPropdef>*/
8757 var118
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwdo
].val
; /* _n_kwdo on <self:AMethPropdef> */
8758 if (var118
== NULL
) {
8759 var119
= 0; /* <var_old_child:ANode> cannot be null */
8761 { /* Inline kernel#Object#== (var118,var_old_child) on <var118:nullable TKwdo> */
8762 var_other
= var_old_child
;
8764 { /* Inline kernel#Object#is_same_instance (var118,var_other) on <var118:nullable TKwdo(TKwdo)> */
8765 var124
= var118
== var_other
;
8768 RET_LABEL123
:(void)0;
8773 RET_LABEL121
:(void)0;
8778 /* <var_new_child:nullable ANode> isa nullable TKwdo */
8779 cltype126
= type_nullable__nitc__TKwdo
.color
;
8780 idtype127
= type_nullable__nitc__TKwdo
.id
;
8781 if(var_new_child
== NULL
) {
8784 if(cltype126
>= var_new_child
->type
->table_size
) {
8787 var125
= var_new_child
->type
->type_table
[cltype126
] == idtype127
;
8790 if (unlikely(!var125
)) {
8791 var_class_name128
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8792 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwdo", var_class_name128
);
8793 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1206);
8797 nitc__parser_prod___AMethPropdef___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwdo= on <self:AMethPropdef>*/
8802 var129
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMethPropdef> */
8803 if (var129
== NULL
) {
8804 var130
= 0; /* <var_old_child:ANode> cannot be null */
8806 { /* Inline kernel#Object#== (var129,var_old_child) on <var129:nullable AExpr> */
8807 var_other
= var_old_child
;
8809 { /* Inline kernel#Object#is_same_instance (var129,var_other) on <var129:nullable AExpr(AExpr)> */
8810 var135
= var129
== var_other
;
8813 RET_LABEL134
:(void)0;
8818 RET_LABEL132
:(void)0;
8823 /* <var_new_child:nullable ANode> isa nullable AExpr */
8824 cltype137
= type_nullable__nitc__AExpr
.color
;
8825 idtype138
= type_nullable__nitc__AExpr
.id
;
8826 if(var_new_child
== NULL
) {
8829 if(cltype137
>= var_new_child
->type
->table_size
) {
8832 var136
= var_new_child
->type
->type_table
[cltype137
] == idtype138
;
8835 if (unlikely(!var136
)) {
8836 var_class_name139
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8837 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name139
);
8838 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1210);
8842 ((void(*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_nitc__parser_nodes__AMethPropdef__n_block_61d
]))(self
, var_new_child
); /* n_block= on <self:AMethPropdef>*/
8847 var140
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwend
].val
; /* _n_kwend on <self:AMethPropdef> */
8848 if (var140
== NULL
) {
8849 var141
= 0; /* <var_old_child:ANode> cannot be null */
8851 { /* Inline kernel#Object#== (var140,var_old_child) on <var140:nullable TKwend> */
8852 var_other
= var_old_child
;
8854 { /* Inline kernel#Object#is_same_instance (var140,var_other) on <var140:nullable TKwend(TKwend)> */
8855 var146
= var140
== var_other
;
8858 RET_LABEL145
:(void)0;
8863 RET_LABEL143
:(void)0;
8868 /* <var_new_child:nullable ANode> isa nullable TKwend */
8869 cltype148
= type_nullable__nitc__TKwend
.color
;
8870 idtype149
= type_nullable__nitc__TKwend
.id
;
8871 if(var_new_child
== NULL
) {
8874 if(cltype148
>= var_new_child
->type
->table_size
) {
8877 var147
= var_new_child
->type
->type_table
[cltype148
] == idtype149
;
8880 if (unlikely(!var147
)) {
8881 var_class_name150
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8882 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name150
);
8883 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1214);
8887 nitc__parser_prod___AMethPropdef___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#AMethPropdef#n_kwend= on <self:AMethPropdef>*/
8894 /* method parser_prod#AMethPropdef#n_doc= for (self: AMethPropdef, nullable ADoc) */
8895 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
8896 val
* var_node
/* var node: nullable ADoc */;
8897 short int var
/* : Bool */;
8898 short int var1
/* : Bool */;
8899 val
* var_other
/* var other: nullable Object */;
8900 short int var3
/* : Bool */;
8901 short int var4
/* : Bool */;
8903 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AMethPropdef> */
8904 if (var_node
== NULL
) {
8905 var
= 0; /* is null */
8907 var
= 1; /* arg is null and recv is not */
8910 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
8911 var_other
= ((val
*)NULL
);
8913 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
8924 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
8925 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
8933 /* method parser_prod#AMethPropdef#n_kwredef= for (self: AMethPropdef, nullable TKwredef) */
8934 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
8935 val
* var_node
/* var node: nullable TKwredef */;
8936 short int var
/* : Bool */;
8937 short int var1
/* : Bool */;
8938 val
* var_other
/* var other: nullable Object */;
8939 short int var3
/* : Bool */;
8940 short int var4
/* : Bool */;
8942 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMethPropdef> */
8943 if (var_node
== NULL
) {
8944 var
= 0; /* is null */
8946 var
= 1; /* arg is null and recv is not */
8949 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
8950 var_other
= ((val
*)NULL
);
8952 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
8963 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
8964 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
8972 /* method parser_prod#AMethPropdef#n_visibility= for (self: AMethPropdef, nullable AVisibility) */
8973 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
8974 val
* var_node
/* var node: nullable AVisibility */;
8976 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AMethPropdef> */
8977 if (var_node
== NULL
) {
8978 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8979 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1232);
8982 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
8983 if (unlikely(var_node
== NULL
)) {
8984 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8985 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8988 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
8994 /* method parser_prod#AMethPropdef#n_kwmeth= for (self: AMethPropdef, nullable TKwmeth) */
8995 void nitc__parser_prod___AMethPropdef___n_kwmeth_61d(val
* self
, val
* p0
) {
8996 val
* var_node
/* var node: nullable TKwmeth */;
8997 short int var
/* : Bool */;
8998 short int var1
/* : Bool */;
8999 val
* var_other
/* var other: nullable Object */;
9000 short int var3
/* : Bool */;
9001 short int var4
/* : Bool */;
9003 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AMethPropdef> */
9004 if (var_node
== NULL
) {
9005 var
= 0; /* is null */
9007 var
= 1; /* arg is null and recv is not */
9010 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwmeth> */
9011 var_other
= ((val
*)NULL
);
9013 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwmeth(TKwmeth)>*/
9024 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwmeth(TKwmeth)> */
9025 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwmeth(TKwmeth)> */
9033 /* method parser_prod#AMethPropdef#n_kwinit= for (self: AMethPropdef, nullable TKwinit) */
9034 void nitc__parser_prod___AMethPropdef___n_kwinit_61d(val
* self
, val
* p0
) {
9035 val
* var_node
/* var node: nullable TKwinit */;
9036 short int var
/* : Bool */;
9037 short int var1
/* : Bool */;
9038 val
* var_other
/* var other: nullable Object */;
9039 short int var3
/* : Bool */;
9040 short int var4
/* : Bool */;
9042 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AMethPropdef> */
9043 if (var_node
== NULL
) {
9044 var
= 0; /* is null */
9046 var
= 1; /* arg is null and recv is not */
9049 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwinit> */
9050 var_other
= ((val
*)NULL
);
9052 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwinit(TKwinit)>*/
9063 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwinit(TKwinit)> */
9064 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwinit(TKwinit)> */
9072 /* method parser_prod#AMethPropdef#n_kwnew= for (self: AMethPropdef, nullable TKwnew) */
9073 void nitc__parser_prod___AMethPropdef___n_kwnew_61d(val
* self
, val
* p0
) {
9074 val
* var_node
/* var node: nullable TKwnew */;
9075 short int var
/* : Bool */;
9076 short int var1
/* : Bool */;
9077 val
* var_other
/* var other: nullable Object */;
9078 short int var3
/* : Bool */;
9079 short int var4
/* : Bool */;
9081 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwnew
].val
= var_node
; /* _n_kwnew on <self:AMethPropdef> */
9082 if (var_node
== NULL
) {
9083 var
= 0; /* is null */
9085 var
= 1; /* arg is null and recv is not */
9088 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwnew> */
9089 var_other
= ((val
*)NULL
);
9091 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwnew(TKwnew)>*/
9102 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnew(TKwnew)> */
9103 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnew(TKwnew)> */
9111 /* method parser_prod#AMethPropdef#n_methid= for (self: AMethPropdef, nullable AMethid) */
9112 void nitc__parser_prod___AMethPropdef___n_methid_61d(val
* self
, val
* p0
) {
9113 val
* var_node
/* var node: nullable AMethid */;
9114 short int var
/* : Bool */;
9115 short int var1
/* : Bool */;
9116 val
* var_other
/* var other: nullable Object */;
9117 short int var3
/* : Bool */;
9118 short int var4
/* : Bool */;
9120 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AMethPropdef> */
9121 if (var_node
== NULL
) {
9122 var
= 0; /* is null */
9124 var
= 1; /* arg is null and recv is not */
9127 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AMethid> */
9128 var_other
= ((val
*)NULL
);
9130 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AMethid(AMethid)>*/
9141 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AMethid(AMethid)> */
9142 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AMethid(AMethid)> */
9150 /* method parser_prod#AMethPropdef#n_signature= for (self: AMethPropdef, nullable ASignature) */
9151 void nitc__parser_prod___AMethPropdef___n_signature_61d(val
* self
, val
* p0
) {
9152 val
* var_node
/* var node: nullable ASignature */;
9154 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AMethPropdef> */
9155 if (var_node
== NULL
) {
9156 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9157 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1257);
9160 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ASignature> */
9161 if (unlikely(var_node
== NULL
)) {
9162 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9163 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9166 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ASignature> */
9172 /* method parser_prod#AMethPropdef#n_annotations= for (self: AMethPropdef, nullable AAnnotations) */
9173 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
9174 val
* var_node
/* var node: nullable AAnnotations */;
9175 short int var
/* : Bool */;
9176 short int var1
/* : Bool */;
9177 val
* var_other
/* var other: nullable Object */;
9178 short int var3
/* : Bool */;
9179 short int var4
/* : Bool */;
9181 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AMethPropdef> */
9182 if (var_node
== NULL
) {
9183 var
= 0; /* is null */
9185 var
= 1; /* arg is null and recv is not */
9188 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
9189 var_other
= ((val
*)NULL
);
9191 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
9202 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
9203 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
9211 /* method parser_prod#AMethPropdef#n_extern_calls= for (self: AMethPropdef, nullable AExternCalls) */
9212 void nitc__parser_prod___AMethPropdef___n_extern_calls_61d(val
* self
, val
* p0
) {
9213 val
* var_node
/* var node: nullable AExternCalls */;
9214 short int var
/* : Bool */;
9215 short int var1
/* : Bool */;
9216 val
* var_other
/* var other: nullable Object */;
9217 short int var3
/* : Bool */;
9218 short int var4
/* : Bool */;
9220 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_calls
].val
= var_node
; /* _n_extern_calls on <self:AMethPropdef> */
9221 if (var_node
== NULL
) {
9222 var
= 0; /* is null */
9224 var
= 1; /* arg is null and recv is not */
9227 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExternCalls> */
9228 var_other
= ((val
*)NULL
);
9230 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExternCalls(AExternCalls)>*/
9241 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCalls(AExternCalls)> */
9242 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCalls(AExternCalls)> */
9250 /* method parser_prod#AMethPropdef#n_extern_code_block= for (self: AMethPropdef, nullable AExternCodeBlock) */
9251 void nitc__parser_prod___AMethPropdef___n_extern_code_block_61d(val
* self
, val
* p0
) {
9252 val
* var_node
/* var node: nullable AExternCodeBlock */;
9253 short int var
/* : Bool */;
9254 short int var1
/* : Bool */;
9255 val
* var_other
/* var other: nullable Object */;
9256 short int var3
/* : Bool */;
9257 short int var4
/* : Bool */;
9259 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AMethPropdef> */
9260 if (var_node
== NULL
) {
9261 var
= 0; /* is null */
9263 var
= 1; /* arg is null and recv is not */
9266 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExternCodeBlock> */
9267 var_other
= ((val
*)NULL
);
9269 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/
9280 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9281 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExternCodeBlock(AExternCodeBlock)> */
9289 /* method parser_prod#AMethPropdef#n_kwdo= for (self: AMethPropdef, nullable TKwdo) */
9290 void nitc__parser_prod___AMethPropdef___n_kwdo_61d(val
* self
, val
* p0
) {
9291 val
* var_node
/* var node: nullable TKwdo */;
9292 short int var
/* : Bool */;
9293 short int var1
/* : Bool */;
9294 val
* var_other
/* var other: nullable Object */;
9295 short int var3
/* : Bool */;
9296 short int var4
/* : Bool */;
9298 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:AMethPropdef> */
9299 if (var_node
== NULL
) {
9300 var
= 0; /* is null */
9302 var
= 1; /* arg is null and recv is not */
9305 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwdo> */
9306 var_other
= ((val
*)NULL
);
9308 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwdo(TKwdo)>*/
9319 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwdo(TKwdo)> */
9320 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwdo(TKwdo)> */
9328 /* method parser_prod#AMethPropdef#n_block= for (self: AMethPropdef, nullable AExpr) */
9329 void nitc__parser_prod___AMethPropdef___n_block_61d(val
* self
, val
* p0
) {
9330 val
* var_node
/* var node: nullable AExpr */;
9331 short int var
/* : Bool */;
9332 short int var1
/* : Bool */;
9333 val
* var_other
/* var other: nullable Object */;
9334 short int var3
/* : Bool */;
9335 short int var4
/* : Bool */;
9337 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AMethPropdef> */
9338 if (var_node
== NULL
) {
9339 var
= 0; /* is null */
9341 var
= 1; /* arg is null and recv is not */
9344 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9345 var_other
= ((val
*)NULL
);
9347 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AExpr(AExpr)>*/
9358 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9359 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9367 /* method parser_prod#AMethPropdef#n_kwend= for (self: AMethPropdef, nullable TKwend) */
9368 void nitc__parser_prod___AMethPropdef___n_kwend_61d(val
* self
, val
* p0
) {
9369 val
* var_node
/* var node: nullable TKwend */;
9370 short int var
/* : Bool */;
9371 short int var1
/* : Bool */;
9372 val
* var_other
/* var other: nullable Object */;
9373 short int var3
/* : Bool */;
9374 short int var4
/* : Bool */;
9376 self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AMethPropdef> */
9377 if (var_node
== NULL
) {
9378 var
= 0; /* is null */
9380 var
= 1; /* arg is null and recv is not */
9383 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwend> */
9384 var_other
= ((val
*)NULL
);
9386 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwend(TKwend)>*/
9397 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwend(TKwend)> */
9398 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwend(TKwend)> */
9406 /* method parser_prod#AMethPropdef#visit_all for (self: AMethPropdef, Visitor) */
9407 void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9408 val
* var_v
/* var v: Visitor */;
9409 val
* var
/* : nullable ADoc */;
9410 val
* var1
/* : nullable TKwredef */;
9411 val
* var2
/* : nullable AVisibility */;
9412 val
* var3
/* : nullable TKwmeth */;
9413 val
* var4
/* : nullable TKwinit */;
9414 val
* var5
/* : nullable TKwnew */;
9415 val
* var6
/* : nullable AMethid */;
9416 val
* var7
/* : nullable ASignature */;
9417 val
* var8
/* : nullable AAnnotations */;
9418 val
* var9
/* : nullable AExternCalls */;
9419 val
* var10
/* : nullable AExternCodeBlock */;
9420 val
* var11
/* : nullable TKwdo */;
9421 val
* var12
/* : nullable AExpr */;
9422 val
* var13
/* : nullable TKwend */;
9424 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
9426 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9428 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
9430 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9432 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
9434 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9436 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AMethPropdef> */
9438 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9440 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AMethPropdef> */
9442 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9444 var5
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwnew
].val
; /* _n_kwnew on <self:AMethPropdef> */
9446 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9448 var6
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
9450 nitc___nitc__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9452 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
9454 nitc___nitc__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9456 var8
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AMethPropdef> */
9458 nitc___nitc__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9460 var9
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AMethPropdef> */
9462 nitc___nitc__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9464 var10
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AMethPropdef> */
9466 nitc___nitc__Visitor___enter_visit(var_v
, var10
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9468 var11
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwdo
].val
; /* _n_kwdo on <self:AMethPropdef> */
9470 nitc___nitc__Visitor___enter_visit(var_v
, var11
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9472 var12
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_block
].val
; /* _n_block on <self:AMethPropdef> */
9474 nitc___nitc__Visitor___enter_visit(var_v
, var12
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9476 var13
= self
->attrs
[COLOR_nitc__parser_nodes__AMethPropdef___n_kwend
].val
; /* _n_kwend on <self:AMethPropdef> */
9478 nitc___nitc__Visitor___enter_visit(var_v
, var13
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9482 /* method parser_prod#ASuperPropdef#init_asuperpropdef for (self: ASuperPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwsuper, nullable AType, nullable AAnnotations) */
9483 void nitc__parser_prod___ASuperPropdef___init_asuperpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
9484 val
* var_n_doc
/* var n_doc: nullable ADoc */;
9485 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
9486 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
9487 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
9488 val
* var_n_type
/* var n_type: nullable AType */;
9489 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9490 short int var
/* : Bool */;
9491 short int var2
/* : Bool */;
9492 val
* var_other
/* var other: nullable Object */;
9493 short int var4
/* : Bool */;
9494 short int var5
/* : Bool */;
9495 short int var7
/* : Bool */;
9496 short int var8
/* : Bool */;
9497 short int var10
/* : Bool */;
9498 short int var11
/* : Bool */;
9499 short int var16
/* : Bool */;
9500 short int var17
/* : Bool */;
9501 short int var19
/* : Bool */;
9502 short int var20
/* : Bool */;
9504 { /* Inline kernel#Object#init (self) on <self:ASuperPropdef> */
9510 var_n_visibility
= p2
;
9513 var_n_annotations
= p5
;
9514 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ASuperPropdef> */
9515 if (var_n_doc
== NULL
) {
9516 var
= 0; /* is null */
9518 var
= 1; /* arg is null and recv is not */
9521 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
9522 var_other
= ((val
*)NULL
);
9524 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
9535 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
9536 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
9542 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ASuperPropdef> */
9543 if (var_n_kwredef
== NULL
) {
9544 var7
= 0; /* is null */
9546 var7
= 1; /* arg is null and recv is not */
9549 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
9550 var_other
= ((val
*)NULL
);
9552 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
9563 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
9564 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
9565 RET_LABEL12
:(void)0;
9570 if (unlikely(var_n_visibility
== NULL
)) {
9571 PRINT_ERROR("Runtime error: %s", "Cast failed");
9572 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1323);
9575 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ASuperPropdef> */
9576 if (var_n_visibility
== NULL
) {
9577 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9578 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1324);
9581 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility> */
9582 if (unlikely(var_n_visibility
== NULL
)) {
9583 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9584 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9587 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility> */
9588 RET_LABEL13
:(void)0;
9591 if (unlikely(var_n_kwsuper
== NULL
)) {
9592 PRINT_ERROR("Runtime error: %s", "Cast failed");
9593 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1325);
9596 self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperPropdef> */
9597 if (var_n_kwsuper
== NULL
) {
9598 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9599 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1326);
9602 { /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on <var_n_kwsuper:nullable TKwsuper> */
9603 if (unlikely(var_n_kwsuper
== NULL
)) {
9604 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9605 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9608 var_n_kwsuper
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwsuper:nullable TKwsuper> */
9609 RET_LABEL14
:(void)0;
9612 if (unlikely(var_n_type
== NULL
)) {
9613 PRINT_ERROR("Runtime error: %s", "Cast failed");
9614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1327);
9617 self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:ASuperPropdef> */
9618 if (var_n_type
== NULL
) {
9619 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9620 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1328);
9623 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
9624 if (unlikely(var_n_type
== NULL
)) {
9625 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9626 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9629 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
9630 RET_LABEL15
:(void)0;
9633 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperPropdef> */
9634 if (var_n_annotations
== NULL
) {
9635 var16
= 0; /* is null */
9637 var16
= 1; /* arg is null and recv is not */
9640 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
9641 var_other
= ((val
*)NULL
);
9643 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
9648 RET_LABEL18
:(void)0;
9654 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9655 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
9656 RET_LABEL21
:(void)0;
9663 /* method parser_prod#ASuperPropdef#replace_child for (self: ASuperPropdef, ANode, nullable ANode) */
9664 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9665 val
* var_old_child
/* var old_child: ANode */;
9666 val
* var_new_child
/* var new_child: nullable ANode */;
9667 val
* var
/* : nullable ADoc */;
9668 short int var1
/* : Bool */;
9669 short int var2
/* : Bool */;
9670 val
* var_other
/* var other: nullable Object */;
9671 short int var4
/* : Bool */;
9672 short int var6
/* : Bool */;
9673 short int var7
/* : Bool */;
9676 const char* var_class_name
;
9677 val
* var8
/* : nullable TKwredef */;
9678 short int var9
/* : Bool */;
9679 short int var10
/* : Bool */;
9680 short int var12
/* : Bool */;
9681 short int var14
/* : Bool */;
9682 short int var15
/* : Bool */;
9685 const char* var_class_name18
;
9686 val
* var19
/* : nullable AVisibility */;
9687 short int var20
/* : Bool */;
9688 short int var21
/* : Bool */;
9689 short int var23
/* : Bool */;
9690 short int var25
/* : Bool */;
9691 short int var26
/* : Bool */;
9694 const char* var_class_name29
;
9695 val
* var30
/* : TKwsuper */;
9696 short int var31
/* : Bool */;
9697 short int var33
/* : Bool */;
9698 short int var35
/* : Bool */;
9699 short int var36
/* : Bool */;
9702 const char* var_class_name39
;
9703 val
* var40
/* : AType */;
9704 short int var41
/* : Bool */;
9705 short int var43
/* : Bool */;
9706 short int var45
/* : Bool */;
9707 short int var46
/* : Bool */;
9710 const char* var_class_name49
;
9711 val
* var50
/* : nullable AAnnotations */;
9712 short int var51
/* : Bool */;
9713 short int var52
/* : Bool */;
9714 short int var54
/* : Bool */;
9715 short int var56
/* : Bool */;
9716 short int var57
/* : Bool */;
9719 const char* var_class_name60
;
9722 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ASuperPropdef> */
9724 var1
= 0; /* <var_old_child:ANode> cannot be null */
9726 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
9727 var_other
= var_old_child
;
9729 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
9730 var6
= var
== var_other
;
9743 /* <var_new_child:nullable ANode> isa nullable ADoc */
9744 cltype
= type_nullable__nitc__ADoc
.color
;
9745 idtype
= type_nullable__nitc__ADoc
.id
;
9746 if(var_new_child
== NULL
) {
9749 if(cltype
>= var_new_child
->type
->table_size
) {
9752 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9755 if (unlikely(!var7
)) {
9756 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9757 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
9758 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1336);
9762 nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_doc= on <self:ASuperPropdef>*/
9767 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ASuperPropdef> */
9769 var9
= 0; /* <var_old_child:ANode> cannot be null */
9771 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
9772 var_other
= var_old_child
;
9774 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
9775 var14
= var8
== var_other
;
9778 RET_LABEL13
:(void)0;
9783 RET_LABEL11
:(void)0;
9788 /* <var_new_child:nullable ANode> isa nullable TKwredef */
9789 cltype16
= type_nullable__nitc__TKwredef
.color
;
9790 idtype17
= type_nullable__nitc__TKwredef
.id
;
9791 if(var_new_child
== NULL
) {
9794 if(cltype16
>= var_new_child
->type
->table_size
) {
9797 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
9800 if (unlikely(!var15
)) {
9801 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9802 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
9803 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1340);
9807 nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_kwredef= on <self:ASuperPropdef>*/
9812 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ASuperPropdef> */
9813 if (var19
== NULL
) {
9814 var20
= 0; /* <var_old_child:ANode> cannot be null */
9816 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
9817 var_other
= var_old_child
;
9819 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
9820 var25
= var19
== var_other
;
9823 RET_LABEL24
:(void)0;
9828 RET_LABEL22
:(void)0;
9833 /* <var_new_child:nullable ANode> isa AVisibility */
9834 cltype27
= type_nitc__AVisibility
.color
;
9835 idtype28
= type_nitc__AVisibility
.id
;
9836 if(var_new_child
== NULL
) {
9839 if(cltype27
>= var_new_child
->type
->table_size
) {
9842 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
9845 if (unlikely(!var26
)) {
9846 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9847 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29
);
9848 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1344);
9852 nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_visibility= on <self:ASuperPropdef>*/
9857 var30
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperPropdef> */
9858 if (unlikely(var30
== NULL
)) {
9859 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
9860 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1347);
9864 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwsuper> */
9865 var_other
= var_old_child
;
9867 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwsuper> */
9868 var35
= var30
== var_other
;
9871 RET_LABEL34
:(void)0;
9876 RET_LABEL32
:(void)0;
9880 /* <var_new_child:nullable ANode> isa TKwsuper */
9881 cltype37
= type_nitc__TKwsuper
.color
;
9882 idtype38
= type_nitc__TKwsuper
.id
;
9883 if(var_new_child
== NULL
) {
9886 if(cltype37
>= var_new_child
->type
->table_size
) {
9889 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
9892 if (unlikely(!var36
)) {
9893 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9894 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name39
);
9895 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1348);
9899 nitc__parser_prod___ASuperPropdef___n_kwsuper_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_kwsuper= on <self:ASuperPropdef>*/
9904 var40
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_type
].val
; /* _n_type on <self:ASuperPropdef> */
9905 if (unlikely(var40
== NULL
)) {
9906 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
9907 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1351);
9911 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:AType> */
9912 var_other
= var_old_child
;
9914 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:AType> */
9915 var45
= var40
== var_other
;
9918 RET_LABEL44
:(void)0;
9923 RET_LABEL42
:(void)0;
9927 /* <var_new_child:nullable ANode> isa AType */
9928 cltype47
= type_nitc__AType
.color
;
9929 idtype48
= type_nitc__AType
.id
;
9930 if(var_new_child
== NULL
) {
9933 if(cltype47
>= var_new_child
->type
->table_size
) {
9936 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
9939 if (unlikely(!var46
)) {
9940 var_class_name49
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9941 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name49
);
9942 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1352);
9946 nitc__parser_prod___ASuperPropdef___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_type= on <self:ASuperPropdef>*/
9951 var50
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperPropdef> */
9952 if (var50
== NULL
) {
9953 var51
= 0; /* <var_old_child:ANode> cannot be null */
9955 { /* Inline kernel#Object#== (var50,var_old_child) on <var50:nullable AAnnotations> */
9956 var_other
= var_old_child
;
9958 { /* Inline kernel#Object#is_same_instance (var50,var_other) on <var50:nullable AAnnotations(AAnnotations)> */
9959 var56
= var50
== var_other
;
9962 RET_LABEL55
:(void)0;
9967 RET_LABEL53
:(void)0;
9972 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
9973 cltype58
= type_nullable__nitc__AAnnotations
.color
;
9974 idtype59
= type_nullable__nitc__AAnnotations
.id
;
9975 if(var_new_child
== NULL
) {
9978 if(cltype58
>= var_new_child
->type
->table_size
) {
9981 var57
= var_new_child
->type
->type_table
[cltype58
] == idtype59
;
9984 if (unlikely(!var57
)) {
9985 var_class_name60
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9986 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name60
);
9987 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1356);
9991 nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#ASuperPropdef#n_annotations= on <self:ASuperPropdef>*/