1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#AModule#empty_init for (self: AModule) */
3 void parser_prod__AModule__empty_init(val
* self
) {
6 /* method parser_prod#AModule#empty_init for (self: Object) */
7 void VIRTUAL_parser_prod__AModule__empty_init(val
* self
) {
8 parser_prod__AModule__empty_init(self
);
11 /* method parser_prod#AModule#init_amodule for (self: AModule, nullable AModuledecl, Collection[Object], Collection[Object], Collection[Object]) */
12 void parser_prod__AModule__init_amodule(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
13 val
* var_n_moduledecl
/* var n_moduledecl: nullable AModuledecl */;
14 val
* var_n_imports
/* var n_imports: Collection[Object] */;
15 val
* var_n_extern_code_blocks
/* var n_extern_code_blocks: Collection[Object] */;
16 val
* var_n_classdefs
/* var n_classdefs: Collection[Object] */;
17 val
* var
/* : null */;
18 short int var1
/* : Bool */;
19 val
* var2
/* : Iterator[nullable Object] */;
20 short int var3
/* : Bool */;
21 val
* var4
/* : nullable Object */;
22 val
* var_n
/* var n: Object */;
23 short int var5
/* : Bool */;
26 val
* var6
/* : ANodes[AImport] */;
27 val
* var7
/* : Iterator[nullable Object] */;
28 short int var8
/* : Bool */;
29 val
* var9
/* : nullable Object */;
30 val
* var_n10
/* var n: Object */;
31 short int var11
/* : Bool */;
34 val
* var14
/* : ANodes[AExternCodeBlock] */;
35 val
* var16
/* : Iterator[nullable Object] */;
36 short int var17
/* : Bool */;
37 val
* var18
/* : nullable Object */;
38 val
* var_n19
/* var n: Object */;
39 short int var20
/* : Bool */;
42 val
* var23
/* : ANodes[AClassdef] */;
43 var_n_moduledecl
= p0
;
45 var_n_extern_code_blocks
= p2
;
47 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AModule__empty_init
]))(self
) /* empty_init on <self:AModule>*/;
48 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_n_moduledecl
; /* _n_moduledecl on <self:AModule> */
50 if (var_n_moduledecl
== NULL
) {
51 var1
= 0; /* is null */
53 var1
= 1; /* arg is null and recv is not */
56 ((void (*)(val
*, val
*))(var_n_moduledecl
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_moduledecl
, self
) /* parent= on <var_n_moduledecl:nullable AModuledecl(AModuledecl)>*/;
59 var2
= ((val
* (*)(val
*))(var_n_imports
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_imports
) /* iterator on <var_n_imports:Collection[Object]>*/;
61 var3
= ((short int (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var2
) /* is_ok on <var2:Iterator[nullable Object]>*/;
63 var4
= ((val
* (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var2
) /* item on <var2:Iterator[nullable Object]>*/;
65 /* <var_n:Object> isa AImport */
66 cltype
= type_parser_nodes__AImport
.color
;
67 idtype
= type_parser_nodes__AImport
.id
;
68 if(cltype
>= var_n
->type
->table_size
) {
71 var5
= var_n
->type
->type_table
[cltype
] == idtype
;
74 fprintf(stderr
, "Runtime error: %s", "Assert failed");
75 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 25);
78 var6
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
80 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
81 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 26);
84 ((void (*)(val
*, val
*))(var6
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var6
, var_n
) /* add on <var6:ANodes[AImport]>*/;
85 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AImport)>*/;
86 CONTINUE_label
: (void)0;
87 ((void (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var2
) /* next on <var2:Iterator[nullable Object]>*/;
90 var7
= ((val
* (*)(val
*))(var_n_extern_code_blocks
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_extern_code_blocks
) /* iterator on <var_n_extern_code_blocks:Collection[Object]>*/;
92 var8
= ((short int (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var7
) /* is_ok on <var7:Iterator[nullable Object]>*/;
94 var9
= ((val
* (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var7
) /* item on <var7:Iterator[nullable Object]>*/;
96 /* <var_n10:Object> isa AExternCodeBlock */
97 cltype12
= type_parser_nodes__AExternCodeBlock
.color
;
98 idtype13
= type_parser_nodes__AExternCodeBlock
.id
;
99 if(cltype12
>= var_n10
->type
->table_size
) {
102 var11
= var_n10
->type
->type_table
[cltype12
] == idtype13
;
105 fprintf(stderr
, "Runtime error: %s", "Assert failed");
106 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 30);
109 var14
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
111 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
112 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 31);
115 ((void (*)(val
*, val
*))(var14
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var14
, var_n10
) /* add on <var14:ANodes[AExternCodeBlock]>*/;
116 ((void (*)(val
*, val
*))(var_n10
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n10
, self
) /* parent= on <var_n10:Object(AExternCodeBlock)>*/;
117 CONTINUE_label15
: (void)0;
118 ((void (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var7
) /* next on <var7:Iterator[nullable Object]>*/;
120 BREAK_label15
: (void)0;
121 var16
= ((val
* (*)(val
*))(var_n_classdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_classdefs
) /* iterator on <var_n_classdefs:Collection[Object]>*/;
123 var17
= ((short int (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var16
) /* is_ok on <var16:Iterator[nullable Object]>*/;
125 var18
= ((val
* (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var16
) /* item on <var16:Iterator[nullable Object]>*/;
127 /* <var_n19:Object> isa AClassdef */
128 cltype21
= type_parser_nodes__AClassdef
.color
;
129 idtype22
= type_parser_nodes__AClassdef
.id
;
130 if(cltype21
>= var_n19
->type
->table_size
) {
133 var20
= var_n19
->type
->type_table
[cltype21
] == idtype22
;
136 fprintf(stderr
, "Runtime error: %s", "Assert failed");
137 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 35);
140 var23
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
142 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
143 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 36);
146 ((void (*)(val
*, val
*))(var23
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var23
, var_n19
) /* add on <var23:ANodes[AClassdef]>*/;
147 ((void (*)(val
*, val
*))(var_n19
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n19
, self
) /* parent= on <var_n19:Object(AClassdef)>*/;
148 CONTINUE_label24
: (void)0;
149 ((void (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var16
) /* next on <var16:Iterator[nullable Object]>*/;
151 BREAK_label24
: (void)0;
154 /* method parser_prod#AModule#init_amodule for (self: Object, nullable AModuledecl, Collection[Object], Collection[Object], Collection[Object]) */
155 void VIRTUAL_parser_prod__AModule__init_amodule(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
156 parser_prod__AModule__init_amodule(self
, p0
, p1
, p2
, p3
);
159 /* method parser_prod#AModule#replace_child for (self: AModule, ANode, nullable ANode) */
160 void parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
161 val
* var_old_child
/* var old_child: ANode */;
162 val
* var_new_child
/* var new_child: nullable ANode */;
163 val
* var
/* : nullable AModuledecl */;
164 short int var1
/* : Bool */;
165 val
* var2
/* : null */;
166 short int var3
/* : Bool */;
167 short int var4
/* : Bool */;
170 val
* var5
/* : null */;
171 val
* var6
/* : Range[Int] */;
172 long var7
/* : Int */;
173 val
* var8
/* : ANodes[AImport] */;
174 long var9
/* : Int */;
175 val
* var10
/* : Discrete */;
176 val
* var11
/* : Discrete */;
177 val
* var12
/* : Iterator[nullable Object] */;
178 short int var13
/* : Bool */;
179 val
* var14
/* : nullable Object */;
180 long var_i
/* var i: Int */;
181 long var15
/* : Int */;
182 val
* var16
/* : ANodes[AImport] */;
183 val
* var17
/* : nullable Object */;
184 short int var18
/* : Bool */;
185 val
* var19
/* : null */;
186 short int var20
/* : Bool */;
187 short int var21
/* : Bool */;
190 val
* var24
/* : ANodes[AImport] */;
191 val
* var25
/* : ANodes[AImport] */;
192 val
* var26
/* : Range[Int] */;
193 long var27
/* : Int */;
194 val
* var28
/* : ANodes[AExternCodeBlock] */;
195 long var29
/* : Int */;
196 val
* var30
/* : Discrete */;
197 val
* var31
/* : Discrete */;
198 val
* var32
/* : Iterator[nullable Object] */;
199 short int var33
/* : Bool */;
200 val
* var34
/* : nullable Object */;
201 long var_i35
/* var i: Int */;
202 long var36
/* : Int */;
203 val
* var37
/* : ANodes[AExternCodeBlock] */;
204 val
* var38
/* : nullable Object */;
205 short int var39
/* : Bool */;
206 val
* var40
/* : null */;
207 short int var41
/* : Bool */;
208 short int var42
/* : Bool */;
211 val
* var45
/* : ANodes[AExternCodeBlock] */;
212 val
* var46
/* : ANodes[AExternCodeBlock] */;
213 val
* var48
/* : Range[Int] */;
214 long var49
/* : Int */;
215 val
* var50
/* : ANodes[AClassdef] */;
216 long var51
/* : Int */;
217 val
* var52
/* : Discrete */;
218 val
* var53
/* : Discrete */;
219 val
* var54
/* : Iterator[nullable Object] */;
220 short int var55
/* : Bool */;
221 val
* var56
/* : nullable Object */;
222 long var_i57
/* var i: Int */;
223 long var58
/* : Int */;
224 val
* var59
/* : ANodes[AClassdef] */;
225 val
* var60
/* : nullable Object */;
226 short int var61
/* : Bool */;
227 val
* var62
/* : null */;
228 short int var63
/* : Bool */;
229 short int var64
/* : Bool */;
232 val
* var67
/* : ANodes[AClassdef] */;
233 val
* var68
/* : ANodes[AClassdef] */;
236 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
238 var1
= 0; /* <var_old_child:ANode> cannot be null */
240 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable AModuledecl>*/;
244 if (var_new_child
== NULL
) {
245 var3
= 0; /* is null */
247 var3
= 1; /* arg is null and recv is not */
250 ((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)>*/;
251 /* <var_new_child:nullable ANode(ANode)> isa AModuledecl */
252 cltype
= type_parser_nodes__AModuledecl
.color
;
253 idtype
= type_parser_nodes__AModuledecl
.id
;
254 if(cltype
>= var_new_child
->type
->table_size
) {
257 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
260 fprintf(stderr
, "Runtime error: %s", "Assert failed");
261 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 46);
264 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_new_child
; /* _n_moduledecl on <self:AModule> */
267 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var5
; /* _n_moduledecl on <self:AModule> */
272 var6
= NEW_range__Range(&type_range__Rangekernel__Int
);
274 var8
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
276 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
277 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 53);
280 var9
= ((long (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var8
) /* length on <var8:ANodes[AImport]>*/;
281 var10
= BOX_kernel__Int(var7
); /* autobox from Int to Discrete */
282 var11
= BOX_kernel__Int(var9
); /* autobox from Int to Discrete */
283 ((void (*)(val
*, val
*, val
*))(var6
->class->vft
[COLOR_range__Range__without_last
]))(var6
, var10
, var11
) /* without_last on <var6:Range[Int]>*/;
284 CHECK_NEW_range__Range(var6
);
285 var12
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var6
) /* iterator on <var6:Range[Int]>*/;
287 var13
= ((short int (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var12
) /* is_ok on <var12:Iterator[nullable Object]>*/;
289 var14
= ((val
* (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var12
) /* item on <var12:Iterator[nullable Object]>*/;
290 var15
= ((struct instance_kernel__Int
*)var14
)->value
; /* autounbox from nullable Object to Int */;
292 var16
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
294 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
295 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 54);
298 var17
= ((val
* (*)(val
*, long))(var16
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var16
, var_i
) /* [] on <var16:ANodes[AImport]>*/;
299 var18
= ((short int (*)(val
*, val
*))(var17
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var17
, var_old_child
) /* == on <var17:nullable Object(AImport)>*/;
302 if (var_new_child
== NULL
) {
303 var20
= 0; /* is null */
305 var20
= 1; /* arg is null and recv is not */
308 /* <var_new_child:nullable ANode(ANode)> isa AImport */
309 cltype22
= type_parser_nodes__AImport
.color
;
310 idtype23
= type_parser_nodes__AImport
.id
;
311 if(cltype22
>= var_new_child
->type
->table_size
) {
314 var21
= var_new_child
->type
->type_table
[cltype22
] == idtype23
;
317 fprintf(stderr
, "Runtime error: %s", "Assert failed");
318 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 56);
321 var24
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
323 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
324 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 57);
327 ((void (*)(val
*, long, val
*))(var24
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var24
, var_i
, var_new_child
) /* []= on <var24:ANodes[AImport]>*/;
328 ((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(AImport)>*/;
330 var25
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
332 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
333 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 60);
336 ((void (*)(val
*, long))(var25
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var25
, var_i
) /* remove_at on <var25:ANodes[AImport]>*/;
341 CONTINUE_label
: (void)0;
342 ((void (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var12
) /* next on <var12:Iterator[nullable Object]>*/;
344 BREAK_label
: (void)0;
345 var26
= NEW_range__Range(&type_range__Rangekernel__Int
);
347 var28
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
349 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
350 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 65);
353 var29
= ((long (*)(val
*))(var28
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var28
) /* length on <var28:ANodes[AExternCodeBlock]>*/;
354 var30
= BOX_kernel__Int(var27
); /* autobox from Int to Discrete */
355 var31
= BOX_kernel__Int(var29
); /* autobox from Int to Discrete */
356 ((void (*)(val
*, val
*, val
*))(var26
->class->vft
[COLOR_range__Range__without_last
]))(var26
, var30
, var31
) /* without_last on <var26:Range[Int]>*/;
357 CHECK_NEW_range__Range(var26
);
358 var32
= ((val
* (*)(val
*))(var26
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var26
) /* iterator on <var26:Range[Int]>*/;
360 var33
= ((short int (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var32
) /* is_ok on <var32:Iterator[nullable Object]>*/;
362 var34
= ((val
* (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var32
) /* item on <var32:Iterator[nullable Object]>*/;
363 var36
= ((struct instance_kernel__Int
*)var34
)->value
; /* autounbox from nullable Object to Int */;
365 var37
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
367 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
368 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 66);
371 var38
= ((val
* (*)(val
*, long))(var37
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var37
, var_i35
) /* [] on <var37:ANodes[AExternCodeBlock]>*/;
372 var39
= ((short int (*)(val
*, val
*))(var38
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var38
, var_old_child
) /* == on <var38:nullable Object(AExternCodeBlock)>*/;
375 if (var_new_child
== NULL
) {
376 var41
= 0; /* is null */
378 var41
= 1; /* arg is null and recv is not */
381 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
382 cltype43
= type_parser_nodes__AExternCodeBlock
.color
;
383 idtype44
= type_parser_nodes__AExternCodeBlock
.id
;
384 if(cltype43
>= var_new_child
->type
->table_size
) {
387 var42
= var_new_child
->type
->type_table
[cltype43
] == idtype44
;
390 fprintf(stderr
, "Runtime error: %s", "Assert failed");
391 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 68);
394 var45
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
396 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
397 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 69);
400 ((void (*)(val
*, long, val
*))(var45
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var45
, var_i35
, var_new_child
) /* []= on <var45:ANodes[AExternCodeBlock]>*/;
401 ((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(AExternCodeBlock)>*/;
403 var46
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
405 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
406 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 72);
409 ((void (*)(val
*, long))(var46
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var46
, var_i35
) /* remove_at on <var46:ANodes[AExternCodeBlock]>*/;
414 CONTINUE_label47
: (void)0;
415 ((void (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var32
) /* next on <var32:Iterator[nullable Object]>*/;
417 BREAK_label47
: (void)0;
418 var48
= NEW_range__Range(&type_range__Rangekernel__Int
);
420 var50
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
422 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
423 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 77);
426 var51
= ((long (*)(val
*))(var50
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var50
) /* length on <var50:ANodes[AClassdef]>*/;
427 var52
= BOX_kernel__Int(var49
); /* autobox from Int to Discrete */
428 var53
= BOX_kernel__Int(var51
); /* autobox from Int to Discrete */
429 ((void (*)(val
*, val
*, val
*))(var48
->class->vft
[COLOR_range__Range__without_last
]))(var48
, var52
, var53
) /* without_last on <var48:Range[Int]>*/;
430 CHECK_NEW_range__Range(var48
);
431 var54
= ((val
* (*)(val
*))(var48
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var48
) /* iterator on <var48:Range[Int]>*/;
433 var55
= ((short int (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var54
) /* is_ok on <var54:Iterator[nullable Object]>*/;
435 var56
= ((val
* (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var54
) /* item on <var54:Iterator[nullable Object]>*/;
436 var58
= ((struct instance_kernel__Int
*)var56
)->value
; /* autounbox from nullable Object to Int */;
438 var59
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
440 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
441 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 78);
444 var60
= ((val
* (*)(val
*, long))(var59
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var59
, var_i57
) /* [] on <var59:ANodes[AClassdef]>*/;
445 var61
= ((short int (*)(val
*, val
*))(var60
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var60
, var_old_child
) /* == on <var60:nullable Object(AClassdef)>*/;
448 if (var_new_child
== NULL
) {
449 var63
= 0; /* is null */
451 var63
= 1; /* arg is null and recv is not */
454 /* <var_new_child:nullable ANode(ANode)> isa AClassdef */
455 cltype65
= type_parser_nodes__AClassdef
.color
;
456 idtype66
= type_parser_nodes__AClassdef
.id
;
457 if(cltype65
>= var_new_child
->type
->table_size
) {
460 var64
= var_new_child
->type
->type_table
[cltype65
] == idtype66
;
463 fprintf(stderr
, "Runtime error: %s", "Assert failed");
464 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 80);
467 var67
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
469 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
470 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 81);
473 ((void (*)(val
*, long, val
*))(var67
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var67
, var_i57
, var_new_child
) /* []= on <var67:ANodes[AClassdef]>*/;
474 ((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(AClassdef)>*/;
476 var68
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
478 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
479 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 84);
482 ((void (*)(val
*, long))(var68
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var68
, var_i57
) /* remove_at on <var68:ANodes[AClassdef]>*/;
487 CONTINUE_label69
: (void)0;
488 ((void (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var54
) /* next on <var54:Iterator[nullable Object]>*/;
490 BREAK_label69
: (void)0;
493 /* method parser_prod#AModule#replace_child for (self: Object, ANode, nullable ANode) */
494 void VIRTUAL_parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
495 parser_prod__AModule__replace_child(self
, p0
, p1
);
498 /* method parser_prod#AModule#n_moduledecl= for (self: AModule, nullable AModuledecl) */
499 void parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
500 val
* var_node
/* var node: nullable AModuledecl */;
501 val
* var
/* : null */;
502 short int var1
/* : Bool */;
504 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_node
; /* _n_moduledecl on <self:AModule> */
506 if (var_node
== NULL
) {
507 var1
= 0; /* is null */
509 var1
= 1; /* arg is null and recv is not */
512 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AModuledecl(AModuledecl)>*/;
517 /* method parser_prod#AModule#n_moduledecl= for (self: Object, nullable AModuledecl) */
518 void VIRTUAL_parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
519 parser_prod__AModule__n_moduledecl_61d(self
, p0
);
522 /* method parser_prod#AModule#visit_all for (self: AModule, Visitor) */
523 void parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
524 val
* var_v
/* var v: Visitor */;
525 val
* var
/* : nullable AModuledecl */;
526 val
* var1
/* : null */;
527 short int var2
/* : Bool */;
528 val
* var3
/* : nullable AModuledecl */;
529 val
* var4
/* : ANodes[AImport] */;
530 val
* var5
/* : Iterator[nullable Object] */;
531 short int var6
/* : Bool */;
532 val
* var7
/* : nullable Object */;
533 val
* var_n
/* var n: AImport */;
534 val
* var8
/* : ANodes[AExternCodeBlock] */;
535 val
* var9
/* : Iterator[nullable Object] */;
536 short int var10
/* : Bool */;
537 val
* var11
/* : nullable Object */;
538 val
* var_n12
/* var n: AExternCodeBlock */;
539 val
* var14
/* : ANodes[AClassdef] */;
540 val
* var15
/* : Iterator[nullable Object] */;
541 short int var16
/* : Bool */;
542 val
* var17
/* : nullable Object */;
543 val
* var_n18
/* var n: AClassdef */;
545 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
548 var2
= 0; /* is null */
550 var2
= 1; /* arg is null and recv is not */
553 var3
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
555 fprintf(stderr
, "Runtime error: %s", "Cast failed");
556 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 103);
559 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
562 var4
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
564 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_imports");
565 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 105);
568 var5
= ((val
* (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var4
) /* iterator on <var4:ANodes[AImport]>*/;
570 var6
= ((short int (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var5
) /* is_ok on <var5:Iterator[nullable Object]>*/;
572 var7
= ((val
* (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var5
) /* item on <var5:Iterator[nullable Object]>*/;
574 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
575 CONTINUE_label
: (void)0;
576 ((void (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var5
) /* next on <var5:Iterator[nullable Object]>*/;
578 BREAK_label
: (void)0;
579 var8
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
581 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_extern_code_blocks");
582 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 108);
585 var9
= ((val
* (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var8
) /* iterator on <var8:ANodes[AExternCodeBlock]>*/;
587 var10
= ((short int (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var9
) /* is_ok on <var9:Iterator[nullable Object]>*/;
589 var11
= ((val
* (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var9
) /* item on <var9:Iterator[nullable Object]>*/;
591 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n12
) /* enter_visit on <var_v:Visitor>*/;
592 CONTINUE_label13
: (void)0;
593 ((void (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var9
) /* next on <var9:Iterator[nullable Object]>*/;
595 BREAK_label13
: (void)0;
596 var14
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
598 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classdefs");
599 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 111);
602 var15
= ((val
* (*)(val
*))(var14
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var14
) /* iterator on <var14:ANodes[AClassdef]>*/;
604 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
606 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
608 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n18
) /* enter_visit on <var_v:Visitor>*/;
609 CONTINUE_label19
: (void)0;
610 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
612 BREAK_label19
: (void)0;
615 /* method parser_prod#AModule#visit_all for (self: Object, Visitor) */
616 void VIRTUAL_parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
617 parser_prod__AModule__visit_all(self
, p0
);
620 /* method parser_prod#AModuledecl#empty_init for (self: AModuledecl) */
621 void parser_prod__AModuledecl__empty_init(val
* self
) {
624 /* method parser_prod#AModuledecl#empty_init for (self: Object) */
625 void VIRTUAL_parser_prod__AModuledecl__empty_init(val
* self
) {
626 parser_prod__AModuledecl__empty_init(self
);
629 /* method parser_prod#AModuledecl#init_amoduledecl for (self: AModuledecl, nullable ADoc, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
630 void parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
631 val
* var_n_doc
/* var n_doc: nullable ADoc */;
632 val
* var_n_kwmodule
/* var n_kwmodule: nullable TKwmodule */;
633 val
* var_n_name
/* var n_name: nullable AModuleName */;
634 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
635 val
* var
/* : null */;
636 short int var1
/* : Bool */;
637 val
* var2
/* : null */;
638 short int var3
/* : Bool */;
642 var_n_annotations
= p3
;
643 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AModuledecl__empty_init
]))(self
) /* empty_init on <self:AModuledecl>*/;
644 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AModuledecl> */
646 if (var_n_doc
== NULL
) {
647 var1
= 0; /* is null */
649 var1
= 1; /* arg is null and recv is not */
652 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
655 if (var_n_kwmodule
== NULL
) {
656 fprintf(stderr
, "Runtime error: %s", "Cast failed");
657 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 131);
660 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_n_kwmodule
; /* _n_kwmodule on <self:AModuledecl> */
661 if (var_n_kwmodule
== NULL
) {
662 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
663 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 132);
666 ((void (*)(val
*, val
*))(var_n_kwmodule
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwmodule
, self
) /* parent= on <var_n_kwmodule:nullable TKwmodule>*/;
668 if (var_n_name
== NULL
) {
669 fprintf(stderr
, "Runtime error: %s", "Cast failed");
670 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 133);
673 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_n_name
; /* _n_name on <self:AModuledecl> */
674 if (var_n_name
== NULL
) {
675 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
676 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 134);
679 ((void (*)(val
*, val
*))(var_n_name
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_name
, self
) /* parent= on <var_n_name:nullable AModuleName>*/;
681 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AModuledecl> */
683 if (var_n_annotations
== NULL
) {
684 var3
= 0; /* is null */
686 var3
= 1; /* arg is null and recv is not */
689 ((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)>*/;
694 /* method parser_prod#AModuledecl#init_amoduledecl for (self: Object, nullable ADoc, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
695 void VIRTUAL_parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
696 parser_prod__AModuledecl__init_amoduledecl(self
, p0
, p1
, p2
, p3
);
699 /* method parser_prod#AModuledecl#replace_child for (self: AModuledecl, ANode, nullable ANode) */
700 void parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
701 val
* var_old_child
/* var old_child: ANode */;
702 val
* var_new_child
/* var new_child: nullable ANode */;
703 val
* var
/* : nullable ADoc */;
704 short int var1
/* : Bool */;
705 val
* var2
/* : null */;
706 short int var3
/* : Bool */;
707 short int var4
/* : Bool */;
710 val
* var5
/* : null */;
711 val
* var6
/* : TKwmodule */;
712 short int var7
/* : Bool */;
713 val
* var8
/* : null */;
714 short int var9
/* : Bool */;
715 short int var10
/* : Bool */;
718 val
* var13
/* : AModuleName */;
719 short int var14
/* : Bool */;
720 val
* var15
/* : null */;
721 short int var16
/* : Bool */;
722 short int var17
/* : Bool */;
725 val
* var20
/* : nullable AAnnotations */;
726 short int var21
/* : Bool */;
727 val
* var22
/* : null */;
728 short int var23
/* : Bool */;
729 short int var24
/* : Bool */;
732 val
* var27
/* : null */;
735 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
737 var1
= 0; /* <var_old_child:ANode> cannot be null */
739 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
743 if (var_new_child
== NULL
) {
744 var3
= 0; /* is null */
746 var3
= 1; /* arg is null and recv is not */
749 ((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)>*/;
750 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
751 cltype
= type_parser_nodes__ADoc
.color
;
752 idtype
= type_parser_nodes__ADoc
.id
;
753 if(cltype
>= var_new_child
->type
->table_size
) {
756 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
759 fprintf(stderr
, "Runtime error: %s", "Assert failed");
760 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 146);
763 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_new_child
; /* _n_doc on <self:AModuledecl> */
766 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var5
; /* _n_doc on <self:AModuledecl> */
771 var6
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
773 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmodule");
774 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 153);
777 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:TKwmodule>*/;
780 if (var_new_child
== NULL
) {
781 var9
= 0; /* is null */
783 var9
= 1; /* arg is null and recv is not */
786 ((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)>*/;
787 /* <var_new_child:nullable ANode(ANode)> isa TKwmodule */
788 cltype11
= type_parser_nodes__TKwmodule
.color
;
789 idtype12
= type_parser_nodes__TKwmodule
.id
;
790 if(cltype11
>= var_new_child
->type
->table_size
) {
793 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
796 fprintf(stderr
, "Runtime error: %s", "Assert failed");
797 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 156);
800 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_new_child
; /* _n_kwmodule on <self:AModuledecl> */
802 fprintf(stderr
, "Runtime error: %s", "Aborted");
803 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 159);
809 var13
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
811 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_name");
812 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 163);
815 var14
= ((short int (*)(val
*, val
*))(var13
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var13
, var_old_child
) /* == on <var13:AModuleName>*/;
818 if (var_new_child
== NULL
) {
819 var16
= 0; /* is null */
821 var16
= 1; /* arg is null and recv is not */
824 ((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)>*/;
825 /* <var_new_child:nullable ANode(ANode)> isa AModuleName */
826 cltype18
= type_parser_nodes__AModuleName
.color
;
827 idtype19
= type_parser_nodes__AModuleName
.id
;
828 if(cltype18
>= var_new_child
->type
->table_size
) {
831 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
834 fprintf(stderr
, "Runtime error: %s", "Assert failed");
835 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 166);
838 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_new_child
; /* _n_name on <self:AModuledecl> */
840 fprintf(stderr
, "Runtime error: %s", "Aborted");
841 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 169);
847 var20
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
849 var21
= 0; /* <var_old_child:ANode> cannot be null */
851 var21
= ((short int (*)(val
*, val
*))(var20
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var20
, var_old_child
) /* == on <var20:nullable AAnnotations>*/;
855 if (var_new_child
== NULL
) {
856 var23
= 0; /* is null */
858 var23
= 1; /* arg is null and recv is not */
861 ((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)>*/;
862 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
863 cltype25
= type_parser_nodes__AAnnotations
.color
;
864 idtype26
= type_parser_nodes__AAnnotations
.id
;
865 if(cltype25
>= var_new_child
->type
->table_size
) {
868 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
871 fprintf(stderr
, "Runtime error: %s", "Assert failed");
872 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 176);
875 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AModuledecl> */
878 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var27
; /* _n_annotations on <self:AModuledecl> */
885 /* method parser_prod#AModuledecl#replace_child for (self: Object, ANode, nullable ANode) */
886 void VIRTUAL_parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
887 parser_prod__AModuledecl__replace_child(self
, p0
, p1
);
890 /* method parser_prod#AModuledecl#n_doc= for (self: AModuledecl, nullable ADoc) */
891 void parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
892 val
* var_node
/* var node: nullable ADoc */;
893 val
* var
/* : null */;
894 short int var1
/* : Bool */;
896 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_node
; /* _n_doc on <self:AModuledecl> */
898 if (var_node
== NULL
) {
899 var1
= 0; /* is null */
901 var1
= 1; /* arg is null and recv is not */
904 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
909 /* method parser_prod#AModuledecl#n_doc= for (self: Object, nullable ADoc) */
910 void VIRTUAL_parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
911 parser_prod__AModuledecl__n_doc_61d(self
, p0
);
914 /* method parser_prod#AModuledecl#n_kwmodule= for (self: AModuledecl, TKwmodule) */
915 void parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
916 val
* var_node
/* var node: TKwmodule */;
918 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_node
; /* _n_kwmodule on <self:AModuledecl> */
919 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmodule>*/;
922 /* method parser_prod#AModuledecl#n_kwmodule= for (self: Object, TKwmodule) */
923 void VIRTUAL_parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
924 parser_prod__AModuledecl__n_kwmodule_61d(self
, p0
);
927 /* method parser_prod#AModuledecl#n_name= for (self: AModuledecl, AModuleName) */
928 void parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
929 val
* var_node
/* var node: AModuleName */;
931 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_node
; /* _n_name on <self:AModuledecl> */
932 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AModuleName>*/;
935 /* method parser_prod#AModuledecl#n_name= for (self: Object, AModuleName) */
936 void VIRTUAL_parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
937 parser_prod__AModuledecl__n_name_61d(self
, p0
);
940 /* method parser_prod#AModuledecl#n_annotations= for (self: AModuledecl, nullable AAnnotations) */
941 void parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
942 val
* var_node
/* var node: nullable AAnnotations */;
943 val
* var
/* : null */;
944 short int var1
/* : Bool */;
946 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AModuledecl> */
948 if (var_node
== NULL
) {
949 var1
= 0; /* is null */
951 var1
= 1; /* arg is null and recv is not */
954 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
959 /* method parser_prod#AModuledecl#n_annotations= for (self: Object, nullable AAnnotations) */
960 void VIRTUAL_parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
961 parser_prod__AModuledecl__n_annotations_61d(self
, p0
);
964 /* method parser_prod#AModuledecl#visit_all for (self: AModuledecl, Visitor) */
965 void parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
966 val
* var_v
/* var v: Visitor */;
967 val
* var
/* : nullable ADoc */;
968 val
* var1
/* : null */;
969 short int var2
/* : Bool */;
970 val
* var3
/* : nullable ADoc */;
971 val
* var4
/* : TKwmodule */;
972 val
* var5
/* : AModuleName */;
973 val
* var6
/* : nullable AAnnotations */;
974 val
* var7
/* : null */;
975 short int var8
/* : Bool */;
976 val
* var9
/* : nullable AAnnotations */;
978 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
981 var2
= 0; /* is null */
983 var2
= 1; /* arg is null and recv is not */
986 var3
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
988 fprintf(stderr
, "Runtime error: %s", "Cast failed");
989 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 214);
992 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
995 var4
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
997 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmodule");
998 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 216);
1001 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
1002 var5
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
1004 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_name");
1005 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 217);
1008 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var5
) /* enter_visit on <var_v:Visitor>*/;
1009 var6
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
1012 var8
= 0; /* is null */
1014 var8
= 1; /* arg is null and recv is not */
1017 var9
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
1019 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1020 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 219);
1023 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
1028 /* method parser_prod#AModuledecl#visit_all for (self: Object, Visitor) */
1029 void VIRTUAL_parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
1030 parser_prod__AModuledecl__visit_all(self
, p0
);
1033 /* method parser_prod#AStdImport#empty_init for (self: AStdImport) */
1034 void parser_prod__AStdImport__empty_init(val
* self
) {
1037 /* method parser_prod#AStdImport#empty_init for (self: Object) */
1038 void VIRTUAL_parser_prod__AStdImport__empty_init(val
* self
) {
1039 parser_prod__AStdImport__empty_init(self
);
1042 /* method parser_prod#AStdImport#init_astdimport for (self: AStdImport, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1043 void parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1044 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1045 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1046 val
* var_n_name
/* var n_name: nullable AModuleName */;
1047 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1048 val
* var
/* : null */;
1049 short int var1
/* : Bool */;
1050 var_n_visibility
= p0
;
1051 var_n_kwimport
= p1
;
1053 var_n_annotations
= p3
;
1054 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AStdImport__empty_init
]))(self
) /* empty_init on <self:AStdImport>*/;
1055 if (var_n_visibility
== NULL
) {
1056 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1057 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 234);
1060 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdImport> */
1061 if (var_n_visibility
== NULL
) {
1062 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1063 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 235);
1066 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
1068 if (var_n_kwimport
== NULL
) {
1069 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1070 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 236);
1073 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AStdImport> */
1074 if (var_n_kwimport
== NULL
) {
1075 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1076 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 237);
1079 ((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>*/;
1081 if (var_n_name
== NULL
) {
1082 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1083 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 238);
1086 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_n_name
; /* _n_name on <self:AStdImport> */
1087 if (var_n_name
== NULL
) {
1088 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1089 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 239);
1092 ((void (*)(val
*, val
*))(var_n_name
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_name
, self
) /* parent= on <var_n_name:nullable AModuleName>*/;
1094 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdImport> */
1096 if (var_n_annotations
== NULL
) {
1097 var1
= 0; /* is null */
1099 var1
= 1; /* arg is null and recv is not */
1102 ((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)>*/;
1107 /* method parser_prod#AStdImport#init_astdimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1108 void VIRTUAL_parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1109 parser_prod__AStdImport__init_astdimport(self
, p0
, p1
, p2
, p3
);
1112 /* method parser_prod#AStdImport#replace_child for (self: AStdImport, ANode, nullable ANode) */
1113 void parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1114 val
* var_old_child
/* var old_child: ANode */;
1115 val
* var_new_child
/* var new_child: nullable ANode */;
1116 val
* var
/* : AVisibility */;
1117 short int var1
/* : Bool */;
1118 val
* var2
/* : null */;
1119 short int var3
/* : Bool */;
1120 short int var4
/* : Bool */;
1123 val
* var5
/* : TKwimport */;
1124 short int var6
/* : Bool */;
1125 val
* var7
/* : null */;
1126 short int var8
/* : Bool */;
1127 short int var9
/* : Bool */;
1130 val
* var12
/* : AModuleName */;
1131 short int var13
/* : Bool */;
1132 val
* var14
/* : null */;
1133 short int var15
/* : Bool */;
1134 short int var16
/* : Bool */;
1137 val
* var19
/* : nullable AAnnotations */;
1138 short int var20
/* : Bool */;
1139 val
* var21
/* : null */;
1140 short int var22
/* : Bool */;
1141 short int var23
/* : Bool */;
1144 val
* var26
/* : null */;
1147 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1149 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
1150 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 248);
1153 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AVisibility>*/;
1156 if (var_new_child
== NULL
) {
1157 var3
= 0; /* is null */
1159 var3
= 1; /* arg is null and recv is not */
1162 ((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)>*/;
1163 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
1164 cltype
= type_parser_nodes__AVisibility
.color
;
1165 idtype
= type_parser_nodes__AVisibility
.id
;
1166 if(cltype
>= var_new_child
->type
->table_size
) {
1169 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1172 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1173 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 251);
1176 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AStdImport> */
1178 fprintf(stderr
, "Runtime error: %s", "Aborted");
1179 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 254);
1185 var5
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1187 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwimport");
1188 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 258);
1191 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwimport>*/;
1194 if (var_new_child
== NULL
) {
1195 var8
= 0; /* is null */
1197 var8
= 1; /* arg is null and recv is not */
1200 ((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)>*/;
1201 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
1202 cltype10
= type_parser_nodes__TKwimport
.color
;
1203 idtype11
= type_parser_nodes__TKwimport
.id
;
1204 if(cltype10
>= var_new_child
->type
->table_size
) {
1207 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1210 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1211 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 261);
1214 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_new_child
; /* _n_kwimport on <self:AStdImport> */
1216 fprintf(stderr
, "Runtime error: %s", "Aborted");
1217 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 264);
1223 var12
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1224 if (var12
== NULL
) {
1225 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_name");
1226 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 268);
1229 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:AModuleName>*/;
1232 if (var_new_child
== NULL
) {
1233 var15
= 0; /* is null */
1235 var15
= 1; /* arg is null and recv is not */
1238 ((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)>*/;
1239 /* <var_new_child:nullable ANode(ANode)> isa AModuleName */
1240 cltype17
= type_parser_nodes__AModuleName
.color
;
1241 idtype18
= type_parser_nodes__AModuleName
.id
;
1242 if(cltype17
>= var_new_child
->type
->table_size
) {
1245 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1248 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1249 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 271);
1252 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_new_child
; /* _n_name on <self:AStdImport> */
1254 fprintf(stderr
, "Runtime error: %s", "Aborted");
1255 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 274);
1261 var19
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1262 if (var19
== NULL
) {
1263 var20
= 0; /* <var_old_child:ANode> cannot be null */
1265 var20
= ((short int (*)(val
*, val
*))(var19
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var19
, var_old_child
) /* == on <var19:nullable AAnnotations>*/;
1269 if (var_new_child
== NULL
) {
1270 var22
= 0; /* is null */
1272 var22
= 1; /* arg is null and recv is not */
1275 ((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)>*/;
1276 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
1277 cltype24
= type_parser_nodes__AAnnotations
.color
;
1278 idtype25
= type_parser_nodes__AAnnotations
.id
;
1279 if(cltype24
>= var_new_child
->type
->table_size
) {
1282 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1285 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1286 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 281);
1289 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AStdImport> */
1292 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var26
; /* _n_annotations on <self:AStdImport> */
1299 /* method parser_prod#AStdImport#replace_child for (self: Object, ANode, nullable ANode) */
1300 void VIRTUAL_parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1301 parser_prod__AStdImport__replace_child(self
, p0
, p1
);
1304 /* method parser_prod#AStdImport#n_visibility= for (self: AStdImport, AVisibility) */
1305 void parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1306 val
* var_node
/* var node: AVisibility */;
1308 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdImport> */
1309 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
1312 /* method parser_prod#AStdImport#n_visibility= for (self: Object, AVisibility) */
1313 void VIRTUAL_parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1314 parser_prod__AStdImport__n_visibility_61d(self
, p0
);
1317 /* method parser_prod#AStdImport#n_kwimport= for (self: AStdImport, TKwimport) */
1318 void parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1319 val
* var_node
/* var node: TKwimport */;
1321 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AStdImport> */
1322 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwimport>*/;
1325 /* method parser_prod#AStdImport#n_kwimport= for (self: Object, TKwimport) */
1326 void VIRTUAL_parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1327 parser_prod__AStdImport__n_kwimport_61d(self
, p0
);
1330 /* method parser_prod#AStdImport#n_name= for (self: AStdImport, AModuleName) */
1331 void parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1332 val
* var_node
/* var node: AModuleName */;
1334 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_node
; /* _n_name on <self:AStdImport> */
1335 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AModuleName>*/;
1338 /* method parser_prod#AStdImport#n_name= for (self: Object, AModuleName) */
1339 void VIRTUAL_parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1340 parser_prod__AStdImport__n_name_61d(self
, p0
);
1343 /* method parser_prod#AStdImport#n_annotations= for (self: AStdImport, nullable AAnnotations) */
1344 void parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1345 val
* var_node
/* var node: nullable AAnnotations */;
1346 val
* var
/* : null */;
1347 short int var1
/* : Bool */;
1349 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdImport> */
1351 if (var_node
== NULL
) {
1352 var1
= 0; /* is null */
1354 var1
= 1; /* arg is null and recv is not */
1357 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
1362 /* method parser_prod#AStdImport#n_annotations= for (self: Object, nullable AAnnotations) */
1363 void VIRTUAL_parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1364 parser_prod__AStdImport__n_annotations_61d(self
, p0
);
1367 /* method parser_prod#AStdImport#visit_all for (self: AStdImport, Visitor) */
1368 void parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1369 val
* var_v
/* var v: Visitor */;
1370 val
* var
/* : AVisibility */;
1371 val
* var1
/* : TKwimport */;
1372 val
* var2
/* : AModuleName */;
1373 val
* var3
/* : nullable AAnnotations */;
1374 val
* var4
/* : null */;
1375 short int var5
/* : Bool */;
1376 val
* var6
/* : nullable AAnnotations */;
1378 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1380 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
1381 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 316);
1384 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1385 var1
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1387 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwimport");
1388 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 317);
1391 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1392 var2
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1394 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_name");
1395 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 318);
1398 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1399 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1402 var5
= 0; /* is null */
1404 var5
= 1; /* arg is null and recv is not */
1407 var6
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1409 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1410 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 320);
1413 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var6
) /* enter_visit on <var_v:Visitor>*/;
1418 /* method parser_prod#AStdImport#visit_all for (self: Object, Visitor) */
1419 void VIRTUAL_parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1420 parser_prod__AStdImport__visit_all(self
, p0
);
1423 /* method parser_prod#ANoImport#empty_init for (self: ANoImport) */
1424 void parser_prod__ANoImport__empty_init(val
* self
) {
1427 /* method parser_prod#ANoImport#empty_init for (self: Object) */
1428 void VIRTUAL_parser_prod__ANoImport__empty_init(val
* self
) {
1429 parser_prod__ANoImport__empty_init(self
);
1432 /* method parser_prod#ANoImport#init_anoimport for (self: ANoImport, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1433 void parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1434 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1435 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1436 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
1437 var_n_visibility
= p0
;
1438 var_n_kwimport
= p1
;
1440 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ANoImport__empty_init
]))(self
) /* empty_init on <self:ANoImport>*/;
1441 if (var_n_visibility
== NULL
) {
1442 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1443 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 334);
1446 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ANoImport> */
1447 if (var_n_visibility
== NULL
) {
1448 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1449 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 335);
1452 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
1454 if (var_n_kwimport
== NULL
) {
1455 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1456 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 336);
1459 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:ANoImport> */
1460 if (var_n_kwimport
== NULL
) {
1461 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1462 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 337);
1465 ((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>*/;
1467 if (var_n_kwend
== NULL
) {
1468 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1469 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 338);
1472 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ANoImport> */
1473 if (var_n_kwend
== NULL
) {
1474 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1475 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 339);
1478 ((void (*)(val
*, val
*))(var_n_kwend
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwend
, self
) /* parent= on <var_n_kwend:nullable TKwend>*/;
1482 /* method parser_prod#ANoImport#init_anoimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1483 void VIRTUAL_parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1484 parser_prod__ANoImport__init_anoimport(self
, p0
, p1
, p2
);
1487 /* method parser_prod#ANoImport#replace_child for (self: ANoImport, ANode, nullable ANode) */
1488 void parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1489 val
* var_old_child
/* var old_child: ANode */;
1490 val
* var_new_child
/* var new_child: nullable ANode */;
1491 val
* var
/* : AVisibility */;
1492 short int var1
/* : Bool */;
1493 val
* var2
/* : null */;
1494 short int var3
/* : Bool */;
1495 short int var4
/* : Bool */;
1498 val
* var5
/* : TKwimport */;
1499 short int var6
/* : Bool */;
1500 val
* var7
/* : null */;
1501 short int var8
/* : Bool */;
1502 short int var9
/* : Bool */;
1505 val
* var12
/* : TKwend */;
1506 short int var13
/* : Bool */;
1507 val
* var14
/* : null */;
1508 short int var15
/* : Bool */;
1509 short int var16
/* : Bool */;
1514 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1516 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
1517 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 344);
1520 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AVisibility>*/;
1523 if (var_new_child
== NULL
) {
1524 var3
= 0; /* is null */
1526 var3
= 1; /* arg is null and recv is not */
1529 ((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)>*/;
1530 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
1531 cltype
= type_parser_nodes__AVisibility
.color
;
1532 idtype
= type_parser_nodes__AVisibility
.id
;
1533 if(cltype
>= var_new_child
->type
->table_size
) {
1536 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1539 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1540 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 347);
1543 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:ANoImport> */
1545 fprintf(stderr
, "Runtime error: %s", "Aborted");
1546 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 350);
1552 var5
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1554 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwimport");
1555 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 354);
1558 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwimport>*/;
1561 if (var_new_child
== NULL
) {
1562 var8
= 0; /* is null */
1564 var8
= 1; /* arg is null and recv is not */
1567 ((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)>*/;
1568 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
1569 cltype10
= type_parser_nodes__TKwimport
.color
;
1570 idtype11
= type_parser_nodes__TKwimport
.id
;
1571 if(cltype10
>= var_new_child
->type
->table_size
) {
1574 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1577 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1578 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 357);
1581 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_new_child
; /* _n_kwimport on <self:ANoImport> */
1583 fprintf(stderr
, "Runtime error: %s", "Aborted");
1584 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 360);
1590 var12
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1591 if (var12
== NULL
) {
1592 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwend");
1593 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 364);
1596 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:TKwend>*/;
1599 if (var_new_child
== NULL
) {
1600 var15
= 0; /* is null */
1602 var15
= 1; /* arg is null and recv is not */
1605 ((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)>*/;
1606 /* <var_new_child:nullable ANode(ANode)> isa TKwend */
1607 cltype17
= type_parser_nodes__TKwend
.color
;
1608 idtype18
= type_parser_nodes__TKwend
.id
;
1609 if(cltype17
>= var_new_child
->type
->table_size
) {
1612 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1615 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1616 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 367);
1619 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_new_child
; /* _n_kwend on <self:ANoImport> */
1621 fprintf(stderr
, "Runtime error: %s", "Aborted");
1622 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 370);
1630 /* method parser_prod#ANoImport#replace_child for (self: Object, ANode, nullable ANode) */
1631 void VIRTUAL_parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1632 parser_prod__ANoImport__replace_child(self
, p0
, p1
);
1635 /* method parser_prod#ANoImport#n_visibility= for (self: ANoImport, AVisibility) */
1636 void parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1637 val
* var_node
/* var node: AVisibility */;
1639 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:ANoImport> */
1640 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
1643 /* method parser_prod#ANoImport#n_visibility= for (self: Object, AVisibility) */
1644 void VIRTUAL_parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1645 parser_prod__ANoImport__n_visibility_61d(self
, p0
);
1648 /* method parser_prod#ANoImport#n_kwimport= for (self: ANoImport, TKwimport) */
1649 void parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1650 val
* var_node
/* var node: TKwimport */;
1652 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:ANoImport> */
1653 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwimport>*/;
1656 /* method parser_prod#ANoImport#n_kwimport= for (self: Object, TKwimport) */
1657 void VIRTUAL_parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1658 parser_prod__ANoImport__n_kwimport_61d(self
, p0
);
1661 /* method parser_prod#ANoImport#n_kwend= for (self: ANoImport, TKwend) */
1662 void parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1663 val
* var_node
/* var node: TKwend */;
1665 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_node
; /* _n_kwend on <self:ANoImport> */
1666 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwend>*/;
1669 /* method parser_prod#ANoImport#n_kwend= for (self: Object, TKwend) */
1670 void VIRTUAL_parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1671 parser_prod__ANoImport__n_kwend_61d(self
, p0
);
1674 /* method parser_prod#ANoImport#visit_all for (self: ANoImport, Visitor) */
1675 void parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
1676 val
* var_v
/* var v: Visitor */;
1677 val
* var
/* : AVisibility */;
1678 val
* var1
/* : TKwimport */;
1679 val
* var2
/* : TKwend */;
1681 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1683 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
1684 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 395);
1687 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1688 var1
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1690 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwimport");
1691 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 396);
1694 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1695 var2
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1697 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwend");
1698 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 397);
1701 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1704 /* method parser_prod#ANoImport#visit_all for (self: Object, Visitor) */
1705 void VIRTUAL_parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
1706 parser_prod__ANoImport__visit_all(self
, p0
);
1709 /* method parser_prod#APublicVisibility#empty_init for (self: APublicVisibility) */
1710 void parser_prod__APublicVisibility__empty_init(val
* self
) {
1713 /* method parser_prod#APublicVisibility#empty_init for (self: Object) */
1714 void VIRTUAL_parser_prod__APublicVisibility__empty_init(val
* self
) {
1715 parser_prod__APublicVisibility__empty_init(self
);
1718 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: APublicVisibility) */
1719 void parser_prod__APublicVisibility__init_apublicvisibility(val
* self
) {
1720 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__APublicVisibility__empty_init
]))(self
) /* empty_init on <self:APublicVisibility>*/;
1723 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: Object) */
1724 void VIRTUAL_parser_prod__APublicVisibility__init_apublicvisibility(val
* self
) {
1725 parser_prod__APublicVisibility__init_apublicvisibility(self
);
1728 /* method parser_prod#APublicVisibility#replace_child for (self: APublicVisibility, ANode, nullable ANode) */
1729 void parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1730 val
* var_old_child
/* var old_child: ANode */;
1731 val
* var_new_child
/* var new_child: nullable ANode */;
1736 /* method parser_prod#APublicVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1737 void VIRTUAL_parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1738 parser_prod__APublicVisibility__replace_child(self
, p0
, p1
);
1741 /* method parser_prod#APublicVisibility#visit_all for (self: APublicVisibility, Visitor) */
1742 void parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
1743 val
* var_v
/* var v: Visitor */;
1747 /* method parser_prod#APublicVisibility#visit_all for (self: Object, Visitor) */
1748 void VIRTUAL_parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
1749 parser_prod__APublicVisibility__visit_all(self
, p0
);
1752 /* method parser_prod#APrivateVisibility#empty_init for (self: APrivateVisibility) */
1753 void parser_prod__APrivateVisibility__empty_init(val
* self
) {
1756 /* method parser_prod#APrivateVisibility#empty_init for (self: Object) */
1757 void VIRTUAL_parser_prod__APrivateVisibility__empty_init(val
* self
) {
1758 parser_prod__APrivateVisibility__empty_init(self
);
1761 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: APrivateVisibility, nullable TKwprivate) */
1762 void parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
1763 val
* var_n_kwprivate
/* var n_kwprivate: nullable TKwprivate */;
1764 var_n_kwprivate
= p0
;
1765 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__APrivateVisibility__empty_init
]))(self
) /* empty_init on <self:APrivateVisibility>*/;
1766 if (var_n_kwprivate
== NULL
) {
1767 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1768 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 426);
1771 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_n_kwprivate
; /* _n_kwprivate on <self:APrivateVisibility> */
1772 if (var_n_kwprivate
== NULL
) {
1773 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1774 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 427);
1777 ((void (*)(val
*, val
*))(var_n_kwprivate
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwprivate
, self
) /* parent= on <var_n_kwprivate:nullable TKwprivate>*/;
1781 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: Object, nullable TKwprivate) */
1782 void VIRTUAL_parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
1783 parser_prod__APrivateVisibility__init_aprivatevisibility(self
, p0
);
1786 /* method parser_prod#APrivateVisibility#replace_child for (self: APrivateVisibility, ANode, nullable ANode) */
1787 void parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1788 val
* var_old_child
/* var old_child: ANode */;
1789 val
* var_new_child
/* var new_child: nullable ANode */;
1790 val
* var
/* : TKwprivate */;
1791 short int var1
/* : Bool */;
1792 val
* var2
/* : null */;
1793 short int var3
/* : Bool */;
1794 short int var4
/* : Bool */;
1799 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
1801 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwprivate");
1802 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 432);
1805 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwprivate>*/;
1808 if (var_new_child
== NULL
) {
1809 var3
= 0; /* is null */
1811 var3
= 1; /* arg is null and recv is not */
1814 ((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)>*/;
1815 /* <var_new_child:nullable ANode(ANode)> isa TKwprivate */
1816 cltype
= type_parser_nodes__TKwprivate
.color
;
1817 idtype
= type_parser_nodes__TKwprivate
.id
;
1818 if(cltype
>= var_new_child
->type
->table_size
) {
1821 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1824 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1825 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 435);
1828 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_new_child
; /* _n_kwprivate on <self:APrivateVisibility> */
1830 fprintf(stderr
, "Runtime error: %s", "Aborted");
1831 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 438);
1839 /* method parser_prod#APrivateVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1840 void VIRTUAL_parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1841 parser_prod__APrivateVisibility__replace_child(self
, p0
, p1
);
1844 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: APrivateVisibility, TKwprivate) */
1845 void parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
1846 val
* var_node
/* var node: TKwprivate */;
1848 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_node
; /* _n_kwprivate on <self:APrivateVisibility> */
1849 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwprivate>*/;
1852 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: Object, TKwprivate) */
1853 void VIRTUAL_parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
1854 parser_prod__APrivateVisibility__n_kwprivate_61d(self
, p0
);
1857 /* method parser_prod#APrivateVisibility#visit_all for (self: APrivateVisibility, Visitor) */
1858 void parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
1859 val
* var_v
/* var v: Visitor */;
1860 val
* var
/* : TKwprivate */;
1862 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
1864 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwprivate");
1865 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 453);
1868 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1871 /* method parser_prod#APrivateVisibility#visit_all for (self: Object, Visitor) */
1872 void VIRTUAL_parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
1873 parser_prod__APrivateVisibility__visit_all(self
, p0
);
1876 /* method parser_prod#AProtectedVisibility#empty_init for (self: AProtectedVisibility) */
1877 void parser_prod__AProtectedVisibility__empty_init(val
* self
) {
1880 /* method parser_prod#AProtectedVisibility#empty_init for (self: Object) */
1881 void VIRTUAL_parser_prod__AProtectedVisibility__empty_init(val
* self
) {
1882 parser_prod__AProtectedVisibility__empty_init(self
);
1885 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: AProtectedVisibility, nullable TKwprotected) */
1886 void parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
1887 val
* var_n_kwprotected
/* var n_kwprotected: nullable TKwprotected */;
1888 var_n_kwprotected
= p0
;
1889 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AProtectedVisibility__empty_init
]))(self
) /* empty_init on <self:AProtectedVisibility>*/;
1890 if (var_n_kwprotected
== NULL
) {
1891 fprintf(stderr
, "Runtime error: %s", "Cast failed");
1892 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 464);
1895 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_n_kwprotected
; /* _n_kwprotected on <self:AProtectedVisibility> */
1896 if (var_n_kwprotected
== NULL
) {
1897 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
1898 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 465);
1901 ((void (*)(val
*, val
*))(var_n_kwprotected
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwprotected
, self
) /* parent= on <var_n_kwprotected:nullable TKwprotected>*/;
1905 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: Object, nullable TKwprotected) */
1906 void VIRTUAL_parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
1907 parser_prod__AProtectedVisibility__init_aprotectedvisibility(self
, p0
);
1910 /* method parser_prod#AProtectedVisibility#replace_child for (self: AProtectedVisibility, ANode, nullable ANode) */
1911 void parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1912 val
* var_old_child
/* var old_child: ANode */;
1913 val
* var_new_child
/* var new_child: nullable ANode */;
1914 val
* var
/* : TKwprotected */;
1915 short int var1
/* : Bool */;
1916 val
* var2
/* : null */;
1917 short int var3
/* : Bool */;
1918 short int var4
/* : Bool */;
1923 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
1925 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwprotected");
1926 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 470);
1929 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwprotected>*/;
1932 if (var_new_child
== NULL
) {
1933 var3
= 0; /* is null */
1935 var3
= 1; /* arg is null and recv is not */
1938 ((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)>*/;
1939 /* <var_new_child:nullable ANode(ANode)> isa TKwprotected */
1940 cltype
= type_parser_nodes__TKwprotected
.color
;
1941 idtype
= type_parser_nodes__TKwprotected
.id
;
1942 if(cltype
>= var_new_child
->type
->table_size
) {
1945 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1948 fprintf(stderr
, "Runtime error: %s", "Assert failed");
1949 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 473);
1952 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_new_child
; /* _n_kwprotected on <self:AProtectedVisibility> */
1954 fprintf(stderr
, "Runtime error: %s", "Aborted");
1955 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 476);
1963 /* method parser_prod#AProtectedVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1964 void VIRTUAL_parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1965 parser_prod__AProtectedVisibility__replace_child(self
, p0
, p1
);
1968 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: AProtectedVisibility, TKwprotected) */
1969 void parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
1970 val
* var_node
/* var node: TKwprotected */;
1972 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_node
; /* _n_kwprotected on <self:AProtectedVisibility> */
1973 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwprotected>*/;
1976 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: Object, TKwprotected) */
1977 void VIRTUAL_parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
1978 parser_prod__AProtectedVisibility__n_kwprotected_61d(self
, p0
);
1981 /* method parser_prod#AProtectedVisibility#visit_all for (self: AProtectedVisibility, Visitor) */
1982 void parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
1983 val
* var_v
/* var v: Visitor */;
1984 val
* var
/* : TKwprotected */;
1986 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
1988 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwprotected");
1989 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 491);
1992 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1995 /* method parser_prod#AProtectedVisibility#visit_all for (self: Object, Visitor) */
1996 void VIRTUAL_parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
1997 parser_prod__AProtectedVisibility__visit_all(self
, p0
);
2000 /* method parser_prod#AIntrudeVisibility#empty_init for (self: AIntrudeVisibility) */
2001 void parser_prod__AIntrudeVisibility__empty_init(val
* self
) {
2004 /* method parser_prod#AIntrudeVisibility#empty_init for (self: Object) */
2005 void VIRTUAL_parser_prod__AIntrudeVisibility__empty_init(val
* self
) {
2006 parser_prod__AIntrudeVisibility__empty_init(self
);
2009 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: AIntrudeVisibility, nullable TKwintrude) */
2010 void parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
2011 val
* var_n_kwintrude
/* var n_kwintrude: nullable TKwintrude */;
2012 var_n_kwintrude
= p0
;
2013 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AIntrudeVisibility__empty_init
]))(self
) /* empty_init on <self:AIntrudeVisibility>*/;
2014 if (var_n_kwintrude
== NULL
) {
2015 fprintf(stderr
, "Runtime error: %s", "Cast failed");
2016 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 502);
2019 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_n_kwintrude
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2020 if (var_n_kwintrude
== NULL
) {
2021 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
2022 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 503);
2025 ((void (*)(val
*, val
*))(var_n_kwintrude
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwintrude
, self
) /* parent= on <var_n_kwintrude:nullable TKwintrude>*/;
2029 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: Object, nullable TKwintrude) */
2030 void VIRTUAL_parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
2031 parser_prod__AIntrudeVisibility__init_aintrudevisibility(self
, p0
);
2034 /* method parser_prod#AIntrudeVisibility#replace_child for (self: AIntrudeVisibility, ANode, nullable ANode) */
2035 void parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2036 val
* var_old_child
/* var old_child: ANode */;
2037 val
* var_new_child
/* var new_child: nullable ANode */;
2038 val
* var
/* : TKwintrude */;
2039 short int var1
/* : Bool */;
2040 val
* var2
/* : null */;
2041 short int var3
/* : Bool */;
2042 short int var4
/* : Bool */;
2047 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2049 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2050 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 508);
2053 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwintrude>*/;
2056 if (var_new_child
== NULL
) {
2057 var3
= 0; /* is null */
2059 var3
= 1; /* arg is null and recv is not */
2062 ((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)>*/;
2063 /* <var_new_child:nullable ANode(ANode)> isa TKwintrude */
2064 cltype
= type_parser_nodes__TKwintrude
.color
;
2065 idtype
= type_parser_nodes__TKwintrude
.id
;
2066 if(cltype
>= var_new_child
->type
->table_size
) {
2069 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2072 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2073 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 511);
2076 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_new_child
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2078 fprintf(stderr
, "Runtime error: %s", "Aborted");
2079 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 514);
2087 /* method parser_prod#AIntrudeVisibility#replace_child for (self: Object, ANode, nullable ANode) */
2088 void VIRTUAL_parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
2089 parser_prod__AIntrudeVisibility__replace_child(self
, p0
, p1
);
2092 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: AIntrudeVisibility, TKwintrude) */
2093 void parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
2094 val
* var_node
/* var node: TKwintrude */;
2096 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_node
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2097 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwintrude>*/;
2100 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: Object, TKwintrude) */
2101 void VIRTUAL_parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
2102 parser_prod__AIntrudeVisibility__n_kwintrude_61d(self
, p0
);
2105 /* method parser_prod#AIntrudeVisibility#visit_all for (self: AIntrudeVisibility, Visitor) */
2106 void parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2107 val
* var_v
/* var v: Visitor */;
2108 val
* var
/* : TKwintrude */;
2110 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2112 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwintrude");
2113 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 529);
2116 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
2119 /* method parser_prod#AIntrudeVisibility#visit_all for (self: Object, Visitor) */
2120 void VIRTUAL_parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2121 parser_prod__AIntrudeVisibility__visit_all(self
, p0
);
2124 /* method parser_prod#AStdClassdef#empty_init for (self: AStdClassdef) */
2125 void parser_prod__AStdClassdef__empty_init(val
* self
) {
2128 /* method parser_prod#AStdClassdef#empty_init for (self: Object) */
2129 void VIRTUAL_parser_prod__AStdClassdef__empty_init(val
* self
) {
2130 parser_prod__AStdClassdef__empty_init(self
);
2133 /* method parser_prod#AStdClassdef#init_astdclassdef for (self: AStdClassdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AClasskind, nullable TClassid, Collection[Object], nullable AAnnotations, nullable AExternCodeBlock, Collection[Object], Collection[Object], nullable TKwend) */
2134 void parser_prod__AStdClassdef__init_astdclassdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
) {
2135 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2136 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2137 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2138 val
* var_n_classkind
/* var n_classkind: nullable AClasskind */;
2139 val
* var_n_id
/* var n_id: nullable TClassid */;
2140 val
* var_n_formaldefs
/* var n_formaldefs: Collection[Object] */;
2141 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2142 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
2143 val
* var_n_superclasses
/* var n_superclasses: Collection[Object] */;
2144 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
2145 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
2146 val
* var
/* : null */;
2147 short int var1
/* : Bool */;
2148 val
* var2
/* : null */;
2149 short int var3
/* : Bool */;
2150 val
* var4
/* : null */;
2151 short int var5
/* : Bool */;
2152 val
* var6
/* : Iterator[nullable Object] */;
2153 short int var7
/* : Bool */;
2154 val
* var8
/* : nullable Object */;
2155 val
* var_n
/* var n: Object */;
2156 short int var9
/* : Bool */;
2159 val
* var10
/* : ANodes[AFormaldef] */;
2160 val
* var11
/* : null */;
2161 short int var12
/* : Bool */;
2162 val
* var13
/* : null */;
2163 short int var14
/* : Bool */;
2164 val
* var15
/* : Iterator[nullable Object] */;
2165 short int var16
/* : Bool */;
2166 val
* var17
/* : nullable Object */;
2167 val
* var_n18
/* var n: Object */;
2168 short int var19
/* : Bool */;
2171 val
* var22
/* : ANodes[ASuperclass] */;
2172 val
* var24
/* : Iterator[nullable Object] */;
2173 short int var25
/* : Bool */;
2174 val
* var26
/* : nullable Object */;
2175 val
* var_n27
/* var n: Object */;
2176 short int var28
/* : Bool */;
2179 val
* var31
/* : ANodes[APropdef] */;
2182 var_n_visibility
= p2
;
2183 var_n_classkind
= p3
;
2185 var_n_formaldefs
= p5
;
2186 var_n_annotations
= p6
;
2187 var_n_extern_code_block
= p7
;
2188 var_n_superclasses
= p8
;
2189 var_n_propdefs
= p9
;
2191 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AStdClassdef__empty_init
]))(self
) /* empty_init on <self:AStdClassdef>*/;
2192 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AStdClassdef> */
2194 if (var_n_doc
== NULL
) {
2195 var1
= 0; /* is null */
2197 var1
= 1; /* arg is null and recv is not */
2200 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
2203 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AStdClassdef> */
2205 if (var_n_kwredef
== NULL
) {
2206 var3
= 0; /* is null */
2208 var3
= 1; /* arg is null and recv is not */
2211 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
2214 if (var_n_visibility
== NULL
) {
2215 fprintf(stderr
, "Runtime error: %s", "Cast failed");
2216 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 558);
2219 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdClassdef> */
2220 if (var_n_visibility
== NULL
) {
2221 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
2222 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 559);
2225 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
2227 if (var_n_classkind
== NULL
) {
2228 fprintf(stderr
, "Runtime error: %s", "Cast failed");
2229 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 560);
2232 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_n_classkind
; /* _n_classkind on <self:AStdClassdef> */
2233 if (var_n_classkind
== NULL
) {
2234 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
2235 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 561);
2238 ((void (*)(val
*, val
*))(var_n_classkind
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_classkind
, self
) /* parent= on <var_n_classkind:nullable AClasskind>*/;
2240 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_n_id
; /* _n_id on <self:AStdClassdef> */
2242 if (var_n_id
== NULL
) {
2243 var5
= 0; /* is null */
2245 var5
= 1; /* arg is null and recv is not */
2248 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TClassid(TClassid)>*/;
2251 var6
= ((val
* (*)(val
*))(var_n_formaldefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_formaldefs
) /* iterator on <var_n_formaldefs:Collection[Object]>*/;
2253 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
2255 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
2257 /* <var_n:Object> isa AFormaldef */
2258 cltype
= type_parser_nodes__AFormaldef
.color
;
2259 idtype
= type_parser_nodes__AFormaldef
.id
;
2260 if(cltype
>= var_n
->type
->table_size
) {
2263 var9
= var_n
->type
->type_table
[cltype
] == idtype
;
2266 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2267 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 567);
2270 var10
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2271 if (var10
== NULL
) {
2272 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2273 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 568);
2276 ((void (*)(val
*, val
*))(var10
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var10
, var_n
) /* add on <var10:ANodes[AFormaldef]>*/;
2277 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AFormaldef)>*/;
2278 CONTINUE_label
: (void)0;
2279 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
2281 BREAK_label
: (void)0;
2282 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdClassdef> */
2284 if (var_n_annotations
== NULL
) {
2285 var12
= 0; /* is null */
2287 var12
= 1; /* arg is null and recv is not */
2290 ((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)>*/;
2293 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AStdClassdef> */
2295 if (var_n_extern_code_block
== NULL
) {
2296 var14
= 0; /* is null */
2298 var14
= 1; /* arg is null and recv is not */
2301 ((void (*)(val
*, val
*))(var_n_extern_code_block
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_extern_code_block
, self
) /* parent= on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
2304 var15
= ((val
* (*)(val
*))(var_n_superclasses
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_superclasses
) /* iterator on <var_n_superclasses:Collection[Object]>*/;
2306 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
2308 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
2310 /* <var_n18:Object> isa ASuperclass */
2311 cltype20
= type_parser_nodes__ASuperclass
.color
;
2312 idtype21
= type_parser_nodes__ASuperclass
.id
;
2313 if(cltype20
>= var_n18
->type
->table_size
) {
2316 var19
= var_n18
->type
->type_table
[cltype20
] == idtype21
;
2319 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2320 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 580);
2323 var22
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2324 if (var22
== NULL
) {
2325 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
2326 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 581);
2329 ((void (*)(val
*, val
*))(var22
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var22
, var_n18
) /* add on <var22:ANodes[ASuperclass]>*/;
2330 ((void (*)(val
*, val
*))(var_n18
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n18
, self
) /* parent= on <var_n18:Object(ASuperclass)>*/;
2331 CONTINUE_label23
: (void)0;
2332 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
2334 BREAK_label23
: (void)0;
2335 var24
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
2337 var25
= ((short int (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var24
) /* is_ok on <var24:Iterator[nullable Object]>*/;
2339 var26
= ((val
* (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var24
) /* item on <var24:Iterator[nullable Object]>*/;
2341 /* <var_n27:Object> isa APropdef */
2342 cltype29
= type_parser_nodes__APropdef
.color
;
2343 idtype30
= type_parser_nodes__APropdef
.id
;
2344 if(cltype29
>= var_n27
->type
->table_size
) {
2347 var28
= var_n27
->type
->type_table
[cltype29
] == idtype30
;
2350 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2351 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 585);
2354 var31
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2355 if (var31
== NULL
) {
2356 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
2357 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 586);
2360 ((void (*)(val
*, val
*))(var31
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var31
, var_n27
) /* add on <var31:ANodes[APropdef]>*/;
2361 ((void (*)(val
*, val
*))(var_n27
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n27
, self
) /* parent= on <var_n27:Object(APropdef)>*/;
2362 CONTINUE_label32
: (void)0;
2363 ((void (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var24
) /* next on <var24:Iterator[nullable Object]>*/;
2365 BREAK_label32
: (void)0;
2366 if (var_n_kwend
== NULL
) {
2367 fprintf(stderr
, "Runtime error: %s", "Cast failed");
2368 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 589);
2371 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AStdClassdef> */
2372 if (var_n_kwend
== NULL
) {
2373 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
2374 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 590);
2377 ((void (*)(val
*, val
*))(var_n_kwend
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwend
, self
) /* parent= on <var_n_kwend:nullable TKwend>*/;
2381 /* method parser_prod#AStdClassdef#init_astdclassdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AClasskind, nullable TClassid, Collection[Object], nullable AAnnotations, nullable AExternCodeBlock, Collection[Object], Collection[Object], nullable TKwend) */
2382 void VIRTUAL_parser_prod__AStdClassdef__init_astdclassdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
) {
2383 parser_prod__AStdClassdef__init_astdclassdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
);
2386 /* method parser_prod#AStdClassdef#replace_child for (self: AStdClassdef, ANode, nullable ANode) */
2387 void parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
2388 val
* var_old_child
/* var old_child: ANode */;
2389 val
* var_new_child
/* var new_child: nullable ANode */;
2390 val
* var
/* : nullable ADoc */;
2391 short int var1
/* : Bool */;
2392 val
* var2
/* : null */;
2393 short int var3
/* : Bool */;
2394 short int var4
/* : Bool */;
2397 val
* var5
/* : null */;
2398 val
* var6
/* : nullable TKwredef */;
2399 short int var7
/* : Bool */;
2400 val
* var8
/* : null */;
2401 short int var9
/* : Bool */;
2402 short int var10
/* : Bool */;
2405 val
* var13
/* : null */;
2406 val
* var14
/* : AVisibility */;
2407 short int var15
/* : Bool */;
2408 val
* var16
/* : null */;
2409 short int var17
/* : Bool */;
2410 short int var18
/* : Bool */;
2413 val
* var21
/* : AClasskind */;
2414 short int var22
/* : Bool */;
2415 val
* var23
/* : null */;
2416 short int var24
/* : Bool */;
2417 short int var25
/* : Bool */;
2420 val
* var28
/* : nullable TClassid */;
2421 short int var29
/* : Bool */;
2422 val
* var30
/* : null */;
2423 short int var31
/* : Bool */;
2424 short int var32
/* : Bool */;
2427 val
* var35
/* : null */;
2428 val
* var36
/* : Range[Int] */;
2429 long var37
/* : Int */;
2430 val
* var38
/* : ANodes[AFormaldef] */;
2431 long var39
/* : Int */;
2432 val
* var40
/* : Discrete */;
2433 val
* var41
/* : Discrete */;
2434 val
* var42
/* : Iterator[nullable Object] */;
2435 short int var43
/* : Bool */;
2436 val
* var44
/* : nullable Object */;
2437 long var_i
/* var i: Int */;
2438 long var45
/* : Int */;
2439 val
* var46
/* : ANodes[AFormaldef] */;
2440 val
* var47
/* : nullable Object */;
2441 short int var48
/* : Bool */;
2442 val
* var49
/* : null */;
2443 short int var50
/* : Bool */;
2444 short int var51
/* : Bool */;
2447 val
* var54
/* : ANodes[AFormaldef] */;
2448 val
* var55
/* : ANodes[AFormaldef] */;
2449 val
* var56
/* : nullable AAnnotations */;
2450 short int var57
/* : Bool */;
2451 val
* var58
/* : null */;
2452 short int var59
/* : Bool */;
2453 short int var60
/* : Bool */;
2456 val
* var63
/* : null */;
2457 val
* var64
/* : nullable AExternCodeBlock */;
2458 short int var65
/* : Bool */;
2459 val
* var66
/* : null */;
2460 short int var67
/* : Bool */;
2461 short int var68
/* : Bool */;
2464 val
* var71
/* : null */;
2465 val
* var72
/* : Range[Int] */;
2466 long var73
/* : Int */;
2467 val
* var74
/* : ANodes[ASuperclass] */;
2468 long var75
/* : Int */;
2469 val
* var76
/* : Discrete */;
2470 val
* var77
/* : Discrete */;
2471 val
* var78
/* : Iterator[nullable Object] */;
2472 short int var79
/* : Bool */;
2473 val
* var80
/* : nullable Object */;
2474 long var_i81
/* var i: Int */;
2475 long var82
/* : Int */;
2476 val
* var83
/* : ANodes[ASuperclass] */;
2477 val
* var84
/* : nullable Object */;
2478 short int var85
/* : Bool */;
2479 val
* var86
/* : null */;
2480 short int var87
/* : Bool */;
2481 short int var88
/* : Bool */;
2484 val
* var91
/* : ANodes[ASuperclass] */;
2485 val
* var92
/* : ANodes[ASuperclass] */;
2486 val
* var94
/* : Range[Int] */;
2487 long var95
/* : Int */;
2488 val
* var96
/* : ANodes[APropdef] */;
2489 long var97
/* : Int */;
2490 val
* var98
/* : Discrete */;
2491 val
* var99
/* : Discrete */;
2492 val
* var100
/* : Iterator[nullable Object] */;
2493 short int var101
/* : Bool */;
2494 val
* var102
/* : nullable Object */;
2495 long var_i103
/* var i: Int */;
2496 long var104
/* : Int */;
2497 val
* var105
/* : ANodes[APropdef] */;
2498 val
* var106
/* : nullable Object */;
2499 short int var107
/* : Bool */;
2500 val
* var108
/* : null */;
2501 short int var109
/* : Bool */;
2502 short int var110
/* : Bool */;
2505 val
* var113
/* : ANodes[APropdef] */;
2506 val
* var114
/* : ANodes[APropdef] */;
2507 val
* var116
/* : TKwend */;
2508 short int var117
/* : Bool */;
2509 val
* var118
/* : null */;
2510 short int var119
/* : Bool */;
2511 short int var120
/* : Bool */;
2516 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
2518 var1
= 0; /* <var_old_child:ANode> cannot be null */
2520 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
2524 if (var_new_child
== NULL
) {
2525 var3
= 0; /* is null */
2527 var3
= 1; /* arg is null and recv is not */
2530 ((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)>*/;
2531 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
2532 cltype
= type_parser_nodes__ADoc
.color
;
2533 idtype
= type_parser_nodes__ADoc
.id
;
2534 if(cltype
>= var_new_child
->type
->table_size
) {
2537 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2540 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2541 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 598);
2544 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AStdClassdef> */
2547 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var5
; /* _n_doc on <self:AStdClassdef> */
2552 var6
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
2554 var7
= 0; /* <var_old_child:ANode> cannot be null */
2556 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
2560 if (var_new_child
== NULL
) {
2561 var9
= 0; /* is null */
2563 var9
= 1; /* arg is null and recv is not */
2566 ((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)>*/;
2567 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
2568 cltype11
= type_parser_nodes__TKwredef
.color
;
2569 idtype12
= type_parser_nodes__TKwredef
.id
;
2570 if(cltype11
>= var_new_child
->type
->table_size
) {
2573 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
2576 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2577 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 608);
2580 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AStdClassdef> */
2583 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AStdClassdef> */
2588 var14
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
2589 if (var14
== NULL
) {
2590 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
2591 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 615);
2594 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:AVisibility>*/;
2597 if (var_new_child
== NULL
) {
2598 var17
= 0; /* is null */
2600 var17
= 1; /* arg is null and recv is not */
2603 ((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)>*/;
2604 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
2605 cltype19
= type_parser_nodes__AVisibility
.color
;
2606 idtype20
= type_parser_nodes__AVisibility
.id
;
2607 if(cltype19
>= var_new_child
->type
->table_size
) {
2610 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
2613 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2614 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 618);
2617 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AStdClassdef> */
2619 fprintf(stderr
, "Runtime error: %s", "Aborted");
2620 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 621);
2626 var21
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
2627 if (var21
== NULL
) {
2628 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classkind");
2629 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 625);
2632 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:AClasskind>*/;
2635 if (var_new_child
== NULL
) {
2636 var24
= 0; /* is null */
2638 var24
= 1; /* arg is null and recv is not */
2641 ((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)>*/;
2642 /* <var_new_child:nullable ANode(ANode)> isa AClasskind */
2643 cltype26
= type_parser_nodes__AClasskind
.color
;
2644 idtype27
= type_parser_nodes__AClasskind
.id
;
2645 if(cltype26
>= var_new_child
->type
->table_size
) {
2648 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
2651 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2652 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 628);
2655 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_new_child
; /* _n_classkind on <self:AStdClassdef> */
2657 fprintf(stderr
, "Runtime error: %s", "Aborted");
2658 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 631);
2664 var28
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
2665 if (var28
== NULL
) {
2666 var29
= 0; /* <var_old_child:ANode> cannot be null */
2668 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable TClassid>*/;
2672 if (var_new_child
== NULL
) {
2673 var31
= 0; /* is null */
2675 var31
= 1; /* arg is null and recv is not */
2678 ((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)>*/;
2679 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
2680 cltype33
= type_parser_nodes__TClassid
.color
;
2681 idtype34
= type_parser_nodes__TClassid
.id
;
2682 if(cltype33
>= var_new_child
->type
->table_size
) {
2685 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
2688 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2689 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 638);
2692 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_new_child
; /* _n_id on <self:AStdClassdef> */
2695 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var35
; /* _n_id on <self:AStdClassdef> */
2700 var36
= NEW_range__Range(&type_range__Rangekernel__Int
);
2702 var38
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2703 if (var38
== NULL
) {
2704 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2705 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 645);
2708 var39
= ((long (*)(val
*))(var38
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var38
) /* length on <var38:ANodes[AFormaldef]>*/;
2709 var40
= BOX_kernel__Int(var37
); /* autobox from Int to Discrete */
2710 var41
= BOX_kernel__Int(var39
); /* autobox from Int to Discrete */
2711 ((void (*)(val
*, val
*, val
*))(var36
->class->vft
[COLOR_range__Range__without_last
]))(var36
, var40
, var41
) /* without_last on <var36:Range[Int]>*/;
2712 CHECK_NEW_range__Range(var36
);
2713 var42
= ((val
* (*)(val
*))(var36
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var36
) /* iterator on <var36:Range[Int]>*/;
2715 var43
= ((short int (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var42
) /* is_ok on <var42:Iterator[nullable Object]>*/;
2717 var44
= ((val
* (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var42
) /* item on <var42:Iterator[nullable Object]>*/;
2718 var45
= ((struct instance_kernel__Int
*)var44
)->value
; /* autounbox from nullable Object to Int */;
2720 var46
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2721 if (var46
== NULL
) {
2722 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2723 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 646);
2726 var47
= ((val
* (*)(val
*, long))(var46
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var46
, var_i
) /* [] on <var46:ANodes[AFormaldef]>*/;
2727 var48
= ((short int (*)(val
*, val
*))(var47
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var47
, var_old_child
) /* == on <var47:nullable Object(AFormaldef)>*/;
2730 if (var_new_child
== NULL
) {
2731 var50
= 0; /* is null */
2733 var50
= 1; /* arg is null and recv is not */
2736 /* <var_new_child:nullable ANode(ANode)> isa AFormaldef */
2737 cltype52
= type_parser_nodes__AFormaldef
.color
;
2738 idtype53
= type_parser_nodes__AFormaldef
.id
;
2739 if(cltype52
>= var_new_child
->type
->table_size
) {
2742 var51
= var_new_child
->type
->type_table
[cltype52
] == idtype53
;
2745 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2746 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 648);
2749 var54
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2750 if (var54
== NULL
) {
2751 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2752 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 649);
2755 ((void (*)(val
*, long, val
*))(var54
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var54
, var_i
, var_new_child
) /* []= on <var54:ANodes[AFormaldef]>*/;
2756 ((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(AFormaldef)>*/;
2758 var55
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2759 if (var55
== NULL
) {
2760 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
2761 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 652);
2764 ((void (*)(val
*, long))(var55
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var55
, var_i
) /* remove_at on <var55:ANodes[AFormaldef]>*/;
2769 CONTINUE_label
: (void)0;
2770 ((void (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var42
) /* next on <var42:Iterator[nullable Object]>*/;
2772 BREAK_label
: (void)0;
2773 var56
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
2774 if (var56
== NULL
) {
2775 var57
= 0; /* <var_old_child:ANode> cannot be null */
2777 var57
= ((short int (*)(val
*, val
*))(var56
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var56
, var_old_child
) /* == on <var56:nullable AAnnotations>*/;
2781 if (var_new_child
== NULL
) {
2782 var59
= 0; /* is null */
2784 var59
= 1; /* arg is null and recv is not */
2787 ((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)>*/;
2788 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
2789 cltype61
= type_parser_nodes__AAnnotations
.color
;
2790 idtype62
= type_parser_nodes__AAnnotations
.id
;
2791 if(cltype61
>= var_new_child
->type
->table_size
) {
2794 var60
= var_new_child
->type
->type_table
[cltype61
] == idtype62
;
2797 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2798 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 660);
2801 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AStdClassdef> */
2804 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var63
; /* _n_annotations on <self:AStdClassdef> */
2809 var64
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
2810 if (var64
== NULL
) {
2811 var65
= 0; /* <var_old_child:ANode> cannot be null */
2813 var65
= ((short int (*)(val
*, val
*))(var64
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var64
, var_old_child
) /* == on <var64:nullable AExternCodeBlock>*/;
2817 if (var_new_child
== NULL
) {
2818 var67
= 0; /* is null */
2820 var67
= 1; /* arg is null and recv is not */
2823 ((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)>*/;
2824 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
2825 cltype69
= type_parser_nodes__AExternCodeBlock
.color
;
2826 idtype70
= type_parser_nodes__AExternCodeBlock
.id
;
2827 if(cltype69
>= var_new_child
->type
->table_size
) {
2830 var68
= var_new_child
->type
->type_table
[cltype69
] == idtype70
;
2833 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2834 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 670);
2837 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_new_child
; /* _n_extern_code_block on <self:AStdClassdef> */
2840 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var71
; /* _n_extern_code_block on <self:AStdClassdef> */
2845 var72
= NEW_range__Range(&type_range__Rangekernel__Int
);
2847 var74
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2848 if (var74
== NULL
) {
2849 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
2850 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 677);
2853 var75
= ((long (*)(val
*))(var74
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var74
) /* length on <var74:ANodes[ASuperclass]>*/;
2854 var76
= BOX_kernel__Int(var73
); /* autobox from Int to Discrete */
2855 var77
= BOX_kernel__Int(var75
); /* autobox from Int to Discrete */
2856 ((void (*)(val
*, val
*, val
*))(var72
->class->vft
[COLOR_range__Range__without_last
]))(var72
, var76
, var77
) /* without_last on <var72:Range[Int]>*/;
2857 CHECK_NEW_range__Range(var72
);
2858 var78
= ((val
* (*)(val
*))(var72
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var72
) /* iterator on <var72:Range[Int]>*/;
2860 var79
= ((short int (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var78
) /* is_ok on <var78:Iterator[nullable Object]>*/;
2862 var80
= ((val
* (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var78
) /* item on <var78:Iterator[nullable Object]>*/;
2863 var82
= ((struct instance_kernel__Int
*)var80
)->value
; /* autounbox from nullable Object to Int */;
2865 var83
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2866 if (var83
== NULL
) {
2867 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
2868 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 678);
2871 var84
= ((val
* (*)(val
*, long))(var83
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var83
, var_i81
) /* [] on <var83:ANodes[ASuperclass]>*/;
2872 var85
= ((short int (*)(val
*, val
*))(var84
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var84
, var_old_child
) /* == on <var84:nullable Object(ASuperclass)>*/;
2875 if (var_new_child
== NULL
) {
2876 var87
= 0; /* is null */
2878 var87
= 1; /* arg is null and recv is not */
2881 /* <var_new_child:nullable ANode(ANode)> isa ASuperclass */
2882 cltype89
= type_parser_nodes__ASuperclass
.color
;
2883 idtype90
= type_parser_nodes__ASuperclass
.id
;
2884 if(cltype89
>= var_new_child
->type
->table_size
) {
2887 var88
= var_new_child
->type
->type_table
[cltype89
] == idtype90
;
2890 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2891 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 680);
2894 var91
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2895 if (var91
== NULL
) {
2896 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
2897 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 681);
2900 ((void (*)(val
*, long, val
*))(var91
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var91
, var_i81
, var_new_child
) /* []= on <var91:ANodes[ASuperclass]>*/;
2901 ((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(ASuperclass)>*/;
2903 var92
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2904 if (var92
== NULL
) {
2905 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
2906 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 684);
2909 ((void (*)(val
*, long))(var92
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var92
, var_i81
) /* remove_at on <var92:ANodes[ASuperclass]>*/;
2914 CONTINUE_label93
: (void)0;
2915 ((void (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var78
) /* next on <var78:Iterator[nullable Object]>*/;
2917 BREAK_label93
: (void)0;
2918 var94
= NEW_range__Range(&type_range__Rangekernel__Int
);
2920 var96
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2921 if (var96
== NULL
) {
2922 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
2923 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 689);
2926 var97
= ((long (*)(val
*))(var96
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var96
) /* length on <var96:ANodes[APropdef]>*/;
2927 var98
= BOX_kernel__Int(var95
); /* autobox from Int to Discrete */
2928 var99
= BOX_kernel__Int(var97
); /* autobox from Int to Discrete */
2929 ((void (*)(val
*, val
*, val
*))(var94
->class->vft
[COLOR_range__Range__without_last
]))(var94
, var98
, var99
) /* without_last on <var94:Range[Int]>*/;
2930 CHECK_NEW_range__Range(var94
);
2931 var100
= ((val
* (*)(val
*))(var94
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var94
) /* iterator on <var94:Range[Int]>*/;
2933 var101
= ((short int (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var100
) /* is_ok on <var100:Iterator[nullable Object]>*/;
2935 var102
= ((val
* (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var100
) /* item on <var100:Iterator[nullable Object]>*/;
2936 var104
= ((struct instance_kernel__Int
*)var102
)->value
; /* autounbox from nullable Object to Int */;
2938 var105
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2939 if (var105
== NULL
) {
2940 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
2941 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 690);
2944 var106
= ((val
* (*)(val
*, long))(var105
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var105
, var_i103
) /* [] on <var105:ANodes[APropdef]>*/;
2945 var107
= ((short int (*)(val
*, val
*))(var106
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var106
, var_old_child
) /* == on <var106:nullable Object(APropdef)>*/;
2948 if (var_new_child
== NULL
) {
2949 var109
= 0; /* is null */
2951 var109
= 1; /* arg is null and recv is not */
2954 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
2955 cltype111
= type_parser_nodes__APropdef
.color
;
2956 idtype112
= type_parser_nodes__APropdef
.id
;
2957 if(cltype111
>= var_new_child
->type
->table_size
) {
2960 var110
= var_new_child
->type
->type_table
[cltype111
] == idtype112
;
2963 fprintf(stderr
, "Runtime error: %s", "Assert failed");
2964 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 692);
2967 var113
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2968 if (var113
== NULL
) {
2969 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
2970 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 693);
2973 ((void (*)(val
*, long, val
*))(var113
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var113
, var_i103
, var_new_child
) /* []= on <var113:ANodes[APropdef]>*/;
2974 ((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(APropdef)>*/;
2976 var114
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2977 if (var114
== NULL
) {
2978 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
2979 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 696);
2982 ((void (*)(val
*, long))(var114
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var114
, var_i103
) /* remove_at on <var114:ANodes[APropdef]>*/;
2987 CONTINUE_label115
: (void)0;
2988 ((void (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var100
) /* next on <var100:Iterator[nullable Object]>*/;
2990 BREAK_label115
: (void)0;
2991 var116
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
2992 if (var116
== NULL
) {
2993 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwend");
2994 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 701);
2997 var117
= ((short int (*)(val
*, val
*))(var116
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var116
, var_old_child
) /* == on <var116:TKwend>*/;
3000 if (var_new_child
== NULL
) {
3001 var119
= 0; /* is null */
3003 var119
= 1; /* arg is null and recv is not */
3006 ((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)>*/;
3007 /* <var_new_child:nullable ANode(ANode)> isa TKwend */
3008 cltype121
= type_parser_nodes__TKwend
.color
;
3009 idtype122
= type_parser_nodes__TKwend
.id
;
3010 if(cltype121
>= var_new_child
->type
->table_size
) {
3013 var120
= var_new_child
->type
->type_table
[cltype121
] == idtype122
;
3016 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3017 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 704);
3020 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_new_child
; /* _n_kwend on <self:AStdClassdef> */
3022 fprintf(stderr
, "Runtime error: %s", "Aborted");
3023 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 707);
3031 /* method parser_prod#AStdClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3032 void VIRTUAL_parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3033 parser_prod__AStdClassdef__replace_child(self
, p0
, p1
);
3036 /* method parser_prod#AStdClassdef#n_doc= for (self: AStdClassdef, nullable ADoc) */
3037 void parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
3038 val
* var_node
/* var node: nullable ADoc */;
3039 val
* var
/* : null */;
3040 short int var1
/* : Bool */;
3042 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_node
; /* _n_doc on <self:AStdClassdef> */
3044 if (var_node
== NULL
) {
3045 var1
= 0; /* is null */
3047 var1
= 1; /* arg is null and recv is not */
3050 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
3055 /* method parser_prod#AStdClassdef#n_doc= for (self: Object, nullable ADoc) */
3056 void VIRTUAL_parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
3057 parser_prod__AStdClassdef__n_doc_61d(self
, p0
);
3060 /* method parser_prod#AStdClassdef#n_kwredef= for (self: AStdClassdef, nullable TKwredef) */
3061 void parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
3062 val
* var_node
/* var node: nullable TKwredef */;
3063 val
* var
/* : null */;
3064 short int var1
/* : Bool */;
3066 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AStdClassdef> */
3068 if (var_node
== NULL
) {
3069 var1
= 0; /* is null */
3071 var1
= 1; /* arg is null and recv is not */
3074 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
3079 /* method parser_prod#AStdClassdef#n_kwredef= for (self: Object, nullable TKwredef) */
3080 void VIRTUAL_parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
3081 parser_prod__AStdClassdef__n_kwredef_61d(self
, p0
);
3084 /* method parser_prod#AStdClassdef#n_visibility= for (self: AStdClassdef, AVisibility) */
3085 void parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
3086 val
* var_node
/* var node: AVisibility */;
3088 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdClassdef> */
3089 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
3092 /* method parser_prod#AStdClassdef#n_visibility= for (self: Object, AVisibility) */
3093 void VIRTUAL_parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
3094 parser_prod__AStdClassdef__n_visibility_61d(self
, p0
);
3097 /* method parser_prod#AStdClassdef#n_classkind= for (self: AStdClassdef, AClasskind) */
3098 void parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
3099 val
* var_node
/* var node: AClasskind */;
3101 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_node
; /* _n_classkind on <self:AStdClassdef> */
3102 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AClasskind>*/;
3105 /* method parser_prod#AStdClassdef#n_classkind= for (self: Object, AClasskind) */
3106 void VIRTUAL_parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
3107 parser_prod__AStdClassdef__n_classkind_61d(self
, p0
);
3110 /* method parser_prod#AStdClassdef#n_id= for (self: AStdClassdef, nullable TClassid) */
3111 void parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
3112 val
* var_node
/* var node: nullable TClassid */;
3113 val
* var
/* : null */;
3114 short int var1
/* : Bool */;
3116 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_node
; /* _n_id on <self:AStdClassdef> */
3118 if (var_node
== NULL
) {
3119 var1
= 0; /* is null */
3121 var1
= 1; /* arg is null and recv is not */
3124 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TClassid(TClassid)>*/;
3129 /* method parser_prod#AStdClassdef#n_id= for (self: Object, nullable TClassid) */
3130 void VIRTUAL_parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
3131 parser_prod__AStdClassdef__n_id_61d(self
, p0
);
3134 /* method parser_prod#AStdClassdef#n_annotations= for (self: AStdClassdef, nullable AAnnotations) */
3135 void parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
3136 val
* var_node
/* var node: nullable AAnnotations */;
3137 val
* var
/* : null */;
3138 short int var1
/* : Bool */;
3140 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdClassdef> */
3142 if (var_node
== NULL
) {
3143 var1
= 0; /* is null */
3145 var1
= 1; /* arg is null and recv is not */
3148 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
3153 /* method parser_prod#AStdClassdef#n_annotations= for (self: Object, nullable AAnnotations) */
3154 void VIRTUAL_parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
3155 parser_prod__AStdClassdef__n_annotations_61d(self
, p0
);
3158 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: AStdClassdef, nullable AExternCodeBlock) */
3159 void parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3160 val
* var_node
/* var node: nullable AExternCodeBlock */;
3161 val
* var
/* : null */;
3162 short int var1
/* : Bool */;
3164 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AStdClassdef> */
3166 if (var_node
== NULL
) {
3167 var1
= 0; /* is null */
3169 var1
= 1; /* arg is null and recv is not */
3172 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
3177 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
3178 void VIRTUAL_parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3179 parser_prod__AStdClassdef__n_extern_code_block_61d(self
, p0
);
3182 /* method parser_prod#AStdClassdef#n_kwend= for (self: AStdClassdef, TKwend) */
3183 void parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3184 val
* var_node
/* var node: TKwend */;
3186 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AStdClassdef> */
3187 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwend>*/;
3190 /* method parser_prod#AStdClassdef#n_kwend= for (self: Object, TKwend) */
3191 void VIRTUAL_parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3192 parser_prod__AStdClassdef__n_kwend_61d(self
, p0
);
3195 /* method parser_prod#AStdClassdef#visit_all for (self: AStdClassdef, Visitor) */
3196 void parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3197 val
* var_v
/* var v: Visitor */;
3198 val
* var
/* : nullable ADoc */;
3199 val
* var1
/* : null */;
3200 short int var2
/* : Bool */;
3201 val
* var3
/* : nullable ADoc */;
3202 val
* var4
/* : nullable TKwredef */;
3203 val
* var5
/* : null */;
3204 short int var6
/* : Bool */;
3205 val
* var7
/* : nullable TKwredef */;
3206 val
* var8
/* : AVisibility */;
3207 val
* var9
/* : AClasskind */;
3208 val
* var10
/* : nullable TClassid */;
3209 val
* var11
/* : null */;
3210 short int var12
/* : Bool */;
3211 val
* var13
/* : nullable TClassid */;
3212 val
* var14
/* : ANodes[AFormaldef] */;
3213 val
* var15
/* : Iterator[nullable Object] */;
3214 short int var16
/* : Bool */;
3215 val
* var17
/* : nullable Object */;
3216 val
* var_n
/* var n: AFormaldef */;
3217 val
* var18
/* : nullable AAnnotations */;
3218 val
* var19
/* : null */;
3219 short int var20
/* : Bool */;
3220 val
* var21
/* : nullable AAnnotations */;
3221 val
* var22
/* : nullable AExternCodeBlock */;
3222 val
* var23
/* : null */;
3223 short int var24
/* : Bool */;
3224 val
* var25
/* : nullable AExternCodeBlock */;
3225 val
* var26
/* : ANodes[ASuperclass] */;
3226 val
* var27
/* : Iterator[nullable Object] */;
3227 short int var28
/* : Bool */;
3228 val
* var29
/* : nullable Object */;
3229 val
* var_n30
/* var n: ASuperclass */;
3230 val
* var32
/* : ANodes[APropdef] */;
3231 val
* var33
/* : Iterator[nullable Object] */;
3232 short int var34
/* : Bool */;
3233 val
* var35
/* : nullable Object */;
3234 val
* var_n36
/* var n: APropdef */;
3235 val
* var38
/* : TKwend */;
3237 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3240 var2
= 0; /* is null */
3242 var2
= 1; /* arg is null and recv is not */
3245 var3
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3247 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3248 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 768);
3251 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
3254 var4
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3257 var6
= 0; /* is null */
3259 var6
= 1; /* arg is null and recv is not */
3262 var7
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3264 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3265 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 771);
3268 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
3271 var8
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3273 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
3274 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 773);
3277 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
3278 var9
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3280 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_classkind");
3281 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 774);
3284 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
3285 var10
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3287 if (var10
== NULL
) {
3288 var12
= 0; /* is null */
3290 var12
= 1; /* arg is null and recv is not */
3293 var13
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3294 if (var13
== NULL
) {
3295 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3296 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 776);
3299 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var13
) /* enter_visit on <var_v:Visitor>*/;
3302 var14
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3303 if (var14
== NULL
) {
3304 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_formaldefs");
3305 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 778);
3308 var15
= ((val
* (*)(val
*))(var14
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var14
) /* iterator on <var14:ANodes[AFormaldef]>*/;
3310 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
3312 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
3314 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3315 CONTINUE_label
: (void)0;
3316 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
3318 BREAK_label
: (void)0;
3319 var18
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3321 if (var18
== NULL
) {
3322 var20
= 0; /* is null */
3324 var20
= 1; /* arg is null and recv is not */
3327 var21
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3328 if (var21
== NULL
) {
3329 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3330 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 782);
3333 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var21
) /* enter_visit on <var_v:Visitor>*/;
3336 var22
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3338 if (var22
== NULL
) {
3339 var24
= 0; /* is null */
3341 var24
= 1; /* arg is null and recv is not */
3344 var25
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3345 if (var25
== NULL
) {
3346 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3347 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 785);
3350 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var25
) /* enter_visit on <var_v:Visitor>*/;
3353 var26
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3354 if (var26
== NULL
) {
3355 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_superclasses");
3356 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 787);
3359 var27
= ((val
* (*)(val
*))(var26
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var26
) /* iterator on <var26:ANodes[ASuperclass]>*/;
3361 var28
= ((short int (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var27
) /* is_ok on <var27:Iterator[nullable Object]>*/;
3363 var29
= ((val
* (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var27
) /* item on <var27:Iterator[nullable Object]>*/;
3365 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n30
) /* enter_visit on <var_v:Visitor>*/;
3366 CONTINUE_label31
: (void)0;
3367 ((void (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var27
) /* next on <var27:Iterator[nullable Object]>*/;
3369 BREAK_label31
: (void)0;
3370 var32
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3371 if (var32
== NULL
) {
3372 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3373 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 790);
3376 var33
= ((val
* (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var32
) /* iterator on <var32:ANodes[APropdef]>*/;
3378 var34
= ((short int (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var33
) /* is_ok on <var33:Iterator[nullable Object]>*/;
3380 var35
= ((val
* (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var33
) /* item on <var33:Iterator[nullable Object]>*/;
3382 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n36
) /* enter_visit on <var_v:Visitor>*/;
3383 CONTINUE_label37
: (void)0;
3384 ((void (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var33
) /* next on <var33:Iterator[nullable Object]>*/;
3386 BREAK_label37
: (void)0;
3387 var38
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3388 if (var38
== NULL
) {
3389 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwend");
3390 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 793);
3393 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var38
) /* enter_visit on <var_v:Visitor>*/;
3396 /* method parser_prod#AStdClassdef#visit_all for (self: Object, Visitor) */
3397 void VIRTUAL_parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3398 parser_prod__AStdClassdef__visit_all(self
, p0
);
3401 /* method parser_prod#ATopClassdef#empty_init for (self: ATopClassdef) */
3402 void parser_prod__ATopClassdef__empty_init(val
* self
) {
3405 /* method parser_prod#ATopClassdef#empty_init for (self: Object) */
3406 void VIRTUAL_parser_prod__ATopClassdef__empty_init(val
* self
) {
3407 parser_prod__ATopClassdef__empty_init(self
);
3410 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: ATopClassdef, Collection[Object]) */
3411 void parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3412 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3413 val
* var
/* : Iterator[nullable Object] */;
3414 short int var1
/* : Bool */;
3415 val
* var2
/* : nullable Object */;
3416 val
* var_n
/* var n: Object */;
3417 short int var3
/* : Bool */;
3420 val
* var4
/* : ANodes[APropdef] */;
3421 var_n_propdefs
= p0
;
3422 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ATopClassdef__empty_init
]))(self
) /* empty_init on <self:ATopClassdef>*/;
3423 var
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
3425 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
3427 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
3429 /* <var_n:Object> isa APropdef */
3430 cltype
= type_parser_nodes__APropdef
.color
;
3431 idtype
= type_parser_nodes__APropdef
.id
;
3432 if(cltype
>= var_n
->type
->table_size
) {
3435 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
3438 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3439 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 805);
3442 var4
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3444 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3445 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 806);
3448 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[APropdef]>*/;
3449 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(APropdef)>*/;
3450 CONTINUE_label
: (void)0;
3451 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
3453 BREAK_label
: (void)0;
3456 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: Object, Collection[Object]) */
3457 void VIRTUAL_parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3458 parser_prod__ATopClassdef__init_atopclassdef(self
, p0
);
3461 /* method parser_prod#ATopClassdef#replace_child for (self: ATopClassdef, ANode, nullable ANode) */
3462 void parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3463 val
* var_old_child
/* var old_child: ANode */;
3464 val
* var_new_child
/* var new_child: nullable ANode */;
3465 val
* var
/* : Range[Int] */;
3466 long var1
/* : Int */;
3467 val
* var2
/* : ANodes[APropdef] */;
3468 long var3
/* : Int */;
3469 val
* var4
/* : Discrete */;
3470 val
* var5
/* : Discrete */;
3471 val
* var6
/* : Iterator[nullable Object] */;
3472 short int var7
/* : Bool */;
3473 val
* var8
/* : nullable Object */;
3474 long var_i
/* var i: Int */;
3475 long var9
/* : Int */;
3476 val
* var10
/* : ANodes[APropdef] */;
3477 val
* var11
/* : nullable Object */;
3478 short int var12
/* : Bool */;
3479 val
* var13
/* : null */;
3480 short int var14
/* : Bool */;
3481 short int var15
/* : Bool */;
3484 val
* var16
/* : ANodes[APropdef] */;
3485 val
* var17
/* : ANodes[APropdef] */;
3488 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
3490 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3492 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3493 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 813);
3496 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[APropdef]>*/;
3497 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
3498 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
3499 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
3500 CHECK_NEW_range__Range(var
);
3501 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
3503 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
3505 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
3506 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
3508 var10
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3509 if (var10
== NULL
) {
3510 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3511 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 814);
3514 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[APropdef]>*/;
3515 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(APropdef)>*/;
3518 if (var_new_child
== NULL
) {
3519 var14
= 0; /* is null */
3521 var14
= 1; /* arg is null and recv is not */
3524 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
3525 cltype
= type_parser_nodes__APropdef
.color
;
3526 idtype
= type_parser_nodes__APropdef
.id
;
3527 if(cltype
>= var_new_child
->type
->table_size
) {
3530 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3533 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3534 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 816);
3537 var16
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3538 if (var16
== NULL
) {
3539 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3540 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 817);
3543 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[APropdef]>*/;
3544 ((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(APropdef)>*/;
3546 var17
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3547 if (var17
== NULL
) {
3548 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3549 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 820);
3552 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[APropdef]>*/;
3557 CONTINUE_label
: (void)0;
3558 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
3560 BREAK_label
: (void)0;
3563 /* method parser_prod#ATopClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3564 void VIRTUAL_parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3565 parser_prod__ATopClassdef__replace_child(self
, p0
, p1
);
3568 /* method parser_prod#ATopClassdef#visit_all for (self: ATopClassdef, Visitor) */
3569 void parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3570 val
* var_v
/* var v: Visitor */;
3571 val
* var
/* : ANodes[APropdef] */;
3572 val
* var1
/* : Iterator[nullable Object] */;
3573 short int var2
/* : Bool */;
3574 val
* var3
/* : nullable Object */;
3575 val
* var_n
/* var n: APropdef */;
3577 var
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3579 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3580 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 831);
3583 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[APropdef]>*/;
3585 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
3587 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
3589 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3590 CONTINUE_label
: (void)0;
3591 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
3593 BREAK_label
: (void)0;
3596 /* method parser_prod#ATopClassdef#visit_all for (self: Object, Visitor) */
3597 void VIRTUAL_parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3598 parser_prod__ATopClassdef__visit_all(self
, p0
);
3601 /* method parser_prod#AMainClassdef#empty_init for (self: AMainClassdef) */
3602 void parser_prod__AMainClassdef__empty_init(val
* self
) {
3605 /* method parser_prod#AMainClassdef#empty_init for (self: Object) */
3606 void VIRTUAL_parser_prod__AMainClassdef__empty_init(val
* self
) {
3607 parser_prod__AMainClassdef__empty_init(self
);
3610 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: AMainClassdef, Collection[Object]) */
3611 void parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3612 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3613 val
* var
/* : Iterator[nullable Object] */;
3614 short int var1
/* : Bool */;
3615 val
* var2
/* : nullable Object */;
3616 val
* var_n
/* var n: Object */;
3617 short int var3
/* : Bool */;
3620 val
* var4
/* : ANodes[APropdef] */;
3621 var_n_propdefs
= p0
;
3622 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AMainClassdef__empty_init
]))(self
) /* empty_init on <self:AMainClassdef>*/;
3623 var
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
3625 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
3627 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
3629 /* <var_n:Object> isa APropdef */
3630 cltype
= type_parser_nodes__APropdef
.color
;
3631 idtype
= type_parser_nodes__APropdef
.id
;
3632 if(cltype
>= var_n
->type
->table_size
) {
3635 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
3638 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3639 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 845);
3642 var4
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3644 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3645 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 846);
3648 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[APropdef]>*/;
3649 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(APropdef)>*/;
3650 CONTINUE_label
: (void)0;
3651 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
3653 BREAK_label
: (void)0;
3656 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: Object, Collection[Object]) */
3657 void VIRTUAL_parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3658 parser_prod__AMainClassdef__init_amainclassdef(self
, p0
);
3661 /* method parser_prod#AMainClassdef#replace_child for (self: AMainClassdef, ANode, nullable ANode) */
3662 void parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3663 val
* var_old_child
/* var old_child: ANode */;
3664 val
* var_new_child
/* var new_child: nullable ANode */;
3665 val
* var
/* : Range[Int] */;
3666 long var1
/* : Int */;
3667 val
* var2
/* : ANodes[APropdef] */;
3668 long var3
/* : Int */;
3669 val
* var4
/* : Discrete */;
3670 val
* var5
/* : Discrete */;
3671 val
* var6
/* : Iterator[nullable Object] */;
3672 short int var7
/* : Bool */;
3673 val
* var8
/* : nullable Object */;
3674 long var_i
/* var i: Int */;
3675 long var9
/* : Int */;
3676 val
* var10
/* : ANodes[APropdef] */;
3677 val
* var11
/* : nullable Object */;
3678 short int var12
/* : Bool */;
3679 val
* var13
/* : null */;
3680 short int var14
/* : Bool */;
3681 short int var15
/* : Bool */;
3684 val
* var16
/* : ANodes[APropdef] */;
3685 val
* var17
/* : ANodes[APropdef] */;
3688 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
3690 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3692 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3693 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 853);
3696 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[APropdef]>*/;
3697 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
3698 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
3699 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
3700 CHECK_NEW_range__Range(var
);
3701 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
3703 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
3705 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
3706 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
3708 var10
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3709 if (var10
== NULL
) {
3710 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3711 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 854);
3714 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[APropdef]>*/;
3715 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(APropdef)>*/;
3718 if (var_new_child
== NULL
) {
3719 var14
= 0; /* is null */
3721 var14
= 1; /* arg is null and recv is not */
3724 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
3725 cltype
= type_parser_nodes__APropdef
.color
;
3726 idtype
= type_parser_nodes__APropdef
.id
;
3727 if(cltype
>= var_new_child
->type
->table_size
) {
3730 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3733 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3734 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 856);
3737 var16
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3738 if (var16
== NULL
) {
3739 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3740 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 857);
3743 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[APropdef]>*/;
3744 ((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(APropdef)>*/;
3746 var17
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3747 if (var17
== NULL
) {
3748 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3749 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 860);
3752 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[APropdef]>*/;
3757 CONTINUE_label
: (void)0;
3758 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
3760 BREAK_label
: (void)0;
3763 /* method parser_prod#AMainClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3764 void VIRTUAL_parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3765 parser_prod__AMainClassdef__replace_child(self
, p0
, p1
);
3768 /* method parser_prod#AMainClassdef#visit_all for (self: AMainClassdef, Visitor) */
3769 void parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
3770 val
* var_v
/* var v: Visitor */;
3771 val
* var
/* : ANodes[APropdef] */;
3772 val
* var1
/* : Iterator[nullable Object] */;
3773 short int var2
/* : Bool */;
3774 val
* var3
/* : nullable Object */;
3775 val
* var_n
/* var n: APropdef */;
3777 var
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3779 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_propdefs");
3780 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 871);
3783 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[APropdef]>*/;
3785 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
3787 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
3789 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3790 CONTINUE_label
: (void)0;
3791 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
3793 BREAK_label
: (void)0;
3796 /* method parser_prod#AMainClassdef#visit_all for (self: Object, Visitor) */
3797 void VIRTUAL_parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
3798 parser_prod__AMainClassdef__visit_all(self
, p0
);
3801 /* method parser_prod#AConcreteClasskind#empty_init for (self: AConcreteClasskind) */
3802 void parser_prod__AConcreteClasskind__empty_init(val
* self
) {
3805 /* method parser_prod#AConcreteClasskind#empty_init for (self: Object) */
3806 void VIRTUAL_parser_prod__AConcreteClasskind__empty_init(val
* self
) {
3807 parser_prod__AConcreteClasskind__empty_init(self
);
3810 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: AConcreteClasskind, nullable TKwclass) */
3811 void parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
3812 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3814 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteClasskind__empty_init
]))(self
) /* empty_init on <self:AConcreteClasskind>*/;
3815 if (var_n_kwclass
== NULL
) {
3816 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3817 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 884);
3820 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AConcreteClasskind> */
3821 if (var_n_kwclass
== NULL
) {
3822 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
3823 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 885);
3826 ((void (*)(val
*, val
*))(var_n_kwclass
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwclass
, self
) /* parent= on <var_n_kwclass:nullable TKwclass>*/;
3830 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: Object, nullable TKwclass) */
3831 void VIRTUAL_parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
3832 parser_prod__AConcreteClasskind__init_aconcreteclasskind(self
, p0
);
3835 /* method parser_prod#AConcreteClasskind#replace_child for (self: AConcreteClasskind, ANode, nullable ANode) */
3836 void parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3837 val
* var_old_child
/* var old_child: ANode */;
3838 val
* var_new_child
/* var new_child: nullable ANode */;
3839 val
* var
/* : TKwclass */;
3840 short int var1
/* : Bool */;
3841 val
* var2
/* : null */;
3842 short int var3
/* : Bool */;
3843 short int var4
/* : Bool */;
3848 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3850 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwclass");
3851 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 890);
3854 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwclass>*/;
3857 if (var_new_child
== NULL
) {
3858 var3
= 0; /* is null */
3860 var3
= 1; /* arg is null and recv is not */
3863 ((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)>*/;
3864 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
3865 cltype
= type_parser_nodes__TKwclass
.color
;
3866 idtype
= type_parser_nodes__TKwclass
.id
;
3867 if(cltype
>= var_new_child
->type
->table_size
) {
3870 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3873 fprintf(stderr
, "Runtime error: %s", "Assert failed");
3874 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 893);
3877 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AConcreteClasskind> */
3879 fprintf(stderr
, "Runtime error: %s", "Aborted");
3880 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 896);
3888 /* method parser_prod#AConcreteClasskind#replace_child for (self: Object, ANode, nullable ANode) */
3889 void VIRTUAL_parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3890 parser_prod__AConcreteClasskind__replace_child(self
, p0
, p1
);
3893 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: AConcreteClasskind, TKwclass) */
3894 void parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3895 val
* var_node
/* var node: TKwclass */;
3897 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AConcreteClasskind> */
3898 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwclass>*/;
3901 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: Object, TKwclass) */
3902 void VIRTUAL_parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3903 parser_prod__AConcreteClasskind__n_kwclass_61d(self
, p0
);
3906 /* method parser_prod#AConcreteClasskind#visit_all for (self: AConcreteClasskind, Visitor) */
3907 void parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
3908 val
* var_v
/* var v: Visitor */;
3909 val
* var
/* : TKwclass */;
3911 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3913 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwclass");
3914 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 911);
3917 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
3920 /* method parser_prod#AConcreteClasskind#visit_all for (self: Object, Visitor) */
3921 void VIRTUAL_parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
3922 parser_prod__AConcreteClasskind__visit_all(self
, p0
);
3925 /* method parser_prod#AAbstractClasskind#empty_init for (self: AAbstractClasskind) */
3926 void parser_prod__AAbstractClasskind__empty_init(val
* self
) {
3929 /* method parser_prod#AAbstractClasskind#empty_init for (self: Object) */
3930 void VIRTUAL_parser_prod__AAbstractClasskind__empty_init(val
* self
) {
3931 parser_prod__AAbstractClasskind__empty_init(self
);
3934 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: AAbstractClasskind, nullable TKwabstract, nullable TKwclass) */
3935 void parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3936 val
* var_n_kwabstract
/* var n_kwabstract: nullable TKwabstract */;
3937 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3938 var_n_kwabstract
= p0
;
3940 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAbstractClasskind__empty_init
]))(self
) /* empty_init on <self:AAbstractClasskind>*/;
3941 if (var_n_kwabstract
== NULL
) {
3942 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3943 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 923);
3946 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_n_kwabstract
; /* _n_kwabstract on <self:AAbstractClasskind> */
3947 if (var_n_kwabstract
== NULL
) {
3948 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
3949 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 924);
3952 ((void (*)(val
*, val
*))(var_n_kwabstract
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwabstract
, self
) /* parent= on <var_n_kwabstract:nullable TKwabstract>*/;
3954 if (var_n_kwclass
== NULL
) {
3955 fprintf(stderr
, "Runtime error: %s", "Cast failed");
3956 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 925);
3959 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AAbstractClasskind> */
3960 if (var_n_kwclass
== NULL
) {
3961 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
3962 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 926);
3965 ((void (*)(val
*, val
*))(var_n_kwclass
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwclass
, self
) /* parent= on <var_n_kwclass:nullable TKwclass>*/;
3969 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: Object, nullable TKwabstract, nullable TKwclass) */
3970 void VIRTUAL_parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3971 parser_prod__AAbstractClasskind__init_aabstractclasskind(self
, p0
, p1
);
3974 /* method parser_prod#AAbstractClasskind#replace_child for (self: AAbstractClasskind, ANode, nullable ANode) */
3975 void parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3976 val
* var_old_child
/* var old_child: ANode */;
3977 val
* var_new_child
/* var new_child: nullable ANode */;
3978 val
* var
/* : TKwabstract */;
3979 short int var1
/* : Bool */;
3980 val
* var2
/* : null */;
3981 short int var3
/* : Bool */;
3982 short int var4
/* : Bool */;
3985 val
* var5
/* : TKwclass */;
3986 short int var6
/* : Bool */;
3987 val
* var7
/* : null */;
3988 short int var8
/* : Bool */;
3989 short int var9
/* : Bool */;
3994 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
3996 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwabstract");
3997 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 931);
4000 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwabstract>*/;
4003 if (var_new_child
== NULL
) {
4004 var3
= 0; /* is null */
4006 var3
= 1; /* arg is null and recv is not */
4009 ((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)>*/;
4010 /* <var_new_child:nullable ANode(ANode)> isa TKwabstract */
4011 cltype
= type_parser_nodes__TKwabstract
.color
;
4012 idtype
= type_parser_nodes__TKwabstract
.id
;
4013 if(cltype
>= var_new_child
->type
->table_size
) {
4016 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4019 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4020 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 934);
4023 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_new_child
; /* _n_kwabstract on <self:AAbstractClasskind> */
4025 fprintf(stderr
, "Runtime error: %s", "Aborted");
4026 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 937);
4032 var5
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4034 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwclass");
4035 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 941);
4038 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwclass>*/;
4041 if (var_new_child
== NULL
) {
4042 var8
= 0; /* is null */
4044 var8
= 1; /* arg is null and recv is not */
4047 ((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)>*/;
4048 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
4049 cltype10
= type_parser_nodes__TKwclass
.color
;
4050 idtype11
= type_parser_nodes__TKwclass
.id
;
4051 if(cltype10
>= var_new_child
->type
->table_size
) {
4054 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4057 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4058 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 944);
4061 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AAbstractClasskind> */
4063 fprintf(stderr
, "Runtime error: %s", "Aborted");
4064 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 947);
4072 /* method parser_prod#AAbstractClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4073 void VIRTUAL_parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4074 parser_prod__AAbstractClasskind__replace_child(self
, p0
, p1
);
4077 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: AAbstractClasskind, TKwabstract) */
4078 void parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
4079 val
* var_node
/* var node: TKwabstract */;
4081 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_node
; /* _n_kwabstract on <self:AAbstractClasskind> */
4082 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwabstract>*/;
4085 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: Object, TKwabstract) */
4086 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
4087 parser_prod__AAbstractClasskind__n_kwabstract_61d(self
, p0
);
4090 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: AAbstractClasskind, TKwclass) */
4091 void parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4092 val
* var_node
/* var node: TKwclass */;
4094 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AAbstractClasskind> */
4095 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwclass>*/;
4098 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: Object, TKwclass) */
4099 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4100 parser_prod__AAbstractClasskind__n_kwclass_61d(self
, p0
);
4103 /* method parser_prod#AAbstractClasskind#visit_all for (self: AAbstractClasskind, Visitor) */
4104 void parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
4105 val
* var_v
/* var v: Visitor */;
4106 val
* var
/* : TKwabstract */;
4107 val
* var1
/* : TKwclass */;
4109 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
4111 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwabstract");
4112 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 967);
4115 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4116 var1
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
4118 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwclass");
4119 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 968);
4122 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
4125 /* method parser_prod#AAbstractClasskind#visit_all for (self: Object, Visitor) */
4126 void VIRTUAL_parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
4127 parser_prod__AAbstractClasskind__visit_all(self
, p0
);
4130 /* method parser_prod#AInterfaceClasskind#empty_init for (self: AInterfaceClasskind) */
4131 void parser_prod__AInterfaceClasskind__empty_init(val
* self
) {
4134 /* method parser_prod#AInterfaceClasskind#empty_init for (self: Object) */
4135 void VIRTUAL_parser_prod__AInterfaceClasskind__empty_init(val
* self
) {
4136 parser_prod__AInterfaceClasskind__empty_init(self
);
4139 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: AInterfaceClasskind, nullable TKwinterface) */
4140 void parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
4141 val
* var_n_kwinterface
/* var n_kwinterface: nullable TKwinterface */;
4142 var_n_kwinterface
= p0
;
4143 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInterfaceClasskind__empty_init
]))(self
) /* empty_init on <self:AInterfaceClasskind>*/;
4144 if (var_n_kwinterface
== NULL
) {
4145 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4146 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 979);
4149 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_n_kwinterface
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4150 if (var_n_kwinterface
== NULL
) {
4151 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4152 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 980);
4155 ((void (*)(val
*, val
*))(var_n_kwinterface
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwinterface
, self
) /* parent= on <var_n_kwinterface:nullable TKwinterface>*/;
4159 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: Object, nullable TKwinterface) */
4160 void VIRTUAL_parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
4161 parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(self
, p0
);
4164 /* method parser_prod#AInterfaceClasskind#replace_child for (self: AInterfaceClasskind, ANode, nullable ANode) */
4165 void parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4166 val
* var_old_child
/* var old_child: ANode */;
4167 val
* var_new_child
/* var new_child: nullable ANode */;
4168 val
* var
/* : TKwinterface */;
4169 short int var1
/* : Bool */;
4170 val
* var2
/* : null */;
4171 short int var3
/* : Bool */;
4172 short int var4
/* : Bool */;
4177 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4179 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4180 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 985);
4183 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwinterface>*/;
4186 if (var_new_child
== NULL
) {
4187 var3
= 0; /* is null */
4189 var3
= 1; /* arg is null and recv is not */
4192 ((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)>*/;
4193 /* <var_new_child:nullable ANode(ANode)> isa TKwinterface */
4194 cltype
= type_parser_nodes__TKwinterface
.color
;
4195 idtype
= type_parser_nodes__TKwinterface
.id
;
4196 if(cltype
>= var_new_child
->type
->table_size
) {
4199 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4202 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4203 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 988);
4206 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_new_child
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4208 fprintf(stderr
, "Runtime error: %s", "Aborted");
4209 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 991);
4217 /* method parser_prod#AInterfaceClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4218 void VIRTUAL_parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4219 parser_prod__AInterfaceClasskind__replace_child(self
, p0
, p1
);
4222 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: AInterfaceClasskind, TKwinterface) */
4223 void parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4224 val
* var_node
/* var node: TKwinterface */;
4226 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_node
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4227 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwinterface>*/;
4230 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: Object, TKwinterface) */
4231 void VIRTUAL_parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4232 parser_prod__AInterfaceClasskind__n_kwinterface_61d(self
, p0
);
4235 /* method parser_prod#AInterfaceClasskind#visit_all for (self: AInterfaceClasskind, Visitor) */
4236 void parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4237 val
* var_v
/* var v: Visitor */;
4238 val
* var
/* : TKwinterface */;
4240 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4242 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwinterface");
4243 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1006);
4246 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4249 /* method parser_prod#AInterfaceClasskind#visit_all for (self: Object, Visitor) */
4250 void VIRTUAL_parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4251 parser_prod__AInterfaceClasskind__visit_all(self
, p0
);
4254 /* method parser_prod#AEnumClasskind#empty_init for (self: AEnumClasskind) */
4255 void parser_prod__AEnumClasskind__empty_init(val
* self
) {
4258 /* method parser_prod#AEnumClasskind#empty_init for (self: Object) */
4259 void VIRTUAL_parser_prod__AEnumClasskind__empty_init(val
* self
) {
4260 parser_prod__AEnumClasskind__empty_init(self
);
4263 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: AEnumClasskind, nullable TKwenum) */
4264 void parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4265 val
* var_n_kwenum
/* var n_kwenum: nullable TKwenum */;
4267 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AEnumClasskind__empty_init
]))(self
) /* empty_init on <self:AEnumClasskind>*/;
4268 if (var_n_kwenum
== NULL
) {
4269 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4270 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1017);
4273 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_n_kwenum
; /* _n_kwenum on <self:AEnumClasskind> */
4274 if (var_n_kwenum
== NULL
) {
4275 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4276 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1018);
4279 ((void (*)(val
*, val
*))(var_n_kwenum
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwenum
, self
) /* parent= on <var_n_kwenum:nullable TKwenum>*/;
4283 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: Object, nullable TKwenum) */
4284 void VIRTUAL_parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4285 parser_prod__AEnumClasskind__init_aenumclasskind(self
, p0
);
4288 /* method parser_prod#AEnumClasskind#replace_child for (self: AEnumClasskind, ANode, nullable ANode) */
4289 void parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4290 val
* var_old_child
/* var old_child: ANode */;
4291 val
* var_new_child
/* var new_child: nullable ANode */;
4292 val
* var
/* : TKwenum */;
4293 short int var1
/* : Bool */;
4294 val
* var2
/* : null */;
4295 short int var3
/* : Bool */;
4296 short int var4
/* : Bool */;
4301 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4303 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwenum");
4304 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1023);
4307 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwenum>*/;
4310 if (var_new_child
== NULL
) {
4311 var3
= 0; /* is null */
4313 var3
= 1; /* arg is null and recv is not */
4316 ((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)>*/;
4317 /* <var_new_child:nullable ANode(ANode)> isa TKwenum */
4318 cltype
= type_parser_nodes__TKwenum
.color
;
4319 idtype
= type_parser_nodes__TKwenum
.id
;
4320 if(cltype
>= var_new_child
->type
->table_size
) {
4323 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4326 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4327 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1026);
4330 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_new_child
; /* _n_kwenum on <self:AEnumClasskind> */
4332 fprintf(stderr
, "Runtime error: %s", "Aborted");
4333 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1029);
4341 /* method parser_prod#AEnumClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4342 void VIRTUAL_parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4343 parser_prod__AEnumClasskind__replace_child(self
, p0
, p1
);
4346 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: AEnumClasskind, TKwenum) */
4347 void parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4348 val
* var_node
/* var node: TKwenum */;
4350 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_node
; /* _n_kwenum on <self:AEnumClasskind> */
4351 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwenum>*/;
4354 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: Object, TKwenum) */
4355 void VIRTUAL_parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4356 parser_prod__AEnumClasskind__n_kwenum_61d(self
, p0
);
4359 /* method parser_prod#AEnumClasskind#visit_all for (self: AEnumClasskind, Visitor) */
4360 void parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4361 val
* var_v
/* var v: Visitor */;
4362 val
* var
/* : TKwenum */;
4364 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4366 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwenum");
4367 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1044);
4370 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4373 /* method parser_prod#AEnumClasskind#visit_all for (self: Object, Visitor) */
4374 void VIRTUAL_parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4375 parser_prod__AEnumClasskind__visit_all(self
, p0
);
4378 /* method parser_prod#AExternClasskind#empty_init for (self: AExternClasskind) */
4379 void parser_prod__AExternClasskind__empty_init(val
* self
) {
4382 /* method parser_prod#AExternClasskind#empty_init for (self: Object) */
4383 void VIRTUAL_parser_prod__AExternClasskind__empty_init(val
* self
) {
4384 parser_prod__AExternClasskind__empty_init(self
);
4387 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: AExternClasskind, nullable TKwextern, nullable TKwclass) */
4388 void parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4389 val
* var_n_kwextern
/* var n_kwextern: nullable TKwextern */;
4390 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4391 val
* var
/* : null */;
4392 short int var1
/* : Bool */;
4393 var_n_kwextern
= p0
;
4395 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternClasskind__empty_init
]))(self
) /* empty_init on <self:AExternClasskind>*/;
4396 if (var_n_kwextern
== NULL
) {
4397 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4398 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1056);
4401 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_n_kwextern
; /* _n_kwextern on <self:AExternClasskind> */
4402 if (var_n_kwextern
== NULL
) {
4403 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4404 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1057);
4407 ((void (*)(val
*, val
*))(var_n_kwextern
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwextern
, self
) /* parent= on <var_n_kwextern:nullable TKwextern>*/;
4409 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AExternClasskind> */
4411 if (var_n_kwclass
== NULL
) {
4412 var1
= 0; /* is null */
4414 var1
= 1; /* arg is null and recv is not */
4417 ((void (*)(val
*, val
*))(var_n_kwclass
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwclass
, self
) /* parent= on <var_n_kwclass:nullable TKwclass(TKwclass)>*/;
4422 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: Object, nullable TKwextern, nullable TKwclass) */
4423 void VIRTUAL_parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4424 parser_prod__AExternClasskind__init_aexternclasskind(self
, p0
, p1
);
4427 /* method parser_prod#AExternClasskind#replace_child for (self: AExternClasskind, ANode, nullable ANode) */
4428 void parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4429 val
* var_old_child
/* var old_child: ANode */;
4430 val
* var_new_child
/* var new_child: nullable ANode */;
4431 val
* var
/* : TKwextern */;
4432 short int var1
/* : Bool */;
4433 val
* var2
/* : null */;
4434 short int var3
/* : Bool */;
4435 short int var4
/* : Bool */;
4438 val
* var5
/* : nullable TKwclass */;
4439 short int var6
/* : Bool */;
4440 val
* var7
/* : null */;
4441 short int var8
/* : Bool */;
4442 short int var9
/* : Bool */;
4445 val
* var12
/* : null */;
4448 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4450 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwextern");
4451 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1066);
4454 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwextern>*/;
4457 if (var_new_child
== NULL
) {
4458 var3
= 0; /* is null */
4460 var3
= 1; /* arg is null and recv is not */
4463 ((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)>*/;
4464 /* <var_new_child:nullable ANode(ANode)> isa TKwextern */
4465 cltype
= type_parser_nodes__TKwextern
.color
;
4466 idtype
= type_parser_nodes__TKwextern
.id
;
4467 if(cltype
>= var_new_child
->type
->table_size
) {
4470 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4473 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4474 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1069);
4477 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_new_child
; /* _n_kwextern on <self:AExternClasskind> */
4479 fprintf(stderr
, "Runtime error: %s", "Aborted");
4480 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1072);
4486 var5
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4488 var6
= 0; /* <var_old_child:ANode> cannot be null */
4490 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable TKwclass>*/;
4494 if (var_new_child
== NULL
) {
4495 var8
= 0; /* is null */
4497 var8
= 1; /* arg is null and recv is not */
4500 ((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)>*/;
4501 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
4502 cltype10
= type_parser_nodes__TKwclass
.color
;
4503 idtype11
= type_parser_nodes__TKwclass
.id
;
4504 if(cltype10
>= var_new_child
->type
->table_size
) {
4507 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4510 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4511 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1079);
4514 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AExternClasskind> */
4517 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var12
; /* _n_kwclass on <self:AExternClasskind> */
4524 /* method parser_prod#AExternClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4525 void VIRTUAL_parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4526 parser_prod__AExternClasskind__replace_child(self
, p0
, p1
);
4529 /* method parser_prod#AExternClasskind#n_kwextern= for (self: AExternClasskind, TKwextern) */
4530 void parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4531 val
* var_node
/* var node: TKwextern */;
4533 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_node
; /* _n_kwextern on <self:AExternClasskind> */
4534 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwextern>*/;
4537 /* method parser_prod#AExternClasskind#n_kwextern= for (self: Object, TKwextern) */
4538 void VIRTUAL_parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4539 parser_prod__AExternClasskind__n_kwextern_61d(self
, p0
);
4542 /* method parser_prod#AExternClasskind#n_kwclass= for (self: AExternClasskind, nullable TKwclass) */
4543 void parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4544 val
* var_node
/* var node: nullable TKwclass */;
4545 val
* var
/* : null */;
4546 short int var1
/* : Bool */;
4548 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AExternClasskind> */
4550 if (var_node
== NULL
) {
4551 var1
= 0; /* is null */
4553 var1
= 1; /* arg is null and recv is not */
4556 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwclass(TKwclass)>*/;
4561 /* method parser_prod#AExternClasskind#n_kwclass= for (self: Object, nullable TKwclass) */
4562 void VIRTUAL_parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4563 parser_prod__AExternClasskind__n_kwclass_61d(self
, p0
);
4566 /* method parser_prod#AExternClasskind#visit_all for (self: AExternClasskind, Visitor) */
4567 void parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
4568 val
* var_v
/* var v: Visitor */;
4569 val
* var
/* : TKwextern */;
4570 val
* var1
/* : nullable TKwclass */;
4571 val
* var2
/* : null */;
4572 short int var3
/* : Bool */;
4573 val
* var4
/* : nullable TKwclass */;
4575 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4577 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwextern");
4578 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1104);
4581 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4582 var1
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4585 var3
= 0; /* is null */
4587 var3
= 1; /* arg is null and recv is not */
4590 var4
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4592 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4593 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1106);
4596 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
4601 /* method parser_prod#AExternClasskind#visit_all for (self: Object, Visitor) */
4602 void VIRTUAL_parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
4603 parser_prod__AExternClasskind__visit_all(self
, p0
);
4606 /* method parser_prod#AFormaldef#empty_init for (self: AFormaldef) */
4607 void parser_prod__AFormaldef__empty_init(val
* self
) {
4610 /* method parser_prod#AFormaldef#empty_init for (self: Object) */
4611 void VIRTUAL_parser_prod__AFormaldef__empty_init(val
* self
) {
4612 parser_prod__AFormaldef__empty_init(self
);
4615 /* method parser_prod#AFormaldef#init_aformaldef for (self: AFormaldef, nullable TClassid, nullable AType, nullable AAnnotations) */
4616 void parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4617 val
* var_n_id
/* var n_id: nullable TClassid */;
4618 val
* var_n_type
/* var n_type: nullable AType */;
4619 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4620 val
* var
/* : null */;
4621 short int var1
/* : Bool */;
4622 val
* var2
/* : null */;
4623 short int var3
/* : Bool */;
4626 var_n_annotations
= p2
;
4627 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AFormaldef__empty_init
]))(self
) /* empty_init on <self:AFormaldef>*/;
4628 if (var_n_id
== NULL
) {
4629 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4630 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1120);
4633 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_n_id
; /* _n_id on <self:AFormaldef> */
4634 if (var_n_id
== NULL
) {
4635 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4636 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1121);
4639 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TClassid>*/;
4641 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_n_type
; /* _n_type on <self:AFormaldef> */
4643 if (var_n_type
== NULL
) {
4644 var1
= 0; /* is null */
4646 var1
= 1; /* arg is null and recv is not */
4649 ((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(AType)>*/;
4652 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFormaldef> */
4654 if (var_n_annotations
== NULL
) {
4655 var3
= 0; /* is null */
4657 var3
= 1; /* arg is null and recv is not */
4660 ((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)>*/;
4665 /* method parser_prod#AFormaldef#init_aformaldef for (self: Object, nullable TClassid, nullable AType, nullable AAnnotations) */
4666 void VIRTUAL_parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4667 parser_prod__AFormaldef__init_aformaldef(self
, p0
, p1
, p2
);
4670 /* method parser_prod#AFormaldef#replace_child for (self: AFormaldef, ANode, nullable ANode) */
4671 void parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
4672 val
* var_old_child
/* var old_child: ANode */;
4673 val
* var_new_child
/* var new_child: nullable ANode */;
4674 val
* var
/* : TClassid */;
4675 short int var1
/* : Bool */;
4676 val
* var2
/* : null */;
4677 short int var3
/* : Bool */;
4678 short int var4
/* : Bool */;
4681 val
* var5
/* : nullable AType */;
4682 short int var6
/* : Bool */;
4683 val
* var7
/* : null */;
4684 short int var8
/* : Bool */;
4685 short int var9
/* : Bool */;
4688 val
* var12
/* : null */;
4689 val
* var13
/* : nullable AAnnotations */;
4690 short int var14
/* : Bool */;
4691 val
* var15
/* : null */;
4692 short int var16
/* : Bool */;
4693 short int var17
/* : Bool */;
4696 val
* var20
/* : null */;
4699 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4701 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_id");
4702 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1134);
4705 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TClassid>*/;
4708 if (var_new_child
== NULL
) {
4709 var3
= 0; /* is null */
4711 var3
= 1; /* arg is null and recv is not */
4714 ((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)>*/;
4715 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
4716 cltype
= type_parser_nodes__TClassid
.color
;
4717 idtype
= type_parser_nodes__TClassid
.id
;
4718 if(cltype
>= var_new_child
->type
->table_size
) {
4721 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4724 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4725 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1137);
4728 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_new_child
; /* _n_id on <self:AFormaldef> */
4730 fprintf(stderr
, "Runtime error: %s", "Aborted");
4731 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1140);
4737 var5
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4739 var6
= 0; /* <var_old_child:ANode> cannot be null */
4741 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable AType>*/;
4745 if (var_new_child
== NULL
) {
4746 var8
= 0; /* is null */
4748 var8
= 1; /* arg is null and recv is not */
4751 ((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)>*/;
4752 /* <var_new_child:nullable ANode(ANode)> isa AType */
4753 cltype10
= type_parser_nodes__AType
.color
;
4754 idtype11
= type_parser_nodes__AType
.id
;
4755 if(cltype10
>= var_new_child
->type
->table_size
) {
4758 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4761 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4762 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1147);
4765 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_new_child
; /* _n_type on <self:AFormaldef> */
4768 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var12
; /* _n_type on <self:AFormaldef> */
4773 var13
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4774 if (var13
== NULL
) {
4775 var14
= 0; /* <var_old_child:ANode> cannot be null */
4777 var14
= ((short int (*)(val
*, val
*))(var13
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var13
, var_old_child
) /* == on <var13:nullable AAnnotations>*/;
4781 if (var_new_child
== NULL
) {
4782 var16
= 0; /* is null */
4784 var16
= 1; /* arg is null and recv is not */
4787 ((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)>*/;
4788 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
4789 cltype18
= type_parser_nodes__AAnnotations
.color
;
4790 idtype19
= type_parser_nodes__AAnnotations
.id
;
4791 if(cltype18
>= var_new_child
->type
->table_size
) {
4794 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
4797 fprintf(stderr
, "Runtime error: %s", "Assert failed");
4798 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1157);
4801 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AFormaldef> */
4804 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var20
; /* _n_annotations on <self:AFormaldef> */
4811 /* method parser_prod#AFormaldef#replace_child for (self: Object, ANode, nullable ANode) */
4812 void VIRTUAL_parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
4813 parser_prod__AFormaldef__replace_child(self
, p0
, p1
);
4816 /* method parser_prod#AFormaldef#n_id= for (self: AFormaldef, TClassid) */
4817 void parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
4818 val
* var_node
/* var node: TClassid */;
4820 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_node
; /* _n_id on <self:AFormaldef> */
4821 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TClassid>*/;
4824 /* method parser_prod#AFormaldef#n_id= for (self: Object, TClassid) */
4825 void VIRTUAL_parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
4826 parser_prod__AFormaldef__n_id_61d(self
, p0
);
4829 /* method parser_prod#AFormaldef#n_type= for (self: AFormaldef, nullable AType) */
4830 void parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
4831 val
* var_node
/* var node: nullable AType */;
4832 val
* var
/* : null */;
4833 short int var1
/* : Bool */;
4835 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_node
; /* _n_type on <self:AFormaldef> */
4837 if (var_node
== NULL
) {
4838 var1
= 0; /* is null */
4840 var1
= 1; /* arg is null and recv is not */
4843 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AType(AType)>*/;
4848 /* method parser_prod#AFormaldef#n_type= for (self: Object, nullable AType) */
4849 void VIRTUAL_parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
4850 parser_prod__AFormaldef__n_type_61d(self
, p0
);
4853 /* method parser_prod#AFormaldef#n_annotations= for (self: AFormaldef, nullable AAnnotations) */
4854 void parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
4855 val
* var_node
/* var node: nullable AAnnotations */;
4856 val
* var
/* : null */;
4857 short int var1
/* : Bool */;
4859 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFormaldef> */
4861 if (var_node
== NULL
) {
4862 var1
= 0; /* is null */
4864 var1
= 1; /* arg is null and recv is not */
4867 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
4872 /* method parser_prod#AFormaldef#n_annotations= for (self: Object, nullable AAnnotations) */
4873 void VIRTUAL_parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
4874 parser_prod__AFormaldef__n_annotations_61d(self
, p0
);
4877 /* method parser_prod#AFormaldef#visit_all for (self: AFormaldef, Visitor) */
4878 void parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
4879 val
* var_v
/* var v: Visitor */;
4880 val
* var
/* : TClassid */;
4881 val
* var1
/* : nullable AType */;
4882 val
* var2
/* : null */;
4883 short int var3
/* : Bool */;
4884 val
* var4
/* : nullable AType */;
4885 val
* var5
/* : nullable AAnnotations */;
4886 val
* var6
/* : null */;
4887 short int var7
/* : Bool */;
4888 val
* var8
/* : nullable AAnnotations */;
4890 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4892 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_id");
4893 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1189);
4896 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4897 var1
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4900 var3
= 0; /* is null */
4902 var3
= 1; /* arg is null and recv is not */
4905 var4
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4907 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4908 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1191);
4911 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
4914 var5
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4917 var7
= 0; /* is null */
4919 var7
= 1; /* arg is null and recv is not */
4922 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4924 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4925 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1194);
4928 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
4933 /* method parser_prod#AFormaldef#visit_all for (self: Object, Visitor) */
4934 void VIRTUAL_parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
4935 parser_prod__AFormaldef__visit_all(self
, p0
);
4938 /* method parser_prod#ASuperclass#empty_init for (self: ASuperclass) */
4939 void parser_prod__ASuperclass__empty_init(val
* self
) {
4942 /* method parser_prod#ASuperclass#empty_init for (self: Object) */
4943 void VIRTUAL_parser_prod__ASuperclass__empty_init(val
* self
) {
4944 parser_prod__ASuperclass__empty_init(self
);
4947 /* method parser_prod#ASuperclass#init_asuperclass for (self: ASuperclass, nullable TKwsuper, nullable AType, nullable AAnnotations) */
4948 void parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4949 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
4950 val
* var_n_type
/* var n_type: nullable AType */;
4951 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4952 val
* var
/* : null */;
4953 short int var1
/* : Bool */;
4956 var_n_annotations
= p2
;
4957 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ASuperclass__empty_init
]))(self
) /* empty_init on <self:ASuperclass>*/;
4958 if (var_n_kwsuper
== NULL
) {
4959 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4960 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1208);
4963 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperclass> */
4964 if (var_n_kwsuper
== NULL
) {
4965 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4966 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1209);
4969 ((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>*/;
4971 if (var_n_type
== NULL
) {
4972 fprintf(stderr
, "Runtime error: %s", "Cast failed");
4973 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1210);
4976 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_n_type
; /* _n_type on <self:ASuperclass> */
4977 if (var_n_type
== NULL
) {
4978 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
4979 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1211);
4982 ((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>*/;
4984 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperclass> */
4986 if (var_n_annotations
== NULL
) {
4987 var1
= 0; /* is null */
4989 var1
= 1; /* arg is null and recv is not */
4992 ((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)>*/;
4997 /* method parser_prod#ASuperclass#init_asuperclass for (self: Object, nullable TKwsuper, nullable AType, nullable AAnnotations) */
4998 void VIRTUAL_parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4999 parser_prod__ASuperclass__init_asuperclass(self
, p0
, p1
, p2
);
5002 /* method parser_prod#ASuperclass#replace_child for (self: ASuperclass, ANode, nullable ANode) */
5003 void parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
5004 val
* var_old_child
/* var old_child: ANode */;
5005 val
* var_new_child
/* var new_child: nullable ANode */;
5006 val
* var
/* : TKwsuper */;
5007 short int var1
/* : Bool */;
5008 val
* var2
/* : null */;
5009 short int var3
/* : Bool */;
5010 short int var4
/* : Bool */;
5013 val
* var5
/* : AType */;
5014 short int var6
/* : Bool */;
5015 val
* var7
/* : null */;
5016 short int var8
/* : Bool */;
5017 short int var9
/* : Bool */;
5020 val
* var12
/* : nullable AAnnotations */;
5021 short int var13
/* : Bool */;
5022 val
* var14
/* : null */;
5023 short int var15
/* : Bool */;
5024 short int var16
/* : Bool */;
5027 val
* var19
/* : null */;
5030 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5032 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5033 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1220);
5036 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwsuper>*/;
5039 if (var_new_child
== NULL
) {
5040 var3
= 0; /* is null */
5042 var3
= 1; /* arg is null and recv is not */
5045 ((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)>*/;
5046 /* <var_new_child:nullable ANode(ANode)> isa TKwsuper */
5047 cltype
= type_parser_nodes__TKwsuper
.color
;
5048 idtype
= type_parser_nodes__TKwsuper
.id
;
5049 if(cltype
>= var_new_child
->type
->table_size
) {
5052 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5055 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5056 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1223);
5059 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_new_child
; /* _n_kwsuper on <self:ASuperclass> */
5061 fprintf(stderr
, "Runtime error: %s", "Aborted");
5062 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1226);
5068 var5
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5070 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_type");
5071 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1230);
5074 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:AType>*/;
5077 if (var_new_child
== NULL
) {
5078 var8
= 0; /* is null */
5080 var8
= 1; /* arg is null and recv is not */
5083 ((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)>*/;
5084 /* <var_new_child:nullable ANode(ANode)> isa AType */
5085 cltype10
= type_parser_nodes__AType
.color
;
5086 idtype11
= type_parser_nodes__AType
.id
;
5087 if(cltype10
>= var_new_child
->type
->table_size
) {
5090 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
5093 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5094 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1233);
5097 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_new_child
; /* _n_type on <self:ASuperclass> */
5099 fprintf(stderr
, "Runtime error: %s", "Aborted");
5100 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1236);
5106 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5107 if (var12
== NULL
) {
5108 var13
= 0; /* <var_old_child:ANode> cannot be null */
5110 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:nullable AAnnotations>*/;
5114 if (var_new_child
== NULL
) {
5115 var15
= 0; /* is null */
5117 var15
= 1; /* arg is null and recv is not */
5120 ((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)>*/;
5121 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
5122 cltype17
= type_parser_nodes__AAnnotations
.color
;
5123 idtype18
= type_parser_nodes__AAnnotations
.id
;
5124 if(cltype17
>= var_new_child
->type
->table_size
) {
5127 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
5130 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5131 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1243);
5134 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:ASuperclass> */
5137 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var19
; /* _n_annotations on <self:ASuperclass> */
5144 /* method parser_prod#ASuperclass#replace_child for (self: Object, ANode, nullable ANode) */
5145 void VIRTUAL_parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
5146 parser_prod__ASuperclass__replace_child(self
, p0
, p1
);
5149 /* method parser_prod#ASuperclass#n_kwsuper= for (self: ASuperclass, TKwsuper) */
5150 void parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
5151 val
* var_node
/* var node: TKwsuper */;
5153 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperclass> */
5154 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwsuper>*/;
5157 /* method parser_prod#ASuperclass#n_kwsuper= for (self: Object, TKwsuper) */
5158 void VIRTUAL_parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
5159 parser_prod__ASuperclass__n_kwsuper_61d(self
, p0
);
5162 /* method parser_prod#ASuperclass#n_type= for (self: ASuperclass, AType) */
5163 void parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
5164 val
* var_node
/* var node: AType */;
5166 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_node
; /* _n_type on <self:ASuperclass> */
5167 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
5170 /* method parser_prod#ASuperclass#n_type= for (self: Object, AType) */
5171 void VIRTUAL_parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
5172 parser_prod__ASuperclass__n_type_61d(self
, p0
);
5175 /* method parser_prod#ASuperclass#n_annotations= for (self: ASuperclass, nullable AAnnotations) */
5176 void parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
5177 val
* var_node
/* var node: nullable AAnnotations */;
5178 val
* var
/* : null */;
5179 short int var1
/* : Bool */;
5181 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperclass> */
5183 if (var_node
== NULL
) {
5184 var1
= 0; /* is null */
5186 var1
= 1; /* arg is null and recv is not */
5189 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
5194 /* method parser_prod#ASuperclass#n_annotations= for (self: Object, nullable AAnnotations) */
5195 void VIRTUAL_parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
5196 parser_prod__ASuperclass__n_annotations_61d(self
, p0
);
5199 /* method parser_prod#ASuperclass#visit_all for (self: ASuperclass, Visitor) */
5200 void parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
5201 val
* var_v
/* var v: Visitor */;
5202 val
* var
/* : TKwsuper */;
5203 val
* var1
/* : AType */;
5204 val
* var2
/* : nullable AAnnotations */;
5205 val
* var3
/* : null */;
5206 short int var4
/* : Bool */;
5207 val
* var5
/* : nullable AAnnotations */;
5209 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
5211 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwsuper");
5212 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1273);
5215 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
5216 var1
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
5218 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_type");
5219 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1274);
5222 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
5223 var2
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5226 var4
= 0; /* is null */
5228 var4
= 1; /* arg is null and recv is not */
5231 var5
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5233 fprintf(stderr
, "Runtime error: %s", "Cast failed");
5234 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1276);
5237 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var5
) /* enter_visit on <var_v:Visitor>*/;
5242 /* method parser_prod#ASuperclass#visit_all for (self: Object, Visitor) */
5243 void VIRTUAL_parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
5244 parser_prod__ASuperclass__visit_all(self
, p0
);
5247 /* method parser_prod#AAttrPropdef#empty_init for (self: AAttrPropdef) */
5248 void parser_prod__AAttrPropdef__empty_init(val
* self
) {
5251 /* method parser_prod#AAttrPropdef#empty_init for (self: Object) */
5252 void VIRTUAL_parser_prod__AAttrPropdef__empty_init(val
* self
) {
5253 parser_prod__AAttrPropdef__empty_init(self
);
5256 /* method parser_prod#AAttrPropdef#init_aattrpropdef for (self: AAttrPropdef, nullable ADoc, nullable AAble, nullable AAble, nullable TKwredef, nullable AVisibility, nullable TKwvar, nullable TAttrid, nullable TId, nullable AType, nullable AAnnotations, nullable AExpr) */
5257 void parser_prod__AAttrPropdef__init_aattrpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
) {
5258 val
* var_n_doc
/* var n_doc: nullable ADoc */;
5259 val
* var_n_readable
/* var n_readable: nullable AAble */;
5260 val
* var_n_writable
/* var n_writable: nullable AAble */;
5261 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
5262 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
5263 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
5264 val
* var_n_id
/* var n_id: nullable TAttrid */;
5265 val
* var_n_id2
/* var n_id2: nullable TId */;
5266 val
* var_n_type
/* var n_type: nullable AType */;
5267 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5268 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5269 val
* var
/* : null */;
5270 short int var1
/* : Bool */;
5271 val
* var2
/* : null */;
5272 short int var3
/* : Bool */;
5273 val
* var4
/* : null */;
5274 short int var5
/* : Bool */;
5275 val
* var6
/* : null */;
5276 short int var7
/* : Bool */;
5277 val
* var8
/* : null */;
5278 short int var9
/* : Bool */;
5279 val
* var10
/* : null */;
5280 short int var11
/* : Bool */;
5281 val
* var12
/* : null */;
5282 short int var13
/* : Bool */;
5283 val
* var14
/* : null */;
5284 short int var15
/* : Bool */;
5285 val
* var16
/* : null */;
5286 short int var17
/* : Bool */;
5288 var_n_readable
= p1
;
5289 var_n_writable
= p2
;
5291 var_n_visibility
= p4
;
5296 var_n_annotations
= p9
;
5298 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAttrPropdef__empty_init
]))(self
) /* empty_init on <self:AAttrPropdef>*/;
5299 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAttrPropdef> */
5301 if (var_n_doc
== NULL
) {
5302 var1
= 0; /* is null */
5304 var1
= 1; /* arg is null and recv is not */
5307 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
5310 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_n_readable
; /* _n_readable on <self:AAttrPropdef> */
5312 if (var_n_readable
== NULL
) {
5313 var3
= 0; /* is null */
5315 var3
= 1; /* arg is null and recv is not */
5318 ((void (*)(val
*, val
*))(var_n_readable
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_readable
, self
) /* parent= on <var_n_readable:nullable AAble(AAble)>*/;
5321 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_n_writable
; /* _n_writable on <self:AAttrPropdef> */
5323 if (var_n_writable
== NULL
) {
5324 var5
= 0; /* is null */
5326 var5
= 1; /* arg is null and recv is not */
5329 ((void (*)(val
*, val
*))(var_n_writable
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_writable
, self
) /* parent= on <var_n_writable:nullable AAble(AAble)>*/;
5332 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAttrPropdef> */
5334 if (var_n_kwredef
== NULL
) {
5335 var7
= 0; /* is null */
5337 var7
= 1; /* arg is null and recv is not */
5340 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
5343 if (var_n_visibility
== NULL
) {
5344 fprintf(stderr
, "Runtime error: %s", "Cast failed");
5345 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1314);
5348 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAttrPropdef> */
5349 if (var_n_visibility
== NULL
) {
5350 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
5351 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1315);
5354 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
5356 if (var_n_kwvar
== NULL
) {
5357 fprintf(stderr
, "Runtime error: %s", "Cast failed");
5358 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1316);
5361 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AAttrPropdef> */
5362 if (var_n_kwvar
== NULL
) {
5363 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
5364 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1317);
5367 ((void (*)(val
*, val
*))(var_n_kwvar
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwvar
, self
) /* parent= on <var_n_kwvar:nullable TKwvar>*/;
5369 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrPropdef> */
5371 if (var_n_id
== NULL
) {
5372 var9
= 0; /* is null */
5374 var9
= 1; /* arg is null and recv is not */
5377 ((void (*)(val
*, val
*))(var_n_id
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id
, self
) /* parent= on <var_n_id:nullable TAttrid(TAttrid)>*/;
5380 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_n_id2
; /* _n_id2 on <self:AAttrPropdef> */
5382 if (var_n_id2
== NULL
) {
5383 var11
= 0; /* is null */
5385 var11
= 1; /* arg is null and recv is not */
5388 ((void (*)(val
*, val
*))(var_n_id2
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_id2
, self
) /* parent= on <var_n_id2:nullable TId(TId)>*/;
5391 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:AAttrPropdef> */
5393 if (var_n_type
== NULL
) {
5394 var13
= 0; /* is null */
5396 var13
= 1; /* arg is null and recv is not */
5399 ((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(AType)>*/;
5402 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAttrPropdef> */
5404 if (var_n_annotations
== NULL
) {
5405 var15
= 0; /* is null */
5407 var15
= 1; /* arg is null and recv is not */
5410 ((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)>*/;
5413 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrPropdef> */
5415 if (var_n_expr
== NULL
) {
5416 var17
= 0; /* is null */
5418 var17
= 1; /* arg is null and recv is not */
5421 ((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(AExpr)>*/;
5426 /* method parser_prod#AAttrPropdef#init_aattrpropdef for (self: Object, nullable ADoc, nullable AAble, nullable AAble, nullable TKwredef, nullable AVisibility, nullable TKwvar, nullable TAttrid, nullable TId, nullable AType, nullable AAnnotations, nullable AExpr) */
5427 void VIRTUAL_parser_prod__AAttrPropdef__init_aattrpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
, val
* p9
, val
* p10
) {
5428 parser_prod__AAttrPropdef__init_aattrpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
);
5431 /* method parser_prod#AAttrPropdef#replace_child for (self: AAttrPropdef, ANode, nullable ANode) */
5432 void parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5433 val
* var_old_child
/* var old_child: ANode */;
5434 val
* var_new_child
/* var new_child: nullable ANode */;
5435 val
* var
/* : nullable ADoc */;
5436 short int var1
/* : Bool */;
5437 val
* var2
/* : null */;
5438 short int var3
/* : Bool */;
5439 short int var4
/* : Bool */;
5442 val
* var5
/* : null */;
5443 val
* var6
/* : nullable AAble */;
5444 short int var7
/* : Bool */;
5445 val
* var8
/* : null */;
5446 short int var9
/* : Bool */;
5447 short int var10
/* : Bool */;
5450 val
* var13
/* : null */;
5451 val
* var14
/* : nullable AAble */;
5452 short int var15
/* : Bool */;
5453 val
* var16
/* : null */;
5454 short int var17
/* : Bool */;
5455 short int var18
/* : Bool */;
5458 val
* var21
/* : null */;
5459 val
* var22
/* : nullable TKwredef */;
5460 short int var23
/* : Bool */;
5461 val
* var24
/* : null */;
5462 short int var25
/* : Bool */;
5463 short int var26
/* : Bool */;
5466 val
* var29
/* : null */;
5467 val
* var30
/* : AVisibility */;
5468 short int var31
/* : Bool */;
5469 val
* var32
/* : null */;
5470 short int var33
/* : Bool */;
5471 short int var34
/* : Bool */;
5474 val
* var37
/* : TKwvar */;
5475 short int var38
/* : Bool */;
5476 val
* var39
/* : null */;
5477 short int var40
/* : Bool */;
5478 short int var41
/* : Bool */;
5481 val
* var44
/* : nullable TAttrid */;
5482 short int var45
/* : Bool */;
5483 val
* var46
/* : null */;
5484 short int var47
/* : Bool */;
5485 short int var48
/* : Bool */;
5488 val
* var51
/* : null */;
5489 val
* var52
/* : nullable TId */;
5490 short int var53
/* : Bool */;
5491 val
* var54
/* : null */;
5492 short int var55
/* : Bool */;
5493 short int var56
/* : Bool */;
5496 val
* var59
/* : null */;
5497 val
* var60
/* : nullable AType */;
5498 short int var61
/* : Bool */;
5499 val
* var62
/* : null */;
5500 short int var63
/* : Bool */;
5501 short int var64
/* : Bool */;
5504 val
* var67
/* : null */;
5505 val
* var68
/* : nullable AAnnotations */;
5506 short int var69
/* : Bool */;
5507 val
* var70
/* : null */;
5508 short int var71
/* : Bool */;
5509 short int var72
/* : Bool */;
5512 val
* var75
/* : null */;
5513 val
* var76
/* : nullable AExpr */;
5514 short int var77
/* : Bool */;
5515 val
* var78
/* : null */;
5516 short int var79
/* : Bool */;
5517 short int var80
/* : Bool */;
5520 val
* var83
/* : null */;
5523 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5525 var1
= 0; /* <var_old_child:ANode> cannot be null */
5527 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
5531 if (var_new_child
== NULL
) {
5532 var3
= 0; /* is null */
5534 var3
= 1; /* arg is null and recv is not */
5537 ((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)>*/;
5538 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
5539 cltype
= type_parser_nodes__ADoc
.color
;
5540 idtype
= type_parser_nodes__ADoc
.id
;
5541 if(cltype
>= var_new_child
->type
->table_size
) {
5544 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5547 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5548 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1345);
5551 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AAttrPropdef> */
5554 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AAttrPropdef> */
5559 var6
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
5561 var7
= 0; /* <var_old_child:ANode> cannot be null */
5563 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable AAble>*/;
5567 if (var_new_child
== NULL
) {
5568 var9
= 0; /* is null */
5570 var9
= 1; /* arg is null and recv is not */
5573 ((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)>*/;
5574 /* <var_new_child:nullable ANode(ANode)> isa AAble */
5575 cltype11
= type_parser_nodes__AAble
.color
;
5576 idtype12
= type_parser_nodes__AAble
.id
;
5577 if(cltype11
>= var_new_child
->type
->table_size
) {
5580 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
5583 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5584 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1355);
5587 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_new_child
; /* _n_readable on <self:AAttrPropdef> */
5590 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var13
; /* _n_readable on <self:AAttrPropdef> */
5595 var14
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
5596 if (var14
== NULL
) {
5597 var15
= 0; /* <var_old_child:ANode> cannot be null */
5599 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AAble>*/;
5603 if (var_new_child
== NULL
) {
5604 var17
= 0; /* is null */
5606 var17
= 1; /* arg is null and recv is not */
5609 ((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)>*/;
5610 /* <var_new_child:nullable ANode(ANode)> isa AAble */
5611 cltype19
= type_parser_nodes__AAble
.color
;
5612 idtype20
= type_parser_nodes__AAble
.id
;
5613 if(cltype19
>= var_new_child
->type
->table_size
) {
5616 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
5619 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5620 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1365);
5623 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_new_child
; /* _n_writable on <self:AAttrPropdef> */
5626 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var21
; /* _n_writable on <self:AAttrPropdef> */
5631 var22
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
5632 if (var22
== NULL
) {
5633 var23
= 0; /* <var_old_child:ANode> cannot be null */
5635 var23
= ((short int (*)(val
*, val
*))(var22
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var22
, var_old_child
) /* == on <var22:nullable TKwredef>*/;
5639 if (var_new_child
== NULL
) {
5640 var25
= 0; /* is null */
5642 var25
= 1; /* arg is null and recv is not */
5645 ((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)>*/;
5646 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
5647 cltype27
= type_parser_nodes__TKwredef
.color
;
5648 idtype28
= type_parser_nodes__TKwredef
.id
;
5649 if(cltype27
>= var_new_child
->type
->table_size
) {
5652 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5655 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5656 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1375);
5659 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AAttrPropdef> */
5662 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var29
; /* _n_kwredef on <self:AAttrPropdef> */
5667 var30
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
5668 if (var30
== NULL
) {
5669 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
5670 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1382);
5673 var31
= ((short int (*)(val
*, val
*))(var30
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var30
, var_old_child
) /* == on <var30:AVisibility>*/;
5676 if (var_new_child
== NULL
) {
5677 var33
= 0; /* is null */
5679 var33
= 1; /* arg is null and recv is not */
5682 ((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)>*/;
5683 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
5684 cltype35
= type_parser_nodes__AVisibility
.color
;
5685 idtype36
= type_parser_nodes__AVisibility
.id
;
5686 if(cltype35
>= var_new_child
->type
->table_size
) {
5689 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
5692 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5693 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1385);
5696 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AAttrPropdef> */
5698 fprintf(stderr
, "Runtime error: %s", "Aborted");
5699 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1388);
5705 var37
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
5706 if (var37
== NULL
) {
5707 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwvar");
5708 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1392);
5711 var38
= ((short int (*)(val
*, val
*))(var37
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var37
, var_old_child
) /* == on <var37:TKwvar>*/;
5714 if (var_new_child
== NULL
) {
5715 var40
= 0; /* is null */
5717 var40
= 1; /* arg is null and recv is not */
5720 ((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)>*/;
5721 /* <var_new_child:nullable ANode(ANode)> isa TKwvar */
5722 cltype42
= type_parser_nodes__TKwvar
.color
;
5723 idtype43
= type_parser_nodes__TKwvar
.id
;
5724 if(cltype42
>= var_new_child
->type
->table_size
) {
5727 var41
= var_new_child
->type
->type_table
[cltype42
] == idtype43
;
5730 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5731 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1395);
5734 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_new_child
; /* _n_kwvar on <self:AAttrPropdef> */
5736 fprintf(stderr
, "Runtime error: %s", "Aborted");
5737 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1398);
5743 var44
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
5744 if (var44
== NULL
) {
5745 var45
= 0; /* <var_old_child:ANode> cannot be null */
5747 var45
= ((short int (*)(val
*, val
*))(var44
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var44
, var_old_child
) /* == on <var44:nullable TAttrid>*/;
5751 if (var_new_child
== NULL
) {
5752 var47
= 0; /* is null */
5754 var47
= 1; /* arg is null and recv is not */
5757 ((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)>*/;
5758 /* <var_new_child:nullable ANode(ANode)> isa TAttrid */
5759 cltype49
= type_parser_nodes__TAttrid
.color
;
5760 idtype50
= type_parser_nodes__TAttrid
.id
;
5761 if(cltype49
>= var_new_child
->type
->table_size
) {
5764 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
5767 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5768 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1405);
5771 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_new_child
; /* _n_id on <self:AAttrPropdef> */
5774 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var51
; /* _n_id on <self:AAttrPropdef> */
5779 var52
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
5780 if (var52
== NULL
) {
5781 var53
= 0; /* <var_old_child:ANode> cannot be null */
5783 var53
= ((short int (*)(val
*, val
*))(var52
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var52
, var_old_child
) /* == on <var52:nullable TId>*/;
5787 if (var_new_child
== NULL
) {
5788 var55
= 0; /* is null */
5790 var55
= 1; /* arg is null and recv is not */
5793 ((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)>*/;
5794 /* <var_new_child:nullable ANode(ANode)> isa TId */
5795 cltype57
= type_parser_nodes__TId
.color
;
5796 idtype58
= type_parser_nodes__TId
.id
;
5797 if(cltype57
>= var_new_child
->type
->table_size
) {
5800 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
5803 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5804 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1415);
5807 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_new_child
; /* _n_id2 on <self:AAttrPropdef> */
5810 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var59
; /* _n_id2 on <self:AAttrPropdef> */
5815 var60
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
5816 if (var60
== NULL
) {
5817 var61
= 0; /* <var_old_child:ANode> cannot be null */
5819 var61
= ((short int (*)(val
*, val
*))(var60
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var60
, var_old_child
) /* == on <var60:nullable AType>*/;
5823 if (var_new_child
== NULL
) {
5824 var63
= 0; /* is null */
5826 var63
= 1; /* arg is null and recv is not */
5829 ((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)>*/;
5830 /* <var_new_child:nullable ANode(ANode)> isa AType */
5831 cltype65
= type_parser_nodes__AType
.color
;
5832 idtype66
= type_parser_nodes__AType
.id
;
5833 if(cltype65
>= var_new_child
->type
->table_size
) {
5836 var64
= var_new_child
->type
->type_table
[cltype65
] == idtype66
;
5839 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5840 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1425);
5843 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_new_child
; /* _n_type on <self:AAttrPropdef> */
5846 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var67
; /* _n_type on <self:AAttrPropdef> */
5851 var68
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
5852 if (var68
== NULL
) {
5853 var69
= 0; /* <var_old_child:ANode> cannot be null */
5855 var69
= ((short int (*)(val
*, val
*))(var68
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var68
, var_old_child
) /* == on <var68:nullable AAnnotations>*/;
5859 if (var_new_child
== NULL
) {
5860 var71
= 0; /* is null */
5862 var71
= 1; /* arg is null and recv is not */
5865 ((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)>*/;
5866 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
5867 cltype73
= type_parser_nodes__AAnnotations
.color
;
5868 idtype74
= type_parser_nodes__AAnnotations
.id
;
5869 if(cltype73
>= var_new_child
->type
->table_size
) {
5872 var72
= var_new_child
->type
->type_table
[cltype73
] == idtype74
;
5875 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5876 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1435);
5879 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AAttrPropdef> */
5882 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var75
; /* _n_annotations on <self:AAttrPropdef> */
5887 var76
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
5888 if (var76
== NULL
) {
5889 var77
= 0; /* <var_old_child:ANode> cannot be null */
5891 var77
= ((short int (*)(val
*, val
*))(var76
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var76
, var_old_child
) /* == on <var76:nullable AExpr>*/;
5895 if (var_new_child
== NULL
) {
5896 var79
= 0; /* is null */
5898 var79
= 1; /* arg is null and recv is not */
5901 ((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)>*/;
5902 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
5903 cltype81
= type_parser_nodes__AExpr
.color
;
5904 idtype82
= type_parser_nodes__AExpr
.id
;
5905 if(cltype81
>= var_new_child
->type
->table_size
) {
5908 var80
= var_new_child
->type
->type_table
[cltype81
] == idtype82
;
5911 fprintf(stderr
, "Runtime error: %s", "Assert failed");
5912 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1445);
5915 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_new_child
; /* _n_expr on <self:AAttrPropdef> */
5918 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var83
; /* _n_expr on <self:AAttrPropdef> */
5925 /* method parser_prod#AAttrPropdef#replace_child for (self: Object, ANode, nullable ANode) */
5926 void VIRTUAL_parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5927 parser_prod__AAttrPropdef__replace_child(self
, p0
, p1
);
5930 /* method parser_prod#AAttrPropdef#n_doc= for (self: AAttrPropdef, nullable ADoc) */
5931 void parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
5932 val
* var_node
/* var node: nullable ADoc */;
5933 val
* var
/* : null */;
5934 short int var1
/* : Bool */;
5936 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AAttrPropdef> */
5938 if (var_node
== NULL
) {
5939 var1
= 0; /* is null */
5941 var1
= 1; /* arg is null and recv is not */
5944 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
5949 /* method parser_prod#AAttrPropdef#n_doc= for (self: Object, nullable ADoc) */
5950 void VIRTUAL_parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
5951 parser_prod__AAttrPropdef__n_doc_61d(self
, p0
);
5954 /* method parser_prod#AAttrPropdef#n_readable= for (self: AAttrPropdef, nullable AAble) */
5955 void parser_prod__AAttrPropdef__n_readable_61d(val
* self
, val
* p0
) {
5956 val
* var_node
/* var node: nullable AAble */;
5957 val
* var
/* : null */;
5958 short int var1
/* : Bool */;
5960 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_node
; /* _n_readable on <self:AAttrPropdef> */
5962 if (var_node
== NULL
) {
5963 var1
= 0; /* is null */
5965 var1
= 1; /* arg is null and recv is not */
5968 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAble(AAble)>*/;
5973 /* method parser_prod#AAttrPropdef#n_readable= for (self: Object, nullable AAble) */
5974 void VIRTUAL_parser_prod__AAttrPropdef__n_readable_61d(val
* self
, val
* p0
) {
5975 parser_prod__AAttrPropdef__n_readable_61d(self
, p0
);
5978 /* method parser_prod#AAttrPropdef#n_writable= for (self: AAttrPropdef, nullable AAble) */
5979 void parser_prod__AAttrPropdef__n_writable_61d(val
* self
, val
* p0
) {
5980 val
* var_node
/* var node: nullable AAble */;
5981 val
* var
/* : null */;
5982 short int var1
/* : Bool */;
5984 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_node
; /* _n_writable on <self:AAttrPropdef> */
5986 if (var_node
== NULL
) {
5987 var1
= 0; /* is null */
5989 var1
= 1; /* arg is null and recv is not */
5992 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAble(AAble)>*/;
5997 /* method parser_prod#AAttrPropdef#n_writable= for (self: Object, nullable AAble) */
5998 void VIRTUAL_parser_prod__AAttrPropdef__n_writable_61d(val
* self
, val
* p0
) {
5999 parser_prod__AAttrPropdef__n_writable_61d(self
, p0
);
6002 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: AAttrPropdef, nullable TKwredef) */
6003 void parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6004 val
* var_node
/* var node: nullable TKwredef */;
6005 val
* var
/* : null */;
6006 short int var1
/* : Bool */;
6008 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAttrPropdef> */
6010 if (var_node
== NULL
) {
6011 var1
= 0; /* is null */
6013 var1
= 1; /* arg is null and recv is not */
6016 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
6021 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
6022 void VIRTUAL_parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6023 parser_prod__AAttrPropdef__n_kwredef_61d(self
, p0
);
6026 /* method parser_prod#AAttrPropdef#n_visibility= for (self: AAttrPropdef, AVisibility) */
6027 void parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6028 val
* var_node
/* var node: AVisibility */;
6030 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAttrPropdef> */
6031 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
6034 /* method parser_prod#AAttrPropdef#n_visibility= for (self: Object, AVisibility) */
6035 void VIRTUAL_parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6036 parser_prod__AAttrPropdef__n_visibility_61d(self
, p0
);
6039 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: AAttrPropdef, TKwvar) */
6040 void parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
6041 val
* var_node
/* var node: TKwvar */;
6043 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AAttrPropdef> */
6044 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwvar>*/;
6047 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: Object, TKwvar) */
6048 void VIRTUAL_parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
6049 parser_prod__AAttrPropdef__n_kwvar_61d(self
, p0
);
6052 /* method parser_prod#AAttrPropdef#n_id= for (self: AAttrPropdef, nullable TAttrid) */
6053 void parser_prod__AAttrPropdef__n_id_61d(val
* self
, val
* p0
) {
6054 val
* var_node
/* var node: nullable TAttrid */;
6055 val
* var
/* : null */;
6056 short int var1
/* : Bool */;
6058 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_node
; /* _n_id on <self:AAttrPropdef> */
6060 if (var_node
== NULL
) {
6061 var1
= 0; /* is null */
6063 var1
= 1; /* arg is null and recv is not */
6066 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TAttrid(TAttrid)>*/;
6071 /* method parser_prod#AAttrPropdef#n_id= for (self: Object, nullable TAttrid) */
6072 void VIRTUAL_parser_prod__AAttrPropdef__n_id_61d(val
* self
, val
* p0
) {
6073 parser_prod__AAttrPropdef__n_id_61d(self
, p0
);
6076 /* method parser_prod#AAttrPropdef#n_id2= for (self: AAttrPropdef, nullable TId) */
6077 void parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
6078 val
* var_node
/* var node: nullable TId */;
6079 val
* var
/* : null */;
6080 short int var1
/* : Bool */;
6082 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_node
; /* _n_id2 on <self:AAttrPropdef> */
6084 if (var_node
== NULL
) {
6085 var1
= 0; /* is null */
6087 var1
= 1; /* arg is null and recv is not */
6090 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TId(TId)>*/;
6095 /* method parser_prod#AAttrPropdef#n_id2= for (self: Object, nullable TId) */
6096 void VIRTUAL_parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
6097 parser_prod__AAttrPropdef__n_id2_61d(self
, p0
);
6100 /* method parser_prod#AAttrPropdef#n_type= for (self: AAttrPropdef, nullable AType) */
6101 void parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
6102 val
* var_node
/* var node: nullable AType */;
6103 val
* var
/* : null */;
6104 short int var1
/* : Bool */;
6106 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_node
; /* _n_type on <self:AAttrPropdef> */
6108 if (var_node
== NULL
) {
6109 var1
= 0; /* is null */
6111 var1
= 1; /* arg is null and recv is not */
6114 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AType(AType)>*/;
6119 /* method parser_prod#AAttrPropdef#n_type= for (self: Object, nullable AType) */
6120 void VIRTUAL_parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
6121 parser_prod__AAttrPropdef__n_type_61d(self
, p0
);
6124 /* method parser_prod#AAttrPropdef#n_annotations= for (self: AAttrPropdef, nullable AAnnotations) */
6125 void parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
6126 val
* var_node
/* var node: nullable AAnnotations */;
6127 val
* var
/* : null */;
6128 short int var1
/* : Bool */;
6130 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAttrPropdef> */
6132 if (var_node
== NULL
) {
6133 var1
= 0; /* is null */
6135 var1
= 1; /* arg is null and recv is not */
6138 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
6143 /* method parser_prod#AAttrPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
6144 void VIRTUAL_parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
6145 parser_prod__AAttrPropdef__n_annotations_61d(self
, p0
);
6148 /* method parser_prod#AAttrPropdef#n_expr= for (self: AAttrPropdef, nullable AExpr) */
6149 void parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
6150 val
* var_node
/* var node: nullable AExpr */;
6151 val
* var
/* : null */;
6152 short int var1
/* : Bool */;
6154 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrPropdef> */
6156 if (var_node
== NULL
) {
6157 var1
= 0; /* is null */
6159 var1
= 1; /* arg is null and recv is not */
6162 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExpr(AExpr)>*/;
6167 /* method parser_prod#AAttrPropdef#n_expr= for (self: Object, nullable AExpr) */
6168 void VIRTUAL_parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
6169 parser_prod__AAttrPropdef__n_expr_61d(self
, p0
);
6172 /* method parser_prod#AAttrPropdef#visit_all for (self: AAttrPropdef, Visitor) */
6173 void parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
6174 val
* var_v
/* var v: Visitor */;
6175 val
* var
/* : nullable ADoc */;
6176 val
* var1
/* : null */;
6177 short int var2
/* : Bool */;
6178 val
* var3
/* : nullable ADoc */;
6179 val
* var4
/* : nullable AAble */;
6180 val
* var5
/* : null */;
6181 short int var6
/* : Bool */;
6182 val
* var7
/* : nullable AAble */;
6183 val
* var8
/* : nullable AAble */;
6184 val
* var9
/* : null */;
6185 short int var10
/* : Bool */;
6186 val
* var11
/* : nullable AAble */;
6187 val
* var12
/* : nullable TKwredef */;
6188 val
* var13
/* : null */;
6189 short int var14
/* : Bool */;
6190 val
* var15
/* : nullable TKwredef */;
6191 val
* var16
/* : AVisibility */;
6192 val
* var17
/* : TKwvar */;
6193 val
* var18
/* : nullable TAttrid */;
6194 val
* var19
/* : null */;
6195 short int var20
/* : Bool */;
6196 val
* var21
/* : nullable TAttrid */;
6197 val
* var22
/* : nullable TId */;
6198 val
* var23
/* : null */;
6199 short int var24
/* : Bool */;
6200 val
* var25
/* : nullable TId */;
6201 val
* var26
/* : nullable AType */;
6202 val
* var27
/* : null */;
6203 short int var28
/* : Bool */;
6204 val
* var29
/* : nullable AType */;
6205 val
* var30
/* : nullable AAnnotations */;
6206 val
* var31
/* : null */;
6207 short int var32
/* : Bool */;
6208 val
* var33
/* : nullable AAnnotations */;
6209 val
* var34
/* : nullable AExpr */;
6210 val
* var35
/* : null */;
6211 short int var36
/* : Bool */;
6212 val
* var37
/* : nullable AExpr */;
6214 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
6217 var2
= 0; /* is null */
6219 var2
= 1; /* arg is null and recv is not */
6222 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
6224 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6225 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1532);
6228 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
6231 var4
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
6234 var6
= 0; /* is null */
6236 var6
= 1; /* arg is null and recv is not */
6239 var7
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
6241 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6242 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1535);
6245 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
6248 var8
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
6251 var10
= 0; /* is null */
6253 var10
= 1; /* arg is null and recv is not */
6256 var11
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
6257 if (var11
== NULL
) {
6258 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6259 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1538);
6262 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
6265 var12
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6267 if (var12
== NULL
) {
6268 var14
= 0; /* is null */
6270 var14
= 1; /* arg is null and recv is not */
6273 var15
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6274 if (var15
== NULL
) {
6275 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6276 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1541);
6279 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
6282 var16
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
6283 if (var16
== NULL
) {
6284 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_visibility");
6285 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1543);
6288 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var16
) /* enter_visit on <var_v:Visitor>*/;
6289 var17
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
6290 if (var17
== NULL
) {
6291 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwvar");
6292 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1544);
6295 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var17
) /* enter_visit on <var_v:Visitor>*/;
6296 var18
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
6298 if (var18
== NULL
) {
6299 var20
= 0; /* is null */
6301 var20
= 1; /* arg is null and recv is not */
6304 var21
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
6305 if (var21
== NULL
) {
6306 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6307 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1546);
6310 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var21
) /* enter_visit on <var_v:Visitor>*/;
6313 var22
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6315 if (var22
== NULL
) {
6316 var24
= 0; /* is null */
6318 var24
= 1; /* arg is null and recv is not */
6321 var25
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6322 if (var25
== NULL
) {
6323 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6324 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1549);
6327 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var25
) /* enter_visit on <var_v:Visitor>*/;
6330 var26
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6332 if (var26
== NULL
) {
6333 var28
= 0; /* is null */
6335 var28
= 1; /* arg is null and recv is not */
6338 var29
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6339 if (var29
== NULL
) {
6340 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6341 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1552);
6344 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var29
) /* enter_visit on <var_v:Visitor>*/;
6347 var30
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6349 if (var30
== NULL
) {
6350 var32
= 0; /* is null */
6352 var32
= 1; /* arg is null and recv is not */
6355 var33
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6356 if (var33
== NULL
) {
6357 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6358 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1555);
6361 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var33
) /* enter_visit on <var_v:Visitor>*/;
6364 var34
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6366 if (var34
== NULL
) {
6367 var36
= 0; /* is null */
6369 var36
= 1; /* arg is null and recv is not */
6372 var37
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6373 if (var37
== NULL
) {
6374 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6375 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1558);
6378 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var37
) /* enter_visit on <var_v:Visitor>*/;
6383 /* method parser_prod#AAttrPropdef#visit_all for (self: Object, Visitor) */
6384 void VIRTUAL_parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
6385 parser_prod__AAttrPropdef__visit_all(self
, p0
);
6388 /* method parser_prod#AMethPropdef#empty_init for (self: AMethPropdef) */
6389 void parser_prod__AMethPropdef__empty_init(val
* self
) {
6392 /* method parser_prod#AMethPropdef#empty_init for (self: Object) */
6393 void VIRTUAL_parser_prod__AMethPropdef__empty_init(val
* self
) {
6394 parser_prod__AMethPropdef__empty_init(self
);
6397 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: AMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AMethid, nullable ASignature) */
6398 void parser_prod__AMethPropdef__init_amethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
6399 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6400 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6401 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6402 val
* var_n_methid
/* var n_methid: nullable AMethid */;
6403 val
* var_n_signature
/* var n_signature: nullable ASignature */;
6404 val
* var
/* : null */;
6405 short int var1
/* : Bool */;
6406 val
* var2
/* : null */;
6407 short int var3
/* : Bool */;
6410 var_n_visibility
= p2
;
6412 var_n_signature
= p4
;
6413 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AMethPropdef__empty_init
]))(self
) /* empty_init on <self:AMethPropdef>*/;
6414 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AMethPropdef> */
6416 if (var_n_doc
== NULL
) {
6417 var1
= 0; /* is null */
6419 var1
= 1; /* arg is null and recv is not */
6422 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
6425 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMethPropdef> */
6427 if (var_n_kwredef
== NULL
) {
6428 var3
= 0; /* is null */
6430 var3
= 1; /* arg is null and recv is not */
6433 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
6436 if (var_n_visibility
== NULL
) {
6437 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6438 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1582);
6441 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AMethPropdef> */
6442 if (var_n_visibility
== NULL
) {
6443 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6444 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1583);
6447 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
6449 if (var_n_methid
== NULL
) {
6450 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6451 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1584);
6454 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AMethPropdef> */
6455 if (var_n_methid
== NULL
) {
6456 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6457 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1585);
6460 ((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>*/;
6462 if (var_n_signature
== NULL
) {
6463 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6464 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1586);
6467 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AMethPropdef> */
6468 if (var_n_signature
== NULL
) {
6469 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6470 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1587);
6473 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
6477 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AMethid, nullable ASignature) */
6478 void VIRTUAL_parser_prod__AMethPropdef__init_amethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
6479 parser_prod__AMethPropdef__init_amethpropdef(self
, p0
, p1
, p2
, p3
, p4
);
6482 /* method parser_prod#AMethPropdef#replace_child for (self: AMethPropdef, ANode, nullable ANode) */
6483 void parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6484 val
* var_old_child
/* var old_child: ANode */;
6485 val
* var_new_child
/* var new_child: nullable ANode */;
6486 val
* var
/* : nullable ADoc */;
6487 short int var1
/* : Bool */;
6488 val
* var2
/* : null */;
6489 short int var3
/* : Bool */;
6490 short int var4
/* : Bool */;
6493 val
* var5
/* : null */;
6494 val
* var6
/* : nullable TKwredef */;
6495 short int var7
/* : Bool */;
6496 val
* var8
/* : null */;
6497 short int var9
/* : Bool */;
6498 short int var10
/* : Bool */;
6501 val
* var13
/* : null */;
6502 val
* var14
/* : nullable AVisibility */;
6503 short int var15
/* : Bool */;
6504 val
* var16
/* : null */;
6505 short int var17
/* : Bool */;
6506 short int var18
/* : Bool */;
6509 val
* var21
/* : nullable AMethid */;
6510 short int var22
/* : Bool */;
6511 val
* var23
/* : null */;
6512 short int var24
/* : Bool */;
6513 short int var25
/* : Bool */;
6516 val
* var28
/* : nullable ASignature */;
6517 short int var29
/* : Bool */;
6518 val
* var30
/* : null */;
6519 short int var31
/* : Bool */;
6520 short int var32
/* : Bool */;
6525 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6527 var1
= 0; /* <var_old_child:ANode> cannot be null */
6529 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
6533 if (var_new_child
== NULL
) {
6534 var3
= 0; /* is null */
6536 var3
= 1; /* arg is null and recv is not */
6539 ((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)>*/;
6540 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
6541 cltype
= type_parser_nodes__ADoc
.color
;
6542 idtype
= type_parser_nodes__ADoc
.id
;
6543 if(cltype
>= var_new_child
->type
->table_size
) {
6546 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6549 fprintf(stderr
, "Runtime error: %s", "Assert failed");
6550 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1595);
6553 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AMethPropdef> */
6556 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AMethPropdef> */
6561 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6563 var7
= 0; /* <var_old_child:ANode> cannot be null */
6565 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
6569 if (var_new_child
== NULL
) {
6570 var9
= 0; /* is null */
6572 var9
= 1; /* arg is null and recv is not */
6575 ((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)>*/;
6576 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
6577 cltype11
= type_parser_nodes__TKwredef
.color
;
6578 idtype12
= type_parser_nodes__TKwredef
.id
;
6579 if(cltype11
>= var_new_child
->type
->table_size
) {
6582 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
6585 fprintf(stderr
, "Runtime error: %s", "Assert failed");
6586 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1605);
6589 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AMethPropdef> */
6592 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AMethPropdef> */
6597 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
6598 if (var14
== NULL
) {
6599 var15
= 0; /* <var_old_child:ANode> cannot be null */
6601 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
6605 if (var_new_child
== NULL
) {
6606 var17
= 0; /* is null */
6608 var17
= 1; /* arg is null and recv is not */
6611 ((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)>*/;
6612 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
6613 cltype19
= type_parser_nodes__AVisibility
.color
;
6614 idtype20
= type_parser_nodes__AVisibility
.id
;
6615 if(cltype19
>= var_new_child
->type
->table_size
) {
6618 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
6621 fprintf(stderr
, "Runtime error: %s", "Assert failed");
6622 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1615);
6625 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AMethPropdef> */
6627 fprintf(stderr
, "Runtime error: %s", "Aborted");
6628 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1618);
6634 var21
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
6635 if (var21
== NULL
) {
6636 var22
= 0; /* <var_old_child:ANode> cannot be null */
6638 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:nullable AMethid>*/;
6642 if (var_new_child
== NULL
) {
6643 var24
= 0; /* is null */
6645 var24
= 1; /* arg is null and recv is not */
6648 ((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)>*/;
6649 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
6650 cltype26
= type_parser_nodes__AMethid
.color
;
6651 idtype27
= type_parser_nodes__AMethid
.id
;
6652 if(cltype26
>= var_new_child
->type
->table_size
) {
6655 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
6658 fprintf(stderr
, "Runtime error: %s", "Assert failed");
6659 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1625);
6662 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AMethPropdef> */
6664 fprintf(stderr
, "Runtime error: %s", "Aborted");
6665 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1628);
6671 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
6672 if (var28
== NULL
) {
6673 var29
= 0; /* <var_old_child:ANode> cannot be null */
6675 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable ASignature>*/;
6679 if (var_new_child
== NULL
) {
6680 var31
= 0; /* is null */
6682 var31
= 1; /* arg is null and recv is not */
6685 ((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)>*/;
6686 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
6687 cltype33
= type_parser_nodes__ASignature
.color
;
6688 idtype34
= type_parser_nodes__ASignature
.id
;
6689 if(cltype33
>= var_new_child
->type
->table_size
) {
6692 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
6695 fprintf(stderr
, "Runtime error: %s", "Assert failed");
6696 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1635);
6699 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AMethPropdef> */
6701 fprintf(stderr
, "Runtime error: %s", "Aborted");
6702 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1638);
6710 /* method parser_prod#AMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
6711 void VIRTUAL_parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6712 parser_prod__AMethPropdef__replace_child(self
, p0
, p1
);
6715 /* method parser_prod#AMethPropdef#n_doc= for (self: AMethPropdef, nullable ADoc) */
6716 void parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
6717 val
* var_node
/* var node: nullable ADoc */;
6718 val
* var
/* : null */;
6719 short int var1
/* : Bool */;
6721 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AMethPropdef> */
6723 if (var_node
== NULL
) {
6724 var1
= 0; /* is null */
6726 var1
= 1; /* arg is null and recv is not */
6729 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
6734 /* method parser_prod#AMethPropdef#n_doc= for (self: Object, nullable ADoc) */
6735 void VIRTUAL_parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
6736 parser_prod__AMethPropdef__n_doc_61d(self
, p0
);
6739 /* method parser_prod#AMethPropdef#n_kwredef= for (self: AMethPropdef, nullable TKwredef) */
6740 void parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6741 val
* var_node
/* var node: nullable TKwredef */;
6742 val
* var
/* : null */;
6743 short int var1
/* : Bool */;
6745 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMethPropdef> */
6747 if (var_node
== NULL
) {
6748 var1
= 0; /* is null */
6750 var1
= 1; /* arg is null and recv is not */
6753 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
6758 /* method parser_prod#AMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
6759 void VIRTUAL_parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6760 parser_prod__AMethPropdef__n_kwredef_61d(self
, p0
);
6763 /* method parser_prod#AMethPropdef#n_visibility= for (self: AMethPropdef, nullable AVisibility) */
6764 void parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6765 val
* var_node
/* var node: nullable AVisibility */;
6767 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AMethPropdef> */
6768 if (var_node
== NULL
) {
6769 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6770 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1661);
6773 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
6777 /* method parser_prod#AMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
6778 void VIRTUAL_parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6779 parser_prod__AMethPropdef__n_visibility_61d(self
, p0
);
6782 /* method parser_prod#AMethPropdef#n_methid= for (self: AMethPropdef, nullable AMethid) */
6783 void parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
6784 val
* var_node
/* var node: nullable AMethid */;
6786 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AMethPropdef> */
6787 if (var_node
== NULL
) {
6788 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6789 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1666);
6792 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
6796 /* method parser_prod#AMethPropdef#n_methid= for (self: Object, nullable AMethid) */
6797 void VIRTUAL_parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
6798 parser_prod__AMethPropdef__n_methid_61d(self
, p0
);
6801 /* method parser_prod#AMethPropdef#n_signature= for (self: AMethPropdef, nullable ASignature) */
6802 void parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
6803 val
* var_node
/* var node: nullable ASignature */;
6805 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AMethPropdef> */
6806 if (var_node
== NULL
) {
6807 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6808 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1671);
6811 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
6815 /* method parser_prod#AMethPropdef#n_signature= for (self: Object, nullable ASignature) */
6816 void VIRTUAL_parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
6817 parser_prod__AMethPropdef__n_signature_61d(self
, p0
);
6820 /* method parser_prod#AMethPropdef#visit_all for (self: AMethPropdef, Visitor) */
6821 void parser_prod__AMethPropdef__visit_all(val
* self
, val
* p0
) {
6822 val
* var_v
/* var v: Visitor */;
6823 val
* var
/* : nullable ADoc */;
6824 val
* var1
/* : null */;
6825 short int var2
/* : Bool */;
6826 val
* var3
/* : nullable ADoc */;
6827 val
* var4
/* : nullable TKwredef */;
6828 val
* var5
/* : null */;
6829 short int var6
/* : Bool */;
6830 val
* var7
/* : nullable TKwredef */;
6831 val
* var8
/* : nullable AVisibility */;
6832 val
* var9
/* : nullable AMethid */;
6833 val
* var10
/* : nullable ASignature */;
6835 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6838 var2
= 0; /* is null */
6840 var2
= 1; /* arg is null and recv is not */
6843 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6845 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6846 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1678);
6849 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
6852 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6855 var6
= 0; /* is null */
6857 var6
= 1; /* arg is null and recv is not */
6860 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6862 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6863 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1681);
6866 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
6869 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
6870 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
6871 var9
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
6872 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
6873 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
6874 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
6877 /* method parser_prod#AMethPropdef#visit_all for (self: Object, Visitor) */
6878 void VIRTUAL_parser_prod__AMethPropdef__visit_all(val
* self
, val
* p0
) {
6879 parser_prod__AMethPropdef__visit_all(self
, p0
);
6882 /* method parser_prod#ADeferredMethPropdef#empty_init for (self: ADeferredMethPropdef) */
6883 void parser_prod__ADeferredMethPropdef__empty_init(val
* self
) {
6886 /* method parser_prod#ADeferredMethPropdef#empty_init for (self: Object) */
6887 void VIRTUAL_parser_prod__ADeferredMethPropdef__empty_init(val
* self
) {
6888 parser_prod__ADeferredMethPropdef__empty_init(self
);
6891 /* method parser_prod#ADeferredMethPropdef#init_adeferredmethpropdef for (self: ADeferredMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations) */
6892 void parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
6893 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6894 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6895 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6896 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
6897 val
* var_n_methid
/* var n_methid: nullable AMethid */;
6898 val
* var_n_signature
/* var n_signature: nullable ASignature */;
6899 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6900 val
* var
/* : null */;
6901 short int var1
/* : Bool */;
6902 val
* var2
/* : null */;
6903 short int var3
/* : Bool */;
6904 val
* var4
/* : null */;
6905 short int var5
/* : Bool */;
6908 var_n_visibility
= p2
;
6911 var_n_signature
= p5
;
6912 var_n_annotations
= p6
;
6913 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ADeferredMethPropdef__empty_init
]))(self
) /* empty_init on <self:ADeferredMethPropdef>*/;
6914 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ADeferredMethPropdef> */
6916 if (var_n_doc
== NULL
) {
6917 var1
= 0; /* is null */
6919 var1
= 1; /* arg is null and recv is not */
6922 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
6925 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ADeferredMethPropdef> */
6927 if (var_n_kwredef
== NULL
) {
6928 var3
= 0; /* is null */
6930 var3
= 1; /* arg is null and recv is not */
6933 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
6936 if (var_n_visibility
== NULL
) {
6937 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6938 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1710);
6941 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ADeferredMethPropdef> */
6942 if (var_n_visibility
== NULL
) {
6943 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6944 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1711);
6947 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
6949 if (var_n_kwmeth
== NULL
) {
6950 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6951 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1712);
6954 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
6955 if (var_n_kwmeth
== NULL
) {
6956 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6957 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1713);
6960 ((void (*)(val
*, val
*))(var_n_kwmeth
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwmeth
, self
) /* parent= on <var_n_kwmeth:nullable TKwmeth>*/;
6962 if (var_n_methid
== NULL
) {
6963 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6964 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1714);
6967 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:ADeferredMethPropdef> */
6968 if (var_n_methid
== NULL
) {
6969 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6970 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1715);
6973 ((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>*/;
6975 if (var_n_signature
== NULL
) {
6976 fprintf(stderr
, "Runtime error: %s", "Cast failed");
6977 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1716);
6980 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:ADeferredMethPropdef> */
6981 if (var_n_signature
== NULL
) {
6982 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
6983 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1717);
6986 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
6988 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADeferredMethPropdef> */
6990 if (var_n_annotations
== NULL
) {
6991 var5
= 0; /* is null */
6993 var5
= 1; /* arg is null and recv is not */
6996 ((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)>*/;
7001 /* method parser_prod#ADeferredMethPropdef#init_adeferredmethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations) */
7002 void VIRTUAL_parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
7003 parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
);
7006 /* method parser_prod#ADeferredMethPropdef#replace_child for (self: ADeferredMethPropdef, ANode, nullable ANode) */
7007 void parser_prod__ADeferredMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7008 val
* var_old_child
/* var old_child: ANode */;
7009 val
* var_new_child
/* var new_child: nullable ANode */;
7010 val
* var
/* : nullable ADoc */;
7011 short int var1
/* : Bool */;
7012 val
* var2
/* : null */;
7013 short int var3
/* : Bool */;
7014 short int var4
/* : Bool */;
7017 val
* var5
/* : null */;
7018 val
* var6
/* : nullable TKwredef */;
7019 short int var7
/* : Bool */;
7020 val
* var8
/* : null */;
7021 short int var9
/* : Bool */;
7022 short int var10
/* : Bool */;
7025 val
* var13
/* : null */;
7026 val
* var14
/* : nullable AVisibility */;
7027 short int var15
/* : Bool */;
7028 val
* var16
/* : null */;
7029 short int var17
/* : Bool */;
7030 short int var18
/* : Bool */;
7033 val
* var21
/* : TKwmeth */;
7034 short int var22
/* : Bool */;
7035 val
* var23
/* : null */;
7036 short int var24
/* : Bool */;
7037 short int var25
/* : Bool */;
7040 val
* var28
/* : nullable AMethid */;
7041 short int var29
/* : Bool */;
7042 val
* var30
/* : null */;
7043 short int var31
/* : Bool */;
7044 short int var32
/* : Bool */;
7047 val
* var35
/* : nullable ASignature */;
7048 short int var36
/* : Bool */;
7049 val
* var37
/* : null */;
7050 short int var38
/* : Bool */;
7051 short int var39
/* : Bool */;
7054 val
* var42
/* : nullable AAnnotations */;
7055 short int var43
/* : Bool */;
7056 val
* var44
/* : null */;
7057 short int var45
/* : Bool */;
7058 short int var46
/* : Bool */;
7061 val
* var49
/* : null */;
7064 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
7066 var1
= 0; /* <var_old_child:ANode> cannot be null */
7068 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
7072 if (var_new_child
== NULL
) {
7073 var3
= 0; /* is null */
7075 var3
= 1; /* arg is null and recv is not */
7078 ((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)>*/;
7079 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
7080 cltype
= type_parser_nodes__ADoc
.color
;
7081 idtype
= type_parser_nodes__ADoc
.id
;
7082 if(cltype
>= var_new_child
->type
->table_size
) {
7085 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7088 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7089 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1729);
7092 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:ADeferredMethPropdef> */
7095 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:ADeferredMethPropdef> */
7100 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7102 var7
= 0; /* <var_old_child:ANode> cannot be null */
7104 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
7108 if (var_new_child
== NULL
) {
7109 var9
= 0; /* is null */
7111 var9
= 1; /* arg is null and recv is not */
7114 ((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)>*/;
7115 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
7116 cltype11
= type_parser_nodes__TKwredef
.color
;
7117 idtype12
= type_parser_nodes__TKwredef
.id
;
7118 if(cltype11
>= var_new_child
->type
->table_size
) {
7121 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
7124 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7125 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1739);
7128 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7131 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7136 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:ADeferredMethPropdef> */
7137 if (var14
== NULL
) {
7138 var15
= 0; /* <var_old_child:ANode> cannot be null */
7140 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
7144 if (var_new_child
== NULL
) {
7145 var17
= 0; /* is null */
7147 var17
= 1; /* arg is null and recv is not */
7150 ((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)>*/;
7151 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
7152 cltype19
= type_parser_nodes__AVisibility
.color
;
7153 idtype20
= type_parser_nodes__AVisibility
.id
;
7154 if(cltype19
>= var_new_child
->type
->table_size
) {
7157 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
7160 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7161 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1749);
7164 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:ADeferredMethPropdef> */
7166 fprintf(stderr
, "Runtime error: %s", "Aborted");
7167 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1752);
7173 var21
= self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7174 if (var21
== NULL
) {
7175 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
7176 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1756);
7179 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
7182 if (var_new_child
== NULL
) {
7183 var24
= 0; /* is null */
7185 var24
= 1; /* arg is null and recv is not */
7188 ((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)>*/;
7189 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
7190 cltype26
= type_parser_nodes__TKwmeth
.color
;
7191 idtype27
= type_parser_nodes__TKwmeth
.id
;
7192 if(cltype26
>= var_new_child
->type
->table_size
) {
7195 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7198 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7199 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1759);
7202 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7204 fprintf(stderr
, "Runtime error: %s", "Aborted");
7205 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1762);
7211 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:ADeferredMethPropdef> */
7212 if (var28
== NULL
) {
7213 var29
= 0; /* <var_old_child:ANode> cannot be null */
7215 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
7219 if (var_new_child
== NULL
) {
7220 var31
= 0; /* is null */
7222 var31
= 1; /* arg is null and recv is not */
7225 ((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)>*/;
7226 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
7227 cltype33
= type_parser_nodes__AMethid
.color
;
7228 idtype34
= type_parser_nodes__AMethid
.id
;
7229 if(cltype33
>= var_new_child
->type
->table_size
) {
7232 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
7235 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7236 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1769);
7239 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:ADeferredMethPropdef> */
7241 fprintf(stderr
, "Runtime error: %s", "Aborted");
7242 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1772);
7248 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:ADeferredMethPropdef> */
7249 if (var35
== NULL
) {
7250 var36
= 0; /* <var_old_child:ANode> cannot be null */
7252 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
7256 if (var_new_child
== NULL
) {
7257 var38
= 0; /* is null */
7259 var38
= 1; /* arg is null and recv is not */
7262 ((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)>*/;
7263 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
7264 cltype40
= type_parser_nodes__ASignature
.color
;
7265 idtype41
= type_parser_nodes__ASignature
.id
;
7266 if(cltype40
>= var_new_child
->type
->table_size
) {
7269 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
7272 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7273 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1779);
7276 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:ADeferredMethPropdef> */
7278 fprintf(stderr
, "Runtime error: %s", "Aborted");
7279 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1782);
7285 var42
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
7286 if (var42
== NULL
) {
7287 var43
= 0; /* <var_old_child:ANode> cannot be null */
7289 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable AAnnotations>*/;
7293 if (var_new_child
== NULL
) {
7294 var45
= 0; /* is null */
7296 var45
= 1; /* arg is null and recv is not */
7299 ((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)>*/;
7300 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
7301 cltype47
= type_parser_nodes__AAnnotations
.color
;
7302 idtype48
= type_parser_nodes__AAnnotations
.id
;
7303 if(cltype47
>= var_new_child
->type
->table_size
) {
7306 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
7309 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7310 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1789);
7313 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:ADeferredMethPropdef> */
7316 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var49
; /* _n_annotations on <self:ADeferredMethPropdef> */
7323 /* method parser_prod#ADeferredMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
7324 void VIRTUAL_parser_prod__ADeferredMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7325 parser_prod__ADeferredMethPropdef__replace_child(self
, p0
, p1
);
7328 /* method parser_prod#ADeferredMethPropdef#n_doc= for (self: ADeferredMethPropdef, nullable ADoc) */
7329 void parser_prod__ADeferredMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7330 val
* var_node
/* var node: nullable ADoc */;
7331 val
* var
/* : null */;
7332 short int var1
/* : Bool */;
7334 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:ADeferredMethPropdef> */
7336 if (var_node
== NULL
) {
7337 var1
= 0; /* is null */
7339 var1
= 1; /* arg is null and recv is not */
7342 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
7347 /* method parser_prod#ADeferredMethPropdef#n_doc= for (self: Object, nullable ADoc) */
7348 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7349 parser_prod__ADeferredMethPropdef__n_doc_61d(self
, p0
);
7352 /* method parser_prod#ADeferredMethPropdef#n_kwredef= for (self: ADeferredMethPropdef, nullable TKwredef) */
7353 void parser_prod__ADeferredMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7354 val
* var_node
/* var node: nullable TKwredef */;
7355 val
* var
/* : null */;
7356 short int var1
/* : Bool */;
7358 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7360 if (var_node
== NULL
) {
7361 var1
= 0; /* is null */
7363 var1
= 1; /* arg is null and recv is not */
7366 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
7371 /* method parser_prod#ADeferredMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
7372 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7373 parser_prod__ADeferredMethPropdef__n_kwredef_61d(self
, p0
);
7376 /* method parser_prod#ADeferredMethPropdef#n_visibility= for (self: ADeferredMethPropdef, nullable AVisibility) */
7377 void parser_prod__ADeferredMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7378 val
* var_node
/* var node: nullable AVisibility */;
7380 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:ADeferredMethPropdef> */
7381 if (var_node
== NULL
) {
7382 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7383 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1815);
7386 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
7390 /* method parser_prod#ADeferredMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
7391 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7392 parser_prod__ADeferredMethPropdef__n_visibility_61d(self
, p0
);
7395 /* method parser_prod#ADeferredMethPropdef#n_kwmeth= for (self: ADeferredMethPropdef, TKwmeth) */
7396 void parser_prod__ADeferredMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7397 val
* var_node
/* var node: TKwmeth */;
7399 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7400 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
7403 /* method parser_prod#ADeferredMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
7404 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7405 parser_prod__ADeferredMethPropdef__n_kwmeth_61d(self
, p0
);
7408 /* method parser_prod#ADeferredMethPropdef#n_methid= for (self: ADeferredMethPropdef, nullable AMethid) */
7409 void parser_prod__ADeferredMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7410 val
* var_node
/* var node: nullable AMethid */;
7412 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:ADeferredMethPropdef> */
7413 if (var_node
== NULL
) {
7414 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7415 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1825);
7418 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
7422 /* method parser_prod#ADeferredMethPropdef#n_methid= for (self: Object, nullable AMethid) */
7423 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7424 parser_prod__ADeferredMethPropdef__n_methid_61d(self
, p0
);
7427 /* method parser_prod#ADeferredMethPropdef#n_signature= for (self: ADeferredMethPropdef, nullable ASignature) */
7428 void parser_prod__ADeferredMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7429 val
* var_node
/* var node: nullable ASignature */;
7431 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:ADeferredMethPropdef> */
7432 if (var_node
== NULL
) {
7433 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7434 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1830);
7437 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
7441 /* method parser_prod#ADeferredMethPropdef#n_signature= for (self: Object, nullable ASignature) */
7442 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7443 parser_prod__ADeferredMethPropdef__n_signature_61d(self
, p0
);
7446 /* method parser_prod#ADeferredMethPropdef#n_annotations= for (self: ADeferredMethPropdef, nullable AAnnotations) */
7447 void parser_prod__ADeferredMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
7448 val
* var_node
/* var node: nullable AAnnotations */;
7449 val
* var
/* : null */;
7450 short int var1
/* : Bool */;
7452 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADeferredMethPropdef> */
7454 if (var_node
== NULL
) {
7455 var1
= 0; /* is null */
7457 var1
= 1; /* arg is null and recv is not */
7460 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
7465 /* method parser_prod#ADeferredMethPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
7466 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
7467 parser_prod__ADeferredMethPropdef__n_annotations_61d(self
, p0
);
7470 /* method parser_prod#ADeferredMethPropdef#visit_all for (self: ADeferredMethPropdef, Visitor) */
7471 void parser_prod__ADeferredMethPropdef__visit_all(val
* self
, val
* p0
) {
7472 val
* var_v
/* var v: Visitor */;
7473 val
* var
/* : nullable ADoc */;
7474 val
* var1
/* : null */;
7475 short int var2
/* : Bool */;
7476 val
* var3
/* : nullable ADoc */;
7477 val
* var4
/* : nullable TKwredef */;
7478 val
* var5
/* : null */;
7479 short int var6
/* : Bool */;
7480 val
* var7
/* : nullable TKwredef */;
7481 val
* var8
/* : nullable AVisibility */;
7482 val
* var9
/* : TKwmeth */;
7483 val
* var10
/* : nullable AMethid */;
7484 val
* var11
/* : nullable ASignature */;
7485 val
* var12
/* : nullable AAnnotations */;
7486 val
* var13
/* : null */;
7487 short int var14
/* : Bool */;
7488 val
* var15
/* : nullable AAnnotations */;
7490 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
7493 var2
= 0; /* is null */
7495 var2
= 1; /* arg is null and recv is not */
7498 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
7500 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7501 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1844);
7504 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
7507 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7510 var6
= 0; /* is null */
7512 var6
= 1; /* arg is null and recv is not */
7515 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7517 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7518 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1847);
7521 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
7524 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:ADeferredMethPropdef> */
7525 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
7526 var9
= self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7528 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
7529 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1850);
7532 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
7533 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:ADeferredMethPropdef> */
7534 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
7535 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:ADeferredMethPropdef> */
7536 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
7537 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
7539 if (var12
== NULL
) {
7540 var14
= 0; /* is null */
7542 var14
= 1; /* arg is null and recv is not */
7545 var15
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
7546 if (var15
== NULL
) {
7547 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7548 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1854);
7551 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
7556 /* method parser_prod#ADeferredMethPropdef#visit_all for (self: Object, Visitor) */
7557 void VIRTUAL_parser_prod__ADeferredMethPropdef__visit_all(val
* self
, val
* p0
) {
7558 parser_prod__ADeferredMethPropdef__visit_all(self
, p0
);
7561 /* method parser_prod#AInternMethPropdef#empty_init for (self: AInternMethPropdef) */
7562 void parser_prod__AInternMethPropdef__empty_init(val
* self
) {
7565 /* method parser_prod#AInternMethPropdef#empty_init for (self: Object) */
7566 void VIRTUAL_parser_prod__AInternMethPropdef__empty_init(val
* self
) {
7567 parser_prod__AInternMethPropdef__empty_init(self
);
7570 /* method parser_prod#AInternMethPropdef#init_ainternmethpropdef for (self: AInternMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature) */
7571 void parser_prod__AInternMethPropdef__init_ainternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7572 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7573 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7574 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7575 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
7576 val
* var_n_methid
/* var n_methid: nullable AMethid */;
7577 val
* var_n_signature
/* var n_signature: nullable ASignature */;
7578 val
* var
/* : null */;
7579 short int var1
/* : Bool */;
7580 val
* var2
/* : null */;
7581 short int var3
/* : Bool */;
7584 var_n_visibility
= p2
;
7587 var_n_signature
= p5
;
7588 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInternMethPropdef__empty_init
]))(self
) /* empty_init on <self:AInternMethPropdef>*/;
7589 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AInternMethPropdef> */
7591 if (var_n_doc
== NULL
) {
7592 var1
= 0; /* is null */
7594 var1
= 1; /* arg is null and recv is not */
7597 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
7600 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AInternMethPropdef> */
7602 if (var_n_kwredef
== NULL
) {
7603 var3
= 0; /* is null */
7605 var3
= 1; /* arg is null and recv is not */
7608 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
7611 if (var_n_visibility
== NULL
) {
7612 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7613 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1879);
7616 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AInternMethPropdef> */
7617 if (var_n_visibility
== NULL
) {
7618 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7619 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1880);
7622 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
7624 if (var_n_kwmeth
== NULL
) {
7625 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7626 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1881);
7629 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AInternMethPropdef> */
7630 if (var_n_kwmeth
== NULL
) {
7631 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7632 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1882);
7635 ((void (*)(val
*, val
*))(var_n_kwmeth
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwmeth
, self
) /* parent= on <var_n_kwmeth:nullable TKwmeth>*/;
7637 if (var_n_methid
== NULL
) {
7638 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7639 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1883);
7642 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AInternMethPropdef> */
7643 if (var_n_methid
== NULL
) {
7644 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7645 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1884);
7648 ((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>*/;
7650 if (var_n_signature
== NULL
) {
7651 fprintf(stderr
, "Runtime error: %s", "Cast failed");
7652 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1885);
7655 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AInternMethPropdef> */
7656 if (var_n_signature
== NULL
) {
7657 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
7658 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1886);
7661 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
7665 /* method parser_prod#AInternMethPropdef#init_ainternmethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature) */
7666 void VIRTUAL_parser_prod__AInternMethPropdef__init_ainternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7667 parser_prod__AInternMethPropdef__init_ainternmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
);
7670 /* method parser_prod#AInternMethPropdef#replace_child for (self: AInternMethPropdef, ANode, nullable ANode) */
7671 void parser_prod__AInternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7672 val
* var_old_child
/* var old_child: ANode */;
7673 val
* var_new_child
/* var new_child: nullable ANode */;
7674 val
* var
/* : nullable ADoc */;
7675 short int var1
/* : Bool */;
7676 val
* var2
/* : null */;
7677 short int var3
/* : Bool */;
7678 short int var4
/* : Bool */;
7681 val
* var5
/* : null */;
7682 val
* var6
/* : nullable TKwredef */;
7683 short int var7
/* : Bool */;
7684 val
* var8
/* : null */;
7685 short int var9
/* : Bool */;
7686 short int var10
/* : Bool */;
7689 val
* var13
/* : null */;
7690 val
* var14
/* : nullable AVisibility */;
7691 short int var15
/* : Bool */;
7692 val
* var16
/* : null */;
7693 short int var17
/* : Bool */;
7694 short int var18
/* : Bool */;
7697 val
* var21
/* : TKwmeth */;
7698 short int var22
/* : Bool */;
7699 val
* var23
/* : null */;
7700 short int var24
/* : Bool */;
7701 short int var25
/* : Bool */;
7704 val
* var28
/* : nullable AMethid */;
7705 short int var29
/* : Bool */;
7706 val
* var30
/* : null */;
7707 short int var31
/* : Bool */;
7708 short int var32
/* : Bool */;
7711 val
* var35
/* : nullable ASignature */;
7712 short int var36
/* : Bool */;
7713 val
* var37
/* : null */;
7714 short int var38
/* : Bool */;
7715 short int var39
/* : Bool */;
7720 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
7722 var1
= 0; /* <var_old_child:ANode> cannot be null */
7724 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
7728 if (var_new_child
== NULL
) {
7729 var3
= 0; /* is null */
7731 var3
= 1; /* arg is null and recv is not */
7734 ((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)>*/;
7735 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
7736 cltype
= type_parser_nodes__ADoc
.color
;
7737 idtype
= type_parser_nodes__ADoc
.id
;
7738 if(cltype
>= var_new_child
->type
->table_size
) {
7741 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7744 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7745 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1894);
7748 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AInternMethPropdef> */
7751 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AInternMethPropdef> */
7756 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
7758 var7
= 0; /* <var_old_child:ANode> cannot be null */
7760 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
7764 if (var_new_child
== NULL
) {
7765 var9
= 0; /* is null */
7767 var9
= 1; /* arg is null and recv is not */
7770 ((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)>*/;
7771 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
7772 cltype11
= type_parser_nodes__TKwredef
.color
;
7773 idtype12
= type_parser_nodes__TKwredef
.id
;
7774 if(cltype11
>= var_new_child
->type
->table_size
) {
7777 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
7780 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7781 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1904);
7784 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AInternMethPropdef> */
7787 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AInternMethPropdef> */
7792 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AInternMethPropdef> */
7793 if (var14
== NULL
) {
7794 var15
= 0; /* <var_old_child:ANode> cannot be null */
7796 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
7800 if (var_new_child
== NULL
) {
7801 var17
= 0; /* is null */
7803 var17
= 1; /* arg is null and recv is not */
7806 ((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)>*/;
7807 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
7808 cltype19
= type_parser_nodes__AVisibility
.color
;
7809 idtype20
= type_parser_nodes__AVisibility
.id
;
7810 if(cltype19
>= var_new_child
->type
->table_size
) {
7813 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
7816 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7817 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1914);
7820 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AInternMethPropdef> */
7822 fprintf(stderr
, "Runtime error: %s", "Aborted");
7823 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1917);
7829 var21
= self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AInternMethPropdef> */
7830 if (var21
== NULL
) {
7831 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
7832 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1921);
7835 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
7838 if (var_new_child
== NULL
) {
7839 var24
= 0; /* is null */
7841 var24
= 1; /* arg is null and recv is not */
7844 ((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)>*/;
7845 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
7846 cltype26
= type_parser_nodes__TKwmeth
.color
;
7847 idtype27
= type_parser_nodes__TKwmeth
.id
;
7848 if(cltype26
>= var_new_child
->type
->table_size
) {
7851 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7854 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7855 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1924);
7858 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AInternMethPropdef> */
7860 fprintf(stderr
, "Runtime error: %s", "Aborted");
7861 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1927);
7867 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AInternMethPropdef> */
7868 if (var28
== NULL
) {
7869 var29
= 0; /* <var_old_child:ANode> cannot be null */
7871 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
7875 if (var_new_child
== NULL
) {
7876 var31
= 0; /* is null */
7878 var31
= 1; /* arg is null and recv is not */
7881 ((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)>*/;
7882 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
7883 cltype33
= type_parser_nodes__AMethid
.color
;
7884 idtype34
= type_parser_nodes__AMethid
.id
;
7885 if(cltype33
>= var_new_child
->type
->table_size
) {
7888 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
7891 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7892 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1934);
7895 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AInternMethPropdef> */
7897 fprintf(stderr
, "Runtime error: %s", "Aborted");
7898 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1937);
7904 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AInternMethPropdef> */
7905 if (var35
== NULL
) {
7906 var36
= 0; /* <var_old_child:ANode> cannot be null */
7908 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
7912 if (var_new_child
== NULL
) {
7913 var38
= 0; /* is null */
7915 var38
= 1; /* arg is null and recv is not */
7918 ((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)>*/;
7919 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
7920 cltype40
= type_parser_nodes__ASignature
.color
;
7921 idtype41
= type_parser_nodes__ASignature
.id
;
7922 if(cltype40
>= var_new_child
->type
->table_size
) {
7925 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
7928 fprintf(stderr
, "Runtime error: %s", "Assert failed");
7929 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1944);
7932 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AInternMethPropdef> */
7934 fprintf(stderr
, "Runtime error: %s", "Aborted");
7935 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1947);
7943 /* method parser_prod#AInternMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
7944 void VIRTUAL_parser_prod__AInternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7945 parser_prod__AInternMethPropdef__replace_child(self
, p0
, p1
);
7948 /* method parser_prod#AInternMethPropdef#n_doc= for (self: AInternMethPropdef, nullable ADoc) */
7949 void parser_prod__AInternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7950 val
* var_node
/* var node: nullable ADoc */;
7951 val
* var
/* : null */;
7952 short int var1
/* : Bool */;
7954 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AInternMethPropdef> */
7956 if (var_node
== NULL
) {
7957 var1
= 0; /* is null */
7959 var1
= 1; /* arg is null and recv is not */
7962 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
7967 /* method parser_prod#AInternMethPropdef#n_doc= for (self: Object, nullable ADoc) */
7968 void VIRTUAL_parser_prod__AInternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7969 parser_prod__AInternMethPropdef__n_doc_61d(self
, p0
);
7972 /* method parser_prod#AInternMethPropdef#n_kwredef= for (self: AInternMethPropdef, nullable TKwredef) */
7973 void parser_prod__AInternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7974 val
* var_node
/* var node: nullable TKwredef */;
7975 val
* var
/* : null */;
7976 short int var1
/* : Bool */;
7978 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AInternMethPropdef> */
7980 if (var_node
== NULL
) {
7981 var1
= 0; /* is null */
7983 var1
= 1; /* arg is null and recv is not */
7986 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
7991 /* method parser_prod#AInternMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
7992 void VIRTUAL_parser_prod__AInternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7993 parser_prod__AInternMethPropdef__n_kwredef_61d(self
, p0
);
7996 /* method parser_prod#AInternMethPropdef#n_visibility= for (self: AInternMethPropdef, nullable AVisibility) */
7997 void parser_prod__AInternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7998 val
* var_node
/* var node: nullable AVisibility */;
8000 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AInternMethPropdef> */
8001 if (var_node
== NULL
) {
8002 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8003 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1970);
8006 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
8010 /* method parser_prod#AInternMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
8011 void VIRTUAL_parser_prod__AInternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
8012 parser_prod__AInternMethPropdef__n_visibility_61d(self
, p0
);
8015 /* method parser_prod#AInternMethPropdef#n_kwmeth= for (self: AInternMethPropdef, TKwmeth) */
8016 void parser_prod__AInternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8017 val
* var_node
/* var node: TKwmeth */;
8019 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AInternMethPropdef> */
8020 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
8023 /* method parser_prod#AInternMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
8024 void VIRTUAL_parser_prod__AInternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8025 parser_prod__AInternMethPropdef__n_kwmeth_61d(self
, p0
);
8028 /* method parser_prod#AInternMethPropdef#n_methid= for (self: AInternMethPropdef, nullable AMethid) */
8029 void parser_prod__AInternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8030 val
* var_node
/* var node: nullable AMethid */;
8032 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AInternMethPropdef> */
8033 if (var_node
== NULL
) {
8034 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8035 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1980);
8038 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
8042 /* method parser_prod#AInternMethPropdef#n_methid= for (self: Object, nullable AMethid) */
8043 void VIRTUAL_parser_prod__AInternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8044 parser_prod__AInternMethPropdef__n_methid_61d(self
, p0
);
8047 /* method parser_prod#AInternMethPropdef#n_signature= for (self: AInternMethPropdef, nullable ASignature) */
8048 void parser_prod__AInternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8049 val
* var_node
/* var node: nullable ASignature */;
8051 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AInternMethPropdef> */
8052 if (var_node
== NULL
) {
8053 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8054 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1985);
8057 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
8061 /* method parser_prod#AInternMethPropdef#n_signature= for (self: Object, nullable ASignature) */
8062 void VIRTUAL_parser_prod__AInternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8063 parser_prod__AInternMethPropdef__n_signature_61d(self
, p0
);
8066 /* method parser_prod#AInternMethPropdef#visit_all for (self: AInternMethPropdef, Visitor) */
8067 void parser_prod__AInternMethPropdef__visit_all(val
* self
, val
* p0
) {
8068 val
* var_v
/* var v: Visitor */;
8069 val
* var
/* : nullable ADoc */;
8070 val
* var1
/* : null */;
8071 short int var2
/* : Bool */;
8072 val
* var3
/* : nullable ADoc */;
8073 val
* var4
/* : nullable TKwredef */;
8074 val
* var5
/* : null */;
8075 short int var6
/* : Bool */;
8076 val
* var7
/* : nullable TKwredef */;
8077 val
* var8
/* : nullable AVisibility */;
8078 val
* var9
/* : TKwmeth */;
8079 val
* var10
/* : nullable AMethid */;
8080 val
* var11
/* : nullable ASignature */;
8082 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
8085 var2
= 0; /* is null */
8087 var2
= 1; /* arg is null and recv is not */
8090 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
8092 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8093 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1992);
8096 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
8099 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
8102 var6
= 0; /* is null */
8104 var6
= 1; /* arg is null and recv is not */
8107 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
8109 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8110 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1995);
8113 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
8116 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AInternMethPropdef> */
8117 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
8118 var9
= self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AInternMethPropdef> */
8120 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
8121 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 1998);
8124 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
8125 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AInternMethPropdef> */
8126 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
8127 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AInternMethPropdef> */
8128 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
8131 /* method parser_prod#AInternMethPropdef#visit_all for (self: Object, Visitor) */
8132 void VIRTUAL_parser_prod__AInternMethPropdef__visit_all(val
* self
, val
* p0
) {
8133 parser_prod__AInternMethPropdef__visit_all(self
, p0
);
8136 /* method parser_prod#AExternMethPropdef#empty_init for (self: AExternMethPropdef) */
8137 void parser_prod__AExternMethPropdef__empty_init(val
* self
) {
8140 /* method parser_prod#AExternMethPropdef#empty_init for (self: Object) */
8141 void VIRTUAL_parser_prod__AExternMethPropdef__empty_init(val
* self
) {
8142 parser_prod__AExternMethPropdef__empty_init(self
);
8145 /* method parser_prod#AExternMethPropdef#init_aexternmethpropdef for (self: AExternMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable TString, nullable AExternCalls, nullable AExternCodeBlock) */
8146 void parser_prod__AExternMethPropdef__init_aexternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
) {
8147 val
* var_n_doc
/* var n_doc: nullable ADoc */;
8148 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
8149 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
8150 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
8151 val
* var_n_methid
/* var n_methid: nullable AMethid */;
8152 val
* var_n_signature
/* var n_signature: nullable ASignature */;
8153 val
* var_n_extern
/* var n_extern: nullable TString */;
8154 val
* var_n_extern_calls
/* var n_extern_calls: nullable AExternCalls */;
8155 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
8156 val
* var
/* : null */;
8157 short int var1
/* : Bool */;
8158 val
* var2
/* : null */;
8159 short int var3
/* : Bool */;
8160 val
* var4
/* : null */;
8161 short int var5
/* : Bool */;
8162 val
* var6
/* : null */;
8163 short int var7
/* : Bool */;
8164 val
* var8
/* : null */;
8165 short int var9
/* : Bool */;
8168 var_n_visibility
= p2
;
8171 var_n_signature
= p5
;
8173 var_n_extern_calls
= p7
;
8174 var_n_extern_code_block
= p8
;
8175 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternMethPropdef__empty_init
]))(self
) /* empty_init on <self:AExternMethPropdef>*/;
8176 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AExternMethPropdef> */
8178 if (var_n_doc
== NULL
) {
8179 var1
= 0; /* is null */
8181 var1
= 1; /* arg is null and recv is not */
8184 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
8187 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AExternMethPropdef> */
8189 if (var_n_kwredef
== NULL
) {
8190 var3
= 0; /* is null */
8192 var3
= 1; /* arg is null and recv is not */
8195 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
8198 if (var_n_visibility
== NULL
) {
8199 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8200 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2027);
8203 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AExternMethPropdef> */
8204 if (var_n_visibility
== NULL
) {
8205 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8206 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2028);
8209 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
8211 if (var_n_kwmeth
== NULL
) {
8212 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8213 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2029);
8216 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AExternMethPropdef> */
8217 if (var_n_kwmeth
== NULL
) {
8218 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8219 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2030);
8222 ((void (*)(val
*, val
*))(var_n_kwmeth
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwmeth
, self
) /* parent= on <var_n_kwmeth:nullable TKwmeth>*/;
8224 if (var_n_methid
== NULL
) {
8225 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8226 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2031);
8229 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AExternMethPropdef> */
8230 if (var_n_methid
== NULL
) {
8231 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8232 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2032);
8235 ((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>*/;
8237 if (var_n_signature
== NULL
) {
8238 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8239 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2033);
8242 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AExternMethPropdef> */
8243 if (var_n_signature
== NULL
) {
8244 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8245 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2034);
8248 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
8250 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_n_extern
; /* _n_extern on <self:AExternMethPropdef> */
8252 if (var_n_extern
== NULL
) {
8253 var5
= 0; /* is null */
8255 var5
= 1; /* arg is null and recv is not */
8258 ((void (*)(val
*, val
*))(var_n_extern
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_extern
, self
) /* parent= on <var_n_extern:nullable TString(TString)>*/;
8261 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_n_extern_calls
; /* _n_extern_calls on <self:AExternMethPropdef> */
8263 if (var_n_extern_calls
== NULL
) {
8264 var7
= 0; /* is null */
8266 var7
= 1; /* arg is null and recv is not */
8269 ((void (*)(val
*, val
*))(var_n_extern_calls
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_extern_calls
, self
) /* parent= on <var_n_extern_calls:nullable AExternCalls(AExternCalls)>*/;
8272 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8274 if (var_n_extern_code_block
== NULL
) {
8275 var9
= 0; /* is null */
8277 var9
= 1; /* arg is null and recv is not */
8280 ((void (*)(val
*, val
*))(var_n_extern_code_block
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_extern_code_block
, self
) /* parent= on <var_n_extern_code_block:nullable AExternCodeBlock(AExternCodeBlock)>*/;
8285 /* method parser_prod#AExternMethPropdef#init_aexternmethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable TString, nullable AExternCalls, nullable AExternCodeBlock) */
8286 void VIRTUAL_parser_prod__AExternMethPropdef__init_aexternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
, val
* p8
) {
8287 parser_prod__AExternMethPropdef__init_aexternmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
);
8290 /* method parser_prod#AExternMethPropdef#replace_child for (self: AExternMethPropdef, ANode, nullable ANode) */
8291 void parser_prod__AExternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8292 val
* var_old_child
/* var old_child: ANode */;
8293 val
* var_new_child
/* var new_child: nullable ANode */;
8294 val
* var
/* : nullable ADoc */;
8295 short int var1
/* : Bool */;
8296 val
* var2
/* : null */;
8297 short int var3
/* : Bool */;
8298 short int var4
/* : Bool */;
8301 val
* var5
/* : null */;
8302 val
* var6
/* : nullable TKwredef */;
8303 short int var7
/* : Bool */;
8304 val
* var8
/* : null */;
8305 short int var9
/* : Bool */;
8306 short int var10
/* : Bool */;
8309 val
* var13
/* : null */;
8310 val
* var14
/* : nullable AVisibility */;
8311 short int var15
/* : Bool */;
8312 val
* var16
/* : null */;
8313 short int var17
/* : Bool */;
8314 short int var18
/* : Bool */;
8317 val
* var21
/* : TKwmeth */;
8318 short int var22
/* : Bool */;
8319 val
* var23
/* : null */;
8320 short int var24
/* : Bool */;
8321 short int var25
/* : Bool */;
8324 val
* var28
/* : nullable AMethid */;
8325 short int var29
/* : Bool */;
8326 val
* var30
/* : null */;
8327 short int var31
/* : Bool */;
8328 short int var32
/* : Bool */;
8331 val
* var35
/* : nullable ASignature */;
8332 short int var36
/* : Bool */;
8333 val
* var37
/* : null */;
8334 short int var38
/* : Bool */;
8335 short int var39
/* : Bool */;
8338 val
* var42
/* : nullable TString */;
8339 short int var43
/* : Bool */;
8340 val
* var44
/* : null */;
8341 short int var45
/* : Bool */;
8342 short int var46
/* : Bool */;
8345 val
* var49
/* : null */;
8346 val
* var50
/* : nullable AExternCalls */;
8347 short int var51
/* : Bool */;
8348 val
* var52
/* : null */;
8349 short int var53
/* : Bool */;
8350 short int var54
/* : Bool */;
8353 val
* var57
/* : null */;
8354 val
* var58
/* : nullable AExternCodeBlock */;
8355 short int var59
/* : Bool */;
8356 val
* var60
/* : null */;
8357 short int var61
/* : Bool */;
8358 short int var62
/* : Bool */;
8361 val
* var65
/* : null */;
8364 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8366 var1
= 0; /* <var_old_child:ANode> cannot be null */
8368 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
8372 if (var_new_child
== NULL
) {
8373 var3
= 0; /* is null */
8375 var3
= 1; /* arg is null and recv is not */
8378 ((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)>*/;
8379 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
8380 cltype
= type_parser_nodes__ADoc
.color
;
8381 idtype
= type_parser_nodes__ADoc
.id
;
8382 if(cltype
>= var_new_child
->type
->table_size
) {
8385 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8388 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8389 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2054);
8392 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AExternMethPropdef> */
8395 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AExternMethPropdef> */
8400 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8402 var7
= 0; /* <var_old_child:ANode> cannot be null */
8404 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
8408 if (var_new_child
== NULL
) {
8409 var9
= 0; /* is null */
8411 var9
= 1; /* arg is null and recv is not */
8414 ((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)>*/;
8415 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
8416 cltype11
= type_parser_nodes__TKwredef
.color
;
8417 idtype12
= type_parser_nodes__TKwredef
.id
;
8418 if(cltype11
>= var_new_child
->type
->table_size
) {
8421 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
8424 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8425 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2064);
8428 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AExternMethPropdef> */
8431 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AExternMethPropdef> */
8436 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AExternMethPropdef> */
8437 if (var14
== NULL
) {
8438 var15
= 0; /* <var_old_child:ANode> cannot be null */
8440 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
8444 if (var_new_child
== NULL
) {
8445 var17
= 0; /* is null */
8447 var17
= 1; /* arg is null and recv is not */
8450 ((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)>*/;
8451 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
8452 cltype19
= type_parser_nodes__AVisibility
.color
;
8453 idtype20
= type_parser_nodes__AVisibility
.id
;
8454 if(cltype19
>= var_new_child
->type
->table_size
) {
8457 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
8460 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8461 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2074);
8464 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AExternMethPropdef> */
8466 fprintf(stderr
, "Runtime error: %s", "Aborted");
8467 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2077);
8473 var21
= self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AExternMethPropdef> */
8474 if (var21
== NULL
) {
8475 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
8476 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2081);
8479 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
8482 if (var_new_child
== NULL
) {
8483 var24
= 0; /* is null */
8485 var24
= 1; /* arg is null and recv is not */
8488 ((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)>*/;
8489 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
8490 cltype26
= type_parser_nodes__TKwmeth
.color
;
8491 idtype27
= type_parser_nodes__TKwmeth
.id
;
8492 if(cltype26
>= var_new_child
->type
->table_size
) {
8495 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
8498 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8499 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2084);
8502 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AExternMethPropdef> */
8504 fprintf(stderr
, "Runtime error: %s", "Aborted");
8505 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2087);
8511 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AExternMethPropdef> */
8512 if (var28
== NULL
) {
8513 var29
= 0; /* <var_old_child:ANode> cannot be null */
8515 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
8519 if (var_new_child
== NULL
) {
8520 var31
= 0; /* is null */
8522 var31
= 1; /* arg is null and recv is not */
8525 ((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)>*/;
8526 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
8527 cltype33
= type_parser_nodes__AMethid
.color
;
8528 idtype34
= type_parser_nodes__AMethid
.id
;
8529 if(cltype33
>= var_new_child
->type
->table_size
) {
8532 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
8535 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8536 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2094);
8539 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AExternMethPropdef> */
8541 fprintf(stderr
, "Runtime error: %s", "Aborted");
8542 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2097);
8548 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AExternMethPropdef> */
8549 if (var35
== NULL
) {
8550 var36
= 0; /* <var_old_child:ANode> cannot be null */
8552 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
8556 if (var_new_child
== NULL
) {
8557 var38
= 0; /* is null */
8559 var38
= 1; /* arg is null and recv is not */
8562 ((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)>*/;
8563 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
8564 cltype40
= type_parser_nodes__ASignature
.color
;
8565 idtype41
= type_parser_nodes__ASignature
.id
;
8566 if(cltype40
>= var_new_child
->type
->table_size
) {
8569 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
8572 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8573 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2104);
8576 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AExternMethPropdef> */
8578 fprintf(stderr
, "Runtime error: %s", "Aborted");
8579 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2107);
8585 var42
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8586 if (var42
== NULL
) {
8587 var43
= 0; /* <var_old_child:ANode> cannot be null */
8589 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable TString>*/;
8593 if (var_new_child
== NULL
) {
8594 var45
= 0; /* is null */
8596 var45
= 1; /* arg is null and recv is not */
8599 ((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)>*/;
8600 /* <var_new_child:nullable ANode(ANode)> isa TString */
8601 cltype47
= type_parser_nodes__TString
.color
;
8602 idtype48
= type_parser_nodes__TString
.id
;
8603 if(cltype47
>= var_new_child
->type
->table_size
) {
8606 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
8609 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8610 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2114);
8613 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_new_child
; /* _n_extern on <self:AExternMethPropdef> */
8616 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var49
; /* _n_extern on <self:AExternMethPropdef> */
8621 var50
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8622 if (var50
== NULL
) {
8623 var51
= 0; /* <var_old_child:ANode> cannot be null */
8625 var51
= ((short int (*)(val
*, val
*))(var50
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var50
, var_old_child
) /* == on <var50:nullable AExternCalls>*/;
8629 if (var_new_child
== NULL
) {
8630 var53
= 0; /* is null */
8632 var53
= 1; /* arg is null and recv is not */
8635 ((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)>*/;
8636 /* <var_new_child:nullable ANode(ANode)> isa AExternCalls */
8637 cltype55
= type_parser_nodes__AExternCalls
.color
;
8638 idtype56
= type_parser_nodes__AExternCalls
.id
;
8639 if(cltype55
>= var_new_child
->type
->table_size
) {
8642 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
8645 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8646 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2124);
8649 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_new_child
; /* _n_extern_calls on <self:AExternMethPropdef> */
8652 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var57
; /* _n_extern_calls on <self:AExternMethPropdef> */
8657 var58
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8658 if (var58
== NULL
) {
8659 var59
= 0; /* <var_old_child:ANode> cannot be null */
8661 var59
= ((short int (*)(val
*, val
*))(var58
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var58
, var_old_child
) /* == on <var58:nullable AExternCodeBlock>*/;
8665 if (var_new_child
== NULL
) {
8666 var61
= 0; /* is null */
8668 var61
= 1; /* arg is null and recv is not */
8671 ((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)>*/;
8672 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
8673 cltype63
= type_parser_nodes__AExternCodeBlock
.color
;
8674 idtype64
= type_parser_nodes__AExternCodeBlock
.id
;
8675 if(cltype63
>= var_new_child
->type
->table_size
) {
8678 var62
= var_new_child
->type
->type_table
[cltype63
] == idtype64
;
8681 fprintf(stderr
, "Runtime error: %s", "Assert failed");
8682 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2134);
8685 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_new_child
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8688 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var65
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8695 /* method parser_prod#AExternMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
8696 void VIRTUAL_parser_prod__AExternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8697 parser_prod__AExternMethPropdef__replace_child(self
, p0
, p1
);
8700 /* method parser_prod#AExternMethPropdef#n_doc= for (self: AExternMethPropdef, nullable ADoc) */
8701 void parser_prod__AExternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
8702 val
* var_node
/* var node: nullable ADoc */;
8703 val
* var
/* : null */;
8704 short int var1
/* : Bool */;
8706 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AExternMethPropdef> */
8708 if (var_node
== NULL
) {
8709 var1
= 0; /* is null */
8711 var1
= 1; /* arg is null and recv is not */
8714 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
8719 /* method parser_prod#AExternMethPropdef#n_doc= for (self: Object, nullable ADoc) */
8720 void VIRTUAL_parser_prod__AExternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
8721 parser_prod__AExternMethPropdef__n_doc_61d(self
, p0
);
8724 /* method parser_prod#AExternMethPropdef#n_kwredef= for (self: AExternMethPropdef, nullable TKwredef) */
8725 void parser_prod__AExternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8726 val
* var_node
/* var node: nullable TKwredef */;
8727 val
* var
/* : null */;
8728 short int var1
/* : Bool */;
8730 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AExternMethPropdef> */
8732 if (var_node
== NULL
) {
8733 var1
= 0; /* is null */
8735 var1
= 1; /* arg is null and recv is not */
8738 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
8743 /* method parser_prod#AExternMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
8744 void VIRTUAL_parser_prod__AExternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8745 parser_prod__AExternMethPropdef__n_kwredef_61d(self
, p0
);
8748 /* method parser_prod#AExternMethPropdef#n_visibility= for (self: AExternMethPropdef, nullable AVisibility) */
8749 void parser_prod__AExternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
8750 val
* var_node
/* var node: nullable AVisibility */;
8752 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AExternMethPropdef> */
8753 if (var_node
== NULL
) {
8754 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8755 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2160);
8758 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
8762 /* method parser_prod#AExternMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
8763 void VIRTUAL_parser_prod__AExternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
8764 parser_prod__AExternMethPropdef__n_visibility_61d(self
, p0
);
8767 /* method parser_prod#AExternMethPropdef#n_kwmeth= for (self: AExternMethPropdef, TKwmeth) */
8768 void parser_prod__AExternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8769 val
* var_node
/* var node: TKwmeth */;
8771 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AExternMethPropdef> */
8772 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
8775 /* method parser_prod#AExternMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
8776 void VIRTUAL_parser_prod__AExternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8777 parser_prod__AExternMethPropdef__n_kwmeth_61d(self
, p0
);
8780 /* method parser_prod#AExternMethPropdef#n_methid= for (self: AExternMethPropdef, nullable AMethid) */
8781 void parser_prod__AExternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8782 val
* var_node
/* var node: nullable AMethid */;
8784 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AExternMethPropdef> */
8785 if (var_node
== NULL
) {
8786 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8787 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2170);
8790 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
8794 /* method parser_prod#AExternMethPropdef#n_methid= for (self: Object, nullable AMethid) */
8795 void VIRTUAL_parser_prod__AExternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8796 parser_prod__AExternMethPropdef__n_methid_61d(self
, p0
);
8799 /* method parser_prod#AExternMethPropdef#n_signature= for (self: AExternMethPropdef, nullable ASignature) */
8800 void parser_prod__AExternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8801 val
* var_node
/* var node: nullable ASignature */;
8803 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AExternMethPropdef> */
8804 if (var_node
== NULL
) {
8805 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
8806 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2175);
8809 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
8813 /* method parser_prod#AExternMethPropdef#n_signature= for (self: Object, nullable ASignature) */
8814 void VIRTUAL_parser_prod__AExternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8815 parser_prod__AExternMethPropdef__n_signature_61d(self
, p0
);
8818 /* method parser_prod#AExternMethPropdef#n_extern= for (self: AExternMethPropdef, nullable TString) */
8819 void parser_prod__AExternMethPropdef__n_extern_61d(val
* self
, val
* p0
) {
8820 val
* var_node
/* var node: nullable TString */;
8821 val
* var
/* : null */;
8822 short int var1
/* : Bool */;
8824 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_node
; /* _n_extern on <self:AExternMethPropdef> */
8826 if (var_node
== NULL
) {
8827 var1
= 0; /* is null */
8829 var1
= 1; /* arg is null and recv is not */
8832 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TString(TString)>*/;
8837 /* method parser_prod#AExternMethPropdef#n_extern= for (self: Object, nullable TString) */
8838 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_61d(val
* self
, val
* p0
) {
8839 parser_prod__AExternMethPropdef__n_extern_61d(self
, p0
);
8842 /* method parser_prod#AExternMethPropdef#n_extern_calls= for (self: AExternMethPropdef, nullable AExternCalls) */
8843 void parser_prod__AExternMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
8844 val
* var_node
/* var node: nullable AExternCalls */;
8845 val
* var
/* : null */;
8846 short int var1
/* : Bool */;
8848 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_node
; /* _n_extern_calls on <self:AExternMethPropdef> */
8850 if (var_node
== NULL
) {
8851 var1
= 0; /* is null */
8853 var1
= 1; /* arg is null and recv is not */
8856 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCalls(AExternCalls)>*/;
8861 /* method parser_prod#AExternMethPropdef#n_extern_calls= for (self: Object, nullable AExternCalls) */
8862 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
8863 parser_prod__AExternMethPropdef__n_extern_calls_61d(self
, p0
);
8866 /* method parser_prod#AExternMethPropdef#n_extern_code_block= for (self: AExternMethPropdef, nullable AExternCodeBlock) */
8867 void parser_prod__AExternMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
8868 val
* var_node
/* var node: nullable AExternCodeBlock */;
8869 val
* var
/* : null */;
8870 short int var1
/* : Bool */;
8872 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8874 if (var_node
== NULL
) {
8875 var1
= 0; /* is null */
8877 var1
= 1; /* arg is null and recv is not */
8880 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
8885 /* method parser_prod#AExternMethPropdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
8886 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
8887 parser_prod__AExternMethPropdef__n_extern_code_block_61d(self
, p0
);
8890 /* method parser_prod#AExternMethPropdef#visit_all for (self: AExternMethPropdef, Visitor) */
8891 void parser_prod__AExternMethPropdef__visit_all(val
* self
, val
* p0
) {
8892 val
* var_v
/* var v: Visitor */;
8893 val
* var
/* : nullable ADoc */;
8894 val
* var1
/* : null */;
8895 short int var2
/* : Bool */;
8896 val
* var3
/* : nullable ADoc */;
8897 val
* var4
/* : nullable TKwredef */;
8898 val
* var5
/* : null */;
8899 short int var6
/* : Bool */;
8900 val
* var7
/* : nullable TKwredef */;
8901 val
* var8
/* : nullable AVisibility */;
8902 val
* var9
/* : TKwmeth */;
8903 val
* var10
/* : nullable AMethid */;
8904 val
* var11
/* : nullable ASignature */;
8905 val
* var12
/* : nullable TString */;
8906 val
* var13
/* : null */;
8907 short int var14
/* : Bool */;
8908 val
* var15
/* : nullable TString */;
8909 val
* var16
/* : nullable AExternCalls */;
8910 val
* var17
/* : null */;
8911 short int var18
/* : Bool */;
8912 val
* var19
/* : nullable AExternCalls */;
8913 val
* var20
/* : nullable AExternCodeBlock */;
8914 val
* var21
/* : null */;
8915 short int var22
/* : Bool */;
8916 val
* var23
/* : nullable AExternCodeBlock */;
8918 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8921 var2
= 0; /* is null */
8923 var2
= 1; /* arg is null and recv is not */
8926 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8928 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8929 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2203);
8932 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
8935 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8938 var6
= 0; /* is null */
8940 var6
= 1; /* arg is null and recv is not */
8943 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8945 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8946 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2206);
8949 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
8952 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AExternMethPropdef> */
8953 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
8954 var9
= self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AExternMethPropdef> */
8956 fprintf(stderr
, "Runtime error: %s", "Uninitialized attribute _n_kwmeth");
8957 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2209);
8960 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
8961 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AExternMethPropdef> */
8962 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
8963 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AExternMethPropdef> */
8964 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
8965 var12
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8967 if (var12
== NULL
) {
8968 var14
= 0; /* is null */
8970 var14
= 1; /* arg is null and recv is not */
8973 var15
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8974 if (var15
== NULL
) {
8975 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8976 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2213);
8979 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
8982 var16
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8984 if (var16
== NULL
) {
8985 var18
= 0; /* is null */
8987 var18
= 1; /* arg is null and recv is not */
8990 var19
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8991 if (var19
== NULL
) {
8992 fprintf(stderr
, "Runtime error: %s", "Cast failed");
8993 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2216);
8996 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var19
) /* enter_visit on <var_v:Visitor>*/;
8999 var20
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
9001 if (var20
== NULL
) {
9002 var22
= 0; /* is null */
9004 var22
= 1; /* arg is null and recv is not */
9007 var23
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
9008 if (var23
== NULL
) {
9009 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9010 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2219);
9013 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var23
) /* enter_visit on <var_v:Visitor>*/;
9018 /* method parser_prod#AExternMethPropdef#visit_all for (self: Object, Visitor) */
9019 void VIRTUAL_parser_prod__AExternMethPropdef__visit_all(val
* self
, val
* p0
) {
9020 parser_prod__AExternMethPropdef__visit_all(self
, p0
);
9023 /* method parser_prod#AConcreteMethPropdef#empty_init for (self: AConcreteMethPropdef) */
9024 void parser_prod__AConcreteMethPropdef__empty_init(val
* self
) {
9027 /* method parser_prod#AConcreteMethPropdef#empty_init for (self: Object) */
9028 void VIRTUAL_parser_prod__AConcreteMethPropdef__empty_init(val
* self
) {
9029 parser_prod__AConcreteMethPropdef__empty_init(self
);
9032 /* method parser_prod#AConcreteMethPropdef#init_aconcretemethpropdef for (self: AConcreteMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExpr) */
9033 void parser_prod__AConcreteMethPropdef__init_aconcretemethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
9034 val
* var_n_doc
/* var n_doc: nullable ADoc */;
9035 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
9036 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
9037 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
9038 val
* var_n_methid
/* var n_methid: nullable AMethid */;
9039 val
* var_n_signature
/* var n_signature: nullable ASignature */;
9040 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9041 val
* var_n_block
/* var n_block: nullable AExpr */;
9042 val
* var
/* : null */;
9043 short int var1
/* : Bool */;
9044 val
* var2
/* : null */;
9045 short int var3
/* : Bool */;
9046 val
* var4
/* : null */;
9047 short int var5
/* : Bool */;
9048 val
* var6
/* : null */;
9049 short int var7
/* : Bool */;
9052 var_n_visibility
= p2
;
9055 var_n_signature
= p5
;
9056 var_n_annotations
= p6
;
9058 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteMethPropdef__empty_init
]))(self
) /* empty_init on <self:AConcreteMethPropdef>*/;
9059 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AConcreteMethPropdef> */
9061 if (var_n_doc
== NULL
) {
9062 var1
= 0; /* is null */
9064 var1
= 1; /* arg is null and recv is not */
9067 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
9070 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9072 if (var_n_kwredef
== NULL
) {
9073 var3
= 0; /* is null */
9075 var3
= 1; /* arg is null and recv is not */
9078 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
9081 if (var_n_visibility
== NULL
) {
9082 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9083 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2246);
9086 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AConcreteMethPropdef> */
9087 if (var_n_visibility
== NULL
) {
9088 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9089 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2247);
9092 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
9094 if (var_n_kwmeth
== NULL
) {
9095 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9096 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2248);
9099 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9100 if (var_n_kwmeth
== NULL
) {
9101 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9102 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2249);
9105 ((void (*)(val
*, val
*))(var_n_kwmeth
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwmeth
, self
) /* parent= on <var_n_kwmeth:nullable TKwmeth>*/;
9107 if (var_n_methid
== NULL
) {
9108 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9109 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2250);
9112 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AConcreteMethPropdef> */
9113 if (var_n_methid
== NULL
) {
9114 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9115 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2251);
9118 ((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>*/;
9120 if (var_n_signature
== NULL
) {
9121 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9122 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2252);
9125 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AConcreteMethPropdef> */
9126 if (var_n_signature
== NULL
) {
9127 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9128 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2253);
9131 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
9133 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AConcreteMethPropdef> */
9135 if (var_n_annotations
== NULL
) {
9136 var5
= 0; /* is null */
9138 var5
= 1; /* arg is null and recv is not */
9141 ((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)>*/;
9144 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AConcreteMethPropdef> */
9146 if (var_n_block
== NULL
) {
9147 var7
= 0; /* is null */
9149 var7
= 1; /* arg is null and recv is not */
9152 ((void (*)(val
*, val
*))(var_n_block
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_block
, self
) /* parent= on <var_n_block:nullable AExpr(AExpr)>*/;
9157 /* method parser_prod#AConcreteMethPropdef#init_aconcretemethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExpr) */
9158 void VIRTUAL_parser_prod__AConcreteMethPropdef__init_aconcretemethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
9159 parser_prod__AConcreteMethPropdef__init_aconcretemethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
);
9162 /* method parser_prod#AConcreteMethPropdef#replace_child for (self: AConcreteMethPropdef, ANode, nullable ANode) */
9163 void parser_prod__AConcreteMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9164 val
* var_old_child
/* var old_child: ANode */;
9165 val
* var_new_child
/* var new_child: nullable ANode */;
9166 val
* var
/* : nullable ADoc */;
9167 short int var1
/* : Bool */;
9168 val
* var2
/* : null */;
9169 short int var3
/* : Bool */;
9170 short int var4
/* : Bool */;
9173 val
* var5
/* : null */;
9174 val
* var6
/* : nullable TKwredef */;
9175 short int var7
/* : Bool */;
9176 val
* var8
/* : null */;
9177 short int var9
/* : Bool */;
9178 short int var10
/* : Bool */;
9181 val
* var13
/* : null */;
9182 val
* var14
/* : nullable AVisibility */;
9183 short int var15
/* : Bool */;
9184 val
* var16
/* : null */;
9185 short int var17
/* : Bool */;
9186 short int var18
/* : Bool */;
9189 val
* var21
/* : nullable TKwmeth */;
9190 short int var22
/* : Bool */;
9191 val
* var23
/* : null */;
9192 short int var24
/* : Bool */;
9193 short int var25
/* : Bool */;
9196 val
* var28
/* : nullable AMethid */;
9197 short int var29
/* : Bool */;
9198 val
* var30
/* : null */;
9199 short int var31
/* : Bool */;
9200 short int var32
/* : Bool */;
9203 val
* var35
/* : nullable ASignature */;
9204 short int var36
/* : Bool */;
9205 val
* var37
/* : null */;
9206 short int var38
/* : Bool */;
9207 short int var39
/* : Bool */;
9210 val
* var42
/* : nullable AAnnotations */;
9211 short int var43
/* : Bool */;
9212 val
* var44
/* : null */;
9213 short int var45
/* : Bool */;
9214 short int var46
/* : Bool */;
9217 val
* var49
/* : null */;
9218 val
* var50
/* : nullable AExpr */;
9219 short int var51
/* : Bool */;
9220 val
* var52
/* : null */;
9221 short int var53
/* : Bool */;
9222 short int var54
/* : Bool */;
9225 val
* var57
/* : null */;
9228 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
9230 var1
= 0; /* <var_old_child:ANode> cannot be null */
9232 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
9236 if (var_new_child
== NULL
) {
9237 var3
= 0; /* is null */
9239 var3
= 1; /* arg is null and recv is not */
9242 ((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)>*/;
9243 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
9244 cltype
= type_parser_nodes__ADoc
.color
;
9245 idtype
= type_parser_nodes__ADoc
.id
;
9246 if(cltype
>= var_new_child
->type
->table_size
) {
9249 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9252 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9253 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2269);
9256 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AConcreteMethPropdef> */
9259 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AConcreteMethPropdef> */
9264 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9266 var7
= 0; /* <var_old_child:ANode> cannot be null */
9268 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
9272 if (var_new_child
== NULL
) {
9273 var9
= 0; /* is null */
9275 var9
= 1; /* arg is null and recv is not */
9278 ((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)>*/;
9279 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
9280 cltype11
= type_parser_nodes__TKwredef
.color
;
9281 idtype12
= type_parser_nodes__TKwredef
.id
;
9282 if(cltype11
>= var_new_child
->type
->table_size
) {
9285 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
9288 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9289 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2279);
9292 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9295 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9300 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AConcreteMethPropdef> */
9301 if (var14
== NULL
) {
9302 var15
= 0; /* <var_old_child:ANode> cannot be null */
9304 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
9308 if (var_new_child
== NULL
) {
9309 var17
= 0; /* is null */
9311 var17
= 1; /* arg is null and recv is not */
9314 ((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)>*/;
9315 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
9316 cltype19
= type_parser_nodes__AVisibility
.color
;
9317 idtype20
= type_parser_nodes__AVisibility
.id
;
9318 if(cltype19
>= var_new_child
->type
->table_size
) {
9321 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
9324 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9325 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2289);
9328 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AConcreteMethPropdef> */
9330 fprintf(stderr
, "Runtime error: %s", "Aborted");
9331 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2292);
9337 var21
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9338 if (var21
== NULL
) {
9339 var22
= 0; /* <var_old_child:ANode> cannot be null */
9341 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:nullable TKwmeth>*/;
9345 if (var_new_child
== NULL
) {
9346 var24
= 0; /* is null */
9348 var24
= 1; /* arg is null and recv is not */
9351 ((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)>*/;
9352 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
9353 cltype26
= type_parser_nodes__TKwmeth
.color
;
9354 idtype27
= type_parser_nodes__TKwmeth
.id
;
9355 if(cltype26
>= var_new_child
->type
->table_size
) {
9358 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
9361 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9362 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2299);
9365 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9367 fprintf(stderr
, "Runtime error: %s", "Aborted");
9368 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2302);
9374 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AConcreteMethPropdef> */
9375 if (var28
== NULL
) {
9376 var29
= 0; /* <var_old_child:ANode> cannot be null */
9378 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
9382 if (var_new_child
== NULL
) {
9383 var31
= 0; /* is null */
9385 var31
= 1; /* arg is null and recv is not */
9388 ((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)>*/;
9389 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
9390 cltype33
= type_parser_nodes__AMethid
.color
;
9391 idtype34
= type_parser_nodes__AMethid
.id
;
9392 if(cltype33
>= var_new_child
->type
->table_size
) {
9395 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
9398 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9399 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2309);
9402 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AConcreteMethPropdef> */
9404 fprintf(stderr
, "Runtime error: %s", "Aborted");
9405 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2312);
9411 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AConcreteMethPropdef> */
9412 if (var35
== NULL
) {
9413 var36
= 0; /* <var_old_child:ANode> cannot be null */
9415 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
9419 if (var_new_child
== NULL
) {
9420 var38
= 0; /* is null */
9422 var38
= 1; /* arg is null and recv is not */
9425 ((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)>*/;
9426 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
9427 cltype40
= type_parser_nodes__ASignature
.color
;
9428 idtype41
= type_parser_nodes__ASignature
.id
;
9429 if(cltype40
>= var_new_child
->type
->table_size
) {
9432 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
9435 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9436 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2319);
9439 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AConcreteMethPropdef> */
9441 fprintf(stderr
, "Runtime error: %s", "Aborted");
9442 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2322);
9448 var42
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9449 if (var42
== NULL
) {
9450 var43
= 0; /* <var_old_child:ANode> cannot be null */
9452 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable AAnnotations>*/;
9456 if (var_new_child
== NULL
) {
9457 var45
= 0; /* is null */
9459 var45
= 1; /* arg is null and recv is not */
9462 ((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)>*/;
9463 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
9464 cltype47
= type_parser_nodes__AAnnotations
.color
;
9465 idtype48
= type_parser_nodes__AAnnotations
.id
;
9466 if(cltype47
>= var_new_child
->type
->table_size
) {
9469 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
9472 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9473 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2329);
9476 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AConcreteMethPropdef> */
9479 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var49
; /* _n_annotations on <self:AConcreteMethPropdef> */
9484 var50
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9485 if (var50
== NULL
) {
9486 var51
= 0; /* <var_old_child:ANode> cannot be null */
9488 var51
= ((short int (*)(val
*, val
*))(var50
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var50
, var_old_child
) /* == on <var50:nullable AExpr>*/;
9492 if (var_new_child
== NULL
) {
9493 var53
= 0; /* is null */
9495 var53
= 1; /* arg is null and recv is not */
9498 ((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)>*/;
9499 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
9500 cltype55
= type_parser_nodes__AExpr
.color
;
9501 idtype56
= type_parser_nodes__AExpr
.id
;
9502 if(cltype55
>= var_new_child
->type
->table_size
) {
9505 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
9508 fprintf(stderr
, "Runtime error: %s", "Assert failed");
9509 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2339);
9512 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_new_child
; /* _n_block on <self:AConcreteMethPropdef> */
9515 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var57
; /* _n_block on <self:AConcreteMethPropdef> */
9522 /* method parser_prod#AConcreteMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
9523 void VIRTUAL_parser_prod__AConcreteMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9524 parser_prod__AConcreteMethPropdef__replace_child(self
, p0
, p1
);
9527 /* method parser_prod#AConcreteMethPropdef#n_doc= for (self: AConcreteMethPropdef, nullable ADoc) */
9528 void parser_prod__AConcreteMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9529 val
* var_node
/* var node: nullable ADoc */;
9530 val
* var
/* : null */;
9531 short int var1
/* : Bool */;
9533 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AConcreteMethPropdef> */
9535 if (var_node
== NULL
) {
9536 var1
= 0; /* is null */
9538 var1
= 1; /* arg is null and recv is not */
9541 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
9546 /* method parser_prod#AConcreteMethPropdef#n_doc= for (self: Object, nullable ADoc) */
9547 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9548 parser_prod__AConcreteMethPropdef__n_doc_61d(self
, p0
);
9551 /* method parser_prod#AConcreteMethPropdef#n_kwredef= for (self: AConcreteMethPropdef, nullable TKwredef) */
9552 void parser_prod__AConcreteMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9553 val
* var_node
/* var node: nullable TKwredef */;
9554 val
* var
/* : null */;
9555 short int var1
/* : Bool */;
9557 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9559 if (var_node
== NULL
) {
9560 var1
= 0; /* is null */
9562 var1
= 1; /* arg is null and recv is not */
9565 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
9570 /* method parser_prod#AConcreteMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
9571 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9572 parser_prod__AConcreteMethPropdef__n_kwredef_61d(self
, p0
);
9575 /* method parser_prod#AConcreteMethPropdef#n_visibility= for (self: AConcreteMethPropdef, nullable AVisibility) */
9576 void parser_prod__AConcreteMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9577 val
* var_node
/* var node: nullable AVisibility */;
9579 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AConcreteMethPropdef> */
9580 if (var_node
== NULL
) {
9581 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9582 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2365);
9585 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
9589 /* method parser_prod#AConcreteMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
9590 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9591 parser_prod__AConcreteMethPropdef__n_visibility_61d(self
, p0
);
9594 /* method parser_prod#AConcreteMethPropdef#n_kwmeth= for (self: AConcreteMethPropdef, nullable TKwmeth) */
9595 void parser_prod__AConcreteMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9596 val
* var_node
/* var node: nullable TKwmeth */;
9598 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9599 if (var_node
== NULL
) {
9600 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9601 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2370);
9604 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwmeth>*/;
9608 /* method parser_prod#AConcreteMethPropdef#n_kwmeth= for (self: Object, nullable TKwmeth) */
9609 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9610 parser_prod__AConcreteMethPropdef__n_kwmeth_61d(self
, p0
);
9613 /* method parser_prod#AConcreteMethPropdef#n_methid= for (self: AConcreteMethPropdef, nullable AMethid) */
9614 void parser_prod__AConcreteMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9615 val
* var_node
/* var node: nullable AMethid */;
9617 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AConcreteMethPropdef> */
9618 if (var_node
== NULL
) {
9619 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9620 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2375);
9623 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
9627 /* method parser_prod#AConcreteMethPropdef#n_methid= for (self: Object, nullable AMethid) */
9628 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9629 parser_prod__AConcreteMethPropdef__n_methid_61d(self
, p0
);
9632 /* method parser_prod#AConcreteMethPropdef#n_signature= for (self: AConcreteMethPropdef, nullable ASignature) */
9633 void parser_prod__AConcreteMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9634 val
* var_node
/* var node: nullable ASignature */;
9636 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AConcreteMethPropdef> */
9637 if (var_node
== NULL
) {
9638 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9639 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2380);
9642 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
9646 /* method parser_prod#AConcreteMethPropdef#n_signature= for (self: Object, nullable ASignature) */
9647 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9648 parser_prod__AConcreteMethPropdef__n_signature_61d(self
, p0
);
9651 /* method parser_prod#AConcreteMethPropdef#n_annotations= for (self: AConcreteMethPropdef, nullable AAnnotations) */
9652 void parser_prod__AConcreteMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9653 val
* var_node
/* var node: nullable AAnnotations */;
9654 val
* var
/* : null */;
9655 short int var1
/* : Bool */;
9657 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AConcreteMethPropdef> */
9659 if (var_node
== NULL
) {
9660 var1
= 0; /* is null */
9662 var1
= 1; /* arg is null and recv is not */
9665 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
9670 /* method parser_prod#AConcreteMethPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
9671 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9672 parser_prod__AConcreteMethPropdef__n_annotations_61d(self
, p0
);
9675 /* method parser_prod#AConcreteMethPropdef#n_block= for (self: AConcreteMethPropdef, nullable AExpr) */
9676 void parser_prod__AConcreteMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9677 val
* var_node
/* var node: nullable AExpr */;
9678 val
* var
/* : null */;
9679 short int var1
/* : Bool */;
9681 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AConcreteMethPropdef> */
9683 if (var_node
== NULL
) {
9684 var1
= 0; /* is null */
9686 var1
= 1; /* arg is null and recv is not */
9689 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExpr(AExpr)>*/;
9694 /* method parser_prod#AConcreteMethPropdef#n_block= for (self: Object, nullable AExpr) */
9695 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9696 parser_prod__AConcreteMethPropdef__n_block_61d(self
, p0
);
9699 /* method parser_prod#AConcreteMethPropdef#visit_all for (self: AConcreteMethPropdef, Visitor) */
9700 void parser_prod__AConcreteMethPropdef__visit_all(val
* self
, val
* p0
) {
9701 val
* var_v
/* var v: Visitor */;
9702 val
* var
/* : nullable ADoc */;
9703 val
* var1
/* : null */;
9704 short int var2
/* : Bool */;
9705 val
* var3
/* : nullable ADoc */;
9706 val
* var4
/* : nullable TKwredef */;
9707 val
* var5
/* : null */;
9708 short int var6
/* : Bool */;
9709 val
* var7
/* : nullable TKwredef */;
9710 val
* var8
/* : nullable AVisibility */;
9711 val
* var9
/* : nullable TKwmeth */;
9712 val
* var10
/* : nullable AMethid */;
9713 val
* var11
/* : nullable ASignature */;
9714 val
* var12
/* : nullable AAnnotations */;
9715 val
* var13
/* : null */;
9716 short int var14
/* : Bool */;
9717 val
* var15
/* : nullable AAnnotations */;
9718 val
* var16
/* : nullable AExpr */;
9719 val
* var17
/* : null */;
9720 short int var18
/* : Bool */;
9721 val
* var19
/* : nullable AExpr */;
9723 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
9726 var2
= 0; /* is null */
9728 var2
= 1; /* arg is null and recv is not */
9731 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
9733 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9734 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2401);
9737 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
9740 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9743 var6
= 0; /* is null */
9745 var6
= 1; /* arg is null and recv is not */
9748 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9750 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9751 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2404);
9754 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
9757 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AConcreteMethPropdef> */
9758 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
9759 var9
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9760 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
9761 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AConcreteMethPropdef> */
9762 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
9763 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AConcreteMethPropdef> */
9764 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
9765 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9767 if (var12
== NULL
) {
9768 var14
= 0; /* is null */
9770 var14
= 1; /* arg is null and recv is not */
9773 var15
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9774 if (var15
== NULL
) {
9775 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9776 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2411);
9779 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
9782 var16
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9784 if (var16
== NULL
) {
9785 var18
= 0; /* is null */
9787 var18
= 1; /* arg is null and recv is not */
9790 var19
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9791 if (var19
== NULL
) {
9792 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9793 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2414);
9796 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var19
) /* enter_visit on <var_v:Visitor>*/;
9801 /* method parser_prod#AConcreteMethPropdef#visit_all for (self: Object, Visitor) */
9802 void VIRTUAL_parser_prod__AConcreteMethPropdef__visit_all(val
* self
, val
* p0
) {
9803 parser_prod__AConcreteMethPropdef__visit_all(self
, p0
);
9806 /* method parser_prod#AConcreteInitPropdef#empty_init for (self: AConcreteInitPropdef) */
9807 void parser_prod__AConcreteInitPropdef__empty_init(val
* self
) {
9810 /* method parser_prod#AConcreteInitPropdef#empty_init for (self: Object) */
9811 void VIRTUAL_parser_prod__AConcreteInitPropdef__empty_init(val
* self
) {
9812 parser_prod__AConcreteInitPropdef__empty_init(self
);
9815 /* method parser_prod#AConcreteInitPropdef#init_aconcreteinitpropdef for (self: AConcreteInitPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwinit, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExpr) */
9816 void parser_prod__AConcreteInitPropdef__init_aconcreteinitpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
9817 val
* var_n_doc
/* var n_doc: nullable ADoc */;
9818 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
9819 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
9820 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
9821 val
* var_n_methid
/* var n_methid: nullable AMethid */;
9822 val
* var_n_signature
/* var n_signature: nullable ASignature */;
9823 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9824 val
* var_n_block
/* var n_block: nullable AExpr */;
9825 val
* var
/* : null */;
9826 short int var1
/* : Bool */;
9827 val
* var2
/* : null */;
9828 short int var3
/* : Bool */;
9829 val
* var4
/* : null */;
9830 short int var5
/* : Bool */;
9831 val
* var6
/* : null */;
9832 short int var7
/* : Bool */;
9833 val
* var8
/* : null */;
9834 short int var9
/* : Bool */;
9837 var_n_visibility
= p2
;
9840 var_n_signature
= p5
;
9841 var_n_annotations
= p6
;
9843 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteInitPropdef__empty_init
]))(self
) /* empty_init on <self:AConcreteInitPropdef>*/;
9844 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AConcreteInitPropdef> */
9846 if (var_n_doc
== NULL
) {
9847 var1
= 0; /* is null */
9849 var1
= 1; /* arg is null and recv is not */
9852 ((void (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_doc
, self
) /* parent= on <var_n_doc:nullable ADoc(ADoc)>*/;
9855 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9857 if (var_n_kwredef
== NULL
) {
9858 var3
= 0; /* is null */
9860 var3
= 1; /* arg is null and recv is not */
9863 ((void (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwredef
, self
) /* parent= on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
9866 if (var_n_visibility
== NULL
) {
9867 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9868 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2441);
9871 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AConcreteInitPropdef> */
9872 if (var_n_visibility
== NULL
) {
9873 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9874 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2442);
9877 ((void (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_visibility
, self
) /* parent= on <var_n_visibility:nullable AVisibility>*/;
9879 if (var_n_kwinit
== NULL
) {
9880 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9881 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2443);
9884 self
->attrs
[COLOR_parser_nodes__AConcreteInitPropdef___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AConcreteInitPropdef> */
9885 if (var_n_kwinit
== NULL
) {
9886 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9887 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2444);
9890 ((void (*)(val
*, val
*))(var_n_kwinit
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_kwinit
, self
) /* parent= on <var_n_kwinit:nullable TKwinit>*/;
9892 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AConcreteInitPropdef> */
9894 if (var_n_methid
== NULL
) {
9895 var5
= 0; /* is null */
9897 var5
= 1; /* arg is null and recv is not */
9900 ((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(AMethid)>*/;
9903 if (var_n_signature
== NULL
) {
9904 fprintf(stderr
, "Runtime error: %s", "Cast failed");
9905 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2449);
9908 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AConcreteInitPropdef> */
9909 if (var_n_signature
== NULL
) {
9910 fprintf(stderr
, "Runtime error: %s", "Reciever is null");
9911 fprintf(stderr
, " (%s:%d)\n", "src/parser/parser_prod.nit", 2450);
9914 ((void (*)(val
*, val
*))(var_n_signature
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_signature
, self
) /* parent= on <var_n_signature:nullable ASignature>*/;
9916 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AConcreteInitPropdef> */
9918 if (var_n_annotations
== NULL
) {
9919 var7
= 0; /* is null */
9921 var7
= 1; /* arg is null and recv is not */
9924 ((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)>*/;
9927 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AConcreteInitPropdef> */
9929 if (var_n_block
== NULL
) {
9930 var9
= 0; /* is null */
9932 var9
= 1; /* arg is null and recv is not */
9935 ((void (*)(val
*, val
*))(var_n_block
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n_block
, self
) /* parent= on <var_n_block:nullable AExpr(AExpr)>*/;
9940 /* method parser_prod#AConcreteInitPropdef#init_aconcreteinitpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwinit, nullable AMethid, nullable ASignature, nullable AAnnotations, nullable AExpr) */
9941 void VIRTUAL_parser_prod__AConcreteInitPropdef__init_aconcreteinitpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
9942 parser_prod__AConcreteInitPropdef__init_aconcreteinitpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
);