1 #include "nitc__parser_prod.sep.0.h"
2 /* method parser_prod#ASuperPropdef#n_doc= for (self: ASuperPropdef, nullable ADoc) */
3 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
4 val
* var_node
/* var node: nullable ADoc */;
5 short int var
/* : Bool */;
6 short int var1
/* : Bool */;
7 val
* var_other
/* var other: nullable Object */;
8 short int var3
/* : Bool */;
9 short int var4
/* : Bool */;
11 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:ASuperPropdef> */
12 if (var_node
== NULL
) {
13 var
= 0; /* is null */
15 var
= 1; /* arg is null and recv is not */
18 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
19 var_other
= ((val
*)NULL
);
21 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
32 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
33 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
41 /* method parser_prod#ASuperPropdef#n_kwredef= for (self: ASuperPropdef, nullable TKwredef) */
42 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
43 val
* var_node
/* var node: nullable TKwredef */;
44 short int var
/* : Bool */;
45 short int var1
/* : Bool */;
46 val
* var_other
/* var other: nullable Object */;
47 short int var3
/* : Bool */;
48 short int var4
/* : Bool */;
50 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ASuperPropdef> */
51 if (var_node
== NULL
) {
52 var
= 0; /* is null */
54 var
= 1; /* arg is null and recv is not */
57 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
58 var_other
= ((val
*)NULL
);
60 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
71 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
72 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
80 /* method parser_prod#ASuperPropdef#n_visibility= for (self: ASuperPropdef, nullable AVisibility) */
81 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
82 val
* var_node
/* var node: nullable AVisibility */;
84 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:ASuperPropdef> */
85 if (var_node
== NULL
) {
86 PRINT_ERROR("Runtime error: %s", "Receiver is null");
87 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1374);
90 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility> */
91 if (unlikely(var_node
== NULL
)) {
92 PRINT_ERROR("Runtime error: %s", "Receiver is null");
93 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
96 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility> */
102 /* method parser_prod#ASuperPropdef#n_kwsuper= for (self: ASuperPropdef, TKwsuper) */
103 void nitc__parser_prod___ASuperPropdef___n_kwsuper_61d(val
* self
, val
* p0
) {
104 val
* var_node
/* var node: TKwsuper */;
106 self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperPropdef> */
108 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwsuper> */
109 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwsuper> */
115 /* method parser_prod#ASuperPropdef#n_type= for (self: ASuperPropdef, AType) */
116 void nitc__parser_prod___ASuperPropdef___n_type_61d(val
* self
, val
* p0
) {
117 val
* var_node
/* var node: AType */;
119 self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_type
].val
= var_node
; /* _n_type on <self:ASuperPropdef> */
121 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
122 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
128 /* method parser_prod#ASuperPropdef#n_annotations= for (self: ASuperPropdef, nullable AAnnotations) */
129 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
130 val
* var_node
/* var node: nullable AAnnotations */;
131 short int var
/* : Bool */;
132 short int var1
/* : Bool */;
133 val
* var_other
/* var other: nullable Object */;
134 short int var3
/* : Bool */;
135 short int var4
/* : Bool */;
137 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperPropdef> */
138 if (var_node
== NULL
) {
139 var
= 0; /* is null */
141 var
= 1; /* arg is null and recv is not */
144 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
145 var_other
= ((val
*)NULL
);
147 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
158 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
159 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
167 /* method parser_prod#ASuperPropdef#visit_all for (self: ASuperPropdef, Visitor) */
168 void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
169 val
* var_v
/* var v: Visitor */;
170 val
* var
/* : nullable ADoc */;
171 val
* var1
/* : nullable TKwredef */;
172 val
* var2
/* : nullable AVisibility */;
173 val
* var3
/* : TKwsuper */;
174 val
* var4
/* : AType */;
175 val
* var5
/* : nullable AAnnotations */;
177 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:ASuperPropdef> */
179 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
181 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:ASuperPropdef> */
183 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
185 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:ASuperPropdef> */
187 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
189 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperPropdef> */
190 if (unlikely(var3
== NULL
)) {
191 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper");
192 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1398);
196 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
198 var4
= self
->attrs
[COLOR_nitc__parser_nodes__ASuperPropdef___n_type
].val
; /* _n_type on <self:ASuperPropdef> */
199 if (unlikely(var4
== NULL
)) {
200 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
201 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1399);
205 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
207 var5
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperPropdef> */
209 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
213 /* method parser_prod#AAnnotPropdef#init_aannotpropdef for (self: AAnnotPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
214 void nitc__parser_prod___AAnnotPropdef___init_aannotpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
215 val
* var_n_doc
/* var n_doc: nullable ADoc */;
216 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
217 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
218 val
* var_n_atid
/* var n_atid: nullable AAtid */;
219 val
* var_n_opar
/* var n_opar: nullable TOpar */;
220 val
* var_n_args
/* var n_args: Collection[Object] */;
221 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
222 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
223 short int var
/* : Bool */;
224 short int var2
/* : Bool */;
225 val
* var_other
/* var other: nullable Object */;
226 short int var4
/* : Bool */;
227 short int var5
/* : Bool */;
228 short int var7
/* : Bool */;
229 short int var8
/* : Bool */;
230 short int var10
/* : Bool */;
231 short int var11
/* : Bool */;
232 short int var13
/* : Bool */;
233 short int var14
/* : Bool */;
234 short int var16
/* : Bool */;
235 short int var17
/* : Bool */;
236 short int var20
/* : Bool */;
237 short int var21
/* : Bool */;
238 short int var23
/* : Bool */;
239 short int var24
/* : Bool */;
240 val
* var26
/* : ANodes[AExpr] */;
241 val
* var28
/* : ANodes[AExpr] */;
242 short int var29
/* : Bool */;
243 short int var30
/* : Bool */;
244 short int var32
/* : Bool */;
245 short int var33
/* : Bool */;
246 short int var35
/* : Bool */;
247 short int var36
/* : Bool */;
248 short int var38
/* : Bool */;
249 short int var39
/* : Bool */;
251 { /* Inline kernel#Object#init (self) on <self:AAnnotPropdef> */
257 var_n_visibility
= p2
;
262 var_n_annotations
= p7
;
263 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAnnotPropdef> */
264 if (var_n_doc
== NULL
) {
265 var
= 0; /* is null */
267 var
= 1; /* arg is null and recv is not */
270 { /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on <var_n_doc:nullable ADoc> */
271 var_other
= ((val
*)NULL
);
273 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_doc
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_doc
, var_other
); /* == on <var_n_doc:nullable ADoc(ADoc)>*/
284 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
285 var_n_doc
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
291 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAnnotPropdef> */
292 if (var_n_kwredef
== NULL
) {
293 var7
= 0; /* is null */
295 var7
= 1; /* arg is null and recv is not */
298 { /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on <var_n_kwredef:nullable TKwredef> */
299 var_other
= ((val
*)NULL
);
301 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwredef
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
); /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/
312 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
313 var_n_kwredef
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
319 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAnnotPropdef> */
320 if (var_n_visibility
== NULL
) {
321 var13
= 0; /* is null */
323 var13
= 1; /* arg is null and recv is not */
326 { /* Inline kernel#Object#!= (var_n_visibility,((val*)NULL)) on <var_n_visibility:nullable AVisibility> */
327 var_other
= ((val
*)NULL
);
329 var16
= ((short int(*)(val
* self
, val
* p0
))(var_n_visibility
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_visibility
, var_other
); /* == on <var_n_visibility:nullable AVisibility(AVisibility)>*/
340 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility(AVisibility)> */
341 var_n_visibility
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility(AVisibility)> */
347 if (unlikely(var_n_atid
== NULL
)) {
348 PRINT_ERROR("Runtime error: %s", "Cast failed");
349 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1421);
352 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_atid
].val
= var_n_atid
; /* _n_atid on <self:AAnnotPropdef> */
353 if (var_n_atid
== NULL
) {
354 PRINT_ERROR("Runtime error: %s", "Receiver is null");
355 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1422);
358 { /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on <var_n_atid:nullable AAtid> */
359 if (unlikely(var_n_atid
== NULL
)) {
360 PRINT_ERROR("Runtime error: %s", "Receiver is null");
361 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
364 var_n_atid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_atid:nullable AAtid> */
368 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotPropdef> */
369 if (var_n_opar
== NULL
) {
370 var20
= 0; /* is null */
372 var20
= 1; /* arg is null and recv is not */
375 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
376 var_other
= ((val
*)NULL
);
378 var23
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
389 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
390 var_n_opar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
397 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
398 var28
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
399 if (unlikely(var28
== NULL
)) {
400 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
401 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2926);
409 nitc___nitc__ANodes___unsafe_add_all(var26
, var_n_args
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var26:ANodes[AExpr]>*/
411 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotPropdef> */
412 if (var_n_cpar
== NULL
) {
413 var29
= 0; /* is null */
415 var29
= 1; /* arg is null and recv is not */
418 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
419 var_other
= ((val
*)NULL
);
421 var32
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
432 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
433 var_n_cpar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
439 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAnnotPropdef> */
440 if (var_n_annotations
== NULL
) {
441 var35
= 0; /* is null */
443 var35
= 1; /* arg is null and recv is not */
446 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
447 var_other
= ((val
*)NULL
);
449 var38
= ((short int(*)(val
* self
, val
* p0
))(var_n_annotations
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_annotations
, var_other
); /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/
460 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
461 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
469 /* method parser_prod#AAnnotPropdef#replace_child for (self: AAnnotPropdef, ANode, nullable ANode) */
470 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
471 val
* var_old_child
/* var old_child: ANode */;
472 val
* var_new_child
/* var new_child: nullable ANode */;
473 val
* var
/* : nullable ADoc */;
474 short int var1
/* : Bool */;
475 short int var2
/* : Bool */;
476 val
* var_other
/* var other: nullable Object */;
477 short int var4
/* : Bool */;
478 short int var6
/* : Bool */;
479 short int var7
/* : Bool */;
482 const char* var_class_name
;
483 val
* var8
/* : nullable TKwredef */;
484 short int var9
/* : Bool */;
485 short int var10
/* : Bool */;
486 short int var12
/* : Bool */;
487 short int var14
/* : Bool */;
488 short int var15
/* : Bool */;
491 const char* var_class_name18
;
492 val
* var19
/* : nullable AVisibility */;
493 short int var20
/* : Bool */;
494 short int var21
/* : Bool */;
495 short int var23
/* : Bool */;
496 short int var25
/* : Bool */;
497 short int var26
/* : Bool */;
500 const char* var_class_name29
;
501 val
* var30
/* : AAtid */;
502 short int var31
/* : Bool */;
503 short int var33
/* : Bool */;
504 short int var35
/* : Bool */;
505 short int var36
/* : Bool */;
508 const char* var_class_name39
;
509 val
* var40
/* : nullable TOpar */;
510 short int var41
/* : Bool */;
511 short int var42
/* : Bool */;
512 short int var44
/* : Bool */;
513 short int var46
/* : Bool */;
514 short int var47
/* : Bool */;
517 const char* var_class_name50
;
518 val
* var51
/* : ANodes[AExpr] */;
519 val
* var53
/* : ANodes[AExpr] */;
520 short int var54
/* : Bool */;
521 val
* var55
/* : nullable TCpar */;
522 short int var56
/* : Bool */;
523 short int var57
/* : Bool */;
524 short int var59
/* : Bool */;
525 short int var61
/* : Bool */;
526 short int var62
/* : Bool */;
529 const char* var_class_name65
;
530 val
* var66
/* : nullable AAnnotations */;
531 short int var67
/* : Bool */;
532 short int var68
/* : Bool */;
533 short int var70
/* : Bool */;
534 short int var72
/* : Bool */;
535 short int var73
/* : Bool */;
538 const char* var_class_name76
;
541 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAnnotPropdef> */
543 var1
= 0; /* <var_old_child:ANode> cannot be null */
545 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
546 var_other
= var_old_child
;
548 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
549 var6
= var
== var_other
;
562 /* <var_new_child:nullable ANode> isa nullable ADoc */
563 cltype
= type_nullable__nitc__ADoc
.color
;
564 idtype
= type_nullable__nitc__ADoc
.id
;
565 if(var_new_child
== NULL
) {
568 if(cltype
>= var_new_child
->type
->table_size
) {
571 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
574 if (unlikely(!var7
)) {
575 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
576 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
577 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1435);
581 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_doc= on <self:AAnnotPropdef>*/
586 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotPropdef> */
588 var9
= 0; /* <var_old_child:ANode> cannot be null */
590 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
591 var_other
= var_old_child
;
593 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
594 var14
= var8
== var_other
;
607 /* <var_new_child:nullable ANode> isa nullable TKwredef */
608 cltype16
= type_nullable__nitc__TKwredef
.color
;
609 idtype17
= type_nullable__nitc__TKwredef
.id
;
610 if(var_new_child
== NULL
) {
613 if(cltype16
>= var_new_child
->type
->table_size
) {
616 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
619 if (unlikely(!var15
)) {
620 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
621 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
622 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1439);
626 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_kwredef= on <self:AAnnotPropdef>*/
631 var19
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAnnotPropdef> */
633 var20
= 0; /* <var_old_child:ANode> cannot be null */
635 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
636 var_other
= var_old_child
;
638 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
639 var25
= var19
== var_other
;
652 /* <var_new_child:nullable ANode> isa nullable AVisibility */
653 cltype27
= type_nullable__nitc__AVisibility
.color
;
654 idtype28
= type_nullable__nitc__AVisibility
.id
;
655 if(var_new_child
== NULL
) {
658 if(cltype27
>= var_new_child
->type
->table_size
) {
661 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
664 if (unlikely(!var26
)) {
665 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
666 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29
);
667 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1443);
671 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_visibility= on <self:AAnnotPropdef>*/
676 var30
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotPropdef> */
677 if (unlikely(var30
== NULL
)) {
678 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
679 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1446);
683 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AAtid> */
684 var_other
= var_old_child
;
686 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AAtid> */
687 var35
= var30
== var_other
;
699 /* <var_new_child:nullable ANode> isa AAtid */
700 cltype37
= type_nitc__AAtid
.color
;
701 idtype38
= type_nitc__AAtid
.id
;
702 if(var_new_child
== NULL
) {
705 if(cltype37
>= var_new_child
->type
->table_size
) {
708 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
711 if (unlikely(!var36
)) {
712 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
713 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name39
);
714 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1447);
718 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_atid= on <self:AAnnotPropdef>*/
723 var40
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotPropdef> */
725 var41
= 0; /* <var_old_child:ANode> cannot be null */
727 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable TOpar> */
728 var_other
= var_old_child
;
730 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable TOpar(TOpar)> */
731 var46
= var40
== var_other
;
744 /* <var_new_child:nullable ANode> isa nullable TOpar */
745 cltype48
= type_nullable__nitc__TOpar
.color
;
746 idtype49
= type_nullable__nitc__TOpar
.id
;
747 if(var_new_child
== NULL
) {
750 if(cltype48
>= var_new_child
->type
->table_size
) {
753 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
756 if (unlikely(!var47
)) {
757 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
758 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name50
);
759 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1451);
763 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_opar= on <self:AAnnotPropdef>*/
769 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
770 var53
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
771 if (unlikely(var53
== NULL
)) {
772 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
773 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2926);
781 var54
= nitc___nitc__ANodes___replace_child(var51
, var_old_child
, var_new_child
);
787 var55
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotPropdef> */
789 var56
= 0; /* <var_old_child:ANode> cannot be null */
791 { /* Inline kernel#Object#== (var55,var_old_child) on <var55:nullable TCpar> */
792 var_other
= var_old_child
;
794 { /* Inline kernel#Object#is_same_instance (var55,var_other) on <var55:nullable TCpar(TCpar)> */
795 var61
= var55
== var_other
;
808 /* <var_new_child:nullable ANode> isa nullable TCpar */
809 cltype63
= type_nullable__nitc__TCpar
.color
;
810 idtype64
= type_nullable__nitc__TCpar
.id
;
811 if(var_new_child
== NULL
) {
814 if(cltype63
>= var_new_child
->type
->table_size
) {
817 var62
= var_new_child
->type
->type_table
[cltype63
] == idtype64
;
820 if (unlikely(!var62
)) {
821 var_class_name65
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
822 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name65
);
823 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1456);
827 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_cpar= on <self:AAnnotPropdef>*/
832 var66
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotPropdef> */
834 var67
= 0; /* <var_old_child:ANode> cannot be null */
836 { /* Inline kernel#Object#== (var66,var_old_child) on <var66:nullable AAnnotations> */
837 var_other
= var_old_child
;
839 { /* Inline kernel#Object#is_same_instance (var66,var_other) on <var66:nullable AAnnotations(AAnnotations)> */
840 var72
= var66
== var_other
;
853 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
854 cltype74
= type_nullable__nitc__AAnnotations
.color
;
855 idtype75
= type_nullable__nitc__AAnnotations
.id
;
856 if(var_new_child
== NULL
) {
859 if(cltype74
>= var_new_child
->type
->table_size
) {
862 var73
= var_new_child
->type
->type_table
[cltype74
] == idtype75
;
865 if (unlikely(!var73
)) {
866 var_class_name76
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
867 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name76
);
868 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1460);
872 nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotPropdef#n_annotations= on <self:AAnnotPropdef>*/
879 /* method parser_prod#AAnnotPropdef#n_doc= for (self: AAnnotPropdef, nullable ADoc) */
880 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val
* self
, val
* p0
) {
881 val
* var_node
/* var node: nullable ADoc */;
882 short int var
/* : Bool */;
883 short int var1
/* : Bool */;
884 val
* var_other
/* var other: nullable Object */;
885 short int var3
/* : Bool */;
886 short int var4
/* : Bool */;
888 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
= var_node
; /* _n_doc on <self:AAnnotPropdef> */
889 if (var_node
== NULL
) {
890 var
= 0; /* is null */
892 var
= 1; /* arg is null and recv is not */
895 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ADoc> */
896 var_other
= ((val
*)NULL
);
898 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable ADoc(ADoc)>*/
909 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
910 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
918 /* method parser_prod#AAnnotPropdef#n_kwredef= for (self: AAnnotPropdef, nullable TKwredef) */
919 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val
* self
, val
* p0
) {
920 val
* var_node
/* var node: nullable TKwredef */;
921 short int var
/* : Bool */;
922 short int var1
/* : Bool */;
923 val
* var_other
/* var other: nullable Object */;
924 short int var3
/* : Bool */;
925 short int var4
/* : Bool */;
927 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAnnotPropdef> */
928 if (var_node
== NULL
) {
929 var
= 0; /* is null */
931 var
= 1; /* arg is null and recv is not */
934 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwredef> */
935 var_other
= ((val
*)NULL
);
937 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TKwredef(TKwredef)>*/
948 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
949 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
957 /* method parser_prod#AAnnotPropdef#n_visibility= for (self: AAnnotPropdef, nullable AVisibility) */
958 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val
* self
, val
* p0
) {
959 val
* var_node
/* var node: nullable AVisibility */;
960 short int var
/* : Bool */;
961 short int var1
/* : Bool */;
962 val
* var_other
/* var other: nullable Object */;
963 short int var3
/* : Bool */;
964 short int var4
/* : Bool */;
966 self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAnnotPropdef> */
967 if (var_node
== NULL
) {
968 var
= 0; /* is null */
970 var
= 1; /* arg is null and recv is not */
973 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AVisibility> */
974 var_other
= ((val
*)NULL
);
976 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AVisibility(AVisibility)>*/
987 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility(AVisibility)> */
988 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility(AVisibility)> */
996 /* method parser_prod#AAnnotPropdef#n_atid= for (self: AAnnotPropdef, AAtid) */
997 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
998 val
* var_node
/* var node: AAtid */;
1000 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_atid
].val
= var_node
; /* _n_atid on <self:AAnnotPropdef> */
1002 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAtid> */
1003 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAtid> */
1009 /* method parser_prod#AAnnotPropdef#n_opar= for (self: AAnnotPropdef, nullable TOpar) */
1010 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
1011 val
* var_node
/* var node: nullable TOpar */;
1012 short int var
/* : Bool */;
1013 short int var1
/* : Bool */;
1014 val
* var_other
/* var other: nullable Object */;
1015 short int var3
/* : Bool */;
1016 short int var4
/* : Bool */;
1018 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotPropdef> */
1019 if (var_node
== NULL
) {
1020 var
= 0; /* is null */
1022 var
= 1; /* arg is null and recv is not */
1025 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
1026 var_other
= ((val
*)NULL
);
1028 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TOpar(TOpar)>*/
1039 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
1040 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
1048 /* method parser_prod#AAnnotPropdef#n_cpar= for (self: AAnnotPropdef, nullable TCpar) */
1049 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
1050 val
* var_node
/* var node: nullable TCpar */;
1051 short int var
/* : Bool */;
1052 short int var1
/* : Bool */;
1053 val
* var_other
/* var other: nullable Object */;
1054 short int var3
/* : Bool */;
1055 short int var4
/* : Bool */;
1057 self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotPropdef> */
1058 if (var_node
== NULL
) {
1059 var
= 0; /* is null */
1061 var
= 1; /* arg is null and recv is not */
1064 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
1065 var_other
= ((val
*)NULL
);
1067 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable TCpar(TCpar)>*/
1078 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
1079 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
1087 /* method parser_prod#AAnnotPropdef#n_annotations= for (self: AAnnotPropdef, nullable AAnnotations) */
1088 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
1089 val
* var_node
/* var node: nullable AAnnotations */;
1090 short int var
/* : Bool */;
1091 short int var1
/* : Bool */;
1092 val
* var_other
/* var other: nullable Object */;
1093 short int var3
/* : Bool */;
1094 short int var4
/* : Bool */;
1096 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAnnotPropdef> */
1097 if (var_node
== NULL
) {
1098 var
= 0; /* is null */
1100 var
= 1; /* arg is null and recv is not */
1103 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
1104 var_other
= ((val
*)NULL
);
1106 var3
= ((short int(*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_node
, var_other
); /* == on <var_node:nullable AAnnotations(AAnnotations)>*/
1117 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
1118 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
1126 /* method parser_prod#AAnnotPropdef#visit_all for (self: AAnnotPropdef, Visitor) */
1127 void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1128 val
* var_v
/* var v: Visitor */;
1129 val
* var
/* : nullable ADoc */;
1130 val
* var1
/* : nullable TKwredef */;
1131 val
* var2
/* : nullable AVisibility */;
1132 val
* var3
/* : AAtid */;
1133 val
* var4
/* : nullable TOpar */;
1134 val
* var5
/* : ANodes[AExpr] */;
1135 val
* var7
/* : ANodes[AExpr] */;
1136 val
* var8
/* : nullable TCpar */;
1137 val
* var9
/* : nullable AAnnotations */;
1139 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_doc
].val
; /* _n_doc on <self:AAnnotPropdef> */
1141 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1143 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotPropdef> */
1145 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1147 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ADefinition___n_visibility
].val
; /* _n_visibility on <self:AAnnotPropdef> */
1149 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1151 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotPropdef> */
1152 if (unlikely(var3
== NULL
)) {
1153 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
1154 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1507);
1158 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1160 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotPropdef> */
1162 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1165 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotPropdef> */
1166 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotPropdef> */
1167 if (unlikely(var7
== NULL
)) {
1168 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
1169 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 2926);
1177 nitc___nitc__ANodes___visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AExpr]>*/
1179 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotPropdef> */
1181 nitc___nitc__Visitor___enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1183 var9
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotPropdef> */
1185 nitc___nitc__Visitor___enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1189 /* method parser_prod#AIdMethid#init_aidmethid for (self: AIdMethid, nullable TId) */
1190 void nitc__parser_prod___AIdMethid___init_aidmethid(val
* self
, val
* p0
) {
1191 val
* var_n_id
/* var n_id: nullable TId */;
1193 { /* Inline kernel#Object#init (self) on <self:AIdMethid> */
1198 if (unlikely(var_n_id
== NULL
)) {
1199 PRINT_ERROR("Runtime error: %s", "Cast failed");
1200 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1519);
1203 self
->attrs
[COLOR_nitc__parser_nodes__AIdMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdMethid> */
1204 if (var_n_id
== NULL
) {
1205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1206 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1520);
1209 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
1210 if (unlikely(var_n_id
== NULL
)) {
1211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1212 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1215 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
1221 /* method parser_prod#AIdMethid#replace_child for (self: AIdMethid, ANode, nullable ANode) */
1222 void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1223 val
* var_old_child
/* var old_child: ANode */;
1224 val
* var_new_child
/* var new_child: nullable ANode */;
1225 val
* var
/* : TId */;
1226 short int var1
/* : Bool */;
1227 val
* var_other
/* var other: nullable Object */;
1228 short int var3
/* : Bool */;
1229 short int var5
/* : Bool */;
1230 short int var6
/* : Bool */;
1233 const char* var_class_name
;
1236 var
= self
->attrs
[COLOR_nitc__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
1237 if (unlikely(var
== NULL
)) {
1238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1239 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1525);
1243 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
1244 var_other
= var_old_child
;
1246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
1247 var5
= var
== var_other
;
1259 /* <var_new_child:nullable ANode> isa TId */
1260 cltype
= type_nitc__TId
.color
;
1261 idtype
= type_nitc__TId
.id
;
1262 if(var_new_child
== NULL
) {
1265 if(cltype
>= var_new_child
->type
->table_size
) {
1268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1271 if (unlikely(!var6
)) {
1272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
1274 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1526);
1278 nitc__parser_prod___AIdMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIdMethid#n_id= on <self:AIdMethid>*/
1285 /* method parser_prod#AIdMethid#n_id= for (self: AIdMethid, TId) */
1286 void nitc__parser_prod___AIdMethid___n_id_61d(val
* self
, val
* p0
) {
1287 val
* var_node
/* var node: TId */;
1289 self
->attrs
[COLOR_nitc__parser_nodes__AIdMethid___n_id
].val
= var_node
; /* _n_id on <self:AIdMethid> */
1291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
1292 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
1298 /* method parser_prod#AIdMethid#visit_all for (self: AIdMethid, Visitor) */
1299 void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1300 val
* var_v
/* var v: Visitor */;
1301 val
* var
/* : TId */;
1303 var
= self
->attrs
[COLOR_nitc__parser_nodes__AIdMethid___n_id
].val
; /* _n_id on <self:AIdMethid> */
1304 if (unlikely(var
== NULL
)) {
1305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1306 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1540);
1310 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1314 /* method parser_prod#APlusMethid#init_aplusmethid for (self: APlusMethid, nullable TPlus) */
1315 void nitc__parser_prod___APlusMethid___init_aplusmethid(val
* self
, val
* p0
) {
1316 val
* var_n_op
/* var n_op: nullable TPlus */;
1318 { /* Inline kernel#Object#init (self) on <self:APlusMethid> */
1323 if (unlikely(var_n_op
== NULL
)) {
1324 PRINT_ERROR("Runtime error: %s", "Cast failed");
1325 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1548);
1328 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APlusMethid> */
1329 if (var_n_op
== NULL
) {
1330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1331 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1549);
1334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPlus> */
1335 if (unlikely(var_n_op
== NULL
)) {
1336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1337 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1340 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPlus> */
1346 /* method parser_prod#APlusMethid#replace_child for (self: APlusMethid, ANode, nullable ANode) */
1347 void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1348 val
* var_old_child
/* var old_child: ANode */;
1349 val
* var_new_child
/* var new_child: nullable ANode */;
1350 val
* var
/* : Token */;
1351 short int var1
/* : Bool */;
1352 val
* var_other
/* var other: nullable Object */;
1353 short int var3
/* : Bool */;
1354 short int var5
/* : Bool */;
1355 short int var6
/* : Bool */;
1358 const char* var_class_name
;
1361 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APlusMethid> */
1362 if (unlikely(var
== NULL
)) {
1363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1364 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1554);
1368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1369 var_other
= var_old_child
;
1371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1372 var5
= var
== var_other
;
1384 /* <var_new_child:nullable ANode> isa TPlus */
1385 cltype
= type_nitc__TPlus
.color
;
1386 idtype
= type_nitc__TPlus
.id
;
1387 if(var_new_child
== NULL
) {
1390 if(cltype
>= var_new_child
->type
->table_size
) {
1393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1396 if (unlikely(!var6
)) {
1397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name
);
1399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1555);
1403 nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APlusMethid#n_op= on <self:APlusMethid>*/
1410 /* method parser_prod#APlusMethid#n_op= for (self: APlusMethid, Token) */
1411 void nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1412 val
* var_node
/* var node: Token */;
1414 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APlusMethid> */
1416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1417 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1423 /* method parser_prod#APlusMethid#visit_all for (self: APlusMethid, Visitor) */
1424 void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1425 val
* var_v
/* var v: Visitor */;
1426 val
* var
/* : Token */;
1428 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APlusMethid> */
1429 if (unlikely(var
== NULL
)) {
1430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1431 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1569);
1435 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1439 /* method parser_prod#AMinusMethid#init_aminusmethid for (self: AMinusMethid, nullable TMinus) */
1440 void nitc__parser_prod___AMinusMethid___init_aminusmethid(val
* self
, val
* p0
) {
1441 val
* var_n_op
/* var n_op: nullable TMinus */;
1443 { /* Inline kernel#Object#init (self) on <self:AMinusMethid> */
1448 if (unlikely(var_n_op
== NULL
)) {
1449 PRINT_ERROR("Runtime error: %s", "Cast failed");
1450 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1577);
1453 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AMinusMethid> */
1454 if (var_n_op
== NULL
) {
1455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1456 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1578);
1459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TMinus> */
1460 if (unlikely(var_n_op
== NULL
)) {
1461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1462 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1465 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TMinus> */
1471 /* method parser_prod#AMinusMethid#replace_child for (self: AMinusMethid, ANode, nullable ANode) */
1472 void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1473 val
* var_old_child
/* var old_child: ANode */;
1474 val
* var_new_child
/* var new_child: nullable ANode */;
1475 val
* var
/* : Token */;
1476 short int var1
/* : Bool */;
1477 val
* var_other
/* var other: nullable Object */;
1478 short int var3
/* : Bool */;
1479 short int var5
/* : Bool */;
1480 short int var6
/* : Bool */;
1483 const char* var_class_name
;
1486 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AMinusMethid> */
1487 if (unlikely(var
== NULL
)) {
1488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1489 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1583);
1493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1494 var_other
= var_old_child
;
1496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1497 var5
= var
== var_other
;
1509 /* <var_new_child:nullable ANode> isa TMinus */
1510 cltype
= type_nitc__TMinus
.color
;
1511 idtype
= type_nitc__TMinus
.id
;
1512 if(var_new_child
== NULL
) {
1515 if(cltype
>= var_new_child
->type
->table_size
) {
1518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1521 if (unlikely(!var6
)) {
1522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name
);
1524 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1584);
1528 nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AMinusMethid#n_op= on <self:AMinusMethid>*/
1535 /* method parser_prod#AMinusMethid#n_op= for (self: AMinusMethid, Token) */
1536 void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1537 val
* var_node
/* var node: Token */;
1539 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AMinusMethid> */
1541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1542 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1548 /* method parser_prod#AMinusMethid#visit_all for (self: AMinusMethid, Visitor) */
1549 void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1550 val
* var_v
/* var v: Visitor */;
1551 val
* var
/* : Token */;
1553 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AMinusMethid> */
1554 if (unlikely(var
== NULL
)) {
1555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1556 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1598);
1560 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1564 /* method parser_prod#AStarMethid#init_astarmethid for (self: AStarMethid, nullable TStar) */
1565 void nitc__parser_prod___AStarMethid___init_astarmethid(val
* self
, val
* p0
) {
1566 val
* var_n_op
/* var n_op: nullable TStar */;
1568 { /* Inline kernel#Object#init (self) on <self:AStarMethid> */
1573 if (unlikely(var_n_op
== NULL
)) {
1574 PRINT_ERROR("Runtime error: %s", "Cast failed");
1575 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1606);
1578 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarMethid> */
1579 if (var_n_op
== NULL
) {
1580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1581 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1607);
1584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStar> */
1585 if (unlikely(var_n_op
== NULL
)) {
1586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1587 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1590 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStar> */
1596 /* method parser_prod#AStarMethid#replace_child for (self: AStarMethid, ANode, nullable ANode) */
1597 void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1598 val
* var_old_child
/* var old_child: ANode */;
1599 val
* var_new_child
/* var new_child: nullable ANode */;
1600 val
* var
/* : Token */;
1601 short int var1
/* : Bool */;
1602 val
* var_other
/* var other: nullable Object */;
1603 short int var3
/* : Bool */;
1604 short int var5
/* : Bool */;
1605 short int var6
/* : Bool */;
1608 const char* var_class_name
;
1611 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarMethid> */
1612 if (unlikely(var
== NULL
)) {
1613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1612);
1618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1619 var_other
= var_old_child
;
1621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1622 var5
= var
== var_other
;
1634 /* <var_new_child:nullable ANode> isa TStar */
1635 cltype
= type_nitc__TStar
.color
;
1636 idtype
= type_nitc__TStar
.id
;
1637 if(var_new_child
== NULL
) {
1640 if(cltype
>= var_new_child
->type
->table_size
) {
1643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1646 if (unlikely(!var6
)) {
1647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStar", var_class_name
);
1649 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1613);
1653 nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarMethid#n_op= on <self:AStarMethid>*/
1660 /* method parser_prod#AStarMethid#n_op= for (self: AStarMethid, Token) */
1661 void nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1662 val
* var_node
/* var node: Token */;
1664 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarMethid> */
1666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1667 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1673 /* method parser_prod#AStarMethid#visit_all for (self: AStarMethid, Visitor) */
1674 void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1675 val
* var_v
/* var v: Visitor */;
1676 val
* var
/* : Token */;
1678 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarMethid> */
1679 if (unlikely(var
== NULL
)) {
1680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1681 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1627);
1685 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1689 /* method parser_prod#AStarstarMethid#init_astarstarmethid for (self: AStarstarMethid, nullable TStarstar) */
1690 void nitc__parser_prod___AStarstarMethid___init_astarstarmethid(val
* self
, val
* p0
) {
1691 val
* var_n_op
/* var n_op: nullable TStarstar */;
1693 { /* Inline kernel#Object#init (self) on <self:AStarstarMethid> */
1698 if (unlikely(var_n_op
== NULL
)) {
1699 PRINT_ERROR("Runtime error: %s", "Cast failed");
1700 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1635);
1703 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarstarMethid> */
1704 if (var_n_op
== NULL
) {
1705 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1706 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1636);
1709 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStarstar> */
1710 if (unlikely(var_n_op
== NULL
)) {
1711 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1712 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1715 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStarstar> */
1721 /* method parser_prod#AStarstarMethid#replace_child for (self: AStarstarMethid, ANode, nullable ANode) */
1722 void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1723 val
* var_old_child
/* var old_child: ANode */;
1724 val
* var_new_child
/* var new_child: nullable ANode */;
1725 val
* var
/* : Token */;
1726 short int var1
/* : Bool */;
1727 val
* var_other
/* var other: nullable Object */;
1728 short int var3
/* : Bool */;
1729 short int var5
/* : Bool */;
1730 short int var6
/* : Bool */;
1733 const char* var_class_name
;
1736 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarstarMethid> */
1737 if (unlikely(var
== NULL
)) {
1738 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1739 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1641);
1743 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1744 var_other
= var_old_child
;
1746 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1747 var5
= var
== var_other
;
1759 /* <var_new_child:nullable ANode> isa TStarstar */
1760 cltype
= type_nitc__TStarstar
.color
;
1761 idtype
= type_nitc__TStarstar
.id
;
1762 if(var_new_child
== NULL
) {
1765 if(cltype
>= var_new_child
->type
->table_size
) {
1768 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1771 if (unlikely(!var6
)) {
1772 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1773 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstar", var_class_name
);
1774 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1642);
1778 nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarstarMethid#n_op= on <self:AStarstarMethid>*/
1785 /* method parser_prod#AStarstarMethid#n_op= for (self: AStarstarMethid, Token) */
1786 void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1787 val
* var_node
/* var node: Token */;
1789 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarstarMethid> */
1791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1792 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1798 /* method parser_prod#AStarstarMethid#visit_all for (self: AStarstarMethid, Visitor) */
1799 void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1800 val
* var_v
/* var v: Visitor */;
1801 val
* var
/* : Token */;
1803 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarstarMethid> */
1804 if (unlikely(var
== NULL
)) {
1805 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1806 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1656);
1810 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1814 /* method parser_prod#ASlashMethid#init_aslashmethid for (self: ASlashMethid, nullable TSlash) */
1815 void nitc__parser_prod___ASlashMethid___init_aslashmethid(val
* self
, val
* p0
) {
1816 val
* var_n_op
/* var n_op: nullable TSlash */;
1818 { /* Inline kernel#Object#init (self) on <self:ASlashMethid> */
1823 if (unlikely(var_n_op
== NULL
)) {
1824 PRINT_ERROR("Runtime error: %s", "Cast failed");
1825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1664);
1828 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ASlashMethid> */
1829 if (var_n_op
== NULL
) {
1830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1831 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1665);
1834 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TSlash> */
1835 if (unlikely(var_n_op
== NULL
)) {
1836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1837 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1840 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TSlash> */
1846 /* method parser_prod#ASlashMethid#replace_child for (self: ASlashMethid, ANode, nullable ANode) */
1847 void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1848 val
* var_old_child
/* var old_child: ANode */;
1849 val
* var_new_child
/* var new_child: nullable ANode */;
1850 val
* var
/* : Token */;
1851 short int var1
/* : Bool */;
1852 val
* var_other
/* var other: nullable Object */;
1853 short int var3
/* : Bool */;
1854 short int var5
/* : Bool */;
1855 short int var6
/* : Bool */;
1858 const char* var_class_name
;
1861 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ASlashMethid> */
1862 if (unlikely(var
== NULL
)) {
1863 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1864 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1670);
1868 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1869 var_other
= var_old_child
;
1871 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1872 var5
= var
== var_other
;
1884 /* <var_new_child:nullable ANode> isa TSlash */
1885 cltype
= type_nitc__TSlash
.color
;
1886 idtype
= type_nitc__TSlash
.id
;
1887 if(var_new_child
== NULL
) {
1890 if(cltype
>= var_new_child
->type
->table_size
) {
1893 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1896 if (unlikely(!var6
)) {
1897 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1898 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name
);
1899 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1671);
1903 nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ASlashMethid#n_op= on <self:ASlashMethid>*/
1910 /* method parser_prod#ASlashMethid#n_op= for (self: ASlashMethid, Token) */
1911 void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
1912 val
* var_node
/* var node: Token */;
1914 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ASlashMethid> */
1916 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
1917 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
1923 /* method parser_prod#ASlashMethid#visit_all for (self: ASlashMethid, Visitor) */
1924 void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
1925 val
* var_v
/* var v: Visitor */;
1926 val
* var
/* : Token */;
1928 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ASlashMethid> */
1929 if (unlikely(var
== NULL
)) {
1930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1931 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1685);
1935 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1939 /* method parser_prod#APercentMethid#init_apercentmethid for (self: APercentMethid, nullable TPercent) */
1940 void nitc__parser_prod___APercentMethid___init_apercentmethid(val
* self
, val
* p0
) {
1941 val
* var_n_op
/* var n_op: nullable TPercent */;
1943 { /* Inline kernel#Object#init (self) on <self:APercentMethid> */
1948 if (unlikely(var_n_op
== NULL
)) {
1949 PRINT_ERROR("Runtime error: %s", "Cast failed");
1950 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1693);
1953 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APercentMethid> */
1954 if (var_n_op
== NULL
) {
1955 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1956 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1694);
1959 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPercent> */
1960 if (unlikely(var_n_op
== NULL
)) {
1961 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
1965 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPercent> */
1971 /* method parser_prod#APercentMethid#replace_child for (self: APercentMethid, ANode, nullable ANode) */
1972 void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
1973 val
* var_old_child
/* var old_child: ANode */;
1974 val
* var_new_child
/* var new_child: nullable ANode */;
1975 val
* var
/* : Token */;
1976 short int var1
/* : Bool */;
1977 val
* var_other
/* var other: nullable Object */;
1978 short int var3
/* : Bool */;
1979 short int var5
/* : Bool */;
1980 short int var6
/* : Bool */;
1983 const char* var_class_name
;
1986 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APercentMethid> */
1987 if (unlikely(var
== NULL
)) {
1988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
1989 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1699);
1993 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
1994 var_other
= var_old_child
;
1996 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
1997 var5
= var
== var_other
;
2009 /* <var_new_child:nullable ANode> isa TPercent */
2010 cltype
= type_nitc__TPercent
.color
;
2011 idtype
= type_nitc__TPercent
.id
;
2012 if(var_new_child
== NULL
) {
2015 if(cltype
>= var_new_child
->type
->table_size
) {
2018 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2021 if (unlikely(!var6
)) {
2022 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2023 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name
);
2024 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1700);
2028 nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APercentMethid#n_op= on <self:APercentMethid>*/
2035 /* method parser_prod#APercentMethid#n_op= for (self: APercentMethid, Token) */
2036 void nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2037 val
* var_node
/* var node: Token */;
2039 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APercentMethid> */
2041 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2042 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2048 /* method parser_prod#APercentMethid#visit_all for (self: APercentMethid, Visitor) */
2049 void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2050 val
* var_v
/* var v: Visitor */;
2051 val
* var
/* : Token */;
2053 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APercentMethid> */
2054 if (unlikely(var
== NULL
)) {
2055 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2056 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1714);
2060 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2064 /* method parser_prod#AEqMethid#init_aeqmethid for (self: AEqMethid, nullable TEq) */
2065 void nitc__parser_prod___AEqMethid___init_aeqmethid(val
* self
, val
* p0
) {
2066 val
* var_n_op
/* var n_op: nullable TEq */;
2068 { /* Inline kernel#Object#init (self) on <self:AEqMethid> */
2073 if (unlikely(var_n_op
== NULL
)) {
2074 PRINT_ERROR("Runtime error: %s", "Cast failed");
2075 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1722);
2078 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AEqMethid> */
2079 if (var_n_op
== NULL
) {
2080 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2081 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1723);
2084 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TEq> */
2085 if (unlikely(var_n_op
== NULL
)) {
2086 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2087 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2090 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TEq> */
2096 /* method parser_prod#AEqMethid#replace_child for (self: AEqMethid, ANode, nullable ANode) */
2097 void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2098 val
* var_old_child
/* var old_child: ANode */;
2099 val
* var_new_child
/* var new_child: nullable ANode */;
2100 val
* var
/* : Token */;
2101 short int var1
/* : Bool */;
2102 val
* var_other
/* var other: nullable Object */;
2103 short int var3
/* : Bool */;
2104 short int var5
/* : Bool */;
2105 short int var6
/* : Bool */;
2108 const char* var_class_name
;
2111 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AEqMethid> */
2112 if (unlikely(var
== NULL
)) {
2113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2114 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1728);
2118 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2119 var_other
= var_old_child
;
2121 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2122 var5
= var
== var_other
;
2134 /* <var_new_child:nullable ANode> isa TEq */
2135 cltype
= type_nitc__TEq
.color
;
2136 idtype
= type_nitc__TEq
.id
;
2137 if(var_new_child
== NULL
) {
2140 if(cltype
>= var_new_child
->type
->table_size
) {
2143 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2146 if (unlikely(!var6
)) {
2147 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2148 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEq", var_class_name
);
2149 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1729);
2153 nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AEqMethid#n_op= on <self:AEqMethid>*/
2160 /* method parser_prod#AEqMethid#n_op= for (self: AEqMethid, Token) */
2161 void nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2162 val
* var_node
/* var node: Token */;
2164 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AEqMethid> */
2166 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2167 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2173 /* method parser_prod#AEqMethid#visit_all for (self: AEqMethid, Visitor) */
2174 void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2175 val
* var_v
/* var v: Visitor */;
2176 val
* var
/* : Token */;
2178 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AEqMethid> */
2179 if (unlikely(var
== NULL
)) {
2180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2181 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1743);
2185 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2189 /* method parser_prod#ANeMethid#init_anemethid for (self: ANeMethid, nullable TNe) */
2190 void nitc__parser_prod___ANeMethid___init_anemethid(val
* self
, val
* p0
) {
2191 val
* var_n_op
/* var n_op: nullable TNe */;
2193 { /* Inline kernel#Object#init (self) on <self:ANeMethid> */
2198 if (unlikely(var_n_op
== NULL
)) {
2199 PRINT_ERROR("Runtime error: %s", "Cast failed");
2200 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1751);
2203 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ANeMethid> */
2204 if (var_n_op
== NULL
) {
2205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2206 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1752);
2209 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TNe> */
2210 if (unlikely(var_n_op
== NULL
)) {
2211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2212 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2215 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TNe> */
2221 /* method parser_prod#ANeMethid#replace_child for (self: ANeMethid, ANode, nullable ANode) */
2222 void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2223 val
* var_old_child
/* var old_child: ANode */;
2224 val
* var_new_child
/* var new_child: nullable ANode */;
2225 val
* var
/* : Token */;
2226 short int var1
/* : Bool */;
2227 val
* var_other
/* var other: nullable Object */;
2228 short int var3
/* : Bool */;
2229 short int var5
/* : Bool */;
2230 short int var6
/* : Bool */;
2233 const char* var_class_name
;
2236 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ANeMethid> */
2237 if (unlikely(var
== NULL
)) {
2238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2239 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1757);
2243 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2244 var_other
= var_old_child
;
2246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2247 var5
= var
== var_other
;
2259 /* <var_new_child:nullable ANode> isa TNe */
2260 cltype
= type_nitc__TNe
.color
;
2261 idtype
= type_nitc__TNe
.id
;
2262 if(var_new_child
== NULL
) {
2265 if(cltype
>= var_new_child
->type
->table_size
) {
2268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2271 if (unlikely(!var6
)) {
2272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNe", var_class_name
);
2274 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1758);
2278 nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ANeMethid#n_op= on <self:ANeMethid>*/
2285 /* method parser_prod#ANeMethid#n_op= for (self: ANeMethid, Token) */
2286 void nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2287 val
* var_node
/* var node: Token */;
2289 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ANeMethid> */
2291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2292 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2298 /* method parser_prod#ANeMethid#visit_all for (self: ANeMethid, Visitor) */
2299 void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2300 val
* var_v
/* var v: Visitor */;
2301 val
* var
/* : Token */;
2303 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ANeMethid> */
2304 if (unlikely(var
== NULL
)) {
2305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2306 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1772);
2310 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2314 /* method parser_prod#ALeMethid#init_alemethid for (self: ALeMethid, nullable TLe) */
2315 void nitc__parser_prod___ALeMethid___init_alemethid(val
* self
, val
* p0
) {
2316 val
* var_n_op
/* var n_op: nullable TLe */;
2318 { /* Inline kernel#Object#init (self) on <self:ALeMethid> */
2323 if (unlikely(var_n_op
== NULL
)) {
2324 PRINT_ERROR("Runtime error: %s", "Cast failed");
2325 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1780);
2328 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALeMethid> */
2329 if (var_n_op
== NULL
) {
2330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2331 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1781);
2334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLe> */
2335 if (unlikely(var_n_op
== NULL
)) {
2336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2337 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2340 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLe> */
2346 /* method parser_prod#ALeMethid#replace_child for (self: ALeMethid, ANode, nullable ANode) */
2347 void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2348 val
* var_old_child
/* var old_child: ANode */;
2349 val
* var_new_child
/* var new_child: nullable ANode */;
2350 val
* var
/* : Token */;
2351 short int var1
/* : Bool */;
2352 val
* var_other
/* var other: nullable Object */;
2353 short int var3
/* : Bool */;
2354 short int var5
/* : Bool */;
2355 short int var6
/* : Bool */;
2358 const char* var_class_name
;
2361 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALeMethid> */
2362 if (unlikely(var
== NULL
)) {
2363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2364 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1786);
2368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2369 var_other
= var_old_child
;
2371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2372 var5
= var
== var_other
;
2384 /* <var_new_child:nullable ANode> isa TLe */
2385 cltype
= type_nitc__TLe
.color
;
2386 idtype
= type_nitc__TLe
.id
;
2387 if(var_new_child
== NULL
) {
2390 if(cltype
>= var_new_child
->type
->table_size
) {
2393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2396 if (unlikely(!var6
)) {
2397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLe", var_class_name
);
2399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1787);
2403 nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALeMethid#n_op= on <self:ALeMethid>*/
2410 /* method parser_prod#ALeMethid#n_op= for (self: ALeMethid, Token) */
2411 void nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2412 val
* var_node
/* var node: Token */;
2414 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALeMethid> */
2416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2417 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2423 /* method parser_prod#ALeMethid#visit_all for (self: ALeMethid, Visitor) */
2424 void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2425 val
* var_v
/* var v: Visitor */;
2426 val
* var
/* : Token */;
2428 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALeMethid> */
2429 if (unlikely(var
== NULL
)) {
2430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2431 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1801);
2435 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2439 /* method parser_prod#AGeMethid#init_agemethid for (self: AGeMethid, nullable TGe) */
2440 void nitc__parser_prod___AGeMethid___init_agemethid(val
* self
, val
* p0
) {
2441 val
* var_n_op
/* var n_op: nullable TGe */;
2443 { /* Inline kernel#Object#init (self) on <self:AGeMethid> */
2448 if (unlikely(var_n_op
== NULL
)) {
2449 PRINT_ERROR("Runtime error: %s", "Cast failed");
2450 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1809);
2453 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGeMethid> */
2454 if (var_n_op
== NULL
) {
2455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2456 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1810);
2459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGe> */
2460 if (unlikely(var_n_op
== NULL
)) {
2461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2462 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2465 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGe> */
2471 /* method parser_prod#AGeMethid#replace_child for (self: AGeMethid, ANode, nullable ANode) */
2472 void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2473 val
* var_old_child
/* var old_child: ANode */;
2474 val
* var_new_child
/* var new_child: nullable ANode */;
2475 val
* var
/* : Token */;
2476 short int var1
/* : Bool */;
2477 val
* var_other
/* var other: nullable Object */;
2478 short int var3
/* : Bool */;
2479 short int var5
/* : Bool */;
2480 short int var6
/* : Bool */;
2483 const char* var_class_name
;
2486 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGeMethid> */
2487 if (unlikely(var
== NULL
)) {
2488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2489 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1815);
2493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2494 var_other
= var_old_child
;
2496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2497 var5
= var
== var_other
;
2509 /* <var_new_child:nullable ANode> isa TGe */
2510 cltype
= type_nitc__TGe
.color
;
2511 idtype
= type_nitc__TGe
.id
;
2512 if(var_new_child
== NULL
) {
2515 if(cltype
>= var_new_child
->type
->table_size
) {
2518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2521 if (unlikely(!var6
)) {
2522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGe", var_class_name
);
2524 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1816);
2528 nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGeMethid#n_op= on <self:AGeMethid>*/
2535 /* method parser_prod#AGeMethid#n_op= for (self: AGeMethid, Token) */
2536 void nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2537 val
* var_node
/* var node: Token */;
2539 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGeMethid> */
2541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2542 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2548 /* method parser_prod#AGeMethid#visit_all for (self: AGeMethid, Visitor) */
2549 void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2550 val
* var_v
/* var v: Visitor */;
2551 val
* var
/* : Token */;
2553 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGeMethid> */
2554 if (unlikely(var
== NULL
)) {
2555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2556 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1830);
2560 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2564 /* method parser_prod#ALtMethid#init_altmethid for (self: ALtMethid, nullable TLt) */
2565 void nitc__parser_prod___ALtMethid___init_altmethid(val
* self
, val
* p0
) {
2566 val
* var_n_op
/* var n_op: nullable TLt */;
2568 { /* Inline kernel#Object#init (self) on <self:ALtMethid> */
2573 if (unlikely(var_n_op
== NULL
)) {
2574 PRINT_ERROR("Runtime error: %s", "Cast failed");
2575 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1838);
2578 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALtMethid> */
2579 if (var_n_op
== NULL
) {
2580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2581 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1839);
2584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLt> */
2585 if (unlikely(var_n_op
== NULL
)) {
2586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2587 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2590 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLt> */
2596 /* method parser_prod#ALtMethid#replace_child for (self: ALtMethid, ANode, nullable ANode) */
2597 void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2598 val
* var_old_child
/* var old_child: ANode */;
2599 val
* var_new_child
/* var new_child: nullable ANode */;
2600 val
* var
/* : Token */;
2601 short int var1
/* : Bool */;
2602 val
* var_other
/* var other: nullable Object */;
2603 short int var3
/* : Bool */;
2604 short int var5
/* : Bool */;
2605 short int var6
/* : Bool */;
2608 const char* var_class_name
;
2611 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALtMethid> */
2612 if (unlikely(var
== NULL
)) {
2613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1844);
2618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2619 var_other
= var_old_child
;
2621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2622 var5
= var
== var_other
;
2634 /* <var_new_child:nullable ANode> isa TLt */
2635 cltype
= type_nitc__TLt
.color
;
2636 idtype
= type_nitc__TLt
.id
;
2637 if(var_new_child
== NULL
) {
2640 if(cltype
>= var_new_child
->type
->table_size
) {
2643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2646 if (unlikely(!var6
)) {
2647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLt", var_class_name
);
2649 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1845);
2653 nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALtMethid#n_op= on <self:ALtMethid>*/
2660 /* method parser_prod#ALtMethid#n_op= for (self: ALtMethid, Token) */
2661 void nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2662 val
* var_node
/* var node: Token */;
2664 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALtMethid> */
2666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2667 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2673 /* method parser_prod#ALtMethid#visit_all for (self: ALtMethid, Visitor) */
2674 void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2675 val
* var_v
/* var v: Visitor */;
2676 val
* var
/* : Token */;
2678 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALtMethid> */
2679 if (unlikely(var
== NULL
)) {
2680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2681 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1859);
2685 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2689 /* method parser_prod#AGtMethid#init_agtmethid for (self: AGtMethid, nullable TGt) */
2690 void nitc__parser_prod___AGtMethid___init_agtmethid(val
* self
, val
* p0
) {
2691 val
* var_n_op
/* var n_op: nullable TGt */;
2693 { /* Inline kernel#Object#init (self) on <self:AGtMethid> */
2698 if (unlikely(var_n_op
== NULL
)) {
2699 PRINT_ERROR("Runtime error: %s", "Cast failed");
2700 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1867);
2703 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGtMethid> */
2704 if (var_n_op
== NULL
) {
2705 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2706 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1868);
2709 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGt> */
2710 if (unlikely(var_n_op
== NULL
)) {
2711 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2712 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2715 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGt> */
2721 /* method parser_prod#AGtMethid#replace_child for (self: AGtMethid, ANode, nullable ANode) */
2722 void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2723 val
* var_old_child
/* var old_child: ANode */;
2724 val
* var_new_child
/* var new_child: nullable ANode */;
2725 val
* var
/* : Token */;
2726 short int var1
/* : Bool */;
2727 val
* var_other
/* var other: nullable Object */;
2728 short int var3
/* : Bool */;
2729 short int var5
/* : Bool */;
2730 short int var6
/* : Bool */;
2733 const char* var_class_name
;
2736 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGtMethid> */
2737 if (unlikely(var
== NULL
)) {
2738 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2739 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1873);
2743 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2744 var_other
= var_old_child
;
2746 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2747 var5
= var
== var_other
;
2759 /* <var_new_child:nullable ANode> isa TGt */
2760 cltype
= type_nitc__TGt
.color
;
2761 idtype
= type_nitc__TGt
.id
;
2762 if(var_new_child
== NULL
) {
2765 if(cltype
>= var_new_child
->type
->table_size
) {
2768 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2771 if (unlikely(!var6
)) {
2772 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2773 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGt", var_class_name
);
2774 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1874);
2778 nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGtMethid#n_op= on <self:AGtMethid>*/
2785 /* method parser_prod#AGtMethid#n_op= for (self: AGtMethid, Token) */
2786 void nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2787 val
* var_node
/* var node: Token */;
2789 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGtMethid> */
2791 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2792 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2798 /* method parser_prod#AGtMethid#visit_all for (self: AGtMethid, Visitor) */
2799 void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2800 val
* var_v
/* var v: Visitor */;
2801 val
* var
/* : Token */;
2803 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGtMethid> */
2804 if (unlikely(var
== NULL
)) {
2805 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2806 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1888);
2810 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2814 /* method parser_prod#ALlMethid#init_allmethid for (self: ALlMethid, nullable TLl) */
2815 void nitc__parser_prod___ALlMethid___init_allmethid(val
* self
, val
* p0
) {
2816 val
* var_n_op
/* var n_op: nullable TLl */;
2818 { /* Inline kernel#Object#init (self) on <self:ALlMethid> */
2823 if (unlikely(var_n_op
== NULL
)) {
2824 PRINT_ERROR("Runtime error: %s", "Cast failed");
2825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1896);
2828 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ALlMethid> */
2829 if (var_n_op
== NULL
) {
2830 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2831 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1897);
2834 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TLl> */
2835 if (unlikely(var_n_op
== NULL
)) {
2836 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2837 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2840 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TLl> */
2846 /* method parser_prod#ALlMethid#replace_child for (self: ALlMethid, ANode, nullable ANode) */
2847 void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2848 val
* var_old_child
/* var old_child: ANode */;
2849 val
* var_new_child
/* var new_child: nullable ANode */;
2850 val
* var
/* : Token */;
2851 short int var1
/* : Bool */;
2852 val
* var_other
/* var other: nullable Object */;
2853 short int var3
/* : Bool */;
2854 short int var5
/* : Bool */;
2855 short int var6
/* : Bool */;
2858 const char* var_class_name
;
2861 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALlMethid> */
2862 if (unlikely(var
== NULL
)) {
2863 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2864 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1902);
2868 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2869 var_other
= var_old_child
;
2871 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2872 var5
= var
== var_other
;
2884 /* <var_new_child:nullable ANode> isa TLl */
2885 cltype
= type_nitc__TLl
.color
;
2886 idtype
= type_nitc__TLl
.id
;
2887 if(var_new_child
== NULL
) {
2890 if(cltype
>= var_new_child
->type
->table_size
) {
2893 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2896 if (unlikely(!var6
)) {
2897 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2898 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLl", var_class_name
);
2899 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1903);
2903 nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ALlMethid#n_op= on <self:ALlMethid>*/
2910 /* method parser_prod#ALlMethid#n_op= for (self: ALlMethid, Token) */
2911 void nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
2912 val
* var_node
/* var node: Token */;
2914 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ALlMethid> */
2916 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
2917 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
2923 /* method parser_prod#ALlMethid#visit_all for (self: ALlMethid, Visitor) */
2924 void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
2925 val
* var_v
/* var v: Visitor */;
2926 val
* var
/* : Token */;
2928 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ALlMethid> */
2929 if (unlikely(var
== NULL
)) {
2930 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2931 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1917);
2935 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2939 /* method parser_prod#AGgMethid#init_aggmethid for (self: AGgMethid, nullable TGg) */
2940 void nitc__parser_prod___AGgMethid___init_aggmethid(val
* self
, val
* p0
) {
2941 val
* var_n_op
/* var n_op: nullable TGg */;
2943 { /* Inline kernel#Object#init (self) on <self:AGgMethid> */
2948 if (unlikely(var_n_op
== NULL
)) {
2949 PRINT_ERROR("Runtime error: %s", "Cast failed");
2950 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1925);
2953 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AGgMethid> */
2954 if (var_n_op
== NULL
) {
2955 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2956 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1926);
2959 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TGg> */
2960 if (unlikely(var_n_op
== NULL
)) {
2961 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
2965 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TGg> */
2971 /* method parser_prod#AGgMethid#replace_child for (self: AGgMethid, ANode, nullable ANode) */
2972 void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
2973 val
* var_old_child
/* var old_child: ANode */;
2974 val
* var_new_child
/* var new_child: nullable ANode */;
2975 val
* var
/* : Token */;
2976 short int var1
/* : Bool */;
2977 val
* var_other
/* var other: nullable Object */;
2978 short int var3
/* : Bool */;
2979 short int var5
/* : Bool */;
2980 short int var6
/* : Bool */;
2983 const char* var_class_name
;
2986 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGgMethid> */
2987 if (unlikely(var
== NULL
)) {
2988 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
2989 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1931);
2993 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
2994 var_other
= var_old_child
;
2996 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
2997 var5
= var
== var_other
;
3009 /* <var_new_child:nullable ANode> isa TGg */
3010 cltype
= type_nitc__TGg
.color
;
3011 idtype
= type_nitc__TGg
.id
;
3012 if(var_new_child
== NULL
) {
3015 if(cltype
>= var_new_child
->type
->table_size
) {
3018 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3021 if (unlikely(!var6
)) {
3022 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3023 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGg", var_class_name
);
3024 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1932);
3028 nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AGgMethid#n_op= on <self:AGgMethid>*/
3035 /* method parser_prod#AGgMethid#n_op= for (self: AGgMethid, Token) */
3036 void nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3037 val
* var_node
/* var node: Token */;
3039 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AGgMethid> */
3041 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3042 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3048 /* method parser_prod#AGgMethid#visit_all for (self: AGgMethid, Visitor) */
3049 void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3050 val
* var_v
/* var v: Visitor */;
3051 val
* var
/* : Token */;
3053 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AGgMethid> */
3054 if (unlikely(var
== NULL
)) {
3055 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3056 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1946);
3060 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3064 /* method parser_prod#AStarshipMethid#init_astarshipmethid for (self: AStarshipMethid, nullable TStarship) */
3065 void nitc__parser_prod___AStarshipMethid___init_astarshipmethid(val
* self
, val
* p0
) {
3066 val
* var_n_op
/* var n_op: nullable TStarship */;
3068 { /* Inline kernel#Object#init (self) on <self:AStarshipMethid> */
3073 if (unlikely(var_n_op
== NULL
)) {
3074 PRINT_ERROR("Runtime error: %s", "Cast failed");
3075 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1954);
3078 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AStarshipMethid> */
3079 if (var_n_op
== NULL
) {
3080 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3081 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1955);
3084 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TStarship> */
3085 if (unlikely(var_n_op
== NULL
)) {
3086 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3087 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3090 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TStarship> */
3096 /* method parser_prod#AStarshipMethid#replace_child for (self: AStarshipMethid, ANode, nullable ANode) */
3097 void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3098 val
* var_old_child
/* var old_child: ANode */;
3099 val
* var_new_child
/* var new_child: nullable ANode */;
3100 val
* var
/* : Token */;
3101 short int var1
/* : Bool */;
3102 val
* var_other
/* var other: nullable Object */;
3103 short int var3
/* : Bool */;
3104 short int var5
/* : Bool */;
3105 short int var6
/* : Bool */;
3108 const char* var_class_name
;
3111 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarshipMethid> */
3112 if (unlikely(var
== NULL
)) {
3113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3114 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1960);
3118 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3119 var_other
= var_old_child
;
3121 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3122 var5
= var
== var_other
;
3134 /* <var_new_child:nullable ANode> isa TStarship */
3135 cltype
= type_nitc__TStarship
.color
;
3136 idtype
= type_nitc__TStarship
.id
;
3137 if(var_new_child
== NULL
) {
3140 if(cltype
>= var_new_child
->type
->table_size
) {
3143 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3146 if (unlikely(!var6
)) {
3147 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3148 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarship", var_class_name
);
3149 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1961);
3153 nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AStarshipMethid#n_op= on <self:AStarshipMethid>*/
3160 /* method parser_prod#AStarshipMethid#n_op= for (self: AStarshipMethid, Token) */
3161 void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3162 val
* var_node
/* var node: Token */;
3164 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AStarshipMethid> */
3166 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3167 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3173 /* method parser_prod#AStarshipMethid#visit_all for (self: AStarshipMethid, Visitor) */
3174 void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3175 val
* var_v
/* var v: Visitor */;
3176 val
* var
/* : Token */;
3178 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AStarshipMethid> */
3179 if (unlikely(var
== NULL
)) {
3180 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3181 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1975);
3185 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3189 /* method parser_prod#APipeMethid#init_apipemethid for (self: APipeMethid, nullable TPipe) */
3190 void nitc__parser_prod___APipeMethid___init_apipemethid(val
* self
, val
* p0
) {
3191 val
* var_n_op
/* var n_op: nullable TPipe */;
3193 { /* Inline kernel#Object#init (self) on <self:APipeMethid> */
3198 if (unlikely(var_n_op
== NULL
)) {
3199 PRINT_ERROR("Runtime error: %s", "Cast failed");
3200 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1983);
3203 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:APipeMethid> */
3204 if (var_n_op
== NULL
) {
3205 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3206 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1984);
3209 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TPipe> */
3210 if (unlikely(var_n_op
== NULL
)) {
3211 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3212 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3215 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TPipe> */
3221 /* method parser_prod#APipeMethid#replace_child for (self: APipeMethid, ANode, nullable ANode) */
3222 void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3223 val
* var_old_child
/* var old_child: ANode */;
3224 val
* var_new_child
/* var new_child: nullable ANode */;
3225 val
* var
/* : Token */;
3226 short int var1
/* : Bool */;
3227 val
* var_other
/* var other: nullable Object */;
3228 short int var3
/* : Bool */;
3229 short int var5
/* : Bool */;
3230 short int var6
/* : Bool */;
3233 const char* var_class_name
;
3236 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APipeMethid> */
3237 if (unlikely(var
== NULL
)) {
3238 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3239 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1989);
3243 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3244 var_other
= var_old_child
;
3246 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3247 var5
= var
== var_other
;
3259 /* <var_new_child:nullable ANode> isa TPipe */
3260 cltype
= type_nitc__TPipe
.color
;
3261 idtype
= type_nitc__TPipe
.id
;
3262 if(var_new_child
== NULL
) {
3265 if(cltype
>= var_new_child
->type
->table_size
) {
3268 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3271 if (unlikely(!var6
)) {
3272 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3273 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name
);
3274 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 1990);
3278 nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#APipeMethid#n_op= on <self:APipeMethid>*/
3285 /* method parser_prod#APipeMethid#n_op= for (self: APipeMethid, Token) */
3286 void nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3287 val
* var_node
/* var node: Token */;
3289 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:APipeMethid> */
3291 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3292 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3298 /* method parser_prod#APipeMethid#visit_all for (self: APipeMethid, Visitor) */
3299 void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3300 val
* var_v
/* var v: Visitor */;
3301 val
* var
/* : Token */;
3303 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:APipeMethid> */
3304 if (unlikely(var
== NULL
)) {
3305 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3306 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2004);
3310 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3314 /* method parser_prod#ACaretMethid#init_acaretmethid for (self: ACaretMethid, nullable TCaret) */
3315 void nitc__parser_prod___ACaretMethid___init_acaretmethid(val
* self
, val
* p0
) {
3316 val
* var_n_op
/* var n_op: nullable TCaret */;
3318 { /* Inline kernel#Object#init (self) on <self:ACaretMethid> */
3323 if (unlikely(var_n_op
== NULL
)) {
3324 PRINT_ERROR("Runtime error: %s", "Cast failed");
3325 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2012);
3328 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ACaretMethid> */
3329 if (var_n_op
== NULL
) {
3330 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3331 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2013);
3334 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TCaret> */
3335 if (unlikely(var_n_op
== NULL
)) {
3336 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3337 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3340 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TCaret> */
3346 /* method parser_prod#ACaretMethid#replace_child for (self: ACaretMethid, ANode, nullable ANode) */
3347 void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3348 val
* var_old_child
/* var old_child: ANode */;
3349 val
* var_new_child
/* var new_child: nullable ANode */;
3350 val
* var
/* : Token */;
3351 short int var1
/* : Bool */;
3352 val
* var_other
/* var other: nullable Object */;
3353 short int var3
/* : Bool */;
3354 short int var5
/* : Bool */;
3355 short int var6
/* : Bool */;
3358 const char* var_class_name
;
3361 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ACaretMethid> */
3362 if (unlikely(var
== NULL
)) {
3363 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3364 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2018);
3368 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3369 var_other
= var_old_child
;
3371 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3372 var5
= var
== var_other
;
3384 /* <var_new_child:nullable ANode> isa TCaret */
3385 cltype
= type_nitc__TCaret
.color
;
3386 idtype
= type_nitc__TCaret
.id
;
3387 if(var_new_child
== NULL
) {
3390 if(cltype
>= var_new_child
->type
->table_size
) {
3393 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3396 if (unlikely(!var6
)) {
3397 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3398 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name
);
3399 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2019);
3403 nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ACaretMethid#n_op= on <self:ACaretMethid>*/
3410 /* method parser_prod#ACaretMethid#n_op= for (self: ACaretMethid, Token) */
3411 void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3412 val
* var_node
/* var node: Token */;
3414 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ACaretMethid> */
3416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3417 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3423 /* method parser_prod#ACaretMethid#visit_all for (self: ACaretMethid, Visitor) */
3424 void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3425 val
* var_v
/* var v: Visitor */;
3426 val
* var
/* : Token */;
3428 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ACaretMethid> */
3429 if (unlikely(var
== NULL
)) {
3430 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3431 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2033);
3435 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3439 /* method parser_prod#AAmpMethid#init_aampmethid for (self: AAmpMethid, nullable TAmp) */
3440 void nitc__parser_prod___AAmpMethid___init_aampmethid(val
* self
, val
* p0
) {
3441 val
* var_n_op
/* var n_op: nullable TAmp */;
3443 { /* Inline kernel#Object#init (self) on <self:AAmpMethid> */
3448 if (unlikely(var_n_op
== NULL
)) {
3449 PRINT_ERROR("Runtime error: %s", "Cast failed");
3450 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2041);
3453 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:AAmpMethid> */
3454 if (var_n_op
== NULL
) {
3455 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3456 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2042);
3459 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TAmp> */
3460 if (unlikely(var_n_op
== NULL
)) {
3461 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3462 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3465 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TAmp> */
3471 /* method parser_prod#AAmpMethid#replace_child for (self: AAmpMethid, ANode, nullable ANode) */
3472 void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3473 val
* var_old_child
/* var old_child: ANode */;
3474 val
* var_new_child
/* var new_child: nullable ANode */;
3475 val
* var
/* : Token */;
3476 short int var1
/* : Bool */;
3477 val
* var_other
/* var other: nullable Object */;
3478 short int var3
/* : Bool */;
3479 short int var5
/* : Bool */;
3480 short int var6
/* : Bool */;
3483 const char* var_class_name
;
3486 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AAmpMethid> */
3487 if (unlikely(var
== NULL
)) {
3488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3489 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2047);
3493 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3494 var_other
= var_old_child
;
3496 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3497 var5
= var
== var_other
;
3509 /* <var_new_child:nullable ANode> isa TAmp */
3510 cltype
= type_nitc__TAmp
.color
;
3511 idtype
= type_nitc__TAmp
.id
;
3512 if(var_new_child
== NULL
) {
3515 if(cltype
>= var_new_child
->type
->table_size
) {
3518 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3521 if (unlikely(!var6
)) {
3522 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3523 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name
);
3524 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2048);
3528 nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#AAmpMethid#n_op= on <self:AAmpMethid>*/
3535 /* method parser_prod#AAmpMethid#n_op= for (self: AAmpMethid, Token) */
3536 void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3537 val
* var_node
/* var node: Token */;
3539 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:AAmpMethid> */
3541 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3542 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3548 /* method parser_prod#AAmpMethid#visit_all for (self: AAmpMethid, Visitor) */
3549 void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3550 val
* var_v
/* var v: Visitor */;
3551 val
* var
/* : Token */;
3553 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:AAmpMethid> */
3554 if (unlikely(var
== NULL
)) {
3555 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3556 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2062);
3560 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3564 /* method parser_prod#ATildeMethid#init_atildemethid for (self: ATildeMethid, nullable TTilde) */
3565 void nitc__parser_prod___ATildeMethid___init_atildemethid(val
* self
, val
* p0
) {
3566 val
* var_n_op
/* var n_op: nullable TTilde */;
3568 { /* Inline kernel#Object#init (self) on <self:ATildeMethid> */
3573 if (unlikely(var_n_op
== NULL
)) {
3574 PRINT_ERROR("Runtime error: %s", "Cast failed");
3575 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2070);
3578 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_n_op
; /* _n_op on <self:ATildeMethid> */
3579 if (var_n_op
== NULL
) {
3580 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3581 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2071);
3584 { /* Inline parser_nodes#ANode#parent= (var_n_op,self) on <var_n_op:nullable TTilde> */
3585 if (unlikely(var_n_op
== NULL
)) {
3586 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3587 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3590 var_n_op
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_op:nullable TTilde> */
3596 /* method parser_prod#ATildeMethid#replace_child for (self: ATildeMethid, ANode, nullable ANode) */
3597 void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3598 val
* var_old_child
/* var old_child: ANode */;
3599 val
* var_new_child
/* var new_child: nullable ANode */;
3600 val
* var
/* : Token */;
3601 short int var1
/* : Bool */;
3602 val
* var_other
/* var other: nullable Object */;
3603 short int var3
/* : Bool */;
3604 short int var5
/* : Bool */;
3605 short int var6
/* : Bool */;
3608 const char* var_class_name
;
3611 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ATildeMethid> */
3612 if (unlikely(var
== NULL
)) {
3613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2076);
3618 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3619 var_other
= var_old_child
;
3621 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3622 var5
= var
== var_other
;
3634 /* <var_new_child:nullable ANode> isa TTilde */
3635 cltype
= type_nitc__TTilde
.color
;
3636 idtype
= type_nitc__TTilde
.id
;
3637 if(var_new_child
== NULL
) {
3640 if(cltype
>= var_new_child
->type
->table_size
) {
3643 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3646 if (unlikely(!var6
)) {
3647 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3648 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name
);
3649 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2077);
3653 nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self
, var_new_child
); /* Direct call parser_prod#ATildeMethid#n_op= on <self:ATildeMethid>*/
3660 /* method parser_prod#ATildeMethid#n_op= for (self: ATildeMethid, Token) */
3661 void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val
* self
, val
* p0
) {
3662 val
* var_node
/* var node: Token */;
3664 self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
= var_node
; /* _n_op on <self:ATildeMethid> */
3666 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3667 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3673 /* method parser_prod#ATildeMethid#visit_all for (self: ATildeMethid, Visitor) */
3674 void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3675 val
* var_v
/* var v: Visitor */;
3676 val
* var
/* : Token */;
3678 var
= self
->attrs
[COLOR_nitc__parser_nodes__AOperatorMethid___n_op
].val
; /* _n_op on <self:ATildeMethid> */
3679 if (unlikely(var
== NULL
)) {
3680 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op");
3681 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2091);
3685 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3689 /* method parser_prod#ABraMethid#init_abramethid for (self: ABraMethid, nullable TObra, nullable TCbra) */
3690 void nitc__parser_prod___ABraMethid___init_abramethid(val
* self
, val
* p0
, val
* p1
) {
3691 val
* var_n_obra
/* var n_obra: nullable TObra */;
3692 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
3694 { /* Inline kernel#Object#init (self) on <self:ABraMethid> */
3700 if (unlikely(var_n_obra
== NULL
)) {
3701 PRINT_ERROR("Runtime error: %s", "Cast failed");
3702 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2100);
3705 self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraMethid> */
3706 if (var_n_obra
== NULL
) {
3707 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3708 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2101);
3711 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
3712 if (unlikely(var_n_obra
== NULL
)) {
3713 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3714 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3717 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
3721 if (unlikely(var_n_cbra
== NULL
)) {
3722 PRINT_ERROR("Runtime error: %s", "Cast failed");
3723 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2102);
3726 self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraMethid> */
3727 if (var_n_cbra
== NULL
) {
3728 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3729 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2103);
3732 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
3733 if (unlikely(var_n_cbra
== NULL
)) {
3734 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3735 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3738 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
3744 /* method parser_prod#ABraMethid#replace_child for (self: ABraMethid, ANode, nullable ANode) */
3745 void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3746 val
* var_old_child
/* var old_child: ANode */;
3747 val
* var_new_child
/* var new_child: nullable ANode */;
3748 val
* var
/* : TObra */;
3749 short int var1
/* : Bool */;
3750 val
* var_other
/* var other: nullable Object */;
3751 short int var3
/* : Bool */;
3752 short int var5
/* : Bool */;
3753 short int var6
/* : Bool */;
3756 const char* var_class_name
;
3757 val
* var7
/* : TCbra */;
3758 short int var8
/* : Bool */;
3759 short int var10
/* : Bool */;
3760 short int var12
/* : Bool */;
3761 short int var13
/* : Bool */;
3764 const char* var_class_name16
;
3767 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
3768 if (unlikely(var
== NULL
)) {
3769 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3770 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2108);
3774 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
3775 var_other
= var_old_child
;
3777 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
3778 var5
= var
== var_other
;
3790 /* <var_new_child:nullable ANode> isa TObra */
3791 cltype
= type_nitc__TObra
.color
;
3792 idtype
= type_nitc__TObra
.id
;
3793 if(var_new_child
== NULL
) {
3796 if(cltype
>= var_new_child
->type
->table_size
) {
3799 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3802 if (unlikely(!var6
)) {
3803 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3804 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
3805 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2109);
3809 nitc__parser_prod___ABraMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_obra= on <self:ABraMethid>*/
3814 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
3815 if (unlikely(var7
== NULL
)) {
3816 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3817 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2112);
3821 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
3822 var_other
= var_old_child
;
3824 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
3825 var12
= var7
== var_other
;
3828 RET_LABEL11
:(void)0;
3837 /* <var_new_child:nullable ANode> isa TCbra */
3838 cltype14
= type_nitc__TCbra
.color
;
3839 idtype15
= type_nitc__TCbra
.id
;
3840 if(var_new_child
== NULL
) {
3843 if(cltype14
>= var_new_child
->type
->table_size
) {
3846 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
3849 if (unlikely(!var13
)) {
3850 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3851 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
3852 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2113);
3856 nitc__parser_prod___ABraMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraMethid#n_cbra= on <self:ABraMethid>*/
3863 /* method parser_prod#ABraMethid#n_obra= for (self: ABraMethid, TObra) */
3864 void nitc__parser_prod___ABraMethid___n_obra_61d(val
* self
, val
* p0
) {
3865 val
* var_node
/* var node: TObra */;
3867 self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraMethid> */
3869 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
3870 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
3876 /* method parser_prod#ABraMethid#n_cbra= for (self: ABraMethid, TCbra) */
3877 void nitc__parser_prod___ABraMethid___n_cbra_61d(val
* self
, val
* p0
) {
3878 val
* var_node
/* var node: TCbra */;
3880 self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraMethid> */
3882 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
3883 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
3889 /* method parser_prod#ABraMethid#visit_all for (self: ABraMethid, Visitor) */
3890 void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
3891 val
* var_v
/* var v: Visitor */;
3892 val
* var
/* : TObra */;
3893 val
* var1
/* : TCbra */;
3895 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_obra
].val
; /* _n_obra on <self:ABraMethid> */
3896 if (unlikely(var
== NULL
)) {
3897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
3898 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2132);
3902 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3904 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABraMethid___n_cbra
].val
; /* _n_cbra on <self:ABraMethid> */
3905 if (unlikely(var1
== NULL
)) {
3906 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
3907 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2133);
3911 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3915 /* method parser_prod#AAssignMethid#init_aassignmethid for (self: AAssignMethid, nullable TId, nullable TAssign) */
3916 void nitc__parser_prod___AAssignMethid___init_aassignmethid(val
* self
, val
* p0
, val
* p1
) {
3917 val
* var_n_id
/* var n_id: nullable TId */;
3918 val
* var_n_assign
/* var n_assign: nullable TAssign */;
3920 { /* Inline kernel#Object#init (self) on <self:AAssignMethid> */
3926 if (unlikely(var_n_id
== NULL
)) {
3927 PRINT_ERROR("Runtime error: %s", "Cast failed");
3928 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2142);
3931 self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_id
].val
= var_n_id
; /* _n_id on <self:AAssignMethid> */
3932 if (var_n_id
== NULL
) {
3933 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3934 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2143);
3937 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3938 if (unlikely(var_n_id
== NULL
)) {
3939 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3940 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3943 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3947 if (unlikely(var_n_assign
== NULL
)) {
3948 PRINT_ERROR("Runtime error: %s", "Cast failed");
3949 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2144);
3952 self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AAssignMethid> */
3953 if (var_n_assign
== NULL
) {
3954 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3955 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2145);
3958 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
3959 if (unlikely(var_n_assign
== NULL
)) {
3960 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3961 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
3964 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
3970 /* method parser_prod#AAssignMethid#replace_child for (self: AAssignMethid, ANode, nullable ANode) */
3971 void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
3972 val
* var_old_child
/* var old_child: ANode */;
3973 val
* var_new_child
/* var new_child: nullable ANode */;
3974 val
* var
/* : TId */;
3975 short int var1
/* : Bool */;
3976 val
* var_other
/* var other: nullable Object */;
3977 short int var3
/* : Bool */;
3978 short int var5
/* : Bool */;
3979 short int var6
/* : Bool */;
3982 const char* var_class_name
;
3983 val
* var7
/* : TAssign */;
3984 short int var8
/* : Bool */;
3985 short int var10
/* : Bool */;
3986 short int var12
/* : Bool */;
3987 short int var13
/* : Bool */;
3990 const char* var_class_name16
;
3993 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
3994 if (unlikely(var
== NULL
)) {
3995 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3996 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2150);
4000 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
4001 var_other
= var_old_child
;
4003 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
4004 var5
= var
== var_other
;
4016 /* <var_new_child:nullable ANode> isa TId */
4017 cltype
= type_nitc__TId
.color
;
4018 idtype
= type_nitc__TId
.id
;
4019 if(var_new_child
== NULL
) {
4022 if(cltype
>= var_new_child
->type
->table_size
) {
4025 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4028 if (unlikely(!var6
)) {
4029 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4030 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
4031 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2151);
4035 nitc__parser_prod___AAssignMethid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_id= on <self:AAssignMethid>*/
4040 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
4041 if (unlikely(var7
== NULL
)) {
4042 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4043 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2154);
4047 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TAssign> */
4048 var_other
= var_old_child
;
4050 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TAssign> */
4051 var12
= var7
== var_other
;
4054 RET_LABEL11
:(void)0;
4063 /* <var_new_child:nullable ANode> isa TAssign */
4064 cltype14
= type_nitc__TAssign
.color
;
4065 idtype15
= type_nitc__TAssign
.id
;
4066 if(var_new_child
== NULL
) {
4069 if(cltype14
>= var_new_child
->type
->table_size
) {
4072 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4075 if (unlikely(!var13
)) {
4076 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4077 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16
);
4078 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2155);
4082 nitc__parser_prod___AAssignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AAssignMethid#n_assign= on <self:AAssignMethid>*/
4089 /* method parser_prod#AAssignMethid#n_id= for (self: AAssignMethid, TId) */
4090 void nitc__parser_prod___AAssignMethid___n_id_61d(val
* self
, val
* p0
) {
4091 val
* var_node
/* var node: TId */;
4093 self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_id
].val
= var_node
; /* _n_id on <self:AAssignMethid> */
4095 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4096 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4102 /* method parser_prod#AAssignMethid#n_assign= for (self: AAssignMethid, TAssign) */
4103 void nitc__parser_prod___AAssignMethid___n_assign_61d(val
* self
, val
* p0
) {
4104 val
* var_node
/* var node: TAssign */;
4106 self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:AAssignMethid> */
4108 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4109 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4115 /* method parser_prod#AAssignMethid#visit_all for (self: AAssignMethid, Visitor) */
4116 void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4117 val
* var_v
/* var v: Visitor */;
4118 val
* var
/* : TId */;
4119 val
* var1
/* : TAssign */;
4121 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_id
].val
; /* _n_id on <self:AAssignMethid> */
4122 if (unlikely(var
== NULL
)) {
4123 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4124 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2174);
4128 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4130 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AAssignMethid___n_assign
].val
; /* _n_assign on <self:AAssignMethid> */
4131 if (unlikely(var1
== NULL
)) {
4132 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4133 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2175);
4137 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4141 /* method parser_prod#ABraassignMethid#init_abraassignmethid for (self: ABraassignMethid, nullable TObra, nullable TCbra, nullable TAssign) */
4142 void nitc__parser_prod___ABraassignMethid___init_abraassignmethid(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4143 val
* var_n_obra
/* var n_obra: nullable TObra */;
4144 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
4145 val
* var_n_assign
/* var n_assign: nullable TAssign */;
4147 { /* Inline kernel#Object#init (self) on <self:ABraassignMethid> */
4154 if (unlikely(var_n_obra
== NULL
)) {
4155 PRINT_ERROR("Runtime error: %s", "Cast failed");
4156 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2185);
4159 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra
].val
= var_n_obra
; /* _n_obra on <self:ABraassignMethid> */
4160 if (var_n_obra
== NULL
) {
4161 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4162 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2186);
4165 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra> */
4166 if (unlikely(var_n_obra
== NULL
)) {
4167 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4168 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4171 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra> */
4175 if (unlikely(var_n_cbra
== NULL
)) {
4176 PRINT_ERROR("Runtime error: %s", "Cast failed");
4177 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2187);
4180 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:ABraassignMethid> */
4181 if (var_n_cbra
== NULL
) {
4182 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4183 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2188);
4186 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra> */
4187 if (unlikely(var_n_cbra
== NULL
)) {
4188 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4189 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4192 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra> */
4196 if (unlikely(var_n_assign
== NULL
)) {
4197 PRINT_ERROR("Runtime error: %s", "Cast failed");
4198 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2189);
4201 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign
].val
= var_n_assign
; /* _n_assign on <self:ABraassignMethid> */
4202 if (var_n_assign
== NULL
) {
4203 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4204 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2190);
4207 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign> */
4208 if (unlikely(var_n_assign
== NULL
)) {
4209 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4210 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4213 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign> */
4219 /* method parser_prod#ABraassignMethid#replace_child for (self: ABraassignMethid, ANode, nullable ANode) */
4220 void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4221 val
* var_old_child
/* var old_child: ANode */;
4222 val
* var_new_child
/* var new_child: nullable ANode */;
4223 val
* var
/* : TObra */;
4224 short int var1
/* : Bool */;
4225 val
* var_other
/* var other: nullable Object */;
4226 short int var3
/* : Bool */;
4227 short int var5
/* : Bool */;
4228 short int var6
/* : Bool */;
4231 const char* var_class_name
;
4232 val
* var7
/* : TCbra */;
4233 short int var8
/* : Bool */;
4234 short int var10
/* : Bool */;
4235 short int var12
/* : Bool */;
4236 short int var13
/* : Bool */;
4239 const char* var_class_name16
;
4240 val
* var17
/* : TAssign */;
4241 short int var18
/* : Bool */;
4242 short int var20
/* : Bool */;
4243 short int var22
/* : Bool */;
4244 short int var23
/* : Bool */;
4247 const char* var_class_name26
;
4250 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
4251 if (unlikely(var
== NULL
)) {
4252 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4253 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2195);
4257 { /* Inline kernel#Object#== (var,var_old_child) on <var:TObra> */
4258 var_other
= var_old_child
;
4260 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TObra> */
4261 var5
= var
== var_other
;
4273 /* <var_new_child:nullable ANode> isa TObra */
4274 cltype
= type_nitc__TObra
.color
;
4275 idtype
= type_nitc__TObra
.id
;
4276 if(var_new_child
== NULL
) {
4279 if(cltype
>= var_new_child
->type
->table_size
) {
4282 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4285 if (unlikely(!var6
)) {
4286 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4287 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name
);
4288 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2196);
4292 nitc__parser_prod___ABraassignMethid___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_obra= on <self:ABraassignMethid>*/
4297 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
4298 if (unlikely(var7
== NULL
)) {
4299 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4300 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2199);
4304 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:TCbra> */
4305 var_other
= var_old_child
;
4307 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:TCbra> */
4308 var12
= var7
== var_other
;
4311 RET_LABEL11
:(void)0;
4320 /* <var_new_child:nullable ANode> isa TCbra */
4321 cltype14
= type_nitc__TCbra
.color
;
4322 idtype15
= type_nitc__TCbra
.id
;
4323 if(var_new_child
== NULL
) {
4326 if(cltype14
>= var_new_child
->type
->table_size
) {
4329 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
4332 if (unlikely(!var13
)) {
4333 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4334 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16
);
4335 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2200);
4339 nitc__parser_prod___ABraassignMethid___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_cbra= on <self:ABraassignMethid>*/
4344 var17
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
4345 if (unlikely(var17
== NULL
)) {
4346 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4347 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2203);
4351 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TAssign> */
4352 var_other
= var_old_child
;
4354 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TAssign> */
4355 var22
= var17
== var_other
;
4358 RET_LABEL21
:(void)0;
4363 RET_LABEL19
:(void)0;
4367 /* <var_new_child:nullable ANode> isa TAssign */
4368 cltype24
= type_nitc__TAssign
.color
;
4369 idtype25
= type_nitc__TAssign
.id
;
4370 if(var_new_child
== NULL
) {
4373 if(cltype24
>= var_new_child
->type
->table_size
) {
4376 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
4379 if (unlikely(!var23
)) {
4380 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4381 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26
);
4382 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2204);
4386 nitc__parser_prod___ABraassignMethid___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#ABraassignMethid#n_assign= on <self:ABraassignMethid>*/
4393 /* method parser_prod#ABraassignMethid#n_obra= for (self: ABraassignMethid, TObra) */
4394 void nitc__parser_prod___ABraassignMethid___n_obra_61d(val
* self
, val
* p0
) {
4395 val
* var_node
/* var node: TObra */;
4397 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra
].val
= var_node
; /* _n_obra on <self:ABraassignMethid> */
4399 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TObra> */
4400 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TObra> */
4406 /* method parser_prod#ABraassignMethid#n_cbra= for (self: ABraassignMethid, TCbra) */
4407 void nitc__parser_prod___ABraassignMethid___n_cbra_61d(val
* self
, val
* p0
) {
4408 val
* var_node
/* var node: TCbra */;
4410 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra
].val
= var_node
; /* _n_cbra on <self:ABraassignMethid> */
4412 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TCbra> */
4413 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TCbra> */
4419 /* method parser_prod#ABraassignMethid#n_assign= for (self: ABraassignMethid, TAssign) */
4420 void nitc__parser_prod___ABraassignMethid___n_assign_61d(val
* self
, val
* p0
) {
4421 val
* var_node
/* var node: TAssign */;
4423 self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign
].val
= var_node
; /* _n_assign on <self:ABraassignMethid> */
4425 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TAssign> */
4426 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TAssign> */
4432 /* method parser_prod#ABraassignMethid#visit_all for (self: ABraassignMethid, Visitor) */
4433 void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4434 val
* var_v
/* var v: Visitor */;
4435 val
* var
/* : TObra */;
4436 val
* var1
/* : TCbra */;
4437 val
* var2
/* : TAssign */;
4439 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra
].val
; /* _n_obra on <self:ABraassignMethid> */
4440 if (unlikely(var
== NULL
)) {
4441 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra");
4442 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2228);
4446 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4448 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra
].val
; /* _n_cbra on <self:ABraassignMethid> */
4449 if (unlikely(var1
== NULL
)) {
4450 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra");
4451 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2229);
4455 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4457 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign
].val
; /* _n_assign on <self:ABraassignMethid> */
4458 if (unlikely(var2
== NULL
)) {
4459 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign");
4460 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2230);
4464 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4468 /* method parser_prod#AQid#init_aqid for (self: AQid, nullable AQualified, nullable TId) */
4469 void nitc__parser_prod___AQid___init_aqid(val
* self
, val
* p0
, val
* p1
) {
4470 val
* var_n_qualified
/* var n_qualified: nullable AQualified */;
4471 val
* var_n_id
/* var n_id: nullable TId */;
4472 short int var
/* : Bool */;
4473 short int var2
/* : Bool */;
4474 val
* var_other
/* var other: nullable Object */;
4475 short int var4
/* : Bool */;
4476 short int var5
/* : Bool */;
4478 { /* Inline kernel#Object#init (self) on <self:AQid> */
4482 var_n_qualified
= p0
;
4484 self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_qualified
].val
= var_n_qualified
; /* _n_qualified on <self:AQid> */
4485 if (var_n_qualified
== NULL
) {
4486 var
= 0; /* is null */
4488 var
= 1; /* arg is null and recv is not */
4491 { /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on <var_n_qualified:nullable AQualified> */
4492 var_other
= ((val
*)NULL
);
4494 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_qualified
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_qualified
, var_other
); /* == on <var_n_qualified:nullable AQualified(AQualified)>*/
4505 { /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on <var_n_qualified:nullable AQualified(AQualified)> */
4506 var_n_qualified
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qualified:nullable AQualified(AQualified)> */
4512 if (unlikely(var_n_id
== NULL
)) {
4513 PRINT_ERROR("Runtime error: %s", "Cast failed");
4514 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2241);
4517 self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_id
].val
= var_n_id
; /* _n_id on <self:AQid> */
4518 if (var_n_id
== NULL
) {
4519 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4520 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2242);
4523 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
4524 if (unlikely(var_n_id
== NULL
)) {
4525 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4526 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4529 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
4535 /* method parser_prod#AQid#replace_child for (self: AQid, ANode, nullable ANode) */
4536 void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4537 val
* var_old_child
/* var old_child: ANode */;
4538 val
* var_new_child
/* var new_child: nullable ANode */;
4539 val
* var
/* : nullable AQualified */;
4540 short int var1
/* : Bool */;
4541 short int var2
/* : Bool */;
4542 val
* var_other
/* var other: nullable Object */;
4543 short int var4
/* : Bool */;
4544 short int var6
/* : Bool */;
4545 short int var7
/* : Bool */;
4548 const char* var_class_name
;
4549 val
* var8
/* : TId */;
4550 short int var9
/* : Bool */;
4551 short int var11
/* : Bool */;
4552 short int var13
/* : Bool */;
4553 short int var14
/* : Bool */;
4556 const char* var_class_name17
;
4559 var
= self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_qualified
].val
; /* _n_qualified on <self:AQid> */
4561 var1
= 0; /* <var_old_child:ANode> cannot be null */
4563 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AQualified> */
4564 var_other
= var_old_child
;
4566 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AQualified(AQualified)> */
4567 var6
= var
== var_other
;
4580 /* <var_new_child:nullable ANode> isa nullable AQualified */
4581 cltype
= type_nullable__nitc__AQualified
.color
;
4582 idtype
= type_nullable__nitc__AQualified
.id
;
4583 if(var_new_child
== NULL
) {
4586 if(cltype
>= var_new_child
->type
->table_size
) {
4589 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4592 if (unlikely(!var7
)) {
4593 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4594 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name
);
4595 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2248);
4599 nitc__parser_prod___AQid___n_qualified_61d(self
, var_new_child
); /* Direct call parser_prod#AQid#n_qualified= on <self:AQid>*/
4604 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_id
].val
; /* _n_id on <self:AQid> */
4605 if (unlikely(var8
== NULL
)) {
4606 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4607 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2251);
4611 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TId> */
4612 var_other
= var_old_child
;
4614 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TId> */
4615 var13
= var8
== var_other
;
4618 RET_LABEL12
:(void)0;
4623 RET_LABEL10
:(void)0;
4627 /* <var_new_child:nullable ANode> isa TId */
4628 cltype15
= type_nitc__TId
.color
;
4629 idtype16
= type_nitc__TId
.id
;
4630 if(var_new_child
== NULL
) {
4633 if(cltype15
>= var_new_child
->type
->table_size
) {
4636 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4639 if (unlikely(!var14
)) {
4640 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4641 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17
);
4642 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2252);
4646 nitc__parser_prod___AQid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AQid#n_id= on <self:AQid>*/
4653 /* method parser_prod#AQid#n_qualified= for (self: AQid, nullable AQualified) */
4654 void nitc__parser_prod___AQid___n_qualified_61d(val
* self
, val
* p0
) {
4655 val
* var_node
/* var node: nullable AQualified */;
4656 short int var
/* : Bool */;
4657 short int var1
/* : Bool */;
4658 val
* var_other
/* var other: nullable Object */;
4659 short int var3
/* : Bool */;
4660 short int var4
/* : Bool */;
4662 self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_qualified
].val
= var_node
; /* _n_qualified on <self:AQid> */
4663 if (var_node
== NULL
) {
4664 var
= 0; /* is null */
4666 var
= 1; /* arg is null and recv is not */
4669 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQualified> */
4670 var_other
= ((val
*)NULL
);
4672 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 AQualified(AQualified)>*/
4683 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQualified(AQualified)> */
4684 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQualified(AQualified)> */
4692 /* method parser_prod#AQid#n_id= for (self: AQid, TId) */
4693 void nitc__parser_prod___AQid___n_id_61d(val
* self
, val
* p0
) {
4694 val
* var_node
/* var node: TId */;
4696 self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_id
].val
= var_node
; /* _n_id on <self:AQid> */
4698 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
4699 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
4705 /* method parser_prod#AQid#visit_all for (self: AQid, Visitor) */
4706 void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4707 val
* var_v
/* var v: Visitor */;
4708 val
* var
/* : nullable AQualified */;
4709 val
* var1
/* : TId */;
4711 var
= self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_qualified
].val
; /* _n_qualified on <self:AQid> */
4713 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4715 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AQid___n_id
].val
; /* _n_id on <self:AQid> */
4716 if (unlikely(var1
== NULL
)) {
4717 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4718 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2272);
4722 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4726 /* method parser_prod#AQclassid#init_aqclassid for (self: AQclassid, nullable AQualified, nullable TClassid) */
4727 void nitc__parser_prod___AQclassid___init_aqclassid(val
* self
, val
* p0
, val
* p1
) {
4728 val
* var_n_qualified
/* var n_qualified: nullable AQualified */;
4729 val
* var_n_id
/* var n_id: nullable TClassid */;
4730 short int var
/* : Bool */;
4731 short int var2
/* : Bool */;
4732 val
* var_other
/* var other: nullable Object */;
4733 short int var4
/* : Bool */;
4734 short int var5
/* : Bool */;
4736 { /* Inline kernel#Object#init (self) on <self:AQclassid> */
4740 var_n_qualified
= p0
;
4742 self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_qualified
].val
= var_n_qualified
; /* _n_qualified on <self:AQclassid> */
4743 if (var_n_qualified
== NULL
) {
4744 var
= 0; /* is null */
4746 var
= 1; /* arg is null and recv is not */
4749 { /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on <var_n_qualified:nullable AQualified> */
4750 var_other
= ((val
*)NULL
);
4752 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_qualified
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_qualified
, var_other
); /* == on <var_n_qualified:nullable AQualified(AQualified)>*/
4763 { /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on <var_n_qualified:nullable AQualified(AQualified)> */
4764 var_n_qualified
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qualified:nullable AQualified(AQualified)> */
4770 if (unlikely(var_n_id
== NULL
)) {
4771 PRINT_ERROR("Runtime error: %s", "Cast failed");
4772 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2283);
4775 self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_id
].val
= var_n_id
; /* _n_id on <self:AQclassid> */
4776 if (var_n_id
== NULL
) {
4777 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4778 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2284);
4781 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TClassid> */
4782 if (unlikely(var_n_id
== NULL
)) {
4783 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4784 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
4787 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TClassid> */
4793 /* method parser_prod#AQclassid#replace_child for (self: AQclassid, ANode, nullable ANode) */
4794 void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
4795 val
* var_old_child
/* var old_child: ANode */;
4796 val
* var_new_child
/* var new_child: nullable ANode */;
4797 val
* var
/* : nullable AQualified */;
4798 short int var1
/* : Bool */;
4799 short int var2
/* : Bool */;
4800 val
* var_other
/* var other: nullable Object */;
4801 short int var4
/* : Bool */;
4802 short int var6
/* : Bool */;
4803 short int var7
/* : Bool */;
4806 const char* var_class_name
;
4807 val
* var8
/* : TClassid */;
4808 short int var9
/* : Bool */;
4809 short int var11
/* : Bool */;
4810 short int var13
/* : Bool */;
4811 short int var14
/* : Bool */;
4814 const char* var_class_name17
;
4817 var
= self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_qualified
].val
; /* _n_qualified on <self:AQclassid> */
4819 var1
= 0; /* <var_old_child:ANode> cannot be null */
4821 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AQualified> */
4822 var_other
= var_old_child
;
4824 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AQualified(AQualified)> */
4825 var6
= var
== var_other
;
4838 /* <var_new_child:nullable ANode> isa nullable AQualified */
4839 cltype
= type_nullable__nitc__AQualified
.color
;
4840 idtype
= type_nullable__nitc__AQualified
.id
;
4841 if(var_new_child
== NULL
) {
4844 if(cltype
>= var_new_child
->type
->table_size
) {
4847 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4850 if (unlikely(!var7
)) {
4851 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4852 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name
);
4853 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2290);
4857 nitc__parser_prod___AQclassid___n_qualified_61d(self
, var_new_child
); /* Direct call parser_prod#AQclassid#n_qualified= on <self:AQclassid>*/
4862 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_id
].val
; /* _n_id on <self:AQclassid> */
4863 if (unlikely(var8
== NULL
)) {
4864 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4865 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2293);
4869 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TClassid> */
4870 var_other
= var_old_child
;
4872 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TClassid> */
4873 var13
= var8
== var_other
;
4876 RET_LABEL12
:(void)0;
4881 RET_LABEL10
:(void)0;
4885 /* <var_new_child:nullable ANode> isa TClassid */
4886 cltype15
= type_nitc__TClassid
.color
;
4887 idtype16
= type_nitc__TClassid
.id
;
4888 if(var_new_child
== NULL
) {
4891 if(cltype15
>= var_new_child
->type
->table_size
) {
4894 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
4897 if (unlikely(!var14
)) {
4898 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4899 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name17
);
4900 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2294);
4904 nitc__parser_prod___AQclassid___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AQclassid#n_id= on <self:AQclassid>*/
4911 /* method parser_prod#AQclassid#n_qualified= for (self: AQclassid, nullable AQualified) */
4912 void nitc__parser_prod___AQclassid___n_qualified_61d(val
* self
, val
* p0
) {
4913 val
* var_node
/* var node: nullable AQualified */;
4914 short int var
/* : Bool */;
4915 short int var1
/* : Bool */;
4916 val
* var_other
/* var other: nullable Object */;
4917 short int var3
/* : Bool */;
4918 short int var4
/* : Bool */;
4920 self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_qualified
].val
= var_node
; /* _n_qualified on <self:AQclassid> */
4921 if (var_node
== NULL
) {
4922 var
= 0; /* is null */
4924 var
= 1; /* arg is null and recv is not */
4927 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AQualified> */
4928 var_other
= ((val
*)NULL
);
4930 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 AQualified(AQualified)>*/
4941 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AQualified(AQualified)> */
4942 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AQualified(AQualified)> */
4950 /* method parser_prod#AQclassid#n_id= for (self: AQclassid, TClassid) */
4951 void nitc__parser_prod___AQclassid___n_id_61d(val
* self
, val
* p0
) {
4952 val
* var_node
/* var node: TClassid */;
4954 self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_id
].val
= var_node
; /* _n_id on <self:AQclassid> */
4956 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TClassid> */
4957 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TClassid> */
4963 /* method parser_prod#AQclassid#visit_all for (self: AQclassid, Visitor) */
4964 void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
4965 val
* var_v
/* var v: Visitor */;
4966 val
* var
/* : nullable AQualified */;
4967 val
* var1
/* : TClassid */;
4969 var
= self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_qualified
].val
; /* _n_qualified on <self:AQclassid> */
4971 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4973 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AQclassid___n_id
].val
; /* _n_id on <self:AQclassid> */
4974 if (unlikely(var1
== NULL
)) {
4975 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4976 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2314);
4980 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4984 /* method parser_prod#ASignature#init_asignature for (self: ASignature, nullable TOpar, Collection[Object], nullable TCpar, nullable AType) */
4985 void nitc__parser_prod___ASignature___init_asignature(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
4986 val
* var_n_opar
/* var n_opar: nullable TOpar */;
4987 val
* var_n_params
/* var n_params: Collection[Object] */;
4988 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
4989 val
* var_n_type
/* var n_type: nullable AType */;
4990 short int var
/* : Bool */;
4991 short int var2
/* : Bool */;
4992 val
* var_other
/* var other: nullable Object */;
4993 short int var4
/* : Bool */;
4994 short int var5
/* : Bool */;
4995 val
* var7
/* : ANodes[AParam] */;
4996 val
* var9
/* : ANodes[AParam] */;
4997 short int var10
/* : Bool */;
4998 short int var11
/* : Bool */;
4999 short int var13
/* : Bool */;
5000 short int var14
/* : Bool */;
5001 short int var16
/* : Bool */;
5002 short int var17
/* : Bool */;
5003 short int var19
/* : Bool */;
5004 short int var20
/* : Bool */;
5006 { /* Inline kernel#Object#init (self) on <self:ASignature> */
5014 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_opar
].val
= var_n_opar
; /* _n_opar on <self:ASignature> */
5015 if (var_n_opar
== NULL
) {
5016 var
= 0; /* is null */
5018 var
= 1; /* arg is null and recv is not */
5021 { /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on <var_n_opar:nullable TOpar> */
5022 var_other
= ((val
*)NULL
);
5024 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_opar
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_opar
, var_other
); /* == on <var_n_opar:nullable TOpar(TOpar)>*/
5035 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
5036 var_n_opar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
5043 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
5044 var9
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
5045 if (unlikely(var9
== NULL
)) {
5046 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
5047 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1679);
5055 nitc___nitc__ANodes___unsafe_add_all(var7
, var_n_params
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var7:ANodes[AParam]>*/
5057 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:ASignature> */
5058 if (var_n_cpar
== NULL
) {
5059 var10
= 0; /* is null */
5061 var10
= 1; /* arg is null and recv is not */
5064 { /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on <var_n_cpar:nullable TCpar> */
5065 var_other
= ((val
*)NULL
);
5067 var13
= ((short int(*)(val
* self
, val
* p0
))(var_n_cpar
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_cpar
, var_other
); /* == on <var_n_cpar:nullable TCpar(TCpar)>*/
5072 RET_LABEL12
:(void)0;
5078 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
5079 var_n_cpar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
5080 RET_LABEL15
:(void)0;
5085 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_type
].val
= var_n_type
; /* _n_type on <self:ASignature> */
5086 if (var_n_type
== NULL
) {
5087 var16
= 0; /* is null */
5089 var16
= 1; /* arg is null and recv is not */
5092 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
5093 var_other
= ((val
*)NULL
);
5095 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)>*/
5100 RET_LABEL18
:(void)0;
5106 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5107 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5108 RET_LABEL21
:(void)0;
5115 /* method parser_prod#ASignature#replace_child for (self: ASignature, ANode, nullable ANode) */
5116 void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5117 val
* var_old_child
/* var old_child: ANode */;
5118 val
* var_new_child
/* var new_child: nullable ANode */;
5119 val
* var
/* : nullable TOpar */;
5120 short int var1
/* : Bool */;
5121 short int var2
/* : Bool */;
5122 val
* var_other
/* var other: nullable Object */;
5123 short int var4
/* : Bool */;
5124 short int var6
/* : Bool */;
5125 short int var7
/* : Bool */;
5128 const char* var_class_name
;
5129 val
* var8
/* : ANodes[AParam] */;
5130 val
* var10
/* : ANodes[AParam] */;
5131 short int var11
/* : Bool */;
5132 val
* var12
/* : nullable TCpar */;
5133 short int var13
/* : Bool */;
5134 short int var14
/* : Bool */;
5135 short int var16
/* : Bool */;
5136 short int var18
/* : Bool */;
5137 short int var19
/* : Bool */;
5140 const char* var_class_name22
;
5141 val
* var23
/* : nullable AType */;
5142 short int var24
/* : Bool */;
5143 short int var25
/* : Bool */;
5144 short int var27
/* : Bool */;
5145 short int var29
/* : Bool */;
5146 short int var30
/* : Bool */;
5149 const char* var_class_name33
;
5152 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
5154 var1
= 0; /* <var_old_child:ANode> cannot be null */
5156 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TOpar> */
5157 var_other
= var_old_child
;
5159 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TOpar(TOpar)> */
5160 var6
= var
== var_other
;
5173 /* <var_new_child:nullable ANode> isa nullable TOpar */
5174 cltype
= type_nullable__nitc__TOpar
.color
;
5175 idtype
= type_nullable__nitc__TOpar
.id
;
5176 if(var_new_child
== NULL
) {
5179 if(cltype
>= var_new_child
->type
->table_size
) {
5182 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5185 if (unlikely(!var7
)) {
5186 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5187 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name
);
5188 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2337);
5192 nitc__parser_prod___ASignature___n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_opar= on <self:ASignature>*/
5198 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
5199 var10
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
5200 if (unlikely(var10
== NULL
)) {
5201 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
5202 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1679);
5210 var11
= nitc___nitc__ANodes___replace_child(var8
, var_old_child
, var_new_child
);
5216 var12
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
5217 if (var12
== NULL
) {
5218 var13
= 0; /* <var_old_child:ANode> cannot be null */
5220 { /* Inline kernel#Object#== (var12,var_old_child) on <var12:nullable TCpar> */
5221 var_other
= var_old_child
;
5223 { /* Inline kernel#Object#is_same_instance (var12,var_other) on <var12:nullable TCpar(TCpar)> */
5224 var18
= var12
== var_other
;
5227 RET_LABEL17
:(void)0;
5232 RET_LABEL15
:(void)0;
5237 /* <var_new_child:nullable ANode> isa nullable TCpar */
5238 cltype20
= type_nullable__nitc__TCpar
.color
;
5239 idtype21
= type_nullable__nitc__TCpar
.id
;
5240 if(var_new_child
== NULL
) {
5243 if(cltype20
>= var_new_child
->type
->table_size
) {
5246 var19
= var_new_child
->type
->type_table
[cltype20
] == idtype21
;
5249 if (unlikely(!var19
)) {
5250 var_class_name22
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5251 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name22
);
5252 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2342);
5256 nitc__parser_prod___ASignature___n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_cpar= on <self:ASignature>*/
5261 var23
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
5262 if (var23
== NULL
) {
5263 var24
= 0; /* <var_old_child:ANode> cannot be null */
5265 { /* Inline kernel#Object#== (var23,var_old_child) on <var23:nullable AType> */
5266 var_other
= var_old_child
;
5268 { /* Inline kernel#Object#is_same_instance (var23,var_other) on <var23:nullable AType(AType)> */
5269 var29
= var23
== var_other
;
5272 RET_LABEL28
:(void)0;
5277 RET_LABEL26
:(void)0;
5282 /* <var_new_child:nullable ANode> isa nullable AType */
5283 cltype31
= type_nullable__nitc__AType
.color
;
5284 idtype32
= type_nullable__nitc__AType
.id
;
5285 if(var_new_child
== NULL
) {
5288 if(cltype31
>= var_new_child
->type
->table_size
) {
5291 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
5294 if (unlikely(!var30
)) {
5295 var_class_name33
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5296 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name33
);
5297 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2346);
5301 nitc__parser_prod___ASignature___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ASignature#n_type= on <self:ASignature>*/
5308 /* method parser_prod#ASignature#n_opar= for (self: ASignature, nullable TOpar) */
5309 void nitc__parser_prod___ASignature___n_opar_61d(val
* self
, val
* p0
) {
5310 val
* var_node
/* var node: nullable TOpar */;
5311 short int var
/* : Bool */;
5312 short int var1
/* : Bool */;
5313 val
* var_other
/* var other: nullable Object */;
5314 short int var3
/* : Bool */;
5315 short int var4
/* : Bool */;
5317 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_opar
].val
= var_node
; /* _n_opar on <self:ASignature> */
5318 if (var_node
== NULL
) {
5319 var
= 0; /* is null */
5321 var
= 1; /* arg is null and recv is not */
5324 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TOpar> */
5325 var_other
= ((val
*)NULL
);
5327 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 TOpar(TOpar)>*/
5338 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
5339 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
5347 /* method parser_prod#ASignature#n_cpar= for (self: ASignature, nullable TCpar) */
5348 void nitc__parser_prod___ASignature___n_cpar_61d(val
* self
, val
* p0
) {
5349 val
* var_node
/* var node: nullable TCpar */;
5350 short int var
/* : Bool */;
5351 short int var1
/* : Bool */;
5352 val
* var_other
/* var other: nullable Object */;
5353 short int var3
/* : Bool */;
5354 short int var4
/* : Bool */;
5356 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_cpar
].val
= var_node
; /* _n_cpar on <self:ASignature> */
5357 if (var_node
== NULL
) {
5358 var
= 0; /* is null */
5360 var
= 1; /* arg is null and recv is not */
5363 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCpar> */
5364 var_other
= ((val
*)NULL
);
5366 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 TCpar(TCpar)>*/
5377 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
5378 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
5386 /* method parser_prod#ASignature#n_type= for (self: ASignature, nullable AType) */
5387 void nitc__parser_prod___ASignature___n_type_61d(val
* self
, val
* p0
) {
5388 val
* var_node
/* var node: nullable AType */;
5389 short int var
/* : Bool */;
5390 short int var1
/* : Bool */;
5391 val
* var_other
/* var other: nullable Object */;
5392 short int var3
/* : Bool */;
5393 short int var4
/* : Bool */;
5395 self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_type
].val
= var_node
; /* _n_type on <self:ASignature> */
5396 if (var_node
== NULL
) {
5397 var
= 0; /* is null */
5399 var
= 1; /* arg is null and recv is not */
5402 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
5403 var_other
= ((val
*)NULL
);
5405 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)>*/
5416 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
5417 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
5425 /* method parser_prod#ASignature#visit_all for (self: ASignature, Visitor) */
5426 void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5427 val
* var_v
/* var v: Visitor */;
5428 val
* var
/* : nullable TOpar */;
5429 val
* var1
/* : ANodes[AParam] */;
5430 val
* var3
/* : ANodes[AParam] */;
5431 val
* var4
/* : nullable TCpar */;
5432 val
* var5
/* : nullable AType */;
5434 var
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_opar
].val
; /* _n_opar on <self:ASignature> */
5436 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5439 { /* Inline parser_nodes#ASignature#n_params (self) on <self:ASignature> */
5440 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_params
].val
; /* _n_params on <self:ASignature> */
5441 if (unlikely(var3
== NULL
)) {
5442 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params");
5443 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1679);
5451 nitc___nitc__ANodes___visit_all(var1
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var1:ANodes[AParam]>*/
5453 var4
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_cpar
].val
; /* _n_cpar on <self:ASignature> */
5455 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5457 var5
= self
->attrs
[COLOR_nitc__parser_nodes__ASignature___n_type
].val
; /* _n_type on <self:ASignature> */
5459 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5463 /* method parser_prod#AParam#init_aparam for (self: AParam, nullable TId, nullable AType, nullable TDotdotdot, nullable AAnnotations) */
5464 void nitc__parser_prod___AParam___init_aparam(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
5465 val
* var_n_id
/* var n_id: nullable TId */;
5466 val
* var_n_type
/* var n_type: nullable AType */;
5467 val
* var_n_dotdotdot
/* var n_dotdotdot: nullable TDotdotdot */;
5468 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5469 short int var
/* : Bool */;
5470 short int var3
/* : Bool */;
5471 val
* var_other
/* var other: nullable Object */;
5472 short int var5
/* : Bool */;
5473 short int var6
/* : Bool */;
5474 short int var8
/* : Bool */;
5475 short int var9
/* : Bool */;
5476 short int var11
/* : Bool */;
5477 short int var12
/* : Bool */;
5478 short int var14
/* : Bool */;
5479 short int var15
/* : Bool */;
5480 short int var17
/* : Bool */;
5481 short int var18
/* : Bool */;
5483 { /* Inline kernel#Object#init (self) on <self:AParam> */
5489 var_n_dotdotdot
= p2
;
5490 var_n_annotations
= p3
;
5491 if (unlikely(var_n_id
== NULL
)) {
5492 PRINT_ERROR("Runtime error: %s", "Cast failed");
5493 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2384);
5496 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_id
].val
= var_n_id
; /* _n_id on <self:AParam> */
5497 if (var_n_id
== NULL
) {
5498 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5499 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2385);
5502 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
5503 if (unlikely(var_n_id
== NULL
)) {
5504 PRINT_ERROR("Runtime error: %s", "Receiver is null");
5505 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
5508 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
5512 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_type
].val
= var_n_type
; /* _n_type on <self:AParam> */
5513 if (var_n_type
== NULL
) {
5514 var
= 0; /* is null */
5516 var
= 1; /* arg is null and recv is not */
5519 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
5520 var_other
= ((val
*)NULL
);
5522 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)>*/
5533 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
5534 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
5540 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_dotdotdot
].val
= var_n_dotdotdot
; /* _n_dotdotdot on <self:AParam> */
5541 if (var_n_dotdotdot
== NULL
) {
5542 var8
= 0; /* is null */
5544 var8
= 1; /* arg is null and recv is not */
5547 { /* Inline kernel#Object#!= (var_n_dotdotdot,((val*)NULL)) on <var_n_dotdotdot:nullable TDotdotdot> */
5548 var_other
= ((val
*)NULL
);
5550 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_dotdotdot
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_dotdotdot
, var_other
); /* == on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)>*/
5555 RET_LABEL10
:(void)0;
5561 { /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
5562 var_n_dotdotdot
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_dotdotdot:nullable TDotdotdot(TDotdotdot)> */
5563 RET_LABEL13
:(void)0;
5568 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AParam> */
5569 if (var_n_annotations
== NULL
) {
5570 var14
= 0; /* is null */
5572 var14
= 1; /* arg is null and recv is not */
5575 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
5576 var_other
= ((val
*)NULL
);
5578 var17
= ((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)>*/
5583 RET_LABEL16
:(void)0;
5589 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5590 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
5591 RET_LABEL19
:(void)0;
5598 /* method parser_prod#AParam#replace_child for (self: AParam, ANode, nullable ANode) */
5599 void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
5600 val
* var_old_child
/* var old_child: ANode */;
5601 val
* var_new_child
/* var new_child: nullable ANode */;
5602 val
* var
/* : TId */;
5603 short int var1
/* : Bool */;
5604 val
* var_other
/* var other: nullable Object */;
5605 short int var3
/* : Bool */;
5606 short int var5
/* : Bool */;
5607 short int var6
/* : Bool */;
5610 const char* var_class_name
;
5611 val
* var7
/* : nullable AType */;
5612 short int var8
/* : Bool */;
5613 short int var9
/* : Bool */;
5614 short int var11
/* : Bool */;
5615 short int var13
/* : Bool */;
5616 short int var14
/* : Bool */;
5619 const char* var_class_name17
;
5620 val
* var18
/* : nullable TDotdotdot */;
5621 short int var19
/* : Bool */;
5622 short int var20
/* : Bool */;
5623 short int var22
/* : Bool */;
5624 short int var24
/* : Bool */;
5625 short int var25
/* : Bool */;
5628 const char* var_class_name28
;
5629 val
* var29
/* : nullable AAnnotations */;
5630 short int var30
/* : Bool */;
5631 short int var31
/* : Bool */;
5632 short int var33
/* : Bool */;
5633 short int var35
/* : Bool */;
5634 short int var36
/* : Bool */;
5637 const char* var_class_name39
;
5640 var
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
5641 if (unlikely(var
== NULL
)) {
5642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5643 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2396);
5647 { /* Inline kernel#Object#== (var,var_old_child) on <var:TId> */
5648 var_other
= var_old_child
;
5650 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TId> */
5651 var5
= var
== var_other
;
5663 /* <var_new_child:nullable ANode> isa TId */
5664 cltype
= type_nitc__TId
.color
;
5665 idtype
= type_nitc__TId
.id
;
5666 if(var_new_child
== NULL
) {
5669 if(cltype
>= var_new_child
->type
->table_size
) {
5672 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5675 if (unlikely(!var6
)) {
5676 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5677 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
5678 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2397);
5682 nitc__parser_prod___AParam___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_id= on <self:AParam>*/
5687 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
5689 var8
= 0; /* <var_old_child:ANode> cannot be null */
5691 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AType> */
5692 var_other
= var_old_child
;
5694 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AType(AType)> */
5695 var13
= var7
== var_other
;
5698 RET_LABEL12
:(void)0;
5703 RET_LABEL10
:(void)0;
5708 /* <var_new_child:nullable ANode> isa nullable AType */
5709 cltype15
= type_nullable__nitc__AType
.color
;
5710 idtype16
= type_nullable__nitc__AType
.id
;
5711 if(var_new_child
== NULL
) {
5714 if(cltype15
>= var_new_child
->type
->table_size
) {
5717 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
5720 if (unlikely(!var14
)) {
5721 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5722 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17
);
5723 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2401);
5727 nitc__parser_prod___AParam___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_type= on <self:AParam>*/
5732 var18
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
5733 if (var18
== NULL
) {
5734 var19
= 0; /* <var_old_child:ANode> cannot be null */
5736 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable TDotdotdot> */
5737 var_other
= var_old_child
;
5739 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable TDotdotdot(TDotdotdot)> */
5740 var24
= var18
== var_other
;
5743 RET_LABEL23
:(void)0;
5748 RET_LABEL21
:(void)0;
5753 /* <var_new_child:nullable ANode> isa nullable TDotdotdot */
5754 cltype26
= type_nullable__nitc__TDotdotdot
.color
;
5755 idtype27
= type_nullable__nitc__TDotdotdot
.id
;
5756 if(var_new_child
== NULL
) {
5759 if(cltype26
>= var_new_child
->type
->table_size
) {
5762 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
5765 if (unlikely(!var25
)) {
5766 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5767 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDotdotdot", var_class_name28
);
5768 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2405);
5772 nitc__parser_prod___AParam___n_dotdotdot_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_dotdotdot= on <self:AParam>*/
5777 var29
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
5778 if (var29
== NULL
) {
5779 var30
= 0; /* <var_old_child:ANode> cannot be null */
5781 { /* Inline kernel#Object#== (var29,var_old_child) on <var29:nullable AAnnotations> */
5782 var_other
= var_old_child
;
5784 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:nullable AAnnotations(AAnnotations)> */
5785 var35
= var29
== var_other
;
5788 RET_LABEL34
:(void)0;
5793 RET_LABEL32
:(void)0;
5798 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
5799 cltype37
= type_nullable__nitc__AAnnotations
.color
;
5800 idtype38
= type_nullable__nitc__AAnnotations
.id
;
5801 if(var_new_child
== NULL
) {
5804 if(cltype37
>= var_new_child
->type
->table_size
) {
5807 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
5810 if (unlikely(!var36
)) {
5811 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
5812 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name39
);
5813 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2409);
5817 nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AParam#n_annotations= on <self:AParam>*/
5824 /* method parser_prod#AParam#n_id= for (self: AParam, TId) */
5825 void nitc__parser_prod___AParam___n_id_61d(val
* self
, val
* p0
) {
5826 val
* var_node
/* var node: TId */;
5828 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_id
].val
= var_node
; /* _n_id on <self:AParam> */
5830 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
5831 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
5837 /* method parser_prod#AParam#n_type= for (self: AParam, nullable AType) */
5838 void nitc__parser_prod___AParam___n_type_61d(val
* self
, val
* p0
) {
5839 val
* var_node
/* var node: nullable AType */;
5840 short int var
/* : Bool */;
5841 short int var1
/* : Bool */;
5842 val
* var_other
/* var other: nullable Object */;
5843 short int var3
/* : Bool */;
5844 short int var4
/* : Bool */;
5846 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_type
].val
= var_node
; /* _n_type on <self:AParam> */
5847 if (var_node
== NULL
) {
5848 var
= 0; /* is null */
5850 var
= 1; /* arg is null and recv is not */
5853 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
5854 var_other
= ((val
*)NULL
);
5856 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)>*/
5867 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
5868 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
5876 /* method parser_prod#AParam#n_dotdotdot= for (self: AParam, nullable TDotdotdot) */
5877 void nitc__parser_prod___AParam___n_dotdotdot_61d(val
* self
, val
* p0
) {
5878 val
* var_node
/* var node: nullable TDotdotdot */;
5879 short int var
/* : Bool */;
5880 short int var1
/* : Bool */;
5881 val
* var_other
/* var other: nullable Object */;
5882 short int var3
/* : Bool */;
5883 short int var4
/* : Bool */;
5885 self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_dotdotdot
].val
= var_node
; /* _n_dotdotdot on <self:AParam> */
5886 if (var_node
== NULL
) {
5887 var
= 0; /* is null */
5889 var
= 1; /* arg is null and recv is not */
5892 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TDotdotdot> */
5893 var_other
= ((val
*)NULL
);
5895 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 TDotdotdot(TDotdotdot)>*/
5906 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDotdotdot(TDotdotdot)> */
5907 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDotdotdot(TDotdotdot)> */
5915 /* method parser_prod#AParam#n_annotations= for (self: AParam, nullable AAnnotations) */
5916 void nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
5917 val
* var_node
/* var node: nullable AAnnotations */;
5918 short int var
/* : Bool */;
5919 short int var1
/* : Bool */;
5920 val
* var_other
/* var other: nullable Object */;
5921 short int var3
/* : Bool */;
5922 short int var4
/* : Bool */;
5924 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AParam> */
5925 if (var_node
== NULL
) {
5926 var
= 0; /* is null */
5928 var
= 1; /* arg is null and recv is not */
5931 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
5932 var_other
= ((val
*)NULL
);
5934 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)>*/
5945 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
5946 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
5954 /* method parser_prod#AParam#visit_all for (self: AParam, Visitor) */
5955 void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
5956 val
* var_v
/* var v: Visitor */;
5957 val
* var
/* : TId */;
5958 val
* var1
/* : nullable AType */;
5959 val
* var2
/* : nullable TDotdotdot */;
5960 val
* var3
/* : nullable AAnnotations */;
5962 var
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_id
].val
; /* _n_id on <self:AParam> */
5963 if (unlikely(var
== NULL
)) {
5964 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
5965 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2438);
5969 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5971 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_type
].val
; /* _n_type on <self:AParam> */
5973 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5975 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AParam___n_dotdotdot
].val
; /* _n_dotdotdot on <self:AParam> */
5977 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5979 var3
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AParam> */
5981 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
5985 /* method parser_prod#AType#init_atype for (self: AType, nullable TKwnullable, nullable AQclassid, nullable TObra, Collection[Object], nullable TCbra, nullable AAnnotations) */
5986 void nitc__parser_prod___AType___init_atype(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
5987 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
5988 val
* var_n_qid
/* var n_qid: nullable AQclassid */;
5989 val
* var_n_obra
/* var n_obra: nullable TObra */;
5990 val
* var_n_types
/* var n_types: Collection[Object] */;
5991 val
* var_n_cbra
/* var n_cbra: nullable TCbra */;
5992 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5993 short int var
/* : Bool */;
5994 short int var2
/* : Bool */;
5995 val
* var_other
/* var other: nullable Object */;
5996 short int var4
/* : Bool */;
5997 short int var5
/* : Bool */;
5998 short int var8
/* : Bool */;
5999 short int var9
/* : Bool */;
6000 short int var11
/* : Bool */;
6001 short int var12
/* : Bool */;
6002 val
* var14
/* : ANodes[AType] */;
6003 val
* var16
/* : ANodes[AType] */;
6004 short int var17
/* : Bool */;
6005 short int var18
/* : Bool */;
6006 short int var20
/* : Bool */;
6007 short int var21
/* : Bool */;
6008 short int var23
/* : Bool */;
6009 short int var24
/* : Bool */;
6010 short int var26
/* : Bool */;
6011 short int var27
/* : Bool */;
6013 { /* Inline kernel#Object#init (self) on <self:AType> */
6017 var_n_kwnullable
= p0
;
6022 var_n_annotations
= p5
;
6023 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AType> */
6024 if (var_n_kwnullable
== NULL
) {
6025 var
= 0; /* is null */
6027 var
= 1; /* arg is null and recv is not */
6030 { /* Inline kernel#Object#!= (var_n_kwnullable,((val*)NULL)) on <var_n_kwnullable:nullable TKwnullable> */
6031 var_other
= ((val
*)NULL
);
6033 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwnullable
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwnullable
, var_other
); /* == on <var_n_kwnullable:nullable TKwnullable(TKwnullable)>*/
6044 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
6045 var_n_kwnullable
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable(TKwnullable)> */
6051 if (unlikely(var_n_qid
== NULL
)) {
6052 PRINT_ERROR("Runtime error: %s", "Cast failed");
6053 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2456);
6056 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_qid
].val
= var_n_qid
; /* _n_qid on <self:AType> */
6057 if (var_n_qid
== NULL
) {
6058 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6059 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2457);
6062 { /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on <var_n_qid:nullable AQclassid> */
6063 if (unlikely(var_n_qid
== NULL
)) {
6064 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6065 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6068 var_n_qid
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_qid:nullable AQclassid> */
6072 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_obra
].val
= var_n_obra
; /* _n_obra on <self:AType> */
6073 if (var_n_obra
== NULL
) {
6074 var8
= 0; /* is null */
6076 var8
= 1; /* arg is null and recv is not */
6079 { /* Inline kernel#Object#!= (var_n_obra,((val*)NULL)) on <var_n_obra:nullable TObra> */
6080 var_other
= ((val
*)NULL
);
6082 var11
= ((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)>*/
6087 RET_LABEL10
:(void)0;
6093 { /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on <var_n_obra:nullable TObra(TObra)> */
6094 var_n_obra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_obra:nullable TObra(TObra)> */
6095 RET_LABEL13
:(void)0;
6101 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
6102 var16
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
6103 if (unlikely(var16
== NULL
)) {
6104 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
6105 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1715);
6109 RET_LABEL15
:(void)0;
6113 nitc___nitc__ANodes___unsafe_add_all(var14
, var_n_types
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var14:ANodes[AType]>*/
6115 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_cbra
].val
= var_n_cbra
; /* _n_cbra on <self:AType> */
6116 if (var_n_cbra
== NULL
) {
6117 var17
= 0; /* is null */
6119 var17
= 1; /* arg is null and recv is not */
6122 { /* Inline kernel#Object#!= (var_n_cbra,((val*)NULL)) on <var_n_cbra:nullable TCbra> */
6123 var_other
= ((val
*)NULL
);
6125 var20
= ((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)>*/
6130 RET_LABEL19
:(void)0;
6136 { /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on <var_n_cbra:nullable TCbra(TCbra)> */
6137 var_n_cbra
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cbra:nullable TCbra(TCbra)> */
6138 RET_LABEL22
:(void)0;
6143 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AType> */
6144 if (var_n_annotations
== NULL
) {
6145 var23
= 0; /* is null */
6147 var23
= 1; /* arg is null and recv is not */
6150 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
6151 var_other
= ((val
*)NULL
);
6153 var26
= ((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)>*/
6158 RET_LABEL25
:(void)0;
6164 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6165 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
6166 RET_LABEL28
:(void)0;
6173 /* method parser_prod#AType#replace_child for (self: AType, ANode, nullable ANode) */
6174 void nitc__parser_prod___AType___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6175 val
* var_old_child
/* var old_child: ANode */;
6176 val
* var_new_child
/* var new_child: nullable ANode */;
6177 val
* var
/* : nullable TKwnullable */;
6178 short int var1
/* : Bool */;
6179 short int var2
/* : Bool */;
6180 val
* var_other
/* var other: nullable Object */;
6181 short int var4
/* : Bool */;
6182 short int var6
/* : Bool */;
6183 short int var7
/* : Bool */;
6186 const char* var_class_name
;
6187 val
* var8
/* : AQclassid */;
6188 short int var9
/* : Bool */;
6189 short int var11
/* : Bool */;
6190 short int var13
/* : Bool */;
6191 short int var14
/* : Bool */;
6194 const char* var_class_name17
;
6195 val
* var18
/* : nullable TObra */;
6196 short int var19
/* : Bool */;
6197 short int var20
/* : Bool */;
6198 short int var22
/* : Bool */;
6199 short int var24
/* : Bool */;
6200 short int var25
/* : Bool */;
6203 const char* var_class_name28
;
6204 val
* var29
/* : ANodes[AType] */;
6205 val
* var31
/* : ANodes[AType] */;
6206 short int var32
/* : Bool */;
6207 val
* var33
/* : nullable TCbra */;
6208 short int var34
/* : Bool */;
6209 short int var35
/* : Bool */;
6210 short int var37
/* : Bool */;
6211 short int var39
/* : Bool */;
6212 short int var40
/* : Bool */;
6215 const char* var_class_name43
;
6216 val
* var44
/* : nullable AAnnotations */;
6217 short int var45
/* : Bool */;
6218 short int var46
/* : Bool */;
6219 short int var48
/* : Bool */;
6220 short int var50
/* : Bool */;
6221 short int var51
/* : Bool */;
6224 const char* var_class_name54
;
6227 var
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
6229 var1
= 0; /* <var_old_child:ANode> cannot be null */
6231 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwnullable> */
6232 var_other
= var_old_child
;
6234 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwnullable(TKwnullable)> */
6235 var6
= var
== var_other
;
6248 /* <var_new_child:nullable ANode> isa nullable TKwnullable */
6249 cltype
= type_nullable__nitc__TKwnullable
.color
;
6250 idtype
= type_nullable__nitc__TKwnullable
.id
;
6251 if(var_new_child
== NULL
) {
6254 if(cltype
>= var_new_child
->type
->table_size
) {
6257 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6260 if (unlikely(!var7
)) {
6261 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6262 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnullable", var_class_name
);
6263 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2470);
6267 nitc__parser_prod___AType___n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_kwnullable= on <self:AType>*/
6272 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_qid
].val
; /* _n_qid on <self:AType> */
6273 if (unlikely(var8
== NULL
)) {
6274 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
6275 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2473);
6279 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:AQclassid> */
6280 var_other
= var_old_child
;
6282 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:AQclassid> */
6283 var13
= var8
== var_other
;
6286 RET_LABEL12
:(void)0;
6291 RET_LABEL10
:(void)0;
6295 /* <var_new_child:nullable ANode> isa AQclassid */
6296 cltype15
= type_nitc__AQclassid
.color
;
6297 idtype16
= type_nitc__AQclassid
.id
;
6298 if(var_new_child
== NULL
) {
6301 if(cltype15
>= var_new_child
->type
->table_size
) {
6304 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
6307 if (unlikely(!var14
)) {
6308 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6309 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQclassid", var_class_name17
);
6310 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2474);
6314 nitc__parser_prod___AType___n_qid_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_qid= on <self:AType>*/
6319 var18
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_obra
].val
; /* _n_obra on <self:AType> */
6320 if (var18
== NULL
) {
6321 var19
= 0; /* <var_old_child:ANode> cannot be null */
6323 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable TObra> */
6324 var_other
= var_old_child
;
6326 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable TObra(TObra)> */
6327 var24
= var18
== var_other
;
6330 RET_LABEL23
:(void)0;
6335 RET_LABEL21
:(void)0;
6340 /* <var_new_child:nullable ANode> isa nullable TObra */
6341 cltype26
= type_nullable__nitc__TObra
.color
;
6342 idtype27
= type_nullable__nitc__TObra
.id
;
6343 if(var_new_child
== NULL
) {
6346 if(cltype26
>= var_new_child
->type
->table_size
) {
6349 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
6352 if (unlikely(!var25
)) {
6353 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6354 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TObra", var_class_name28
);
6355 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2478);
6359 nitc__parser_prod___AType___n_obra_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_obra= on <self:AType>*/
6365 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
6366 var31
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
6367 if (unlikely(var31
== NULL
)) {
6368 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
6369 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1715);
6373 RET_LABEL30
:(void)0;
6377 var32
= nitc___nitc__ANodes___replace_child(var29
, var_old_child
, var_new_child
);
6383 var33
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_cbra
].val
; /* _n_cbra on <self:AType> */
6384 if (var33
== NULL
) {
6385 var34
= 0; /* <var_old_child:ANode> cannot be null */
6387 { /* Inline kernel#Object#== (var33,var_old_child) on <var33:nullable TCbra> */
6388 var_other
= var_old_child
;
6390 { /* Inline kernel#Object#is_same_instance (var33,var_other) on <var33:nullable TCbra(TCbra)> */
6391 var39
= var33
== var_other
;
6394 RET_LABEL38
:(void)0;
6399 RET_LABEL36
:(void)0;
6404 /* <var_new_child:nullable ANode> isa nullable TCbra */
6405 cltype41
= type_nullable__nitc__TCbra
.color
;
6406 idtype42
= type_nullable__nitc__TCbra
.id
;
6407 if(var_new_child
== NULL
) {
6410 if(cltype41
>= var_new_child
->type
->table_size
) {
6413 var40
= var_new_child
->type
->type_table
[cltype41
] == idtype42
;
6416 if (unlikely(!var40
)) {
6417 var_class_name43
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6418 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCbra", var_class_name43
);
6419 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2483);
6423 nitc__parser_prod___AType___n_cbra_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_cbra= on <self:AType>*/
6428 var44
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
6429 if (var44
== NULL
) {
6430 var45
= 0; /* <var_old_child:ANode> cannot be null */
6432 { /* Inline kernel#Object#== (var44,var_old_child) on <var44:nullable AAnnotations> */
6433 var_other
= var_old_child
;
6435 { /* Inline kernel#Object#is_same_instance (var44,var_other) on <var44:nullable AAnnotations(AAnnotations)> */
6436 var50
= var44
== var_other
;
6439 RET_LABEL49
:(void)0;
6444 RET_LABEL47
:(void)0;
6449 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
6450 cltype52
= type_nullable__nitc__AAnnotations
.color
;
6451 idtype53
= type_nullable__nitc__AAnnotations
.id
;
6452 if(var_new_child
== NULL
) {
6455 if(cltype52
>= var_new_child
->type
->table_size
) {
6458 var51
= var_new_child
->type
->type_table
[cltype52
] == idtype53
;
6461 if (unlikely(!var51
)) {
6462 var_class_name54
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6463 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name54
);
6464 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2487);
6468 nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AType#n_annotations= on <self:AType>*/
6475 /* method parser_prod#AType#n_kwnullable= for (self: AType, nullable TKwnullable) */
6476 void nitc__parser_prod___AType___n_kwnullable_61d(val
* self
, val
* p0
) {
6477 val
* var_node
/* var node: nullable TKwnullable */;
6478 short int var
/* : Bool */;
6479 short int var1
/* : Bool */;
6480 val
* var_other
/* var other: nullable Object */;
6481 short int var3
/* : Bool */;
6482 short int var4
/* : Bool */;
6484 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AType> */
6485 if (var_node
== NULL
) {
6486 var
= 0; /* is null */
6488 var
= 1; /* arg is null and recv is not */
6491 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwnullable> */
6492 var_other
= ((val
*)NULL
);
6494 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 TKwnullable(TKwnullable)>*/
6505 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwnullable(TKwnullable)> */
6506 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwnullable(TKwnullable)> */
6514 /* method parser_prod#AType#n_qid= for (self: AType, AQclassid) */
6515 void nitc__parser_prod___AType___n_qid_61d(val
* self
, val
* p0
) {
6516 val
* var_node
/* var node: AQclassid */;
6518 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_qid
].val
= var_node
; /* _n_qid on <self:AType> */
6520 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AQclassid> */
6521 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AQclassid> */
6527 /* method parser_prod#AType#n_obra= for (self: AType, nullable TObra) */
6528 void nitc__parser_prod___AType___n_obra_61d(val
* self
, val
* p0
) {
6529 val
* var_node
/* var node: nullable TObra */;
6530 short int var
/* : Bool */;
6531 short int var1
/* : Bool */;
6532 val
* var_other
/* var other: nullable Object */;
6533 short int var3
/* : Bool */;
6534 short int var4
/* : Bool */;
6536 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_obra
].val
= var_node
; /* _n_obra on <self:AType> */
6537 if (var_node
== NULL
) {
6538 var
= 0; /* is null */
6540 var
= 1; /* arg is null and recv is not */
6543 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TObra> */
6544 var_other
= ((val
*)NULL
);
6546 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)>*/
6557 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TObra(TObra)> */
6558 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TObra(TObra)> */
6566 /* method parser_prod#AType#n_cbra= for (self: AType, nullable TCbra) */
6567 void nitc__parser_prod___AType___n_cbra_61d(val
* self
, val
* p0
) {
6568 val
* var_node
/* var node: nullable TCbra */;
6569 short int var
/* : Bool */;
6570 short int var1
/* : Bool */;
6571 val
* var_other
/* var other: nullable Object */;
6572 short int var3
/* : Bool */;
6573 short int var4
/* : Bool */;
6575 self
->attrs
[COLOR_nitc__parser_nodes__AType___n_cbra
].val
= var_node
; /* _n_cbra on <self:AType> */
6576 if (var_node
== NULL
) {
6577 var
= 0; /* is null */
6579 var
= 1; /* arg is null and recv is not */
6582 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TCbra> */
6583 var_other
= ((val
*)NULL
);
6585 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)>*/
6596 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCbra(TCbra)> */
6597 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCbra(TCbra)> */
6605 /* method parser_prod#AType#n_annotations= for (self: AType, nullable AAnnotations) */
6606 void nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
6607 val
* var_node
/* var node: nullable AAnnotations */;
6608 short int var
/* : Bool */;
6609 short int var1
/* : Bool */;
6610 val
* var_other
/* var other: nullable Object */;
6611 short int var3
/* : Bool */;
6612 short int var4
/* : Bool */;
6614 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AType> */
6615 if (var_node
== NULL
) {
6616 var
= 0; /* is null */
6618 var
= 1; /* arg is null and recv is not */
6621 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
6622 var_other
= ((val
*)NULL
);
6624 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)>*/
6635 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
6636 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
6644 /* method parser_prod#AType#visit_all for (self: AType, Visitor) */
6645 void nitc__parser_prod___AType___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6646 val
* var_v
/* var v: Visitor */;
6647 val
* var
/* : nullable TKwnullable */;
6648 val
* var1
/* : AQclassid */;
6649 val
* var2
/* : nullable TObra */;
6650 val
* var3
/* : ANodes[AType] */;
6651 val
* var5
/* : ANodes[AType] */;
6652 val
* var6
/* : nullable TCbra */;
6653 val
* var7
/* : nullable AAnnotations */;
6655 var
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_kwnullable
].val
; /* _n_kwnullable on <self:AType> */
6657 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6659 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_qid
].val
; /* _n_qid on <self:AType> */
6660 if (unlikely(var1
== NULL
)) {
6661 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid");
6662 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2522);
6666 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6668 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_obra
].val
; /* _n_obra on <self:AType> */
6670 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6673 { /* Inline parser_nodes#AType#n_types (self) on <self:AType> */
6674 var5
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_types
].val
; /* _n_types on <self:AType> */
6675 if (unlikely(var5
== NULL
)) {
6676 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types");
6677 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1715);
6685 nitc___nitc__ANodes___visit_all(var3
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var3:ANodes[AType]>*/
6687 var6
= self
->attrs
[COLOR_nitc__parser_nodes__AType___n_cbra
].val
; /* _n_cbra on <self:AType> */
6689 nitc___nitc__Visitor___enter_visit(var_v
, var6
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6691 var7
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AType> */
6693 nitc___nitc__Visitor___enter_visit(var_v
, var7
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6697 /* method parser_prod#ALabel#init_alabel for (self: ALabel, nullable TKwlabel, nullable TId) */
6698 void nitc__parser_prod___ALabel___init_alabel(val
* self
, val
* p0
, val
* p1
) {
6699 val
* var_n_kwlabel
/* var n_kwlabel: nullable TKwlabel */;
6700 val
* var_n_id
/* var n_id: nullable TId */;
6701 short int var
/* : Bool */;
6702 short int var3
/* : Bool */;
6703 val
* var_other
/* var other: nullable Object */;
6704 short int var5
/* : Bool */;
6705 short int var6
/* : Bool */;
6707 { /* Inline kernel#Object#init (self) on <self:ALabel> */
6713 if (unlikely(var_n_kwlabel
== NULL
)) {
6714 PRINT_ERROR("Runtime error: %s", "Cast failed");
6715 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2535);
6718 self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_kwlabel
].val
= var_n_kwlabel
; /* _n_kwlabel on <self:ALabel> */
6719 if (var_n_kwlabel
== NULL
) {
6720 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6721 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2536);
6724 { /* Inline parser_nodes#ANode#parent= (var_n_kwlabel,self) on <var_n_kwlabel:nullable TKwlabel> */
6725 if (unlikely(var_n_kwlabel
== NULL
)) {
6726 PRINT_ERROR("Runtime error: %s", "Receiver is null");
6727 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
6730 var_n_kwlabel
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwlabel:nullable TKwlabel> */
6734 self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_id
].val
= var_n_id
; /* _n_id on <self:ALabel> */
6735 if (var_n_id
== NULL
) {
6736 var
= 0; /* is null */
6738 var
= 1; /* arg is null and recv is not */
6741 { /* Inline kernel#Object#!= (var_n_id,((val*)NULL)) on <var_n_id:nullable TId> */
6742 var_other
= ((val
*)NULL
);
6744 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_id
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_id
, var_other
); /* == on <var_n_id:nullable TId(TId)>*/
6755 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId(TId)> */
6756 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId(TId)> */
6764 /* method parser_prod#ALabel#replace_child for (self: ALabel, ANode, nullable ANode) */
6765 void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
6766 val
* var_old_child
/* var old_child: ANode */;
6767 val
* var_new_child
/* var new_child: nullable ANode */;
6768 val
* var
/* : TKwlabel */;
6769 short int var1
/* : Bool */;
6770 val
* var_other
/* var other: nullable Object */;
6771 short int var3
/* : Bool */;
6772 short int var5
/* : Bool */;
6773 short int var6
/* : Bool */;
6776 const char* var_class_name
;
6777 val
* var7
/* : nullable TId */;
6778 short int var8
/* : Bool */;
6779 short int var9
/* : Bool */;
6780 short int var11
/* : Bool */;
6781 short int var13
/* : Bool */;
6782 short int var14
/* : Bool */;
6785 const char* var_class_name17
;
6788 var
= self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
6789 if (unlikely(var
== NULL
)) {
6790 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
6791 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2543);
6795 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwlabel> */
6796 var_other
= var_old_child
;
6798 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwlabel> */
6799 var5
= var
== var_other
;
6811 /* <var_new_child:nullable ANode> isa TKwlabel */
6812 cltype
= type_nitc__TKwlabel
.color
;
6813 idtype
= type_nitc__TKwlabel
.id
;
6814 if(var_new_child
== NULL
) {
6817 if(cltype
>= var_new_child
->type
->table_size
) {
6820 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6823 if (unlikely(!var6
)) {
6824 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6825 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwlabel", var_class_name
);
6826 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2544);
6830 nitc__parser_prod___ALabel___n_kwlabel_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_kwlabel= on <self:ALabel>*/
6835 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
6837 var8
= 0; /* <var_old_child:ANode> cannot be null */
6839 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable TId> */
6840 var_other
= var_old_child
;
6842 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable TId(TId)> */
6843 var13
= var7
== var_other
;
6846 RET_LABEL12
:(void)0;
6851 RET_LABEL10
:(void)0;
6856 /* <var_new_child:nullable ANode> isa nullable TId */
6857 cltype15
= type_nullable__nitc__TId
.color
;
6858 idtype16
= type_nullable__nitc__TId
.id
;
6859 if(var_new_child
== NULL
) {
6862 if(cltype15
>= var_new_child
->type
->table_size
) {
6865 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
6868 if (unlikely(!var14
)) {
6869 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
6870 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17
);
6871 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2548);
6875 nitc__parser_prod___ALabel___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#ALabel#n_id= on <self:ALabel>*/
6882 /* method parser_prod#ALabel#n_kwlabel= for (self: ALabel, TKwlabel) */
6883 void nitc__parser_prod___ALabel___n_kwlabel_61d(val
* self
, val
* p0
) {
6884 val
* var_node
/* var node: TKwlabel */;
6886 self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_kwlabel
].val
= var_node
; /* _n_kwlabel on <self:ALabel> */
6888 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwlabel> */
6889 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwlabel> */
6895 /* method parser_prod#ALabel#n_id= for (self: ALabel, nullable TId) */
6896 void nitc__parser_prod___ALabel___n_id_61d(val
* self
, val
* p0
) {
6897 val
* var_node
/* var node: nullable TId */;
6898 short int var
/* : Bool */;
6899 short int var1
/* : Bool */;
6900 val
* var_other
/* var other: nullable Object */;
6901 short int var3
/* : Bool */;
6902 short int var4
/* : Bool */;
6904 self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_id
].val
= var_node
; /* _n_id on <self:ALabel> */
6905 if (var_node
== NULL
) {
6906 var
= 0; /* is null */
6908 var
= 1; /* arg is null and recv is not */
6911 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TId> */
6912 var_other
= ((val
*)NULL
);
6914 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 TId(TId)>*/
6925 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TId(TId)> */
6926 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TId(TId)> */
6934 /* method parser_prod#ALabel#visit_all for (self: ALabel, Visitor) */
6935 void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
6936 val
* var_v
/* var v: Visitor */;
6937 val
* var
/* : TKwlabel */;
6938 val
* var1
/* : nullable TId */;
6940 var
= self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_kwlabel
].val
; /* _n_kwlabel on <self:ALabel> */
6941 if (unlikely(var
== NULL
)) {
6942 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel");
6943 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2567);
6947 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6949 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ALabel___n_id
].val
; /* _n_id on <self:ALabel> */
6951 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
6955 /* method parser_prod#ABlockExpr#init_ablockexpr for (self: ABlockExpr, Collection[Object], nullable TKwend) */
6956 void nitc__parser_prod___ABlockExpr___init_ablockexpr(val
* self
, val
* p0
, val
* p1
) {
6957 val
* var_n_expr
/* var n_expr: Collection[Object] */;
6958 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
6959 val
* var
/* : ANodes[AExpr] */;
6960 val
* var3
/* : ANodes[AExpr] */;
6961 short int var4
/* : Bool */;
6962 short int var5
/* : Bool */;
6963 val
* var_other
/* var other: nullable Object */;
6964 short int var7
/* : Bool */;
6965 short int var8
/* : Bool */;
6967 { /* Inline kernel#Object#init (self) on <self:ABlockExpr> */
6974 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
6975 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
6976 if (unlikely(var3
== NULL
)) {
6977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
6978 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1744);
6986 nitc___nitc__ANodes___unsafe_add_all(var
, var_n_expr
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[AExpr]>*/
6988 self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ABlockExpr> */
6989 if (var_n_kwend
== NULL
) {
6990 var4
= 0; /* is null */
6992 var4
= 1; /* arg is null and recv is not */
6995 { /* Inline kernel#Object#!= (var_n_kwend,((val*)NULL)) on <var_n_kwend:nullable TKwend> */
6996 var_other
= ((val
*)NULL
);
6998 var7
= ((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)>*/
7009 { /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on <var_n_kwend:nullable TKwend(TKwend)> */
7010 var_n_kwend
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwend:nullable TKwend(TKwend)> */
7018 /* method parser_prod#ABlockExpr#replace_child for (self: ABlockExpr, ANode, nullable ANode) */
7019 void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7020 val
* var_old_child
/* var old_child: ANode */;
7021 val
* var_new_child
/* var new_child: nullable ANode */;
7022 val
* var
/* : ANodes[AExpr] */;
7023 val
* var2
/* : ANodes[AExpr] */;
7024 short int var3
/* : Bool */;
7025 val
* var4
/* : nullable TKwend */;
7026 short int var5
/* : Bool */;
7027 short int var6
/* : Bool */;
7028 val
* var_other
/* var other: nullable Object */;
7029 short int var8
/* : Bool */;
7030 short int var10
/* : Bool */;
7031 short int var11
/* : Bool */;
7034 const char* var_class_name
;
7038 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
7039 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
7040 if (unlikely(var2
== NULL
)) {
7041 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7042 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1744);
7050 var3
= nitc___nitc__ANodes___replace_child(var
, var_old_child
, var_new_child
);
7056 var4
= self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
7058 var5
= 0; /* <var_old_child:ANode> cannot be null */
7060 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable TKwend> */
7061 var_other
= var_old_child
;
7063 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable TKwend(TKwend)> */
7064 var10
= var4
== var_other
;
7077 /* <var_new_child:nullable ANode> isa nullable TKwend */
7078 cltype
= type_nullable__nitc__TKwend
.color
;
7079 idtype
= type_nullable__nitc__TKwend
.id
;
7080 if(var_new_child
== NULL
) {
7083 if(cltype
>= var_new_child
->type
->table_size
) {
7086 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7089 if (unlikely(!var11
)) {
7090 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7091 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name
);
7092 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2586);
7096 nitc__parser_prod___ABlockExpr___n_kwend_61d(self
, var_new_child
); /* Direct call parser_prod#ABlockExpr#n_kwend= on <self:ABlockExpr>*/
7103 /* method parser_prod#ABlockExpr#n_kwend= for (self: ABlockExpr, nullable TKwend) */
7104 void nitc__parser_prod___ABlockExpr___n_kwend_61d(val
* self
, val
* p0
) {
7105 val
* var_node
/* var node: nullable TKwend */;
7106 short int var
/* : Bool */;
7107 short int var1
/* : Bool */;
7108 val
* var_other
/* var other: nullable Object */;
7109 short int var3
/* : Bool */;
7110 short int var4
/* : Bool */;
7112 self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend
].val
= var_node
; /* _n_kwend on <self:ABlockExpr> */
7113 if (var_node
== NULL
) {
7114 var
= 0; /* is null */
7116 var
= 1; /* arg is null and recv is not */
7119 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwend> */
7120 var_other
= ((val
*)NULL
);
7122 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)>*/
7133 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwend(TKwend)> */
7134 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwend(TKwend)> */
7142 /* method parser_prod#ABlockExpr#visit_all for (self: ABlockExpr, Visitor) */
7143 void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7144 val
* var_v
/* var v: Visitor */;
7145 val
* var
/* : ANodes[AExpr] */;
7146 val
* var2
/* : ANodes[AExpr] */;
7147 val
* var3
/* : nullable TKwend */;
7150 { /* Inline parser_nodes#ABlockExpr#n_expr (self) on <self:ABlockExpr> */
7151 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_expr
].val
; /* _n_expr on <self:ABlockExpr> */
7152 if (unlikely(var2
== NULL
)) {
7153 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
7154 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 1744);
7162 nitc___nitc__ANodes___visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[AExpr]>*/
7164 var3
= self
->attrs
[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend
].val
; /* _n_kwend on <self:ABlockExpr> */
7166 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7170 /* method parser_prod#AVardeclExpr#init_avardeclexpr for (self: AVardeclExpr, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations) */
7171 void nitc__parser_prod___AVardeclExpr___init_avardeclexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7172 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
7173 val
* var_n_id
/* var n_id: nullable TId */;
7174 val
* var_n_type
/* var n_type: nullable AType */;
7175 val
* var_n_assign
/* var n_assign: nullable TAssign */;
7176 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7177 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
7178 short int var
/* : Bool */;
7179 short int var2
/* : Bool */;
7180 val
* var_other
/* var other: nullable Object */;
7181 short int var4
/* : Bool */;
7182 short int var5
/* : Bool */;
7183 short int var8
/* : Bool */;
7184 short int var9
/* : Bool */;
7185 short int var11
/* : Bool */;
7186 short int var12
/* : Bool */;
7187 short int var14
/* : Bool */;
7188 short int var15
/* : Bool */;
7189 short int var17
/* : Bool */;
7190 short int var18
/* : Bool */;
7191 short int var20
/* : Bool */;
7192 short int var21
/* : Bool */;
7193 short int var23
/* : Bool */;
7194 short int var24
/* : Bool */;
7195 short int var26
/* : Bool */;
7196 short int var27
/* : Bool */;
7197 short int var29
/* : Bool */;
7198 short int var30
/* : Bool */;
7200 { /* Inline kernel#Object#init (self) on <self:AVardeclExpr> */
7209 var_n_annotations
= p5
;
7210 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AVardeclExpr> */
7211 if (var_n_kwvar
== NULL
) {
7212 var
= 0; /* is null */
7214 var
= 1; /* arg is null and recv is not */
7217 { /* Inline kernel#Object#!= (var_n_kwvar,((val*)NULL)) on <var_n_kwvar:nullable TKwvar> */
7218 var_other
= ((val
*)NULL
);
7220 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwvar
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwvar
, var_other
); /* == on <var_n_kwvar:nullable TKwvar(TKwvar)>*/
7231 { /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on <var_n_kwvar:nullable TKwvar(TKwvar)> */
7232 var_n_kwvar
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwvar:nullable TKwvar(TKwvar)> */
7238 if (unlikely(var_n_id
== NULL
)) {
7239 PRINT_ERROR("Runtime error: %s", "Cast failed");
7240 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2616);
7243 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_id
].val
= var_n_id
; /* _n_id on <self:AVardeclExpr> */
7244 if (var_n_id
== NULL
) {
7245 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7246 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2617);
7249 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
7250 if (unlikely(var_n_id
== NULL
)) {
7251 PRINT_ERROR("Runtime error: %s", "Receiver is null");
7252 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
7255 var_n_id
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
7259 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_type
].val
= var_n_type
; /* _n_type on <self:AVardeclExpr> */
7260 if (var_n_type
== NULL
) {
7261 var8
= 0; /* is null */
7263 var8
= 1; /* arg is null and recv is not */
7266 { /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on <var_n_type:nullable AType> */
7267 var_other
= ((val
*)NULL
);
7269 var11
= ((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)>*/
7274 RET_LABEL10
:(void)0;
7280 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType(AType)> */
7281 var_n_type
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType(AType)> */
7282 RET_LABEL13
:(void)0;
7287 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign
].val
= var_n_assign
; /* _n_assign on <self:AVardeclExpr> */
7288 if (var_n_assign
== NULL
) {
7289 var14
= 0; /* is null */
7291 var14
= 1; /* arg is null and recv is not */
7294 { /* Inline kernel#Object#!= (var_n_assign,((val*)NULL)) on <var_n_assign:nullable TAssign> */
7295 var_other
= ((val
*)NULL
);
7297 var17
= ((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)>*/
7302 RET_LABEL16
:(void)0;
7308 { /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on <var_n_assign:nullable TAssign(TAssign)> */
7309 var_n_assign
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_assign:nullable TAssign(TAssign)> */
7310 RET_LABEL19
:(void)0;
7315 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AVardeclExpr> */
7316 if (var_n_expr
== NULL
) {
7317 var20
= 0; /* is null */
7319 var20
= 1; /* arg is null and recv is not */
7322 { /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on <var_n_expr:nullable AExpr> */
7323 var_other
= ((val
*)NULL
);
7325 var23
= ((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)>*/
7330 RET_LABEL22
:(void)0;
7336 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
7337 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
7338 RET_LABEL25
:(void)0;
7343 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AVardeclExpr> */
7344 if (var_n_annotations
== NULL
) {
7345 var26
= 0; /* is null */
7347 var26
= 1; /* arg is null and recv is not */
7350 { /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on <var_n_annotations:nullable AAnnotations> */
7351 var_other
= ((val
*)NULL
);
7353 var29
= ((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)>*/
7358 RET_LABEL28
:(void)0;
7364 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7365 var_n_annotations
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
7366 RET_LABEL31
:(void)0;
7373 /* method parser_prod#AVardeclExpr#replace_child for (self: AVardeclExpr, ANode, nullable ANode) */
7374 void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
7375 val
* var_old_child
/* var old_child: ANode */;
7376 val
* var_new_child
/* var new_child: nullable ANode */;
7377 val
* var
/* : nullable TKwvar */;
7378 short int var1
/* : Bool */;
7379 short int var2
/* : Bool */;
7380 val
* var_other
/* var other: nullable Object */;
7381 short int var4
/* : Bool */;
7382 short int var6
/* : Bool */;
7383 short int var7
/* : Bool */;
7386 const char* var_class_name
;
7387 val
* var8
/* : TId */;
7388 short int var9
/* : Bool */;
7389 short int var11
/* : Bool */;
7390 short int var13
/* : Bool */;
7391 short int var14
/* : Bool */;
7394 const char* var_class_name17
;
7395 val
* var18
/* : nullable AType */;
7396 short int var19
/* : Bool */;
7397 short int var20
/* : Bool */;
7398 short int var22
/* : Bool */;
7399 short int var24
/* : Bool */;
7400 short int var25
/* : Bool */;
7403 const char* var_class_name28
;
7404 val
* var29
/* : nullable TAssign */;
7405 short int var30
/* : Bool */;
7406 short int var31
/* : Bool */;
7407 short int var33
/* : Bool */;
7408 short int var35
/* : Bool */;
7409 short int var36
/* : Bool */;
7412 const char* var_class_name39
;
7413 val
* var40
/* : nullable AExpr */;
7414 short int var41
/* : Bool */;
7415 short int var42
/* : Bool */;
7416 short int var44
/* : Bool */;
7417 short int var46
/* : Bool */;
7418 short int var47
/* : Bool */;
7421 const char* var_class_name50
;
7422 val
* var51
/* : nullable AAnnotations */;
7423 short int var52
/* : Bool */;
7424 short int var53
/* : Bool */;
7425 short int var55
/* : Bool */;
7426 short int var57
/* : Bool */;
7427 short int var58
/* : Bool */;
7430 const char* var_class_name61
;
7433 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
7435 var1
= 0; /* <var_old_child:ANode> cannot be null */
7437 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwvar> */
7438 var_other
= var_old_child
;
7440 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwvar(TKwvar)> */
7441 var6
= var
== var_other
;
7454 /* <var_new_child:nullable ANode> isa nullable TKwvar */
7455 cltype
= type_nullable__nitc__TKwvar
.color
;
7456 idtype
= type_nullable__nitc__TKwvar
.id
;
7457 if(var_new_child
== NULL
) {
7460 if(cltype
>= var_new_child
->type
->table_size
) {
7463 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7466 if (unlikely(!var7
)) {
7467 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7468 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwvar", var_class_name
);
7469 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2631);
7473 nitc__parser_prod___AVardeclExpr___n_kwvar_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_kwvar= on <self:AVardeclExpr>*/
7478 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
7479 if (unlikely(var8
== NULL
)) {
7480 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7481 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2634);
7485 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TId> */
7486 var_other
= var_old_child
;
7488 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TId> */
7489 var13
= var8
== var_other
;
7492 RET_LABEL12
:(void)0;
7497 RET_LABEL10
:(void)0;
7501 /* <var_new_child:nullable ANode> isa TId */
7502 cltype15
= type_nitc__TId
.color
;
7503 idtype16
= type_nitc__TId
.id
;
7504 if(var_new_child
== NULL
) {
7507 if(cltype15
>= var_new_child
->type
->table_size
) {
7510 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
7513 if (unlikely(!var14
)) {
7514 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7515 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17
);
7516 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2635);
7520 nitc__parser_prod___AVardeclExpr___n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_id= on <self:AVardeclExpr>*/
7525 var18
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
7526 if (var18
== NULL
) {
7527 var19
= 0; /* <var_old_child:ANode> cannot be null */
7529 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable AType> */
7530 var_other
= var_old_child
;
7532 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable AType(AType)> */
7533 var24
= var18
== var_other
;
7536 RET_LABEL23
:(void)0;
7541 RET_LABEL21
:(void)0;
7546 /* <var_new_child:nullable ANode> isa nullable AType */
7547 cltype26
= type_nullable__nitc__AType
.color
;
7548 idtype27
= type_nullable__nitc__AType
.id
;
7549 if(var_new_child
== NULL
) {
7552 if(cltype26
>= var_new_child
->type
->table_size
) {
7555 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7558 if (unlikely(!var25
)) {
7559 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7560 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name28
);
7561 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2639);
7565 nitc__parser_prod___AVardeclExpr___n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_type= on <self:AVardeclExpr>*/
7570 var29
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
7571 if (var29
== NULL
) {
7572 var30
= 0; /* <var_old_child:ANode> cannot be null */
7574 { /* Inline kernel#Object#== (var29,var_old_child) on <var29:nullable TAssign> */
7575 var_other
= var_old_child
;
7577 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:nullable TAssign(TAssign)> */
7578 var35
= var29
== var_other
;
7581 RET_LABEL34
:(void)0;
7586 RET_LABEL32
:(void)0;
7591 /* <var_new_child:nullable ANode> isa nullable TAssign */
7592 cltype37
= type_nullable__nitc__TAssign
.color
;
7593 idtype38
= type_nullable__nitc__TAssign
.id
;
7594 if(var_new_child
== NULL
) {
7597 if(cltype37
>= var_new_child
->type
->table_size
) {
7600 var36
= var_new_child
->type
->type_table
[cltype37
] == idtype38
;
7603 if (unlikely(!var36
)) {
7604 var_class_name39
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7605 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name39
);
7606 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2643);
7610 nitc__parser_prod___AVardeclExpr___n_assign_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_assign= on <self:AVardeclExpr>*/
7615 var40
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
7616 if (var40
== NULL
) {
7617 var41
= 0; /* <var_old_child:ANode> cannot be null */
7619 { /* Inline kernel#Object#== (var40,var_old_child) on <var40:nullable AExpr> */
7620 var_other
= var_old_child
;
7622 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:nullable AExpr(AExpr)> */
7623 var46
= var40
== var_other
;
7626 RET_LABEL45
:(void)0;
7631 RET_LABEL43
:(void)0;
7636 /* <var_new_child:nullable ANode> isa nullable AExpr */
7637 cltype48
= type_nullable__nitc__AExpr
.color
;
7638 idtype49
= type_nullable__nitc__AExpr
.id
;
7639 if(var_new_child
== NULL
) {
7642 if(cltype48
>= var_new_child
->type
->table_size
) {
7645 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
7648 if (unlikely(!var47
)) {
7649 var_class_name50
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7650 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name50
);
7651 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2647);
7655 nitc__parser_prod___AVardeclExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_expr= on <self:AVardeclExpr>*/
7660 var51
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
7661 if (var51
== NULL
) {
7662 var52
= 0; /* <var_old_child:ANode> cannot be null */
7664 { /* Inline kernel#Object#== (var51,var_old_child) on <var51:nullable AAnnotations> */
7665 var_other
= var_old_child
;
7667 { /* Inline kernel#Object#is_same_instance (var51,var_other) on <var51:nullable AAnnotations(AAnnotations)> */
7668 var57
= var51
== var_other
;
7671 RET_LABEL56
:(void)0;
7676 RET_LABEL54
:(void)0;
7681 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
7682 cltype59
= type_nullable__nitc__AAnnotations
.color
;
7683 idtype60
= type_nullable__nitc__AAnnotations
.id
;
7684 if(var_new_child
== NULL
) {
7687 if(cltype59
>= var_new_child
->type
->table_size
) {
7690 var58
= var_new_child
->type
->type_table
[cltype59
] == idtype60
;
7693 if (unlikely(!var58
)) {
7694 var_class_name61
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
7695 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name61
);
7696 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2651);
7700 nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AVardeclExpr#n_annotations= on <self:AVardeclExpr>*/
7707 /* method parser_prod#AVardeclExpr#n_kwvar= for (self: AVardeclExpr, nullable TKwvar) */
7708 void nitc__parser_prod___AVardeclExpr___n_kwvar_61d(val
* self
, val
* p0
) {
7709 val
* var_node
/* var node: nullable TKwvar */;
7710 short int var
/* : Bool */;
7711 short int var1
/* : Bool */;
7712 val
* var_other
/* var other: nullable Object */;
7713 short int var3
/* : Bool */;
7714 short int var4
/* : Bool */;
7716 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AVardeclExpr> */
7717 if (var_node
== NULL
) {
7718 var
= 0; /* is null */
7720 var
= 1; /* arg is null and recv is not */
7723 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwvar> */
7724 var_other
= ((val
*)NULL
);
7726 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 TKwvar(TKwvar)>*/
7737 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwvar(TKwvar)> */
7738 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwvar(TKwvar)> */
7746 /* method parser_prod#AVardeclExpr#n_id= for (self: AVardeclExpr, TId) */
7747 void nitc__parser_prod___AVardeclExpr___n_id_61d(val
* self
, val
* p0
) {
7748 val
* var_node
/* var node: TId */;
7750 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_id
].val
= var_node
; /* _n_id on <self:AVardeclExpr> */
7752 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TId> */
7753 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TId> */
7759 /* method parser_prod#AVardeclExpr#n_type= for (self: AVardeclExpr, nullable AType) */
7760 void nitc__parser_prod___AVardeclExpr___n_type_61d(val
* self
, val
* p0
) {
7761 val
* var_node
/* var node: nullable AType */;
7762 short int var
/* : Bool */;
7763 short int var1
/* : Bool */;
7764 val
* var_other
/* var other: nullable Object */;
7765 short int var3
/* : Bool */;
7766 short int var4
/* : Bool */;
7768 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_type
].val
= var_node
; /* _n_type on <self:AVardeclExpr> */
7769 if (var_node
== NULL
) {
7770 var
= 0; /* is null */
7772 var
= 1; /* arg is null and recv is not */
7775 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AType> */
7776 var_other
= ((val
*)NULL
);
7778 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)>*/
7789 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AType(AType)> */
7790 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AType(AType)> */
7798 /* method parser_prod#AVardeclExpr#n_assign= for (self: AVardeclExpr, nullable TAssign) */
7799 void nitc__parser_prod___AVardeclExpr___n_assign_61d(val
* self
, val
* p0
) {
7800 val
* var_node
/* var node: nullable TAssign */;
7801 short int var
/* : Bool */;
7802 short int var1
/* : Bool */;
7803 val
* var_other
/* var other: nullable Object */;
7804 short int var3
/* : Bool */;
7805 short int var4
/* : Bool */;
7807 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign
].val
= var_node
; /* _n_assign on <self:AVardeclExpr> */
7808 if (var_node
== NULL
) {
7809 var
= 0; /* is null */
7811 var
= 1; /* arg is null and recv is not */
7814 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TAssign> */
7815 var_other
= ((val
*)NULL
);
7817 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)>*/
7828 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAssign(TAssign)> */
7829 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAssign(TAssign)> */
7837 /* method parser_prod#AVardeclExpr#n_expr= for (self: AVardeclExpr, nullable AExpr) */
7838 void nitc__parser_prod___AVardeclExpr___n_expr_61d(val
* self
, val
* p0
) {
7839 val
* var_node
/* var node: nullable AExpr */;
7840 short int var
/* : Bool */;
7841 short int var1
/* : Bool */;
7842 val
* var_other
/* var other: nullable Object */;
7843 short int var3
/* : Bool */;
7844 short int var4
/* : Bool */;
7846 self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AVardeclExpr> */
7847 if (var_node
== NULL
) {
7848 var
= 0; /* is null */
7850 var
= 1; /* arg is null and recv is not */
7853 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
7854 var_other
= ((val
*)NULL
);
7856 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)>*/
7867 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
7868 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
7876 /* method parser_prod#AVardeclExpr#n_annotations= for (self: AVardeclExpr, nullable AAnnotations) */
7877 void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(val
* self
, val
* p0
) {
7878 val
* var_node
/* var node: nullable AAnnotations */;
7879 short int var
/* : Bool */;
7880 short int var1
/* : Bool */;
7881 val
* var_other
/* var other: nullable Object */;
7882 short int var3
/* : Bool */;
7883 short int var4
/* : Bool */;
7885 self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AVardeclExpr> */
7886 if (var_node
== NULL
) {
7887 var
= 0; /* is null */
7889 var
= 1; /* arg is null and recv is not */
7892 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AAnnotations> */
7893 var_other
= ((val
*)NULL
);
7895 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)>*/
7906 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
7907 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
7915 /* method parser_prod#AVardeclExpr#visit_all for (self: AVardeclExpr, Visitor) */
7916 void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
7917 val
* var_v
/* var v: Visitor */;
7918 val
* var
/* : nullable TKwvar */;
7919 val
* var1
/* : TId */;
7920 val
* var2
/* : nullable AType */;
7921 val
* var3
/* : nullable TAssign */;
7922 val
* var4
/* : nullable AExpr */;
7923 val
* var5
/* : nullable AAnnotations */;
7925 var
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar
].val
; /* _n_kwvar on <self:AVardeclExpr> */
7927 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7929 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_id
].val
; /* _n_id on <self:AVardeclExpr> */
7930 if (unlikely(var1
== NULL
)) {
7931 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
7932 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2691);
7936 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7938 var2
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_type
].val
; /* _n_type on <self:AVardeclExpr> */
7940 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7942 var3
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign
].val
; /* _n_assign on <self:AVardeclExpr> */
7944 nitc___nitc__Visitor___enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7946 var4
= self
->attrs
[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr
].val
; /* _n_expr on <self:AVardeclExpr> */
7948 nitc___nitc__Visitor___enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7950 var5
= self
->attrs
[COLOR_nitc__parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AVardeclExpr> */
7952 nitc___nitc__Visitor___enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
7956 /* method parser_prod#AReturnExpr#init_areturnexpr for (self: AReturnExpr, nullable TKwreturn, nullable AExpr) */
7957 void nitc__parser_prod___AReturnExpr___init_areturnexpr(val
* self
, val
* p0
, val
* p1
) {
7958 val
* var_n_kwreturn
/* var n_kwreturn: nullable TKwreturn */;
7959 val
* var_n_expr
/* var n_expr: nullable AExpr */;
7960 short int var
/* : Bool */;
7961 short int var2
/* : Bool */;
7962 val
* var_other
/* var other: nullable Object */;
7963 short int var4
/* : Bool */;
7964 short int var5
/* : Bool */;
7965 short int var7
/* : Bool */;
7966 short int var8
/* : Bool */;
7967 short int var10
/* : Bool */;
7968 short int var11
/* : Bool */;
7970 { /* Inline kernel#Object#init (self) on <self:AReturnExpr> */
7974 var_n_kwreturn
= p0
;
7976 self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_n_kwreturn
; /* _n_kwreturn on <self:AReturnExpr> */
7977 if (var_n_kwreturn
== NULL
) {
7978 var
= 0; /* is null */
7980 var
= 1; /* arg is null and recv is not */
7983 { /* Inline kernel#Object#!= (var_n_kwreturn,((val*)NULL)) on <var_n_kwreturn:nullable TKwreturn> */
7984 var_other
= ((val
*)NULL
);
7986 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwreturn
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwreturn
, var_other
); /* == on <var_n_kwreturn:nullable TKwreturn(TKwreturn)>*/
7997 { /* Inline parser_nodes#ANode#parent= (var_n_kwreturn,self) on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
7998 var_n_kwreturn
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwreturn:nullable TKwreturn(TKwreturn)> */
8004 self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AReturnExpr> */
8005 if (var_n_expr
== NULL
) {
8006 var7
= 0; /* is null */
8008 var7
= 1; /* arg is null and recv is not */
8011 { /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on <var_n_expr:nullable AExpr> */
8012 var_other
= ((val
*)NULL
);
8014 var10
= ((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)>*/
8025 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr(AExpr)> */
8026 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr(AExpr)> */
8027 RET_LABEL12
:(void)0;
8034 /* method parser_prod#AReturnExpr#replace_child for (self: AReturnExpr, ANode, nullable ANode) */
8035 void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8036 val
* var_old_child
/* var old_child: ANode */;
8037 val
* var_new_child
/* var new_child: nullable ANode */;
8038 val
* var
/* : nullable TKwreturn */;
8039 short int var1
/* : Bool */;
8040 short int var2
/* : Bool */;
8041 val
* var_other
/* var other: nullable Object */;
8042 short int var4
/* : Bool */;
8043 short int var6
/* : Bool */;
8044 short int var7
/* : Bool */;
8047 const char* var_class_name
;
8048 val
* var8
/* : nullable AExpr */;
8049 short int var9
/* : Bool */;
8050 short int var10
/* : Bool */;
8051 short int var12
/* : Bool */;
8052 short int var14
/* : Bool */;
8053 short int var15
/* : Bool */;
8056 const char* var_class_name18
;
8059 var
= self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
8061 var1
= 0; /* <var_old_child:ANode> cannot be null */
8063 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwreturn> */
8064 var_other
= var_old_child
;
8066 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwreturn(TKwreturn)> */
8067 var6
= var
== var_other
;
8080 /* <var_new_child:nullable ANode> isa nullable TKwreturn */
8081 cltype
= type_nullable__nitc__TKwreturn
.color
;
8082 idtype
= type_nullable__nitc__TKwreturn
.id
;
8083 if(var_new_child
== NULL
) {
8086 if(cltype
>= var_new_child
->type
->table_size
) {
8089 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8092 if (unlikely(!var7
)) {
8093 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8094 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwreturn", var_class_name
);
8095 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2713);
8099 nitc__parser_prod___AReturnExpr___n_kwreturn_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_kwreturn= on <self:AReturnExpr>*/
8104 var8
= self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
8106 var9
= 0; /* <var_old_child:ANode> cannot be null */
8108 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable AExpr> */
8109 var_other
= var_old_child
;
8111 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable AExpr(AExpr)> */
8112 var14
= var8
== var_other
;
8115 RET_LABEL13
:(void)0;
8120 RET_LABEL11
:(void)0;
8125 /* <var_new_child:nullable ANode> isa nullable AExpr */
8126 cltype16
= type_nullable__nitc__AExpr
.color
;
8127 idtype17
= type_nullable__nitc__AExpr
.id
;
8128 if(var_new_child
== NULL
) {
8131 if(cltype16
>= var_new_child
->type
->table_size
) {
8134 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8137 if (unlikely(!var15
)) {
8138 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8139 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18
);
8140 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2717);
8144 nitc__parser_prod___AReturnExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AReturnExpr#n_expr= on <self:AReturnExpr>*/
8151 /* method parser_prod#AReturnExpr#n_kwreturn= for (self: AReturnExpr, nullable TKwreturn) */
8152 void nitc__parser_prod___AReturnExpr___n_kwreturn_61d(val
* self
, val
* p0
) {
8153 val
* var_node
/* var node: nullable TKwreturn */;
8154 short int var
/* : Bool */;
8155 short int var1
/* : Bool */;
8156 val
* var_other
/* var other: nullable Object */;
8157 short int var3
/* : Bool */;
8158 short int var4
/* : Bool */;
8160 self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn
].val
= var_node
; /* _n_kwreturn on <self:AReturnExpr> */
8161 if (var_node
== NULL
) {
8162 var
= 0; /* is null */
8164 var
= 1; /* arg is null and recv is not */
8167 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwreturn> */
8168 var_other
= ((val
*)NULL
);
8170 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 TKwreturn(TKwreturn)>*/
8181 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwreturn(TKwreturn)> */
8182 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwreturn(TKwreturn)> */
8190 /* method parser_prod#AReturnExpr#n_expr= for (self: AReturnExpr, nullable AExpr) */
8191 void nitc__parser_prod___AReturnExpr___n_expr_61d(val
* self
, val
* p0
) {
8192 val
* var_node
/* var node: nullable AExpr */;
8193 short int var
/* : Bool */;
8194 short int var1
/* : Bool */;
8195 val
* var_other
/* var other: nullable Object */;
8196 short int var3
/* : Bool */;
8197 short int var4
/* : Bool */;
8199 self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AReturnExpr> */
8200 if (var_node
== NULL
) {
8201 var
= 0; /* is null */
8203 var
= 1; /* arg is null and recv is not */
8206 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
8207 var_other
= ((val
*)NULL
);
8209 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)>*/
8220 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
8221 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
8229 /* method parser_prod#AReturnExpr#visit_all for (self: AReturnExpr, Visitor) */
8230 void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8231 val
* var_v
/* var v: Visitor */;
8232 val
* var
/* : nullable TKwreturn */;
8233 val
* var1
/* : nullable AExpr */;
8235 var
= self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn
].val
; /* _n_kwreturn on <self:AReturnExpr> */
8237 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8239 var1
= self
->attrs
[COLOR_nitc__parser_nodes__AReturnExpr___n_expr
].val
; /* _n_expr on <self:AReturnExpr> */
8241 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8245 /* method parser_prod#ABreakExpr#init_abreakexpr for (self: ABreakExpr, nullable TKwbreak, nullable ALabel) */
8246 void nitc__parser_prod___ABreakExpr___init_abreakexpr(val
* self
, val
* p0
, val
* p1
) {
8247 val
* var_n_kwbreak
/* var n_kwbreak: nullable TKwbreak */;
8248 val
* var_n_label
/* var n_label: nullable ALabel */;
8249 short int var
/* : Bool */;
8250 short int var3
/* : Bool */;
8251 val
* var_other
/* var other: nullable Object */;
8252 short int var5
/* : Bool */;
8253 short int var6
/* : Bool */;
8255 { /* Inline kernel#Object#init (self) on <self:ABreakExpr> */
8261 if (unlikely(var_n_kwbreak
== NULL
)) {
8262 PRINT_ERROR("Runtime error: %s", "Cast failed");
8263 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2746);
8266 self
->attrs
[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_n_kwbreak
; /* _n_kwbreak on <self:ABreakExpr> */
8267 if (var_n_kwbreak
== NULL
) {
8268 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8269 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2747);
8272 { /* Inline parser_nodes#ANode#parent= (var_n_kwbreak,self) on <var_n_kwbreak:nullable TKwbreak> */
8273 if (unlikely(var_n_kwbreak
== NULL
)) {
8274 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8275 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8278 var_n_kwbreak
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwbreak:nullable TKwbreak> */
8282 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ABreakExpr> */
8283 if (var_n_label
== NULL
) {
8284 var
= 0; /* is null */
8286 var
= 1; /* arg is null and recv is not */
8289 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
8290 var_other
= ((val
*)NULL
);
8292 var5
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
8303 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
8304 var_n_label
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
8312 /* method parser_prod#ABreakExpr#replace_child for (self: ABreakExpr, ANode, nullable ANode) */
8313 void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8314 val
* var_old_child
/* var old_child: ANode */;
8315 val
* var_new_child
/* var new_child: nullable ANode */;
8316 val
* var
/* : TKwbreak */;
8317 short int var1
/* : Bool */;
8318 val
* var_other
/* var other: nullable Object */;
8319 short int var3
/* : Bool */;
8320 short int var5
/* : Bool */;
8321 short int var6
/* : Bool */;
8324 const char* var_class_name
;
8325 val
* var7
/* : nullable ALabel */;
8326 short int var8
/* : Bool */;
8327 short int var9
/* : Bool */;
8328 short int var11
/* : Bool */;
8329 short int var13
/* : Bool */;
8330 short int var14
/* : Bool */;
8333 const char* var_class_name17
;
8336 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
8337 if (unlikely(var
== NULL
)) {
8338 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
8339 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2754);
8343 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwbreak> */
8344 var_other
= var_old_child
;
8346 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwbreak> */
8347 var5
= var
== var_other
;
8359 /* <var_new_child:nullable ANode> isa TKwbreak */
8360 cltype
= type_nitc__TKwbreak
.color
;
8361 idtype
= type_nitc__TKwbreak
.id
;
8362 if(var_new_child
== NULL
) {
8365 if(cltype
>= var_new_child
->type
->table_size
) {
8368 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8371 if (unlikely(!var6
)) {
8372 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8373 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwbreak", var_class_name
);
8374 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2755);
8378 nitc__parser_prod___ABreakExpr___n_kwbreak_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_kwbreak= on <self:ABreakExpr>*/
8383 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
8385 var8
= 0; /* <var_old_child:ANode> cannot be null */
8387 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable ALabel> */
8388 var_other
= var_old_child
;
8390 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable ALabel(ALabel)> */
8391 var13
= var7
== var_other
;
8394 RET_LABEL12
:(void)0;
8399 RET_LABEL10
:(void)0;
8404 /* <var_new_child:nullable ANode> isa nullable ALabel */
8405 cltype15
= type_nullable__nitc__ALabel
.color
;
8406 idtype16
= type_nullable__nitc__ALabel
.id
;
8407 if(var_new_child
== NULL
) {
8410 if(cltype15
>= var_new_child
->type
->table_size
) {
8413 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
8416 if (unlikely(!var14
)) {
8417 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8418 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name17
);
8419 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2759);
8423 nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ABreakExpr#n_label= on <self:ABreakExpr>*/
8430 /* method parser_prod#ABreakExpr#n_kwbreak= for (self: ABreakExpr, TKwbreak) */
8431 void nitc__parser_prod___ABreakExpr___n_kwbreak_61d(val
* self
, val
* p0
) {
8432 val
* var_node
/* var node: TKwbreak */;
8434 self
->attrs
[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak
].val
= var_node
; /* _n_kwbreak on <self:ABreakExpr> */
8436 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwbreak> */
8437 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwbreak> */
8443 /* method parser_prod#ABreakExpr#n_label= for (self: ABreakExpr, nullable ALabel) */
8444 void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
8445 val
* var_node
/* var node: nullable ALabel */;
8446 short int var
/* : Bool */;
8447 short int var1
/* : Bool */;
8448 val
* var_other
/* var other: nullable Object */;
8449 short int var3
/* : Bool */;
8450 short int var4
/* : Bool */;
8452 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ABreakExpr> */
8453 if (var_node
== NULL
) {
8454 var
= 0; /* is null */
8456 var
= 1; /* arg is null and recv is not */
8459 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
8460 var_other
= ((val
*)NULL
);
8462 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 ALabel(ALabel)>*/
8473 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
8474 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
8482 /* method parser_prod#ABreakExpr#visit_all for (self: ABreakExpr, Visitor) */
8483 void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8484 val
* var_v
/* var v: Visitor */;
8485 val
* var
/* : TKwbreak */;
8486 val
* var1
/* : nullable ALabel */;
8488 var
= self
->attrs
[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak
].val
; /* _n_kwbreak on <self:ABreakExpr> */
8489 if (unlikely(var
== NULL
)) {
8490 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak");
8491 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2778);
8495 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8497 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ABreakExpr> */
8499 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8503 /* method parser_prod#AAbortExpr#init_aabortexpr for (self: AAbortExpr, nullable TKwabort) */
8504 void nitc__parser_prod___AAbortExpr___init_aabortexpr(val
* self
, val
* p0
) {
8505 val
* var_n_kwabort
/* var n_kwabort: nullable TKwabort */;
8507 { /* Inline kernel#Object#init (self) on <self:AAbortExpr> */
8512 if (unlikely(var_n_kwabort
== NULL
)) {
8513 PRINT_ERROR("Runtime error: %s", "Cast failed");
8514 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2787);
8517 self
->attrs
[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort
].val
= var_n_kwabort
; /* _n_kwabort on <self:AAbortExpr> */
8518 if (var_n_kwabort
== NULL
) {
8519 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8520 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2788);
8523 { /* Inline parser_nodes#ANode#parent= (var_n_kwabort,self) on <var_n_kwabort:nullable TKwabort> */
8524 if (unlikely(var_n_kwabort
== NULL
)) {
8525 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8526 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8529 var_n_kwabort
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwabort:nullable TKwabort> */
8535 /* method parser_prod#AAbortExpr#replace_child for (self: AAbortExpr, ANode, nullable ANode) */
8536 void nitc__parser_prod___AAbortExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8537 val
* var_old_child
/* var old_child: ANode */;
8538 val
* var_new_child
/* var new_child: nullable ANode */;
8539 val
* var
/* : TKwabort */;
8540 short int var1
/* : Bool */;
8541 val
* var_other
/* var other: nullable Object */;
8542 short int var3
/* : Bool */;
8543 short int var5
/* : Bool */;
8544 short int var6
/* : Bool */;
8547 const char* var_class_name
;
8550 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
8551 if (unlikely(var
== NULL
)) {
8552 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
8553 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2793);
8557 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwabort> */
8558 var_other
= var_old_child
;
8560 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwabort> */
8561 var5
= var
== var_other
;
8573 /* <var_new_child:nullable ANode> isa TKwabort */
8574 cltype
= type_nitc__TKwabort
.color
;
8575 idtype
= type_nitc__TKwabort
.id
;
8576 if(var_new_child
== NULL
) {
8579 if(cltype
>= var_new_child
->type
->table_size
) {
8582 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8585 if (unlikely(!var6
)) {
8586 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8587 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabort", var_class_name
);
8588 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2794);
8592 nitc__parser_prod___AAbortExpr___n_kwabort_61d(self
, var_new_child
); /* Direct call parser_prod#AAbortExpr#n_kwabort= on <self:AAbortExpr>*/
8599 /* method parser_prod#AAbortExpr#n_kwabort= for (self: AAbortExpr, TKwabort) */
8600 void nitc__parser_prod___AAbortExpr___n_kwabort_61d(val
* self
, val
* p0
) {
8601 val
* var_node
/* var node: TKwabort */;
8603 self
->attrs
[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort
].val
= var_node
; /* _n_kwabort on <self:AAbortExpr> */
8605 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwabort> */
8606 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwabort> */
8612 /* method parser_prod#AAbortExpr#visit_all for (self: AAbortExpr, Visitor) */
8613 void nitc__parser_prod___AAbortExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8614 val
* var_v
/* var v: Visitor */;
8615 val
* var
/* : TKwabort */;
8617 var
= self
->attrs
[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort
].val
; /* _n_kwabort on <self:AAbortExpr> */
8618 if (unlikely(var
== NULL
)) {
8619 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort");
8620 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2808);
8624 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8628 /* method parser_prod#AContinueExpr#init_acontinueexpr for (self: AContinueExpr, nullable TKwcontinue, nullable ALabel) */
8629 void nitc__parser_prod___AContinueExpr___init_acontinueexpr(val
* self
, val
* p0
, val
* p1
) {
8630 val
* var_n_kwcontinue
/* var n_kwcontinue: nullable TKwcontinue */;
8631 val
* var_n_label
/* var n_label: nullable ALabel */;
8632 short int var
/* : Bool */;
8633 short int var2
/* : Bool */;
8634 val
* var_other
/* var other: nullable Object */;
8635 short int var4
/* : Bool */;
8636 short int var5
/* : Bool */;
8637 short int var7
/* : Bool */;
8638 short int var8
/* : Bool */;
8639 short int var10
/* : Bool */;
8640 short int var11
/* : Bool */;
8642 { /* Inline kernel#Object#init (self) on <self:AContinueExpr> */
8646 var_n_kwcontinue
= p0
;
8648 self
->attrs
[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_n_kwcontinue
; /* _n_kwcontinue on <self:AContinueExpr> */
8649 if (var_n_kwcontinue
== NULL
) {
8650 var
= 0; /* is null */
8652 var
= 1; /* arg is null and recv is not */
8655 { /* Inline kernel#Object#!= (var_n_kwcontinue,((val*)NULL)) on <var_n_kwcontinue:nullable TKwcontinue> */
8656 var_other
= ((val
*)NULL
);
8658 var4
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwcontinue
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwcontinue
, var_other
); /* == on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)>*/
8669 { /* Inline parser_nodes#ANode#parent= (var_n_kwcontinue,self) on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
8670 var_n_kwcontinue
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwcontinue:nullable TKwcontinue(TKwcontinue)> */
8676 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:AContinueExpr> */
8677 if (var_n_label
== NULL
) {
8678 var7
= 0; /* is null */
8680 var7
= 1; /* arg is null and recv is not */
8683 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
8684 var_other
= ((val
*)NULL
);
8686 var10
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
8697 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
8698 var_n_label
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
8699 RET_LABEL12
:(void)0;
8706 /* method parser_prod#AContinueExpr#replace_child for (self: AContinueExpr, ANode, nullable ANode) */
8707 void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
8708 val
* var_old_child
/* var old_child: ANode */;
8709 val
* var_new_child
/* var new_child: nullable ANode */;
8710 val
* var
/* : nullable TKwcontinue */;
8711 short int var1
/* : Bool */;
8712 short int var2
/* : Bool */;
8713 val
* var_other
/* var other: nullable Object */;
8714 short int var4
/* : Bool */;
8715 short int var6
/* : Bool */;
8716 short int var7
/* : Bool */;
8719 const char* var_class_name
;
8720 val
* var8
/* : nullable ALabel */;
8721 short int var9
/* : Bool */;
8722 short int var10
/* : Bool */;
8723 short int var12
/* : Bool */;
8724 short int var14
/* : Bool */;
8725 short int var15
/* : Bool */;
8728 const char* var_class_name18
;
8731 var
= self
->attrs
[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
8733 var1
= 0; /* <var_old_child:ANode> cannot be null */
8735 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TKwcontinue> */
8736 var_other
= var_old_child
;
8738 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TKwcontinue(TKwcontinue)> */
8739 var6
= var
== var_other
;
8752 /* <var_new_child:nullable ANode> isa nullable TKwcontinue */
8753 cltype
= type_nullable__nitc__TKwcontinue
.color
;
8754 idtype
= type_nullable__nitc__TKwcontinue
.id
;
8755 if(var_new_child
== NULL
) {
8758 if(cltype
>= var_new_child
->type
->table_size
) {
8761 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8764 if (unlikely(!var7
)) {
8765 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8766 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwcontinue", var_class_name
);
8767 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2826);
8771 nitc__parser_prod___AContinueExpr___n_kwcontinue_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_kwcontinue= on <self:AContinueExpr>*/
8776 var8
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
8778 var9
= 0; /* <var_old_child:ANode> cannot be null */
8780 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable ALabel> */
8781 var_other
= var_old_child
;
8783 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable ALabel(ALabel)> */
8784 var14
= var8
== var_other
;
8787 RET_LABEL13
:(void)0;
8792 RET_LABEL11
:(void)0;
8797 /* <var_new_child:nullable ANode> isa nullable ALabel */
8798 cltype16
= type_nullable__nitc__ALabel
.color
;
8799 idtype17
= type_nullable__nitc__ALabel
.id
;
8800 if(var_new_child
== NULL
) {
8803 if(cltype16
>= var_new_child
->type
->table_size
) {
8806 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
8809 if (unlikely(!var15
)) {
8810 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
8811 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name18
);
8812 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2830);
8816 nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#AContinueExpr#n_label= on <self:AContinueExpr>*/
8823 /* method parser_prod#AContinueExpr#n_kwcontinue= for (self: AContinueExpr, nullable TKwcontinue) */
8824 void nitc__parser_prod___AContinueExpr___n_kwcontinue_61d(val
* self
, val
* p0
) {
8825 val
* var_node
/* var node: nullable TKwcontinue */;
8826 short int var
/* : Bool */;
8827 short int var1
/* : Bool */;
8828 val
* var_other
/* var other: nullable Object */;
8829 short int var3
/* : Bool */;
8830 short int var4
/* : Bool */;
8832 self
->attrs
[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue
].val
= var_node
; /* _n_kwcontinue on <self:AContinueExpr> */
8833 if (var_node
== NULL
) {
8834 var
= 0; /* is null */
8836 var
= 1; /* arg is null and recv is not */
8839 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwcontinue> */
8840 var_other
= ((val
*)NULL
);
8842 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 TKwcontinue(TKwcontinue)>*/
8853 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwcontinue(TKwcontinue)> */
8854 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwcontinue(TKwcontinue)> */
8862 /* method parser_prod#AContinueExpr#n_label= for (self: AContinueExpr, nullable ALabel) */
8863 void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
8864 val
* var_node
/* var node: nullable ALabel */;
8865 short int var
/* : Bool */;
8866 short int var1
/* : Bool */;
8867 val
* var_other
/* var other: nullable Object */;
8868 short int var3
/* : Bool */;
8869 short int var4
/* : Bool */;
8871 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:AContinueExpr> */
8872 if (var_node
== NULL
) {
8873 var
= 0; /* is null */
8875 var
= 1; /* arg is null and recv is not */
8878 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
8879 var_other
= ((val
*)NULL
);
8881 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 ALabel(ALabel)>*/
8892 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
8893 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
8901 /* method parser_prod#AContinueExpr#visit_all for (self: AContinueExpr, Visitor) */
8902 void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
8903 val
* var_v
/* var v: Visitor */;
8904 val
* var
/* : nullable TKwcontinue */;
8905 val
* var1
/* : nullable ALabel */;
8907 var
= self
->attrs
[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue
].val
; /* _n_kwcontinue on <self:AContinueExpr> */
8909 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8911 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:AContinueExpr> */
8913 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
8917 /* method parser_prod#ADoExpr#init_adoexpr for (self: ADoExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */
8918 void nitc__parser_prod___ADoExpr___init_adoexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
8919 val
* var_n_kwdo
/* var n_kwdo: nullable TKwdo */;
8920 val
* var_n_block
/* var n_block: nullable AExpr */;
8921 val
* var_n_label
/* var n_label: nullable ALabel */;
8922 short int var
/* : Bool */;
8923 short int var3
/* : Bool */;
8924 val
* var_other
/* var other: nullable Object */;
8925 short int var5
/* : Bool */;
8926 short int var6
/* : Bool */;
8927 short int var8
/* : Bool */;
8928 short int var9
/* : Bool */;
8929 short int var11
/* : Bool */;
8930 short int var12
/* : Bool */;
8932 { /* Inline kernel#Object#init (self) on <self:ADoExpr> */
8939 if (unlikely(var_n_kwdo
== NULL
)) {
8940 PRINT_ERROR("Runtime error: %s", "Cast failed");
8941 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2860);
8944 self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo
].val
= var_n_kwdo
; /* _n_kwdo on <self:ADoExpr> */
8945 if (var_n_kwdo
== NULL
) {
8946 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8947 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2861);
8950 { /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on <var_n_kwdo:nullable TKwdo> */
8951 if (unlikely(var_n_kwdo
== NULL
)) {
8952 PRINT_ERROR("Runtime error: %s", "Receiver is null");
8953 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
8956 var_n_kwdo
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwdo:nullable TKwdo> */
8960 self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_block
].val
= var_n_block
; /* _n_block on <self:ADoExpr> */
8961 if (var_n_block
== NULL
) {
8962 var
= 0; /* is null */
8964 var
= 1; /* arg is null and recv is not */
8967 { /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on <var_n_block:nullable AExpr> */
8968 var_other
= ((val
*)NULL
);
8970 var5
= ((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)>*/
8981 { /* Inline parser_nodes#ANode#parent= (var_n_block,self) on <var_n_block:nullable AExpr(AExpr)> */
8982 var_n_block
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_block:nullable AExpr(AExpr)> */
8988 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_n_label
; /* _n_label on <self:ADoExpr> */
8989 if (var_n_label
== NULL
) {
8990 var8
= 0; /* is null */
8992 var8
= 1; /* arg is null and recv is not */
8995 { /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on <var_n_label:nullable ALabel> */
8996 var_other
= ((val
*)NULL
);
8998 var11
= ((short int(*)(val
* self
, val
* p0
))(var_n_label
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_label
, var_other
); /* == on <var_n_label:nullable ALabel(ALabel)>*/
9003 RET_LABEL10
:(void)0;
9009 { /* Inline parser_nodes#ANode#parent= (var_n_label,self) on <var_n_label:nullable ALabel(ALabel)> */
9010 var_n_label
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_label:nullable ALabel(ALabel)> */
9011 RET_LABEL13
:(void)0;
9018 /* method parser_prod#ADoExpr#replace_child for (self: ADoExpr, ANode, nullable ANode) */
9019 void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9020 val
* var_old_child
/* var old_child: ANode */;
9021 val
* var_new_child
/* var new_child: nullable ANode */;
9022 val
* var
/* : TKwdo */;
9023 short int var1
/* : Bool */;
9024 val
* var_other
/* var other: nullable Object */;
9025 short int var3
/* : Bool */;
9026 short int var5
/* : Bool */;
9027 short int var6
/* : Bool */;
9030 const char* var_class_name
;
9031 val
* var7
/* : nullable AExpr */;
9032 short int var8
/* : Bool */;
9033 short int var9
/* : Bool */;
9034 short int var11
/* : Bool */;
9035 short int var13
/* : Bool */;
9036 short int var14
/* : Bool */;
9039 const char* var_class_name17
;
9040 val
* var18
/* : nullable ALabel */;
9041 short int var19
/* : Bool */;
9042 short int var20
/* : Bool */;
9043 short int var22
/* : Bool */;
9044 short int var24
/* : Bool */;
9045 short int var25
/* : Bool */;
9048 const char* var_class_name28
;
9051 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
9052 if (unlikely(var
== NULL
)) {
9053 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
9054 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2870);
9058 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwdo> */
9059 var_other
= var_old_child
;
9061 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwdo> */
9062 var5
= var
== var_other
;
9074 /* <var_new_child:nullable ANode> isa TKwdo */
9075 cltype
= type_nitc__TKwdo
.color
;
9076 idtype
= type_nitc__TKwdo
.id
;
9077 if(var_new_child
== NULL
) {
9080 if(cltype
>= var_new_child
->type
->table_size
) {
9083 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9086 if (unlikely(!var6
)) {
9087 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name
);
9089 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2871);
9093 nitc__parser_prod___ADoExpr___n_kwdo_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_kwdo= on <self:ADoExpr>*/
9098 var7
= self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
9100 var8
= 0; /* <var_old_child:ANode> cannot be null */
9102 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:nullable AExpr> */
9103 var_other
= var_old_child
;
9105 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:nullable AExpr(AExpr)> */
9106 var13
= var7
== var_other
;
9109 RET_LABEL12
:(void)0;
9114 RET_LABEL10
:(void)0;
9119 /* <var_new_child:nullable ANode> isa nullable AExpr */
9120 cltype15
= type_nullable__nitc__AExpr
.color
;
9121 idtype16
= type_nullable__nitc__AExpr
.id
;
9122 if(var_new_child
== NULL
) {
9125 if(cltype15
>= var_new_child
->type
->table_size
) {
9128 var14
= var_new_child
->type
->type_table
[cltype15
] == idtype16
;
9131 if (unlikely(!var14
)) {
9132 var_class_name17
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9133 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name17
);
9134 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2875);
9138 nitc__parser_prod___ADoExpr___n_block_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_block= on <self:ADoExpr>*/
9143 var18
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
9144 if (var18
== NULL
) {
9145 var19
= 0; /* <var_old_child:ANode> cannot be null */
9147 { /* Inline kernel#Object#== (var18,var_old_child) on <var18:nullable ALabel> */
9148 var_other
= var_old_child
;
9150 { /* Inline kernel#Object#is_same_instance (var18,var_other) on <var18:nullable ALabel(ALabel)> */
9151 var24
= var18
== var_other
;
9154 RET_LABEL23
:(void)0;
9159 RET_LABEL21
:(void)0;
9164 /* <var_new_child:nullable ANode> isa nullable ALabel */
9165 cltype26
= type_nullable__nitc__ALabel
.color
;
9166 idtype27
= type_nullable__nitc__ALabel
.id
;
9167 if(var_new_child
== NULL
) {
9170 if(cltype26
>= var_new_child
->type
->table_size
) {
9173 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
9176 if (unlikely(!var25
)) {
9177 var_class_name28
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9178 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name28
);
9179 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2879);
9183 nitc__parser_prod___ADoExpr___nitc__parser_nodes__ALabelable__n_label_61d(self
, var_new_child
); /* Direct call parser_prod#ADoExpr#n_label= on <self:ADoExpr>*/
9190 /* method parser_prod#ADoExpr#n_kwdo= for (self: ADoExpr, TKwdo) */
9191 void nitc__parser_prod___ADoExpr___n_kwdo_61d(val
* self
, val
* p0
) {
9192 val
* var_node
/* var node: TKwdo */;
9194 self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo
].val
= var_node
; /* _n_kwdo on <self:ADoExpr> */
9196 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwdo> */
9197 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwdo> */
9203 /* method parser_prod#ADoExpr#n_block= for (self: ADoExpr, nullable AExpr) */
9204 void nitc__parser_prod___ADoExpr___n_block_61d(val
* self
, val
* p0
) {
9205 val
* var_node
/* var node: nullable AExpr */;
9206 short int var
/* : Bool */;
9207 short int var1
/* : Bool */;
9208 val
* var_other
/* var other: nullable Object */;
9209 short int var3
/* : Bool */;
9210 short int var4
/* : Bool */;
9212 self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_block
].val
= var_node
; /* _n_block on <self:ADoExpr> */
9213 if (var_node
== NULL
) {
9214 var
= 0; /* is null */
9216 var
= 1; /* arg is null and recv is not */
9219 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9220 var_other
= ((val
*)NULL
);
9222 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)>*/
9233 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9234 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9242 /* method parser_prod#ADoExpr#n_label= for (self: ADoExpr, nullable ALabel) */
9243 void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ALabelable__n_label_61d(val
* self
, val
* p0
) {
9244 val
* var_node
/* var node: nullable ALabel */;
9245 short int var
/* : Bool */;
9246 short int var1
/* : Bool */;
9247 val
* var_other
/* var other: nullable Object */;
9248 short int var3
/* : Bool */;
9249 short int var4
/* : Bool */;
9251 self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
= var_node
; /* _n_label on <self:ADoExpr> */
9252 if (var_node
== NULL
) {
9253 var
= 0; /* is null */
9255 var
= 1; /* arg is null and recv is not */
9258 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable ALabel> */
9259 var_other
= ((val
*)NULL
);
9261 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 ALabel(ALabel)>*/
9272 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ALabel(ALabel)> */
9273 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ALabel(ALabel)> */
9281 /* method parser_prod#ADoExpr#visit_all for (self: ADoExpr, Visitor) */
9282 void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ANode__visit_all(val
* self
, val
* p0
) {
9283 val
* var_v
/* var v: Visitor */;
9284 val
* var
/* : TKwdo */;
9285 val
* var1
/* : nullable AExpr */;
9286 val
* var2
/* : nullable ALabel */;
9288 var
= self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo
].val
; /* _n_kwdo on <self:ADoExpr> */
9289 if (unlikely(var
== NULL
)) {
9290 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo");
9291 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2903);
9295 nitc___nitc__Visitor___enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9297 var1
= self
->attrs
[COLOR_nitc__parser_nodes__ADoExpr___n_block
].val
; /* _n_block on <self:ADoExpr> */
9299 nitc___nitc__Visitor___enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9301 var2
= self
->attrs
[COLOR_nitc__parser_nodes__ALabelable___n_label
].val
; /* _n_label on <self:ADoExpr> */
9303 nitc___nitc__Visitor___enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
9307 /* method parser_prod#AIfExpr#init_aifexpr for (self: AIfExpr, nullable TKwif, nullable AExpr, nullable TKwthen, nullable AExpr, nullable TKwelse, nullable AExpr) */
9308 void nitc__parser_prod___AIfExpr___init_aifexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
9309 val
* var_n_kwif
/* var n_kwif: nullable TKwif */;
9310 val
* var_n_expr
/* var n_expr: nullable AExpr */;
9311 val
* var_n_kwthen
/* var n_kwthen: nullable TKwthen */;
9312 val
* var_n_then
/* var n_then: nullable AExpr */;
9313 val
* var_n_kwelse
/* var n_kwelse: nullable TKwelse */;
9314 val
* var_n_else
/* var n_else: nullable AExpr */;
9315 short int var
/* : Bool */;
9316 short int var5
/* : Bool */;
9317 val
* var_other
/* var other: nullable Object */;
9318 short int var7
/* : Bool */;
9319 short int var8
/* : Bool */;
9320 short int var10
/* : Bool */;
9321 short int var11
/* : Bool */;
9322 short int var13
/* : Bool */;
9323 short int var14
/* : Bool */;
9324 short int var16
/* : Bool */;
9325 short int var17
/* : Bool */;
9326 short int var19
/* : Bool */;
9327 short int var20
/* : Bool */;
9329 { /* Inline kernel#Object#init (self) on <self:AIfExpr> */
9339 if (unlikely(var_n_kwif
== NULL
)) {
9340 PRINT_ERROR("Runtime error: %s", "Cast failed");
9341 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2918);
9344 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwif
].val
= var_n_kwif
; /* _n_kwif on <self:AIfExpr> */
9345 if (var_n_kwif
== NULL
) {
9346 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9347 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2919);
9350 { /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on <var_n_kwif:nullable TKwif> */
9351 if (unlikely(var_n_kwif
== NULL
)) {
9352 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9353 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9356 var_n_kwif
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwif:nullable TKwif> */
9360 if (unlikely(var_n_expr
== NULL
)) {
9361 PRINT_ERROR("Runtime error: %s", "Cast failed");
9362 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2920);
9365 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AIfExpr> */
9366 if (var_n_expr
== NULL
) {
9367 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9368 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2921);
9371 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
9372 if (unlikely(var_n_expr
== NULL
)) {
9373 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9374 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9377 var_n_expr
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
9381 if (unlikely(var_n_kwthen
== NULL
)) {
9382 PRINT_ERROR("Runtime error: %s", "Cast failed");
9383 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2922);
9386 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen
].val
= var_n_kwthen
; /* _n_kwthen on <self:AIfExpr> */
9387 if (var_n_kwthen
== NULL
) {
9388 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9389 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2923);
9392 { /* Inline parser_nodes#ANode#parent= (var_n_kwthen,self) on <var_n_kwthen:nullable TKwthen> */
9393 if (unlikely(var_n_kwthen
== NULL
)) {
9394 PRINT_ERROR("Runtime error: %s", "Receiver is null");
9395 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes
, 46);
9398 var_n_kwthen
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwthen:nullable TKwthen> */
9402 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_then
].val
= var_n_then
; /* _n_then on <self:AIfExpr> */
9403 if (var_n_then
== NULL
) {
9404 var
= 0; /* is null */
9406 var
= 1; /* arg is null and recv is not */
9409 { /* Inline kernel#Object#!= (var_n_then,((val*)NULL)) on <var_n_then:nullable AExpr> */
9410 var_other
= ((val
*)NULL
);
9412 var7
= ((short int(*)(val
* self
, val
* p0
))(var_n_then
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_then
, var_other
); /* == on <var_n_then:nullable AExpr(AExpr)>*/
9423 { /* Inline parser_nodes#ANode#parent= (var_n_then,self) on <var_n_then:nullable AExpr(AExpr)> */
9424 var_n_then
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_then:nullable AExpr(AExpr)> */
9430 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse
].val
= var_n_kwelse
; /* _n_kwelse on <self:AIfExpr> */
9431 if (var_n_kwelse
== NULL
) {
9432 var10
= 0; /* is null */
9434 var10
= 1; /* arg is null and recv is not */
9437 { /* Inline kernel#Object#!= (var_n_kwelse,((val*)NULL)) on <var_n_kwelse:nullable TKwelse> */
9438 var_other
= ((val
*)NULL
);
9440 var13
= ((short int(*)(val
* self
, val
* p0
))(var_n_kwelse
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_kwelse
, var_other
); /* == on <var_n_kwelse:nullable TKwelse(TKwelse)>*/
9445 RET_LABEL12
:(void)0;
9451 { /* Inline parser_nodes#ANode#parent= (var_n_kwelse,self) on <var_n_kwelse:nullable TKwelse(TKwelse)> */
9452 var_n_kwelse
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwelse:nullable TKwelse(TKwelse)> */
9453 RET_LABEL15
:(void)0;
9458 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_else
].val
= var_n_else
; /* _n_else on <self:AIfExpr> */
9459 if (var_n_else
== NULL
) {
9460 var16
= 0; /* is null */
9462 var16
= 1; /* arg is null and recv is not */
9465 { /* Inline kernel#Object#!= (var_n_else,((val*)NULL)) on <var_n_else:nullable AExpr> */
9466 var_other
= ((val
*)NULL
);
9468 var19
= ((short int(*)(val
* self
, val
* p0
))(var_n_else
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_n_else
, var_other
); /* == on <var_n_else:nullable AExpr(AExpr)>*/
9473 RET_LABEL18
:(void)0;
9479 { /* Inline parser_nodes#ANode#parent= (var_n_else,self) on <var_n_else:nullable AExpr(AExpr)> */
9480 var_n_else
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_else:nullable AExpr(AExpr)> */
9481 RET_LABEL21
:(void)0;
9488 /* method parser_prod#AIfExpr#replace_child for (self: AIfExpr, ANode, nullable ANode) */
9489 void nitc__parser_prod___AIfExpr___nitc__parser_nodes__ANode__replace_child(val
* self
, val
* p0
, val
* p1
) {
9490 val
* var_old_child
/* var old_child: ANode */;
9491 val
* var_new_child
/* var new_child: nullable ANode */;
9492 val
* var
/* : TKwif */;
9493 short int var1
/* : Bool */;
9494 val
* var_other
/* var other: nullable Object */;
9495 short int var3
/* : Bool */;
9496 short int var5
/* : Bool */;
9497 short int var6
/* : Bool */;
9500 const char* var_class_name
;
9501 val
* var7
/* : AExpr */;
9502 short int var8
/* : Bool */;
9503 short int var10
/* : Bool */;
9504 short int var12
/* : Bool */;
9505 short int var13
/* : Bool */;
9508 const char* var_class_name16
;
9509 val
* var17
/* : TKwthen */;
9510 short int var18
/* : Bool */;
9511 short int var20
/* : Bool */;
9512 short int var22
/* : Bool */;
9513 short int var23
/* : Bool */;
9516 const char* var_class_name26
;
9517 val
* var27
/* : nullable AExpr */;
9518 short int var28
/* : Bool */;
9519 short int var29
/* : Bool */;
9520 short int var31
/* : Bool */;
9521 short int var33
/* : Bool */;
9522 short int var34
/* : Bool */;
9525 const char* var_class_name37
;
9526 val
* var38
/* : nullable TKwelse */;
9527 short int var39
/* : Bool */;
9528 short int var40
/* : Bool */;
9529 short int var42
/* : Bool */;
9530 short int var44
/* : Bool */;
9531 short int var45
/* : Bool */;
9534 const char* var_class_name48
;
9535 val
* var49
/* : nullable AExpr */;
9536 short int var50
/* : Bool */;
9537 short int var51
/* : Bool */;
9538 short int var53
/* : Bool */;
9539 short int var55
/* : Bool */;
9540 short int var56
/* : Bool */;
9543 const char* var_class_name59
;
9546 var
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwif
].val
; /* _n_kwif on <self:AIfExpr> */
9547 if (unlikely(var
== NULL
)) {
9548 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif");
9549 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2934);
9553 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwif> */
9554 var_other
= var_old_child
;
9556 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwif> */
9557 var5
= var
== var_other
;
9569 /* <var_new_child:nullable ANode> isa TKwif */
9570 cltype
= type_nitc__TKwif
.color
;
9571 idtype
= type_nitc__TKwif
.id
;
9572 if(var_new_child
== NULL
) {
9575 if(cltype
>= var_new_child
->type
->table_size
) {
9578 var6
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9581 if (unlikely(!var6
)) {
9582 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9583 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name
);
9584 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2935);
9588 nitc__parser_prod___AIfExpr___n_kwif_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwif= on <self:AIfExpr>*/
9593 var7
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_expr
].val
; /* _n_expr on <self:AIfExpr> */
9594 if (unlikely(var7
== NULL
)) {
9595 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
9596 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2938);
9600 { /* Inline kernel#Object#== (var7,var_old_child) on <var7:AExpr> */
9601 var_other
= var_old_child
;
9603 { /* Inline kernel#Object#is_same_instance (var7,var_other) on <var7:AExpr> */
9604 var12
= var7
== var_other
;
9607 RET_LABEL11
:(void)0;
9616 /* <var_new_child:nullable ANode> isa AExpr */
9617 cltype14
= type_nitc__AExpr
.color
;
9618 idtype15
= type_nitc__AExpr
.id
;
9619 if(var_new_child
== NULL
) {
9622 if(cltype14
>= var_new_child
->type
->table_size
) {
9625 var13
= var_new_child
->type
->type_table
[cltype14
] == idtype15
;
9628 if (unlikely(!var13
)) {
9629 var_class_name16
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9630 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16
);
9631 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2939);
9635 nitc__parser_prod___AIfExpr___n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_expr= on <self:AIfExpr>*/
9640 var17
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen
].val
; /* _n_kwthen on <self:AIfExpr> */
9641 if (unlikely(var17
== NULL
)) {
9642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen");
9643 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2942);
9647 { /* Inline kernel#Object#== (var17,var_old_child) on <var17:TKwthen> */
9648 var_other
= var_old_child
;
9650 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:TKwthen> */
9651 var22
= var17
== var_other
;
9654 RET_LABEL21
:(void)0;
9659 RET_LABEL19
:(void)0;
9663 /* <var_new_child:nullable ANode> isa TKwthen */
9664 cltype24
= type_nitc__TKwthen
.color
;
9665 idtype25
= type_nitc__TKwthen
.id
;
9666 if(var_new_child
== NULL
) {
9669 if(cltype24
>= var_new_child
->type
->table_size
) {
9672 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
9675 if (unlikely(!var23
)) {
9676 var_class_name26
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9677 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwthen", var_class_name26
);
9678 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2943);
9682 nitc__parser_prod___AIfExpr___n_kwthen_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwthen= on <self:AIfExpr>*/
9687 var27
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_then
].val
; /* _n_then on <self:AIfExpr> */
9688 if (var27
== NULL
) {
9689 var28
= 0; /* <var_old_child:ANode> cannot be null */
9691 { /* Inline kernel#Object#== (var27,var_old_child) on <var27:nullable AExpr> */
9692 var_other
= var_old_child
;
9694 { /* Inline kernel#Object#is_same_instance (var27,var_other) on <var27:nullable AExpr(AExpr)> */
9695 var33
= var27
== var_other
;
9698 RET_LABEL32
:(void)0;
9703 RET_LABEL30
:(void)0;
9708 /* <var_new_child:nullable ANode> isa nullable AExpr */
9709 cltype35
= type_nullable__nitc__AExpr
.color
;
9710 idtype36
= type_nullable__nitc__AExpr
.id
;
9711 if(var_new_child
== NULL
) {
9714 if(cltype35
>= var_new_child
->type
->table_size
) {
9717 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
9720 if (unlikely(!var34
)) {
9721 var_class_name37
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9722 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name37
);
9723 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2947);
9727 nitc__parser_prod___AIfExpr___n_then_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_then= on <self:AIfExpr>*/
9732 var38
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse
].val
; /* _n_kwelse on <self:AIfExpr> */
9733 if (var38
== NULL
) {
9734 var39
= 0; /* <var_old_child:ANode> cannot be null */
9736 { /* Inline kernel#Object#== (var38,var_old_child) on <var38:nullable TKwelse> */
9737 var_other
= var_old_child
;
9739 { /* Inline kernel#Object#is_same_instance (var38,var_other) on <var38:nullable TKwelse(TKwelse)> */
9740 var44
= var38
== var_other
;
9743 RET_LABEL43
:(void)0;
9748 RET_LABEL41
:(void)0;
9753 /* <var_new_child:nullable ANode> isa nullable TKwelse */
9754 cltype46
= type_nullable__nitc__TKwelse
.color
;
9755 idtype47
= type_nullable__nitc__TKwelse
.id
;
9756 if(var_new_child
== NULL
) {
9759 if(cltype46
>= var_new_child
->type
->table_size
) {
9762 var45
= var_new_child
->type
->type_table
[cltype46
] == idtype47
;
9765 if (unlikely(!var45
)) {
9766 var_class_name48
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9767 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwelse", var_class_name48
);
9768 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2951);
9772 nitc__parser_prod___AIfExpr___n_kwelse_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_kwelse= on <self:AIfExpr>*/
9777 var49
= self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_else
].val
; /* _n_else on <self:AIfExpr> */
9778 if (var49
== NULL
) {
9779 var50
= 0; /* <var_old_child:ANode> cannot be null */
9781 { /* Inline kernel#Object#== (var49,var_old_child) on <var49:nullable AExpr> */
9782 var_other
= var_old_child
;
9784 { /* Inline kernel#Object#is_same_instance (var49,var_other) on <var49:nullable AExpr(AExpr)> */
9785 var55
= var49
== var_other
;
9788 RET_LABEL54
:(void)0;
9793 RET_LABEL52
:(void)0;
9798 /* <var_new_child:nullable ANode> isa nullable AExpr */
9799 cltype57
= type_nullable__nitc__AExpr
.color
;
9800 idtype58
= type_nullable__nitc__AExpr
.id
;
9801 if(var_new_child
== NULL
) {
9804 if(cltype57
>= var_new_child
->type
->table_size
) {
9807 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
9810 if (unlikely(!var56
)) {
9811 var_class_name59
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
9812 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name59
);
9813 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod
, 2955);
9817 nitc__parser_prod___AIfExpr___n_else_61d(self
, var_new_child
); /* Direct call parser_prod#AIfExpr#n_else= on <self:AIfExpr>*/
9824 /* method parser_prod#AIfExpr#n_kwif= for (self: AIfExpr, TKwif) */
9825 void nitc__parser_prod___AIfExpr___n_kwif_61d(val
* self
, val
* p0
) {
9826 val
* var_node
/* var node: TKwif */;
9828 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwif
].val
= var_node
; /* _n_kwif on <self:AIfExpr> */
9830 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwif> */
9831 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwif> */
9837 /* method parser_prod#AIfExpr#n_expr= for (self: AIfExpr, AExpr) */
9838 void nitc__parser_prod___AIfExpr___n_expr_61d(val
* self
, val
* p0
) {
9839 val
* var_node
/* var node: AExpr */;
9841 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_expr
].val
= var_node
; /* _n_expr on <self:AIfExpr> */
9843 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
9844 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
9850 /* method parser_prod#AIfExpr#n_kwthen= for (self: AIfExpr, TKwthen) */
9851 void nitc__parser_prod___AIfExpr___n_kwthen_61d(val
* self
, val
* p0
) {
9852 val
* var_node
/* var node: TKwthen */;
9854 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen
].val
= var_node
; /* _n_kwthen on <self:AIfExpr> */
9856 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwthen> */
9857 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwthen> */
9863 /* method parser_prod#AIfExpr#n_then= for (self: AIfExpr, nullable AExpr) */
9864 void nitc__parser_prod___AIfExpr___n_then_61d(val
* self
, val
* p0
) {
9865 val
* var_node
/* var node: nullable AExpr */;
9866 short int var
/* : Bool */;
9867 short int var1
/* : Bool */;
9868 val
* var_other
/* var other: nullable Object */;
9869 short int var3
/* : Bool */;
9870 short int var4
/* : Bool */;
9872 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_then
].val
= var_node
; /* _n_then on <self:AIfExpr> */
9873 if (var_node
== NULL
) {
9874 var
= 0; /* is null */
9876 var
= 1; /* arg is null and recv is not */
9879 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9880 var_other
= ((val
*)NULL
);
9882 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)>*/
9893 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9894 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */
9902 /* method parser_prod#AIfExpr#n_kwelse= for (self: AIfExpr, nullable TKwelse) */
9903 void nitc__parser_prod___AIfExpr___n_kwelse_61d(val
* self
, val
* p0
) {
9904 val
* var_node
/* var node: nullable TKwelse */;
9905 short int var
/* : Bool */;
9906 short int var1
/* : Bool */;
9907 val
* var_other
/* var other: nullable Object */;
9908 short int var3
/* : Bool */;
9909 short int var4
/* : Bool */;
9911 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse
].val
= var_node
; /* _n_kwelse on <self:AIfExpr> */
9912 if (var_node
== NULL
) {
9913 var
= 0; /* is null */
9915 var
= 1; /* arg is null and recv is not */
9918 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable TKwelse> */
9919 var_other
= ((val
*)NULL
);
9921 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 TKwelse(TKwelse)>*/
9932 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwelse(TKwelse)> */
9933 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwelse(TKwelse)> */
9941 /* method parser_prod#AIfExpr#n_else= for (self: AIfExpr, nullable AExpr) */
9942 void nitc__parser_prod___AIfExpr___n_else_61d(val
* self
, val
* p0
) {
9943 val
* var_node
/* var node: nullable AExpr */;
9944 short int var
/* : Bool */;
9945 short int var1
/* : Bool */;
9946 val
* var_other
/* var other: nullable Object */;
9947 short int var3
/* : Bool */;
9948 short int var4
/* : Bool */;
9950 self
->attrs
[COLOR_nitc__parser_nodes__AIfExpr___n_else
].val
= var_node
; /* _n_else on <self:AIfExpr> */
9951 if (var_node
== NULL
) {
9952 var
= 0; /* is null */
9954 var
= 1; /* arg is null and recv is not */
9957 { /* Inline kernel#Object#!= (var_node,((val*)NULL)) on <var_node:nullable AExpr> */
9958 var_other
= ((val
*)NULL
);
9960 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)>*/
9971 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AExpr(AExpr)> */
9972 var_node
->attrs
[COLOR_nitc__parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AExpr(AExpr)> */