1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#AModuleName#replace_child for (self: AModuleName, ANode, nullable ANode) */
3 void parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
4 val
* var_old_child
/* var old_child: ANode */;
5 val
* var_new_child
/* var new_child: nullable ANode */;
6 val
* var
/* : nullable TQuad */;
7 short int var1
/* : Bool */;
8 val
* var2
/* : null */;
9 short int var3
/* : Bool */;
10 short int var4
/* : Bool */;
13 val
* var5
/* : null */;
14 val
* var6
/* : Range[Int] */;
15 long var7
/* : Int */;
16 val
* var8
/* : ANodes[TId] */;
17 long var9
/* : Int */;
18 val
* var10
/* : Discrete */;
19 val
* var11
/* : Discrete */;
20 val
* var12
/* : Iterator[nullable Object] */;
21 short int var13
/* : Bool */;
22 val
* var14
/* : nullable Object */;
23 long var_i
/* var i: Int */;
24 long var15
/* : Int */;
25 val
* var16
/* : ANodes[TId] */;
26 val
* var17
/* : nullable Object */;
27 short int var18
/* : Bool */;
28 val
* var19
/* : null */;
29 short int var20
/* : Bool */;
30 short int var21
/* : Bool */;
33 val
* var24
/* : ANodes[TId] */;
34 val
* var25
/* : ANodes[TId] */;
35 val
* var26
/* : TId */;
36 short int var27
/* : Bool */;
37 val
* var28
/* : null */;
38 short int var29
/* : Bool */;
39 short int var30
/* : Bool */;
44 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
46 var1
= 0; /* <var_old_child:ANode> cannot be null */
48 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable TQuad>*/;
52 if (var_new_child
== NULL
) {
53 var3
= 0; /* is null */
55 var3
= 1; /* arg is null and recv is not */
58 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
59 /* <var_new_child:nullable ANode(ANode)> isa TQuad */
60 cltype
= type_parser_nodes__TQuad
.color
;
61 idtype
= type_parser_nodes__TQuad
.id
;
62 if(cltype
>= var_new_child
->type
->table_size
) {
65 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
68 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10750);
71 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_new_child
; /* _n_quad on <self:AModuleName> */
74 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var5
; /* _n_quad on <self:AModuleName> */
79 var6
= NEW_range__Range(&type_range__Rangekernel__Int
);
81 var8
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
83 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_path", "src/parser/parser_prod.nit", 10757);
86 var9
= ((long (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var8
) /* length on <var8:ANodes[TId]>*/;
87 var10
= BOX_kernel__Int(var7
); /* autobox from Int to Discrete */
88 var11
= BOX_kernel__Int(var9
); /* autobox from Int to Discrete */
89 ((void (*)(val
*, val
*, val
*))(var6
->class->vft
[COLOR_range__Range__without_last
]))(var6
, var10
, var11
) /* without_last on <var6:Range[Int]>*/;
90 CHECK_NEW_range__Range(var6
);
91 var12
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var6
) /* iterator on <var6:Range[Int]>*/;
93 var13
= ((short int (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var12
) /* is_ok on <var12:Iterator[nullable Object]>*/;
95 var14
= ((val
* (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var12
) /* item on <var12:Iterator[nullable Object]>*/;
96 var15
= ((struct instance_kernel__Int
*)var14
)->value
; /* autounbox from nullable Object to Int */;
98 var16
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
100 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_path", "src/parser/parser_prod.nit", 10758);
103 var17
= ((val
* (*)(val
*, long))(var16
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var16
, var_i
) /* [] on <var16:ANodes[TId]>*/;
104 var18
= ((short int (*)(val
*, val
*))(var17
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var17
, var_old_child
) /* == on <var17:nullable Object(TId)>*/;
107 if (var_new_child
== NULL
) {
108 var20
= 0; /* is null */
110 var20
= 1; /* arg is null and recv is not */
113 /* <var_new_child:nullable ANode(ANode)> isa TId */
114 cltype22
= type_parser_nodes__TId
.color
;
115 idtype23
= type_parser_nodes__TId
.id
;
116 if(cltype22
>= var_new_child
->type
->table_size
) {
119 var21
= var_new_child
->type
->type_table
[cltype22
] == idtype23
;
122 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10760);
125 var24
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
127 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_path", "src/parser/parser_prod.nit", 10761);
130 ((void (*)(val
*, long, val
*))(var24
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var24
, var_i
, var_new_child
) /* []= on <var24:ANodes[TId]>*/;
131 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(TId)>*/;
133 var25
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
135 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_path", "src/parser/parser_prod.nit", 10764);
138 ((void (*)(val
*, long))(var25
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var25
, var_i
) /* remove_at on <var25:ANodes[TId]>*/;
143 CONTINUE_label
: (void)0;
144 ((void (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var12
) /* next on <var12:Iterator[nullable Object]>*/;
146 BREAK_label
: (void)0;
147 var26
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
149 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 10769);
152 var27
= ((short int (*)(val
*, val
*))(var26
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var26
, var_old_child
) /* == on <var26:TId>*/;
155 if (var_new_child
== NULL
) {
156 var29
= 0; /* is null */
158 var29
= 1; /* arg is null and recv is not */
161 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
162 /* <var_new_child:nullable ANode(ANode)> isa TId */
163 cltype31
= type_parser_nodes__TId
.color
;
164 idtype32
= type_parser_nodes__TId
.id
;
165 if(cltype31
>= var_new_child
->type
->table_size
) {
168 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
171 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10772);
174 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_new_child
; /* _n_id on <self:AModuleName> */
176 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 10775);
184 /* method parser_prod#AModuleName#replace_child for (self: Object, ANode, nullable ANode) */
185 void VIRTUAL_parser_prod__AModuleName__replace_child(val
* self
, val
* p0
, val
* p1
) {
186 parser_prod__AModuleName__replace_child(self
, p0
, p1
);
189 /* method parser_prod#AModuleName#n_quad= for (self: AModuleName, nullable TQuad) */
190 void parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
191 val
* var_node
/* var node: nullable TQuad */;
192 val
* var
/* : null */;
193 short int var1
/* : Bool */;
195 self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
= var_node
; /* _n_quad on <self:AModuleName> */
197 if (var_node
== NULL
) {
198 var1
= 0; /* is null */
200 var1
= 1; /* arg is null and recv is not */
203 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TQuad(TQuad)>*/;
208 /* method parser_prod#AModuleName#n_quad= for (self: Object, nullable TQuad) */
209 void VIRTUAL_parser_prod__AModuleName__n_quad_61d(val
* self
, val
* p0
) {
210 parser_prod__AModuleName__n_quad_61d(self
, p0
);
213 /* method parser_prod#AModuleName#n_id= for (self: AModuleName, TId) */
214 void parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
215 val
* var_node
/* var node: TId */;
217 self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
= var_node
; /* _n_id on <self:AModuleName> */
218 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TId>*/;
221 /* method parser_prod#AModuleName#n_id= for (self: Object, TId) */
222 void VIRTUAL_parser_prod__AModuleName__n_id_61d(val
* self
, val
* p0
) {
223 parser_prod__AModuleName__n_id_61d(self
, p0
);
226 /* method parser_prod#AModuleName#visit_all for (self: AModuleName, Visitor) */
227 void parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
228 val
* var_v
/* var v: Visitor */;
229 val
* var
/* : nullable TQuad */;
230 val
* var1
/* : null */;
231 short int var2
/* : Bool */;
232 val
* var3
/* : nullable TQuad */;
233 val
* var4
/* : ANodes[TId] */;
234 val
* var5
/* : Iterator[nullable Object] */;
235 short int var6
/* : Bool */;
236 val
* var7
/* : nullable Object */;
237 val
* var_n
/* var n: TId */;
238 val
* var8
/* : TId */;
240 var
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
243 var2
= 0; /* is null */
245 var2
= 1; /* arg is null and recv is not */
248 var3
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_quad
].val
; /* _n_quad on <self:AModuleName> */
250 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10798);
253 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
256 var4
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_path
].val
; /* _n_path on <self:AModuleName> */
258 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_path", "src/parser/parser_prod.nit", 10800);
261 var5
= ((val
* (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var4
) /* iterator on <var4:ANodes[TId]>*/;
263 var6
= ((short int (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var5
) /* is_ok on <var5:Iterator[nullable Object]>*/;
265 var7
= ((val
* (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var5
) /* item on <var5:Iterator[nullable Object]>*/;
267 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
268 CONTINUE_label
: (void)0;
269 ((void (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var5
) /* next on <var5:Iterator[nullable Object]>*/;
271 BREAK_label
: (void)0;
272 var8
= self
->attrs
[COLOR_parser_nodes__AModuleName___n_id
].val
; /* _n_id on <self:AModuleName> */
274 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 10803);
277 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
280 /* method parser_prod#AModuleName#visit_all for (self: Object, Visitor) */
281 void VIRTUAL_parser_prod__AModuleName__visit_all(val
* self
, val
* p0
) {
282 parser_prod__AModuleName__visit_all(self
, p0
);
285 /* method parser_prod#AExternCalls#empty_init for (self: AExternCalls) */
286 void parser_prod__AExternCalls__empty_init(val
* self
) {
289 /* method parser_prod#AExternCalls#empty_init for (self: Object) */
290 void VIRTUAL_parser_prod__AExternCalls__empty_init(val
* self
) {
291 parser_prod__AExternCalls__empty_init(self
);
294 /* method parser_prod#AExternCalls#init_aexterncalls for (self: AExternCalls, nullable TKwimport, Collection[Object]) */
295 void parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
296 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
297 val
* var_n_extern_calls
/* var n_extern_calls: Collection[Object] */;
298 val
* var
/* : Iterator[nullable Object] */;
299 short int var1
/* : Bool */;
300 val
* var2
/* : nullable Object */;
301 val
* var_n
/* var n: Object */;
302 short int var3
/* : Bool */;
305 val
* var4
/* : ANodes[AExternCall] */;
307 var_n_extern_calls
= p1
;
308 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternCalls__empty_init
]))(self
) /* empty_init on <self:AExternCalls>*/;
309 if (var_n_kwimport
== NULL
) {
310 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10815);
313 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AExternCalls> */
314 if (var_n_kwimport
== NULL
) {
315 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 10816);
318 ((void (*)(val
*, val
*))(var_n_kwimport
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwimport
, self
) /* parent= on <var_n_kwimport:nullable TKwimport>*/;
320 var
= ((val
* (*)(val
*))(var_n_extern_calls
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_extern_calls
) /* iterator on <var_n_extern_calls:Collection[Object]>*/;
322 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
324 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
326 /* <var_n:Object> isa AExternCall */
327 cltype
= type_parser_nodes__AExternCall
.color
;
328 idtype
= type_parser_nodes__AExternCall
.id
;
329 if(cltype
>= var_n
->type
->table_size
) {
332 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
335 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10818);
338 var4
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
340 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10819);
343 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[AExternCall]>*/;
344 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AExternCall)>*/;
345 CONTINUE_label
: (void)0;
346 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
348 BREAK_label
: (void)0;
351 /* method parser_prod#AExternCalls#init_aexterncalls for (self: Object, nullable TKwimport, Collection[Object]) */
352 void VIRTUAL_parser_prod__AExternCalls__init_aexterncalls(val
* self
, val
* p0
, val
* p1
) {
353 parser_prod__AExternCalls__init_aexterncalls(self
, p0
, p1
);
356 /* method parser_prod#AExternCalls#replace_child for (self: AExternCalls, ANode, nullable ANode) */
357 void parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
358 val
* var_old_child
/* var old_child: ANode */;
359 val
* var_new_child
/* var new_child: nullable ANode */;
360 val
* var
/* : TKwimport */;
361 short int var1
/* : Bool */;
362 val
* var2
/* : null */;
363 short int var3
/* : Bool */;
364 short int var4
/* : Bool */;
367 val
* var5
/* : Range[Int] */;
368 long var6
/* : Int */;
369 val
* var7
/* : ANodes[AExternCall] */;
370 long var8
/* : Int */;
371 val
* var9
/* : Discrete */;
372 val
* var10
/* : Discrete */;
373 val
* var11
/* : Iterator[nullable Object] */;
374 short int var12
/* : Bool */;
375 val
* var13
/* : nullable Object */;
376 long var_i
/* var i: Int */;
377 long var14
/* : Int */;
378 val
* var15
/* : ANodes[AExternCall] */;
379 val
* var16
/* : nullable Object */;
380 short int var17
/* : Bool */;
381 val
* var18
/* : null */;
382 short int var19
/* : Bool */;
383 short int var20
/* : Bool */;
386 val
* var23
/* : ANodes[AExternCall] */;
387 val
* var24
/* : ANodes[AExternCall] */;
390 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
392 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 10826);
395 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwimport>*/;
398 if (var_new_child
== NULL
) {
399 var3
= 0; /* is null */
401 var3
= 1; /* arg is null and recv is not */
404 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
405 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
406 cltype
= type_parser_nodes__TKwimport
.color
;
407 idtype
= type_parser_nodes__TKwimport
.id
;
408 if(cltype
>= var_new_child
->type
->table_size
) {
411 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
414 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10829);
417 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_new_child
; /* _n_kwimport on <self:AExternCalls> */
419 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 10832);
425 var5
= NEW_range__Range(&type_range__Rangekernel__Int
);
427 var7
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
429 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10836);
432 var8
= ((long (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var7
) /* length on <var7:ANodes[AExternCall]>*/;
433 var9
= BOX_kernel__Int(var6
); /* autobox from Int to Discrete */
434 var10
= BOX_kernel__Int(var8
); /* autobox from Int to Discrete */
435 ((void (*)(val
*, val
*, val
*))(var5
->class->vft
[COLOR_range__Range__without_last
]))(var5
, var9
, var10
) /* without_last on <var5:Range[Int]>*/;
436 CHECK_NEW_range__Range(var5
);
437 var11
= ((val
* (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var5
) /* iterator on <var5:Range[Int]>*/;
439 var12
= ((short int (*)(val
*))(var11
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var11
) /* is_ok on <var11:Iterator[nullable Object]>*/;
441 var13
= ((val
* (*)(val
*))(var11
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var11
) /* item on <var11:Iterator[nullable Object]>*/;
442 var14
= ((struct instance_kernel__Int
*)var13
)->value
; /* autounbox from nullable Object to Int */;
444 var15
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
446 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10837);
449 var16
= ((val
* (*)(val
*, long))(var15
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var15
, var_i
) /* [] on <var15:ANodes[AExternCall]>*/;
450 var17
= ((short int (*)(val
*, val
*))(var16
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var16
, var_old_child
) /* == on <var16:nullable Object(AExternCall)>*/;
453 if (var_new_child
== NULL
) {
454 var19
= 0; /* is null */
456 var19
= 1; /* arg is null and recv is not */
459 /* <var_new_child:nullable ANode(ANode)> isa AExternCall */
460 cltype21
= type_parser_nodes__AExternCall
.color
;
461 idtype22
= type_parser_nodes__AExternCall
.id
;
462 if(cltype21
>= var_new_child
->type
->table_size
) {
465 var20
= var_new_child
->type
->type_table
[cltype21
] == idtype22
;
468 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10839);
471 var23
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
473 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10840);
476 ((void (*)(val
*, long, val
*))(var23
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var23
, var_i
, var_new_child
) /* []= on <var23:ANodes[AExternCall]>*/;
477 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(AExternCall)>*/;
479 var24
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
481 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10843);
484 ((void (*)(val
*, long))(var24
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var24
, var_i
) /* remove_at on <var24:ANodes[AExternCall]>*/;
489 CONTINUE_label
: (void)0;
490 ((void (*)(val
*))(var11
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var11
) /* next on <var11:Iterator[nullable Object]>*/;
492 BREAK_label
: (void)0;
495 /* method parser_prod#AExternCalls#replace_child for (self: Object, ANode, nullable ANode) */
496 void VIRTUAL_parser_prod__AExternCalls__replace_child(val
* self
, val
* p0
, val
* p1
) {
497 parser_prod__AExternCalls__replace_child(self
, p0
, p1
);
500 /* method parser_prod#AExternCalls#n_kwimport= for (self: AExternCalls, TKwimport) */
501 void parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
502 val
* var_node
/* var node: TKwimport */;
504 self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AExternCalls> */
505 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwimport>*/;
508 /* method parser_prod#AExternCalls#n_kwimport= for (self: Object, TKwimport) */
509 void VIRTUAL_parser_prod__AExternCalls__n_kwimport_61d(val
* self
, val
* p0
) {
510 parser_prod__AExternCalls__n_kwimport_61d(self
, p0
);
513 /* method parser_prod#AExternCalls#visit_all for (self: AExternCalls, Visitor) */
514 void parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
515 val
* var_v
/* var v: Visitor */;
516 val
* var
/* : TKwimport */;
517 val
* var1
/* : ANodes[AExternCall] */;
518 val
* var2
/* : Iterator[nullable Object] */;
519 short int var3
/* : Bool */;
520 val
* var4
/* : nullable Object */;
521 val
* var_n
/* var n: AExternCall */;
523 var
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_kwimport
].val
; /* _n_kwimport on <self:AExternCalls> */
525 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 10859);
528 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
529 var1
= self
->attrs
[COLOR_parser_nodes__AExternCalls___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternCalls> */
531 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_calls", "src/parser/parser_prod.nit", 10860);
534 var2
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var1
) /* iterator on <var1:ANodes[AExternCall]>*/;
536 var3
= ((short int (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var2
) /* is_ok on <var2:Iterator[nullable Object]>*/;
538 var4
= ((val
* (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var2
) /* item on <var2:Iterator[nullable Object]>*/;
540 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
541 CONTINUE_label
: (void)0;
542 ((void (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var2
) /* next on <var2:Iterator[nullable Object]>*/;
544 BREAK_label
: (void)0;
547 /* method parser_prod#AExternCalls#visit_all for (self: Object, Visitor) */
548 void VIRTUAL_parser_prod__AExternCalls__visit_all(val
* self
, val
* p0
) {
549 parser_prod__AExternCalls__visit_all(self
, p0
);
552 /* method parser_prod#AExternCall#empty_init for (self: AExternCall) */
553 void parser_prod__AExternCall__empty_init(val
* self
) {
556 /* method parser_prod#AExternCall#empty_init for (self: Object) */
557 void VIRTUAL_parser_prod__AExternCall__empty_init(val
* self
) {
558 parser_prod__AExternCall__empty_init(self
);
561 /* method parser_prod#AExternCall#init_aexterncall for (self: AExternCall) */
562 void parser_prod__AExternCall__init_aexterncall(val
* self
) {
563 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternCall__empty_init
]))(self
) /* empty_init on <self:AExternCall>*/;
566 /* method parser_prod#AExternCall#init_aexterncall for (self: Object) */
567 void VIRTUAL_parser_prod__AExternCall__init_aexterncall(val
* self
) {
568 parser_prod__AExternCall__init_aexterncall(self
);
571 /* method parser_prod#AExternCall#replace_child for (self: AExternCall, ANode, nullable ANode) */
572 void parser_prod__AExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
573 val
* var_old_child
/* var old_child: ANode */;
574 val
* var_new_child
/* var new_child: nullable ANode */;
579 /* method parser_prod#AExternCall#replace_child for (self: Object, ANode, nullable ANode) */
580 void VIRTUAL_parser_prod__AExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
581 parser_prod__AExternCall__replace_child(self
, p0
, p1
);
584 /* method parser_prod#AExternCall#visit_all for (self: AExternCall, Visitor) */
585 void parser_prod__AExternCall__visit_all(val
* self
, val
* p0
) {
586 val
* var_v
/* var v: Visitor */;
590 /* method parser_prod#AExternCall#visit_all for (self: Object, Visitor) */
591 void VIRTUAL_parser_prod__AExternCall__visit_all(val
* self
, val
* p0
) {
592 parser_prod__AExternCall__visit_all(self
, p0
);
595 /* method parser_prod#ASuperExternCall#empty_init for (self: ASuperExternCall) */
596 void parser_prod__ASuperExternCall__empty_init(val
* self
) {
599 /* method parser_prod#ASuperExternCall#empty_init for (self: Object) */
600 void VIRTUAL_parser_prod__ASuperExternCall__empty_init(val
* self
) {
601 parser_prod__ASuperExternCall__empty_init(self
);
604 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: ASuperExternCall, nullable TKwsuper) */
605 void parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
606 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
608 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ASuperExternCall__empty_init
]))(self
) /* empty_init on <self:ASuperExternCall>*/;
609 if (var_n_kwsuper
== NULL
) {
610 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10891);
613 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperExternCall> */
614 if (var_n_kwsuper
== NULL
) {
615 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 10892);
618 ((void (*)(val
*, val
*))(var_n_kwsuper
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwsuper
, self
) /* parent= on <var_n_kwsuper:nullable TKwsuper>*/;
622 /* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: Object, nullable TKwsuper) */
623 void VIRTUAL_parser_prod__ASuperExternCall__init_asuperexterncall(val
* self
, val
* p0
) {
624 parser_prod__ASuperExternCall__init_asuperexterncall(self
, p0
);
627 /* method parser_prod#ASuperExternCall#replace_child for (self: ASuperExternCall, ANode, nullable ANode) */
628 void parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
629 val
* var_old_child
/* var old_child: ANode */;
630 val
* var_new_child
/* var new_child: nullable ANode */;
631 val
* var
/* : TKwsuper */;
632 short int var1
/* : Bool */;
633 val
* var2
/* : null */;
634 short int var3
/* : Bool */;
635 short int var4
/* : Bool */;
640 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
642 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwsuper", "src/parser/parser_prod.nit", 10897);
645 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwsuper>*/;
648 if (var_new_child
== NULL
) {
649 var3
= 0; /* is null */
651 var3
= 1; /* arg is null and recv is not */
654 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
655 /* <var_new_child:nullable ANode(ANode)> isa TKwsuper */
656 cltype
= type_parser_nodes__TKwsuper
.color
;
657 idtype
= type_parser_nodes__TKwsuper
.id
;
658 if(cltype
>= var_new_child
->type
->table_size
) {
661 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
664 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10900);
667 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_new_child
; /* _n_kwsuper on <self:ASuperExternCall> */
669 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 10903);
677 /* method parser_prod#ASuperExternCall#replace_child for (self: Object, ANode, nullable ANode) */
678 void VIRTUAL_parser_prod__ASuperExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
679 parser_prod__ASuperExternCall__replace_child(self
, p0
, p1
);
682 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: ASuperExternCall, TKwsuper) */
683 void parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
684 val
* var_node
/* var node: TKwsuper */;
686 self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperExternCall> */
687 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwsuper>*/;
690 /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: Object, TKwsuper) */
691 void VIRTUAL_parser_prod__ASuperExternCall__n_kwsuper_61d(val
* self
, val
* p0
) {
692 parser_prod__ASuperExternCall__n_kwsuper_61d(self
, p0
);
695 /* method parser_prod#ASuperExternCall#visit_all for (self: ASuperExternCall, Visitor) */
696 void parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
697 val
* var_v
/* var v: Visitor */;
698 val
* var
/* : TKwsuper */;
700 var
= self
->attrs
[COLOR_parser_nodes__ASuperExternCall___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperExternCall> */
702 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwsuper", "src/parser/parser_prod.nit", 10918);
705 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
708 /* method parser_prod#ASuperExternCall#visit_all for (self: Object, Visitor) */
709 void VIRTUAL_parser_prod__ASuperExternCall__visit_all(val
* self
, val
* p0
) {
710 parser_prod__ASuperExternCall__visit_all(self
, p0
);
713 /* method parser_prod#ALocalPropExternCall#empty_init for (self: ALocalPropExternCall) */
714 void parser_prod__ALocalPropExternCall__empty_init(val
* self
) {
717 /* method parser_prod#ALocalPropExternCall#empty_init for (self: Object) */
718 void VIRTUAL_parser_prod__ALocalPropExternCall__empty_init(val
* self
) {
719 parser_prod__ALocalPropExternCall__empty_init(self
);
722 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: ALocalPropExternCall, nullable AMethid) */
723 void parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
724 val
* var_n_methid
/* var n_methid: nullable AMethid */;
726 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ALocalPropExternCall__empty_init
]))(self
) /* empty_init on <self:ALocalPropExternCall>*/;
727 if (var_n_methid
== NULL
) {
728 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10929);
731 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:ALocalPropExternCall> */
732 if (var_n_methid
== NULL
) {
733 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 10930);
736 ((void (*)(val
*, val
*))(var_n_methid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_methid
, self
) /* parent= on <var_n_methid:nullable AMethid>*/;
740 /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: Object, nullable AMethid) */
741 void VIRTUAL_parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val
* self
, val
* p0
) {
742 parser_prod__ALocalPropExternCall__init_alocalpropexterncall(self
, p0
);
745 /* method parser_prod#ALocalPropExternCall#replace_child for (self: ALocalPropExternCall, ANode, nullable ANode) */
746 void parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
747 val
* var_old_child
/* var old_child: ANode */;
748 val
* var_new_child
/* var new_child: nullable ANode */;
749 val
* var
/* : AMethid */;
750 short int var1
/* : Bool */;
751 val
* var2
/* : null */;
752 short int var3
/* : Bool */;
753 short int var4
/* : Bool */;
758 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
760 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_methid", "src/parser/parser_prod.nit", 10935);
763 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AMethid>*/;
766 if (var_new_child
== NULL
) {
767 var3
= 0; /* is null */
769 var3
= 1; /* arg is null and recv is not */
772 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
773 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
774 cltype
= type_parser_nodes__AMethid
.color
;
775 idtype
= type_parser_nodes__AMethid
.id
;
776 if(cltype
>= var_new_child
->type
->table_size
) {
779 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
782 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10938);
785 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_new_child
; /* _n_methid on <self:ALocalPropExternCall> */
787 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 10941);
795 /* method parser_prod#ALocalPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
796 void VIRTUAL_parser_prod__ALocalPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
797 parser_prod__ALocalPropExternCall__replace_child(self
, p0
, p1
);
800 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: ALocalPropExternCall, AMethid) */
801 void parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
802 val
* var_node
/* var node: AMethid */;
804 self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:ALocalPropExternCall> */
805 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AMethid>*/;
808 /* method parser_prod#ALocalPropExternCall#n_methid= for (self: Object, AMethid) */
809 void VIRTUAL_parser_prod__ALocalPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
810 parser_prod__ALocalPropExternCall__n_methid_61d(self
, p0
);
813 /* method parser_prod#ALocalPropExternCall#visit_all for (self: ALocalPropExternCall, Visitor) */
814 void parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
815 val
* var_v
/* var v: Visitor */;
816 val
* var
/* : AMethid */;
818 var
= self
->attrs
[COLOR_parser_nodes__ALocalPropExternCall___n_methid
].val
; /* _n_methid on <self:ALocalPropExternCall> */
820 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_methid", "src/parser/parser_prod.nit", 10956);
823 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
826 /* method parser_prod#ALocalPropExternCall#visit_all for (self: Object, Visitor) */
827 void VIRTUAL_parser_prod__ALocalPropExternCall__visit_all(val
* self
, val
* p0
) {
828 parser_prod__ALocalPropExternCall__visit_all(self
, p0
);
831 /* method parser_prod#AFullPropExternCall#empty_init for (self: AFullPropExternCall) */
832 void parser_prod__AFullPropExternCall__empty_init(val
* self
) {
835 /* method parser_prod#AFullPropExternCall#empty_init for (self: Object) */
836 void VIRTUAL_parser_prod__AFullPropExternCall__empty_init(val
* self
) {
837 parser_prod__AFullPropExternCall__empty_init(self
);
840 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: AFullPropExternCall, nullable TClassid, nullable TQuad, nullable AMethid) */
841 void parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
842 val
* var_n_classid
/* var n_classid: nullable TClassid */;
843 val
* var_n_quad
/* var n_quad: nullable TQuad */;
844 val
* var_n_methid
/* var n_methid: nullable AMethid */;
845 val
* var
/* : null */;
846 short int var1
/* : Bool */;
850 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AFullPropExternCall__empty_init
]))(self
) /* empty_init on <self:AFullPropExternCall>*/;
851 if (var_n_classid
== NULL
) {
852 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10969);
855 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_classid
].val
= var_n_classid
; /* _n_classid on <self:AFullPropExternCall> */
856 if (var_n_classid
== NULL
) {
857 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 10970);
860 ((void (*)(val
*, val
*))(var_n_classid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_classid
, self
) /* parent= on <var_n_classid:nullable TClassid>*/;
862 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
= var_n_quad
; /* _n_quad on <self:AFullPropExternCall> */
864 if (var_n_quad
== NULL
) {
865 var1
= 0; /* is null */
867 var1
= 1; /* arg is null and recv is not */
870 ((void (*)(val
*, val
*))(var_n_quad
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_quad
, self
) /* parent= on <var_n_quad:nullable TQuad(TQuad)>*/;
873 if (var_n_methid
== NULL
) {
874 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 10975);
877 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AFullPropExternCall> */
878 if (var_n_methid
== NULL
) {
879 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 10976);
882 ((void (*)(val
*, val
*))(var_n_methid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_methid
, self
) /* parent= on <var_n_methid:nullable AMethid>*/;
886 /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: Object, nullable TClassid, nullable TQuad, nullable AMethid) */
887 void VIRTUAL_parser_prod__AFullPropExternCall__init_afullpropexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
888 parser_prod__AFullPropExternCall__init_afullpropexterncall(self
, p0
, p1
, p2
);
891 /* method parser_prod#AFullPropExternCall#replace_child for (self: AFullPropExternCall, ANode, nullable ANode) */
892 void parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
893 val
* var_old_child
/* var old_child: ANode */;
894 val
* var_new_child
/* var new_child: nullable ANode */;
895 val
* var
/* : TClassid */;
896 short int var1
/* : Bool */;
897 val
* var2
/* : null */;
898 short int var3
/* : Bool */;
899 short int var4
/* : Bool */;
902 val
* var5
/* : nullable TQuad */;
903 short int var6
/* : Bool */;
904 val
* var7
/* : null */;
905 short int var8
/* : Bool */;
906 short int var9
/* : Bool */;
909 val
* var12
/* : null */;
910 val
* var13
/* : AMethid */;
911 short int var14
/* : Bool */;
912 val
* var15
/* : null */;
913 short int var16
/* : Bool */;
914 short int var17
/* : Bool */;
919 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_classid
].val
; /* _n_classid on <self:AFullPropExternCall> */
921 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classid", "src/parser/parser_prod.nit", 10981);
924 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TClassid>*/;
927 if (var_new_child
== NULL
) {
928 var3
= 0; /* is null */
930 var3
= 1; /* arg is null and recv is not */
933 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
934 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
935 cltype
= type_parser_nodes__TClassid
.color
;
936 idtype
= type_parser_nodes__TClassid
.id
;
937 if(cltype
>= var_new_child
->type
->table_size
) {
940 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
943 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10984);
946 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_classid
].val
= var_new_child
; /* _n_classid on <self:AFullPropExternCall> */
948 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 10987);
954 var5
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
; /* _n_quad on <self:AFullPropExternCall> */
956 var6
= 0; /* <var_old_child:ANode> cannot be null */
958 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable TQuad>*/;
962 if (var_new_child
== NULL
) {
963 var8
= 0; /* is null */
965 var8
= 1; /* arg is null and recv is not */
968 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
969 /* <var_new_child:nullable ANode(ANode)> isa TQuad */
970 cltype10
= type_parser_nodes__TQuad
.color
;
971 idtype11
= type_parser_nodes__TQuad
.id
;
972 if(cltype10
>= var_new_child
->type
->table_size
) {
975 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
978 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 10994);
981 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
= var_new_child
; /* _n_quad on <self:AFullPropExternCall> */
984 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
= var12
; /* _n_quad on <self:AFullPropExternCall> */
989 var13
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
991 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_methid", "src/parser/parser_prod.nit", 11001);
994 var14
= ((short int (*)(val
*, val
*))(var13
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var13
, var_old_child
) /* == on <var13:AMethid>*/;
997 if (var_new_child
== NULL
) {
998 var16
= 0; /* is null */
1000 var16
= 1; /* arg is null and recv is not */
1003 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1004 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
1005 cltype18
= type_parser_nodes__AMethid
.color
;
1006 idtype19
= type_parser_nodes__AMethid
.id
;
1007 if(cltype18
>= var_new_child
->type
->table_size
) {
1010 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
1013 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11004);
1016 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_new_child
; /* _n_methid on <self:AFullPropExternCall> */
1018 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11007);
1026 /* method parser_prod#AFullPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
1027 void VIRTUAL_parser_prod__AFullPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1028 parser_prod__AFullPropExternCall__replace_child(self
, p0
, p1
);
1031 /* method parser_prod#AFullPropExternCall#n_classid= for (self: AFullPropExternCall, TClassid) */
1032 void parser_prod__AFullPropExternCall__n_classid_61d(val
* self
, val
* p0
) {
1033 val
* var_node
/* var node: TClassid */;
1035 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_classid
].val
= var_node
; /* _n_classid on <self:AFullPropExternCall> */
1036 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TClassid>*/;
1039 /* method parser_prod#AFullPropExternCall#n_classid= for (self: Object, TClassid) */
1040 void VIRTUAL_parser_prod__AFullPropExternCall__n_classid_61d(val
* self
, val
* p0
) {
1041 parser_prod__AFullPropExternCall__n_classid_61d(self
, p0
);
1044 /* method parser_prod#AFullPropExternCall#n_quad= for (self: AFullPropExternCall, nullable TQuad) */
1045 void parser_prod__AFullPropExternCall__n_quad_61d(val
* self
, val
* p0
) {
1046 val
* var_node
/* var node: nullable TQuad */;
1047 val
* var
/* : null */;
1048 short int var1
/* : Bool */;
1050 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
= var_node
; /* _n_quad on <self:AFullPropExternCall> */
1052 if (var_node
== NULL
) {
1053 var1
= 0; /* is null */
1055 var1
= 1; /* arg is null and recv is not */
1058 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TQuad(TQuad)>*/;
1063 /* method parser_prod#AFullPropExternCall#n_quad= for (self: Object, nullable TQuad) */
1064 void VIRTUAL_parser_prod__AFullPropExternCall__n_quad_61d(val
* self
, val
* p0
) {
1065 parser_prod__AFullPropExternCall__n_quad_61d(self
, p0
);
1068 /* method parser_prod#AFullPropExternCall#n_methid= for (self: AFullPropExternCall, AMethid) */
1069 void parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
1070 val
* var_node
/* var node: AMethid */;
1072 self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
= var_node
; /* _n_methid on <self:AFullPropExternCall> */
1073 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AMethid>*/;
1076 /* method parser_prod#AFullPropExternCall#n_methid= for (self: Object, AMethid) */
1077 void VIRTUAL_parser_prod__AFullPropExternCall__n_methid_61d(val
* self
, val
* p0
) {
1078 parser_prod__AFullPropExternCall__n_methid_61d(self
, p0
);
1081 /* method parser_prod#AFullPropExternCall#visit_all for (self: AFullPropExternCall, Visitor) */
1082 void parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
1083 val
* var_v
/* var v: Visitor */;
1084 val
* var
/* : TClassid */;
1085 val
* var1
/* : nullable TQuad */;
1086 val
* var2
/* : null */;
1087 short int var3
/* : Bool */;
1088 val
* var4
/* : nullable TQuad */;
1089 val
* var5
/* : AMethid */;
1091 var
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_classid
].val
; /* _n_classid on <self:AFullPropExternCall> */
1093 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classid", "src/parser/parser_prod.nit", 11034);
1096 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1097 var1
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
; /* _n_quad on <self:AFullPropExternCall> */
1100 var3
= 0; /* is null */
1102 var3
= 1; /* arg is null and recv is not */
1105 var4
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_quad
].val
; /* _n_quad on <self:AFullPropExternCall> */
1107 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11036);
1110 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
1113 var5
= self
->attrs
[COLOR_parser_nodes__AFullPropExternCall___n_methid
].val
; /* _n_methid on <self:AFullPropExternCall> */
1115 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_methid", "src/parser/parser_prod.nit", 11038);
1118 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var5
) /* enter_visit on <var_v:Visitor>*/;
1121 /* method parser_prod#AFullPropExternCall#visit_all for (self: Object, Visitor) */
1122 void VIRTUAL_parser_prod__AFullPropExternCall__visit_all(val
* self
, val
* p0
) {
1123 parser_prod__AFullPropExternCall__visit_all(self
, p0
);
1126 /* method parser_prod#AInitPropExternCall#empty_init for (self: AInitPropExternCall) */
1127 void parser_prod__AInitPropExternCall__empty_init(val
* self
) {
1130 /* method parser_prod#AInitPropExternCall#empty_init for (self: Object) */
1131 void VIRTUAL_parser_prod__AInitPropExternCall__empty_init(val
* self
) {
1132 parser_prod__AInitPropExternCall__empty_init(self
);
1135 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: AInitPropExternCall, nullable TClassid) */
1136 void parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
1137 val
* var_n_classid
/* var n_classid: nullable TClassid */;
1139 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInitPropExternCall__empty_init
]))(self
) /* empty_init on <self:AInitPropExternCall>*/;
1140 if (var_n_classid
== NULL
) {
1141 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11049);
1144 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_classid
].val
= var_n_classid
; /* _n_classid on <self:AInitPropExternCall> */
1145 if (var_n_classid
== NULL
) {
1146 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11050);
1149 ((void (*)(val
*, val
*))(var_n_classid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_classid
, self
) /* parent= on <var_n_classid:nullable TClassid>*/;
1153 /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: Object, nullable TClassid) */
1154 void VIRTUAL_parser_prod__AInitPropExternCall__init_ainitpropexterncall(val
* self
, val
* p0
) {
1155 parser_prod__AInitPropExternCall__init_ainitpropexterncall(self
, p0
);
1158 /* method parser_prod#AInitPropExternCall#replace_child for (self: AInitPropExternCall, ANode, nullable ANode) */
1159 void parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1160 val
* var_old_child
/* var old_child: ANode */;
1161 val
* var_new_child
/* var new_child: nullable ANode */;
1162 val
* var
/* : TClassid */;
1163 short int var1
/* : Bool */;
1164 val
* var2
/* : null */;
1165 short int var3
/* : Bool */;
1166 short int var4
/* : Bool */;
1171 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_classid
].val
; /* _n_classid on <self:AInitPropExternCall> */
1173 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classid", "src/parser/parser_prod.nit", 11055);
1176 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TClassid>*/;
1179 if (var_new_child
== NULL
) {
1180 var3
= 0; /* is null */
1182 var3
= 1; /* arg is null and recv is not */
1185 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1186 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
1187 cltype
= type_parser_nodes__TClassid
.color
;
1188 idtype
= type_parser_nodes__TClassid
.id
;
1189 if(cltype
>= var_new_child
->type
->table_size
) {
1192 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1195 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11058);
1198 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_classid
].val
= var_new_child
; /* _n_classid on <self:AInitPropExternCall> */
1200 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11061);
1208 /* method parser_prod#AInitPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */
1209 void VIRTUAL_parser_prod__AInitPropExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1210 parser_prod__AInitPropExternCall__replace_child(self
, p0
, p1
);
1213 /* method parser_prod#AInitPropExternCall#n_classid= for (self: AInitPropExternCall, TClassid) */
1214 void parser_prod__AInitPropExternCall__n_classid_61d(val
* self
, val
* p0
) {
1215 val
* var_node
/* var node: TClassid */;
1217 self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_classid
].val
= var_node
; /* _n_classid on <self:AInitPropExternCall> */
1218 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TClassid>*/;
1221 /* method parser_prod#AInitPropExternCall#n_classid= for (self: Object, TClassid) */
1222 void VIRTUAL_parser_prod__AInitPropExternCall__n_classid_61d(val
* self
, val
* p0
) {
1223 parser_prod__AInitPropExternCall__n_classid_61d(self
, p0
);
1226 /* method parser_prod#AInitPropExternCall#visit_all for (self: AInitPropExternCall, Visitor) */
1227 void parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
1228 val
* var_v
/* var v: Visitor */;
1229 val
* var
/* : TClassid */;
1231 var
= self
->attrs
[COLOR_parser_nodes__AInitPropExternCall___n_classid
].val
; /* _n_classid on <self:AInitPropExternCall> */
1233 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classid", "src/parser/parser_prod.nit", 11076);
1236 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1239 /* method parser_prod#AInitPropExternCall#visit_all for (self: Object, Visitor) */
1240 void VIRTUAL_parser_prod__AInitPropExternCall__visit_all(val
* self
, val
* p0
) {
1241 parser_prod__AInitPropExternCall__visit_all(self
, p0
);
1244 /* method parser_prod#ACastAsExternCall#empty_init for (self: ACastAsExternCall) */
1245 void parser_prod__ACastAsExternCall__empty_init(val
* self
) {
1248 /* method parser_prod#ACastAsExternCall#empty_init for (self: Object) */
1249 void VIRTUAL_parser_prod__ACastAsExternCall__empty_init(val
* self
) {
1250 parser_prod__ACastAsExternCall__empty_init(self
);
1253 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: ACastAsExternCall, nullable AType, nullable TKwas, nullable AType) */
1254 void parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1255 val
* var_n_from_type
/* var n_from_type: nullable AType */;
1256 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
1257 val
* var_n_to_type
/* var n_to_type: nullable AType */;
1258 var_n_from_type
= p0
;
1261 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ACastAsExternCall__empty_init
]))(self
) /* empty_init on <self:ACastAsExternCall>*/;
1262 if (var_n_from_type
== NULL
) {
1263 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11089);
1266 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_n_from_type
; /* _n_from_type on <self:ACastAsExternCall> */
1267 if (var_n_from_type
== NULL
) {
1268 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11090);
1271 ((void (*)(val
*, val
*))(var_n_from_type
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_from_type
, self
) /* parent= on <var_n_from_type:nullable AType>*/;
1273 if (var_n_kwas
== NULL
) {
1274 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11091);
1277 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:ACastAsExternCall> */
1278 if (var_n_kwas
== NULL
) {
1279 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11092);
1282 ((void (*)(val
*, val
*))(var_n_kwas
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwas
, self
) /* parent= on <var_n_kwas:nullable TKwas>*/;
1284 if (var_n_to_type
== NULL
) {
1285 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11093);
1288 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_n_to_type
; /* _n_to_type on <self:ACastAsExternCall> */
1289 if (var_n_to_type
== NULL
) {
1290 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11094);
1293 ((void (*)(val
*, val
*))(var_n_to_type
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_to_type
, self
) /* parent= on <var_n_to_type:nullable AType>*/;
1297 /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: Object, nullable AType, nullable TKwas, nullable AType) */
1298 void VIRTUAL_parser_prod__ACastAsExternCall__init_acastasexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1299 parser_prod__ACastAsExternCall__init_acastasexterncall(self
, p0
, p1
, p2
);
1302 /* method parser_prod#ACastAsExternCall#replace_child for (self: ACastAsExternCall, ANode, nullable ANode) */
1303 void parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1304 val
* var_old_child
/* var old_child: ANode */;
1305 val
* var_new_child
/* var new_child: nullable ANode */;
1306 val
* var
/* : AType */;
1307 short int var1
/* : Bool */;
1308 val
* var2
/* : null */;
1309 short int var3
/* : Bool */;
1310 short int var4
/* : Bool */;
1313 val
* var5
/* : TKwas */;
1314 short int var6
/* : Bool */;
1315 val
* var7
/* : null */;
1316 short int var8
/* : Bool */;
1317 short int var9
/* : Bool */;
1320 val
* var12
/* : AType */;
1321 short int var13
/* : Bool */;
1322 val
* var14
/* : null */;
1323 short int var15
/* : Bool */;
1324 short int var16
/* : Bool */;
1329 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
1331 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_from_type", "src/parser/parser_prod.nit", 11099);
1334 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AType>*/;
1337 if (var_new_child
== NULL
) {
1338 var3
= 0; /* is null */
1340 var3
= 1; /* arg is null and recv is not */
1343 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1344 /* <var_new_child:nullable ANode(ANode)> isa AType */
1345 cltype
= type_parser_nodes__AType
.color
;
1346 idtype
= type_parser_nodes__AType
.id
;
1347 if(cltype
>= var_new_child
->type
->table_size
) {
1350 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1353 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11102);
1356 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_new_child
; /* _n_from_type on <self:ACastAsExternCall> */
1358 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11105);
1364 var5
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
1366 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11109);
1369 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwas>*/;
1372 if (var_new_child
== NULL
) {
1373 var8
= 0; /* is null */
1375 var8
= 1; /* arg is null and recv is not */
1378 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1379 /* <var_new_child:nullable ANode(ANode)> isa TKwas */
1380 cltype10
= type_parser_nodes__TKwas
.color
;
1381 idtype11
= type_parser_nodes__TKwas
.id
;
1382 if(cltype10
>= var_new_child
->type
->table_size
) {
1385 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1388 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11112);
1391 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_new_child
; /* _n_kwas on <self:ACastAsExternCall> */
1393 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11115);
1399 var12
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
1400 if (var12
== NULL
) {
1401 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_to_type", "src/parser/parser_prod.nit", 11119);
1404 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:AType>*/;
1407 if (var_new_child
== NULL
) {
1408 var15
= 0; /* is null */
1410 var15
= 1; /* arg is null and recv is not */
1413 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1414 /* <var_new_child:nullable ANode(ANode)> isa AType */
1415 cltype17
= type_parser_nodes__AType
.color
;
1416 idtype18
= type_parser_nodes__AType
.id
;
1417 if(cltype17
>= var_new_child
->type
->table_size
) {
1420 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1423 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11122);
1426 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_new_child
; /* _n_to_type on <self:ACastAsExternCall> */
1428 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11125);
1436 /* method parser_prod#ACastAsExternCall#replace_child for (self: Object, ANode, nullable ANode) */
1437 void VIRTUAL_parser_prod__ACastAsExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1438 parser_prod__ACastAsExternCall__replace_child(self
, p0
, p1
);
1441 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: ACastAsExternCall, AType) */
1442 void parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
1443 val
* var_node
/* var node: AType */;
1445 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
= var_node
; /* _n_from_type on <self:ACastAsExternCall> */
1446 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
1449 /* method parser_prod#ACastAsExternCall#n_from_type= for (self: Object, AType) */
1450 void VIRTUAL_parser_prod__ACastAsExternCall__n_from_type_61d(val
* self
, val
* p0
) {
1451 parser_prod__ACastAsExternCall__n_from_type_61d(self
, p0
);
1454 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: ACastAsExternCall, TKwas) */
1455 void parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
1456 val
* var_node
/* var node: TKwas */;
1458 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:ACastAsExternCall> */
1459 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwas>*/;
1462 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: Object, TKwas) */
1463 void VIRTUAL_parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
1464 parser_prod__ACastAsExternCall__n_kwas_61d(self
, p0
);
1467 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: ACastAsExternCall, AType) */
1468 void parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
1469 val
* var_node
/* var node: AType */;
1471 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_node
; /* _n_to_type on <self:ACastAsExternCall> */
1472 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
1475 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: Object, AType) */
1476 void VIRTUAL_parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
1477 parser_prod__ACastAsExternCall__n_to_type_61d(self
, p0
);
1480 /* method parser_prod#ACastAsExternCall#visit_all for (self: ACastAsExternCall, Visitor) */
1481 void parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
1482 val
* var_v
/* var v: Visitor */;
1483 val
* var
/* : AType */;
1484 val
* var1
/* : TKwas */;
1485 val
* var2
/* : AType */;
1487 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
1489 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_from_type", "src/parser/parser_prod.nit", 11150);
1492 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1493 var1
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
1495 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11151);
1498 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1499 var2
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
1501 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_to_type", "src/parser/parser_prod.nit", 11152);
1504 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1507 /* method parser_prod#ACastAsExternCall#visit_all for (self: Object, Visitor) */
1508 void VIRTUAL_parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
1509 parser_prod__ACastAsExternCall__visit_all(self
, p0
);
1512 /* method parser_prod#AAsNullableExternCall#empty_init for (self: AAsNullableExternCall) */
1513 void parser_prod__AAsNullableExternCall__empty_init(val
* self
) {
1516 /* method parser_prod#AAsNullableExternCall#empty_init for (self: Object) */
1517 void VIRTUAL_parser_prod__AAsNullableExternCall__empty_init(val
* self
) {
1518 parser_prod__AAsNullableExternCall__empty_init(self
);
1521 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: AAsNullableExternCall, nullable AType, nullable TKwas, nullable TKwnullable) */
1522 void parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1523 val
* var_n_type
/* var n_type: nullable AType */;
1524 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
1525 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
1528 var_n_kwnullable
= p2
;
1529 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAsNullableExternCall__empty_init
]))(self
) /* empty_init on <self:AAsNullableExternCall>*/;
1530 if (var_n_type
== NULL
) {
1531 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11165);
1534 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNullableExternCall> */
1535 if (var_n_type
== NULL
) {
1536 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11166);
1539 ((void (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_type
, self
) /* parent= on <var_n_type:nullable AType>*/;
1541 if (var_n_kwas
== NULL
) {
1542 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11167);
1545 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNullableExternCall> */
1546 if (var_n_kwas
== NULL
) {
1547 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11168);
1550 ((void (*)(val
*, val
*))(var_n_kwas
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwas
, self
) /* parent= on <var_n_kwas:nullable TKwas>*/;
1552 if (var_n_kwnullable
== NULL
) {
1553 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11169);
1556 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNullableExternCall> */
1557 if (var_n_kwnullable
== NULL
) {
1558 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11170);
1561 ((void (*)(val
*, val
*))(var_n_kwnullable
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwnullable
, self
) /* parent= on <var_n_kwnullable:nullable TKwnullable>*/;
1565 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnullable) */
1566 void VIRTUAL_parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1567 parser_prod__AAsNullableExternCall__init_aasnullableexterncall(self
, p0
, p1
, p2
);
1570 /* method parser_prod#AAsNullableExternCall#replace_child for (self: AAsNullableExternCall, ANode, nullable ANode) */
1571 void parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1572 val
* var_old_child
/* var old_child: ANode */;
1573 val
* var_new_child
/* var new_child: nullable ANode */;
1574 val
* var
/* : AType */;
1575 short int var1
/* : Bool */;
1576 val
* var2
/* : null */;
1577 short int var3
/* : Bool */;
1578 short int var4
/* : Bool */;
1581 val
* var5
/* : TKwas */;
1582 short int var6
/* : Bool */;
1583 val
* var7
/* : null */;
1584 short int var8
/* : Bool */;
1585 short int var9
/* : Bool */;
1588 val
* var12
/* : TKwnullable */;
1589 short int var13
/* : Bool */;
1590 val
* var14
/* : null */;
1591 short int var15
/* : Bool */;
1592 short int var16
/* : Bool */;
1597 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
1599 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11175);
1602 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AType>*/;
1605 if (var_new_child
== NULL
) {
1606 var3
= 0; /* is null */
1608 var3
= 1; /* arg is null and recv is not */
1611 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1612 /* <var_new_child:nullable ANode(ANode)> isa AType */
1613 cltype
= type_parser_nodes__AType
.color
;
1614 idtype
= type_parser_nodes__AType
.id
;
1615 if(cltype
>= var_new_child
->type
->table_size
) {
1618 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1621 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11178);
1624 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_new_child
; /* _n_type on <self:AAsNullableExternCall> */
1626 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11181);
1632 var5
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
1634 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11185);
1637 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwas>*/;
1640 if (var_new_child
== NULL
) {
1641 var8
= 0; /* is null */
1643 var8
= 1; /* arg is null and recv is not */
1646 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1647 /* <var_new_child:nullable ANode(ANode)> isa TKwas */
1648 cltype10
= type_parser_nodes__TKwas
.color
;
1649 idtype11
= type_parser_nodes__TKwas
.id
;
1650 if(cltype10
>= var_new_child
->type
->table_size
) {
1653 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1656 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11188);
1659 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_new_child
; /* _n_kwas on <self:AAsNullableExternCall> */
1661 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11191);
1667 var12
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
1668 if (var12
== NULL
) {
1669 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnullable", "src/parser/parser_prod.nit", 11195);
1672 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:TKwnullable>*/;
1675 if (var_new_child
== NULL
) {
1676 var15
= 0; /* is null */
1678 var15
= 1; /* arg is null and recv is not */
1681 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1682 /* <var_new_child:nullable ANode(ANode)> isa TKwnullable */
1683 cltype17
= type_parser_nodes__TKwnullable
.color
;
1684 idtype18
= type_parser_nodes__TKwnullable
.id
;
1685 if(cltype17
>= var_new_child
->type
->table_size
) {
1688 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1691 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11198);
1694 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_new_child
; /* _n_kwnullable on <self:AAsNullableExternCall> */
1696 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11201);
1704 /* method parser_prod#AAsNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
1705 void VIRTUAL_parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1706 parser_prod__AAsNullableExternCall__replace_child(self
, p0
, p1
);
1709 /* method parser_prod#AAsNullableExternCall#n_type= for (self: AAsNullableExternCall, AType) */
1710 void parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
1711 val
* var_node
/* var node: AType */;
1713 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNullableExternCall> */
1714 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
1717 /* method parser_prod#AAsNullableExternCall#n_type= for (self: Object, AType) */
1718 void VIRTUAL_parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
1719 parser_prod__AAsNullableExternCall__n_type_61d(self
, p0
);
1722 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: AAsNullableExternCall, TKwas) */
1723 void parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
1724 val
* var_node
/* var node: TKwas */;
1726 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNullableExternCall> */
1727 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwas>*/;
1730 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: Object, TKwas) */
1731 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
1732 parser_prod__AAsNullableExternCall__n_kwas_61d(self
, p0
);
1735 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: AAsNullableExternCall, TKwnullable) */
1736 void parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
1737 val
* var_node
/* var node: TKwnullable */;
1739 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNullableExternCall> */
1740 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwnullable>*/;
1743 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
1744 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
1745 parser_prod__AAsNullableExternCall__n_kwnullable_61d(self
, p0
);
1748 /* method parser_prod#AAsNullableExternCall#visit_all for (self: AAsNullableExternCall, Visitor) */
1749 void parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
1750 val
* var_v
/* var v: Visitor */;
1751 val
* var
/* : AType */;
1752 val
* var1
/* : TKwas */;
1753 val
* var2
/* : TKwnullable */;
1755 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
1757 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11226);
1760 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1761 var1
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
1763 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11227);
1766 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1767 var2
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
1769 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnullable", "src/parser/parser_prod.nit", 11228);
1772 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1775 /* method parser_prod#AAsNullableExternCall#visit_all for (self: Object, Visitor) */
1776 void VIRTUAL_parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
1777 parser_prod__AAsNullableExternCall__visit_all(self
, p0
);
1780 /* method parser_prod#AAsNotNullableExternCall#empty_init for (self: AAsNotNullableExternCall) */
1781 void parser_prod__AAsNotNullableExternCall__empty_init(val
* self
) {
1784 /* method parser_prod#AAsNotNullableExternCall#empty_init for (self: Object) */
1785 void VIRTUAL_parser_prod__AAsNotNullableExternCall__empty_init(val
* self
) {
1786 parser_prod__AAsNotNullableExternCall__empty_init(self
);
1789 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: AAsNotNullableExternCall, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
1790 void parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1791 val
* var_n_type
/* var n_type: nullable AType */;
1792 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
1793 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
1794 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
1798 var_n_kwnullable
= p3
;
1799 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAsNotNullableExternCall__empty_init
]))(self
) /* empty_init on <self:AAsNotNullableExternCall>*/;
1800 if (var_n_type
== NULL
) {
1801 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11242);
1804 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNotNullableExternCall> */
1805 if (var_n_type
== NULL
) {
1806 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11243);
1809 ((void (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_type
, self
) /* parent= on <var_n_type:nullable AType>*/;
1811 if (var_n_kwas
== NULL
) {
1812 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11244);
1815 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotNullableExternCall> */
1816 if (var_n_kwas
== NULL
) {
1817 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11245);
1820 ((void (*)(val
*, val
*))(var_n_kwas
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwas
, self
) /* parent= on <var_n_kwas:nullable TKwas>*/;
1822 if (var_n_kwnot
== NULL
) {
1823 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11246);
1826 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
1827 if (var_n_kwnot
== NULL
) {
1828 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11247);
1831 ((void (*)(val
*, val
*))(var_n_kwnot
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwnot
, self
) /* parent= on <var_n_kwnot:nullable TKwnot>*/;
1833 if (var_n_kwnullable
== NULL
) {
1834 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11248);
1837 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
1838 if (var_n_kwnullable
== NULL
) {
1839 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11249);
1842 ((void (*)(val
*, val
*))(var_n_kwnullable
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwnullable
, self
) /* parent= on <var_n_kwnullable:nullable TKwnullable>*/;
1846 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
1847 void VIRTUAL_parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1848 parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(self
, p0
, p1
, p2
, p3
);
1851 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: AAsNotNullableExternCall, ANode, nullable ANode) */
1852 void parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
1853 val
* var_old_child
/* var old_child: ANode */;
1854 val
* var_new_child
/* var new_child: nullable ANode */;
1855 val
* var
/* : AType */;
1856 short int var1
/* : Bool */;
1857 val
* var2
/* : null */;
1858 short int var3
/* : Bool */;
1859 short int var4
/* : Bool */;
1862 val
* var5
/* : TKwas */;
1863 short int var6
/* : Bool */;
1864 val
* var7
/* : null */;
1865 short int var8
/* : Bool */;
1866 short int var9
/* : Bool */;
1869 val
* var12
/* : TKwnot */;
1870 short int var13
/* : Bool */;
1871 val
* var14
/* : null */;
1872 short int var15
/* : Bool */;
1873 short int var16
/* : Bool */;
1876 val
* var19
/* : TKwnullable */;
1877 short int var20
/* : Bool */;
1878 val
* var21
/* : null */;
1879 short int var22
/* : Bool */;
1880 short int var23
/* : Bool */;
1885 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
1887 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11254);
1890 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AType>*/;
1893 if (var_new_child
== NULL
) {
1894 var3
= 0; /* is null */
1896 var3
= 1; /* arg is null and recv is not */
1899 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1900 /* <var_new_child:nullable ANode(ANode)> isa AType */
1901 cltype
= type_parser_nodes__AType
.color
;
1902 idtype
= type_parser_nodes__AType
.id
;
1903 if(cltype
>= var_new_child
->type
->table_size
) {
1906 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1909 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11257);
1912 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_new_child
; /* _n_type on <self:AAsNotNullableExternCall> */
1914 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11260);
1920 var5
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
1922 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11264);
1925 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwas>*/;
1928 if (var_new_child
== NULL
) {
1929 var8
= 0; /* is null */
1931 var8
= 1; /* arg is null and recv is not */
1934 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1935 /* <var_new_child:nullable ANode(ANode)> isa TKwas */
1936 cltype10
= type_parser_nodes__TKwas
.color
;
1937 idtype11
= type_parser_nodes__TKwas
.id
;
1938 if(cltype10
>= var_new_child
->type
->table_size
) {
1941 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1944 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11267);
1947 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_new_child
; /* _n_kwas on <self:AAsNotNullableExternCall> */
1949 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11270);
1955 var12
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
1956 if (var12
== NULL
) {
1957 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnot", "src/parser/parser_prod.nit", 11274);
1960 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:TKwnot>*/;
1963 if (var_new_child
== NULL
) {
1964 var15
= 0; /* is null */
1966 var15
= 1; /* arg is null and recv is not */
1969 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
1970 /* <var_new_child:nullable ANode(ANode)> isa TKwnot */
1971 cltype17
= type_parser_nodes__TKwnot
.color
;
1972 idtype18
= type_parser_nodes__TKwnot
.id
;
1973 if(cltype17
>= var_new_child
->type
->table_size
) {
1976 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1979 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11277);
1982 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_new_child
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
1984 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11280);
1990 var19
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
1991 if (var19
== NULL
) {
1992 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnullable", "src/parser/parser_prod.nit", 11284);
1995 var20
= ((short int (*)(val
*, val
*))(var19
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var19
, var_old_child
) /* == on <var19:TKwnullable>*/;
1998 if (var_new_child
== NULL
) {
1999 var22
= 0; /* is null */
2001 var22
= 1; /* arg is null and recv is not */
2004 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2005 /* <var_new_child:nullable ANode(ANode)> isa TKwnullable */
2006 cltype24
= type_parser_nodes__TKwnullable
.color
;
2007 idtype25
= type_parser_nodes__TKwnullable
.id
;
2008 if(cltype24
>= var_new_child
->type
->table_size
) {
2011 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
2014 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11287);
2017 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_new_child
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
2019 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11290);
2027 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
2028 void VIRTUAL_parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
2029 parser_prod__AAsNotNullableExternCall__replace_child(self
, p0
, p1
);
2032 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: AAsNotNullableExternCall, AType) */
2033 void parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
2034 val
* var_node
/* var node: AType */;
2036 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNotNullableExternCall> */
2037 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
2040 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: Object, AType) */
2041 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
2042 parser_prod__AAsNotNullableExternCall__n_type_61d(self
, p0
);
2045 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: AAsNotNullableExternCall, TKwas) */
2046 void parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
2047 val
* var_node
/* var node: TKwas */;
2049 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotNullableExternCall> */
2050 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwas>*/;
2053 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: Object, TKwas) */
2054 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
2055 parser_prod__AAsNotNullableExternCall__n_kwas_61d(self
, p0
);
2058 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: AAsNotNullableExternCall, TKwnot) */
2059 void parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
2060 val
* var_node
/* var node: TKwnot */;
2062 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
2063 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwnot>*/;
2066 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: Object, TKwnot) */
2067 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
2068 parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self
, p0
);
2071 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: AAsNotNullableExternCall, TKwnullable) */
2072 void parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
2073 val
* var_node
/* var node: TKwnullable */;
2075 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
2076 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwnullable>*/;
2079 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
2080 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
2081 parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self
, p0
);
2084 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: AAsNotNullableExternCall, Visitor) */
2085 void parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
2086 val
* var_v
/* var v: Visitor */;
2087 val
* var
/* : AType */;
2088 val
* var1
/* : TKwas */;
2089 val
* var2
/* : TKwnot */;
2090 val
* var3
/* : TKwnullable */;
2092 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
2094 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11320);
2097 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
2098 var1
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
2100 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwas", "src/parser/parser_prod.nit", 11321);
2103 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
2104 var2
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
2106 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnot", "src/parser/parser_prod.nit", 11322);
2109 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
2110 var3
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
2112 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwnullable", "src/parser/parser_prod.nit", 11323);
2115 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
2118 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: Object, Visitor) */
2119 void VIRTUAL_parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
2120 parser_prod__AAsNotNullableExternCall__visit_all(self
, p0
);
2123 /* method parser_prod#AInLanguage#empty_init for (self: AInLanguage) */
2124 void parser_prod__AInLanguage__empty_init(val
* self
) {
2127 /* method parser_prod#AInLanguage#empty_init for (self: Object) */
2128 void VIRTUAL_parser_prod__AInLanguage__empty_init(val
* self
) {
2129 parser_prod__AInLanguage__empty_init(self
);
2132 /* method parser_prod#AInLanguage#init_ainlanguage for (self: AInLanguage, nullable TKwin, nullable TString) */
2133 void parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
2134 val
* var_n_kwin
/* var n_kwin: nullable TKwin */;
2135 val
* var_n_string
/* var n_string: nullable TString */;
2138 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInLanguage__empty_init
]))(self
) /* empty_init on <self:AInLanguage>*/;
2139 if (var_n_kwin
== NULL
) {
2140 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11335);
2143 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_n_kwin
; /* _n_kwin on <self:AInLanguage> */
2144 if (var_n_kwin
== NULL
) {
2145 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11336);
2148 ((void (*)(val
*, val
*))(var_n_kwin
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwin
, self
) /* parent= on <var_n_kwin:nullable TKwin>*/;
2150 if (var_n_string
== NULL
) {
2151 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11337);
2154 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_n_string
; /* _n_string on <self:AInLanguage> */
2155 if (var_n_string
== NULL
) {
2156 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11338);
2159 ((void (*)(val
*, val
*))(var_n_string
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_string
, self
) /* parent= on <var_n_string:nullable TString>*/;
2163 /* method parser_prod#AInLanguage#init_ainlanguage for (self: Object, nullable TKwin, nullable TString) */
2164 void VIRTUAL_parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
2165 parser_prod__AInLanguage__init_ainlanguage(self
, p0
, p1
);
2168 /* method parser_prod#AInLanguage#replace_child for (self: AInLanguage, ANode, nullable ANode) */
2169 void parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
2170 val
* var_old_child
/* var old_child: ANode */;
2171 val
* var_new_child
/* var new_child: nullable ANode */;
2172 val
* var
/* : TKwin */;
2173 short int var1
/* : Bool */;
2174 val
* var2
/* : null */;
2175 short int var3
/* : Bool */;
2176 short int var4
/* : Bool */;
2179 val
* var5
/* : TString */;
2180 short int var6
/* : Bool */;
2181 val
* var7
/* : null */;
2182 short int var8
/* : Bool */;
2183 short int var9
/* : Bool */;
2188 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
2190 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwin", "src/parser/parser_prod.nit", 11343);
2193 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwin>*/;
2196 if (var_new_child
== NULL
) {
2197 var3
= 0; /* is null */
2199 var3
= 1; /* arg is null and recv is not */
2202 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2203 /* <var_new_child:nullable ANode(ANode)> isa TKwin */
2204 cltype
= type_parser_nodes__TKwin
.color
;
2205 idtype
= type_parser_nodes__TKwin
.id
;
2206 if(cltype
>= var_new_child
->type
->table_size
) {
2209 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2212 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11346);
2215 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_new_child
; /* _n_kwin on <self:AInLanguage> */
2217 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11349);
2223 var5
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
2225 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_string", "src/parser/parser_prod.nit", 11353);
2228 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TString>*/;
2231 if (var_new_child
== NULL
) {
2232 var8
= 0; /* is null */
2234 var8
= 1; /* arg is null and recv is not */
2237 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2238 /* <var_new_child:nullable ANode(ANode)> isa TString */
2239 cltype10
= type_parser_nodes__TString
.color
;
2240 idtype11
= type_parser_nodes__TString
.id
;
2241 if(cltype10
>= var_new_child
->type
->table_size
) {
2244 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
2247 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11356);
2250 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_new_child
; /* _n_string on <self:AInLanguage> */
2252 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11359);
2260 /* method parser_prod#AInLanguage#replace_child for (self: Object, ANode, nullable ANode) */
2261 void VIRTUAL_parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
2262 parser_prod__AInLanguage__replace_child(self
, p0
, p1
);
2265 /* method parser_prod#AInLanguage#n_kwin= for (self: AInLanguage, TKwin) */
2266 void parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
2267 val
* var_node
/* var node: TKwin */;
2269 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_node
; /* _n_kwin on <self:AInLanguage> */
2270 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwin>*/;
2273 /* method parser_prod#AInLanguage#n_kwin= for (self: Object, TKwin) */
2274 void VIRTUAL_parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
2275 parser_prod__AInLanguage__n_kwin_61d(self
, p0
);
2278 /* method parser_prod#AInLanguage#n_string= for (self: AInLanguage, TString) */
2279 void parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
2280 val
* var_node
/* var node: TString */;
2282 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_node
; /* _n_string on <self:AInLanguage> */
2283 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TString>*/;
2286 /* method parser_prod#AInLanguage#n_string= for (self: Object, TString) */
2287 void VIRTUAL_parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
2288 parser_prod__AInLanguage__n_string_61d(self
, p0
);
2291 /* method parser_prod#AInLanguage#visit_all for (self: AInLanguage, Visitor) */
2292 void parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
2293 val
* var_v
/* var v: Visitor */;
2294 val
* var
/* : TKwin */;
2295 val
* var1
/* : TString */;
2297 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
2299 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwin", "src/parser/parser_prod.nit", 11379);
2302 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
2303 var1
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
2305 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_string", "src/parser/parser_prod.nit", 11380);
2308 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
2311 /* method parser_prod#AInLanguage#visit_all for (self: Object, Visitor) */
2312 void VIRTUAL_parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
2313 parser_prod__AInLanguage__visit_all(self
, p0
);
2316 /* method parser_prod#AExternCodeBlock#empty_init for (self: AExternCodeBlock) */
2317 void parser_prod__AExternCodeBlock__empty_init(val
* self
) {
2320 /* method parser_prod#AExternCodeBlock#empty_init for (self: Object) */
2321 void VIRTUAL_parser_prod__AExternCodeBlock__empty_init(val
* self
) {
2322 parser_prod__AExternCodeBlock__empty_init(self
);
2325 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: AExternCodeBlock, nullable AInLanguage, nullable TExternCodeSegment) */
2326 void parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
2327 val
* var_n_in_language
/* var n_in_language: nullable AInLanguage */;
2328 val
* var_n_extern_code_segment
/* var n_extern_code_segment: nullable TExternCodeSegment */;
2329 val
* var
/* : null */;
2330 short int var1
/* : Bool */;
2331 var_n_in_language
= p0
;
2332 var_n_extern_code_segment
= p1
;
2333 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternCodeBlock__empty_init
]))(self
) /* empty_init on <self:AExternCodeBlock>*/;
2334 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_n_in_language
; /* _n_in_language on <self:AExternCodeBlock> */
2336 if (var_n_in_language
== NULL
) {
2337 var1
= 0; /* is null */
2339 var1
= 1; /* arg is null and recv is not */
2342 ((void (*)(val
*, val
*))(var_n_in_language
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_in_language
, self
) /* parent= on <var_n_in_language:nullable AInLanguage(AInLanguage)>*/;
2345 if (var_n_extern_code_segment
== NULL
) {
2346 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11396);
2349 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_n_extern_code_segment
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
2350 if (var_n_extern_code_segment
== NULL
) {
2351 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11397);
2354 ((void (*)(val
*, val
*))(var_n_extern_code_segment
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_extern_code_segment
, self
) /* parent= on <var_n_extern_code_segment:nullable TExternCodeSegment>*/;
2358 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: Object, nullable AInLanguage, nullable TExternCodeSegment) */
2359 void VIRTUAL_parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
2360 parser_prod__AExternCodeBlock__init_aexterncodeblock(self
, p0
, p1
);
2363 /* method parser_prod#AExternCodeBlock#replace_child for (self: AExternCodeBlock, ANode, nullable ANode) */
2364 void parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
2365 val
* var_old_child
/* var old_child: ANode */;
2366 val
* var_new_child
/* var new_child: nullable ANode */;
2367 val
* var
/* : nullable AInLanguage */;
2368 short int var1
/* : Bool */;
2369 val
* var2
/* : null */;
2370 short int var3
/* : Bool */;
2371 short int var4
/* : Bool */;
2374 val
* var5
/* : null */;
2375 val
* var6
/* : TExternCodeSegment */;
2376 short int var7
/* : Bool */;
2377 val
* var8
/* : null */;
2378 short int var9
/* : Bool */;
2379 short int var10
/* : Bool */;
2384 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
2386 var1
= 0; /* <var_old_child:ANode> cannot be null */
2388 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable AInLanguage>*/;
2392 if (var_new_child
== NULL
) {
2393 var3
= 0; /* is null */
2395 var3
= 1; /* arg is null and recv is not */
2398 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2399 /* <var_new_child:nullable ANode(ANode)> isa AInLanguage */
2400 cltype
= type_parser_nodes__AInLanguage
.color
;
2401 idtype
= type_parser_nodes__AInLanguage
.id
;
2402 if(cltype
>= var_new_child
->type
->table_size
) {
2405 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2408 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11405);
2411 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_new_child
; /* _n_in_language on <self:AExternCodeBlock> */
2414 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var5
; /* _n_in_language on <self:AExternCodeBlock> */
2419 var6
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
2421 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_segment", "src/parser/parser_prod.nit", 11412);
2424 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:TExternCodeSegment>*/;
2427 if (var_new_child
== NULL
) {
2428 var9
= 0; /* is null */
2430 var9
= 1; /* arg is null and recv is not */
2433 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2434 /* <var_new_child:nullable ANode(ANode)> isa TExternCodeSegment */
2435 cltype11
= type_parser_nodes__TExternCodeSegment
.color
;
2436 idtype12
= type_parser_nodes__TExternCodeSegment
.id
;
2437 if(cltype11
>= var_new_child
->type
->table_size
) {
2440 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
2443 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11415);
2446 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_new_child
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
2448 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11418);
2456 /* method parser_prod#AExternCodeBlock#replace_child for (self: Object, ANode, nullable ANode) */
2457 void VIRTUAL_parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
2458 parser_prod__AExternCodeBlock__replace_child(self
, p0
, p1
);
2461 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: AExternCodeBlock, nullable AInLanguage) */
2462 void parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
2463 val
* var_node
/* var node: nullable AInLanguage */;
2464 val
* var
/* : null */;
2465 short int var1
/* : Bool */;
2467 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_node
; /* _n_in_language on <self:AExternCodeBlock> */
2469 if (var_node
== NULL
) {
2470 var1
= 0; /* is null */
2472 var1
= 1; /* arg is null and recv is not */
2475 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AInLanguage(AInLanguage)>*/;
2480 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: Object, nullable AInLanguage) */
2481 void VIRTUAL_parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
2482 parser_prod__AExternCodeBlock__n_in_language_61d(self
, p0
);
2485 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: AExternCodeBlock, TExternCodeSegment) */
2486 void parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
2487 val
* var_node
/* var node: TExternCodeSegment */;
2489 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_node
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
2490 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TExternCodeSegment>*/;
2493 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: Object, TExternCodeSegment) */
2494 void VIRTUAL_parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
2495 parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self
, p0
);
2498 /* method parser_prod#AExternCodeBlock#visit_all for (self: AExternCodeBlock, Visitor) */
2499 void parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
2500 val
* var_v
/* var v: Visitor */;
2501 val
* var
/* : nullable AInLanguage */;
2502 val
* var1
/* : null */;
2503 short int var2
/* : Bool */;
2504 val
* var3
/* : nullable AInLanguage */;
2505 val
* var4
/* : TExternCodeSegment */;
2507 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
2510 var2
= 0; /* is null */
2512 var2
= 1; /* arg is null and recv is not */
2515 var3
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
2517 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11441);
2520 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
2523 var4
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
2525 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_segment", "src/parser/parser_prod.nit", 11443);
2528 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
2531 /* method parser_prod#AExternCodeBlock#visit_all for (self: Object, Visitor) */
2532 void VIRTUAL_parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
2533 parser_prod__AExternCodeBlock__visit_all(self
, p0
);
2536 /* method parser_prod#AQualified#empty_init for (self: AQualified) */
2537 void parser_prod__AQualified__empty_init(val
* self
) {
2540 /* method parser_prod#AQualified#empty_init for (self: Object) */
2541 void VIRTUAL_parser_prod__AQualified__empty_init(val
* self
) {
2542 parser_prod__AQualified__empty_init(self
);
2545 /* method parser_prod#AQualified#init_aqualified for (self: AQualified, Collection[Object], nullable TClassid) */
2546 void parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
2547 val
* var_n_id
/* var n_id: Collection[Object] */;
2548 val
* var_n_classid
/* var n_classid: nullable TClassid */;
2549 val
* var
/* : Iterator[nullable Object] */;
2550 short int var1
/* : Bool */;
2551 val
* var2
/* : nullable Object */;
2552 val
* var_n
/* var n: Object */;
2553 short int var3
/* : Bool */;
2556 val
* var4
/* : ANodes[TId] */;
2557 val
* var5
/* : null */;
2558 short int var6
/* : Bool */;
2561 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AQualified__empty_init
]))(self
) /* empty_init on <self:AQualified>*/;
2562 var
= ((val
* (*)(val
*))(var_n_id
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_id
) /* iterator on <var_n_id:Collection[Object]>*/;
2564 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
2566 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
2568 /* <var_n:Object> isa TId */
2569 cltype
= type_parser_nodes__TId
.color
;
2570 idtype
= type_parser_nodes__TId
.id
;
2571 if(cltype
>= var_n
->type
->table_size
) {
2574 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
2577 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11456);
2580 var4
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2582 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11457);
2585 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[TId]>*/;
2586 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(TId)>*/;
2587 CONTINUE_label
: (void)0;
2588 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
2590 BREAK_label
: (void)0;
2591 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_n_classid
; /* _n_classid on <self:AQualified> */
2593 if (var_n_classid
== NULL
) {
2594 var6
= 0; /* is null */
2596 var6
= 1; /* arg is null and recv is not */
2599 ((void (*)(val
*, val
*))(var_n_classid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_classid
, self
) /* parent= on <var_n_classid:nullable TClassid(TClassid)>*/;
2604 /* method parser_prod#AQualified#init_aqualified for (self: Object, Collection[Object], nullable TClassid) */
2605 void VIRTUAL_parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
2606 parser_prod__AQualified__init_aqualified(self
, p0
, p1
);
2609 /* method parser_prod#AQualified#replace_child for (self: AQualified, ANode, nullable ANode) */
2610 void parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
2611 val
* var_old_child
/* var old_child: ANode */;
2612 val
* var_new_child
/* var new_child: nullable ANode */;
2613 val
* var
/* : Range[Int] */;
2614 long var1
/* : Int */;
2615 val
* var2
/* : ANodes[TId] */;
2616 long var3
/* : Int */;
2617 val
* var4
/* : Discrete */;
2618 val
* var5
/* : Discrete */;
2619 val
* var6
/* : Iterator[nullable Object] */;
2620 short int var7
/* : Bool */;
2621 val
* var8
/* : nullable Object */;
2622 long var_i
/* var i: Int */;
2623 long var9
/* : Int */;
2624 val
* var10
/* : ANodes[TId] */;
2625 val
* var11
/* : nullable Object */;
2626 short int var12
/* : Bool */;
2627 val
* var13
/* : null */;
2628 short int var14
/* : Bool */;
2629 short int var15
/* : Bool */;
2632 val
* var16
/* : ANodes[TId] */;
2633 val
* var17
/* : ANodes[TId] */;
2634 val
* var18
/* : nullable TClassid */;
2635 short int var19
/* : Bool */;
2636 val
* var20
/* : null */;
2637 short int var21
/* : Bool */;
2638 short int var22
/* : Bool */;
2641 val
* var25
/* : null */;
2644 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
2646 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2648 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11468);
2651 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[TId]>*/;
2652 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
2653 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
2654 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
2655 CHECK_NEW_range__Range(var
);
2656 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
2658 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
2660 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
2661 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
2663 var10
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2664 if (var10
== NULL
) {
2665 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11469);
2668 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[TId]>*/;
2669 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(TId)>*/;
2672 if (var_new_child
== NULL
) {
2673 var14
= 0; /* is null */
2675 var14
= 1; /* arg is null and recv is not */
2678 /* <var_new_child:nullable ANode(ANode)> isa TId */
2679 cltype
= type_parser_nodes__TId
.color
;
2680 idtype
= type_parser_nodes__TId
.id
;
2681 if(cltype
>= var_new_child
->type
->table_size
) {
2684 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2687 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11471);
2690 var16
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2691 if (var16
== NULL
) {
2692 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11472);
2695 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[TId]>*/;
2696 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(TId)>*/;
2698 var17
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2699 if (var17
== NULL
) {
2700 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11475);
2703 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[TId]>*/;
2708 CONTINUE_label
: (void)0;
2709 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
2711 BREAK_label
: (void)0;
2712 var18
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
2713 if (var18
== NULL
) {
2714 var19
= 0; /* <var_old_child:ANode> cannot be null */
2716 var19
= ((short int (*)(val
*, val
*))(var18
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var18
, var_old_child
) /* == on <var18:nullable TClassid>*/;
2720 if (var_new_child
== NULL
) {
2721 var21
= 0; /* is null */
2723 var21
= 1; /* arg is null and recv is not */
2726 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
2727 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
2728 cltype23
= type_parser_nodes__TClassid
.color
;
2729 idtype24
= type_parser_nodes__TClassid
.id
;
2730 if(cltype23
>= var_new_child
->type
->table_size
) {
2733 var22
= var_new_child
->type
->type_table
[cltype23
] == idtype24
;
2736 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11483);
2739 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_new_child
; /* _n_classid on <self:AQualified> */
2742 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var25
; /* _n_classid on <self:AQualified> */
2749 /* method parser_prod#AQualified#replace_child for (self: Object, ANode, nullable ANode) */
2750 void VIRTUAL_parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
2751 parser_prod__AQualified__replace_child(self
, p0
, p1
);
2754 /* method parser_prod#AQualified#n_classid= for (self: AQualified, nullable TClassid) */
2755 void parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
2756 val
* var_node
/* var node: nullable TClassid */;
2757 val
* var
/* : null */;
2758 short int var1
/* : Bool */;
2760 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_node
; /* _n_classid on <self:AQualified> */
2762 if (var_node
== NULL
) {
2763 var1
= 0; /* is null */
2765 var1
= 1; /* arg is null and recv is not */
2768 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TClassid(TClassid)>*/;
2773 /* method parser_prod#AQualified#n_classid= for (self: Object, nullable TClassid) */
2774 void VIRTUAL_parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
2775 parser_prod__AQualified__n_classid_61d(self
, p0
);
2778 /* method parser_prod#AQualified#visit_all for (self: AQualified, Visitor) */
2779 void parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
2780 val
* var_v
/* var v: Visitor */;
2781 val
* var
/* : ANodes[TId] */;
2782 val
* var1
/* : Iterator[nullable Object] */;
2783 short int var2
/* : Bool */;
2784 val
* var3
/* : nullable Object */;
2785 val
* var_n
/* var n: TId */;
2786 val
* var4
/* : nullable TClassid */;
2787 val
* var5
/* : null */;
2788 short int var6
/* : Bool */;
2789 val
* var7
/* : nullable TClassid */;
2791 var
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
2793 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11503);
2796 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[TId]>*/;
2798 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
2800 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
2802 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
2803 CONTINUE_label
: (void)0;
2804 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
2806 BREAK_label
: (void)0;
2807 var4
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
2810 var6
= 0; /* is null */
2812 var6
= 1; /* arg is null and recv is not */
2815 var7
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
2817 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11507);
2820 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
2825 /* method parser_prod#AQualified#visit_all for (self: Object, Visitor) */
2826 void VIRTUAL_parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
2827 parser_prod__AQualified__visit_all(self
, p0
);
2830 /* method parser_prod#ADoc#empty_init for (self: ADoc) */
2831 void parser_prod__ADoc__empty_init(val
* self
) {
2834 /* method parser_prod#ADoc#empty_init for (self: Object) */
2835 void VIRTUAL_parser_prod__ADoc__empty_init(val
* self
) {
2836 parser_prod__ADoc__empty_init(self
);
2839 /* method parser_prod#ADoc#init_adoc for (self: ADoc, Collection[Object]) */
2840 void parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
2841 val
* var_n_comment
/* var n_comment: Collection[Object] */;
2842 val
* var
/* : Iterator[nullable Object] */;
2843 short int var1
/* : Bool */;
2844 val
* var2
/* : nullable Object */;
2845 val
* var_n
/* var n: Object */;
2846 short int var3
/* : Bool */;
2849 val
* var4
/* : ANodes[TComment] */;
2851 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ADoc__empty_init
]))(self
) /* empty_init on <self:ADoc>*/;
2852 var
= ((val
* (*)(val
*))(var_n_comment
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_comment
) /* iterator on <var_n_comment:Collection[Object]>*/;
2854 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
2856 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
2858 /* <var_n:Object> isa TComment */
2859 cltype
= type_parser_nodes__TComment
.color
;
2860 idtype
= type_parser_nodes__TComment
.id
;
2861 if(cltype
>= var_n
->type
->table_size
) {
2864 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
2867 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11520);
2870 var4
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
2872 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11521);
2875 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[TComment]>*/;
2876 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(TComment)>*/;
2877 CONTINUE_label
: (void)0;
2878 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
2880 BREAK_label
: (void)0;
2883 /* method parser_prod#ADoc#init_adoc for (self: Object, Collection[Object]) */
2884 void VIRTUAL_parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
2885 parser_prod__ADoc__init_adoc(self
, p0
);
2888 /* method parser_prod#ADoc#replace_child for (self: ADoc, ANode, nullable ANode) */
2889 void parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
2890 val
* var_old_child
/* var old_child: ANode */;
2891 val
* var_new_child
/* var new_child: nullable ANode */;
2892 val
* var
/* : Range[Int] */;
2893 long var1
/* : Int */;
2894 val
* var2
/* : ANodes[TComment] */;
2895 long var3
/* : Int */;
2896 val
* var4
/* : Discrete */;
2897 val
* var5
/* : Discrete */;
2898 val
* var6
/* : Iterator[nullable Object] */;
2899 short int var7
/* : Bool */;
2900 val
* var8
/* : nullable Object */;
2901 long var_i
/* var i: Int */;
2902 long var9
/* : Int */;
2903 val
* var10
/* : ANodes[TComment] */;
2904 val
* var11
/* : nullable Object */;
2905 short int var12
/* : Bool */;
2906 val
* var13
/* : null */;
2907 short int var14
/* : Bool */;
2908 short int var15
/* : Bool */;
2911 val
* var16
/* : ANodes[TComment] */;
2912 val
* var17
/* : ANodes[TComment] */;
2915 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
2917 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
2919 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11528);
2922 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[TComment]>*/;
2923 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
2924 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
2925 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
2926 CHECK_NEW_range__Range(var
);
2927 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
2929 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
2931 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
2932 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
2934 var10
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
2935 if (var10
== NULL
) {
2936 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11529);
2939 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[TComment]>*/;
2940 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(TComment)>*/;
2943 if (var_new_child
== NULL
) {
2944 var14
= 0; /* is null */
2946 var14
= 1; /* arg is null and recv is not */
2949 /* <var_new_child:nullable ANode(ANode)> isa TComment */
2950 cltype
= type_parser_nodes__TComment
.color
;
2951 idtype
= type_parser_nodes__TComment
.id
;
2952 if(cltype
>= var_new_child
->type
->table_size
) {
2955 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2958 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11531);
2961 var16
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
2962 if (var16
== NULL
) {
2963 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11532);
2966 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[TComment]>*/;
2967 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(TComment)>*/;
2969 var17
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
2970 if (var17
== NULL
) {
2971 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11535);
2974 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[TComment]>*/;
2979 CONTINUE_label
: (void)0;
2980 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
2982 BREAK_label
: (void)0;
2985 /* method parser_prod#ADoc#replace_child for (self: Object, ANode, nullable ANode) */
2986 void VIRTUAL_parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
2987 parser_prod__ADoc__replace_child(self
, p0
, p1
);
2990 /* method parser_prod#ADoc#visit_all for (self: ADoc, Visitor) */
2991 void parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
2992 val
* var_v
/* var v: Visitor */;
2993 val
* var
/* : ANodes[TComment] */;
2994 val
* var1
/* : Iterator[nullable Object] */;
2995 short int var2
/* : Bool */;
2996 val
* var3
/* : nullable Object */;
2997 val
* var_n
/* var n: TComment */;
2999 var
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
3001 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_comment", "src/parser/parser_prod.nit", 11546);
3004 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[TComment]>*/;
3006 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
3008 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
3010 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3011 CONTINUE_label
: (void)0;
3012 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
3014 BREAK_label
: (void)0;
3017 /* method parser_prod#ADoc#visit_all for (self: Object, Visitor) */
3018 void VIRTUAL_parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
3019 parser_prod__ADoc__visit_all(self
, p0
);
3022 /* method parser_prod#AAnnotations#empty_init for (self: AAnnotations) */
3023 void parser_prod__AAnnotations__empty_init(val
* self
) {
3026 /* method parser_prod#AAnnotations#empty_init for (self: Object) */
3027 void VIRTUAL_parser_prod__AAnnotations__empty_init(val
* self
) {
3028 parser_prod__AAnnotations__empty_init(self
);
3031 /* method parser_prod#AAnnotations#init_aannotations for (self: AAnnotations, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
3032 void parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
3033 val
* var_n_at
/* var n_at: nullable TAt */;
3034 val
* var_n_opar
/* var n_opar: nullable TOpar */;
3035 val
* var_n_items
/* var n_items: Collection[Object] */;
3036 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
3037 val
* var
/* : null */;
3038 short int var1
/* : Bool */;
3039 val
* var2
/* : null */;
3040 short int var3
/* : Bool */;
3041 val
* var4
/* : Iterator[nullable Object] */;
3042 short int var5
/* : Bool */;
3043 val
* var6
/* : nullable Object */;
3044 val
* var_n
/* var n: Object */;
3045 short int var7
/* : Bool */;
3048 val
* var8
/* : ANodes[AAnnotation] */;
3049 val
* var9
/* : null */;
3050 short int var10
/* : Bool */;
3055 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAnnotations__empty_init
]))(self
) /* empty_init on <self:AAnnotations>*/;
3056 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_n_at
; /* _n_at on <self:AAnnotations> */
3058 if (var_n_at
== NULL
) {
3059 var1
= 0; /* is null */
3061 var1
= 1; /* arg is null and recv is not */
3064 ((void (*)(val
*, val
*))(var_n_at
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_at
, self
) /* parent= on <var_n_at:nullable TAt(TAt)>*/;
3067 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotations> */
3069 if (var_n_opar
== NULL
) {
3070 var3
= 0; /* is null */
3072 var3
= 1; /* arg is null and recv is not */
3075 ((void (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_opar
, self
) /* parent= on <var_n_opar:nullable TOpar(TOpar)>*/;
3078 var4
= ((val
* (*)(val
*))(var_n_items
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_items
) /* iterator on <var_n_items:Collection[Object]>*/;
3080 var5
= ((short int (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var4
) /* is_ok on <var4:Iterator[nullable Object]>*/;
3082 var6
= ((val
* (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var4
) /* item on <var4:Iterator[nullable Object]>*/;
3084 /* <var_n:Object> isa AAnnotation */
3085 cltype
= type_parser_nodes__AAnnotation
.color
;
3086 idtype
= type_parser_nodes__AAnnotation
.id
;
3087 if(cltype
>= var_n
->type
->table_size
) {
3090 var7
= var_n
->type
->type_table
[cltype
] == idtype
;
3093 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11571);
3096 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3098 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11572);
3101 ((void (*)(val
*, val
*))(var8
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var8
, var_n
) /* add on <var8:ANodes[AAnnotation]>*/;
3102 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AAnnotation)>*/;
3103 CONTINUE_label
: (void)0;
3104 ((void (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var4
) /* next on <var4:Iterator[nullable Object]>*/;
3106 BREAK_label
: (void)0;
3107 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotations> */
3109 if (var_n_cpar
== NULL
) {
3110 var10
= 0; /* is null */
3112 var10
= 1; /* arg is null and recv is not */
3115 ((void (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_cpar
, self
) /* parent= on <var_n_cpar:nullable TCpar(TCpar)>*/;
3120 /* method parser_prod#AAnnotations#init_aannotations for (self: Object, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
3121 void VIRTUAL_parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
3122 parser_prod__AAnnotations__init_aannotations(self
, p0
, p1
, p2
, p3
);
3125 /* method parser_prod#AAnnotations#replace_child for (self: AAnnotations, ANode, nullable ANode) */
3126 void parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
3127 val
* var_old_child
/* var old_child: ANode */;
3128 val
* var_new_child
/* var new_child: nullable ANode */;
3129 val
* var
/* : nullable TAt */;
3130 short int var1
/* : Bool */;
3131 val
* var2
/* : null */;
3132 short int var3
/* : Bool */;
3133 short int var4
/* : Bool */;
3136 val
* var5
/* : null */;
3137 val
* var6
/* : nullable TOpar */;
3138 short int var7
/* : Bool */;
3139 val
* var8
/* : null */;
3140 short int var9
/* : Bool */;
3141 short int var10
/* : Bool */;
3144 val
* var13
/* : null */;
3145 val
* var14
/* : Range[Int] */;
3146 long var15
/* : Int */;
3147 val
* var16
/* : ANodes[AAnnotation] */;
3148 long var17
/* : Int */;
3149 val
* var18
/* : Discrete */;
3150 val
* var19
/* : Discrete */;
3151 val
* var20
/* : Iterator[nullable Object] */;
3152 short int var21
/* : Bool */;
3153 val
* var22
/* : nullable Object */;
3154 long var_i
/* var i: Int */;
3155 long var23
/* : Int */;
3156 val
* var24
/* : ANodes[AAnnotation] */;
3157 val
* var25
/* : nullable Object */;
3158 short int var26
/* : Bool */;
3159 val
* var27
/* : null */;
3160 short int var28
/* : Bool */;
3161 short int var29
/* : Bool */;
3164 val
* var32
/* : ANodes[AAnnotation] */;
3165 val
* var33
/* : ANodes[AAnnotation] */;
3166 val
* var34
/* : nullable TCpar */;
3167 short int var35
/* : Bool */;
3168 val
* var36
/* : null */;
3169 short int var37
/* : Bool */;
3170 short int var38
/* : Bool */;
3173 val
* var41
/* : null */;
3176 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
3178 var1
= 0; /* <var_old_child:ANode> cannot be null */
3180 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable TAt>*/;
3184 if (var_new_child
== NULL
) {
3185 var3
= 0; /* is null */
3187 var3
= 1; /* arg is null and recv is not */
3190 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3191 /* <var_new_child:nullable ANode(ANode)> isa TAt */
3192 cltype
= type_parser_nodes__TAt
.color
;
3193 idtype
= type_parser_nodes__TAt
.id
;
3194 if(cltype
>= var_new_child
->type
->table_size
) {
3197 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3200 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11586);
3203 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_new_child
; /* _n_at on <self:AAnnotations> */
3206 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var5
; /* _n_at on <self:AAnnotations> */
3211 var6
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
3213 var7
= 0; /* <var_old_child:ANode> cannot be null */
3215 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TOpar>*/;
3219 if (var_new_child
== NULL
) {
3220 var9
= 0; /* is null */
3222 var9
= 1; /* arg is null and recv is not */
3225 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3226 /* <var_new_child:nullable ANode(ANode)> isa TOpar */
3227 cltype11
= type_parser_nodes__TOpar
.color
;
3228 idtype12
= type_parser_nodes__TOpar
.id
;
3229 if(cltype11
>= var_new_child
->type
->table_size
) {
3232 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
3235 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11596);
3238 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_new_child
; /* _n_opar on <self:AAnnotations> */
3241 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var13
; /* _n_opar on <self:AAnnotations> */
3246 var14
= NEW_range__Range(&type_range__Rangekernel__Int
);
3248 var16
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3249 if (var16
== NULL
) {
3250 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11603);
3253 var17
= ((long (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var16
) /* length on <var16:ANodes[AAnnotation]>*/;
3254 var18
= BOX_kernel__Int(var15
); /* autobox from Int to Discrete */
3255 var19
= BOX_kernel__Int(var17
); /* autobox from Int to Discrete */
3256 ((void (*)(val
*, val
*, val
*))(var14
->class->vft
[COLOR_range__Range__without_last
]))(var14
, var18
, var19
) /* without_last on <var14:Range[Int]>*/;
3257 CHECK_NEW_range__Range(var14
);
3258 var20
= ((val
* (*)(val
*))(var14
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var14
) /* iterator on <var14:Range[Int]>*/;
3260 var21
= ((short int (*)(val
*))(var20
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var20
) /* is_ok on <var20:Iterator[nullable Object]>*/;
3262 var22
= ((val
* (*)(val
*))(var20
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var20
) /* item on <var20:Iterator[nullable Object]>*/;
3263 var23
= ((struct instance_kernel__Int
*)var22
)->value
; /* autounbox from nullable Object to Int */;
3265 var24
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3266 if (var24
== NULL
) {
3267 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11604);
3270 var25
= ((val
* (*)(val
*, long))(var24
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var24
, var_i
) /* [] on <var24:ANodes[AAnnotation]>*/;
3271 var26
= ((short int (*)(val
*, val
*))(var25
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var25
, var_old_child
) /* == on <var25:nullable Object(AAnnotation)>*/;
3274 if (var_new_child
== NULL
) {
3275 var28
= 0; /* is null */
3277 var28
= 1; /* arg is null and recv is not */
3280 /* <var_new_child:nullable ANode(ANode)> isa AAnnotation */
3281 cltype30
= type_parser_nodes__AAnnotation
.color
;
3282 idtype31
= type_parser_nodes__AAnnotation
.id
;
3283 if(cltype30
>= var_new_child
->type
->table_size
) {
3286 var29
= var_new_child
->type
->type_table
[cltype30
] == idtype31
;
3289 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11606);
3292 var32
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3293 if (var32
== NULL
) {
3294 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11607);
3297 ((void (*)(val
*, long, val
*))(var32
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var32
, var_i
, var_new_child
) /* []= on <var32:ANodes[AAnnotation]>*/;
3298 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(AAnnotation)>*/;
3300 var33
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3301 if (var33
== NULL
) {
3302 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11610);
3305 ((void (*)(val
*, long))(var33
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var33
, var_i
) /* remove_at on <var33:ANodes[AAnnotation]>*/;
3310 CONTINUE_label
: (void)0;
3311 ((void (*)(val
*))(var20
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var20
) /* next on <var20:Iterator[nullable Object]>*/;
3313 BREAK_label
: (void)0;
3314 var34
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
3315 if (var34
== NULL
) {
3316 var35
= 0; /* <var_old_child:ANode> cannot be null */
3318 var35
= ((short int (*)(val
*, val
*))(var34
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var34
, var_old_child
) /* == on <var34:nullable TCpar>*/;
3322 if (var_new_child
== NULL
) {
3323 var37
= 0; /* is null */
3325 var37
= 1; /* arg is null and recv is not */
3328 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3329 /* <var_new_child:nullable ANode(ANode)> isa TCpar */
3330 cltype39
= type_parser_nodes__TCpar
.color
;
3331 idtype40
= type_parser_nodes__TCpar
.id
;
3332 if(cltype39
>= var_new_child
->type
->table_size
) {
3335 var38
= var_new_child
->type
->type_table
[cltype39
] == idtype40
;
3338 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11618);
3341 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_new_child
; /* _n_cpar on <self:AAnnotations> */
3344 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var41
; /* _n_cpar on <self:AAnnotations> */
3351 /* method parser_prod#AAnnotations#replace_child for (self: Object, ANode, nullable ANode) */
3352 void VIRTUAL_parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
3353 parser_prod__AAnnotations__replace_child(self
, p0
, p1
);
3356 /* method parser_prod#AAnnotations#n_at= for (self: AAnnotations, nullable TAt) */
3357 void parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
3358 val
* var_node
/* var node: nullable TAt */;
3359 val
* var
/* : null */;
3360 short int var1
/* : Bool */;
3362 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_node
; /* _n_at on <self:AAnnotations> */
3364 if (var_node
== NULL
) {
3365 var1
= 0; /* is null */
3367 var1
= 1; /* arg is null and recv is not */
3370 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TAt(TAt)>*/;
3375 /* method parser_prod#AAnnotations#n_at= for (self: Object, nullable TAt) */
3376 void VIRTUAL_parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
3377 parser_prod__AAnnotations__n_at_61d(self
, p0
);
3380 /* method parser_prod#AAnnotations#n_opar= for (self: AAnnotations, nullable TOpar) */
3381 void parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
3382 val
* var_node
/* var node: nullable TOpar */;
3383 val
* var
/* : null */;
3384 short int var1
/* : Bool */;
3386 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotations> */
3388 if (var_node
== NULL
) {
3389 var1
= 0; /* is null */
3391 var1
= 1; /* arg is null and recv is not */
3394 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TOpar(TOpar)>*/;
3399 /* method parser_prod#AAnnotations#n_opar= for (self: Object, nullable TOpar) */
3400 void VIRTUAL_parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
3401 parser_prod__AAnnotations__n_opar_61d(self
, p0
);
3404 /* method parser_prod#AAnnotations#n_cpar= for (self: AAnnotations, nullable TCpar) */
3405 void parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
3406 val
* var_node
/* var node: nullable TCpar */;
3407 val
* var
/* : null */;
3408 short int var1
/* : Bool */;
3410 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotations> */
3412 if (var_node
== NULL
) {
3413 var1
= 0; /* is null */
3415 var1
= 1; /* arg is null and recv is not */
3418 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TCpar(TCpar)>*/;
3423 /* method parser_prod#AAnnotations#n_cpar= for (self: Object, nullable TCpar) */
3424 void VIRTUAL_parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
3425 parser_prod__AAnnotations__n_cpar_61d(self
, p0
);
3428 /* method parser_prod#AAnnotations#visit_all for (self: AAnnotations, Visitor) */
3429 void parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
3430 val
* var_v
/* var v: Visitor */;
3431 val
* var
/* : nullable TAt */;
3432 val
* var1
/* : null */;
3433 short int var2
/* : Bool */;
3434 val
* var3
/* : nullable TAt */;
3435 val
* var4
/* : nullable TOpar */;
3436 val
* var5
/* : null */;
3437 short int var6
/* : Bool */;
3438 val
* var7
/* : nullable TOpar */;
3439 val
* var8
/* : ANodes[AAnnotation] */;
3440 val
* var9
/* : Iterator[nullable Object] */;
3441 short int var10
/* : Bool */;
3442 val
* var11
/* : nullable Object */;
3443 val
* var_n
/* var n: AAnnotation */;
3444 val
* var12
/* : nullable TCpar */;
3445 val
* var13
/* : null */;
3446 short int var14
/* : Bool */;
3447 val
* var15
/* : nullable TCpar */;
3449 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
3452 var2
= 0; /* is null */
3454 var2
= 1; /* arg is null and recv is not */
3457 var3
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
3459 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11653);
3462 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
3465 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
3468 var6
= 0; /* is null */
3470 var6
= 1; /* arg is null and recv is not */
3473 var7
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
3475 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11656);
3478 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
3481 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
3483 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_items", "src/parser/parser_prod.nit", 11658);
3486 var9
= ((val
* (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var8
) /* iterator on <var8:ANodes[AAnnotation]>*/;
3488 var10
= ((short int (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var9
) /* is_ok on <var9:Iterator[nullable Object]>*/;
3490 var11
= ((val
* (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var9
) /* item on <var9:Iterator[nullable Object]>*/;
3492 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3493 CONTINUE_label
: (void)0;
3494 ((void (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var9
) /* next on <var9:Iterator[nullable Object]>*/;
3496 BREAK_label
: (void)0;
3497 var12
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
3499 if (var12
== NULL
) {
3500 var14
= 0; /* is null */
3502 var14
= 1; /* arg is null and recv is not */
3505 var15
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
3506 if (var15
== NULL
) {
3507 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11662);
3510 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
3515 /* method parser_prod#AAnnotations#visit_all for (self: Object, Visitor) */
3516 void VIRTUAL_parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
3517 parser_prod__AAnnotations__visit_all(self
, p0
);
3520 /* method parser_prod#AAnnotation#empty_init for (self: AAnnotation) */
3521 void parser_prod__AAnnotation__empty_init(val
* self
) {
3524 /* method parser_prod#AAnnotation#empty_init for (self: Object) */
3525 void VIRTUAL_parser_prod__AAnnotation__empty_init(val
* self
) {
3526 parser_prod__AAnnotation__empty_init(self
);
3529 /* method parser_prod#AAnnotation#init_aannotation for (self: AAnnotation, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
3530 void parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3531 val
* var_n_atid
/* var n_atid: nullable AAtid */;
3532 val
* var_n_opar
/* var n_opar: nullable TOpar */;
3533 val
* var_n_args
/* var n_args: Collection[Object] */;
3534 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
3535 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3536 val
* var
/* : null */;
3537 short int var1
/* : Bool */;
3538 val
* var2
/* : Iterator[nullable Object] */;
3539 short int var3
/* : Bool */;
3540 val
* var4
/* : nullable Object */;
3541 val
* var_n
/* var n: Object */;
3542 short int var5
/* : Bool */;
3545 val
* var6
/* : ANodes[AAtArg] */;
3546 val
* var7
/* : null */;
3547 short int var8
/* : Bool */;
3548 val
* var9
/* : null */;
3549 short int var10
/* : Bool */;
3554 var_n_annotations
= p4
;
3555 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAnnotation__empty_init
]))(self
) /* empty_init on <self:AAnnotation>*/;
3556 if (var_n_atid
== NULL
) {
3557 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11678);
3560 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_n_atid
; /* _n_atid on <self:AAnnotation> */
3561 if (var_n_atid
== NULL
) {
3562 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11679);
3565 ((void (*)(val
*, val
*))(var_n_atid
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_atid
, self
) /* parent= on <var_n_atid:nullable AAtid>*/;
3567 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotation> */
3569 if (var_n_opar
== NULL
) {
3570 var1
= 0; /* is null */
3572 var1
= 1; /* arg is null and recv is not */
3575 ((void (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_opar
, self
) /* parent= on <var_n_opar:nullable TOpar(TOpar)>*/;
3578 var2
= ((val
* (*)(val
*))(var_n_args
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_args
) /* iterator on <var_n_args:Collection[Object]>*/;
3580 var3
= ((short int (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var2
) /* is_ok on <var2:Iterator[nullable Object]>*/;
3582 var4
= ((val
* (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var2
) /* item on <var2:Iterator[nullable Object]>*/;
3584 /* <var_n:Object> isa AAtArg */
3585 cltype
= type_parser_nodes__AAtArg
.color
;
3586 idtype
= type_parser_nodes__AAtArg
.id
;
3587 if(cltype
>= var_n
->type
->table_size
) {
3590 var5
= var_n
->type
->type_table
[cltype
] == idtype
;
3593 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11685);
3596 var6
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3598 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11686);
3601 ((void (*)(val
*, val
*))(var6
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var6
, var_n
) /* add on <var6:ANodes[AAtArg]>*/;
3602 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AAtArg)>*/;
3603 CONTINUE_label
: (void)0;
3604 ((void (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var2
) /* next on <var2:Iterator[nullable Object]>*/;
3606 BREAK_label
: (void)0;
3607 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotation> */
3609 if (var_n_cpar
== NULL
) {
3610 var8
= 0; /* is null */
3612 var8
= 1; /* arg is null and recv is not */
3615 ((void (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_cpar
, self
) /* parent= on <var_n_cpar:nullable TCpar(TCpar)>*/;
3618 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAnnotation> */
3620 if (var_n_annotations
== NULL
) {
3621 var10
= 0; /* is null */
3623 var10
= 1; /* arg is null and recv is not */
3626 ((void (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_annotations
, self
) /* parent= on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
3631 /* method parser_prod#AAnnotation#init_aannotation for (self: Object, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
3632 void VIRTUAL_parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
3633 parser_prod__AAnnotation__init_aannotation(self
, p0
, p1
, p2
, p3
, p4
);
3636 /* method parser_prod#AAnnotation#replace_child for (self: AAnnotation, ANode, nullable ANode) */
3637 void parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
3638 val
* var_old_child
/* var old_child: ANode */;
3639 val
* var_new_child
/* var new_child: nullable ANode */;
3640 val
* var
/* : AAtid */;
3641 short int var1
/* : Bool */;
3642 val
* var2
/* : null */;
3643 short int var3
/* : Bool */;
3644 short int var4
/* : Bool */;
3647 val
* var5
/* : nullable TOpar */;
3648 short int var6
/* : Bool */;
3649 val
* var7
/* : null */;
3650 short int var8
/* : Bool */;
3651 short int var9
/* : Bool */;
3654 val
* var12
/* : null */;
3655 val
* var13
/* : Range[Int] */;
3656 long var14
/* : Int */;
3657 val
* var15
/* : ANodes[AAtArg] */;
3658 long var16
/* : Int */;
3659 val
* var17
/* : Discrete */;
3660 val
* var18
/* : Discrete */;
3661 val
* var19
/* : Iterator[nullable Object] */;
3662 short int var20
/* : Bool */;
3663 val
* var21
/* : nullable Object */;
3664 long var_i
/* var i: Int */;
3665 long var22
/* : Int */;
3666 val
* var23
/* : ANodes[AAtArg] */;
3667 val
* var24
/* : nullable Object */;
3668 short int var25
/* : Bool */;
3669 val
* var26
/* : null */;
3670 short int var27
/* : Bool */;
3671 short int var28
/* : Bool */;
3674 val
* var31
/* : ANodes[AAtArg] */;
3675 val
* var32
/* : ANodes[AAtArg] */;
3676 val
* var33
/* : nullable TCpar */;
3677 short int var34
/* : Bool */;
3678 val
* var35
/* : null */;
3679 short int var36
/* : Bool */;
3680 short int var37
/* : Bool */;
3683 val
* var40
/* : null */;
3684 val
* var41
/* : nullable AAnnotations */;
3685 short int var42
/* : Bool */;
3686 val
* var43
/* : null */;
3687 short int var44
/* : Bool */;
3688 short int var45
/* : Bool */;
3691 val
* var48
/* : null */;
3694 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
3696 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_atid", "src/parser/parser_prod.nit", 11701);
3699 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AAtid>*/;
3702 if (var_new_child
== NULL
) {
3703 var3
= 0; /* is null */
3705 var3
= 1; /* arg is null and recv is not */
3708 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3709 /* <var_new_child:nullable ANode(ANode)> isa AAtid */
3710 cltype
= type_parser_nodes__AAtid
.color
;
3711 idtype
= type_parser_nodes__AAtid
.id
;
3712 if(cltype
>= var_new_child
->type
->table_size
) {
3715 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3718 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11704);
3721 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_new_child
; /* _n_atid on <self:AAnnotation> */
3723 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11707);
3729 var5
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
3731 var6
= 0; /* <var_old_child:ANode> cannot be null */
3733 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable TOpar>*/;
3737 if (var_new_child
== NULL
) {
3738 var8
= 0; /* is null */
3740 var8
= 1; /* arg is null and recv is not */
3743 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3744 /* <var_new_child:nullable ANode(ANode)> isa TOpar */
3745 cltype10
= type_parser_nodes__TOpar
.color
;
3746 idtype11
= type_parser_nodes__TOpar
.id
;
3747 if(cltype10
>= var_new_child
->type
->table_size
) {
3750 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
3753 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11714);
3756 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_new_child
; /* _n_opar on <self:AAnnotation> */
3759 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var12
; /* _n_opar on <self:AAnnotation> */
3764 var13
= NEW_range__Range(&type_range__Rangekernel__Int
);
3766 var15
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3767 if (var15
== NULL
) {
3768 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11721);
3771 var16
= ((long (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var15
) /* length on <var15:ANodes[AAtArg]>*/;
3772 var17
= BOX_kernel__Int(var14
); /* autobox from Int to Discrete */
3773 var18
= BOX_kernel__Int(var16
); /* autobox from Int to Discrete */
3774 ((void (*)(val
*, val
*, val
*))(var13
->class->vft
[COLOR_range__Range__without_last
]))(var13
, var17
, var18
) /* without_last on <var13:Range[Int]>*/;
3775 CHECK_NEW_range__Range(var13
);
3776 var19
= ((val
* (*)(val
*))(var13
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var13
) /* iterator on <var13:Range[Int]>*/;
3778 var20
= ((short int (*)(val
*))(var19
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var19
) /* is_ok on <var19:Iterator[nullable Object]>*/;
3780 var21
= ((val
* (*)(val
*))(var19
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var19
) /* item on <var19:Iterator[nullable Object]>*/;
3781 var22
= ((struct instance_kernel__Int
*)var21
)->value
; /* autounbox from nullable Object to Int */;
3783 var23
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3784 if (var23
== NULL
) {
3785 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11722);
3788 var24
= ((val
* (*)(val
*, long))(var23
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var23
, var_i
) /* [] on <var23:ANodes[AAtArg]>*/;
3789 var25
= ((short int (*)(val
*, val
*))(var24
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var24
, var_old_child
) /* == on <var24:nullable Object(AAtArg)>*/;
3792 if (var_new_child
== NULL
) {
3793 var27
= 0; /* is null */
3795 var27
= 1; /* arg is null and recv is not */
3798 /* <var_new_child:nullable ANode(ANode)> isa AAtArg */
3799 cltype29
= type_parser_nodes__AAtArg
.color
;
3800 idtype30
= type_parser_nodes__AAtArg
.id
;
3801 if(cltype29
>= var_new_child
->type
->table_size
) {
3804 var28
= var_new_child
->type
->type_table
[cltype29
] == idtype30
;
3807 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11724);
3810 var31
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3811 if (var31
== NULL
) {
3812 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11725);
3815 ((void (*)(val
*, long, val
*))(var31
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var31
, var_i
, var_new_child
) /* []= on <var31:ANodes[AAtArg]>*/;
3816 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(AAtArg)>*/;
3818 var32
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3819 if (var32
== NULL
) {
3820 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11728);
3823 ((void (*)(val
*, long))(var32
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var32
, var_i
) /* remove_at on <var32:ANodes[AAtArg]>*/;
3828 CONTINUE_label
: (void)0;
3829 ((void (*)(val
*))(var19
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var19
) /* next on <var19:Iterator[nullable Object]>*/;
3831 BREAK_label
: (void)0;
3832 var33
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
3833 if (var33
== NULL
) {
3834 var34
= 0; /* <var_old_child:ANode> cannot be null */
3836 var34
= ((short int (*)(val
*, val
*))(var33
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var33
, var_old_child
) /* == on <var33:nullable TCpar>*/;
3840 if (var_new_child
== NULL
) {
3841 var36
= 0; /* is null */
3843 var36
= 1; /* arg is null and recv is not */
3846 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3847 /* <var_new_child:nullable ANode(ANode)> isa TCpar */
3848 cltype38
= type_parser_nodes__TCpar
.color
;
3849 idtype39
= type_parser_nodes__TCpar
.id
;
3850 if(cltype38
>= var_new_child
->type
->table_size
) {
3853 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
3856 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11736);
3859 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_new_child
; /* _n_cpar on <self:AAnnotation> */
3862 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var40
; /* _n_cpar on <self:AAnnotation> */
3867 var41
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
3868 if (var41
== NULL
) {
3869 var42
= 0; /* <var_old_child:ANode> cannot be null */
3871 var42
= ((short int (*)(val
*, val
*))(var41
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var41
, var_old_child
) /* == on <var41:nullable AAnnotations>*/;
3875 if (var_new_child
== NULL
) {
3876 var44
= 0; /* is null */
3878 var44
= 1; /* arg is null and recv is not */
3881 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
3882 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
3883 cltype46
= type_parser_nodes__AAnnotations
.color
;
3884 idtype47
= type_parser_nodes__AAnnotations
.id
;
3885 if(cltype46
>= var_new_child
->type
->table_size
) {
3888 var45
= var_new_child
->type
->type_table
[cltype46
] == idtype47
;
3891 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11746);
3894 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AAnnotation> */
3897 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var48
; /* _n_annotations on <self:AAnnotation> */
3904 /* method parser_prod#AAnnotation#replace_child for (self: Object, ANode, nullable ANode) */
3905 void VIRTUAL_parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
3906 parser_prod__AAnnotation__replace_child(self
, p0
, p1
);
3909 /* method parser_prod#AAnnotation#n_atid= for (self: AAnnotation, AAtid) */
3910 void parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
3911 val
* var_node
/* var node: AAtid */;
3913 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_node
; /* _n_atid on <self:AAnnotation> */
3914 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AAtid>*/;
3917 /* method parser_prod#AAnnotation#n_atid= for (self: Object, AAtid) */
3918 void VIRTUAL_parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
3919 parser_prod__AAnnotation__n_atid_61d(self
, p0
);
3922 /* method parser_prod#AAnnotation#n_opar= for (self: AAnnotation, nullable TOpar) */
3923 void parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
3924 val
* var_node
/* var node: nullable TOpar */;
3925 val
* var
/* : null */;
3926 short int var1
/* : Bool */;
3928 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotation> */
3930 if (var_node
== NULL
) {
3931 var1
= 0; /* is null */
3933 var1
= 1; /* arg is null and recv is not */
3936 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TOpar(TOpar)>*/;
3941 /* method parser_prod#AAnnotation#n_opar= for (self: Object, nullable TOpar) */
3942 void VIRTUAL_parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
3943 parser_prod__AAnnotation__n_opar_61d(self
, p0
);
3946 /* method parser_prod#AAnnotation#n_cpar= for (self: AAnnotation, nullable TCpar) */
3947 void parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
3948 val
* var_node
/* var node: nullable TCpar */;
3949 val
* var
/* : null */;
3950 short int var1
/* : Bool */;
3952 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotation> */
3954 if (var_node
== NULL
) {
3955 var1
= 0; /* is null */
3957 var1
= 1; /* arg is null and recv is not */
3960 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TCpar(TCpar)>*/;
3965 /* method parser_prod#AAnnotation#n_cpar= for (self: Object, nullable TCpar) */
3966 void VIRTUAL_parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
3967 parser_prod__AAnnotation__n_cpar_61d(self
, p0
);
3970 /* method parser_prod#AAnnotation#n_annotations= for (self: AAnnotation, nullable AAnnotations) */
3971 void parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
3972 val
* var_node
/* var node: nullable AAnnotations */;
3973 val
* var
/* : null */;
3974 short int var1
/* : Bool */;
3976 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAnnotation> */
3978 if (var_node
== NULL
) {
3979 var1
= 0; /* is null */
3981 var1
= 1; /* arg is null and recv is not */
3984 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
3989 /* method parser_prod#AAnnotation#n_annotations= for (self: Object, nullable AAnnotations) */
3990 void VIRTUAL_parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
3991 parser_prod__AAnnotation__n_annotations_61d(self
, p0
);
3994 /* method parser_prod#AAnnotation#visit_all for (self: AAnnotation, Visitor) */
3995 void parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
3996 val
* var_v
/* var v: Visitor */;
3997 val
* var
/* : AAtid */;
3998 val
* var1
/* : nullable TOpar */;
3999 val
* var2
/* : null */;
4000 short int var3
/* : Bool */;
4001 val
* var4
/* : nullable TOpar */;
4002 val
* var5
/* : ANodes[AAtArg] */;
4003 val
* var6
/* : Iterator[nullable Object] */;
4004 short int var7
/* : Bool */;
4005 val
* var8
/* : nullable Object */;
4006 val
* var_n
/* var n: AAtArg */;
4007 val
* var9
/* : nullable TCpar */;
4008 val
* var10
/* : null */;
4009 short int var11
/* : Bool */;
4010 val
* var12
/* : nullable TCpar */;
4011 val
* var13
/* : nullable AAnnotations */;
4012 val
* var14
/* : null */;
4013 short int var15
/* : Bool */;
4014 val
* var16
/* : nullable AAnnotations */;
4016 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
4018 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_atid", "src/parser/parser_prod.nit", 11785);
4021 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4022 var1
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
4025 var3
= 0; /* is null */
4027 var3
= 1; /* arg is null and recv is not */
4030 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
4032 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11787);
4035 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
4038 var5
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
4040 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_args", "src/parser/parser_prod.nit", 11789);
4043 var6
= ((val
* (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var5
) /* iterator on <var5:ANodes[AAtArg]>*/;
4045 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
4047 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
4049 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
4050 CONTINUE_label
: (void)0;
4051 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
4053 BREAK_label
: (void)0;
4054 var9
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
4057 var11
= 0; /* is null */
4059 var11
= 1; /* arg is null and recv is not */
4062 var12
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
4063 if (var12
== NULL
) {
4064 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11793);
4067 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var12
) /* enter_visit on <var_v:Visitor>*/;
4070 var13
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
4072 if (var13
== NULL
) {
4073 var15
= 0; /* is null */
4075 var15
= 1; /* arg is null and recv is not */
4078 var16
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
4079 if (var16
== NULL
) {
4080 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11796);
4083 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var16
) /* enter_visit on <var_v:Visitor>*/;
4088 /* method parser_prod#AAnnotation#visit_all for (self: Object, Visitor) */
4089 void VIRTUAL_parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
4090 parser_prod__AAnnotation__visit_all(self
, p0
);
4093 /* method parser_prod#ATypeAtArg#empty_init for (self: ATypeAtArg) */
4094 void parser_prod__ATypeAtArg__empty_init(val
* self
) {
4097 /* method parser_prod#ATypeAtArg#empty_init for (self: Object) */
4098 void VIRTUAL_parser_prod__ATypeAtArg__empty_init(val
* self
) {
4099 parser_prod__ATypeAtArg__empty_init(self
);
4102 /* method parser_prod#ATypeAtArg#init_atypeatarg for (self: ATypeAtArg, nullable AType) */
4103 void parser_prod__ATypeAtArg__init_atypeatarg(val
* self
, val
* p0
) {
4104 val
* var_n_type
/* var n_type: nullable AType */;
4106 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ATypeAtArg__empty_init
]))(self
) /* empty_init on <self:ATypeAtArg>*/;
4107 if (var_n_type
== NULL
) {
4108 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11808);
4111 self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
= var_n_type
; /* _n_type on <self:ATypeAtArg> */
4112 if (var_n_type
== NULL
) {
4113 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11809);
4116 ((void (*)(val
*, val
*))(var_n_type
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_type
, self
) /* parent= on <var_n_type:nullable AType>*/;
4120 /* method parser_prod#ATypeAtArg#init_atypeatarg for (self: Object, nullable AType) */
4121 void VIRTUAL_parser_prod__ATypeAtArg__init_atypeatarg(val
* self
, val
* p0
) {
4122 parser_prod__ATypeAtArg__init_atypeatarg(self
, p0
);
4125 /* method parser_prod#ATypeAtArg#replace_child for (self: ATypeAtArg, ANode, nullable ANode) */
4126 void parser_prod__ATypeAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4127 val
* var_old_child
/* var old_child: ANode */;
4128 val
* var_new_child
/* var new_child: nullable ANode */;
4129 val
* var
/* : AType */;
4130 short int var1
/* : Bool */;
4131 val
* var2
/* : null */;
4132 short int var3
/* : Bool */;
4133 short int var4
/* : Bool */;
4138 var
= self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
; /* _n_type on <self:ATypeAtArg> */
4140 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11814);
4143 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AType>*/;
4146 if (var_new_child
== NULL
) {
4147 var3
= 0; /* is null */
4149 var3
= 1; /* arg is null and recv is not */
4152 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4153 /* <var_new_child:nullable ANode(ANode)> isa AType */
4154 cltype
= type_parser_nodes__AType
.color
;
4155 idtype
= type_parser_nodes__AType
.id
;
4156 if(cltype
>= var_new_child
->type
->table_size
) {
4159 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4162 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11817);
4165 self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
= var_new_child
; /* _n_type on <self:ATypeAtArg> */
4167 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11820);
4175 /* method parser_prod#ATypeAtArg#replace_child for (self: Object, ANode, nullable ANode) */
4176 void VIRTUAL_parser_prod__ATypeAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4177 parser_prod__ATypeAtArg__replace_child(self
, p0
, p1
);
4180 /* method parser_prod#ATypeAtArg#n_type= for (self: ATypeAtArg, AType) */
4181 void parser_prod__ATypeAtArg__n_type_61d(val
* self
, val
* p0
) {
4182 val
* var_node
/* var node: AType */;
4184 self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
= var_node
; /* _n_type on <self:ATypeAtArg> */
4185 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
4188 /* method parser_prod#ATypeAtArg#n_type= for (self: Object, AType) */
4189 void VIRTUAL_parser_prod__ATypeAtArg__n_type_61d(val
* self
, val
* p0
) {
4190 parser_prod__ATypeAtArg__n_type_61d(self
, p0
);
4193 /* method parser_prod#ATypeAtArg#visit_all for (self: ATypeAtArg, Visitor) */
4194 void parser_prod__ATypeAtArg__visit_all(val
* self
, val
* p0
) {
4195 val
* var_v
/* var v: Visitor */;
4196 val
* var
/* : AType */;
4198 var
= self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
; /* _n_type on <self:ATypeAtArg> */
4200 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 11835);
4203 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4206 /* method parser_prod#ATypeAtArg#visit_all for (self: Object, Visitor) */
4207 void VIRTUAL_parser_prod__ATypeAtArg__visit_all(val
* self
, val
* p0
) {
4208 parser_prod__ATypeAtArg__visit_all(self
, p0
);
4211 /* method parser_prod#AExprAtArg#empty_init for (self: AExprAtArg) */
4212 void parser_prod__AExprAtArg__empty_init(val
* self
) {
4215 /* method parser_prod#AExprAtArg#empty_init for (self: Object) */
4216 void VIRTUAL_parser_prod__AExprAtArg__empty_init(val
* self
) {
4217 parser_prod__AExprAtArg__empty_init(self
);
4220 /* method parser_prod#AExprAtArg#init_aexpratarg for (self: AExprAtArg, nullable AExpr) */
4221 void parser_prod__AExprAtArg__init_aexpratarg(val
* self
, val
* p0
) {
4222 val
* var_n_expr
/* var n_expr: nullable AExpr */;
4224 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExprAtArg__empty_init
]))(self
) /* empty_init on <self:AExprAtArg>*/;
4225 if (var_n_expr
== NULL
) {
4226 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11846);
4229 self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AExprAtArg> */
4230 if (var_n_expr
== NULL
) {
4231 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11847);
4234 ((void (*)(val
*, val
*))(var_n_expr
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_expr
, self
) /* parent= on <var_n_expr:nullable AExpr>*/;
4238 /* method parser_prod#AExprAtArg#init_aexpratarg for (self: Object, nullable AExpr) */
4239 void VIRTUAL_parser_prod__AExprAtArg__init_aexpratarg(val
* self
, val
* p0
) {
4240 parser_prod__AExprAtArg__init_aexpratarg(self
, p0
);
4243 /* method parser_prod#AExprAtArg#replace_child for (self: AExprAtArg, ANode, nullable ANode) */
4244 void parser_prod__AExprAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4245 val
* var_old_child
/* var old_child: ANode */;
4246 val
* var_new_child
/* var new_child: nullable ANode */;
4247 val
* var
/* : AExpr */;
4248 short int var1
/* : Bool */;
4249 val
* var2
/* : null */;
4250 short int var3
/* : Bool */;
4251 short int var4
/* : Bool */;
4256 var
= self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
; /* _n_expr on <self:AExprAtArg> */
4258 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_expr", "src/parser/parser_prod.nit", 11852);
4261 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AExpr>*/;
4264 if (var_new_child
== NULL
) {
4265 var3
= 0; /* is null */
4267 var3
= 1; /* arg is null and recv is not */
4270 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4271 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
4272 cltype
= type_parser_nodes__AExpr
.color
;
4273 idtype
= type_parser_nodes__AExpr
.id
;
4274 if(cltype
>= var_new_child
->type
->table_size
) {
4277 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4280 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11855);
4283 self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
= var_new_child
; /* _n_expr on <self:AExprAtArg> */
4285 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11858);
4293 /* method parser_prod#AExprAtArg#replace_child for (self: Object, ANode, nullable ANode) */
4294 void VIRTUAL_parser_prod__AExprAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4295 parser_prod__AExprAtArg__replace_child(self
, p0
, p1
);
4298 /* method parser_prod#AExprAtArg#n_expr= for (self: AExprAtArg, AExpr) */
4299 void parser_prod__AExprAtArg__n_expr_61d(val
* self
, val
* p0
) {
4300 val
* var_node
/* var node: AExpr */;
4302 self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
= var_node
; /* _n_expr on <self:AExprAtArg> */
4303 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AExpr>*/;
4306 /* method parser_prod#AExprAtArg#n_expr= for (self: Object, AExpr) */
4307 void VIRTUAL_parser_prod__AExprAtArg__n_expr_61d(val
* self
, val
* p0
) {
4308 parser_prod__AExprAtArg__n_expr_61d(self
, p0
);
4311 /* method parser_prod#AExprAtArg#visit_all for (self: AExprAtArg, Visitor) */
4312 void parser_prod__AExprAtArg__visit_all(val
* self
, val
* p0
) {
4313 val
* var_v
/* var v: Visitor */;
4314 val
* var
/* : AExpr */;
4316 var
= self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
; /* _n_expr on <self:AExprAtArg> */
4318 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_expr", "src/parser/parser_prod.nit", 11873);
4321 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4324 /* method parser_prod#AExprAtArg#visit_all for (self: Object, Visitor) */
4325 void VIRTUAL_parser_prod__AExprAtArg__visit_all(val
* self
, val
* p0
) {
4326 parser_prod__AExprAtArg__visit_all(self
, p0
);
4329 /* method parser_prod#AAtAtArg#empty_init for (self: AAtAtArg) */
4330 void parser_prod__AAtAtArg__empty_init(val
* self
) {
4333 /* method parser_prod#AAtAtArg#empty_init for (self: Object) */
4334 void VIRTUAL_parser_prod__AAtAtArg__empty_init(val
* self
) {
4335 parser_prod__AAtAtArg__empty_init(self
);
4338 /* method parser_prod#AAtAtArg#init_aatatarg for (self: AAtAtArg, nullable AAnnotations) */
4339 void parser_prod__AAtAtArg__init_aatatarg(val
* self
, val
* p0
) {
4340 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4341 var_n_annotations
= p0
;
4342 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAtAtArg__empty_init
]))(self
) /* empty_init on <self:AAtAtArg>*/;
4343 if (var_n_annotations
== NULL
) {
4344 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11884);
4347 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAtAtArg> */
4348 if (var_n_annotations
== NULL
) {
4349 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11885);
4352 ((void (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_annotations
, self
) /* parent= on <var_n_annotations:nullable AAnnotations>*/;
4356 /* method parser_prod#AAtAtArg#init_aatatarg for (self: Object, nullable AAnnotations) */
4357 void VIRTUAL_parser_prod__AAtAtArg__init_aatatarg(val
* self
, val
* p0
) {
4358 parser_prod__AAtAtArg__init_aatatarg(self
, p0
);
4361 /* method parser_prod#AAtAtArg#replace_child for (self: AAtAtArg, ANode, nullable ANode) */
4362 void parser_prod__AAtAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4363 val
* var_old_child
/* var old_child: ANode */;
4364 val
* var_new_child
/* var new_child: nullable ANode */;
4365 val
* var
/* : nullable AAnnotations */;
4366 short int var1
/* : Bool */;
4367 val
* var2
/* : null */;
4368 short int var3
/* : Bool */;
4369 short int var4
/* : Bool */;
4374 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtAtArg> */
4376 var1
= 0; /* <var_old_child:ANode> cannot be null */
4378 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable AAnnotations>*/;
4382 if (var_new_child
== NULL
) {
4383 var3
= 0; /* is null */
4385 var3
= 1; /* arg is null and recv is not */
4388 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4389 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
4390 cltype
= type_parser_nodes__AAnnotations
.color
;
4391 idtype
= type_parser_nodes__AAnnotations
.id
;
4392 if(cltype
>= var_new_child
->type
->table_size
) {
4395 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4398 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11893);
4401 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AAtAtArg> */
4403 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11896);
4411 /* method parser_prod#AAtAtArg#replace_child for (self: Object, ANode, nullable ANode) */
4412 void VIRTUAL_parser_prod__AAtAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
4413 parser_prod__AAtAtArg__replace_child(self
, p0
, p1
);
4416 /* method parser_prod#AAtAtArg#n_annotations= for (self: AAtAtArg, nullable AAnnotations) */
4417 void parser_prod__AAtAtArg__n_annotations_61d(val
* self
, val
* p0
) {
4418 val
* var_node
/* var node: nullable AAnnotations */;
4420 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAtAtArg> */
4421 if (var_node
== NULL
) {
4422 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11905);
4425 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations>*/;
4429 /* method parser_prod#AAtAtArg#n_annotations= for (self: Object, nullable AAnnotations) */
4430 void VIRTUAL_parser_prod__AAtAtArg__n_annotations_61d(val
* self
, val
* p0
) {
4431 parser_prod__AAtAtArg__n_annotations_61d(self
, p0
);
4434 /* method parser_prod#AAtAtArg#visit_all for (self: AAtAtArg, Visitor) */
4435 void parser_prod__AAtAtArg__visit_all(val
* self
, val
* p0
) {
4436 val
* var_v
/* var v: Visitor */;
4437 val
* var
/* : nullable AAnnotations */;
4439 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtAtArg> */
4440 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4443 /* method parser_prod#AAtAtArg#visit_all for (self: Object, Visitor) */
4444 void VIRTUAL_parser_prod__AAtAtArg__visit_all(val
* self
, val
* p0
) {
4445 parser_prod__AAtAtArg__visit_all(self
, p0
);
4448 /* method parser_prod#AIdAtid#empty_init for (self: AIdAtid) */
4449 void parser_prod__AIdAtid__empty_init(val
* self
) {
4452 /* method parser_prod#AIdAtid#empty_init for (self: Object) */
4453 void VIRTUAL_parser_prod__AIdAtid__empty_init(val
* self
) {
4454 parser_prod__AIdAtid__empty_init(self
);
4457 /* method parser_prod#AIdAtid#init_aidatid for (self: AIdAtid, nullable TId) */
4458 void parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
4459 val
* var_n_id
/* var n_id: nullable TId */;
4461 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AIdAtid__empty_init
]))(self
) /* empty_init on <self:AIdAtid>*/;
4462 if (var_n_id
== NULL
) {
4463 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11922);
4466 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdAtid> */
4467 if (var_n_id
== NULL
) {
4468 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11923);
4471 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TId>*/;
4475 /* method parser_prod#AIdAtid#init_aidatid for (self: Object, nullable TId) */
4476 void VIRTUAL_parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
4477 parser_prod__AIdAtid__init_aidatid(self
, p0
);
4480 /* method parser_prod#AIdAtid#replace_child for (self: AIdAtid, ANode, nullable ANode) */
4481 void parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4482 val
* var_old_child
/* var old_child: ANode */;
4483 val
* var_new_child
/* var new_child: nullable ANode */;
4484 val
* var
/* : Token */;
4485 short int var1
/* : Bool */;
4486 val
* var2
/* : null */;
4487 short int var3
/* : Bool */;
4488 short int var4
/* : Bool */;
4493 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
4495 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11928);
4498 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
4501 if (var_new_child
== NULL
) {
4502 var3
= 0; /* is null */
4504 var3
= 1; /* arg is null and recv is not */
4507 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4508 /* <var_new_child:nullable ANode(ANode)> isa TId */
4509 cltype
= type_parser_nodes__TId
.color
;
4510 idtype
= type_parser_nodes__TId
.id
;
4511 if(cltype
>= var_new_child
->type
->table_size
) {
4514 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4517 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11931);
4520 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AIdAtid> */
4522 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11934);
4530 /* method parser_prod#AIdAtid#replace_child for (self: Object, ANode, nullable ANode) */
4531 void VIRTUAL_parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4532 parser_prod__AIdAtid__replace_child(self
, p0
, p1
);
4535 /* method parser_prod#AIdAtid#n_id= for (self: AIdAtid, Token) */
4536 void parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
4537 val
* var_node
/* var node: Token */;
4539 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AIdAtid> */
4540 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
4543 /* method parser_prod#AIdAtid#n_id= for (self: Object, Token) */
4544 void VIRTUAL_parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
4545 parser_prod__AIdAtid__n_id_61d(self
, p0
);
4548 /* method parser_prod#AIdAtid#visit_all for (self: AIdAtid, Visitor) */
4549 void parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
4550 val
* var_v
/* var v: Visitor */;
4551 val
* var
/* : Token */;
4553 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
4555 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11949);
4558 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4561 /* method parser_prod#AIdAtid#visit_all for (self: Object, Visitor) */
4562 void VIRTUAL_parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
4563 parser_prod__AIdAtid__visit_all(self
, p0
);
4566 /* method parser_prod#AKwexternAtid#empty_init for (self: AKwexternAtid) */
4567 void parser_prod__AKwexternAtid__empty_init(val
* self
) {
4570 /* method parser_prod#AKwexternAtid#empty_init for (self: Object) */
4571 void VIRTUAL_parser_prod__AKwexternAtid__empty_init(val
* self
) {
4572 parser_prod__AKwexternAtid__empty_init(self
);
4575 /* method parser_prod#AKwexternAtid#init_akwexternatid for (self: AKwexternAtid, nullable TKwextern) */
4576 void parser_prod__AKwexternAtid__init_akwexternatid(val
* self
, val
* p0
) {
4577 val
* var_n_id
/* var n_id: nullable TKwextern */;
4579 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AKwexternAtid__empty_init
]))(self
) /* empty_init on <self:AKwexternAtid>*/;
4580 if (var_n_id
== NULL
) {
4581 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11960);
4584 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwexternAtid> */
4585 if (var_n_id
== NULL
) {
4586 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11961);
4589 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TKwextern>*/;
4593 /* method parser_prod#AKwexternAtid#init_akwexternatid for (self: Object, nullable TKwextern) */
4594 void VIRTUAL_parser_prod__AKwexternAtid__init_akwexternatid(val
* self
, val
* p0
) {
4595 parser_prod__AKwexternAtid__init_akwexternatid(self
, p0
);
4598 /* method parser_prod#AKwexternAtid#replace_child for (self: AKwexternAtid, ANode, nullable ANode) */
4599 void parser_prod__AKwexternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4600 val
* var_old_child
/* var old_child: ANode */;
4601 val
* var_new_child
/* var new_child: nullable ANode */;
4602 val
* var
/* : Token */;
4603 short int var1
/* : Bool */;
4604 val
* var2
/* : null */;
4605 short int var3
/* : Bool */;
4606 short int var4
/* : Bool */;
4611 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwexternAtid> */
4613 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11966);
4616 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
4619 if (var_new_child
== NULL
) {
4620 var3
= 0; /* is null */
4622 var3
= 1; /* arg is null and recv is not */
4625 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4626 /* <var_new_child:nullable ANode(ANode)> isa TKwextern */
4627 cltype
= type_parser_nodes__TKwextern
.color
;
4628 idtype
= type_parser_nodes__TKwextern
.id
;
4629 if(cltype
>= var_new_child
->type
->table_size
) {
4632 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4635 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 11969);
4638 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AKwexternAtid> */
4640 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 11972);
4648 /* method parser_prod#AKwexternAtid#replace_child for (self: Object, ANode, nullable ANode) */
4649 void VIRTUAL_parser_prod__AKwexternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4650 parser_prod__AKwexternAtid__replace_child(self
, p0
, p1
);
4653 /* method parser_prod#AKwexternAtid#n_id= for (self: AKwexternAtid, Token) */
4654 void parser_prod__AKwexternAtid__n_id_61d(val
* self
, val
* p0
) {
4655 val
* var_node
/* var node: Token */;
4657 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwexternAtid> */
4658 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
4661 /* method parser_prod#AKwexternAtid#n_id= for (self: Object, Token) */
4662 void VIRTUAL_parser_prod__AKwexternAtid__n_id_61d(val
* self
, val
* p0
) {
4663 parser_prod__AKwexternAtid__n_id_61d(self
, p0
);
4666 /* method parser_prod#AKwexternAtid#visit_all for (self: AKwexternAtid, Visitor) */
4667 void parser_prod__AKwexternAtid__visit_all(val
* self
, val
* p0
) {
4668 val
* var_v
/* var v: Visitor */;
4669 val
* var
/* : Token */;
4671 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwexternAtid> */
4673 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 11987);
4676 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4679 /* method parser_prod#AKwexternAtid#visit_all for (self: Object, Visitor) */
4680 void VIRTUAL_parser_prod__AKwexternAtid__visit_all(val
* self
, val
* p0
) {
4681 parser_prod__AKwexternAtid__visit_all(self
, p0
);
4684 /* method parser_prod#AKwinternAtid#empty_init for (self: AKwinternAtid) */
4685 void parser_prod__AKwinternAtid__empty_init(val
* self
) {
4688 /* method parser_prod#AKwinternAtid#empty_init for (self: Object) */
4689 void VIRTUAL_parser_prod__AKwinternAtid__empty_init(val
* self
) {
4690 parser_prod__AKwinternAtid__empty_init(self
);
4693 /* method parser_prod#AKwinternAtid#init_akwinternatid for (self: AKwinternAtid, nullable TKwintern) */
4694 void parser_prod__AKwinternAtid__init_akwinternatid(val
* self
, val
* p0
) {
4695 val
* var_n_id
/* var n_id: nullable TKwintern */;
4697 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AKwinternAtid__empty_init
]))(self
) /* empty_init on <self:AKwinternAtid>*/;
4698 if (var_n_id
== NULL
) {
4699 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 11998);
4702 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwinternAtid> */
4703 if (var_n_id
== NULL
) {
4704 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 11999);
4707 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TKwintern>*/;
4711 /* method parser_prod#AKwinternAtid#init_akwinternatid for (self: Object, nullable TKwintern) */
4712 void VIRTUAL_parser_prod__AKwinternAtid__init_akwinternatid(val
* self
, val
* p0
) {
4713 parser_prod__AKwinternAtid__init_akwinternatid(self
, p0
);
4716 /* method parser_prod#AKwinternAtid#replace_child for (self: AKwinternAtid, ANode, nullable ANode) */
4717 void parser_prod__AKwinternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4718 val
* var_old_child
/* var old_child: ANode */;
4719 val
* var_new_child
/* var new_child: nullable ANode */;
4720 val
* var
/* : Token */;
4721 short int var1
/* : Bool */;
4722 val
* var2
/* : null */;
4723 short int var3
/* : Bool */;
4724 short int var4
/* : Bool */;
4729 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwinternAtid> */
4731 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12004);
4734 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
4737 if (var_new_child
== NULL
) {
4738 var3
= 0; /* is null */
4740 var3
= 1; /* arg is null and recv is not */
4743 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4744 /* <var_new_child:nullable ANode(ANode)> isa TKwintern */
4745 cltype
= type_parser_nodes__TKwintern
.color
;
4746 idtype
= type_parser_nodes__TKwintern
.id
;
4747 if(cltype
>= var_new_child
->type
->table_size
) {
4750 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4753 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 12007);
4756 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AKwinternAtid> */
4758 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 12010);
4766 /* method parser_prod#AKwinternAtid#replace_child for (self: Object, ANode, nullable ANode) */
4767 void VIRTUAL_parser_prod__AKwinternAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4768 parser_prod__AKwinternAtid__replace_child(self
, p0
, p1
);
4771 /* method parser_prod#AKwinternAtid#n_id= for (self: AKwinternAtid, Token) */
4772 void parser_prod__AKwinternAtid__n_id_61d(val
* self
, val
* p0
) {
4773 val
* var_node
/* var node: Token */;
4775 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwinternAtid> */
4776 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
4779 /* method parser_prod#AKwinternAtid#n_id= for (self: Object, Token) */
4780 void VIRTUAL_parser_prod__AKwinternAtid__n_id_61d(val
* self
, val
* p0
) {
4781 parser_prod__AKwinternAtid__n_id_61d(self
, p0
);
4784 /* method parser_prod#AKwinternAtid#visit_all for (self: AKwinternAtid, Visitor) */
4785 void parser_prod__AKwinternAtid__visit_all(val
* self
, val
* p0
) {
4786 val
* var_v
/* var v: Visitor */;
4787 val
* var
/* : Token */;
4789 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwinternAtid> */
4791 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12025);
4794 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4797 /* method parser_prod#AKwinternAtid#visit_all for (self: Object, Visitor) */
4798 void VIRTUAL_parser_prod__AKwinternAtid__visit_all(val
* self
, val
* p0
) {
4799 parser_prod__AKwinternAtid__visit_all(self
, p0
);
4802 /* method parser_prod#AKwreadableAtid#empty_init for (self: AKwreadableAtid) */
4803 void parser_prod__AKwreadableAtid__empty_init(val
* self
) {
4806 /* method parser_prod#AKwreadableAtid#empty_init for (self: Object) */
4807 void VIRTUAL_parser_prod__AKwreadableAtid__empty_init(val
* self
) {
4808 parser_prod__AKwreadableAtid__empty_init(self
);
4811 /* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: AKwreadableAtid, nullable TKwreadable) */
4812 void parser_prod__AKwreadableAtid__init_akwreadableatid(val
* self
, val
* p0
) {
4813 val
* var_n_id
/* var n_id: nullable TKwreadable */;
4815 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AKwreadableAtid__empty_init
]))(self
) /* empty_init on <self:AKwreadableAtid>*/;
4816 if (var_n_id
== NULL
) {
4817 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 12036);
4820 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwreadableAtid> */
4821 if (var_n_id
== NULL
) {
4822 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 12037);
4825 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TKwreadable>*/;
4829 /* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: Object, nullable TKwreadable) */
4830 void VIRTUAL_parser_prod__AKwreadableAtid__init_akwreadableatid(val
* self
, val
* p0
) {
4831 parser_prod__AKwreadableAtid__init_akwreadableatid(self
, p0
);
4834 /* method parser_prod#AKwreadableAtid#replace_child for (self: AKwreadableAtid, ANode, nullable ANode) */
4835 void parser_prod__AKwreadableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4836 val
* var_old_child
/* var old_child: ANode */;
4837 val
* var_new_child
/* var new_child: nullable ANode */;
4838 val
* var
/* : Token */;
4839 short int var1
/* : Bool */;
4840 val
* var2
/* : null */;
4841 short int var3
/* : Bool */;
4842 short int var4
/* : Bool */;
4847 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwreadableAtid> */
4849 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12042);
4852 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
4855 if (var_new_child
== NULL
) {
4856 var3
= 0; /* is null */
4858 var3
= 1; /* arg is null and recv is not */
4861 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4862 /* <var_new_child:nullable ANode(ANode)> isa TKwreadable */
4863 cltype
= type_parser_nodes__TKwreadable
.color
;
4864 idtype
= type_parser_nodes__TKwreadable
.id
;
4865 if(cltype
>= var_new_child
->type
->table_size
) {
4868 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4871 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 12045);
4874 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AKwreadableAtid> */
4876 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 12048);
4884 /* method parser_prod#AKwreadableAtid#replace_child for (self: Object, ANode, nullable ANode) */
4885 void VIRTUAL_parser_prod__AKwreadableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4886 parser_prod__AKwreadableAtid__replace_child(self
, p0
, p1
);
4889 /* method parser_prod#AKwreadableAtid#n_id= for (self: AKwreadableAtid, Token) */
4890 void parser_prod__AKwreadableAtid__n_id_61d(val
* self
, val
* p0
) {
4891 val
* var_node
/* var node: Token */;
4893 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwreadableAtid> */
4894 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
4897 /* method parser_prod#AKwreadableAtid#n_id= for (self: Object, Token) */
4898 void VIRTUAL_parser_prod__AKwreadableAtid__n_id_61d(val
* self
, val
* p0
) {
4899 parser_prod__AKwreadableAtid__n_id_61d(self
, p0
);
4902 /* method parser_prod#AKwreadableAtid#visit_all for (self: AKwreadableAtid, Visitor) */
4903 void parser_prod__AKwreadableAtid__visit_all(val
* self
, val
* p0
) {
4904 val
* var_v
/* var v: Visitor */;
4905 val
* var
/* : Token */;
4907 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwreadableAtid> */
4909 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12063);
4912 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4915 /* method parser_prod#AKwreadableAtid#visit_all for (self: Object, Visitor) */
4916 void VIRTUAL_parser_prod__AKwreadableAtid__visit_all(val
* self
, val
* p0
) {
4917 parser_prod__AKwreadableAtid__visit_all(self
, p0
);
4920 /* method parser_prod#AKwwritableAtid#empty_init for (self: AKwwritableAtid) */
4921 void parser_prod__AKwwritableAtid__empty_init(val
* self
) {
4924 /* method parser_prod#AKwwritableAtid#empty_init for (self: Object) */
4925 void VIRTUAL_parser_prod__AKwwritableAtid__empty_init(val
* self
) {
4926 parser_prod__AKwwritableAtid__empty_init(self
);
4929 /* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: AKwwritableAtid, nullable TKwwritable) */
4930 void parser_prod__AKwwritableAtid__init_akwwritableatid(val
* self
, val
* p0
) {
4931 val
* var_n_id
/* var n_id: nullable TKwwritable */;
4933 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AKwwritableAtid__empty_init
]))(self
) /* empty_init on <self:AKwwritableAtid>*/;
4934 if (var_n_id
== NULL
) {
4935 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 12074);
4938 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwwritableAtid> */
4939 if (var_n_id
== NULL
) {
4940 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 12075);
4943 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TKwwritable>*/;
4947 /* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: Object, nullable TKwwritable) */
4948 void VIRTUAL_parser_prod__AKwwritableAtid__init_akwwritableatid(val
* self
, val
* p0
) {
4949 parser_prod__AKwwritableAtid__init_akwwritableatid(self
, p0
);
4952 /* method parser_prod#AKwwritableAtid#replace_child for (self: AKwwritableAtid, ANode, nullable ANode) */
4953 void parser_prod__AKwwritableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4954 val
* var_old_child
/* var old_child: ANode */;
4955 val
* var_new_child
/* var new_child: nullable ANode */;
4956 val
* var
/* : Token */;
4957 short int var1
/* : Bool */;
4958 val
* var2
/* : null */;
4959 short int var3
/* : Bool */;
4960 short int var4
/* : Bool */;
4965 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwwritableAtid> */
4967 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12080);
4970 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
4973 if (var_new_child
== NULL
) {
4974 var3
= 0; /* is null */
4976 var3
= 1; /* arg is null and recv is not */
4979 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4980 /* <var_new_child:nullable ANode(ANode)> isa TKwwritable */
4981 cltype
= type_parser_nodes__TKwwritable
.color
;
4982 idtype
= type_parser_nodes__TKwwritable
.id
;
4983 if(cltype
>= var_new_child
->type
->table_size
) {
4986 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4989 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 12083);
4992 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AKwwritableAtid> */
4994 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 12086);
5002 /* method parser_prod#AKwwritableAtid#replace_child for (self: Object, ANode, nullable ANode) */
5003 void VIRTUAL_parser_prod__AKwwritableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
5004 parser_prod__AKwwritableAtid__replace_child(self
, p0
, p1
);
5007 /* method parser_prod#AKwwritableAtid#n_id= for (self: AKwwritableAtid, Token) */
5008 void parser_prod__AKwwritableAtid__n_id_61d(val
* self
, val
* p0
) {
5009 val
* var_node
/* var node: Token */;
5011 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwwritableAtid> */
5012 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
5015 /* method parser_prod#AKwwritableAtid#n_id= for (self: Object, Token) */
5016 void VIRTUAL_parser_prod__AKwwritableAtid__n_id_61d(val
* self
, val
* p0
) {
5017 parser_prod__AKwwritableAtid__n_id_61d(self
, p0
);
5020 /* method parser_prod#AKwwritableAtid#visit_all for (self: AKwwritableAtid, Visitor) */
5021 void parser_prod__AKwwritableAtid__visit_all(val
* self
, val
* p0
) {
5022 val
* var_v
/* var v: Visitor */;
5023 val
* var
/* : Token */;
5025 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwwritableAtid> */
5027 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12101);
5030 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
5033 /* method parser_prod#AKwwritableAtid#visit_all for (self: Object, Visitor) */
5034 void VIRTUAL_parser_prod__AKwwritableAtid__visit_all(val
* self
, val
* p0
) {
5035 parser_prod__AKwwritableAtid__visit_all(self
, p0
);
5038 /* method parser_prod#AKwimportAtid#empty_init for (self: AKwimportAtid) */
5039 void parser_prod__AKwimportAtid__empty_init(val
* self
) {
5042 /* method parser_prod#AKwimportAtid#empty_init for (self: Object) */
5043 void VIRTUAL_parser_prod__AKwimportAtid__empty_init(val
* self
) {
5044 parser_prod__AKwimportAtid__empty_init(self
);
5047 /* method parser_prod#AKwimportAtid#init_akwimportatid for (self: AKwimportAtid, nullable TKwimport) */
5048 void parser_prod__AKwimportAtid__init_akwimportatid(val
* self
, val
* p0
) {
5049 val
* var_n_id
/* var n_id: nullable TKwimport */;
5051 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AKwimportAtid__empty_init
]))(self
) /* empty_init on <self:AKwimportAtid>*/;
5052 if (var_n_id
== NULL
) {
5053 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 12112);
5056 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwimportAtid> */
5057 if (var_n_id
== NULL
) {
5058 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 12113);
5061 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TKwimport>*/;
5065 /* method parser_prod#AKwimportAtid#init_akwimportatid for (self: Object, nullable TKwimport) */
5066 void VIRTUAL_parser_prod__AKwimportAtid__init_akwimportatid(val
* self
, val
* p0
) {
5067 parser_prod__AKwimportAtid__init_akwimportatid(self
, p0
);
5070 /* method parser_prod#AKwimportAtid#replace_child for (self: AKwimportAtid, ANode, nullable ANode) */
5071 void parser_prod__AKwimportAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
5072 val
* var_old_child
/* var old_child: ANode */;
5073 val
* var_new_child
/* var new_child: nullable ANode */;
5074 val
* var
/* : Token */;
5075 short int var1
/* : Bool */;
5076 val
* var2
/* : null */;
5077 short int var3
/* : Bool */;
5078 short int var4
/* : Bool */;
5083 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwimportAtid> */
5085 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12118);
5088 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:Token>*/;
5091 if (var_new_child
== NULL
) {
5092 var3
= 0; /* is null */
5094 var3
= 1; /* arg is null and recv is not */
5097 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
5098 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
5099 cltype
= type_parser_nodes__TKwimport
.color
;
5100 idtype
= type_parser_nodes__TKwimport
.id
;
5101 if(cltype
>= var_new_child
->type
->table_size
) {
5104 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5107 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 12121);
5110 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_new_child
; /* _n_id on <self:AKwimportAtid> */
5112 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 12124);
5120 /* method parser_prod#AKwimportAtid#replace_child for (self: Object, ANode, nullable ANode) */
5121 void VIRTUAL_parser_prod__AKwimportAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
5122 parser_prod__AKwimportAtid__replace_child(self
, p0
, p1
);
5125 /* method parser_prod#AKwimportAtid#n_id= for (self: AKwimportAtid, Token) */
5126 void parser_prod__AKwimportAtid__n_id_61d(val
* self
, val
* p0
) {
5127 val
* var_node
/* var node: Token */;
5129 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwimportAtid> */
5130 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:Token>*/;
5133 /* method parser_prod#AKwimportAtid#n_id= for (self: Object, Token) */
5134 void VIRTUAL_parser_prod__AKwimportAtid__n_id_61d(val
* self
, val
* p0
) {
5135 parser_prod__AKwimportAtid__n_id_61d(self
, p0
);
5138 /* method parser_prod#AKwimportAtid#visit_all for (self: AKwimportAtid, Visitor) */
5139 void parser_prod__AKwimportAtid__visit_all(val
* self
, val
* p0
) {
5140 val
* var_v
/* var v: Visitor */;
5141 val
* var
/* : Token */;
5143 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwimportAtid> */
5145 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 12139);
5148 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
5151 /* method parser_prod#AKwimportAtid#visit_all for (self: Object, Visitor) */
5152 void VIRTUAL_parser_prod__AKwimportAtid__visit_all(val
* self
, val
* p0
) {
5153 parser_prod__AKwimportAtid__visit_all(self
, p0
);
5156 /* method parser_prod#Start#replace_child for (self: Start, ANode, nullable ANode) */
5157 void parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
5158 val
* var_old_child
/* var old_child: ANode */;
5159 val
* var_new_child
/* var new_child: nullable ANode */;
5160 val
* var
/* : nullable AModule */;
5161 short int var1
/* : Bool */;
5162 val
* var2
/* : null */;
5163 short int var3
/* : Bool */;
5164 short int var4
/* : Bool */;
5167 val
* var5
/* : null */;
5170 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
5172 var1
= 0; /* <var_old_child:ANode> cannot be null */
5174 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable AModule>*/;
5178 if (var_new_child
== NULL
) {
5179 var3
= 1; /* is null */
5181 var3
= 0; /* arg is null but recv is not */
5185 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
5186 /* <var_new_child:nullable ANode(ANode)> isa AModule */
5187 cltype
= type_parser_nodes__AModule
.color
;
5188 idtype
= type_parser_nodes__AModule
.id
;
5189 if(cltype
>= var_new_child
->type
->table_size
) {
5192 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5195 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 12150);
5198 self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
= var_new_child
; /* _n_base on <self:Start> */
5201 ((void (*)(val
*, val
*))(var_old_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_old_child
, var5
) /* parent= on <var_old_child:ANode>*/;
5207 /* method parser_prod#Start#replace_child for (self: Object, ANode, nullable ANode) */
5208 void VIRTUAL_parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
5209 parser_prod__Start__replace_child(self
, p0
, p1
);
5212 /* method parser_prod#Start#visit_all for (self: Start, Visitor) */
5213 void parser_prod__Start__visit_all(val
* self
, val
* p0
) {
5214 val
* var_v
/* var v: Visitor */;
5215 val
* var
/* : nullable AModule */;
5216 val
* var1
/* : null */;
5217 short int var2
/* : Bool */;
5218 val
* var3
/* : nullable AModule */;
5219 val
* var4
/* : EOF */;
5221 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
5224 var2
= 0; /* is null */
5226 var2
= 1; /* arg is null and recv is not */
5229 var3
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
5231 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 12161);
5234 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
5237 var4
= self
->attrs
[COLOR_parser_nodes__Start___n_eof
].val
; /* _n_eof on <self:Start> */
5239 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_eof", "src/parser/parser_prod.nit", 12163);
5242 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
5245 /* method parser_prod#Start#visit_all for (self: Object, Visitor) */
5246 void VIRTUAL_parser_prod__Start__visit_all(val
* self
, val
* p0
) {
5247 parser_prod__Start__visit_all(self
, p0
);