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 (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 25);
77 var6
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
79 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 26);
82 ((void (*)(val
*, val
*))(var6
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var6
, var_n
) /* add on <var6:ANodes[AImport]>*/;
83 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AImport)>*/;
84 CONTINUE_label
: (void)0;
85 ((void (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var2
) /* next on <var2:Iterator[nullable Object]>*/;
88 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]>*/;
90 var8
= ((short int (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var7
) /* is_ok on <var7:Iterator[nullable Object]>*/;
92 var9
= ((val
* (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var7
) /* item on <var7:Iterator[nullable Object]>*/;
94 /* <var_n10:Object> isa AExternCodeBlock */
95 cltype12
= type_parser_nodes__AExternCodeBlock
.color
;
96 idtype13
= type_parser_nodes__AExternCodeBlock
.id
;
97 if(cltype12
>= var_n10
->type
->table_size
) {
100 var11
= var_n10
->type
->type_table
[cltype12
] == idtype13
;
103 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 30);
106 var14
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
108 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 31);
111 ((void (*)(val
*, val
*))(var14
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var14
, var_n10
) /* add on <var14:ANodes[AExternCodeBlock]>*/;
112 ((void (*)(val
*, val
*))(var_n10
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n10
, self
) /* parent= on <var_n10:Object(AExternCodeBlock)>*/;
113 CONTINUE_label15
: (void)0;
114 ((void (*)(val
*))(var7
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var7
) /* next on <var7:Iterator[nullable Object]>*/;
116 BREAK_label15
: (void)0;
117 var16
= ((val
* (*)(val
*))(var_n_classdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_classdefs
) /* iterator on <var_n_classdefs:Collection[Object]>*/;
119 var17
= ((short int (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var16
) /* is_ok on <var16:Iterator[nullable Object]>*/;
121 var18
= ((val
* (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var16
) /* item on <var16:Iterator[nullable Object]>*/;
123 /* <var_n19:Object> isa AClassdef */
124 cltype21
= type_parser_nodes__AClassdef
.color
;
125 idtype22
= type_parser_nodes__AClassdef
.id
;
126 if(cltype21
>= var_n19
->type
->table_size
) {
129 var20
= var_n19
->type
->type_table
[cltype21
] == idtype22
;
132 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 35);
135 var23
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
137 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 36);
140 ((void (*)(val
*, val
*))(var23
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var23
, var_n19
) /* add on <var23:ANodes[AClassdef]>*/;
141 ((void (*)(val
*, val
*))(var_n19
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n19
, self
) /* parent= on <var_n19:Object(AClassdef)>*/;
142 CONTINUE_label24
: (void)0;
143 ((void (*)(val
*))(var16
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var16
) /* next on <var16:Iterator[nullable Object]>*/;
145 BREAK_label24
: (void)0;
148 /* method parser_prod#AModule#init_amodule for (self: Object, nullable AModuledecl, Collection[Object], Collection[Object], Collection[Object]) */
149 void VIRTUAL_parser_prod__AModule__init_amodule(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
150 parser_prod__AModule__init_amodule(self
, p0
, p1
, p2
, p3
);
153 /* method parser_prod#AModule#replace_child for (self: AModule, ANode, nullable ANode) */
154 void parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
155 val
* var_old_child
/* var old_child: ANode */;
156 val
* var_new_child
/* var new_child: nullable ANode */;
157 val
* var
/* : nullable AModuledecl */;
158 short int var1
/* : Bool */;
159 val
* var2
/* : null */;
160 short int var3
/* : Bool */;
161 short int var4
/* : Bool */;
164 val
* var5
/* : null */;
165 val
* var6
/* : Range[Int] */;
166 long var7
/* : Int */;
167 val
* var8
/* : ANodes[AImport] */;
168 long var9
/* : Int */;
169 val
* var10
/* : Discrete */;
170 val
* var11
/* : Discrete */;
171 val
* var12
/* : Iterator[nullable Object] */;
172 short int var13
/* : Bool */;
173 val
* var14
/* : nullable Object */;
174 long var_i
/* var i: Int */;
175 long var15
/* : Int */;
176 val
* var16
/* : ANodes[AImport] */;
177 val
* var17
/* : nullable Object */;
178 short int var18
/* : Bool */;
179 val
* var19
/* : null */;
180 short int var20
/* : Bool */;
181 short int var21
/* : Bool */;
184 val
* var24
/* : ANodes[AImport] */;
185 val
* var25
/* : ANodes[AImport] */;
186 val
* var26
/* : Range[Int] */;
187 long var27
/* : Int */;
188 val
* var28
/* : ANodes[AExternCodeBlock] */;
189 long var29
/* : Int */;
190 val
* var30
/* : Discrete */;
191 val
* var31
/* : Discrete */;
192 val
* var32
/* : Iterator[nullable Object] */;
193 short int var33
/* : Bool */;
194 val
* var34
/* : nullable Object */;
195 long var_i35
/* var i: Int */;
196 long var36
/* : Int */;
197 val
* var37
/* : ANodes[AExternCodeBlock] */;
198 val
* var38
/* : nullable Object */;
199 short int var39
/* : Bool */;
200 val
* var40
/* : null */;
201 short int var41
/* : Bool */;
202 short int var42
/* : Bool */;
205 val
* var45
/* : ANodes[AExternCodeBlock] */;
206 val
* var46
/* : ANodes[AExternCodeBlock] */;
207 val
* var48
/* : Range[Int] */;
208 long var49
/* : Int */;
209 val
* var50
/* : ANodes[AClassdef] */;
210 long var51
/* : Int */;
211 val
* var52
/* : Discrete */;
212 val
* var53
/* : Discrete */;
213 val
* var54
/* : Iterator[nullable Object] */;
214 short int var55
/* : Bool */;
215 val
* var56
/* : nullable Object */;
216 long var_i57
/* var i: Int */;
217 long var58
/* : Int */;
218 val
* var59
/* : ANodes[AClassdef] */;
219 val
* var60
/* : nullable Object */;
220 short int var61
/* : Bool */;
221 val
* var62
/* : null */;
222 short int var63
/* : Bool */;
223 short int var64
/* : Bool */;
226 val
* var67
/* : ANodes[AClassdef] */;
227 val
* var68
/* : ANodes[AClassdef] */;
230 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
232 var1
= 0; /* <var_old_child:ANode> cannot be null */
234 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable AModuledecl>*/;
238 if (var_new_child
== NULL
) {
239 var3
= 0; /* is null */
241 var3
= 1; /* arg is null and recv is not */
244 ((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)>*/;
245 /* <var_new_child:nullable ANode(ANode)> isa AModuledecl */
246 cltype
= type_parser_nodes__AModuledecl
.color
;
247 idtype
= type_parser_nodes__AModuledecl
.id
;
248 if(cltype
>= var_new_child
->type
->table_size
) {
251 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
254 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 46);
257 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_new_child
; /* _n_moduledecl on <self:AModule> */
260 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var5
; /* _n_moduledecl on <self:AModule> */
265 var6
= NEW_range__Range(&type_range__Rangekernel__Int
);
267 var8
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
269 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 53);
272 var9
= ((long (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var8
) /* length on <var8:ANodes[AImport]>*/;
273 var10
= BOX_kernel__Int(var7
); /* autobox from Int to Discrete */
274 var11
= BOX_kernel__Int(var9
); /* autobox from Int to Discrete */
275 ((void (*)(val
*, val
*, val
*))(var6
->class->vft
[COLOR_range__Range__without_last
]))(var6
, var10
, var11
) /* without_last on <var6:Range[Int]>*/;
276 CHECK_NEW_range__Range(var6
);
277 var12
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var6
) /* iterator on <var6:Range[Int]>*/;
279 var13
= ((short int (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var12
) /* is_ok on <var12:Iterator[nullable Object]>*/;
281 var14
= ((val
* (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var12
) /* item on <var12:Iterator[nullable Object]>*/;
282 var15
= ((struct instance_kernel__Int
*)var14
)->value
; /* autounbox from nullable Object to Int */;
284 var16
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
286 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 54);
289 var17
= ((val
* (*)(val
*, long))(var16
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var16
, var_i
) /* [] on <var16:ANodes[AImport]>*/;
290 var18
= ((short int (*)(val
*, val
*))(var17
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var17
, var_old_child
) /* == on <var17:nullable Object(AImport)>*/;
293 if (var_new_child
== NULL
) {
294 var20
= 0; /* is null */
296 var20
= 1; /* arg is null and recv is not */
299 /* <var_new_child:nullable ANode(ANode)> isa AImport */
300 cltype22
= type_parser_nodes__AImport
.color
;
301 idtype23
= type_parser_nodes__AImport
.id
;
302 if(cltype22
>= var_new_child
->type
->table_size
) {
305 var21
= var_new_child
->type
->type_table
[cltype22
] == idtype23
;
308 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 56);
311 var24
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
313 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 57);
316 ((void (*)(val
*, long, val
*))(var24
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var24
, var_i
, var_new_child
) /* []= on <var24:ANodes[AImport]>*/;
317 ((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)>*/;
319 var25
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
321 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 60);
324 ((void (*)(val
*, long))(var25
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var25
, var_i
) /* remove_at on <var25:ANodes[AImport]>*/;
329 CONTINUE_label
: (void)0;
330 ((void (*)(val
*))(var12
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var12
) /* next on <var12:Iterator[nullable Object]>*/;
332 BREAK_label
: (void)0;
333 var26
= NEW_range__Range(&type_range__Rangekernel__Int
);
335 var28
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
337 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 65);
340 var29
= ((long (*)(val
*))(var28
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var28
) /* length on <var28:ANodes[AExternCodeBlock]>*/;
341 var30
= BOX_kernel__Int(var27
); /* autobox from Int to Discrete */
342 var31
= BOX_kernel__Int(var29
); /* autobox from Int to Discrete */
343 ((void (*)(val
*, val
*, val
*))(var26
->class->vft
[COLOR_range__Range__without_last
]))(var26
, var30
, var31
) /* without_last on <var26:Range[Int]>*/;
344 CHECK_NEW_range__Range(var26
);
345 var32
= ((val
* (*)(val
*))(var26
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var26
) /* iterator on <var26:Range[Int]>*/;
347 var33
= ((short int (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var32
) /* is_ok on <var32:Iterator[nullable Object]>*/;
349 var34
= ((val
* (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var32
) /* item on <var32:Iterator[nullable Object]>*/;
350 var36
= ((struct instance_kernel__Int
*)var34
)->value
; /* autounbox from nullable Object to Int */;
352 var37
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
354 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 66);
357 var38
= ((val
* (*)(val
*, long))(var37
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var37
, var_i35
) /* [] on <var37:ANodes[AExternCodeBlock]>*/;
358 var39
= ((short int (*)(val
*, val
*))(var38
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var38
, var_old_child
) /* == on <var38:nullable Object(AExternCodeBlock)>*/;
361 if (var_new_child
== NULL
) {
362 var41
= 0; /* is null */
364 var41
= 1; /* arg is null and recv is not */
367 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
368 cltype43
= type_parser_nodes__AExternCodeBlock
.color
;
369 idtype44
= type_parser_nodes__AExternCodeBlock
.id
;
370 if(cltype43
>= var_new_child
->type
->table_size
) {
373 var42
= var_new_child
->type
->type_table
[cltype43
] == idtype44
;
376 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 68);
379 var45
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
381 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 69);
384 ((void (*)(val
*, long, val
*))(var45
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var45
, var_i35
, var_new_child
) /* []= on <var45:ANodes[AExternCodeBlock]>*/;
385 ((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)>*/;
387 var46
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
389 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 72);
392 ((void (*)(val
*, long))(var46
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var46
, var_i35
) /* remove_at on <var46:ANodes[AExternCodeBlock]>*/;
397 CONTINUE_label47
: (void)0;
398 ((void (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var32
) /* next on <var32:Iterator[nullable Object]>*/;
400 BREAK_label47
: (void)0;
401 var48
= NEW_range__Range(&type_range__Rangekernel__Int
);
403 var50
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
405 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 77);
408 var51
= ((long (*)(val
*))(var50
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var50
) /* length on <var50:ANodes[AClassdef]>*/;
409 var52
= BOX_kernel__Int(var49
); /* autobox from Int to Discrete */
410 var53
= BOX_kernel__Int(var51
); /* autobox from Int to Discrete */
411 ((void (*)(val
*, val
*, val
*))(var48
->class->vft
[COLOR_range__Range__without_last
]))(var48
, var52
, var53
) /* without_last on <var48:Range[Int]>*/;
412 CHECK_NEW_range__Range(var48
);
413 var54
= ((val
* (*)(val
*))(var48
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var48
) /* iterator on <var48:Range[Int]>*/;
415 var55
= ((short int (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var54
) /* is_ok on <var54:Iterator[nullable Object]>*/;
417 var56
= ((val
* (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var54
) /* item on <var54:Iterator[nullable Object]>*/;
418 var58
= ((struct instance_kernel__Int
*)var56
)->value
; /* autounbox from nullable Object to Int */;
420 var59
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
422 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 78);
425 var60
= ((val
* (*)(val
*, long))(var59
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var59
, var_i57
) /* [] on <var59:ANodes[AClassdef]>*/;
426 var61
= ((short int (*)(val
*, val
*))(var60
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var60
, var_old_child
) /* == on <var60:nullable Object(AClassdef)>*/;
429 if (var_new_child
== NULL
) {
430 var63
= 0; /* is null */
432 var63
= 1; /* arg is null and recv is not */
435 /* <var_new_child:nullable ANode(ANode)> isa AClassdef */
436 cltype65
= type_parser_nodes__AClassdef
.color
;
437 idtype66
= type_parser_nodes__AClassdef
.id
;
438 if(cltype65
>= var_new_child
->type
->table_size
) {
441 var64
= var_new_child
->type
->type_table
[cltype65
] == idtype66
;
444 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 80);
447 var67
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
449 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 81);
452 ((void (*)(val
*, long, val
*))(var67
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var67
, var_i57
, var_new_child
) /* []= on <var67:ANodes[AClassdef]>*/;
453 ((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)>*/;
455 var68
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
457 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 84);
460 ((void (*)(val
*, long))(var68
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var68
, var_i57
) /* remove_at on <var68:ANodes[AClassdef]>*/;
465 CONTINUE_label69
: (void)0;
466 ((void (*)(val
*))(var54
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var54
) /* next on <var54:Iterator[nullable Object]>*/;
468 BREAK_label69
: (void)0;
471 /* method parser_prod#AModule#replace_child for (self: Object, ANode, nullable ANode) */
472 void VIRTUAL_parser_prod__AModule__replace_child(val
* self
, val
* p0
, val
* p1
) {
473 parser_prod__AModule__replace_child(self
, p0
, p1
);
476 /* method parser_prod#AModule#n_moduledecl= for (self: AModule, nullable AModuledecl) */
477 void parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
478 val
* var_node
/* var node: nullable AModuledecl */;
479 val
* var
/* : null */;
480 short int var1
/* : Bool */;
482 self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
= var_node
; /* _n_moduledecl on <self:AModule> */
484 if (var_node
== NULL
) {
485 var1
= 0; /* is null */
487 var1
= 1; /* arg is null and recv is not */
490 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AModuledecl(AModuledecl)>*/;
495 /* method parser_prod#AModule#n_moduledecl= for (self: Object, nullable AModuledecl) */
496 void VIRTUAL_parser_prod__AModule__n_moduledecl_61d(val
* self
, val
* p0
) {
497 parser_prod__AModule__n_moduledecl_61d(self
, p0
);
500 /* method parser_prod#AModule#visit_all for (self: AModule, Visitor) */
501 void parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
502 val
* var_v
/* var v: Visitor */;
503 val
* var
/* : nullable AModuledecl */;
504 val
* var1
/* : null */;
505 short int var2
/* : Bool */;
506 val
* var3
/* : nullable AModuledecl */;
507 val
* var4
/* : ANodes[AImport] */;
508 val
* var5
/* : Iterator[nullable Object] */;
509 short int var6
/* : Bool */;
510 val
* var7
/* : nullable Object */;
511 val
* var_n
/* var n: AImport */;
512 val
* var8
/* : ANodes[AExternCodeBlock] */;
513 val
* var9
/* : Iterator[nullable Object] */;
514 short int var10
/* : Bool */;
515 val
* var11
/* : nullable Object */;
516 val
* var_n12
/* var n: AExternCodeBlock */;
517 val
* var14
/* : ANodes[AClassdef] */;
518 val
* var15
/* : Iterator[nullable Object] */;
519 short int var16
/* : Bool */;
520 val
* var17
/* : nullable Object */;
521 val
* var_n18
/* var n: AClassdef */;
523 var
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
526 var2
= 0; /* is null */
528 var2
= 1; /* arg is null and recv is not */
531 var3
= self
->attrs
[COLOR_parser_nodes__AModule___n_moduledecl
].val
; /* _n_moduledecl on <self:AModule> */
533 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 103);
536 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
539 var4
= self
->attrs
[COLOR_parser_nodes__AModule___n_imports
].val
; /* _n_imports on <self:AModule> */
541 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_imports", "src/parser/parser_prod.nit", 105);
544 var5
= ((val
* (*)(val
*))(var4
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var4
) /* iterator on <var4:ANodes[AImport]>*/;
546 var6
= ((short int (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var5
) /* is_ok on <var5:Iterator[nullable Object]>*/;
548 var7
= ((val
* (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var5
) /* item on <var5:Iterator[nullable Object]>*/;
550 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
551 CONTINUE_label
: (void)0;
552 ((void (*)(val
*))(var5
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var5
) /* next on <var5:Iterator[nullable Object]>*/;
554 BREAK_label
: (void)0;
555 var8
= self
->attrs
[COLOR_parser_nodes__AModule___n_extern_code_blocks
].val
; /* _n_extern_code_blocks on <self:AModule> */
557 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_extern_code_blocks", "src/parser/parser_prod.nit", 108);
560 var9
= ((val
* (*)(val
*))(var8
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var8
) /* iterator on <var8:ANodes[AExternCodeBlock]>*/;
562 var10
= ((short int (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var9
) /* is_ok on <var9:Iterator[nullable Object]>*/;
564 var11
= ((val
* (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var9
) /* item on <var9:Iterator[nullable Object]>*/;
566 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n12
) /* enter_visit on <var_v:Visitor>*/;
567 CONTINUE_label13
: (void)0;
568 ((void (*)(val
*))(var9
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var9
) /* next on <var9:Iterator[nullable Object]>*/;
570 BREAK_label13
: (void)0;
571 var14
= self
->attrs
[COLOR_parser_nodes__AModule___n_classdefs
].val
; /* _n_classdefs on <self:AModule> */
573 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classdefs", "src/parser/parser_prod.nit", 111);
576 var15
= ((val
* (*)(val
*))(var14
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var14
) /* iterator on <var14:ANodes[AClassdef]>*/;
578 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
580 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
582 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n18
) /* enter_visit on <var_v:Visitor>*/;
583 CONTINUE_label19
: (void)0;
584 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
586 BREAK_label19
: (void)0;
589 /* method parser_prod#AModule#visit_all for (self: Object, Visitor) */
590 void VIRTUAL_parser_prod__AModule__visit_all(val
* self
, val
* p0
) {
591 parser_prod__AModule__visit_all(self
, p0
);
594 /* method parser_prod#AModuledecl#empty_init for (self: AModuledecl) */
595 void parser_prod__AModuledecl__empty_init(val
* self
) {
598 /* method parser_prod#AModuledecl#empty_init for (self: Object) */
599 void VIRTUAL_parser_prod__AModuledecl__empty_init(val
* self
) {
600 parser_prod__AModuledecl__empty_init(self
);
603 /* method parser_prod#AModuledecl#init_amoduledecl for (self: AModuledecl, nullable ADoc, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
604 void parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
605 val
* var_n_doc
/* var n_doc: nullable ADoc */;
606 val
* var_n_kwmodule
/* var n_kwmodule: nullable TKwmodule */;
607 val
* var_n_name
/* var n_name: nullable AModuleName */;
608 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
609 val
* var
/* : null */;
610 short int var1
/* : Bool */;
611 val
* var2
/* : null */;
612 short int var3
/* : Bool */;
616 var_n_annotations
= p3
;
617 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AModuledecl__empty_init
]))(self
) /* empty_init on <self:AModuledecl>*/;
618 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AModuledecl> */
620 if (var_n_doc
== NULL
) {
621 var1
= 0; /* is null */
623 var1
= 1; /* arg is null and recv is not */
626 ((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)>*/;
629 if (var_n_kwmodule
== NULL
) {
630 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 131);
633 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_n_kwmodule
; /* _n_kwmodule on <self:AModuledecl> */
634 if (var_n_kwmodule
== NULL
) {
635 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 132);
638 ((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>*/;
640 if (var_n_name
== NULL
) {
641 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 133);
644 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_n_name
; /* _n_name on <self:AModuledecl> */
645 if (var_n_name
== NULL
) {
646 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 134);
649 ((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>*/;
651 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AModuledecl> */
653 if (var_n_annotations
== NULL
) {
654 var3
= 0; /* is null */
656 var3
= 1; /* arg is null and recv is not */
659 ((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)>*/;
664 /* method parser_prod#AModuledecl#init_amoduledecl for (self: Object, nullable ADoc, nullable TKwmodule, nullable AModuleName, nullable AAnnotations) */
665 void VIRTUAL_parser_prod__AModuledecl__init_amoduledecl(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
666 parser_prod__AModuledecl__init_amoduledecl(self
, p0
, p1
, p2
, p3
);
669 /* method parser_prod#AModuledecl#replace_child for (self: AModuledecl, ANode, nullable ANode) */
670 void parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
671 val
* var_old_child
/* var old_child: ANode */;
672 val
* var_new_child
/* var new_child: nullable ANode */;
673 val
* var
/* : nullable ADoc */;
674 short int var1
/* : Bool */;
675 val
* var2
/* : null */;
676 short int var3
/* : Bool */;
677 short int var4
/* : Bool */;
680 val
* var5
/* : null */;
681 val
* var6
/* : TKwmodule */;
682 short int var7
/* : Bool */;
683 val
* var8
/* : null */;
684 short int var9
/* : Bool */;
685 short int var10
/* : Bool */;
688 val
* var13
/* : AModuleName */;
689 short int var14
/* : Bool */;
690 val
* var15
/* : null */;
691 short int var16
/* : Bool */;
692 short int var17
/* : Bool */;
695 val
* var20
/* : nullable AAnnotations */;
696 short int var21
/* : Bool */;
697 val
* var22
/* : null */;
698 short int var23
/* : Bool */;
699 short int var24
/* : Bool */;
702 val
* var27
/* : null */;
705 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
707 var1
= 0; /* <var_old_child:ANode> cannot be null */
709 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
713 if (var_new_child
== NULL
) {
714 var3
= 0; /* is null */
716 var3
= 1; /* arg is null and recv is not */
719 ((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)>*/;
720 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
721 cltype
= type_parser_nodes__ADoc
.color
;
722 idtype
= type_parser_nodes__ADoc
.id
;
723 if(cltype
>= var_new_child
->type
->table_size
) {
726 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
729 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 146);
732 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_new_child
; /* _n_doc on <self:AModuledecl> */
735 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var5
; /* _n_doc on <self:AModuledecl> */
740 var6
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
742 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmodule", "src/parser/parser_prod.nit", 153);
745 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:TKwmodule>*/;
748 if (var_new_child
== NULL
) {
749 var9
= 0; /* is null */
751 var9
= 1; /* arg is null and recv is not */
754 ((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)>*/;
755 /* <var_new_child:nullable ANode(ANode)> isa TKwmodule */
756 cltype11
= type_parser_nodes__TKwmodule
.color
;
757 idtype12
= type_parser_nodes__TKwmodule
.id
;
758 if(cltype11
>= var_new_child
->type
->table_size
) {
761 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
764 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 156);
767 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_new_child
; /* _n_kwmodule on <self:AModuledecl> */
769 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 159);
775 var13
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
777 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_name", "src/parser/parser_prod.nit", 163);
780 var14
= ((short int (*)(val
*, val
*))(var13
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var13
, var_old_child
) /* == on <var13:AModuleName>*/;
783 if (var_new_child
== NULL
) {
784 var16
= 0; /* is null */
786 var16
= 1; /* arg is null and recv is not */
789 ((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)>*/;
790 /* <var_new_child:nullable ANode(ANode)> isa AModuleName */
791 cltype18
= type_parser_nodes__AModuleName
.color
;
792 idtype19
= type_parser_nodes__AModuleName
.id
;
793 if(cltype18
>= var_new_child
->type
->table_size
) {
796 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
799 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 166);
802 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_new_child
; /* _n_name on <self:AModuledecl> */
804 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 169);
810 var20
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
812 var21
= 0; /* <var_old_child:ANode> cannot be null */
814 var21
= ((short int (*)(val
*, val
*))(var20
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var20
, var_old_child
) /* == on <var20:nullable AAnnotations>*/;
818 if (var_new_child
== NULL
) {
819 var23
= 0; /* is null */
821 var23
= 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 AAnnotations */
826 cltype25
= type_parser_nodes__AAnnotations
.color
;
827 idtype26
= type_parser_nodes__AAnnotations
.id
;
828 if(cltype25
>= var_new_child
->type
->table_size
) {
831 var24
= var_new_child
->type
->type_table
[cltype25
] == idtype26
;
834 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 176);
837 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AModuledecl> */
840 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var27
; /* _n_annotations on <self:AModuledecl> */
847 /* method parser_prod#AModuledecl#replace_child for (self: Object, ANode, nullable ANode) */
848 void VIRTUAL_parser_prod__AModuledecl__replace_child(val
* self
, val
* p0
, val
* p1
) {
849 parser_prod__AModuledecl__replace_child(self
, p0
, p1
);
852 /* method parser_prod#AModuledecl#n_doc= for (self: AModuledecl, nullable ADoc) */
853 void parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
854 val
* var_node
/* var node: nullable ADoc */;
855 val
* var
/* : null */;
856 short int var1
/* : Bool */;
858 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
= var_node
; /* _n_doc on <self:AModuledecl> */
860 if (var_node
== NULL
) {
861 var1
= 0; /* is null */
863 var1
= 1; /* arg is null and recv is not */
866 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
871 /* method parser_prod#AModuledecl#n_doc= for (self: Object, nullable ADoc) */
872 void VIRTUAL_parser_prod__AModuledecl__n_doc_61d(val
* self
, val
* p0
) {
873 parser_prod__AModuledecl__n_doc_61d(self
, p0
);
876 /* method parser_prod#AModuledecl#n_kwmodule= for (self: AModuledecl, TKwmodule) */
877 void parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
878 val
* var_node
/* var node: TKwmodule */;
880 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
= var_node
; /* _n_kwmodule on <self:AModuledecl> */
881 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmodule>*/;
884 /* method parser_prod#AModuledecl#n_kwmodule= for (self: Object, TKwmodule) */
885 void VIRTUAL_parser_prod__AModuledecl__n_kwmodule_61d(val
* self
, val
* p0
) {
886 parser_prod__AModuledecl__n_kwmodule_61d(self
, p0
);
889 /* method parser_prod#AModuledecl#n_name= for (self: AModuledecl, AModuleName) */
890 void parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
891 val
* var_node
/* var node: AModuleName */;
893 self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
= var_node
; /* _n_name on <self:AModuledecl> */
894 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AModuleName>*/;
897 /* method parser_prod#AModuledecl#n_name= for (self: Object, AModuleName) */
898 void VIRTUAL_parser_prod__AModuledecl__n_name_61d(val
* self
, val
* p0
) {
899 parser_prod__AModuledecl__n_name_61d(self
, p0
);
902 /* method parser_prod#AModuledecl#n_annotations= for (self: AModuledecl, nullable AAnnotations) */
903 void parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
904 val
* var_node
/* var node: nullable AAnnotations */;
905 val
* var
/* : null */;
906 short int var1
/* : Bool */;
908 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AModuledecl> */
910 if (var_node
== NULL
) {
911 var1
= 0; /* is null */
913 var1
= 1; /* arg is null and recv is not */
916 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
921 /* method parser_prod#AModuledecl#n_annotations= for (self: Object, nullable AAnnotations) */
922 void VIRTUAL_parser_prod__AModuledecl__n_annotations_61d(val
* self
, val
* p0
) {
923 parser_prod__AModuledecl__n_annotations_61d(self
, p0
);
926 /* method parser_prod#AModuledecl#visit_all for (self: AModuledecl, Visitor) */
927 void parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
928 val
* var_v
/* var v: Visitor */;
929 val
* var
/* : nullable ADoc */;
930 val
* var1
/* : null */;
931 short int var2
/* : Bool */;
932 val
* var3
/* : nullable ADoc */;
933 val
* var4
/* : TKwmodule */;
934 val
* var5
/* : AModuleName */;
935 val
* var6
/* : nullable AAnnotations */;
936 val
* var7
/* : null */;
937 short int var8
/* : Bool */;
938 val
* var9
/* : nullable AAnnotations */;
940 var
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
943 var2
= 0; /* is null */
945 var2
= 1; /* arg is null and recv is not */
948 var3
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_doc
].val
; /* _n_doc on <self:AModuledecl> */
950 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 214);
953 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
956 var4
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_kwmodule
].val
; /* _n_kwmodule on <self:AModuledecl> */
958 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmodule", "src/parser/parser_prod.nit", 216);
961 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
962 var5
= self
->attrs
[COLOR_parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <self:AModuledecl> */
964 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_name", "src/parser/parser_prod.nit", 217);
967 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var5
) /* enter_visit on <var_v:Visitor>*/;
968 var6
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
971 var8
= 0; /* is null */
973 var8
= 1; /* arg is null and recv is not */
976 var9
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AModuledecl> */
978 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 219);
981 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
986 /* method parser_prod#AModuledecl#visit_all for (self: Object, Visitor) */
987 void VIRTUAL_parser_prod__AModuledecl__visit_all(val
* self
, val
* p0
) {
988 parser_prod__AModuledecl__visit_all(self
, p0
);
991 /* method parser_prod#AStdImport#empty_init for (self: AStdImport) */
992 void parser_prod__AStdImport__empty_init(val
* self
) {
995 /* method parser_prod#AStdImport#empty_init for (self: Object) */
996 void VIRTUAL_parser_prod__AStdImport__empty_init(val
* self
) {
997 parser_prod__AStdImport__empty_init(self
);
1000 /* method parser_prod#AStdImport#init_astdimport for (self: AStdImport, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1001 void parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1002 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1003 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1004 val
* var_n_name
/* var n_name: nullable AModuleName */;
1005 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
1006 val
* var
/* : null */;
1007 short int var1
/* : Bool */;
1008 var_n_visibility
= p0
;
1009 var_n_kwimport
= p1
;
1011 var_n_annotations
= p3
;
1012 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AStdImport__empty_init
]))(self
) /* empty_init on <self:AStdImport>*/;
1013 if (var_n_visibility
== NULL
) {
1014 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 234);
1017 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdImport> */
1018 if (var_n_visibility
== NULL
) {
1019 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 235);
1022 ((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>*/;
1024 if (var_n_kwimport
== NULL
) {
1025 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 236);
1028 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:AStdImport> */
1029 if (var_n_kwimport
== NULL
) {
1030 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 237);
1033 ((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>*/;
1035 if (var_n_name
== NULL
) {
1036 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 238);
1039 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_n_name
; /* _n_name on <self:AStdImport> */
1040 if (var_n_name
== NULL
) {
1041 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 239);
1044 ((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>*/;
1046 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdImport> */
1048 if (var_n_annotations
== NULL
) {
1049 var1
= 0; /* is null */
1051 var1
= 1; /* arg is null and recv is not */
1054 ((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)>*/;
1059 /* method parser_prod#AStdImport#init_astdimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable AModuleName, nullable AAnnotations) */
1060 void VIRTUAL_parser_prod__AStdImport__init_astdimport(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1061 parser_prod__AStdImport__init_astdimport(self
, p0
, p1
, p2
, p3
);
1064 /* method parser_prod#AStdImport#replace_child for (self: AStdImport, ANode, nullable ANode) */
1065 void parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1066 val
* var_old_child
/* var old_child: ANode */;
1067 val
* var_new_child
/* var new_child: nullable ANode */;
1068 val
* var
/* : AVisibility */;
1069 short int var1
/* : Bool */;
1070 val
* var2
/* : null */;
1071 short int var3
/* : Bool */;
1072 short int var4
/* : Bool */;
1075 val
* var5
/* : TKwimport */;
1076 short int var6
/* : Bool */;
1077 val
* var7
/* : null */;
1078 short int var8
/* : Bool */;
1079 short int var9
/* : Bool */;
1082 val
* var12
/* : AModuleName */;
1083 short int var13
/* : Bool */;
1084 val
* var14
/* : null */;
1085 short int var15
/* : Bool */;
1086 short int var16
/* : Bool */;
1089 val
* var19
/* : nullable AAnnotations */;
1090 short int var20
/* : Bool */;
1091 val
* var21
/* : null */;
1092 short int var22
/* : Bool */;
1093 short int var23
/* : Bool */;
1096 val
* var26
/* : null */;
1099 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1101 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 248);
1104 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AVisibility>*/;
1107 if (var_new_child
== NULL
) {
1108 var3
= 0; /* is null */
1110 var3
= 1; /* arg is null and recv is not */
1113 ((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)>*/;
1114 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
1115 cltype
= type_parser_nodes__AVisibility
.color
;
1116 idtype
= type_parser_nodes__AVisibility
.id
;
1117 if(cltype
>= var_new_child
->type
->table_size
) {
1120 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1123 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 251);
1126 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AStdImport> */
1128 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 254);
1134 var5
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1136 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 258);
1139 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwimport>*/;
1142 if (var_new_child
== NULL
) {
1143 var8
= 0; /* is null */
1145 var8
= 1; /* arg is null and recv is not */
1148 ((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)>*/;
1149 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
1150 cltype10
= type_parser_nodes__TKwimport
.color
;
1151 idtype11
= type_parser_nodes__TKwimport
.id
;
1152 if(cltype10
>= var_new_child
->type
->table_size
) {
1155 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1158 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 261);
1161 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_new_child
; /* _n_kwimport on <self:AStdImport> */
1163 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 264);
1169 var12
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1170 if (var12
== NULL
) {
1171 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_name", "src/parser/parser_prod.nit", 268);
1174 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:AModuleName>*/;
1177 if (var_new_child
== NULL
) {
1178 var15
= 0; /* is null */
1180 var15
= 1; /* arg is null and recv is not */
1183 ((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)>*/;
1184 /* <var_new_child:nullable ANode(ANode)> isa AModuleName */
1185 cltype17
= type_parser_nodes__AModuleName
.color
;
1186 idtype18
= type_parser_nodes__AModuleName
.id
;
1187 if(cltype17
>= var_new_child
->type
->table_size
) {
1190 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1193 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 271);
1196 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_new_child
; /* _n_name on <self:AStdImport> */
1198 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 274);
1204 var19
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1205 if (var19
== NULL
) {
1206 var20
= 0; /* <var_old_child:ANode> cannot be null */
1208 var20
= ((short int (*)(val
*, val
*))(var19
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var19
, var_old_child
) /* == on <var19:nullable AAnnotations>*/;
1212 if (var_new_child
== NULL
) {
1213 var22
= 0; /* is null */
1215 var22
= 1; /* arg is null and recv is not */
1218 ((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)>*/;
1219 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
1220 cltype24
= type_parser_nodes__AAnnotations
.color
;
1221 idtype25
= type_parser_nodes__AAnnotations
.id
;
1222 if(cltype24
>= var_new_child
->type
->table_size
) {
1225 var23
= var_new_child
->type
->type_table
[cltype24
] == idtype25
;
1228 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 281);
1231 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AStdImport> */
1234 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var26
; /* _n_annotations on <self:AStdImport> */
1241 /* method parser_prod#AStdImport#replace_child for (self: Object, ANode, nullable ANode) */
1242 void VIRTUAL_parser_prod__AStdImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1243 parser_prod__AStdImport__replace_child(self
, p0
, p1
);
1246 /* method parser_prod#AStdImport#n_visibility= for (self: AStdImport, AVisibility) */
1247 void parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1248 val
* var_node
/* var node: AVisibility */;
1250 self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdImport> */
1251 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
1254 /* method parser_prod#AStdImport#n_visibility= for (self: Object, AVisibility) */
1255 void VIRTUAL_parser_prod__AStdImport__n_visibility_61d(val
* self
, val
* p0
) {
1256 parser_prod__AStdImport__n_visibility_61d(self
, p0
);
1259 /* method parser_prod#AStdImport#n_kwimport= for (self: AStdImport, TKwimport) */
1260 void parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1261 val
* var_node
/* var node: TKwimport */;
1263 self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:AStdImport> */
1264 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwimport>*/;
1267 /* method parser_prod#AStdImport#n_kwimport= for (self: Object, TKwimport) */
1268 void VIRTUAL_parser_prod__AStdImport__n_kwimport_61d(val
* self
, val
* p0
) {
1269 parser_prod__AStdImport__n_kwimport_61d(self
, p0
);
1272 /* method parser_prod#AStdImport#n_name= for (self: AStdImport, AModuleName) */
1273 void parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1274 val
* var_node
/* var node: AModuleName */;
1276 self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
= var_node
; /* _n_name on <self:AStdImport> */
1277 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AModuleName>*/;
1280 /* method parser_prod#AStdImport#n_name= for (self: Object, AModuleName) */
1281 void VIRTUAL_parser_prod__AStdImport__n_name_61d(val
* self
, val
* p0
) {
1282 parser_prod__AStdImport__n_name_61d(self
, p0
);
1285 /* method parser_prod#AStdImport#n_annotations= for (self: AStdImport, nullable AAnnotations) */
1286 void parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1287 val
* var_node
/* var node: nullable AAnnotations */;
1288 val
* var
/* : null */;
1289 short int var1
/* : Bool */;
1291 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdImport> */
1293 if (var_node
== NULL
) {
1294 var1
= 0; /* is null */
1296 var1
= 1; /* arg is null and recv is not */
1299 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
1304 /* method parser_prod#AStdImport#n_annotations= for (self: Object, nullable AAnnotations) */
1305 void VIRTUAL_parser_prod__AStdImport__n_annotations_61d(val
* self
, val
* p0
) {
1306 parser_prod__AStdImport__n_annotations_61d(self
, p0
);
1309 /* method parser_prod#AStdImport#visit_all for (self: AStdImport, Visitor) */
1310 void parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1311 val
* var_v
/* var v: Visitor */;
1312 val
* var
/* : AVisibility */;
1313 val
* var1
/* : TKwimport */;
1314 val
* var2
/* : AModuleName */;
1315 val
* var3
/* : nullable AAnnotations */;
1316 val
* var4
/* : null */;
1317 short int var5
/* : Bool */;
1318 val
* var6
/* : nullable AAnnotations */;
1320 var
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_visibility
].val
; /* _n_visibility on <self:AStdImport> */
1322 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 316);
1325 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1326 var1
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_kwimport
].val
; /* _n_kwimport on <self:AStdImport> */
1328 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 317);
1331 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1332 var2
= self
->attrs
[COLOR_parser_nodes__AStdImport___n_name
].val
; /* _n_name on <self:AStdImport> */
1334 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_name", "src/parser/parser_prod.nit", 318);
1337 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1338 var3
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1341 var5
= 0; /* is null */
1343 var5
= 1; /* arg is null and recv is not */
1346 var6
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdImport> */
1348 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 320);
1351 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var6
) /* enter_visit on <var_v:Visitor>*/;
1356 /* method parser_prod#AStdImport#visit_all for (self: Object, Visitor) */
1357 void VIRTUAL_parser_prod__AStdImport__visit_all(val
* self
, val
* p0
) {
1358 parser_prod__AStdImport__visit_all(self
, p0
);
1361 /* method parser_prod#ANoImport#empty_init for (self: ANoImport) */
1362 void parser_prod__ANoImport__empty_init(val
* self
) {
1365 /* method parser_prod#ANoImport#empty_init for (self: Object) */
1366 void VIRTUAL_parser_prod__ANoImport__empty_init(val
* self
) {
1367 parser_prod__ANoImport__empty_init(self
);
1370 /* method parser_prod#ANoImport#init_anoimport for (self: ANoImport, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1371 void parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1372 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
1373 val
* var_n_kwimport
/* var n_kwimport: nullable TKwimport */;
1374 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
1375 var_n_visibility
= p0
;
1376 var_n_kwimport
= p1
;
1378 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ANoImport__empty_init
]))(self
) /* empty_init on <self:ANoImport>*/;
1379 if (var_n_visibility
== NULL
) {
1380 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 334);
1383 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ANoImport> */
1384 if (var_n_visibility
== NULL
) {
1385 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 335);
1388 ((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>*/;
1390 if (var_n_kwimport
== NULL
) {
1391 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 336);
1394 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_n_kwimport
; /* _n_kwimport on <self:ANoImport> */
1395 if (var_n_kwimport
== NULL
) {
1396 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 337);
1399 ((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>*/;
1401 if (var_n_kwend
== NULL
) {
1402 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 338);
1405 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:ANoImport> */
1406 if (var_n_kwend
== NULL
) {
1407 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 339);
1410 ((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>*/;
1414 /* method parser_prod#ANoImport#init_anoimport for (self: Object, nullable AVisibility, nullable TKwimport, nullable TKwend) */
1415 void VIRTUAL_parser_prod__ANoImport__init_anoimport(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1416 parser_prod__ANoImport__init_anoimport(self
, p0
, p1
, p2
);
1419 /* method parser_prod#ANoImport#replace_child for (self: ANoImport, ANode, nullable ANode) */
1420 void parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1421 val
* var_old_child
/* var old_child: ANode */;
1422 val
* var_new_child
/* var new_child: nullable ANode */;
1423 val
* var
/* : AVisibility */;
1424 short int var1
/* : Bool */;
1425 val
* var2
/* : null */;
1426 short int var3
/* : Bool */;
1427 short int var4
/* : Bool */;
1430 val
* var5
/* : TKwimport */;
1431 short int var6
/* : Bool */;
1432 val
* var7
/* : null */;
1433 short int var8
/* : Bool */;
1434 short int var9
/* : Bool */;
1437 val
* var12
/* : TKwend */;
1438 short int var13
/* : Bool */;
1439 val
* var14
/* : null */;
1440 short int var15
/* : Bool */;
1441 short int var16
/* : Bool */;
1446 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1448 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 344);
1451 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:AVisibility>*/;
1454 if (var_new_child
== NULL
) {
1455 var3
= 0; /* is null */
1457 var3
= 1; /* arg is null and recv is not */
1460 ((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)>*/;
1461 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
1462 cltype
= type_parser_nodes__AVisibility
.color
;
1463 idtype
= type_parser_nodes__AVisibility
.id
;
1464 if(cltype
>= var_new_child
->type
->table_size
) {
1467 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1470 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 347);
1473 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:ANoImport> */
1475 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 350);
1481 var5
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1483 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 354);
1486 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwimport>*/;
1489 if (var_new_child
== NULL
) {
1490 var8
= 0; /* is null */
1492 var8
= 1; /* arg is null and recv is not */
1495 ((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)>*/;
1496 /* <var_new_child:nullable ANode(ANode)> isa TKwimport */
1497 cltype10
= type_parser_nodes__TKwimport
.color
;
1498 idtype11
= type_parser_nodes__TKwimport
.id
;
1499 if(cltype10
>= var_new_child
->type
->table_size
) {
1502 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
1505 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 357);
1508 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_new_child
; /* _n_kwimport on <self:ANoImport> */
1510 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 360);
1516 var12
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1517 if (var12
== NULL
) {
1518 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwend", "src/parser/parser_prod.nit", 364);
1521 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:TKwend>*/;
1524 if (var_new_child
== NULL
) {
1525 var15
= 0; /* is null */
1527 var15
= 1; /* arg is null and recv is not */
1530 ((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)>*/;
1531 /* <var_new_child:nullable ANode(ANode)> isa TKwend */
1532 cltype17
= type_parser_nodes__TKwend
.color
;
1533 idtype18
= type_parser_nodes__TKwend
.id
;
1534 if(cltype17
>= var_new_child
->type
->table_size
) {
1537 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
1540 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 367);
1543 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_new_child
; /* _n_kwend on <self:ANoImport> */
1545 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 370);
1553 /* method parser_prod#ANoImport#replace_child for (self: Object, ANode, nullable ANode) */
1554 void VIRTUAL_parser_prod__ANoImport__replace_child(val
* self
, val
* p0
, val
* p1
) {
1555 parser_prod__ANoImport__replace_child(self
, p0
, p1
);
1558 /* method parser_prod#ANoImport#n_visibility= for (self: ANoImport, AVisibility) */
1559 void parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1560 val
* var_node
/* var node: AVisibility */;
1562 self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
= var_node
; /* _n_visibility on <self:ANoImport> */
1563 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
1566 /* method parser_prod#ANoImport#n_visibility= for (self: Object, AVisibility) */
1567 void VIRTUAL_parser_prod__ANoImport__n_visibility_61d(val
* self
, val
* p0
) {
1568 parser_prod__ANoImport__n_visibility_61d(self
, p0
);
1571 /* method parser_prod#ANoImport#n_kwimport= for (self: ANoImport, TKwimport) */
1572 void parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1573 val
* var_node
/* var node: TKwimport */;
1575 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
= var_node
; /* _n_kwimport on <self:ANoImport> */
1576 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwimport>*/;
1579 /* method parser_prod#ANoImport#n_kwimport= for (self: Object, TKwimport) */
1580 void VIRTUAL_parser_prod__ANoImport__n_kwimport_61d(val
* self
, val
* p0
) {
1581 parser_prod__ANoImport__n_kwimport_61d(self
, p0
);
1584 /* method parser_prod#ANoImport#n_kwend= for (self: ANoImport, TKwend) */
1585 void parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1586 val
* var_node
/* var node: TKwend */;
1588 self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
= var_node
; /* _n_kwend on <self:ANoImport> */
1589 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwend>*/;
1592 /* method parser_prod#ANoImport#n_kwend= for (self: Object, TKwend) */
1593 void VIRTUAL_parser_prod__ANoImport__n_kwend_61d(val
* self
, val
* p0
) {
1594 parser_prod__ANoImport__n_kwend_61d(self
, p0
);
1597 /* method parser_prod#ANoImport#visit_all for (self: ANoImport, Visitor) */
1598 void parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
1599 val
* var_v
/* var v: Visitor */;
1600 val
* var
/* : AVisibility */;
1601 val
* var1
/* : TKwimport */;
1602 val
* var2
/* : TKwend */;
1604 var
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_visibility
].val
; /* _n_visibility on <self:ANoImport> */
1606 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 395);
1609 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1610 var1
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwimport
].val
; /* _n_kwimport on <self:ANoImport> */
1612 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwimport", "src/parser/parser_prod.nit", 396);
1615 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
1616 var2
= self
->attrs
[COLOR_parser_nodes__ANoImport___n_kwend
].val
; /* _n_kwend on <self:ANoImport> */
1618 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwend", "src/parser/parser_prod.nit", 397);
1621 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var2
) /* enter_visit on <var_v:Visitor>*/;
1624 /* method parser_prod#ANoImport#visit_all for (self: Object, Visitor) */
1625 void VIRTUAL_parser_prod__ANoImport__visit_all(val
* self
, val
* p0
) {
1626 parser_prod__ANoImport__visit_all(self
, p0
);
1629 /* method parser_prod#APublicVisibility#empty_init for (self: APublicVisibility) */
1630 void parser_prod__APublicVisibility__empty_init(val
* self
) {
1633 /* method parser_prod#APublicVisibility#empty_init for (self: Object) */
1634 void VIRTUAL_parser_prod__APublicVisibility__empty_init(val
* self
) {
1635 parser_prod__APublicVisibility__empty_init(self
);
1638 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: APublicVisibility) */
1639 void parser_prod__APublicVisibility__init_apublicvisibility(val
* self
) {
1640 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__APublicVisibility__empty_init
]))(self
) /* empty_init on <self:APublicVisibility>*/;
1643 /* method parser_prod#APublicVisibility#init_apublicvisibility for (self: Object) */
1644 void VIRTUAL_parser_prod__APublicVisibility__init_apublicvisibility(val
* self
) {
1645 parser_prod__APublicVisibility__init_apublicvisibility(self
);
1648 /* method parser_prod#APublicVisibility#replace_child for (self: APublicVisibility, ANode, nullable ANode) */
1649 void parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1650 val
* var_old_child
/* var old_child: ANode */;
1651 val
* var_new_child
/* var new_child: nullable ANode */;
1656 /* method parser_prod#APublicVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1657 void VIRTUAL_parser_prod__APublicVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1658 parser_prod__APublicVisibility__replace_child(self
, p0
, p1
);
1661 /* method parser_prod#APublicVisibility#visit_all for (self: APublicVisibility, Visitor) */
1662 void parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
1663 val
* var_v
/* var v: Visitor */;
1667 /* method parser_prod#APublicVisibility#visit_all for (self: Object, Visitor) */
1668 void VIRTUAL_parser_prod__APublicVisibility__visit_all(val
* self
, val
* p0
) {
1669 parser_prod__APublicVisibility__visit_all(self
, p0
);
1672 /* method parser_prod#APrivateVisibility#empty_init for (self: APrivateVisibility) */
1673 void parser_prod__APrivateVisibility__empty_init(val
* self
) {
1676 /* method parser_prod#APrivateVisibility#empty_init for (self: Object) */
1677 void VIRTUAL_parser_prod__APrivateVisibility__empty_init(val
* self
) {
1678 parser_prod__APrivateVisibility__empty_init(self
);
1681 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: APrivateVisibility, nullable TKwprivate) */
1682 void parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
1683 val
* var_n_kwprivate
/* var n_kwprivate: nullable TKwprivate */;
1684 var_n_kwprivate
= p0
;
1685 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__APrivateVisibility__empty_init
]))(self
) /* empty_init on <self:APrivateVisibility>*/;
1686 if (var_n_kwprivate
== NULL
) {
1687 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 426);
1690 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_n_kwprivate
; /* _n_kwprivate on <self:APrivateVisibility> */
1691 if (var_n_kwprivate
== NULL
) {
1692 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 427);
1695 ((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>*/;
1699 /* method parser_prod#APrivateVisibility#init_aprivatevisibility for (self: Object, nullable TKwprivate) */
1700 void VIRTUAL_parser_prod__APrivateVisibility__init_aprivatevisibility(val
* self
, val
* p0
) {
1701 parser_prod__APrivateVisibility__init_aprivatevisibility(self
, p0
);
1704 /* method parser_prod#APrivateVisibility#replace_child for (self: APrivateVisibility, ANode, nullable ANode) */
1705 void parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1706 val
* var_old_child
/* var old_child: ANode */;
1707 val
* var_new_child
/* var new_child: nullable ANode */;
1708 val
* var
/* : TKwprivate */;
1709 short int var1
/* : Bool */;
1710 val
* var2
/* : null */;
1711 short int var3
/* : Bool */;
1712 short int var4
/* : Bool */;
1717 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
1719 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwprivate", "src/parser/parser_prod.nit", 432);
1722 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwprivate>*/;
1725 if (var_new_child
== NULL
) {
1726 var3
= 0; /* is null */
1728 var3
= 1; /* arg is null and recv is not */
1731 ((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)>*/;
1732 /* <var_new_child:nullable ANode(ANode)> isa TKwprivate */
1733 cltype
= type_parser_nodes__TKwprivate
.color
;
1734 idtype
= type_parser_nodes__TKwprivate
.id
;
1735 if(cltype
>= var_new_child
->type
->table_size
) {
1738 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1741 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 435);
1744 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_new_child
; /* _n_kwprivate on <self:APrivateVisibility> */
1746 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 438);
1754 /* method parser_prod#APrivateVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1755 void VIRTUAL_parser_prod__APrivateVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1756 parser_prod__APrivateVisibility__replace_child(self
, p0
, p1
);
1759 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: APrivateVisibility, TKwprivate) */
1760 void parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
1761 val
* var_node
/* var node: TKwprivate */;
1763 self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
= var_node
; /* _n_kwprivate on <self:APrivateVisibility> */
1764 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwprivate>*/;
1767 /* method parser_prod#APrivateVisibility#n_kwprivate= for (self: Object, TKwprivate) */
1768 void VIRTUAL_parser_prod__APrivateVisibility__n_kwprivate_61d(val
* self
, val
* p0
) {
1769 parser_prod__APrivateVisibility__n_kwprivate_61d(self
, p0
);
1772 /* method parser_prod#APrivateVisibility#visit_all for (self: APrivateVisibility, Visitor) */
1773 void parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
1774 val
* var_v
/* var v: Visitor */;
1775 val
* var
/* : TKwprivate */;
1777 var
= self
->attrs
[COLOR_parser_nodes__APrivateVisibility___n_kwprivate
].val
; /* _n_kwprivate on <self:APrivateVisibility> */
1779 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwprivate", "src/parser/parser_prod.nit", 453);
1782 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1785 /* method parser_prod#APrivateVisibility#visit_all for (self: Object, Visitor) */
1786 void VIRTUAL_parser_prod__APrivateVisibility__visit_all(val
* self
, val
* p0
) {
1787 parser_prod__APrivateVisibility__visit_all(self
, p0
);
1790 /* method parser_prod#AProtectedVisibility#empty_init for (self: AProtectedVisibility) */
1791 void parser_prod__AProtectedVisibility__empty_init(val
* self
) {
1794 /* method parser_prod#AProtectedVisibility#empty_init for (self: Object) */
1795 void VIRTUAL_parser_prod__AProtectedVisibility__empty_init(val
* self
) {
1796 parser_prod__AProtectedVisibility__empty_init(self
);
1799 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: AProtectedVisibility, nullable TKwprotected) */
1800 void parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
1801 val
* var_n_kwprotected
/* var n_kwprotected: nullable TKwprotected */;
1802 var_n_kwprotected
= p0
;
1803 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AProtectedVisibility__empty_init
]))(self
) /* empty_init on <self:AProtectedVisibility>*/;
1804 if (var_n_kwprotected
== NULL
) {
1805 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 464);
1808 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_n_kwprotected
; /* _n_kwprotected on <self:AProtectedVisibility> */
1809 if (var_n_kwprotected
== NULL
) {
1810 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 465);
1813 ((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>*/;
1817 /* method parser_prod#AProtectedVisibility#init_aprotectedvisibility for (self: Object, nullable TKwprotected) */
1818 void VIRTUAL_parser_prod__AProtectedVisibility__init_aprotectedvisibility(val
* self
, val
* p0
) {
1819 parser_prod__AProtectedVisibility__init_aprotectedvisibility(self
, p0
);
1822 /* method parser_prod#AProtectedVisibility#replace_child for (self: AProtectedVisibility, ANode, nullable ANode) */
1823 void parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1824 val
* var_old_child
/* var old_child: ANode */;
1825 val
* var_new_child
/* var new_child: nullable ANode */;
1826 val
* var
/* : TKwprotected */;
1827 short int var1
/* : Bool */;
1828 val
* var2
/* : null */;
1829 short int var3
/* : Bool */;
1830 short int var4
/* : Bool */;
1835 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
1837 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwprotected", "src/parser/parser_prod.nit", 470);
1840 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwprotected>*/;
1843 if (var_new_child
== NULL
) {
1844 var3
= 0; /* is null */
1846 var3
= 1; /* arg is null and recv is not */
1849 ((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)>*/;
1850 /* <var_new_child:nullable ANode(ANode)> isa TKwprotected */
1851 cltype
= type_parser_nodes__TKwprotected
.color
;
1852 idtype
= type_parser_nodes__TKwprotected
.id
;
1853 if(cltype
>= var_new_child
->type
->table_size
) {
1856 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1859 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 473);
1862 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_new_child
; /* _n_kwprotected on <self:AProtectedVisibility> */
1864 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 476);
1872 /* method parser_prod#AProtectedVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1873 void VIRTUAL_parser_prod__AProtectedVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1874 parser_prod__AProtectedVisibility__replace_child(self
, p0
, p1
);
1877 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: AProtectedVisibility, TKwprotected) */
1878 void parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
1879 val
* var_node
/* var node: TKwprotected */;
1881 self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
= var_node
; /* _n_kwprotected on <self:AProtectedVisibility> */
1882 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwprotected>*/;
1885 /* method parser_prod#AProtectedVisibility#n_kwprotected= for (self: Object, TKwprotected) */
1886 void VIRTUAL_parser_prod__AProtectedVisibility__n_kwprotected_61d(val
* self
, val
* p0
) {
1887 parser_prod__AProtectedVisibility__n_kwprotected_61d(self
, p0
);
1890 /* method parser_prod#AProtectedVisibility#visit_all for (self: AProtectedVisibility, Visitor) */
1891 void parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
1892 val
* var_v
/* var v: Visitor */;
1893 val
* var
/* : TKwprotected */;
1895 var
= self
->attrs
[COLOR_parser_nodes__AProtectedVisibility___n_kwprotected
].val
; /* _n_kwprotected on <self:AProtectedVisibility> */
1897 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwprotected", "src/parser/parser_prod.nit", 491);
1900 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
1903 /* method parser_prod#AProtectedVisibility#visit_all for (self: Object, Visitor) */
1904 void VIRTUAL_parser_prod__AProtectedVisibility__visit_all(val
* self
, val
* p0
) {
1905 parser_prod__AProtectedVisibility__visit_all(self
, p0
);
1908 /* method parser_prod#AIntrudeVisibility#empty_init for (self: AIntrudeVisibility) */
1909 void parser_prod__AIntrudeVisibility__empty_init(val
* self
) {
1912 /* method parser_prod#AIntrudeVisibility#empty_init for (self: Object) */
1913 void VIRTUAL_parser_prod__AIntrudeVisibility__empty_init(val
* self
) {
1914 parser_prod__AIntrudeVisibility__empty_init(self
);
1917 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: AIntrudeVisibility, nullable TKwintrude) */
1918 void parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
1919 val
* var_n_kwintrude
/* var n_kwintrude: nullable TKwintrude */;
1920 var_n_kwintrude
= p0
;
1921 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AIntrudeVisibility__empty_init
]))(self
) /* empty_init on <self:AIntrudeVisibility>*/;
1922 if (var_n_kwintrude
== NULL
) {
1923 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 502);
1926 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_n_kwintrude
; /* _n_kwintrude on <self:AIntrudeVisibility> */
1927 if (var_n_kwintrude
== NULL
) {
1928 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 503);
1931 ((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>*/;
1935 /* method parser_prod#AIntrudeVisibility#init_aintrudevisibility for (self: Object, nullable TKwintrude) */
1936 void VIRTUAL_parser_prod__AIntrudeVisibility__init_aintrudevisibility(val
* self
, val
* p0
) {
1937 parser_prod__AIntrudeVisibility__init_aintrudevisibility(self
, p0
);
1940 /* method parser_prod#AIntrudeVisibility#replace_child for (self: AIntrudeVisibility, ANode, nullable ANode) */
1941 void parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1942 val
* var_old_child
/* var old_child: ANode */;
1943 val
* var_new_child
/* var new_child: nullable ANode */;
1944 val
* var
/* : TKwintrude */;
1945 short int var1
/* : Bool */;
1946 val
* var2
/* : null */;
1947 short int var3
/* : Bool */;
1948 short int var4
/* : Bool */;
1953 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
1955 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwintrude", "src/parser/parser_prod.nit", 508);
1958 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwintrude>*/;
1961 if (var_new_child
== NULL
) {
1962 var3
= 0; /* is null */
1964 var3
= 1; /* arg is null and recv is not */
1967 ((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)>*/;
1968 /* <var_new_child:nullable ANode(ANode)> isa TKwintrude */
1969 cltype
= type_parser_nodes__TKwintrude
.color
;
1970 idtype
= type_parser_nodes__TKwintrude
.id
;
1971 if(cltype
>= var_new_child
->type
->table_size
) {
1974 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1977 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 511);
1980 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_new_child
; /* _n_kwintrude on <self:AIntrudeVisibility> */
1982 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 514);
1990 /* method parser_prod#AIntrudeVisibility#replace_child for (self: Object, ANode, nullable ANode) */
1991 void VIRTUAL_parser_prod__AIntrudeVisibility__replace_child(val
* self
, val
* p0
, val
* p1
) {
1992 parser_prod__AIntrudeVisibility__replace_child(self
, p0
, p1
);
1995 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: AIntrudeVisibility, TKwintrude) */
1996 void parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
1997 val
* var_node
/* var node: TKwintrude */;
1999 self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
= var_node
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2000 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwintrude>*/;
2003 /* method parser_prod#AIntrudeVisibility#n_kwintrude= for (self: Object, TKwintrude) */
2004 void VIRTUAL_parser_prod__AIntrudeVisibility__n_kwintrude_61d(val
* self
, val
* p0
) {
2005 parser_prod__AIntrudeVisibility__n_kwintrude_61d(self
, p0
);
2008 /* method parser_prod#AIntrudeVisibility#visit_all for (self: AIntrudeVisibility, Visitor) */
2009 void parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2010 val
* var_v
/* var v: Visitor */;
2011 val
* var
/* : TKwintrude */;
2013 var
= self
->attrs
[COLOR_parser_nodes__AIntrudeVisibility___n_kwintrude
].val
; /* _n_kwintrude on <self:AIntrudeVisibility> */
2015 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwintrude", "src/parser/parser_prod.nit", 529);
2018 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
2021 /* method parser_prod#AIntrudeVisibility#visit_all for (self: Object, Visitor) */
2022 void VIRTUAL_parser_prod__AIntrudeVisibility__visit_all(val
* self
, val
* p0
) {
2023 parser_prod__AIntrudeVisibility__visit_all(self
, p0
);
2026 /* method parser_prod#AStdClassdef#empty_init for (self: AStdClassdef) */
2027 void parser_prod__AStdClassdef__empty_init(val
* self
) {
2030 /* method parser_prod#AStdClassdef#empty_init for (self: Object) */
2031 void VIRTUAL_parser_prod__AStdClassdef__empty_init(val
* self
) {
2032 parser_prod__AStdClassdef__empty_init(self
);
2035 /* 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) */
2036 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
) {
2037 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2038 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2039 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2040 val
* var_n_classkind
/* var n_classkind: nullable AClasskind */;
2041 val
* var_n_id
/* var n_id: nullable TClassid */;
2042 val
* var_n_formaldefs
/* var n_formaldefs: Collection[Object] */;
2043 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2044 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
2045 val
* var_n_superclasses
/* var n_superclasses: Collection[Object] */;
2046 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
2047 val
* var_n_kwend
/* var n_kwend: nullable TKwend */;
2048 val
* var
/* : null */;
2049 short int var1
/* : Bool */;
2050 val
* var2
/* : null */;
2051 short int var3
/* : Bool */;
2052 val
* var4
/* : null */;
2053 short int var5
/* : Bool */;
2054 val
* var6
/* : Iterator[nullable Object] */;
2055 short int var7
/* : Bool */;
2056 val
* var8
/* : nullable Object */;
2057 val
* var_n
/* var n: Object */;
2058 short int var9
/* : Bool */;
2061 val
* var10
/* : ANodes[AFormaldef] */;
2062 val
* var11
/* : null */;
2063 short int var12
/* : Bool */;
2064 val
* var13
/* : null */;
2065 short int var14
/* : Bool */;
2066 val
* var15
/* : Iterator[nullable Object] */;
2067 short int var16
/* : Bool */;
2068 val
* var17
/* : nullable Object */;
2069 val
* var_n18
/* var n: Object */;
2070 short int var19
/* : Bool */;
2073 val
* var22
/* : ANodes[ASuperclass] */;
2074 val
* var24
/* : Iterator[nullable Object] */;
2075 short int var25
/* : Bool */;
2076 val
* var26
/* : nullable Object */;
2077 val
* var_n27
/* var n: Object */;
2078 short int var28
/* : Bool */;
2081 val
* var31
/* : ANodes[APropdef] */;
2084 var_n_visibility
= p2
;
2085 var_n_classkind
= p3
;
2087 var_n_formaldefs
= p5
;
2088 var_n_annotations
= p6
;
2089 var_n_extern_code_block
= p7
;
2090 var_n_superclasses
= p8
;
2091 var_n_propdefs
= p9
;
2093 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AStdClassdef__empty_init
]))(self
) /* empty_init on <self:AStdClassdef>*/;
2094 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AStdClassdef> */
2096 if (var_n_doc
== NULL
) {
2097 var1
= 0; /* is null */
2099 var1
= 1; /* arg is null and recv is not */
2102 ((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)>*/;
2105 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AStdClassdef> */
2107 if (var_n_kwredef
== NULL
) {
2108 var3
= 0; /* is null */
2110 var3
= 1; /* arg is null and recv is not */
2113 ((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)>*/;
2116 if (var_n_visibility
== NULL
) {
2117 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 558);
2120 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AStdClassdef> */
2121 if (var_n_visibility
== NULL
) {
2122 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 559);
2125 ((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>*/;
2127 if (var_n_classkind
== NULL
) {
2128 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 560);
2131 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_n_classkind
; /* _n_classkind on <self:AStdClassdef> */
2132 if (var_n_classkind
== NULL
) {
2133 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 561);
2136 ((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>*/;
2138 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_n_id
; /* _n_id on <self:AStdClassdef> */
2140 if (var_n_id
== NULL
) {
2141 var5
= 0; /* is null */
2143 var5
= 1; /* arg is null and recv is not */
2146 ((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)>*/;
2149 var6
= ((val
* (*)(val
*))(var_n_formaldefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_formaldefs
) /* iterator on <var_n_formaldefs:Collection[Object]>*/;
2151 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
2153 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
2155 /* <var_n:Object> isa AFormaldef */
2156 cltype
= type_parser_nodes__AFormaldef
.color
;
2157 idtype
= type_parser_nodes__AFormaldef
.id
;
2158 if(cltype
>= var_n
->type
->table_size
) {
2161 var9
= var_n
->type
->type_table
[cltype
] == idtype
;
2164 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 567);
2167 var10
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2168 if (var10
== NULL
) {
2169 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 568);
2172 ((void (*)(val
*, val
*))(var10
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var10
, var_n
) /* add on <var10:ANodes[AFormaldef]>*/;
2173 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(AFormaldef)>*/;
2174 CONTINUE_label
: (void)0;
2175 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
2177 BREAK_label
: (void)0;
2178 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AStdClassdef> */
2180 if (var_n_annotations
== NULL
) {
2181 var12
= 0; /* is null */
2183 var12
= 1; /* arg is null and recv is not */
2186 ((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)>*/;
2189 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AStdClassdef> */
2191 if (var_n_extern_code_block
== NULL
) {
2192 var14
= 0; /* is null */
2194 var14
= 1; /* arg is null and recv is not */
2197 ((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)>*/;
2200 var15
= ((val
* (*)(val
*))(var_n_superclasses
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_superclasses
) /* iterator on <var_n_superclasses:Collection[Object]>*/;
2202 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
2204 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
2206 /* <var_n18:Object> isa ASuperclass */
2207 cltype20
= type_parser_nodes__ASuperclass
.color
;
2208 idtype21
= type_parser_nodes__ASuperclass
.id
;
2209 if(cltype20
>= var_n18
->type
->table_size
) {
2212 var19
= var_n18
->type
->type_table
[cltype20
] == idtype21
;
2215 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 580);
2218 var22
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2219 if (var22
== NULL
) {
2220 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 581);
2223 ((void (*)(val
*, val
*))(var22
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var22
, var_n18
) /* add on <var22:ANodes[ASuperclass]>*/;
2224 ((void (*)(val
*, val
*))(var_n18
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n18
, self
) /* parent= on <var_n18:Object(ASuperclass)>*/;
2225 CONTINUE_label23
: (void)0;
2226 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
2228 BREAK_label23
: (void)0;
2229 var24
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
2231 var25
= ((short int (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var24
) /* is_ok on <var24:Iterator[nullable Object]>*/;
2233 var26
= ((val
* (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var24
) /* item on <var24:Iterator[nullable Object]>*/;
2235 /* <var_n27:Object> isa APropdef */
2236 cltype29
= type_parser_nodes__APropdef
.color
;
2237 idtype30
= type_parser_nodes__APropdef
.id
;
2238 if(cltype29
>= var_n27
->type
->table_size
) {
2241 var28
= var_n27
->type
->type_table
[cltype29
] == idtype30
;
2244 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 585);
2247 var31
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2248 if (var31
== NULL
) {
2249 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 586);
2252 ((void (*)(val
*, val
*))(var31
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var31
, var_n27
) /* add on <var31:ANodes[APropdef]>*/;
2253 ((void (*)(val
*, val
*))(var_n27
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n27
, self
) /* parent= on <var_n27:Object(APropdef)>*/;
2254 CONTINUE_label32
: (void)0;
2255 ((void (*)(val
*))(var24
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var24
) /* next on <var24:Iterator[nullable Object]>*/;
2257 BREAK_label32
: (void)0;
2258 if (var_n_kwend
== NULL
) {
2259 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 589);
2262 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_n_kwend
; /* _n_kwend on <self:AStdClassdef> */
2263 if (var_n_kwend
== NULL
) {
2264 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 590);
2267 ((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>*/;
2271 /* 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) */
2272 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
) {
2273 parser_prod__AStdClassdef__init_astdclassdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
);
2276 /* method parser_prod#AStdClassdef#replace_child for (self: AStdClassdef, ANode, nullable ANode) */
2277 void parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
2278 val
* var_old_child
/* var old_child: ANode */;
2279 val
* var_new_child
/* var new_child: nullable ANode */;
2280 val
* var
/* : nullable ADoc */;
2281 short int var1
/* : Bool */;
2282 val
* var2
/* : null */;
2283 short int var3
/* : Bool */;
2284 short int var4
/* : Bool */;
2287 val
* var5
/* : null */;
2288 val
* var6
/* : nullable TKwredef */;
2289 short int var7
/* : Bool */;
2290 val
* var8
/* : null */;
2291 short int var9
/* : Bool */;
2292 short int var10
/* : Bool */;
2295 val
* var13
/* : null */;
2296 val
* var14
/* : AVisibility */;
2297 short int var15
/* : Bool */;
2298 val
* var16
/* : null */;
2299 short int var17
/* : Bool */;
2300 short int var18
/* : Bool */;
2303 val
* var21
/* : AClasskind */;
2304 short int var22
/* : Bool */;
2305 val
* var23
/* : null */;
2306 short int var24
/* : Bool */;
2307 short int var25
/* : Bool */;
2310 val
* var28
/* : nullable TClassid */;
2311 short int var29
/* : Bool */;
2312 val
* var30
/* : null */;
2313 short int var31
/* : Bool */;
2314 short int var32
/* : Bool */;
2317 val
* var35
/* : null */;
2318 val
* var36
/* : Range[Int] */;
2319 long var37
/* : Int */;
2320 val
* var38
/* : ANodes[AFormaldef] */;
2321 long var39
/* : Int */;
2322 val
* var40
/* : Discrete */;
2323 val
* var41
/* : Discrete */;
2324 val
* var42
/* : Iterator[nullable Object] */;
2325 short int var43
/* : Bool */;
2326 val
* var44
/* : nullable Object */;
2327 long var_i
/* var i: Int */;
2328 long var45
/* : Int */;
2329 val
* var46
/* : ANodes[AFormaldef] */;
2330 val
* var47
/* : nullable Object */;
2331 short int var48
/* : Bool */;
2332 val
* var49
/* : null */;
2333 short int var50
/* : Bool */;
2334 short int var51
/* : Bool */;
2337 val
* var54
/* : ANodes[AFormaldef] */;
2338 val
* var55
/* : ANodes[AFormaldef] */;
2339 val
* var56
/* : nullable AAnnotations */;
2340 short int var57
/* : Bool */;
2341 val
* var58
/* : null */;
2342 short int var59
/* : Bool */;
2343 short int var60
/* : Bool */;
2346 val
* var63
/* : null */;
2347 val
* var64
/* : nullable AExternCodeBlock */;
2348 short int var65
/* : Bool */;
2349 val
* var66
/* : null */;
2350 short int var67
/* : Bool */;
2351 short int var68
/* : Bool */;
2354 val
* var71
/* : null */;
2355 val
* var72
/* : Range[Int] */;
2356 long var73
/* : Int */;
2357 val
* var74
/* : ANodes[ASuperclass] */;
2358 long var75
/* : Int */;
2359 val
* var76
/* : Discrete */;
2360 val
* var77
/* : Discrete */;
2361 val
* var78
/* : Iterator[nullable Object] */;
2362 short int var79
/* : Bool */;
2363 val
* var80
/* : nullable Object */;
2364 long var_i81
/* var i: Int */;
2365 long var82
/* : Int */;
2366 val
* var83
/* : ANodes[ASuperclass] */;
2367 val
* var84
/* : nullable Object */;
2368 short int var85
/* : Bool */;
2369 val
* var86
/* : null */;
2370 short int var87
/* : Bool */;
2371 short int var88
/* : Bool */;
2374 val
* var91
/* : ANodes[ASuperclass] */;
2375 val
* var92
/* : ANodes[ASuperclass] */;
2376 val
* var94
/* : Range[Int] */;
2377 long var95
/* : Int */;
2378 val
* var96
/* : ANodes[APropdef] */;
2379 long var97
/* : Int */;
2380 val
* var98
/* : Discrete */;
2381 val
* var99
/* : Discrete */;
2382 val
* var100
/* : Iterator[nullable Object] */;
2383 short int var101
/* : Bool */;
2384 val
* var102
/* : nullable Object */;
2385 long var_i103
/* var i: Int */;
2386 long var104
/* : Int */;
2387 val
* var105
/* : ANodes[APropdef] */;
2388 val
* var106
/* : nullable Object */;
2389 short int var107
/* : Bool */;
2390 val
* var108
/* : null */;
2391 short int var109
/* : Bool */;
2392 short int var110
/* : Bool */;
2395 val
* var113
/* : ANodes[APropdef] */;
2396 val
* var114
/* : ANodes[APropdef] */;
2397 val
* var116
/* : TKwend */;
2398 short int var117
/* : Bool */;
2399 val
* var118
/* : null */;
2400 short int var119
/* : Bool */;
2401 short int var120
/* : Bool */;
2406 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
2408 var1
= 0; /* <var_old_child:ANode> cannot be null */
2410 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
2414 if (var_new_child
== NULL
) {
2415 var3
= 0; /* is null */
2417 var3
= 1; /* arg is null and recv is not */
2420 ((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)>*/;
2421 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
2422 cltype
= type_parser_nodes__ADoc
.color
;
2423 idtype
= type_parser_nodes__ADoc
.id
;
2424 if(cltype
>= var_new_child
->type
->table_size
) {
2427 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2430 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 598);
2433 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AStdClassdef> */
2436 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var5
; /* _n_doc on <self:AStdClassdef> */
2441 var6
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
2443 var7
= 0; /* <var_old_child:ANode> cannot be null */
2445 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
2449 if (var_new_child
== NULL
) {
2450 var9
= 0; /* is null */
2452 var9
= 1; /* arg is null and recv is not */
2455 ((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)>*/;
2456 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
2457 cltype11
= type_parser_nodes__TKwredef
.color
;
2458 idtype12
= type_parser_nodes__TKwredef
.id
;
2459 if(cltype11
>= var_new_child
->type
->table_size
) {
2462 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
2465 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 608);
2468 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AStdClassdef> */
2471 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AStdClassdef> */
2476 var14
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
2477 if (var14
== NULL
) {
2478 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 615);
2481 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:AVisibility>*/;
2484 if (var_new_child
== NULL
) {
2485 var17
= 0; /* is null */
2487 var17
= 1; /* arg is null and recv is not */
2490 ((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)>*/;
2491 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
2492 cltype19
= type_parser_nodes__AVisibility
.color
;
2493 idtype20
= type_parser_nodes__AVisibility
.id
;
2494 if(cltype19
>= var_new_child
->type
->table_size
) {
2497 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
2500 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 618);
2503 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AStdClassdef> */
2505 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 621);
2511 var21
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
2512 if (var21
== NULL
) {
2513 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classkind", "src/parser/parser_prod.nit", 625);
2516 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:AClasskind>*/;
2519 if (var_new_child
== NULL
) {
2520 var24
= 0; /* is null */
2522 var24
= 1; /* arg is null and recv is not */
2525 ((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)>*/;
2526 /* <var_new_child:nullable ANode(ANode)> isa AClasskind */
2527 cltype26
= type_parser_nodes__AClasskind
.color
;
2528 idtype27
= type_parser_nodes__AClasskind
.id
;
2529 if(cltype26
>= var_new_child
->type
->table_size
) {
2532 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
2535 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 628);
2538 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_new_child
; /* _n_classkind on <self:AStdClassdef> */
2540 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 631);
2546 var28
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
2547 if (var28
== NULL
) {
2548 var29
= 0; /* <var_old_child:ANode> cannot be null */
2550 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable TClassid>*/;
2554 if (var_new_child
== NULL
) {
2555 var31
= 0; /* is null */
2557 var31
= 1; /* arg is null and recv is not */
2560 ((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)>*/;
2561 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
2562 cltype33
= type_parser_nodes__TClassid
.color
;
2563 idtype34
= type_parser_nodes__TClassid
.id
;
2564 if(cltype33
>= var_new_child
->type
->table_size
) {
2567 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
2570 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 638);
2573 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_new_child
; /* _n_id on <self:AStdClassdef> */
2576 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var35
; /* _n_id on <self:AStdClassdef> */
2581 var36
= NEW_range__Range(&type_range__Rangekernel__Int
);
2583 var38
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2584 if (var38
== NULL
) {
2585 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 645);
2588 var39
= ((long (*)(val
*))(var38
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var38
) /* length on <var38:ANodes[AFormaldef]>*/;
2589 var40
= BOX_kernel__Int(var37
); /* autobox from Int to Discrete */
2590 var41
= BOX_kernel__Int(var39
); /* autobox from Int to Discrete */
2591 ((void (*)(val
*, val
*, val
*))(var36
->class->vft
[COLOR_range__Range__without_last
]))(var36
, var40
, var41
) /* without_last on <var36:Range[Int]>*/;
2592 CHECK_NEW_range__Range(var36
);
2593 var42
= ((val
* (*)(val
*))(var36
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var36
) /* iterator on <var36:Range[Int]>*/;
2595 var43
= ((short int (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var42
) /* is_ok on <var42:Iterator[nullable Object]>*/;
2597 var44
= ((val
* (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var42
) /* item on <var42:Iterator[nullable Object]>*/;
2598 var45
= ((struct instance_kernel__Int
*)var44
)->value
; /* autounbox from nullable Object to Int */;
2600 var46
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2601 if (var46
== NULL
) {
2602 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 646);
2605 var47
= ((val
* (*)(val
*, long))(var46
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var46
, var_i
) /* [] on <var46:ANodes[AFormaldef]>*/;
2606 var48
= ((short int (*)(val
*, val
*))(var47
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var47
, var_old_child
) /* == on <var47:nullable Object(AFormaldef)>*/;
2609 if (var_new_child
== NULL
) {
2610 var50
= 0; /* is null */
2612 var50
= 1; /* arg is null and recv is not */
2615 /* <var_new_child:nullable ANode(ANode)> isa AFormaldef */
2616 cltype52
= type_parser_nodes__AFormaldef
.color
;
2617 idtype53
= type_parser_nodes__AFormaldef
.id
;
2618 if(cltype52
>= var_new_child
->type
->table_size
) {
2621 var51
= var_new_child
->type
->type_table
[cltype52
] == idtype53
;
2624 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 648);
2627 var54
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2628 if (var54
== NULL
) {
2629 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 649);
2632 ((void (*)(val
*, long, val
*))(var54
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var54
, var_i
, var_new_child
) /* []= on <var54:ANodes[AFormaldef]>*/;
2633 ((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)>*/;
2635 var55
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
2636 if (var55
== NULL
) {
2637 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 652);
2640 ((void (*)(val
*, long))(var55
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var55
, var_i
) /* remove_at on <var55:ANodes[AFormaldef]>*/;
2645 CONTINUE_label
: (void)0;
2646 ((void (*)(val
*))(var42
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var42
) /* next on <var42:Iterator[nullable Object]>*/;
2648 BREAK_label
: (void)0;
2649 var56
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
2650 if (var56
== NULL
) {
2651 var57
= 0; /* <var_old_child:ANode> cannot be null */
2653 var57
= ((short int (*)(val
*, val
*))(var56
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var56
, var_old_child
) /* == on <var56:nullable AAnnotations>*/;
2657 if (var_new_child
== NULL
) {
2658 var59
= 0; /* is null */
2660 var59
= 1; /* arg is null and recv is not */
2663 ((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)>*/;
2664 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
2665 cltype61
= type_parser_nodes__AAnnotations
.color
;
2666 idtype62
= type_parser_nodes__AAnnotations
.id
;
2667 if(cltype61
>= var_new_child
->type
->table_size
) {
2670 var60
= var_new_child
->type
->type_table
[cltype61
] == idtype62
;
2673 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 660);
2676 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AStdClassdef> */
2679 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var63
; /* _n_annotations on <self:AStdClassdef> */
2684 var64
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
2685 if (var64
== NULL
) {
2686 var65
= 0; /* <var_old_child:ANode> cannot be null */
2688 var65
= ((short int (*)(val
*, val
*))(var64
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var64
, var_old_child
) /* == on <var64:nullable AExternCodeBlock>*/;
2692 if (var_new_child
== NULL
) {
2693 var67
= 0; /* is null */
2695 var67
= 1; /* arg is null and recv is not */
2698 ((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)>*/;
2699 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
2700 cltype69
= type_parser_nodes__AExternCodeBlock
.color
;
2701 idtype70
= type_parser_nodes__AExternCodeBlock
.id
;
2702 if(cltype69
>= var_new_child
->type
->table_size
) {
2705 var68
= var_new_child
->type
->type_table
[cltype69
] == idtype70
;
2708 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 670);
2711 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_new_child
; /* _n_extern_code_block on <self:AStdClassdef> */
2714 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var71
; /* _n_extern_code_block on <self:AStdClassdef> */
2719 var72
= NEW_range__Range(&type_range__Rangekernel__Int
);
2721 var74
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2722 if (var74
== NULL
) {
2723 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 677);
2726 var75
= ((long (*)(val
*))(var74
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var74
) /* length on <var74:ANodes[ASuperclass]>*/;
2727 var76
= BOX_kernel__Int(var73
); /* autobox from Int to Discrete */
2728 var77
= BOX_kernel__Int(var75
); /* autobox from Int to Discrete */
2729 ((void (*)(val
*, val
*, val
*))(var72
->class->vft
[COLOR_range__Range__without_last
]))(var72
, var76
, var77
) /* without_last on <var72:Range[Int]>*/;
2730 CHECK_NEW_range__Range(var72
);
2731 var78
= ((val
* (*)(val
*))(var72
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var72
) /* iterator on <var72:Range[Int]>*/;
2733 var79
= ((short int (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var78
) /* is_ok on <var78:Iterator[nullable Object]>*/;
2735 var80
= ((val
* (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var78
) /* item on <var78:Iterator[nullable Object]>*/;
2736 var82
= ((struct instance_kernel__Int
*)var80
)->value
; /* autounbox from nullable Object to Int */;
2738 var83
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2739 if (var83
== NULL
) {
2740 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 678);
2743 var84
= ((val
* (*)(val
*, long))(var83
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var83
, var_i81
) /* [] on <var83:ANodes[ASuperclass]>*/;
2744 var85
= ((short int (*)(val
*, val
*))(var84
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var84
, var_old_child
) /* == on <var84:nullable Object(ASuperclass)>*/;
2747 if (var_new_child
== NULL
) {
2748 var87
= 0; /* is null */
2750 var87
= 1; /* arg is null and recv is not */
2753 /* <var_new_child:nullable ANode(ANode)> isa ASuperclass */
2754 cltype89
= type_parser_nodes__ASuperclass
.color
;
2755 idtype90
= type_parser_nodes__ASuperclass
.id
;
2756 if(cltype89
>= var_new_child
->type
->table_size
) {
2759 var88
= var_new_child
->type
->type_table
[cltype89
] == idtype90
;
2762 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 680);
2765 var91
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2766 if (var91
== NULL
) {
2767 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 681);
2770 ((void (*)(val
*, long, val
*))(var91
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var91
, var_i81
, var_new_child
) /* []= on <var91:ANodes[ASuperclass]>*/;
2771 ((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)>*/;
2773 var92
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
2774 if (var92
== NULL
) {
2775 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 684);
2778 ((void (*)(val
*, long))(var92
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var92
, var_i81
) /* remove_at on <var92:ANodes[ASuperclass]>*/;
2783 CONTINUE_label93
: (void)0;
2784 ((void (*)(val
*))(var78
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var78
) /* next on <var78:Iterator[nullable Object]>*/;
2786 BREAK_label93
: (void)0;
2787 var94
= NEW_range__Range(&type_range__Rangekernel__Int
);
2789 var96
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2790 if (var96
== NULL
) {
2791 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 689);
2794 var97
= ((long (*)(val
*))(var96
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var96
) /* length on <var96:ANodes[APropdef]>*/;
2795 var98
= BOX_kernel__Int(var95
); /* autobox from Int to Discrete */
2796 var99
= BOX_kernel__Int(var97
); /* autobox from Int to Discrete */
2797 ((void (*)(val
*, val
*, val
*))(var94
->class->vft
[COLOR_range__Range__without_last
]))(var94
, var98
, var99
) /* without_last on <var94:Range[Int]>*/;
2798 CHECK_NEW_range__Range(var94
);
2799 var100
= ((val
* (*)(val
*))(var94
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var94
) /* iterator on <var94:Range[Int]>*/;
2801 var101
= ((short int (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var100
) /* is_ok on <var100:Iterator[nullable Object]>*/;
2803 var102
= ((val
* (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var100
) /* item on <var100:Iterator[nullable Object]>*/;
2804 var104
= ((struct instance_kernel__Int
*)var102
)->value
; /* autounbox from nullable Object to Int */;
2806 var105
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2807 if (var105
== NULL
) {
2808 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 690);
2811 var106
= ((val
* (*)(val
*, long))(var105
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var105
, var_i103
) /* [] on <var105:ANodes[APropdef]>*/;
2812 var107
= ((short int (*)(val
*, val
*))(var106
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var106
, var_old_child
) /* == on <var106:nullable Object(APropdef)>*/;
2815 if (var_new_child
== NULL
) {
2816 var109
= 0; /* is null */
2818 var109
= 1; /* arg is null and recv is not */
2821 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
2822 cltype111
= type_parser_nodes__APropdef
.color
;
2823 idtype112
= type_parser_nodes__APropdef
.id
;
2824 if(cltype111
>= var_new_child
->type
->table_size
) {
2827 var110
= var_new_child
->type
->type_table
[cltype111
] == idtype112
;
2830 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 692);
2833 var113
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2834 if (var113
== NULL
) {
2835 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 693);
2838 ((void (*)(val
*, long, val
*))(var113
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var113
, var_i103
, var_new_child
) /* []= on <var113:ANodes[APropdef]>*/;
2839 ((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)>*/;
2841 var114
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
2842 if (var114
== NULL
) {
2843 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 696);
2846 ((void (*)(val
*, long))(var114
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var114
, var_i103
) /* remove_at on <var114:ANodes[APropdef]>*/;
2851 CONTINUE_label115
: (void)0;
2852 ((void (*)(val
*))(var100
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var100
) /* next on <var100:Iterator[nullable Object]>*/;
2854 BREAK_label115
: (void)0;
2855 var116
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
2856 if (var116
== NULL
) {
2857 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwend", "src/parser/parser_prod.nit", 701);
2860 var117
= ((short int (*)(val
*, val
*))(var116
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var116
, var_old_child
) /* == on <var116:TKwend>*/;
2863 if (var_new_child
== NULL
) {
2864 var119
= 0; /* is null */
2866 var119
= 1; /* arg is null and recv is not */
2869 ((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)>*/;
2870 /* <var_new_child:nullable ANode(ANode)> isa TKwend */
2871 cltype121
= type_parser_nodes__TKwend
.color
;
2872 idtype122
= type_parser_nodes__TKwend
.id
;
2873 if(cltype121
>= var_new_child
->type
->table_size
) {
2876 var120
= var_new_child
->type
->type_table
[cltype121
] == idtype122
;
2879 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 704);
2882 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_new_child
; /* _n_kwend on <self:AStdClassdef> */
2884 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 707);
2892 /* method parser_prod#AStdClassdef#replace_child for (self: Object, ANode, nullable ANode) */
2893 void VIRTUAL_parser_prod__AStdClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
2894 parser_prod__AStdClassdef__replace_child(self
, p0
, p1
);
2897 /* method parser_prod#AStdClassdef#n_doc= for (self: AStdClassdef, nullable ADoc) */
2898 void parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
2899 val
* var_node
/* var node: nullable ADoc */;
2900 val
* var
/* : null */;
2901 short int var1
/* : Bool */;
2903 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
= var_node
; /* _n_doc on <self:AStdClassdef> */
2905 if (var_node
== NULL
) {
2906 var1
= 0; /* is null */
2908 var1
= 1; /* arg is null and recv is not */
2911 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
2916 /* method parser_prod#AStdClassdef#n_doc= for (self: Object, nullable ADoc) */
2917 void VIRTUAL_parser_prod__AStdClassdef__n_doc_61d(val
* self
, val
* p0
) {
2918 parser_prod__AStdClassdef__n_doc_61d(self
, p0
);
2921 /* method parser_prod#AStdClassdef#n_kwredef= for (self: AStdClassdef, nullable TKwredef) */
2922 void parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
2923 val
* var_node
/* var node: nullable TKwredef */;
2924 val
* var
/* : null */;
2925 short int var1
/* : Bool */;
2927 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AStdClassdef> */
2929 if (var_node
== NULL
) {
2930 var1
= 0; /* is null */
2932 var1
= 1; /* arg is null and recv is not */
2935 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
2940 /* method parser_prod#AStdClassdef#n_kwredef= for (self: Object, nullable TKwredef) */
2941 void VIRTUAL_parser_prod__AStdClassdef__n_kwredef_61d(val
* self
, val
* p0
) {
2942 parser_prod__AStdClassdef__n_kwredef_61d(self
, p0
);
2945 /* method parser_prod#AStdClassdef#n_visibility= for (self: AStdClassdef, AVisibility) */
2946 void parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
2947 val
* var_node
/* var node: AVisibility */;
2949 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AStdClassdef> */
2950 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
2953 /* method parser_prod#AStdClassdef#n_visibility= for (self: Object, AVisibility) */
2954 void VIRTUAL_parser_prod__AStdClassdef__n_visibility_61d(val
* self
, val
* p0
) {
2955 parser_prod__AStdClassdef__n_visibility_61d(self
, p0
);
2958 /* method parser_prod#AStdClassdef#n_classkind= for (self: AStdClassdef, AClasskind) */
2959 void parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
2960 val
* var_node
/* var node: AClasskind */;
2962 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
= var_node
; /* _n_classkind on <self:AStdClassdef> */
2963 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AClasskind>*/;
2966 /* method parser_prod#AStdClassdef#n_classkind= for (self: Object, AClasskind) */
2967 void VIRTUAL_parser_prod__AStdClassdef__n_classkind_61d(val
* self
, val
* p0
) {
2968 parser_prod__AStdClassdef__n_classkind_61d(self
, p0
);
2971 /* method parser_prod#AStdClassdef#n_id= for (self: AStdClassdef, nullable TClassid) */
2972 void parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
2973 val
* var_node
/* var node: nullable TClassid */;
2974 val
* var
/* : null */;
2975 short int var1
/* : Bool */;
2977 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
= var_node
; /* _n_id on <self:AStdClassdef> */
2979 if (var_node
== NULL
) {
2980 var1
= 0; /* is null */
2982 var1
= 1; /* arg is null and recv is not */
2985 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TClassid(TClassid)>*/;
2990 /* method parser_prod#AStdClassdef#n_id= for (self: Object, nullable TClassid) */
2991 void VIRTUAL_parser_prod__AStdClassdef__n_id_61d(val
* self
, val
* p0
) {
2992 parser_prod__AStdClassdef__n_id_61d(self
, p0
);
2995 /* method parser_prod#AStdClassdef#n_annotations= for (self: AStdClassdef, nullable AAnnotations) */
2996 void parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
2997 val
* var_node
/* var node: nullable AAnnotations */;
2998 val
* var
/* : null */;
2999 short int var1
/* : Bool */;
3001 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AStdClassdef> */
3003 if (var_node
== NULL
) {
3004 var1
= 0; /* is null */
3006 var1
= 1; /* arg is null and recv is not */
3009 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
3014 /* method parser_prod#AStdClassdef#n_annotations= for (self: Object, nullable AAnnotations) */
3015 void VIRTUAL_parser_prod__AStdClassdef__n_annotations_61d(val
* self
, val
* p0
) {
3016 parser_prod__AStdClassdef__n_annotations_61d(self
, p0
);
3019 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: AStdClassdef, nullable AExternCodeBlock) */
3020 void parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3021 val
* var_node
/* var node: nullable AExternCodeBlock */;
3022 val
* var
/* : null */;
3023 short int var1
/* : Bool */;
3025 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AStdClassdef> */
3027 if (var_node
== NULL
) {
3028 var1
= 0; /* is null */
3030 var1
= 1; /* arg is null and recv is not */
3033 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
3038 /* method parser_prod#AStdClassdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
3039 void VIRTUAL_parser_prod__AStdClassdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
3040 parser_prod__AStdClassdef__n_extern_code_block_61d(self
, p0
);
3043 /* method parser_prod#AStdClassdef#n_kwend= for (self: AStdClassdef, TKwend) */
3044 void parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3045 val
* var_node
/* var node: TKwend */;
3047 self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
= var_node
; /* _n_kwend on <self:AStdClassdef> */
3048 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwend>*/;
3051 /* method parser_prod#AStdClassdef#n_kwend= for (self: Object, TKwend) */
3052 void VIRTUAL_parser_prod__AStdClassdef__n_kwend_61d(val
* self
, val
* p0
) {
3053 parser_prod__AStdClassdef__n_kwend_61d(self
, p0
);
3056 /* method parser_prod#AStdClassdef#visit_all for (self: AStdClassdef, Visitor) */
3057 void parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3058 val
* var_v
/* var v: Visitor */;
3059 val
* var
/* : nullable ADoc */;
3060 val
* var1
/* : null */;
3061 short int var2
/* : Bool */;
3062 val
* var3
/* : nullable ADoc */;
3063 val
* var4
/* : nullable TKwredef */;
3064 val
* var5
/* : null */;
3065 short int var6
/* : Bool */;
3066 val
* var7
/* : nullable TKwredef */;
3067 val
* var8
/* : AVisibility */;
3068 val
* var9
/* : AClasskind */;
3069 val
* var10
/* : nullable TClassid */;
3070 val
* var11
/* : null */;
3071 short int var12
/* : Bool */;
3072 val
* var13
/* : nullable TClassid */;
3073 val
* var14
/* : ANodes[AFormaldef] */;
3074 val
* var15
/* : Iterator[nullable Object] */;
3075 short int var16
/* : Bool */;
3076 val
* var17
/* : nullable Object */;
3077 val
* var_n
/* var n: AFormaldef */;
3078 val
* var18
/* : nullable AAnnotations */;
3079 val
* var19
/* : null */;
3080 short int var20
/* : Bool */;
3081 val
* var21
/* : nullable AAnnotations */;
3082 val
* var22
/* : nullable AExternCodeBlock */;
3083 val
* var23
/* : null */;
3084 short int var24
/* : Bool */;
3085 val
* var25
/* : nullable AExternCodeBlock */;
3086 val
* var26
/* : ANodes[ASuperclass] */;
3087 val
* var27
/* : Iterator[nullable Object] */;
3088 short int var28
/* : Bool */;
3089 val
* var29
/* : nullable Object */;
3090 val
* var_n30
/* var n: ASuperclass */;
3091 val
* var32
/* : ANodes[APropdef] */;
3092 val
* var33
/* : Iterator[nullable Object] */;
3093 short int var34
/* : Bool */;
3094 val
* var35
/* : nullable Object */;
3095 val
* var_n36
/* var n: APropdef */;
3096 val
* var38
/* : TKwend */;
3098 var
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3101 var2
= 0; /* is null */
3103 var2
= 1; /* arg is null and recv is not */
3106 var3
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_doc
].val
; /* _n_doc on <self:AStdClassdef> */
3108 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 768);
3111 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
3114 var4
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3117 var6
= 0; /* is null */
3119 var6
= 1; /* arg is null and recv is not */
3122 var7
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwredef
].val
; /* _n_kwredef on <self:AStdClassdef> */
3124 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 771);
3127 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
3130 var8
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_visibility
].val
; /* _n_visibility on <self:AStdClassdef> */
3132 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 773);
3135 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
3136 var9
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_classkind
].val
; /* _n_classkind on <self:AStdClassdef> */
3138 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_classkind", "src/parser/parser_prod.nit", 774);
3141 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
3142 var10
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3144 if (var10
== NULL
) {
3145 var12
= 0; /* is null */
3147 var12
= 1; /* arg is null and recv is not */
3150 var13
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_id
].val
; /* _n_id on <self:AStdClassdef> */
3151 if (var13
== NULL
) {
3152 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 776);
3155 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var13
) /* enter_visit on <var_v:Visitor>*/;
3158 var14
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_formaldefs
].val
; /* _n_formaldefs on <self:AStdClassdef> */
3159 if (var14
== NULL
) {
3160 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_formaldefs", "src/parser/parser_prod.nit", 778);
3163 var15
= ((val
* (*)(val
*))(var14
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var14
) /* iterator on <var14:ANodes[AFormaldef]>*/;
3165 var16
= ((short int (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var15
) /* is_ok on <var15:Iterator[nullable Object]>*/;
3167 var17
= ((val
* (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var15
) /* item on <var15:Iterator[nullable Object]>*/;
3169 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3170 CONTINUE_label
: (void)0;
3171 ((void (*)(val
*))(var15
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var15
) /* next on <var15:Iterator[nullable Object]>*/;
3173 BREAK_label
: (void)0;
3174 var18
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3176 if (var18
== NULL
) {
3177 var20
= 0; /* is null */
3179 var20
= 1; /* arg is null and recv is not */
3182 var21
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AStdClassdef> */
3183 if (var21
== NULL
) {
3184 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 782);
3187 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var21
) /* enter_visit on <var_v:Visitor>*/;
3190 var22
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3192 if (var22
== NULL
) {
3193 var24
= 0; /* is null */
3195 var24
= 1; /* arg is null and recv is not */
3198 var25
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AStdClassdef> */
3199 if (var25
== NULL
) {
3200 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 785);
3203 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var25
) /* enter_visit on <var_v:Visitor>*/;
3206 var26
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_superclasses
].val
; /* _n_superclasses on <self:AStdClassdef> */
3207 if (var26
== NULL
) {
3208 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_superclasses", "src/parser/parser_prod.nit", 787);
3211 var27
= ((val
* (*)(val
*))(var26
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var26
) /* iterator on <var26:ANodes[ASuperclass]>*/;
3213 var28
= ((short int (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var27
) /* is_ok on <var27:Iterator[nullable Object]>*/;
3215 var29
= ((val
* (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var27
) /* item on <var27:Iterator[nullable Object]>*/;
3217 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n30
) /* enter_visit on <var_v:Visitor>*/;
3218 CONTINUE_label31
: (void)0;
3219 ((void (*)(val
*))(var27
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var27
) /* next on <var27:Iterator[nullable Object]>*/;
3221 BREAK_label31
: (void)0;
3222 var32
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AStdClassdef> */
3223 if (var32
== NULL
) {
3224 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 790);
3227 var33
= ((val
* (*)(val
*))(var32
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var32
) /* iterator on <var32:ANodes[APropdef]>*/;
3229 var34
= ((short int (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var33
) /* is_ok on <var33:Iterator[nullable Object]>*/;
3231 var35
= ((val
* (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var33
) /* item on <var33:Iterator[nullable Object]>*/;
3233 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n36
) /* enter_visit on <var_v:Visitor>*/;
3234 CONTINUE_label37
: (void)0;
3235 ((void (*)(val
*))(var33
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var33
) /* next on <var33:Iterator[nullable Object]>*/;
3237 BREAK_label37
: (void)0;
3238 var38
= self
->attrs
[COLOR_parser_nodes__AStdClassdef___n_kwend
].val
; /* _n_kwend on <self:AStdClassdef> */
3239 if (var38
== NULL
) {
3240 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwend", "src/parser/parser_prod.nit", 793);
3243 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var38
) /* enter_visit on <var_v:Visitor>*/;
3246 /* method parser_prod#AStdClassdef#visit_all for (self: Object, Visitor) */
3247 void VIRTUAL_parser_prod__AStdClassdef__visit_all(val
* self
, val
* p0
) {
3248 parser_prod__AStdClassdef__visit_all(self
, p0
);
3251 /* method parser_prod#ATopClassdef#empty_init for (self: ATopClassdef) */
3252 void parser_prod__ATopClassdef__empty_init(val
* self
) {
3255 /* method parser_prod#ATopClassdef#empty_init for (self: Object) */
3256 void VIRTUAL_parser_prod__ATopClassdef__empty_init(val
* self
) {
3257 parser_prod__ATopClassdef__empty_init(self
);
3260 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: ATopClassdef, Collection[Object]) */
3261 void parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3262 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3263 val
* var
/* : Iterator[nullable Object] */;
3264 short int var1
/* : Bool */;
3265 val
* var2
/* : nullable Object */;
3266 val
* var_n
/* var n: Object */;
3267 short int var3
/* : Bool */;
3270 val
* var4
/* : ANodes[APropdef] */;
3271 var_n_propdefs
= p0
;
3272 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ATopClassdef__empty_init
]))(self
) /* empty_init on <self:ATopClassdef>*/;
3273 var
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
3275 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
3277 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
3279 /* <var_n:Object> isa APropdef */
3280 cltype
= type_parser_nodes__APropdef
.color
;
3281 idtype
= type_parser_nodes__APropdef
.id
;
3282 if(cltype
>= var_n
->type
->table_size
) {
3285 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
3288 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 805);
3291 var4
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3293 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 806);
3296 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[APropdef]>*/;
3297 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(APropdef)>*/;
3298 CONTINUE_label
: (void)0;
3299 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
3301 BREAK_label
: (void)0;
3304 /* method parser_prod#ATopClassdef#init_atopclassdef for (self: Object, Collection[Object]) */
3305 void VIRTUAL_parser_prod__ATopClassdef__init_atopclassdef(val
* self
, val
* p0
) {
3306 parser_prod__ATopClassdef__init_atopclassdef(self
, p0
);
3309 /* method parser_prod#ATopClassdef#replace_child for (self: ATopClassdef, ANode, nullable ANode) */
3310 void parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3311 val
* var_old_child
/* var old_child: ANode */;
3312 val
* var_new_child
/* var new_child: nullable ANode */;
3313 val
* var
/* : Range[Int] */;
3314 long var1
/* : Int */;
3315 val
* var2
/* : ANodes[APropdef] */;
3316 long var3
/* : Int */;
3317 val
* var4
/* : Discrete */;
3318 val
* var5
/* : Discrete */;
3319 val
* var6
/* : Iterator[nullable Object] */;
3320 short int var7
/* : Bool */;
3321 val
* var8
/* : nullable Object */;
3322 long var_i
/* var i: Int */;
3323 long var9
/* : Int */;
3324 val
* var10
/* : ANodes[APropdef] */;
3325 val
* var11
/* : nullable Object */;
3326 short int var12
/* : Bool */;
3327 val
* var13
/* : null */;
3328 short int var14
/* : Bool */;
3329 short int var15
/* : Bool */;
3332 val
* var16
/* : ANodes[APropdef] */;
3333 val
* var17
/* : ANodes[APropdef] */;
3336 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
3338 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3340 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 813);
3343 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[APropdef]>*/;
3344 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
3345 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
3346 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
3347 CHECK_NEW_range__Range(var
);
3348 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
3350 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
3352 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
3353 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
3355 var10
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3356 if (var10
== NULL
) {
3357 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 814);
3360 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[APropdef]>*/;
3361 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(APropdef)>*/;
3364 if (var_new_child
== NULL
) {
3365 var14
= 0; /* is null */
3367 var14
= 1; /* arg is null and recv is not */
3370 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
3371 cltype
= type_parser_nodes__APropdef
.color
;
3372 idtype
= type_parser_nodes__APropdef
.id
;
3373 if(cltype
>= var_new_child
->type
->table_size
) {
3376 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3379 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 816);
3382 var16
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3383 if (var16
== NULL
) {
3384 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 817);
3387 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[APropdef]>*/;
3388 ((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)>*/;
3390 var17
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3391 if (var17
== NULL
) {
3392 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 820);
3395 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[APropdef]>*/;
3400 CONTINUE_label
: (void)0;
3401 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
3403 BREAK_label
: (void)0;
3406 /* method parser_prod#ATopClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3407 void VIRTUAL_parser_prod__ATopClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3408 parser_prod__ATopClassdef__replace_child(self
, p0
, p1
);
3411 /* method parser_prod#ATopClassdef#visit_all for (self: ATopClassdef, Visitor) */
3412 void parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3413 val
* var_v
/* var v: Visitor */;
3414 val
* var
/* : ANodes[APropdef] */;
3415 val
* var1
/* : Iterator[nullable Object] */;
3416 short int var2
/* : Bool */;
3417 val
* var3
/* : nullable Object */;
3418 val
* var_n
/* var n: APropdef */;
3420 var
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:ATopClassdef> */
3422 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 831);
3425 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[APropdef]>*/;
3427 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
3429 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
3431 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3432 CONTINUE_label
: (void)0;
3433 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
3435 BREAK_label
: (void)0;
3438 /* method parser_prod#ATopClassdef#visit_all for (self: Object, Visitor) */
3439 void VIRTUAL_parser_prod__ATopClassdef__visit_all(val
* self
, val
* p0
) {
3440 parser_prod__ATopClassdef__visit_all(self
, p0
);
3443 /* method parser_prod#AMainClassdef#empty_init for (self: AMainClassdef) */
3444 void parser_prod__AMainClassdef__empty_init(val
* self
) {
3447 /* method parser_prod#AMainClassdef#empty_init for (self: Object) */
3448 void VIRTUAL_parser_prod__AMainClassdef__empty_init(val
* self
) {
3449 parser_prod__AMainClassdef__empty_init(self
);
3452 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: AMainClassdef, Collection[Object]) */
3453 void parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3454 val
* var_n_propdefs
/* var n_propdefs: Collection[Object] */;
3455 val
* var
/* : Iterator[nullable Object] */;
3456 short int var1
/* : Bool */;
3457 val
* var2
/* : nullable Object */;
3458 val
* var_n
/* var n: Object */;
3459 short int var3
/* : Bool */;
3462 val
* var4
/* : ANodes[APropdef] */;
3463 var_n_propdefs
= p0
;
3464 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AMainClassdef__empty_init
]))(self
) /* empty_init on <self:AMainClassdef>*/;
3465 var
= ((val
* (*)(val
*))(var_n_propdefs
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var_n_propdefs
) /* iterator on <var_n_propdefs:Collection[Object]>*/;
3467 var1
= ((short int (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var
) /* is_ok on <var:Iterator[nullable Object]>*/;
3469 var2
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var
) /* item on <var:Iterator[nullable Object]>*/;
3471 /* <var_n:Object> isa APropdef */
3472 cltype
= type_parser_nodes__APropdef
.color
;
3473 idtype
= type_parser_nodes__APropdef
.id
;
3474 if(cltype
>= var_n
->type
->table_size
) {
3477 var3
= var_n
->type
->type_table
[cltype
] == idtype
;
3480 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 845);
3483 var4
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3485 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 846);
3488 ((void (*)(val
*, val
*))(var4
->class->vft
[COLOR_abstract_collection__SimpleCollection__add
]))(var4
, var_n
) /* add on <var4:ANodes[APropdef]>*/;
3489 ((void (*)(val
*, val
*))(var_n
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_n
, self
) /* parent= on <var_n:Object(APropdef)>*/;
3490 CONTINUE_label
: (void)0;
3491 ((void (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var
) /* next on <var:Iterator[nullable Object]>*/;
3493 BREAK_label
: (void)0;
3496 /* method parser_prod#AMainClassdef#init_amainclassdef for (self: Object, Collection[Object]) */
3497 void VIRTUAL_parser_prod__AMainClassdef__init_amainclassdef(val
* self
, val
* p0
) {
3498 parser_prod__AMainClassdef__init_amainclassdef(self
, p0
);
3501 /* method parser_prod#AMainClassdef#replace_child for (self: AMainClassdef, ANode, nullable ANode) */
3502 void parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3503 val
* var_old_child
/* var old_child: ANode */;
3504 val
* var_new_child
/* var new_child: nullable ANode */;
3505 val
* var
/* : Range[Int] */;
3506 long var1
/* : Int */;
3507 val
* var2
/* : ANodes[APropdef] */;
3508 long var3
/* : Int */;
3509 val
* var4
/* : Discrete */;
3510 val
* var5
/* : Discrete */;
3511 val
* var6
/* : Iterator[nullable Object] */;
3512 short int var7
/* : Bool */;
3513 val
* var8
/* : nullable Object */;
3514 long var_i
/* var i: Int */;
3515 long var9
/* : Int */;
3516 val
* var10
/* : ANodes[APropdef] */;
3517 val
* var11
/* : nullable Object */;
3518 short int var12
/* : Bool */;
3519 val
* var13
/* : null */;
3520 short int var14
/* : Bool */;
3521 short int var15
/* : Bool */;
3524 val
* var16
/* : ANodes[APropdef] */;
3525 val
* var17
/* : ANodes[APropdef] */;
3528 var
= NEW_range__Range(&type_range__Rangekernel__Int
);
3530 var2
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3532 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 853);
3535 var3
= ((long (*)(val
*))(var2
->class->vft
[COLOR_abstract_collection__Collection__length
]))(var2
) /* length on <var2:ANodes[APropdef]>*/;
3536 var4
= BOX_kernel__Int(var1
); /* autobox from Int to Discrete */
3537 var5
= BOX_kernel__Int(var3
); /* autobox from Int to Discrete */
3538 ((void (*)(val
*, val
*, val
*))(var
->class->vft
[COLOR_range__Range__without_last
]))(var
, var4
, var5
) /* without_last on <var:Range[Int]>*/;
3539 CHECK_NEW_range__Range(var
);
3540 var6
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:Range[Int]>*/;
3542 var7
= ((short int (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var6
) /* is_ok on <var6:Iterator[nullable Object]>*/;
3544 var8
= ((val
* (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var6
) /* item on <var6:Iterator[nullable Object]>*/;
3545 var9
= ((struct instance_kernel__Int
*)var8
)->value
; /* autounbox from nullable Object to Int */;
3547 var10
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3548 if (var10
== NULL
) {
3549 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 854);
3552 var11
= ((val
* (*)(val
*, long))(var10
->class->vft
[COLOR_abstract_collection__SequenceRead___91d_93d
]))(var10
, var_i
) /* [] on <var10:ANodes[APropdef]>*/;
3553 var12
= ((short int (*)(val
*, val
*))(var11
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var11
, var_old_child
) /* == on <var11:nullable Object(APropdef)>*/;
3556 if (var_new_child
== NULL
) {
3557 var14
= 0; /* is null */
3559 var14
= 1; /* arg is null and recv is not */
3562 /* <var_new_child:nullable ANode(ANode)> isa APropdef */
3563 cltype
= type_parser_nodes__APropdef
.color
;
3564 idtype
= type_parser_nodes__APropdef
.id
;
3565 if(cltype
>= var_new_child
->type
->table_size
) {
3568 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3571 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 856);
3574 var16
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3575 if (var16
== NULL
) {
3576 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 857);
3579 ((void (*)(val
*, long, val
*))(var16
->class->vft
[COLOR_abstract_collection__Sequence___91d_93d_61d
]))(var16
, var_i
, var_new_child
) /* []= on <var16:ANodes[APropdef]>*/;
3580 ((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)>*/;
3582 var17
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3583 if (var17
== NULL
) {
3584 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 860);
3587 ((void (*)(val
*, long))(var17
->class->vft
[COLOR_abstract_collection__Sequence__remove_at
]))(var17
, var_i
) /* remove_at on <var17:ANodes[APropdef]>*/;
3592 CONTINUE_label
: (void)0;
3593 ((void (*)(val
*))(var6
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var6
) /* next on <var6:Iterator[nullable Object]>*/;
3595 BREAK_label
: (void)0;
3598 /* method parser_prod#AMainClassdef#replace_child for (self: Object, ANode, nullable ANode) */
3599 void VIRTUAL_parser_prod__AMainClassdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
3600 parser_prod__AMainClassdef__replace_child(self
, p0
, p1
);
3603 /* method parser_prod#AMainClassdef#visit_all for (self: AMainClassdef, Visitor) */
3604 void parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
3605 val
* var_v
/* var v: Visitor */;
3606 val
* var
/* : ANodes[APropdef] */;
3607 val
* var1
/* : Iterator[nullable Object] */;
3608 short int var2
/* : Bool */;
3609 val
* var3
/* : nullable Object */;
3610 val
* var_n
/* var n: APropdef */;
3612 var
= self
->attrs
[COLOR_parser_nodes__AClassdef___n_propdefs
].val
; /* _n_propdefs on <self:AMainClassdef> */
3614 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_propdefs", "src/parser/parser_prod.nit", 871);
3617 var1
= ((val
* (*)(val
*))(var
->class->vft
[COLOR_abstract_collection__Collection__iterator
]))(var
) /* iterator on <var:ANodes[APropdef]>*/;
3619 var2
= ((short int (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__is_ok
]))(var1
) /* is_ok on <var1:Iterator[nullable Object]>*/;
3621 var3
= ((val
* (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__item
]))(var1
) /* item on <var1:Iterator[nullable Object]>*/;
3623 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var_n
) /* enter_visit on <var_v:Visitor>*/;
3624 CONTINUE_label
: (void)0;
3625 ((void (*)(val
*))(var1
->class->vft
[COLOR_abstract_collection__Iterator__next
]))(var1
) /* next on <var1:Iterator[nullable Object]>*/;
3627 BREAK_label
: (void)0;
3630 /* method parser_prod#AMainClassdef#visit_all for (self: Object, Visitor) */
3631 void VIRTUAL_parser_prod__AMainClassdef__visit_all(val
* self
, val
* p0
) {
3632 parser_prod__AMainClassdef__visit_all(self
, p0
);
3635 /* method parser_prod#AConcreteClasskind#empty_init for (self: AConcreteClasskind) */
3636 void parser_prod__AConcreteClasskind__empty_init(val
* self
) {
3639 /* method parser_prod#AConcreteClasskind#empty_init for (self: Object) */
3640 void VIRTUAL_parser_prod__AConcreteClasskind__empty_init(val
* self
) {
3641 parser_prod__AConcreteClasskind__empty_init(self
);
3644 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: AConcreteClasskind, nullable TKwclass) */
3645 void parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
3646 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3648 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteClasskind__empty_init
]))(self
) /* empty_init on <self:AConcreteClasskind>*/;
3649 if (var_n_kwclass
== NULL
) {
3650 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 884);
3653 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AConcreteClasskind> */
3654 if (var_n_kwclass
== NULL
) {
3655 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 885);
3658 ((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>*/;
3662 /* method parser_prod#AConcreteClasskind#init_aconcreteclasskind for (self: Object, nullable TKwclass) */
3663 void VIRTUAL_parser_prod__AConcreteClasskind__init_aconcreteclasskind(val
* self
, val
* p0
) {
3664 parser_prod__AConcreteClasskind__init_aconcreteclasskind(self
, p0
);
3667 /* method parser_prod#AConcreteClasskind#replace_child for (self: AConcreteClasskind, ANode, nullable ANode) */
3668 void parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3669 val
* var_old_child
/* var old_child: ANode */;
3670 val
* var_new_child
/* var new_child: nullable ANode */;
3671 val
* var
/* : TKwclass */;
3672 short int var1
/* : Bool */;
3673 val
* var2
/* : null */;
3674 short int var3
/* : Bool */;
3675 short int var4
/* : Bool */;
3680 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3682 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwclass", "src/parser/parser_prod.nit", 890);
3685 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwclass>*/;
3688 if (var_new_child
== NULL
) {
3689 var3
= 0; /* is null */
3691 var3
= 1; /* arg is null and recv is not */
3694 ((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)>*/;
3695 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
3696 cltype
= type_parser_nodes__TKwclass
.color
;
3697 idtype
= type_parser_nodes__TKwclass
.id
;
3698 if(cltype
>= var_new_child
->type
->table_size
) {
3701 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3704 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 893);
3707 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AConcreteClasskind> */
3709 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 896);
3717 /* method parser_prod#AConcreteClasskind#replace_child for (self: Object, ANode, nullable ANode) */
3718 void VIRTUAL_parser_prod__AConcreteClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3719 parser_prod__AConcreteClasskind__replace_child(self
, p0
, p1
);
3722 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: AConcreteClasskind, TKwclass) */
3723 void parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3724 val
* var_node
/* var node: TKwclass */;
3726 self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AConcreteClasskind> */
3727 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwclass>*/;
3730 /* method parser_prod#AConcreteClasskind#n_kwclass= for (self: Object, TKwclass) */
3731 void VIRTUAL_parser_prod__AConcreteClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3732 parser_prod__AConcreteClasskind__n_kwclass_61d(self
, p0
);
3735 /* method parser_prod#AConcreteClasskind#visit_all for (self: AConcreteClasskind, Visitor) */
3736 void parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
3737 val
* var_v
/* var v: Visitor */;
3738 val
* var
/* : TKwclass */;
3740 var
= self
->attrs
[COLOR_parser_nodes__AConcreteClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AConcreteClasskind> */
3742 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwclass", "src/parser/parser_prod.nit", 911);
3745 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
3748 /* method parser_prod#AConcreteClasskind#visit_all for (self: Object, Visitor) */
3749 void VIRTUAL_parser_prod__AConcreteClasskind__visit_all(val
* self
, val
* p0
) {
3750 parser_prod__AConcreteClasskind__visit_all(self
, p0
);
3753 /* method parser_prod#AAbstractClasskind#empty_init for (self: AAbstractClasskind) */
3754 void parser_prod__AAbstractClasskind__empty_init(val
* self
) {
3757 /* method parser_prod#AAbstractClasskind#empty_init for (self: Object) */
3758 void VIRTUAL_parser_prod__AAbstractClasskind__empty_init(val
* self
) {
3759 parser_prod__AAbstractClasskind__empty_init(self
);
3762 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: AAbstractClasskind, nullable TKwabstract, nullable TKwclass) */
3763 void parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3764 val
* var_n_kwabstract
/* var n_kwabstract: nullable TKwabstract */;
3765 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
3766 var_n_kwabstract
= p0
;
3768 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAbstractClasskind__empty_init
]))(self
) /* empty_init on <self:AAbstractClasskind>*/;
3769 if (var_n_kwabstract
== NULL
) {
3770 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 923);
3773 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_n_kwabstract
; /* _n_kwabstract on <self:AAbstractClasskind> */
3774 if (var_n_kwabstract
== NULL
) {
3775 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 924);
3778 ((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>*/;
3780 if (var_n_kwclass
== NULL
) {
3781 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 925);
3784 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AAbstractClasskind> */
3785 if (var_n_kwclass
== NULL
) {
3786 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 926);
3789 ((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>*/;
3793 /* method parser_prod#AAbstractClasskind#init_aabstractclasskind for (self: Object, nullable TKwabstract, nullable TKwclass) */
3794 void VIRTUAL_parser_prod__AAbstractClasskind__init_aabstractclasskind(val
* self
, val
* p0
, val
* p1
) {
3795 parser_prod__AAbstractClasskind__init_aabstractclasskind(self
, p0
, p1
);
3798 /* method parser_prod#AAbstractClasskind#replace_child for (self: AAbstractClasskind, ANode, nullable ANode) */
3799 void parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3800 val
* var_old_child
/* var old_child: ANode */;
3801 val
* var_new_child
/* var new_child: nullable ANode */;
3802 val
* var
/* : TKwabstract */;
3803 short int var1
/* : Bool */;
3804 val
* var2
/* : null */;
3805 short int var3
/* : Bool */;
3806 short int var4
/* : Bool */;
3809 val
* var5
/* : TKwclass */;
3810 short int var6
/* : Bool */;
3811 val
* var7
/* : null */;
3812 short int var8
/* : Bool */;
3813 short int var9
/* : Bool */;
3818 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
3820 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwabstract", "src/parser/parser_prod.nit", 931);
3823 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwabstract>*/;
3826 if (var_new_child
== NULL
) {
3827 var3
= 0; /* is null */
3829 var3
= 1; /* arg is null and recv is not */
3832 ((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)>*/;
3833 /* <var_new_child:nullable ANode(ANode)> isa TKwabstract */
3834 cltype
= type_parser_nodes__TKwabstract
.color
;
3835 idtype
= type_parser_nodes__TKwabstract
.id
;
3836 if(cltype
>= var_new_child
->type
->table_size
) {
3839 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3842 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 934);
3845 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_new_child
; /* _n_kwabstract on <self:AAbstractClasskind> */
3847 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 937);
3853 var5
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
3855 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwclass", "src/parser/parser_prod.nit", 941);
3858 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:TKwclass>*/;
3861 if (var_new_child
== NULL
) {
3862 var8
= 0; /* is null */
3864 var8
= 1; /* arg is null and recv is not */
3867 ((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)>*/;
3868 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
3869 cltype10
= type_parser_nodes__TKwclass
.color
;
3870 idtype11
= type_parser_nodes__TKwclass
.id
;
3871 if(cltype10
>= var_new_child
->type
->table_size
) {
3874 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
3877 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 944);
3880 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AAbstractClasskind> */
3882 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 947);
3890 /* method parser_prod#AAbstractClasskind#replace_child for (self: Object, ANode, nullable ANode) */
3891 void VIRTUAL_parser_prod__AAbstractClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3892 parser_prod__AAbstractClasskind__replace_child(self
, p0
, p1
);
3895 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: AAbstractClasskind, TKwabstract) */
3896 void parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
3897 val
* var_node
/* var node: TKwabstract */;
3899 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
= var_node
; /* _n_kwabstract on <self:AAbstractClasskind> */
3900 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwabstract>*/;
3903 /* method parser_prod#AAbstractClasskind#n_kwabstract= for (self: Object, TKwabstract) */
3904 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwabstract_61d(val
* self
, val
* p0
) {
3905 parser_prod__AAbstractClasskind__n_kwabstract_61d(self
, p0
);
3908 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: AAbstractClasskind, TKwclass) */
3909 void parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3910 val
* var_node
/* var node: TKwclass */;
3912 self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AAbstractClasskind> */
3913 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwclass>*/;
3916 /* method parser_prod#AAbstractClasskind#n_kwclass= for (self: Object, TKwclass) */
3917 void VIRTUAL_parser_prod__AAbstractClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
3918 parser_prod__AAbstractClasskind__n_kwclass_61d(self
, p0
);
3921 /* method parser_prod#AAbstractClasskind#visit_all for (self: AAbstractClasskind, Visitor) */
3922 void parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
3923 val
* var_v
/* var v: Visitor */;
3924 val
* var
/* : TKwabstract */;
3925 val
* var1
/* : TKwclass */;
3927 var
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwabstract
].val
; /* _n_kwabstract on <self:AAbstractClasskind> */
3929 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwabstract", "src/parser/parser_prod.nit", 967);
3932 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
3933 var1
= self
->attrs
[COLOR_parser_nodes__AAbstractClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AAbstractClasskind> */
3935 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwclass", "src/parser/parser_prod.nit", 968);
3938 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
3941 /* method parser_prod#AAbstractClasskind#visit_all for (self: Object, Visitor) */
3942 void VIRTUAL_parser_prod__AAbstractClasskind__visit_all(val
* self
, val
* p0
) {
3943 parser_prod__AAbstractClasskind__visit_all(self
, p0
);
3946 /* method parser_prod#AInterfaceClasskind#empty_init for (self: AInterfaceClasskind) */
3947 void parser_prod__AInterfaceClasskind__empty_init(val
* self
) {
3950 /* method parser_prod#AInterfaceClasskind#empty_init for (self: Object) */
3951 void VIRTUAL_parser_prod__AInterfaceClasskind__empty_init(val
* self
) {
3952 parser_prod__AInterfaceClasskind__empty_init(self
);
3955 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: AInterfaceClasskind, nullable TKwinterface) */
3956 void parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
3957 val
* var_n_kwinterface
/* var n_kwinterface: nullable TKwinterface */;
3958 var_n_kwinterface
= p0
;
3959 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInterfaceClasskind__empty_init
]))(self
) /* empty_init on <self:AInterfaceClasskind>*/;
3960 if (var_n_kwinterface
== NULL
) {
3961 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 979);
3964 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_n_kwinterface
; /* _n_kwinterface on <self:AInterfaceClasskind> */
3965 if (var_n_kwinterface
== NULL
) {
3966 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 980);
3969 ((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>*/;
3973 /* method parser_prod#AInterfaceClasskind#init_ainterfaceclasskind for (self: Object, nullable TKwinterface) */
3974 void VIRTUAL_parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(val
* self
, val
* p0
) {
3975 parser_prod__AInterfaceClasskind__init_ainterfaceclasskind(self
, p0
);
3978 /* method parser_prod#AInterfaceClasskind#replace_child for (self: AInterfaceClasskind, ANode, nullable ANode) */
3979 void parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
3980 val
* var_old_child
/* var old_child: ANode */;
3981 val
* var_new_child
/* var new_child: nullable ANode */;
3982 val
* var
/* : TKwinterface */;
3983 short int var1
/* : Bool */;
3984 val
* var2
/* : null */;
3985 short int var3
/* : Bool */;
3986 short int var4
/* : Bool */;
3991 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
3993 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwinterface", "src/parser/parser_prod.nit", 985);
3996 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwinterface>*/;
3999 if (var_new_child
== NULL
) {
4000 var3
= 0; /* is null */
4002 var3
= 1; /* arg is null and recv is not */
4005 ((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)>*/;
4006 /* <var_new_child:nullable ANode(ANode)> isa TKwinterface */
4007 cltype
= type_parser_nodes__TKwinterface
.color
;
4008 idtype
= type_parser_nodes__TKwinterface
.id
;
4009 if(cltype
>= var_new_child
->type
->table_size
) {
4012 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4015 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 988);
4018 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_new_child
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4020 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 991);
4028 /* method parser_prod#AInterfaceClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4029 void VIRTUAL_parser_prod__AInterfaceClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4030 parser_prod__AInterfaceClasskind__replace_child(self
, p0
, p1
);
4033 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: AInterfaceClasskind, TKwinterface) */
4034 void parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4035 val
* var_node
/* var node: TKwinterface */;
4037 self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
= var_node
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4038 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwinterface>*/;
4041 /* method parser_prod#AInterfaceClasskind#n_kwinterface= for (self: Object, TKwinterface) */
4042 void VIRTUAL_parser_prod__AInterfaceClasskind__n_kwinterface_61d(val
* self
, val
* p0
) {
4043 parser_prod__AInterfaceClasskind__n_kwinterface_61d(self
, p0
);
4046 /* method parser_prod#AInterfaceClasskind#visit_all for (self: AInterfaceClasskind, Visitor) */
4047 void parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4048 val
* var_v
/* var v: Visitor */;
4049 val
* var
/* : TKwinterface */;
4051 var
= self
->attrs
[COLOR_parser_nodes__AInterfaceClasskind___n_kwinterface
].val
; /* _n_kwinterface on <self:AInterfaceClasskind> */
4053 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwinterface", "src/parser/parser_prod.nit", 1006);
4056 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4059 /* method parser_prod#AInterfaceClasskind#visit_all for (self: Object, Visitor) */
4060 void VIRTUAL_parser_prod__AInterfaceClasskind__visit_all(val
* self
, val
* p0
) {
4061 parser_prod__AInterfaceClasskind__visit_all(self
, p0
);
4064 /* method parser_prod#AEnumClasskind#empty_init for (self: AEnumClasskind) */
4065 void parser_prod__AEnumClasskind__empty_init(val
* self
) {
4068 /* method parser_prod#AEnumClasskind#empty_init for (self: Object) */
4069 void VIRTUAL_parser_prod__AEnumClasskind__empty_init(val
* self
) {
4070 parser_prod__AEnumClasskind__empty_init(self
);
4073 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: AEnumClasskind, nullable TKwenum) */
4074 void parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4075 val
* var_n_kwenum
/* var n_kwenum: nullable TKwenum */;
4077 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AEnumClasskind__empty_init
]))(self
) /* empty_init on <self:AEnumClasskind>*/;
4078 if (var_n_kwenum
== NULL
) {
4079 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1017);
4082 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_n_kwenum
; /* _n_kwenum on <self:AEnumClasskind> */
4083 if (var_n_kwenum
== NULL
) {
4084 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1018);
4087 ((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>*/;
4091 /* method parser_prod#AEnumClasskind#init_aenumclasskind for (self: Object, nullable TKwenum) */
4092 void VIRTUAL_parser_prod__AEnumClasskind__init_aenumclasskind(val
* self
, val
* p0
) {
4093 parser_prod__AEnumClasskind__init_aenumclasskind(self
, p0
);
4096 /* method parser_prod#AEnumClasskind#replace_child for (self: AEnumClasskind, ANode, nullable ANode) */
4097 void parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4098 val
* var_old_child
/* var old_child: ANode */;
4099 val
* var_new_child
/* var new_child: nullable ANode */;
4100 val
* var
/* : TKwenum */;
4101 short int var1
/* : Bool */;
4102 val
* var2
/* : null */;
4103 short int var3
/* : Bool */;
4104 short int var4
/* : Bool */;
4109 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4111 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwenum", "src/parser/parser_prod.nit", 1023);
4114 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwenum>*/;
4117 if (var_new_child
== NULL
) {
4118 var3
= 0; /* is null */
4120 var3
= 1; /* arg is null and recv is not */
4123 ((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)>*/;
4124 /* <var_new_child:nullable ANode(ANode)> isa TKwenum */
4125 cltype
= type_parser_nodes__TKwenum
.color
;
4126 idtype
= type_parser_nodes__TKwenum
.id
;
4127 if(cltype
>= var_new_child
->type
->table_size
) {
4130 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4133 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1026);
4136 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_new_child
; /* _n_kwenum on <self:AEnumClasskind> */
4138 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1029);
4146 /* method parser_prod#AEnumClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4147 void VIRTUAL_parser_prod__AEnumClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4148 parser_prod__AEnumClasskind__replace_child(self
, p0
, p1
);
4151 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: AEnumClasskind, TKwenum) */
4152 void parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4153 val
* var_node
/* var node: TKwenum */;
4155 self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
= var_node
; /* _n_kwenum on <self:AEnumClasskind> */
4156 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwenum>*/;
4159 /* method parser_prod#AEnumClasskind#n_kwenum= for (self: Object, TKwenum) */
4160 void VIRTUAL_parser_prod__AEnumClasskind__n_kwenum_61d(val
* self
, val
* p0
) {
4161 parser_prod__AEnumClasskind__n_kwenum_61d(self
, p0
);
4164 /* method parser_prod#AEnumClasskind#visit_all for (self: AEnumClasskind, Visitor) */
4165 void parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4166 val
* var_v
/* var v: Visitor */;
4167 val
* var
/* : TKwenum */;
4169 var
= self
->attrs
[COLOR_parser_nodes__AEnumClasskind___n_kwenum
].val
; /* _n_kwenum on <self:AEnumClasskind> */
4171 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwenum", "src/parser/parser_prod.nit", 1044);
4174 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4177 /* method parser_prod#AEnumClasskind#visit_all for (self: Object, Visitor) */
4178 void VIRTUAL_parser_prod__AEnumClasskind__visit_all(val
* self
, val
* p0
) {
4179 parser_prod__AEnumClasskind__visit_all(self
, p0
);
4182 /* method parser_prod#AExternClasskind#empty_init for (self: AExternClasskind) */
4183 void parser_prod__AExternClasskind__empty_init(val
* self
) {
4186 /* method parser_prod#AExternClasskind#empty_init for (self: Object) */
4187 void VIRTUAL_parser_prod__AExternClasskind__empty_init(val
* self
) {
4188 parser_prod__AExternClasskind__empty_init(self
);
4191 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: AExternClasskind, nullable TKwextern, nullable TKwclass) */
4192 void parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4193 val
* var_n_kwextern
/* var n_kwextern: nullable TKwextern */;
4194 val
* var_n_kwclass
/* var n_kwclass: nullable TKwclass */;
4195 val
* var
/* : null */;
4196 short int var1
/* : Bool */;
4197 var_n_kwextern
= p0
;
4199 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternClasskind__empty_init
]))(self
) /* empty_init on <self:AExternClasskind>*/;
4200 if (var_n_kwextern
== NULL
) {
4201 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1056);
4204 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_n_kwextern
; /* _n_kwextern on <self:AExternClasskind> */
4205 if (var_n_kwextern
== NULL
) {
4206 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1057);
4209 ((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>*/;
4211 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_n_kwclass
; /* _n_kwclass on <self:AExternClasskind> */
4213 if (var_n_kwclass
== NULL
) {
4214 var1
= 0; /* is null */
4216 var1
= 1; /* arg is null and recv is not */
4219 ((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)>*/;
4224 /* method parser_prod#AExternClasskind#init_aexternclasskind for (self: Object, nullable TKwextern, nullable TKwclass) */
4225 void VIRTUAL_parser_prod__AExternClasskind__init_aexternclasskind(val
* self
, val
* p0
, val
* p1
) {
4226 parser_prod__AExternClasskind__init_aexternclasskind(self
, p0
, p1
);
4229 /* method parser_prod#AExternClasskind#replace_child for (self: AExternClasskind, ANode, nullable ANode) */
4230 void parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4231 val
* var_old_child
/* var old_child: ANode */;
4232 val
* var_new_child
/* var new_child: nullable ANode */;
4233 val
* var
/* : TKwextern */;
4234 short int var1
/* : Bool */;
4235 val
* var2
/* : null */;
4236 short int var3
/* : Bool */;
4237 short int var4
/* : Bool */;
4240 val
* var5
/* : nullable TKwclass */;
4241 short int var6
/* : Bool */;
4242 val
* var7
/* : null */;
4243 short int var8
/* : Bool */;
4244 short int var9
/* : Bool */;
4247 val
* var12
/* : null */;
4250 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4252 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwextern", "src/parser/parser_prod.nit", 1066);
4255 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwextern>*/;
4258 if (var_new_child
== NULL
) {
4259 var3
= 0; /* is null */
4261 var3
= 1; /* arg is null and recv is not */
4264 ((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)>*/;
4265 /* <var_new_child:nullable ANode(ANode)> isa TKwextern */
4266 cltype
= type_parser_nodes__TKwextern
.color
;
4267 idtype
= type_parser_nodes__TKwextern
.id
;
4268 if(cltype
>= var_new_child
->type
->table_size
) {
4271 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4274 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1069);
4277 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_new_child
; /* _n_kwextern on <self:AExternClasskind> */
4279 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1072);
4285 var5
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4287 var6
= 0; /* <var_old_child:ANode> cannot be null */
4289 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable TKwclass>*/;
4293 if (var_new_child
== NULL
) {
4294 var8
= 0; /* is null */
4296 var8
= 1; /* arg is null and recv is not */
4299 ((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)>*/;
4300 /* <var_new_child:nullable ANode(ANode)> isa TKwclass */
4301 cltype10
= type_parser_nodes__TKwclass
.color
;
4302 idtype11
= type_parser_nodes__TKwclass
.id
;
4303 if(cltype10
>= var_new_child
->type
->table_size
) {
4306 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4309 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1079);
4312 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_new_child
; /* _n_kwclass on <self:AExternClasskind> */
4315 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var12
; /* _n_kwclass on <self:AExternClasskind> */
4322 /* method parser_prod#AExternClasskind#replace_child for (self: Object, ANode, nullable ANode) */
4323 void VIRTUAL_parser_prod__AExternClasskind__replace_child(val
* self
, val
* p0
, val
* p1
) {
4324 parser_prod__AExternClasskind__replace_child(self
, p0
, p1
);
4327 /* method parser_prod#AExternClasskind#n_kwextern= for (self: AExternClasskind, TKwextern) */
4328 void parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4329 val
* var_node
/* var node: TKwextern */;
4331 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
= var_node
; /* _n_kwextern on <self:AExternClasskind> */
4332 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwextern>*/;
4335 /* method parser_prod#AExternClasskind#n_kwextern= for (self: Object, TKwextern) */
4336 void VIRTUAL_parser_prod__AExternClasskind__n_kwextern_61d(val
* self
, val
* p0
) {
4337 parser_prod__AExternClasskind__n_kwextern_61d(self
, p0
);
4340 /* method parser_prod#AExternClasskind#n_kwclass= for (self: AExternClasskind, nullable TKwclass) */
4341 void parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4342 val
* var_node
/* var node: nullable TKwclass */;
4343 val
* var
/* : null */;
4344 short int var1
/* : Bool */;
4346 self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
= var_node
; /* _n_kwclass on <self:AExternClasskind> */
4348 if (var_node
== NULL
) {
4349 var1
= 0; /* is null */
4351 var1
= 1; /* arg is null and recv is not */
4354 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwclass(TKwclass)>*/;
4359 /* method parser_prod#AExternClasskind#n_kwclass= for (self: Object, nullable TKwclass) */
4360 void VIRTUAL_parser_prod__AExternClasskind__n_kwclass_61d(val
* self
, val
* p0
) {
4361 parser_prod__AExternClasskind__n_kwclass_61d(self
, p0
);
4364 /* method parser_prod#AExternClasskind#visit_all for (self: AExternClasskind, Visitor) */
4365 void parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
4366 val
* var_v
/* var v: Visitor */;
4367 val
* var
/* : TKwextern */;
4368 val
* var1
/* : nullable TKwclass */;
4369 val
* var2
/* : null */;
4370 short int var3
/* : Bool */;
4371 val
* var4
/* : nullable TKwclass */;
4373 var
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwextern
].val
; /* _n_kwextern on <self:AExternClasskind> */
4375 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwextern", "src/parser/parser_prod.nit", 1104);
4378 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4379 var1
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4382 var3
= 0; /* is null */
4384 var3
= 1; /* arg is null and recv is not */
4387 var4
= self
->attrs
[COLOR_parser_nodes__AExternClasskind___n_kwclass
].val
; /* _n_kwclass on <self:AExternClasskind> */
4389 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1106);
4392 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
4397 /* method parser_prod#AExternClasskind#visit_all for (self: Object, Visitor) */
4398 void VIRTUAL_parser_prod__AExternClasskind__visit_all(val
* self
, val
* p0
) {
4399 parser_prod__AExternClasskind__visit_all(self
, p0
);
4402 /* method parser_prod#AFormaldef#empty_init for (self: AFormaldef) */
4403 void parser_prod__AFormaldef__empty_init(val
* self
) {
4406 /* method parser_prod#AFormaldef#empty_init for (self: Object) */
4407 void VIRTUAL_parser_prod__AFormaldef__empty_init(val
* self
) {
4408 parser_prod__AFormaldef__empty_init(self
);
4411 /* method parser_prod#AFormaldef#init_aformaldef for (self: AFormaldef, nullable TClassid, nullable AType, nullable AAnnotations) */
4412 void parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4413 val
* var_n_id
/* var n_id: nullable TClassid */;
4414 val
* var_n_type
/* var n_type: nullable AType */;
4415 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4416 val
* var
/* : null */;
4417 short int var1
/* : Bool */;
4418 val
* var2
/* : null */;
4419 short int var3
/* : Bool */;
4422 var_n_annotations
= p2
;
4423 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AFormaldef__empty_init
]))(self
) /* empty_init on <self:AFormaldef>*/;
4424 if (var_n_id
== NULL
) {
4425 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1120);
4428 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_n_id
; /* _n_id on <self:AFormaldef> */
4429 if (var_n_id
== NULL
) {
4430 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1121);
4433 ((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>*/;
4435 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_n_type
; /* _n_type on <self:AFormaldef> */
4437 if (var_n_type
== NULL
) {
4438 var1
= 0; /* is null */
4440 var1
= 1; /* arg is null and recv is not */
4443 ((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)>*/;
4446 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AFormaldef> */
4448 if (var_n_annotations
== NULL
) {
4449 var3
= 0; /* is null */
4451 var3
= 1; /* arg is null and recv is not */
4454 ((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)>*/;
4459 /* method parser_prod#AFormaldef#init_aformaldef for (self: Object, nullable TClassid, nullable AType, nullable AAnnotations) */
4460 void VIRTUAL_parser_prod__AFormaldef__init_aformaldef(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4461 parser_prod__AFormaldef__init_aformaldef(self
, p0
, p1
, p2
);
4464 /* method parser_prod#AFormaldef#replace_child for (self: AFormaldef, ANode, nullable ANode) */
4465 void parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
4466 val
* var_old_child
/* var old_child: ANode */;
4467 val
* var_new_child
/* var new_child: nullable ANode */;
4468 val
* var
/* : TClassid */;
4469 short int var1
/* : Bool */;
4470 val
* var2
/* : null */;
4471 short int var3
/* : Bool */;
4472 short int var4
/* : Bool */;
4475 val
* var5
/* : nullable AType */;
4476 short int var6
/* : Bool */;
4477 val
* var7
/* : null */;
4478 short int var8
/* : Bool */;
4479 short int var9
/* : Bool */;
4482 val
* var12
/* : null */;
4483 val
* var13
/* : nullable AAnnotations */;
4484 short int var14
/* : Bool */;
4485 val
* var15
/* : null */;
4486 short int var16
/* : Bool */;
4487 short int var17
/* : Bool */;
4490 val
* var20
/* : null */;
4493 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4495 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 1134);
4498 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TClassid>*/;
4501 if (var_new_child
== NULL
) {
4502 var3
= 0; /* is null */
4504 var3
= 1; /* arg is null and recv is not */
4507 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4508 /* <var_new_child:nullable ANode(ANode)> isa TClassid */
4509 cltype
= type_parser_nodes__TClassid
.color
;
4510 idtype
= type_parser_nodes__TClassid
.id
;
4511 if(cltype
>= var_new_child
->type
->table_size
) {
4514 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4517 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1137);
4520 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_new_child
; /* _n_id on <self:AFormaldef> */
4522 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1140);
4528 var5
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4530 var6
= 0; /* <var_old_child:ANode> cannot be null */
4532 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:nullable AType>*/;
4536 if (var_new_child
== NULL
) {
4537 var8
= 0; /* is null */
4539 var8
= 1; /* arg is null and recv is not */
4542 ((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)>*/;
4543 /* <var_new_child:nullable ANode(ANode)> isa AType */
4544 cltype10
= type_parser_nodes__AType
.color
;
4545 idtype11
= type_parser_nodes__AType
.id
;
4546 if(cltype10
>= var_new_child
->type
->table_size
) {
4549 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4552 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1147);
4555 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_new_child
; /* _n_type on <self:AFormaldef> */
4558 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var12
; /* _n_type on <self:AFormaldef> */
4563 var13
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4564 if (var13
== NULL
) {
4565 var14
= 0; /* <var_old_child:ANode> cannot be null */
4567 var14
= ((short int (*)(val
*, val
*))(var13
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var13
, var_old_child
) /* == on <var13:nullable AAnnotations>*/;
4571 if (var_new_child
== NULL
) {
4572 var16
= 0; /* is null */
4574 var16
= 1; /* arg is null and recv is not */
4577 ((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)>*/;
4578 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
4579 cltype18
= type_parser_nodes__AAnnotations
.color
;
4580 idtype19
= type_parser_nodes__AAnnotations
.id
;
4581 if(cltype18
>= var_new_child
->type
->table_size
) {
4584 var17
= var_new_child
->type
->type_table
[cltype18
] == idtype19
;
4587 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1157);
4590 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AFormaldef> */
4593 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var20
; /* _n_annotations on <self:AFormaldef> */
4600 /* method parser_prod#AFormaldef#replace_child for (self: Object, ANode, nullable ANode) */
4601 void VIRTUAL_parser_prod__AFormaldef__replace_child(val
* self
, val
* p0
, val
* p1
) {
4602 parser_prod__AFormaldef__replace_child(self
, p0
, p1
);
4605 /* method parser_prod#AFormaldef#n_id= for (self: AFormaldef, TClassid) */
4606 void parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
4607 val
* var_node
/* var node: TClassid */;
4609 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
= var_node
; /* _n_id on <self:AFormaldef> */
4610 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TClassid>*/;
4613 /* method parser_prod#AFormaldef#n_id= for (self: Object, TClassid) */
4614 void VIRTUAL_parser_prod__AFormaldef__n_id_61d(val
* self
, val
* p0
) {
4615 parser_prod__AFormaldef__n_id_61d(self
, p0
);
4618 /* method parser_prod#AFormaldef#n_type= for (self: AFormaldef, nullable AType) */
4619 void parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
4620 val
* var_node
/* var node: nullable AType */;
4621 val
* var
/* : null */;
4622 short int var1
/* : Bool */;
4624 self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
= var_node
; /* _n_type on <self:AFormaldef> */
4626 if (var_node
== NULL
) {
4627 var1
= 0; /* is null */
4629 var1
= 1; /* arg is null and recv is not */
4632 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AType(AType)>*/;
4637 /* method parser_prod#AFormaldef#n_type= for (self: Object, nullable AType) */
4638 void VIRTUAL_parser_prod__AFormaldef__n_type_61d(val
* self
, val
* p0
) {
4639 parser_prod__AFormaldef__n_type_61d(self
, p0
);
4642 /* method parser_prod#AFormaldef#n_annotations= for (self: AFormaldef, nullable AAnnotations) */
4643 void parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
4644 val
* var_node
/* var node: nullable AAnnotations */;
4645 val
* var
/* : null */;
4646 short int var1
/* : Bool */;
4648 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AFormaldef> */
4650 if (var_node
== NULL
) {
4651 var1
= 0; /* is null */
4653 var1
= 1; /* arg is null and recv is not */
4656 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
4661 /* method parser_prod#AFormaldef#n_annotations= for (self: Object, nullable AAnnotations) */
4662 void VIRTUAL_parser_prod__AFormaldef__n_annotations_61d(val
* self
, val
* p0
) {
4663 parser_prod__AFormaldef__n_annotations_61d(self
, p0
);
4666 /* method parser_prod#AFormaldef#visit_all for (self: AFormaldef, Visitor) */
4667 void parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
4668 val
* var_v
/* var v: Visitor */;
4669 val
* var
/* : TClassid */;
4670 val
* var1
/* : nullable AType */;
4671 val
* var2
/* : null */;
4672 short int var3
/* : Bool */;
4673 val
* var4
/* : nullable AType */;
4674 val
* var5
/* : nullable AAnnotations */;
4675 val
* var6
/* : null */;
4676 short int var7
/* : Bool */;
4677 val
* var8
/* : nullable AAnnotations */;
4679 var
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_id
].val
; /* _n_id on <self:AFormaldef> */
4681 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_id", "src/parser/parser_prod.nit", 1189);
4684 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4685 var1
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4688 var3
= 0; /* is null */
4690 var3
= 1; /* arg is null and recv is not */
4693 var4
= self
->attrs
[COLOR_parser_nodes__AFormaldef___n_type
].val
; /* _n_type on <self:AFormaldef> */
4695 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1191);
4698 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var4
) /* enter_visit on <var_v:Visitor>*/;
4701 var5
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4704 var7
= 0; /* is null */
4706 var7
= 1; /* arg is null and recv is not */
4709 var8
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AFormaldef> */
4711 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1194);
4714 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
4719 /* method parser_prod#AFormaldef#visit_all for (self: Object, Visitor) */
4720 void VIRTUAL_parser_prod__AFormaldef__visit_all(val
* self
, val
* p0
) {
4721 parser_prod__AFormaldef__visit_all(self
, p0
);
4724 /* method parser_prod#ASuperclass#empty_init for (self: ASuperclass) */
4725 void parser_prod__ASuperclass__empty_init(val
* self
) {
4728 /* method parser_prod#ASuperclass#empty_init for (self: Object) */
4729 void VIRTUAL_parser_prod__ASuperclass__empty_init(val
* self
) {
4730 parser_prod__ASuperclass__empty_init(self
);
4733 /* method parser_prod#ASuperclass#init_asuperclass for (self: ASuperclass, nullable TKwsuper, nullable AType, nullable AAnnotations) */
4734 void parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4735 val
* var_n_kwsuper
/* var n_kwsuper: nullable TKwsuper */;
4736 val
* var_n_type
/* var n_type: nullable AType */;
4737 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
4738 val
* var
/* : null */;
4739 short int var1
/* : Bool */;
4742 var_n_annotations
= p2
;
4743 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ASuperclass__empty_init
]))(self
) /* empty_init on <self:ASuperclass>*/;
4744 if (var_n_kwsuper
== NULL
) {
4745 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1208);
4748 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_n_kwsuper
; /* _n_kwsuper on <self:ASuperclass> */
4749 if (var_n_kwsuper
== NULL
) {
4750 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1209);
4753 ((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>*/;
4755 if (var_n_type
== NULL
) {
4756 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1210);
4759 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_n_type
; /* _n_type on <self:ASuperclass> */
4760 if (var_n_type
== NULL
) {
4761 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1211);
4764 ((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>*/;
4766 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ASuperclass> */
4768 if (var_n_annotations
== NULL
) {
4769 var1
= 0; /* is null */
4771 var1
= 1; /* arg is null and recv is not */
4774 ((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)>*/;
4779 /* method parser_prod#ASuperclass#init_asuperclass for (self: Object, nullable TKwsuper, nullable AType, nullable AAnnotations) */
4780 void VIRTUAL_parser_prod__ASuperclass__init_asuperclass(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
4781 parser_prod__ASuperclass__init_asuperclass(self
, p0
, p1
, p2
);
4784 /* method parser_prod#ASuperclass#replace_child for (self: ASuperclass, ANode, nullable ANode) */
4785 void parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
4786 val
* var_old_child
/* var old_child: ANode */;
4787 val
* var_new_child
/* var new_child: nullable ANode */;
4788 val
* var
/* : TKwsuper */;
4789 short int var1
/* : Bool */;
4790 val
* var2
/* : null */;
4791 short int var3
/* : Bool */;
4792 short int var4
/* : Bool */;
4795 val
* var5
/* : AType */;
4796 short int var6
/* : Bool */;
4797 val
* var7
/* : null */;
4798 short int var8
/* : Bool */;
4799 short int var9
/* : Bool */;
4802 val
* var12
/* : nullable AAnnotations */;
4803 short int var13
/* : Bool */;
4804 val
* var14
/* : null */;
4805 short int var15
/* : Bool */;
4806 short int var16
/* : Bool */;
4809 val
* var19
/* : null */;
4812 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
4814 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwsuper", "src/parser/parser_prod.nit", 1220);
4817 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:TKwsuper>*/;
4820 if (var_new_child
== NULL
) {
4821 var3
= 0; /* is null */
4823 var3
= 1; /* arg is null and recv is not */
4826 ((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)>*/;
4827 /* <var_new_child:nullable ANode(ANode)> isa TKwsuper */
4828 cltype
= type_parser_nodes__TKwsuper
.color
;
4829 idtype
= type_parser_nodes__TKwsuper
.id
;
4830 if(cltype
>= var_new_child
->type
->table_size
) {
4833 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4836 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1223);
4839 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_new_child
; /* _n_kwsuper on <self:ASuperclass> */
4841 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1226);
4847 var5
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
4849 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 1230);
4852 var6
= ((short int (*)(val
*, val
*))(var5
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var5
, var_old_child
) /* == on <var5:AType>*/;
4855 if (var_new_child
== NULL
) {
4856 var8
= 0; /* is null */
4858 var8
= 1; /* arg is null and recv is not */
4861 ((void (*)(val
*, val
*))(var_new_child
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_new_child
, self
) /* parent= on <var_new_child:nullable ANode(ANode)>*/;
4862 /* <var_new_child:nullable ANode(ANode)> isa AType */
4863 cltype10
= type_parser_nodes__AType
.color
;
4864 idtype11
= type_parser_nodes__AType
.id
;
4865 if(cltype10
>= var_new_child
->type
->table_size
) {
4868 var9
= var_new_child
->type
->type_table
[cltype10
] == idtype11
;
4871 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1233);
4874 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_new_child
; /* _n_type on <self:ASuperclass> */
4876 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1236);
4882 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
4883 if (var12
== NULL
) {
4884 var13
= 0; /* <var_old_child:ANode> cannot be null */
4886 var13
= ((short int (*)(val
*, val
*))(var12
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var12
, var_old_child
) /* == on <var12:nullable AAnnotations>*/;
4890 if (var_new_child
== NULL
) {
4891 var15
= 0; /* is null */
4893 var15
= 1; /* arg is null and recv is not */
4896 ((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)>*/;
4897 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
4898 cltype17
= type_parser_nodes__AAnnotations
.color
;
4899 idtype18
= type_parser_nodes__AAnnotations
.id
;
4900 if(cltype17
>= var_new_child
->type
->table_size
) {
4903 var16
= var_new_child
->type
->type_table
[cltype17
] == idtype18
;
4906 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1243);
4909 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:ASuperclass> */
4912 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var19
; /* _n_annotations on <self:ASuperclass> */
4919 /* method parser_prod#ASuperclass#replace_child for (self: Object, ANode, nullable ANode) */
4920 void VIRTUAL_parser_prod__ASuperclass__replace_child(val
* self
, val
* p0
, val
* p1
) {
4921 parser_prod__ASuperclass__replace_child(self
, p0
, p1
);
4924 /* method parser_prod#ASuperclass#n_kwsuper= for (self: ASuperclass, TKwsuper) */
4925 void parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
4926 val
* var_node
/* var node: TKwsuper */;
4928 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
= var_node
; /* _n_kwsuper on <self:ASuperclass> */
4929 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwsuper>*/;
4932 /* method parser_prod#ASuperclass#n_kwsuper= for (self: Object, TKwsuper) */
4933 void VIRTUAL_parser_prod__ASuperclass__n_kwsuper_61d(val
* self
, val
* p0
) {
4934 parser_prod__ASuperclass__n_kwsuper_61d(self
, p0
);
4937 /* method parser_prod#ASuperclass#n_type= for (self: ASuperclass, AType) */
4938 void parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
4939 val
* var_node
/* var node: AType */;
4941 self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
= var_node
; /* _n_type on <self:ASuperclass> */
4942 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AType>*/;
4945 /* method parser_prod#ASuperclass#n_type= for (self: Object, AType) */
4946 void VIRTUAL_parser_prod__ASuperclass__n_type_61d(val
* self
, val
* p0
) {
4947 parser_prod__ASuperclass__n_type_61d(self
, p0
);
4950 /* method parser_prod#ASuperclass#n_annotations= for (self: ASuperclass, nullable AAnnotations) */
4951 void parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
4952 val
* var_node
/* var node: nullable AAnnotations */;
4953 val
* var
/* : null */;
4954 short int var1
/* : Bool */;
4956 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ASuperclass> */
4958 if (var_node
== NULL
) {
4959 var1
= 0; /* is null */
4961 var1
= 1; /* arg is null and recv is not */
4964 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
4969 /* method parser_prod#ASuperclass#n_annotations= for (self: Object, nullable AAnnotations) */
4970 void VIRTUAL_parser_prod__ASuperclass__n_annotations_61d(val
* self
, val
* p0
) {
4971 parser_prod__ASuperclass__n_annotations_61d(self
, p0
);
4974 /* method parser_prod#ASuperclass#visit_all for (self: ASuperclass, Visitor) */
4975 void parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
4976 val
* var_v
/* var v: Visitor */;
4977 val
* var
/* : TKwsuper */;
4978 val
* var1
/* : AType */;
4979 val
* var2
/* : nullable AAnnotations */;
4980 val
* var3
/* : null */;
4981 short int var4
/* : Bool */;
4982 val
* var5
/* : nullable AAnnotations */;
4984 var
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_kwsuper
].val
; /* _n_kwsuper on <self:ASuperclass> */
4986 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwsuper", "src/parser/parser_prod.nit", 1273);
4989 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var
) /* enter_visit on <var_v:Visitor>*/;
4990 var1
= self
->attrs
[COLOR_parser_nodes__ASuperclass___n_type
].val
; /* _n_type on <self:ASuperclass> */
4992 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_type", "src/parser/parser_prod.nit", 1274);
4995 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var1
) /* enter_visit on <var_v:Visitor>*/;
4996 var2
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
4999 var4
= 0; /* is null */
5001 var4
= 1; /* arg is null and recv is not */
5004 var5
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ASuperclass> */
5006 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1276);
5009 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var5
) /* enter_visit on <var_v:Visitor>*/;
5014 /* method parser_prod#ASuperclass#visit_all for (self: Object, Visitor) */
5015 void VIRTUAL_parser_prod__ASuperclass__visit_all(val
* self
, val
* p0
) {
5016 parser_prod__ASuperclass__visit_all(self
, p0
);
5019 /* method parser_prod#AAttrPropdef#empty_init for (self: AAttrPropdef) */
5020 void parser_prod__AAttrPropdef__empty_init(val
* self
) {
5023 /* method parser_prod#AAttrPropdef#empty_init for (self: Object) */
5024 void VIRTUAL_parser_prod__AAttrPropdef__empty_init(val
* self
) {
5025 parser_prod__AAttrPropdef__empty_init(self
);
5028 /* 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) */
5029 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
) {
5030 val
* var_n_doc
/* var n_doc: nullable ADoc */;
5031 val
* var_n_readable
/* var n_readable: nullable AAble */;
5032 val
* var_n_writable
/* var n_writable: nullable AAble */;
5033 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
5034 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
5035 val
* var_n_kwvar
/* var n_kwvar: nullable TKwvar */;
5036 val
* var_n_id
/* var n_id: nullable TAttrid */;
5037 val
* var_n_id2
/* var n_id2: nullable TId */;
5038 val
* var_n_type
/* var n_type: nullable AType */;
5039 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
5040 val
* var_n_expr
/* var n_expr: nullable AExpr */;
5041 val
* var
/* : null */;
5042 short int var1
/* : Bool */;
5043 val
* var2
/* : null */;
5044 short int var3
/* : Bool */;
5045 val
* var4
/* : null */;
5046 short int var5
/* : Bool */;
5047 val
* var6
/* : null */;
5048 short int var7
/* : Bool */;
5049 val
* var8
/* : null */;
5050 short int var9
/* : Bool */;
5051 val
* var10
/* : null */;
5052 short int var11
/* : Bool */;
5053 val
* var12
/* : null */;
5054 short int var13
/* : Bool */;
5055 val
* var14
/* : null */;
5056 short int var15
/* : Bool */;
5057 val
* var16
/* : null */;
5058 short int var17
/* : Bool */;
5060 var_n_readable
= p1
;
5061 var_n_writable
= p2
;
5063 var_n_visibility
= p4
;
5068 var_n_annotations
= p9
;
5070 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AAttrPropdef__empty_init
]))(self
) /* empty_init on <self:AAttrPropdef>*/;
5071 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAttrPropdef> */
5073 if (var_n_doc
== NULL
) {
5074 var1
= 0; /* is null */
5076 var1
= 1; /* arg is null and recv is not */
5079 ((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)>*/;
5082 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_n_readable
; /* _n_readable on <self:AAttrPropdef> */
5084 if (var_n_readable
== NULL
) {
5085 var3
= 0; /* is null */
5087 var3
= 1; /* arg is null and recv is not */
5090 ((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)>*/;
5093 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_n_writable
; /* _n_writable on <self:AAttrPropdef> */
5095 if (var_n_writable
== NULL
) {
5096 var5
= 0; /* is null */
5098 var5
= 1; /* arg is null and recv is not */
5101 ((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)>*/;
5104 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAttrPropdef> */
5106 if (var_n_kwredef
== NULL
) {
5107 var7
= 0; /* is null */
5109 var7
= 1; /* arg is null and recv is not */
5112 ((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)>*/;
5115 if (var_n_visibility
== NULL
) {
5116 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1314);
5119 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAttrPropdef> */
5120 if (var_n_visibility
== NULL
) {
5121 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1315);
5124 ((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>*/;
5126 if (var_n_kwvar
== NULL
) {
5127 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1316);
5130 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_n_kwvar
; /* _n_kwvar on <self:AAttrPropdef> */
5131 if (var_n_kwvar
== NULL
) {
5132 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1317);
5135 ((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>*/;
5137 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_n_id
; /* _n_id on <self:AAttrPropdef> */
5139 if (var_n_id
== NULL
) {
5140 var9
= 0; /* is null */
5142 var9
= 1; /* arg is null and recv is not */
5145 ((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)>*/;
5148 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_n_id2
; /* _n_id2 on <self:AAttrPropdef> */
5150 if (var_n_id2
== NULL
) {
5151 var11
= 0; /* is null */
5153 var11
= 1; /* arg is null and recv is not */
5156 ((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)>*/;
5159 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_n_type
; /* _n_type on <self:AAttrPropdef> */
5161 if (var_n_type
== NULL
) {
5162 var13
= 0; /* is null */
5164 var13
= 1; /* arg is null and recv is not */
5167 ((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)>*/;
5170 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAttrPropdef> */
5172 if (var_n_annotations
== NULL
) {
5173 var15
= 0; /* is null */
5175 var15
= 1; /* arg is null and recv is not */
5178 ((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)>*/;
5181 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AAttrPropdef> */
5183 if (var_n_expr
== NULL
) {
5184 var17
= 0; /* is null */
5186 var17
= 1; /* arg is null and recv is not */
5189 ((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)>*/;
5194 /* 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) */
5195 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
) {
5196 parser_prod__AAttrPropdef__init_aattrpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
, p9
, p10
);
5199 /* method parser_prod#AAttrPropdef#replace_child for (self: AAttrPropdef, ANode, nullable ANode) */
5200 void parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5201 val
* var_old_child
/* var old_child: ANode */;
5202 val
* var_new_child
/* var new_child: nullable ANode */;
5203 val
* var
/* : nullable ADoc */;
5204 short int var1
/* : Bool */;
5205 val
* var2
/* : null */;
5206 short int var3
/* : Bool */;
5207 short int var4
/* : Bool */;
5210 val
* var5
/* : null */;
5211 val
* var6
/* : nullable AAble */;
5212 short int var7
/* : Bool */;
5213 val
* var8
/* : null */;
5214 short int var9
/* : Bool */;
5215 short int var10
/* : Bool */;
5218 val
* var13
/* : null */;
5219 val
* var14
/* : nullable AAble */;
5220 short int var15
/* : Bool */;
5221 val
* var16
/* : null */;
5222 short int var17
/* : Bool */;
5223 short int var18
/* : Bool */;
5226 val
* var21
/* : null */;
5227 val
* var22
/* : nullable TKwredef */;
5228 short int var23
/* : Bool */;
5229 val
* var24
/* : null */;
5230 short int var25
/* : Bool */;
5231 short int var26
/* : Bool */;
5234 val
* var29
/* : null */;
5235 val
* var30
/* : AVisibility */;
5236 short int var31
/* : Bool */;
5237 val
* var32
/* : null */;
5238 short int var33
/* : Bool */;
5239 short int var34
/* : Bool */;
5242 val
* var37
/* : TKwvar */;
5243 short int var38
/* : Bool */;
5244 val
* var39
/* : null */;
5245 short int var40
/* : Bool */;
5246 short int var41
/* : Bool */;
5249 val
* var44
/* : nullable TAttrid */;
5250 short int var45
/* : Bool */;
5251 val
* var46
/* : null */;
5252 short int var47
/* : Bool */;
5253 short int var48
/* : Bool */;
5256 val
* var51
/* : null */;
5257 val
* var52
/* : nullable TId */;
5258 short int var53
/* : Bool */;
5259 val
* var54
/* : null */;
5260 short int var55
/* : Bool */;
5261 short int var56
/* : Bool */;
5264 val
* var59
/* : null */;
5265 val
* var60
/* : nullable AType */;
5266 short int var61
/* : Bool */;
5267 val
* var62
/* : null */;
5268 short int var63
/* : Bool */;
5269 short int var64
/* : Bool */;
5272 val
* var67
/* : null */;
5273 val
* var68
/* : nullable AAnnotations */;
5274 short int var69
/* : Bool */;
5275 val
* var70
/* : null */;
5276 short int var71
/* : Bool */;
5277 short int var72
/* : Bool */;
5280 val
* var75
/* : null */;
5281 val
* var76
/* : nullable AExpr */;
5282 short int var77
/* : Bool */;
5283 val
* var78
/* : null */;
5284 short int var79
/* : Bool */;
5285 short int var80
/* : Bool */;
5288 val
* var83
/* : null */;
5291 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5293 var1
= 0; /* <var_old_child:ANode> cannot be null */
5295 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
5299 if (var_new_child
== NULL
) {
5300 var3
= 0; /* is null */
5302 var3
= 1; /* arg is null and recv is not */
5305 ((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)>*/;
5306 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
5307 cltype
= type_parser_nodes__ADoc
.color
;
5308 idtype
= type_parser_nodes__ADoc
.id
;
5309 if(cltype
>= var_new_child
->type
->table_size
) {
5312 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
5315 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1345);
5318 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AAttrPropdef> */
5321 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AAttrPropdef> */
5326 var6
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
5328 var7
= 0; /* <var_old_child:ANode> cannot be null */
5330 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable AAble>*/;
5334 if (var_new_child
== NULL
) {
5335 var9
= 0; /* is null */
5337 var9
= 1; /* arg is null and recv is not */
5340 ((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)>*/;
5341 /* <var_new_child:nullable ANode(ANode)> isa AAble */
5342 cltype11
= type_parser_nodes__AAble
.color
;
5343 idtype12
= type_parser_nodes__AAble
.id
;
5344 if(cltype11
>= var_new_child
->type
->table_size
) {
5347 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
5350 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1355);
5353 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_new_child
; /* _n_readable on <self:AAttrPropdef> */
5356 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var13
; /* _n_readable on <self:AAttrPropdef> */
5361 var14
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
5362 if (var14
== NULL
) {
5363 var15
= 0; /* <var_old_child:ANode> cannot be null */
5365 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AAble>*/;
5369 if (var_new_child
== NULL
) {
5370 var17
= 0; /* is null */
5372 var17
= 1; /* arg is null and recv is not */
5375 ((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)>*/;
5376 /* <var_new_child:nullable ANode(ANode)> isa AAble */
5377 cltype19
= type_parser_nodes__AAble
.color
;
5378 idtype20
= type_parser_nodes__AAble
.id
;
5379 if(cltype19
>= var_new_child
->type
->table_size
) {
5382 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
5385 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1365);
5388 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_new_child
; /* _n_writable on <self:AAttrPropdef> */
5391 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var21
; /* _n_writable on <self:AAttrPropdef> */
5396 var22
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
5397 if (var22
== NULL
) {
5398 var23
= 0; /* <var_old_child:ANode> cannot be null */
5400 var23
= ((short int (*)(val
*, val
*))(var22
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var22
, var_old_child
) /* == on <var22:nullable TKwredef>*/;
5404 if (var_new_child
== NULL
) {
5405 var25
= 0; /* is null */
5407 var25
= 1; /* arg is null and recv is not */
5410 ((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)>*/;
5411 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
5412 cltype27
= type_parser_nodes__TKwredef
.color
;
5413 idtype28
= type_parser_nodes__TKwredef
.id
;
5414 if(cltype27
>= var_new_child
->type
->table_size
) {
5417 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
5420 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1375);
5423 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AAttrPropdef> */
5426 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var29
; /* _n_kwredef on <self:AAttrPropdef> */
5431 var30
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
5432 if (var30
== NULL
) {
5433 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 1382);
5436 var31
= ((short int (*)(val
*, val
*))(var30
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var30
, var_old_child
) /* == on <var30:AVisibility>*/;
5439 if (var_new_child
== NULL
) {
5440 var33
= 0; /* is null */
5442 var33
= 1; /* arg is null and recv is not */
5445 ((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)>*/;
5446 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
5447 cltype35
= type_parser_nodes__AVisibility
.color
;
5448 idtype36
= type_parser_nodes__AVisibility
.id
;
5449 if(cltype35
>= var_new_child
->type
->table_size
) {
5452 var34
= var_new_child
->type
->type_table
[cltype35
] == idtype36
;
5455 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1385);
5458 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AAttrPropdef> */
5460 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1388);
5466 var37
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
5467 if (var37
== NULL
) {
5468 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwvar", "src/parser/parser_prod.nit", 1392);
5471 var38
= ((short int (*)(val
*, val
*))(var37
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var37
, var_old_child
) /* == on <var37:TKwvar>*/;
5474 if (var_new_child
== NULL
) {
5475 var40
= 0; /* is null */
5477 var40
= 1; /* arg is null and recv is not */
5480 ((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)>*/;
5481 /* <var_new_child:nullable ANode(ANode)> isa TKwvar */
5482 cltype42
= type_parser_nodes__TKwvar
.color
;
5483 idtype43
= type_parser_nodes__TKwvar
.id
;
5484 if(cltype42
>= var_new_child
->type
->table_size
) {
5487 var41
= var_new_child
->type
->type_table
[cltype42
] == idtype43
;
5490 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1395);
5493 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_new_child
; /* _n_kwvar on <self:AAttrPropdef> */
5495 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1398);
5501 var44
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
5502 if (var44
== NULL
) {
5503 var45
= 0; /* <var_old_child:ANode> cannot be null */
5505 var45
= ((short int (*)(val
*, val
*))(var44
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var44
, var_old_child
) /* == on <var44:nullable TAttrid>*/;
5509 if (var_new_child
== NULL
) {
5510 var47
= 0; /* is null */
5512 var47
= 1; /* arg is null and recv is not */
5515 ((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)>*/;
5516 /* <var_new_child:nullable ANode(ANode)> isa TAttrid */
5517 cltype49
= type_parser_nodes__TAttrid
.color
;
5518 idtype50
= type_parser_nodes__TAttrid
.id
;
5519 if(cltype49
>= var_new_child
->type
->table_size
) {
5522 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
5525 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1405);
5528 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_new_child
; /* _n_id on <self:AAttrPropdef> */
5531 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var51
; /* _n_id on <self:AAttrPropdef> */
5536 var52
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
5537 if (var52
== NULL
) {
5538 var53
= 0; /* <var_old_child:ANode> cannot be null */
5540 var53
= ((short int (*)(val
*, val
*))(var52
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var52
, var_old_child
) /* == on <var52:nullable TId>*/;
5544 if (var_new_child
== NULL
) {
5545 var55
= 0; /* is null */
5547 var55
= 1; /* arg is null and recv is not */
5550 ((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)>*/;
5551 /* <var_new_child:nullable ANode(ANode)> isa TId */
5552 cltype57
= type_parser_nodes__TId
.color
;
5553 idtype58
= type_parser_nodes__TId
.id
;
5554 if(cltype57
>= var_new_child
->type
->table_size
) {
5557 var56
= var_new_child
->type
->type_table
[cltype57
] == idtype58
;
5560 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1415);
5563 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_new_child
; /* _n_id2 on <self:AAttrPropdef> */
5566 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var59
; /* _n_id2 on <self:AAttrPropdef> */
5571 var60
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
5572 if (var60
== NULL
) {
5573 var61
= 0; /* <var_old_child:ANode> cannot be null */
5575 var61
= ((short int (*)(val
*, val
*))(var60
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var60
, var_old_child
) /* == on <var60:nullable AType>*/;
5579 if (var_new_child
== NULL
) {
5580 var63
= 0; /* is null */
5582 var63
= 1; /* arg is null and recv is not */
5585 ((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)>*/;
5586 /* <var_new_child:nullable ANode(ANode)> isa AType */
5587 cltype65
= type_parser_nodes__AType
.color
;
5588 idtype66
= type_parser_nodes__AType
.id
;
5589 if(cltype65
>= var_new_child
->type
->table_size
) {
5592 var64
= var_new_child
->type
->type_table
[cltype65
] == idtype66
;
5595 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1425);
5598 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_new_child
; /* _n_type on <self:AAttrPropdef> */
5601 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var67
; /* _n_type on <self:AAttrPropdef> */
5606 var68
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
5607 if (var68
== NULL
) {
5608 var69
= 0; /* <var_old_child:ANode> cannot be null */
5610 var69
= ((short int (*)(val
*, val
*))(var68
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var68
, var_old_child
) /* == on <var68:nullable AAnnotations>*/;
5614 if (var_new_child
== NULL
) {
5615 var71
= 0; /* is null */
5617 var71
= 1; /* arg is null and recv is not */
5620 ((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)>*/;
5621 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
5622 cltype73
= type_parser_nodes__AAnnotations
.color
;
5623 idtype74
= type_parser_nodes__AAnnotations
.id
;
5624 if(cltype73
>= var_new_child
->type
->table_size
) {
5627 var72
= var_new_child
->type
->type_table
[cltype73
] == idtype74
;
5630 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1435);
5633 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AAttrPropdef> */
5636 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var75
; /* _n_annotations on <self:AAttrPropdef> */
5641 var76
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
5642 if (var76
== NULL
) {
5643 var77
= 0; /* <var_old_child:ANode> cannot be null */
5645 var77
= ((short int (*)(val
*, val
*))(var76
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var76
, var_old_child
) /* == on <var76:nullable AExpr>*/;
5649 if (var_new_child
== NULL
) {
5650 var79
= 0; /* is null */
5652 var79
= 1; /* arg is null and recv is not */
5655 ((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)>*/;
5656 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
5657 cltype81
= type_parser_nodes__AExpr
.color
;
5658 idtype82
= type_parser_nodes__AExpr
.id
;
5659 if(cltype81
>= var_new_child
->type
->table_size
) {
5662 var80
= var_new_child
->type
->type_table
[cltype81
] == idtype82
;
5665 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1445);
5668 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_new_child
; /* _n_expr on <self:AAttrPropdef> */
5671 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var83
; /* _n_expr on <self:AAttrPropdef> */
5678 /* method parser_prod#AAttrPropdef#replace_child for (self: Object, ANode, nullable ANode) */
5679 void VIRTUAL_parser_prod__AAttrPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
5680 parser_prod__AAttrPropdef__replace_child(self
, p0
, p1
);
5683 /* method parser_prod#AAttrPropdef#n_doc= for (self: AAttrPropdef, nullable ADoc) */
5684 void parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
5685 val
* var_node
/* var node: nullable ADoc */;
5686 val
* var
/* : null */;
5687 short int var1
/* : Bool */;
5689 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AAttrPropdef> */
5691 if (var_node
== NULL
) {
5692 var1
= 0; /* is null */
5694 var1
= 1; /* arg is null and recv is not */
5697 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
5702 /* method parser_prod#AAttrPropdef#n_doc= for (self: Object, nullable ADoc) */
5703 void VIRTUAL_parser_prod__AAttrPropdef__n_doc_61d(val
* self
, val
* p0
) {
5704 parser_prod__AAttrPropdef__n_doc_61d(self
, p0
);
5707 /* method parser_prod#AAttrPropdef#n_readable= for (self: AAttrPropdef, nullable AAble) */
5708 void parser_prod__AAttrPropdef__n_readable_61d(val
* self
, val
* p0
) {
5709 val
* var_node
/* var node: nullable AAble */;
5710 val
* var
/* : null */;
5711 short int var1
/* : Bool */;
5713 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
= var_node
; /* _n_readable on <self:AAttrPropdef> */
5715 if (var_node
== NULL
) {
5716 var1
= 0; /* is null */
5718 var1
= 1; /* arg is null and recv is not */
5721 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAble(AAble)>*/;
5726 /* method parser_prod#AAttrPropdef#n_readable= for (self: Object, nullable AAble) */
5727 void VIRTUAL_parser_prod__AAttrPropdef__n_readable_61d(val
* self
, val
* p0
) {
5728 parser_prod__AAttrPropdef__n_readable_61d(self
, p0
);
5731 /* method parser_prod#AAttrPropdef#n_writable= for (self: AAttrPropdef, nullable AAble) */
5732 void parser_prod__AAttrPropdef__n_writable_61d(val
* self
, val
* p0
) {
5733 val
* var_node
/* var node: nullable AAble */;
5734 val
* var
/* : null */;
5735 short int var1
/* : Bool */;
5737 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
= var_node
; /* _n_writable on <self:AAttrPropdef> */
5739 if (var_node
== NULL
) {
5740 var1
= 0; /* is null */
5742 var1
= 1; /* arg is null and recv is not */
5745 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAble(AAble)>*/;
5750 /* method parser_prod#AAttrPropdef#n_writable= for (self: Object, nullable AAble) */
5751 void VIRTUAL_parser_prod__AAttrPropdef__n_writable_61d(val
* self
, val
* p0
) {
5752 parser_prod__AAttrPropdef__n_writable_61d(self
, p0
);
5755 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: AAttrPropdef, nullable TKwredef) */
5756 void parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
5757 val
* var_node
/* var node: nullable TKwredef */;
5758 val
* var
/* : null */;
5759 short int var1
/* : Bool */;
5761 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAttrPropdef> */
5763 if (var_node
== NULL
) {
5764 var1
= 0; /* is null */
5766 var1
= 1; /* arg is null and recv is not */
5769 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
5774 /* method parser_prod#AAttrPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
5775 void VIRTUAL_parser_prod__AAttrPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
5776 parser_prod__AAttrPropdef__n_kwredef_61d(self
, p0
);
5779 /* method parser_prod#AAttrPropdef#n_visibility= for (self: AAttrPropdef, AVisibility) */
5780 void parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
5781 val
* var_node
/* var node: AVisibility */;
5783 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAttrPropdef> */
5784 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:AVisibility>*/;
5787 /* method parser_prod#AAttrPropdef#n_visibility= for (self: Object, AVisibility) */
5788 void VIRTUAL_parser_prod__AAttrPropdef__n_visibility_61d(val
* self
, val
* p0
) {
5789 parser_prod__AAttrPropdef__n_visibility_61d(self
, p0
);
5792 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: AAttrPropdef, TKwvar) */
5793 void parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
5794 val
* var_node
/* var node: TKwvar */;
5796 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
= var_node
; /* _n_kwvar on <self:AAttrPropdef> */
5797 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwvar>*/;
5800 /* method parser_prod#AAttrPropdef#n_kwvar= for (self: Object, TKwvar) */
5801 void VIRTUAL_parser_prod__AAttrPropdef__n_kwvar_61d(val
* self
, val
* p0
) {
5802 parser_prod__AAttrPropdef__n_kwvar_61d(self
, p0
);
5805 /* method parser_prod#AAttrPropdef#n_id= for (self: AAttrPropdef, nullable TAttrid) */
5806 void parser_prod__AAttrPropdef__n_id_61d(val
* self
, val
* p0
) {
5807 val
* var_node
/* var node: nullable TAttrid */;
5808 val
* var
/* : null */;
5809 short int var1
/* : Bool */;
5811 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
= var_node
; /* _n_id on <self:AAttrPropdef> */
5813 if (var_node
== NULL
) {
5814 var1
= 0; /* is null */
5816 var1
= 1; /* arg is null and recv is not */
5819 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TAttrid(TAttrid)>*/;
5824 /* method parser_prod#AAttrPropdef#n_id= for (self: Object, nullable TAttrid) */
5825 void VIRTUAL_parser_prod__AAttrPropdef__n_id_61d(val
* self
, val
* p0
) {
5826 parser_prod__AAttrPropdef__n_id_61d(self
, p0
);
5829 /* method parser_prod#AAttrPropdef#n_id2= for (self: AAttrPropdef, nullable TId) */
5830 void parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
5831 val
* var_node
/* var node: nullable TId */;
5832 val
* var
/* : null */;
5833 short int var1
/* : Bool */;
5835 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
= var_node
; /* _n_id2 on <self:AAttrPropdef> */
5837 if (var_node
== NULL
) {
5838 var1
= 0; /* is null */
5840 var1
= 1; /* arg is null and recv is not */
5843 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TId(TId)>*/;
5848 /* method parser_prod#AAttrPropdef#n_id2= for (self: Object, nullable TId) */
5849 void VIRTUAL_parser_prod__AAttrPropdef__n_id2_61d(val
* self
, val
* p0
) {
5850 parser_prod__AAttrPropdef__n_id2_61d(self
, p0
);
5853 /* method parser_prod#AAttrPropdef#n_type= for (self: AAttrPropdef, nullable AType) */
5854 void parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
5855 val
* var_node
/* var node: nullable AType */;
5856 val
* var
/* : null */;
5857 short int var1
/* : Bool */;
5859 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
= var_node
; /* _n_type on <self:AAttrPropdef> */
5861 if (var_node
== NULL
) {
5862 var1
= 0; /* is null */
5864 var1
= 1; /* arg is null and recv is not */
5867 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AType(AType)>*/;
5872 /* method parser_prod#AAttrPropdef#n_type= for (self: Object, nullable AType) */
5873 void VIRTUAL_parser_prod__AAttrPropdef__n_type_61d(val
* self
, val
* p0
) {
5874 parser_prod__AAttrPropdef__n_type_61d(self
, p0
);
5877 /* method parser_prod#AAttrPropdef#n_annotations= for (self: AAttrPropdef, nullable AAnnotations) */
5878 void parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
5879 val
* var_node
/* var node: nullable AAnnotations */;
5880 val
* var
/* : null */;
5881 short int var1
/* : Bool */;
5883 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAttrPropdef> */
5885 if (var_node
== NULL
) {
5886 var1
= 0; /* is null */
5888 var1
= 1; /* arg is null and recv is not */
5891 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
5896 /* method parser_prod#AAttrPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
5897 void VIRTUAL_parser_prod__AAttrPropdef__n_annotations_61d(val
* self
, val
* p0
) {
5898 parser_prod__AAttrPropdef__n_annotations_61d(self
, p0
);
5901 /* method parser_prod#AAttrPropdef#n_expr= for (self: AAttrPropdef, nullable AExpr) */
5902 void parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
5903 val
* var_node
/* var node: nullable AExpr */;
5904 val
* var
/* : null */;
5905 short int var1
/* : Bool */;
5907 self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
= var_node
; /* _n_expr on <self:AAttrPropdef> */
5909 if (var_node
== NULL
) {
5910 var1
= 0; /* is null */
5912 var1
= 1; /* arg is null and recv is not */
5915 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExpr(AExpr)>*/;
5920 /* method parser_prod#AAttrPropdef#n_expr= for (self: Object, nullable AExpr) */
5921 void VIRTUAL_parser_prod__AAttrPropdef__n_expr_61d(val
* self
, val
* p0
) {
5922 parser_prod__AAttrPropdef__n_expr_61d(self
, p0
);
5925 /* method parser_prod#AAttrPropdef#visit_all for (self: AAttrPropdef, Visitor) */
5926 void parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
5927 val
* var_v
/* var v: Visitor */;
5928 val
* var
/* : nullable ADoc */;
5929 val
* var1
/* : null */;
5930 short int var2
/* : Bool */;
5931 val
* var3
/* : nullable ADoc */;
5932 val
* var4
/* : nullable AAble */;
5933 val
* var5
/* : null */;
5934 short int var6
/* : Bool */;
5935 val
* var7
/* : nullable AAble */;
5936 val
* var8
/* : nullable AAble */;
5937 val
* var9
/* : null */;
5938 short int var10
/* : Bool */;
5939 val
* var11
/* : nullable AAble */;
5940 val
* var12
/* : nullable TKwredef */;
5941 val
* var13
/* : null */;
5942 short int var14
/* : Bool */;
5943 val
* var15
/* : nullable TKwredef */;
5944 val
* var16
/* : AVisibility */;
5945 val
* var17
/* : TKwvar */;
5946 val
* var18
/* : nullable TAttrid */;
5947 val
* var19
/* : null */;
5948 short int var20
/* : Bool */;
5949 val
* var21
/* : nullable TAttrid */;
5950 val
* var22
/* : nullable TId */;
5951 val
* var23
/* : null */;
5952 short int var24
/* : Bool */;
5953 val
* var25
/* : nullable TId */;
5954 val
* var26
/* : nullable AType */;
5955 val
* var27
/* : null */;
5956 short int var28
/* : Bool */;
5957 val
* var29
/* : nullable AType */;
5958 val
* var30
/* : nullable AAnnotations */;
5959 val
* var31
/* : null */;
5960 short int var32
/* : Bool */;
5961 val
* var33
/* : nullable AAnnotations */;
5962 val
* var34
/* : nullable AExpr */;
5963 val
* var35
/* : null */;
5964 short int var36
/* : Bool */;
5965 val
* var37
/* : nullable AExpr */;
5967 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5970 var2
= 0; /* is null */
5972 var2
= 1; /* arg is null and recv is not */
5975 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AAttrPropdef> */
5977 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1532);
5980 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
5983 var4
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
5986 var6
= 0; /* is null */
5988 var6
= 1; /* arg is null and recv is not */
5991 var7
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_readable
].val
; /* _n_readable on <self:AAttrPropdef> */
5993 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1535);
5996 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
5999 var8
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
6002 var10
= 0; /* is null */
6004 var10
= 1; /* arg is null and recv is not */
6007 var11
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_writable
].val
; /* _n_writable on <self:AAttrPropdef> */
6008 if (var11
== NULL
) {
6009 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1538);
6012 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
6015 var12
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6017 if (var12
== NULL
) {
6018 var14
= 0; /* is null */
6020 var14
= 1; /* arg is null and recv is not */
6023 var15
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AAttrPropdef> */
6024 if (var15
== NULL
) {
6025 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1541);
6028 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
6031 var16
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_visibility
].val
; /* _n_visibility on <self:AAttrPropdef> */
6032 if (var16
== NULL
) {
6033 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_visibility", "src/parser/parser_prod.nit", 1543);
6036 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var16
) /* enter_visit on <var_v:Visitor>*/;
6037 var17
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_kwvar
].val
; /* _n_kwvar on <self:AAttrPropdef> */
6038 if (var17
== NULL
) {
6039 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwvar", "src/parser/parser_prod.nit", 1544);
6042 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var17
) /* enter_visit on <var_v:Visitor>*/;
6043 var18
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
6045 if (var18
== NULL
) {
6046 var20
= 0; /* is null */
6048 var20
= 1; /* arg is null and recv is not */
6051 var21
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id
].val
; /* _n_id on <self:AAttrPropdef> */
6052 if (var21
== NULL
) {
6053 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1546);
6056 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var21
) /* enter_visit on <var_v:Visitor>*/;
6059 var22
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6061 if (var22
== NULL
) {
6062 var24
= 0; /* is null */
6064 var24
= 1; /* arg is null and recv is not */
6067 var25
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_id2
].val
; /* _n_id2 on <self:AAttrPropdef> */
6068 if (var25
== NULL
) {
6069 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1549);
6072 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var25
) /* enter_visit on <var_v:Visitor>*/;
6075 var26
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6077 if (var26
== NULL
) {
6078 var28
= 0; /* is null */
6080 var28
= 1; /* arg is null and recv is not */
6083 var29
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_type
].val
; /* _n_type on <self:AAttrPropdef> */
6084 if (var29
== NULL
) {
6085 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1552);
6088 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var29
) /* enter_visit on <var_v:Visitor>*/;
6091 var30
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6093 if (var30
== NULL
) {
6094 var32
= 0; /* is null */
6096 var32
= 1; /* arg is null and recv is not */
6099 var33
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAttrPropdef> */
6100 if (var33
== NULL
) {
6101 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1555);
6104 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var33
) /* enter_visit on <var_v:Visitor>*/;
6107 var34
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6109 if (var34
== NULL
) {
6110 var36
= 0; /* is null */
6112 var36
= 1; /* arg is null and recv is not */
6115 var37
= self
->attrs
[COLOR_parser_nodes__AAttrPropdef___n_expr
].val
; /* _n_expr on <self:AAttrPropdef> */
6116 if (var37
== NULL
) {
6117 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1558);
6120 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var37
) /* enter_visit on <var_v:Visitor>*/;
6125 /* method parser_prod#AAttrPropdef#visit_all for (self: Object, Visitor) */
6126 void VIRTUAL_parser_prod__AAttrPropdef__visit_all(val
* self
, val
* p0
) {
6127 parser_prod__AAttrPropdef__visit_all(self
, p0
);
6130 /* method parser_prod#AMethPropdef#empty_init for (self: AMethPropdef) */
6131 void parser_prod__AMethPropdef__empty_init(val
* self
) {
6134 /* method parser_prod#AMethPropdef#empty_init for (self: Object) */
6135 void VIRTUAL_parser_prod__AMethPropdef__empty_init(val
* self
) {
6136 parser_prod__AMethPropdef__empty_init(self
);
6139 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: AMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AMethid, nullable ASignature) */
6140 void parser_prod__AMethPropdef__init_amethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
6141 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6142 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6143 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6144 val
* var_n_methid
/* var n_methid: nullable AMethid */;
6145 val
* var_n_signature
/* var n_signature: nullable ASignature */;
6146 val
* var
/* : null */;
6147 short int var1
/* : Bool */;
6148 val
* var2
/* : null */;
6149 short int var3
/* : Bool */;
6152 var_n_visibility
= p2
;
6154 var_n_signature
= p4
;
6155 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AMethPropdef__empty_init
]))(self
) /* empty_init on <self:AMethPropdef>*/;
6156 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AMethPropdef> */
6158 if (var_n_doc
== NULL
) {
6159 var1
= 0; /* is null */
6161 var1
= 1; /* arg is null and recv is not */
6164 ((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)>*/;
6167 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AMethPropdef> */
6169 if (var_n_kwredef
== NULL
) {
6170 var3
= 0; /* is null */
6172 var3
= 1; /* arg is null and recv is not */
6175 ((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)>*/;
6178 if (var_n_visibility
== NULL
) {
6179 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1582);
6182 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AMethPropdef> */
6183 if (var_n_visibility
== NULL
) {
6184 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1583);
6187 ((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>*/;
6189 if (var_n_methid
== NULL
) {
6190 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1584);
6193 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AMethPropdef> */
6194 if (var_n_methid
== NULL
) {
6195 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1585);
6198 ((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>*/;
6200 if (var_n_signature
== NULL
) {
6201 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1586);
6204 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AMethPropdef> */
6205 if (var_n_signature
== NULL
) {
6206 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1587);
6209 ((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>*/;
6213 /* method parser_prod#AMethPropdef#init_amethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AMethid, nullable ASignature) */
6214 void VIRTUAL_parser_prod__AMethPropdef__init_amethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
) {
6215 parser_prod__AMethPropdef__init_amethpropdef(self
, p0
, p1
, p2
, p3
, p4
);
6218 /* method parser_prod#AMethPropdef#replace_child for (self: AMethPropdef, ANode, nullable ANode) */
6219 void parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6220 val
* var_old_child
/* var old_child: ANode */;
6221 val
* var_new_child
/* var new_child: nullable ANode */;
6222 val
* var
/* : nullable ADoc */;
6223 short int var1
/* : Bool */;
6224 val
* var2
/* : null */;
6225 short int var3
/* : Bool */;
6226 short int var4
/* : Bool */;
6229 val
* var5
/* : null */;
6230 val
* var6
/* : nullable TKwredef */;
6231 short int var7
/* : Bool */;
6232 val
* var8
/* : null */;
6233 short int var9
/* : Bool */;
6234 short int var10
/* : Bool */;
6237 val
* var13
/* : null */;
6238 val
* var14
/* : nullable AVisibility */;
6239 short int var15
/* : Bool */;
6240 val
* var16
/* : null */;
6241 short int var17
/* : Bool */;
6242 short int var18
/* : Bool */;
6245 val
* var21
/* : nullable AMethid */;
6246 short int var22
/* : Bool */;
6247 val
* var23
/* : null */;
6248 short int var24
/* : Bool */;
6249 short int var25
/* : Bool */;
6252 val
* var28
/* : nullable ASignature */;
6253 short int var29
/* : Bool */;
6254 val
* var30
/* : null */;
6255 short int var31
/* : Bool */;
6256 short int var32
/* : Bool */;
6261 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6263 var1
= 0; /* <var_old_child:ANode> cannot be null */
6265 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
6269 if (var_new_child
== NULL
) {
6270 var3
= 0; /* is null */
6272 var3
= 1; /* arg is null and recv is not */
6275 ((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)>*/;
6276 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
6277 cltype
= type_parser_nodes__ADoc
.color
;
6278 idtype
= type_parser_nodes__ADoc
.id
;
6279 if(cltype
>= var_new_child
->type
->table_size
) {
6282 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6285 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1595);
6288 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AMethPropdef> */
6291 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AMethPropdef> */
6296 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6298 var7
= 0; /* <var_old_child:ANode> cannot be null */
6300 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
6304 if (var_new_child
== NULL
) {
6305 var9
= 0; /* is null */
6307 var9
= 1; /* arg is null and recv is not */
6310 ((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)>*/;
6311 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
6312 cltype11
= type_parser_nodes__TKwredef
.color
;
6313 idtype12
= type_parser_nodes__TKwredef
.id
;
6314 if(cltype11
>= var_new_child
->type
->table_size
) {
6317 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
6320 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1605);
6323 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AMethPropdef> */
6326 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AMethPropdef> */
6331 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
6332 if (var14
== NULL
) {
6333 var15
= 0; /* <var_old_child:ANode> cannot be null */
6335 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
6339 if (var_new_child
== NULL
) {
6340 var17
= 0; /* is null */
6342 var17
= 1; /* arg is null and recv is not */
6345 ((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)>*/;
6346 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
6347 cltype19
= type_parser_nodes__AVisibility
.color
;
6348 idtype20
= type_parser_nodes__AVisibility
.id
;
6349 if(cltype19
>= var_new_child
->type
->table_size
) {
6352 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
6355 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1615);
6358 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AMethPropdef> */
6360 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1618);
6366 var21
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
6367 if (var21
== NULL
) {
6368 var22
= 0; /* <var_old_child:ANode> cannot be null */
6370 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:nullable AMethid>*/;
6374 if (var_new_child
== NULL
) {
6375 var24
= 0; /* is null */
6377 var24
= 1; /* arg is null and recv is not */
6380 ((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)>*/;
6381 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
6382 cltype26
= type_parser_nodes__AMethid
.color
;
6383 idtype27
= type_parser_nodes__AMethid
.id
;
6384 if(cltype26
>= var_new_child
->type
->table_size
) {
6387 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
6390 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1625);
6393 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AMethPropdef> */
6395 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1628);
6401 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
6402 if (var28
== NULL
) {
6403 var29
= 0; /* <var_old_child:ANode> cannot be null */
6405 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable ASignature>*/;
6409 if (var_new_child
== NULL
) {
6410 var31
= 0; /* is null */
6412 var31
= 1; /* arg is null and recv is not */
6415 ((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)>*/;
6416 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
6417 cltype33
= type_parser_nodes__ASignature
.color
;
6418 idtype34
= type_parser_nodes__ASignature
.id
;
6419 if(cltype33
>= var_new_child
->type
->table_size
) {
6422 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
6425 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1635);
6428 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AMethPropdef> */
6430 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1638);
6438 /* method parser_prod#AMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
6439 void VIRTUAL_parser_prod__AMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6440 parser_prod__AMethPropdef__replace_child(self
, p0
, p1
);
6443 /* method parser_prod#AMethPropdef#n_doc= for (self: AMethPropdef, nullable ADoc) */
6444 void parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
6445 val
* var_node
/* var node: nullable ADoc */;
6446 val
* var
/* : null */;
6447 short int var1
/* : Bool */;
6449 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AMethPropdef> */
6451 if (var_node
== NULL
) {
6452 var1
= 0; /* is null */
6454 var1
= 1; /* arg is null and recv is not */
6457 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
6462 /* method parser_prod#AMethPropdef#n_doc= for (self: Object, nullable ADoc) */
6463 void VIRTUAL_parser_prod__AMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
6464 parser_prod__AMethPropdef__n_doc_61d(self
, p0
);
6467 /* method parser_prod#AMethPropdef#n_kwredef= for (self: AMethPropdef, nullable TKwredef) */
6468 void parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6469 val
* var_node
/* var node: nullable TKwredef */;
6470 val
* var
/* : null */;
6471 short int var1
/* : Bool */;
6473 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AMethPropdef> */
6475 if (var_node
== NULL
) {
6476 var1
= 0; /* is null */
6478 var1
= 1; /* arg is null and recv is not */
6481 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
6486 /* method parser_prod#AMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
6487 void VIRTUAL_parser_prod__AMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
6488 parser_prod__AMethPropdef__n_kwredef_61d(self
, p0
);
6491 /* method parser_prod#AMethPropdef#n_visibility= for (self: AMethPropdef, nullable AVisibility) */
6492 void parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6493 val
* var_node
/* var node: nullable AVisibility */;
6495 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AMethPropdef> */
6496 if (var_node
== NULL
) {
6497 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1661);
6500 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
6504 /* method parser_prod#AMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
6505 void VIRTUAL_parser_prod__AMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
6506 parser_prod__AMethPropdef__n_visibility_61d(self
, p0
);
6509 /* method parser_prod#AMethPropdef#n_methid= for (self: AMethPropdef, nullable AMethid) */
6510 void parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
6511 val
* var_node
/* var node: nullable AMethid */;
6513 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AMethPropdef> */
6514 if (var_node
== NULL
) {
6515 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1666);
6518 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
6522 /* method parser_prod#AMethPropdef#n_methid= for (self: Object, nullable AMethid) */
6523 void VIRTUAL_parser_prod__AMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
6524 parser_prod__AMethPropdef__n_methid_61d(self
, p0
);
6527 /* method parser_prod#AMethPropdef#n_signature= for (self: AMethPropdef, nullable ASignature) */
6528 void parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
6529 val
* var_node
/* var node: nullable ASignature */;
6531 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AMethPropdef> */
6532 if (var_node
== NULL
) {
6533 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1671);
6536 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
6540 /* method parser_prod#AMethPropdef#n_signature= for (self: Object, nullable ASignature) */
6541 void VIRTUAL_parser_prod__AMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
6542 parser_prod__AMethPropdef__n_signature_61d(self
, p0
);
6545 /* method parser_prod#AMethPropdef#visit_all for (self: AMethPropdef, Visitor) */
6546 void parser_prod__AMethPropdef__visit_all(val
* self
, val
* p0
) {
6547 val
* var_v
/* var v: Visitor */;
6548 val
* var
/* : nullable ADoc */;
6549 val
* var1
/* : null */;
6550 short int var2
/* : Bool */;
6551 val
* var3
/* : nullable ADoc */;
6552 val
* var4
/* : nullable TKwredef */;
6553 val
* var5
/* : null */;
6554 short int var6
/* : Bool */;
6555 val
* var7
/* : nullable TKwredef */;
6556 val
* var8
/* : nullable AVisibility */;
6557 val
* var9
/* : nullable AMethid */;
6558 val
* var10
/* : nullable ASignature */;
6560 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6563 var2
= 0; /* is null */
6565 var2
= 1; /* arg is null and recv is not */
6568 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AMethPropdef> */
6570 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1678);
6573 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
6576 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6579 var6
= 0; /* is null */
6581 var6
= 1; /* arg is null and recv is not */
6584 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AMethPropdef> */
6586 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1681);
6589 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
6592 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AMethPropdef> */
6593 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
6594 var9
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AMethPropdef> */
6595 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
6596 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AMethPropdef> */
6597 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
6600 /* method parser_prod#AMethPropdef#visit_all for (self: Object, Visitor) */
6601 void VIRTUAL_parser_prod__AMethPropdef__visit_all(val
* self
, val
* p0
) {
6602 parser_prod__AMethPropdef__visit_all(self
, p0
);
6605 /* method parser_prod#ADeferredMethPropdef#empty_init for (self: ADeferredMethPropdef) */
6606 void parser_prod__ADeferredMethPropdef__empty_init(val
* self
) {
6609 /* method parser_prod#ADeferredMethPropdef#empty_init for (self: Object) */
6610 void VIRTUAL_parser_prod__ADeferredMethPropdef__empty_init(val
* self
) {
6611 parser_prod__ADeferredMethPropdef__empty_init(self
);
6614 /* method parser_prod#ADeferredMethPropdef#init_adeferredmethpropdef for (self: ADeferredMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations) */
6615 void parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
6616 val
* var_n_doc
/* var n_doc: nullable ADoc */;
6617 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
6618 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
6619 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
6620 val
* var_n_methid
/* var n_methid: nullable AMethid */;
6621 val
* var_n_signature
/* var n_signature: nullable ASignature */;
6622 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
6623 val
* var
/* : null */;
6624 short int var1
/* : Bool */;
6625 val
* var2
/* : null */;
6626 short int var3
/* : Bool */;
6627 val
* var4
/* : null */;
6628 short int var5
/* : Bool */;
6631 var_n_visibility
= p2
;
6634 var_n_signature
= p5
;
6635 var_n_annotations
= p6
;
6636 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__ADeferredMethPropdef__empty_init
]))(self
) /* empty_init on <self:ADeferredMethPropdef>*/;
6637 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:ADeferredMethPropdef> */
6639 if (var_n_doc
== NULL
) {
6640 var1
= 0; /* is null */
6642 var1
= 1; /* arg is null and recv is not */
6645 ((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)>*/;
6648 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:ADeferredMethPropdef> */
6650 if (var_n_kwredef
== NULL
) {
6651 var3
= 0; /* is null */
6653 var3
= 1; /* arg is null and recv is not */
6656 ((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)>*/;
6659 if (var_n_visibility
== NULL
) {
6660 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1710);
6663 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:ADeferredMethPropdef> */
6664 if (var_n_visibility
== NULL
) {
6665 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1711);
6668 ((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>*/;
6670 if (var_n_kwmeth
== NULL
) {
6671 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1712);
6674 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
6675 if (var_n_kwmeth
== NULL
) {
6676 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1713);
6679 ((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>*/;
6681 if (var_n_methid
== NULL
) {
6682 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1714);
6685 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:ADeferredMethPropdef> */
6686 if (var_n_methid
== NULL
) {
6687 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1715);
6690 ((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>*/;
6692 if (var_n_signature
== NULL
) {
6693 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1716);
6696 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:ADeferredMethPropdef> */
6697 if (var_n_signature
== NULL
) {
6698 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1717);
6701 ((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>*/;
6703 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:ADeferredMethPropdef> */
6705 if (var_n_annotations
== NULL
) {
6706 var5
= 0; /* is null */
6708 var5
= 1; /* arg is null and recv is not */
6711 ((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)>*/;
6716 /* method parser_prod#ADeferredMethPropdef#init_adeferredmethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature, nullable AAnnotations) */
6717 void VIRTUAL_parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
) {
6718 parser_prod__ADeferredMethPropdef__init_adeferredmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
);
6721 /* method parser_prod#ADeferredMethPropdef#replace_child for (self: ADeferredMethPropdef, ANode, nullable ANode) */
6722 void parser_prod__ADeferredMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
6723 val
* var_old_child
/* var old_child: ANode */;
6724 val
* var_new_child
/* var new_child: nullable ANode */;
6725 val
* var
/* : nullable ADoc */;
6726 short int var1
/* : Bool */;
6727 val
* var2
/* : null */;
6728 short int var3
/* : Bool */;
6729 short int var4
/* : Bool */;
6732 val
* var5
/* : null */;
6733 val
* var6
/* : nullable TKwredef */;
6734 short int var7
/* : Bool */;
6735 val
* var8
/* : null */;
6736 short int var9
/* : Bool */;
6737 short int var10
/* : Bool */;
6740 val
* var13
/* : null */;
6741 val
* var14
/* : nullable AVisibility */;
6742 short int var15
/* : Bool */;
6743 val
* var16
/* : null */;
6744 short int var17
/* : Bool */;
6745 short int var18
/* : Bool */;
6748 val
* var21
/* : TKwmeth */;
6749 short int var22
/* : Bool */;
6750 val
* var23
/* : null */;
6751 short int var24
/* : Bool */;
6752 short int var25
/* : Bool */;
6755 val
* var28
/* : nullable AMethid */;
6756 short int var29
/* : Bool */;
6757 val
* var30
/* : null */;
6758 short int var31
/* : Bool */;
6759 short int var32
/* : Bool */;
6762 val
* var35
/* : nullable ASignature */;
6763 short int var36
/* : Bool */;
6764 val
* var37
/* : null */;
6765 short int var38
/* : Bool */;
6766 short int var39
/* : Bool */;
6769 val
* var42
/* : nullable AAnnotations */;
6770 short int var43
/* : Bool */;
6771 val
* var44
/* : null */;
6772 short int var45
/* : Bool */;
6773 short int var46
/* : Bool */;
6776 val
* var49
/* : null */;
6779 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
6781 var1
= 0; /* <var_old_child:ANode> cannot be null */
6783 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
6787 if (var_new_child
== NULL
) {
6788 var3
= 0; /* is null */
6790 var3
= 1; /* arg is null and recv is not */
6793 ((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)>*/;
6794 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
6795 cltype
= type_parser_nodes__ADoc
.color
;
6796 idtype
= type_parser_nodes__ADoc
.id
;
6797 if(cltype
>= var_new_child
->type
->table_size
) {
6800 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
6803 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1729);
6806 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:ADeferredMethPropdef> */
6809 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:ADeferredMethPropdef> */
6814 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
6816 var7
= 0; /* <var_old_child:ANode> cannot be null */
6818 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
6822 if (var_new_child
== NULL
) {
6823 var9
= 0; /* is null */
6825 var9
= 1; /* arg is null and recv is not */
6828 ((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)>*/;
6829 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
6830 cltype11
= type_parser_nodes__TKwredef
.color
;
6831 idtype12
= type_parser_nodes__TKwredef
.id
;
6832 if(cltype11
>= var_new_child
->type
->table_size
) {
6835 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
6838 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1739);
6841 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:ADeferredMethPropdef> */
6844 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:ADeferredMethPropdef> */
6849 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:ADeferredMethPropdef> */
6850 if (var14
== NULL
) {
6851 var15
= 0; /* <var_old_child:ANode> cannot be null */
6853 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
6857 if (var_new_child
== NULL
) {
6858 var17
= 0; /* is null */
6860 var17
= 1; /* arg is null and recv is not */
6863 ((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)>*/;
6864 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
6865 cltype19
= type_parser_nodes__AVisibility
.color
;
6866 idtype20
= type_parser_nodes__AVisibility
.id
;
6867 if(cltype19
>= var_new_child
->type
->table_size
) {
6870 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
6873 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1749);
6876 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:ADeferredMethPropdef> */
6878 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1752);
6884 var21
= self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
6885 if (var21
== NULL
) {
6886 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 1756);
6889 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
6892 if (var_new_child
== NULL
) {
6893 var24
= 0; /* is null */
6895 var24
= 1; /* arg is null and recv is not */
6898 ((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)>*/;
6899 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
6900 cltype26
= type_parser_nodes__TKwmeth
.color
;
6901 idtype27
= type_parser_nodes__TKwmeth
.id
;
6902 if(cltype26
>= var_new_child
->type
->table_size
) {
6905 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
6908 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1759);
6911 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
6913 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1762);
6919 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:ADeferredMethPropdef> */
6920 if (var28
== NULL
) {
6921 var29
= 0; /* <var_old_child:ANode> cannot be null */
6923 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
6927 if (var_new_child
== NULL
) {
6928 var31
= 0; /* is null */
6930 var31
= 1; /* arg is null and recv is not */
6933 ((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)>*/;
6934 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
6935 cltype33
= type_parser_nodes__AMethid
.color
;
6936 idtype34
= type_parser_nodes__AMethid
.id
;
6937 if(cltype33
>= var_new_child
->type
->table_size
) {
6940 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
6943 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1769);
6946 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:ADeferredMethPropdef> */
6948 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1772);
6954 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:ADeferredMethPropdef> */
6955 if (var35
== NULL
) {
6956 var36
= 0; /* <var_old_child:ANode> cannot be null */
6958 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
6962 if (var_new_child
== NULL
) {
6963 var38
= 0; /* is null */
6965 var38
= 1; /* arg is null and recv is not */
6968 ((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)>*/;
6969 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
6970 cltype40
= type_parser_nodes__ASignature
.color
;
6971 idtype41
= type_parser_nodes__ASignature
.id
;
6972 if(cltype40
>= var_new_child
->type
->table_size
) {
6975 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
6978 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1779);
6981 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:ADeferredMethPropdef> */
6983 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1782);
6989 var42
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
6990 if (var42
== NULL
) {
6991 var43
= 0; /* <var_old_child:ANode> cannot be null */
6993 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable AAnnotations>*/;
6997 if (var_new_child
== NULL
) {
6998 var45
= 0; /* is null */
7000 var45
= 1; /* arg is null and recv is not */
7003 ((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)>*/;
7004 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
7005 cltype47
= type_parser_nodes__AAnnotations
.color
;
7006 idtype48
= type_parser_nodes__AAnnotations
.id
;
7007 if(cltype47
>= var_new_child
->type
->table_size
) {
7010 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
7013 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1789);
7016 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:ADeferredMethPropdef> */
7019 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var49
; /* _n_annotations on <self:ADeferredMethPropdef> */
7026 /* method parser_prod#ADeferredMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
7027 void VIRTUAL_parser_prod__ADeferredMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7028 parser_prod__ADeferredMethPropdef__replace_child(self
, p0
, p1
);
7031 /* method parser_prod#ADeferredMethPropdef#n_doc= for (self: ADeferredMethPropdef, nullable ADoc) */
7032 void parser_prod__ADeferredMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7033 val
* var_node
/* var node: nullable ADoc */;
7034 val
* var
/* : null */;
7035 short int var1
/* : Bool */;
7037 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:ADeferredMethPropdef> */
7039 if (var_node
== NULL
) {
7040 var1
= 0; /* is null */
7042 var1
= 1; /* arg is null and recv is not */
7045 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
7050 /* method parser_prod#ADeferredMethPropdef#n_doc= for (self: Object, nullable ADoc) */
7051 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7052 parser_prod__ADeferredMethPropdef__n_doc_61d(self
, p0
);
7055 /* method parser_prod#ADeferredMethPropdef#n_kwredef= for (self: ADeferredMethPropdef, nullable TKwredef) */
7056 void parser_prod__ADeferredMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7057 val
* var_node
/* var node: nullable TKwredef */;
7058 val
* var
/* : null */;
7059 short int var1
/* : Bool */;
7061 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7063 if (var_node
== NULL
) {
7064 var1
= 0; /* is null */
7066 var1
= 1; /* arg is null and recv is not */
7069 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
7074 /* method parser_prod#ADeferredMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
7075 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7076 parser_prod__ADeferredMethPropdef__n_kwredef_61d(self
, p0
);
7079 /* method parser_prod#ADeferredMethPropdef#n_visibility= for (self: ADeferredMethPropdef, nullable AVisibility) */
7080 void parser_prod__ADeferredMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7081 val
* var_node
/* var node: nullable AVisibility */;
7083 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:ADeferredMethPropdef> */
7084 if (var_node
== NULL
) {
7085 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1815);
7088 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
7092 /* method parser_prod#ADeferredMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
7093 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7094 parser_prod__ADeferredMethPropdef__n_visibility_61d(self
, p0
);
7097 /* method parser_prod#ADeferredMethPropdef#n_kwmeth= for (self: ADeferredMethPropdef, TKwmeth) */
7098 void parser_prod__ADeferredMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7099 val
* var_node
/* var node: TKwmeth */;
7101 self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7102 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
7105 /* method parser_prod#ADeferredMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
7106 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7107 parser_prod__ADeferredMethPropdef__n_kwmeth_61d(self
, p0
);
7110 /* method parser_prod#ADeferredMethPropdef#n_methid= for (self: ADeferredMethPropdef, nullable AMethid) */
7111 void parser_prod__ADeferredMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7112 val
* var_node
/* var node: nullable AMethid */;
7114 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:ADeferredMethPropdef> */
7115 if (var_node
== NULL
) {
7116 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1825);
7119 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
7123 /* method parser_prod#ADeferredMethPropdef#n_methid= for (self: Object, nullable AMethid) */
7124 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7125 parser_prod__ADeferredMethPropdef__n_methid_61d(self
, p0
);
7128 /* method parser_prod#ADeferredMethPropdef#n_signature= for (self: ADeferredMethPropdef, nullable ASignature) */
7129 void parser_prod__ADeferredMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7130 val
* var_node
/* var node: nullable ASignature */;
7132 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:ADeferredMethPropdef> */
7133 if (var_node
== NULL
) {
7134 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1830);
7137 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
7141 /* method parser_prod#ADeferredMethPropdef#n_signature= for (self: Object, nullable ASignature) */
7142 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7143 parser_prod__ADeferredMethPropdef__n_signature_61d(self
, p0
);
7146 /* method parser_prod#ADeferredMethPropdef#n_annotations= for (self: ADeferredMethPropdef, nullable AAnnotations) */
7147 void parser_prod__ADeferredMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
7148 val
* var_node
/* var node: nullable AAnnotations */;
7149 val
* var
/* : null */;
7150 short int var1
/* : Bool */;
7152 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:ADeferredMethPropdef> */
7154 if (var_node
== NULL
) {
7155 var1
= 0; /* is null */
7157 var1
= 1; /* arg is null and recv is not */
7160 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
7165 /* method parser_prod#ADeferredMethPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
7166 void VIRTUAL_parser_prod__ADeferredMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
7167 parser_prod__ADeferredMethPropdef__n_annotations_61d(self
, p0
);
7170 /* method parser_prod#ADeferredMethPropdef#visit_all for (self: ADeferredMethPropdef, Visitor) */
7171 void parser_prod__ADeferredMethPropdef__visit_all(val
* self
, val
* p0
) {
7172 val
* var_v
/* var v: Visitor */;
7173 val
* var
/* : nullable ADoc */;
7174 val
* var1
/* : null */;
7175 short int var2
/* : Bool */;
7176 val
* var3
/* : nullable ADoc */;
7177 val
* var4
/* : nullable TKwredef */;
7178 val
* var5
/* : null */;
7179 short int var6
/* : Bool */;
7180 val
* var7
/* : nullable TKwredef */;
7181 val
* var8
/* : nullable AVisibility */;
7182 val
* var9
/* : TKwmeth */;
7183 val
* var10
/* : nullable AMethid */;
7184 val
* var11
/* : nullable ASignature */;
7185 val
* var12
/* : nullable AAnnotations */;
7186 val
* var13
/* : null */;
7187 short int var14
/* : Bool */;
7188 val
* var15
/* : nullable AAnnotations */;
7190 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
7193 var2
= 0; /* is null */
7195 var2
= 1; /* arg is null and recv is not */
7198 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:ADeferredMethPropdef> */
7200 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1844);
7203 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
7206 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7209 var6
= 0; /* is null */
7211 var6
= 1; /* arg is null and recv is not */
7214 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:ADeferredMethPropdef> */
7216 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1847);
7219 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
7222 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:ADeferredMethPropdef> */
7223 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
7224 var9
= self
->attrs
[COLOR_parser_nodes__ADeferredMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:ADeferredMethPropdef> */
7226 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 1850);
7229 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
7230 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:ADeferredMethPropdef> */
7231 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
7232 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:ADeferredMethPropdef> */
7233 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
7234 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
7236 if (var12
== NULL
) {
7237 var14
= 0; /* is null */
7239 var14
= 1; /* arg is null and recv is not */
7242 var15
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:ADeferredMethPropdef> */
7243 if (var15
== NULL
) {
7244 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1854);
7247 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
7252 /* method parser_prod#ADeferredMethPropdef#visit_all for (self: Object, Visitor) */
7253 void VIRTUAL_parser_prod__ADeferredMethPropdef__visit_all(val
* self
, val
* p0
) {
7254 parser_prod__ADeferredMethPropdef__visit_all(self
, p0
);
7257 /* method parser_prod#AInternMethPropdef#empty_init for (self: AInternMethPropdef) */
7258 void parser_prod__AInternMethPropdef__empty_init(val
* self
) {
7261 /* method parser_prod#AInternMethPropdef#empty_init for (self: Object) */
7262 void VIRTUAL_parser_prod__AInternMethPropdef__empty_init(val
* self
) {
7263 parser_prod__AInternMethPropdef__empty_init(self
);
7266 /* method parser_prod#AInternMethPropdef#init_ainternmethpropdef for (self: AInternMethPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature) */
7267 void parser_prod__AInternMethPropdef__init_ainternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7268 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7269 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7270 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7271 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
7272 val
* var_n_methid
/* var n_methid: nullable AMethid */;
7273 val
* var_n_signature
/* var n_signature: nullable ASignature */;
7274 val
* var
/* : null */;
7275 short int var1
/* : Bool */;
7276 val
* var2
/* : null */;
7277 short int var3
/* : Bool */;
7280 var_n_visibility
= p2
;
7283 var_n_signature
= p5
;
7284 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AInternMethPropdef__empty_init
]))(self
) /* empty_init on <self:AInternMethPropdef>*/;
7285 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AInternMethPropdef> */
7287 if (var_n_doc
== NULL
) {
7288 var1
= 0; /* is null */
7290 var1
= 1; /* arg is null and recv is not */
7293 ((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)>*/;
7296 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AInternMethPropdef> */
7298 if (var_n_kwredef
== NULL
) {
7299 var3
= 0; /* is null */
7301 var3
= 1; /* arg is null and recv is not */
7304 ((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)>*/;
7307 if (var_n_visibility
== NULL
) {
7308 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1879);
7311 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AInternMethPropdef> */
7312 if (var_n_visibility
== NULL
) {
7313 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1880);
7316 ((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>*/;
7318 if (var_n_kwmeth
== NULL
) {
7319 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1881);
7322 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AInternMethPropdef> */
7323 if (var_n_kwmeth
== NULL
) {
7324 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1882);
7327 ((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>*/;
7329 if (var_n_methid
== NULL
) {
7330 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1883);
7333 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AInternMethPropdef> */
7334 if (var_n_methid
== NULL
) {
7335 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1884);
7338 ((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>*/;
7340 if (var_n_signature
== NULL
) {
7341 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1885);
7344 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AInternMethPropdef> */
7345 if (var_n_signature
== NULL
) {
7346 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1886);
7349 ((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>*/;
7353 /* method parser_prod#AInternMethPropdef#init_ainternmethpropdef for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwmeth, nullable AMethid, nullable ASignature) */
7354 void VIRTUAL_parser_prod__AInternMethPropdef__init_ainternmethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
) {
7355 parser_prod__AInternMethPropdef__init_ainternmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
);
7358 /* method parser_prod#AInternMethPropdef#replace_child for (self: AInternMethPropdef, ANode, nullable ANode) */
7359 void parser_prod__AInternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7360 val
* var_old_child
/* var old_child: ANode */;
7361 val
* var_new_child
/* var new_child: nullable ANode */;
7362 val
* var
/* : nullable ADoc */;
7363 short int var1
/* : Bool */;
7364 val
* var2
/* : null */;
7365 short int var3
/* : Bool */;
7366 short int var4
/* : Bool */;
7369 val
* var5
/* : null */;
7370 val
* var6
/* : nullable TKwredef */;
7371 short int var7
/* : Bool */;
7372 val
* var8
/* : null */;
7373 short int var9
/* : Bool */;
7374 short int var10
/* : Bool */;
7377 val
* var13
/* : null */;
7378 val
* var14
/* : nullable AVisibility */;
7379 short int var15
/* : Bool */;
7380 val
* var16
/* : null */;
7381 short int var17
/* : Bool */;
7382 short int var18
/* : Bool */;
7385 val
* var21
/* : TKwmeth */;
7386 short int var22
/* : Bool */;
7387 val
* var23
/* : null */;
7388 short int var24
/* : Bool */;
7389 short int var25
/* : Bool */;
7392 val
* var28
/* : nullable AMethid */;
7393 short int var29
/* : Bool */;
7394 val
* var30
/* : null */;
7395 short int var31
/* : Bool */;
7396 short int var32
/* : Bool */;
7399 val
* var35
/* : nullable ASignature */;
7400 short int var36
/* : Bool */;
7401 val
* var37
/* : null */;
7402 short int var38
/* : Bool */;
7403 short int var39
/* : Bool */;
7408 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
7410 var1
= 0; /* <var_old_child:ANode> cannot be null */
7412 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
7416 if (var_new_child
== NULL
) {
7417 var3
= 0; /* is null */
7419 var3
= 1; /* arg is null and recv is not */
7422 ((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)>*/;
7423 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
7424 cltype
= type_parser_nodes__ADoc
.color
;
7425 idtype
= type_parser_nodes__ADoc
.id
;
7426 if(cltype
>= var_new_child
->type
->table_size
) {
7429 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
7432 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1894);
7435 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AInternMethPropdef> */
7438 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AInternMethPropdef> */
7443 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
7445 var7
= 0; /* <var_old_child:ANode> cannot be null */
7447 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
7451 if (var_new_child
== NULL
) {
7452 var9
= 0; /* is null */
7454 var9
= 1; /* arg is null and recv is not */
7457 ((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)>*/;
7458 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
7459 cltype11
= type_parser_nodes__TKwredef
.color
;
7460 idtype12
= type_parser_nodes__TKwredef
.id
;
7461 if(cltype11
>= var_new_child
->type
->table_size
) {
7464 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
7467 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1904);
7470 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AInternMethPropdef> */
7473 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AInternMethPropdef> */
7478 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AInternMethPropdef> */
7479 if (var14
== NULL
) {
7480 var15
= 0; /* <var_old_child:ANode> cannot be null */
7482 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
7486 if (var_new_child
== NULL
) {
7487 var17
= 0; /* is null */
7489 var17
= 1; /* arg is null and recv is not */
7492 ((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)>*/;
7493 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
7494 cltype19
= type_parser_nodes__AVisibility
.color
;
7495 idtype20
= type_parser_nodes__AVisibility
.id
;
7496 if(cltype19
>= var_new_child
->type
->table_size
) {
7499 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
7502 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1914);
7505 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AInternMethPropdef> */
7507 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1917);
7513 var21
= self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AInternMethPropdef> */
7514 if (var21
== NULL
) {
7515 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 1921);
7518 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
7521 if (var_new_child
== NULL
) {
7522 var24
= 0; /* is null */
7524 var24
= 1; /* arg is null and recv is not */
7527 ((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)>*/;
7528 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
7529 cltype26
= type_parser_nodes__TKwmeth
.color
;
7530 idtype27
= type_parser_nodes__TKwmeth
.id
;
7531 if(cltype26
>= var_new_child
->type
->table_size
) {
7534 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
7537 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1924);
7540 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AInternMethPropdef> */
7542 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1927);
7548 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AInternMethPropdef> */
7549 if (var28
== NULL
) {
7550 var29
= 0; /* <var_old_child:ANode> cannot be null */
7552 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
7556 if (var_new_child
== NULL
) {
7557 var31
= 0; /* is null */
7559 var31
= 1; /* arg is null and recv is not */
7562 ((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)>*/;
7563 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
7564 cltype33
= type_parser_nodes__AMethid
.color
;
7565 idtype34
= type_parser_nodes__AMethid
.id
;
7566 if(cltype33
>= var_new_child
->type
->table_size
) {
7569 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
7572 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1934);
7575 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AInternMethPropdef> */
7577 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1937);
7583 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AInternMethPropdef> */
7584 if (var35
== NULL
) {
7585 var36
= 0; /* <var_old_child:ANode> cannot be null */
7587 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
7591 if (var_new_child
== NULL
) {
7592 var38
= 0; /* is null */
7594 var38
= 1; /* arg is null and recv is not */
7597 ((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)>*/;
7598 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
7599 cltype40
= type_parser_nodes__ASignature
.color
;
7600 idtype41
= type_parser_nodes__ASignature
.id
;
7601 if(cltype40
>= var_new_child
->type
->table_size
) {
7604 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
7607 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 1944);
7610 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AInternMethPropdef> */
7612 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 1947);
7620 /* method parser_prod#AInternMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
7621 void VIRTUAL_parser_prod__AInternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7622 parser_prod__AInternMethPropdef__replace_child(self
, p0
, p1
);
7625 /* method parser_prod#AInternMethPropdef#n_doc= for (self: AInternMethPropdef, nullable ADoc) */
7626 void parser_prod__AInternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7627 val
* var_node
/* var node: nullable ADoc */;
7628 val
* var
/* : null */;
7629 short int var1
/* : Bool */;
7631 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AInternMethPropdef> */
7633 if (var_node
== NULL
) {
7634 var1
= 0; /* is null */
7636 var1
= 1; /* arg is null and recv is not */
7639 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
7644 /* method parser_prod#AInternMethPropdef#n_doc= for (self: Object, nullable ADoc) */
7645 void VIRTUAL_parser_prod__AInternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
7646 parser_prod__AInternMethPropdef__n_doc_61d(self
, p0
);
7649 /* method parser_prod#AInternMethPropdef#n_kwredef= for (self: AInternMethPropdef, nullable TKwredef) */
7650 void parser_prod__AInternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7651 val
* var_node
/* var node: nullable TKwredef */;
7652 val
* var
/* : null */;
7653 short int var1
/* : Bool */;
7655 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AInternMethPropdef> */
7657 if (var_node
== NULL
) {
7658 var1
= 0; /* is null */
7660 var1
= 1; /* arg is null and recv is not */
7663 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
7668 /* method parser_prod#AInternMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
7669 void VIRTUAL_parser_prod__AInternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
7670 parser_prod__AInternMethPropdef__n_kwredef_61d(self
, p0
);
7673 /* method parser_prod#AInternMethPropdef#n_visibility= for (self: AInternMethPropdef, nullable AVisibility) */
7674 void parser_prod__AInternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7675 val
* var_node
/* var node: nullable AVisibility */;
7677 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AInternMethPropdef> */
7678 if (var_node
== NULL
) {
7679 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1970);
7682 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
7686 /* method parser_prod#AInternMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
7687 void VIRTUAL_parser_prod__AInternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
7688 parser_prod__AInternMethPropdef__n_visibility_61d(self
, p0
);
7691 /* method parser_prod#AInternMethPropdef#n_kwmeth= for (self: AInternMethPropdef, TKwmeth) */
7692 void parser_prod__AInternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7693 val
* var_node
/* var node: TKwmeth */;
7695 self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AInternMethPropdef> */
7696 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
7699 /* method parser_prod#AInternMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
7700 void VIRTUAL_parser_prod__AInternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
7701 parser_prod__AInternMethPropdef__n_kwmeth_61d(self
, p0
);
7704 /* method parser_prod#AInternMethPropdef#n_methid= for (self: AInternMethPropdef, nullable AMethid) */
7705 void parser_prod__AInternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7706 val
* var_node
/* var node: nullable AMethid */;
7708 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AInternMethPropdef> */
7709 if (var_node
== NULL
) {
7710 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1980);
7713 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
7717 /* method parser_prod#AInternMethPropdef#n_methid= for (self: Object, nullable AMethid) */
7718 void VIRTUAL_parser_prod__AInternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
7719 parser_prod__AInternMethPropdef__n_methid_61d(self
, p0
);
7722 /* method parser_prod#AInternMethPropdef#n_signature= for (self: AInternMethPropdef, nullable ASignature) */
7723 void parser_prod__AInternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7724 val
* var_node
/* var node: nullable ASignature */;
7726 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AInternMethPropdef> */
7727 if (var_node
== NULL
) {
7728 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 1985);
7731 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
7735 /* method parser_prod#AInternMethPropdef#n_signature= for (self: Object, nullable ASignature) */
7736 void VIRTUAL_parser_prod__AInternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
7737 parser_prod__AInternMethPropdef__n_signature_61d(self
, p0
);
7740 /* method parser_prod#AInternMethPropdef#visit_all for (self: AInternMethPropdef, Visitor) */
7741 void parser_prod__AInternMethPropdef__visit_all(val
* self
, val
* p0
) {
7742 val
* var_v
/* var v: Visitor */;
7743 val
* var
/* : nullable ADoc */;
7744 val
* var1
/* : null */;
7745 short int var2
/* : Bool */;
7746 val
* var3
/* : nullable ADoc */;
7747 val
* var4
/* : nullable TKwredef */;
7748 val
* var5
/* : null */;
7749 short int var6
/* : Bool */;
7750 val
* var7
/* : nullable TKwredef */;
7751 val
* var8
/* : nullable AVisibility */;
7752 val
* var9
/* : TKwmeth */;
7753 val
* var10
/* : nullable AMethid */;
7754 val
* var11
/* : nullable ASignature */;
7756 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
7759 var2
= 0; /* is null */
7761 var2
= 1; /* arg is null and recv is not */
7764 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AInternMethPropdef> */
7766 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1992);
7769 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
7772 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
7775 var6
= 0; /* is null */
7777 var6
= 1; /* arg is null and recv is not */
7780 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AInternMethPropdef> */
7782 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 1995);
7785 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
7788 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AInternMethPropdef> */
7789 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
7790 var9
= self
->attrs
[COLOR_parser_nodes__AInternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AInternMethPropdef> */
7792 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 1998);
7795 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
7796 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AInternMethPropdef> */
7797 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
7798 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AInternMethPropdef> */
7799 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
7802 /* method parser_prod#AInternMethPropdef#visit_all for (self: Object, Visitor) */
7803 void VIRTUAL_parser_prod__AInternMethPropdef__visit_all(val
* self
, val
* p0
) {
7804 parser_prod__AInternMethPropdef__visit_all(self
, p0
);
7807 /* method parser_prod#AExternMethPropdef#empty_init for (self: AExternMethPropdef) */
7808 void parser_prod__AExternMethPropdef__empty_init(val
* self
) {
7811 /* method parser_prod#AExternMethPropdef#empty_init for (self: Object) */
7812 void VIRTUAL_parser_prod__AExternMethPropdef__empty_init(val
* self
) {
7813 parser_prod__AExternMethPropdef__empty_init(self
);
7816 /* 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) */
7817 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
) {
7818 val
* var_n_doc
/* var n_doc: nullable ADoc */;
7819 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
7820 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
7821 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
7822 val
* var_n_methid
/* var n_methid: nullable AMethid */;
7823 val
* var_n_signature
/* var n_signature: nullable ASignature */;
7824 val
* var_n_extern
/* var n_extern: nullable TString */;
7825 val
* var_n_extern_calls
/* var n_extern_calls: nullable AExternCalls */;
7826 val
* var_n_extern_code_block
/* var n_extern_code_block: nullable AExternCodeBlock */;
7827 val
* var
/* : null */;
7828 short int var1
/* : Bool */;
7829 val
* var2
/* : null */;
7830 short int var3
/* : Bool */;
7831 val
* var4
/* : null */;
7832 short int var5
/* : Bool */;
7833 val
* var6
/* : null */;
7834 short int var7
/* : Bool */;
7835 val
* var8
/* : null */;
7836 short int var9
/* : Bool */;
7839 var_n_visibility
= p2
;
7842 var_n_signature
= p5
;
7844 var_n_extern_calls
= p7
;
7845 var_n_extern_code_block
= p8
;
7846 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AExternMethPropdef__empty_init
]))(self
) /* empty_init on <self:AExternMethPropdef>*/;
7847 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AExternMethPropdef> */
7849 if (var_n_doc
== NULL
) {
7850 var1
= 0; /* is null */
7852 var1
= 1; /* arg is null and recv is not */
7855 ((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)>*/;
7858 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AExternMethPropdef> */
7860 if (var_n_kwredef
== NULL
) {
7861 var3
= 0; /* is null */
7863 var3
= 1; /* arg is null and recv is not */
7866 ((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)>*/;
7869 if (var_n_visibility
== NULL
) {
7870 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2027);
7873 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AExternMethPropdef> */
7874 if (var_n_visibility
== NULL
) {
7875 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2028);
7878 ((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>*/;
7880 if (var_n_kwmeth
== NULL
) {
7881 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2029);
7884 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AExternMethPropdef> */
7885 if (var_n_kwmeth
== NULL
) {
7886 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2030);
7889 ((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>*/;
7891 if (var_n_methid
== NULL
) {
7892 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2031);
7895 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AExternMethPropdef> */
7896 if (var_n_methid
== NULL
) {
7897 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2032);
7900 ((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>*/;
7902 if (var_n_signature
== NULL
) {
7903 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2033);
7906 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AExternMethPropdef> */
7907 if (var_n_signature
== NULL
) {
7908 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2034);
7911 ((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>*/;
7913 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_n_extern
; /* _n_extern on <self:AExternMethPropdef> */
7915 if (var_n_extern
== NULL
) {
7916 var5
= 0; /* is null */
7918 var5
= 1; /* arg is null and recv is not */
7921 ((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)>*/;
7924 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_n_extern_calls
; /* _n_extern_calls on <self:AExternMethPropdef> */
7926 if (var_n_extern_calls
== NULL
) {
7927 var7
= 0; /* is null */
7929 var7
= 1; /* arg is null and recv is not */
7932 ((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)>*/;
7935 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_n_extern_code_block
; /* _n_extern_code_block on <self:AExternMethPropdef> */
7937 if (var_n_extern_code_block
== NULL
) {
7938 var9
= 0; /* is null */
7940 var9
= 1; /* arg is null and recv is not */
7943 ((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)>*/;
7948 /* 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) */
7949 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
) {
7950 parser_prod__AExternMethPropdef__init_aexternmethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
);
7953 /* method parser_prod#AExternMethPropdef#replace_child for (self: AExternMethPropdef, ANode, nullable ANode) */
7954 void parser_prod__AExternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
7955 val
* var_old_child
/* var old_child: ANode */;
7956 val
* var_new_child
/* var new_child: nullable ANode */;
7957 val
* var
/* : nullable ADoc */;
7958 short int var1
/* : Bool */;
7959 val
* var2
/* : null */;
7960 short int var3
/* : Bool */;
7961 short int var4
/* : Bool */;
7964 val
* var5
/* : null */;
7965 val
* var6
/* : nullable TKwredef */;
7966 short int var7
/* : Bool */;
7967 val
* var8
/* : null */;
7968 short int var9
/* : Bool */;
7969 short int var10
/* : Bool */;
7972 val
* var13
/* : null */;
7973 val
* var14
/* : nullable AVisibility */;
7974 short int var15
/* : Bool */;
7975 val
* var16
/* : null */;
7976 short int var17
/* : Bool */;
7977 short int var18
/* : Bool */;
7980 val
* var21
/* : TKwmeth */;
7981 short int var22
/* : Bool */;
7982 val
* var23
/* : null */;
7983 short int var24
/* : Bool */;
7984 short int var25
/* : Bool */;
7987 val
* var28
/* : nullable AMethid */;
7988 short int var29
/* : Bool */;
7989 val
* var30
/* : null */;
7990 short int var31
/* : Bool */;
7991 short int var32
/* : Bool */;
7994 val
* var35
/* : nullable ASignature */;
7995 short int var36
/* : Bool */;
7996 val
* var37
/* : null */;
7997 short int var38
/* : Bool */;
7998 short int var39
/* : Bool */;
8001 val
* var42
/* : nullable TString */;
8002 short int var43
/* : Bool */;
8003 val
* var44
/* : null */;
8004 short int var45
/* : Bool */;
8005 short int var46
/* : Bool */;
8008 val
* var49
/* : null */;
8009 val
* var50
/* : nullable AExternCalls */;
8010 short int var51
/* : Bool */;
8011 val
* var52
/* : null */;
8012 short int var53
/* : Bool */;
8013 short int var54
/* : Bool */;
8016 val
* var57
/* : null */;
8017 val
* var58
/* : nullable AExternCodeBlock */;
8018 short int var59
/* : Bool */;
8019 val
* var60
/* : null */;
8020 short int var61
/* : Bool */;
8021 short int var62
/* : Bool */;
8024 val
* var65
/* : null */;
8027 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8029 var1
= 0; /* <var_old_child:ANode> cannot be null */
8031 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
8035 if (var_new_child
== NULL
) {
8036 var3
= 0; /* is null */
8038 var3
= 1; /* arg is null and recv is not */
8041 ((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)>*/;
8042 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
8043 cltype
= type_parser_nodes__ADoc
.color
;
8044 idtype
= type_parser_nodes__ADoc
.id
;
8045 if(cltype
>= var_new_child
->type
->table_size
) {
8048 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8051 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2054);
8054 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AExternMethPropdef> */
8057 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AExternMethPropdef> */
8062 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8064 var7
= 0; /* <var_old_child:ANode> cannot be null */
8066 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
8070 if (var_new_child
== NULL
) {
8071 var9
= 0; /* is null */
8073 var9
= 1; /* arg is null and recv is not */
8076 ((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)>*/;
8077 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
8078 cltype11
= type_parser_nodes__TKwredef
.color
;
8079 idtype12
= type_parser_nodes__TKwredef
.id
;
8080 if(cltype11
>= var_new_child
->type
->table_size
) {
8083 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
8086 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2064);
8089 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AExternMethPropdef> */
8092 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AExternMethPropdef> */
8097 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AExternMethPropdef> */
8098 if (var14
== NULL
) {
8099 var15
= 0; /* <var_old_child:ANode> cannot be null */
8101 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
8105 if (var_new_child
== NULL
) {
8106 var17
= 0; /* is null */
8108 var17
= 1; /* arg is null and recv is not */
8111 ((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)>*/;
8112 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
8113 cltype19
= type_parser_nodes__AVisibility
.color
;
8114 idtype20
= type_parser_nodes__AVisibility
.id
;
8115 if(cltype19
>= var_new_child
->type
->table_size
) {
8118 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
8121 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2074);
8124 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AExternMethPropdef> */
8126 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2077);
8132 var21
= self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AExternMethPropdef> */
8133 if (var21
== NULL
) {
8134 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 2081);
8137 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwmeth>*/;
8140 if (var_new_child
== NULL
) {
8141 var24
= 0; /* is null */
8143 var24
= 1; /* arg is null and recv is not */
8146 ((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)>*/;
8147 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
8148 cltype26
= type_parser_nodes__TKwmeth
.color
;
8149 idtype27
= type_parser_nodes__TKwmeth
.id
;
8150 if(cltype26
>= var_new_child
->type
->table_size
) {
8153 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
8156 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2084);
8159 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AExternMethPropdef> */
8161 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2087);
8167 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AExternMethPropdef> */
8168 if (var28
== NULL
) {
8169 var29
= 0; /* <var_old_child:ANode> cannot be null */
8171 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
8175 if (var_new_child
== NULL
) {
8176 var31
= 0; /* is null */
8178 var31
= 1; /* arg is null and recv is not */
8181 ((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)>*/;
8182 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
8183 cltype33
= type_parser_nodes__AMethid
.color
;
8184 idtype34
= type_parser_nodes__AMethid
.id
;
8185 if(cltype33
>= var_new_child
->type
->table_size
) {
8188 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
8191 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2094);
8194 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AExternMethPropdef> */
8196 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2097);
8202 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AExternMethPropdef> */
8203 if (var35
== NULL
) {
8204 var36
= 0; /* <var_old_child:ANode> cannot be null */
8206 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
8210 if (var_new_child
== NULL
) {
8211 var38
= 0; /* is null */
8213 var38
= 1; /* arg is null and recv is not */
8216 ((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)>*/;
8217 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
8218 cltype40
= type_parser_nodes__ASignature
.color
;
8219 idtype41
= type_parser_nodes__ASignature
.id
;
8220 if(cltype40
>= var_new_child
->type
->table_size
) {
8223 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
8226 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2104);
8229 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AExternMethPropdef> */
8231 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2107);
8237 var42
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8238 if (var42
== NULL
) {
8239 var43
= 0; /* <var_old_child:ANode> cannot be null */
8241 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable TString>*/;
8245 if (var_new_child
== NULL
) {
8246 var45
= 0; /* is null */
8248 var45
= 1; /* arg is null and recv is not */
8251 ((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)>*/;
8252 /* <var_new_child:nullable ANode(ANode)> isa TString */
8253 cltype47
= type_parser_nodes__TString
.color
;
8254 idtype48
= type_parser_nodes__TString
.id
;
8255 if(cltype47
>= var_new_child
->type
->table_size
) {
8258 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
8261 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2114);
8264 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_new_child
; /* _n_extern on <self:AExternMethPropdef> */
8267 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var49
; /* _n_extern on <self:AExternMethPropdef> */
8272 var50
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8273 if (var50
== NULL
) {
8274 var51
= 0; /* <var_old_child:ANode> cannot be null */
8276 var51
= ((short int (*)(val
*, val
*))(var50
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var50
, var_old_child
) /* == on <var50:nullable AExternCalls>*/;
8280 if (var_new_child
== NULL
) {
8281 var53
= 0; /* is null */
8283 var53
= 1; /* arg is null and recv is not */
8286 ((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)>*/;
8287 /* <var_new_child:nullable ANode(ANode)> isa AExternCalls */
8288 cltype55
= type_parser_nodes__AExternCalls
.color
;
8289 idtype56
= type_parser_nodes__AExternCalls
.id
;
8290 if(cltype55
>= var_new_child
->type
->table_size
) {
8293 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
8296 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2124);
8299 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_new_child
; /* _n_extern_calls on <self:AExternMethPropdef> */
8302 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var57
; /* _n_extern_calls on <self:AExternMethPropdef> */
8307 var58
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8308 if (var58
== NULL
) {
8309 var59
= 0; /* <var_old_child:ANode> cannot be null */
8311 var59
= ((short int (*)(val
*, val
*))(var58
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var58
, var_old_child
) /* == on <var58:nullable AExternCodeBlock>*/;
8315 if (var_new_child
== NULL
) {
8316 var61
= 0; /* is null */
8318 var61
= 1; /* arg is null and recv is not */
8321 ((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)>*/;
8322 /* <var_new_child:nullable ANode(ANode)> isa AExternCodeBlock */
8323 cltype63
= type_parser_nodes__AExternCodeBlock
.color
;
8324 idtype64
= type_parser_nodes__AExternCodeBlock
.id
;
8325 if(cltype63
>= var_new_child
->type
->table_size
) {
8328 var62
= var_new_child
->type
->type_table
[cltype63
] == idtype64
;
8331 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2134);
8334 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_new_child
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8337 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var65
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8344 /* method parser_prod#AExternMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
8345 void VIRTUAL_parser_prod__AExternMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8346 parser_prod__AExternMethPropdef__replace_child(self
, p0
, p1
);
8349 /* method parser_prod#AExternMethPropdef#n_doc= for (self: AExternMethPropdef, nullable ADoc) */
8350 void parser_prod__AExternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
8351 val
* var_node
/* var node: nullable ADoc */;
8352 val
* var
/* : null */;
8353 short int var1
/* : Bool */;
8355 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AExternMethPropdef> */
8357 if (var_node
== NULL
) {
8358 var1
= 0; /* is null */
8360 var1
= 1; /* arg is null and recv is not */
8363 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
8368 /* method parser_prod#AExternMethPropdef#n_doc= for (self: Object, nullable ADoc) */
8369 void VIRTUAL_parser_prod__AExternMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
8370 parser_prod__AExternMethPropdef__n_doc_61d(self
, p0
);
8373 /* method parser_prod#AExternMethPropdef#n_kwredef= for (self: AExternMethPropdef, nullable TKwredef) */
8374 void parser_prod__AExternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8375 val
* var_node
/* var node: nullable TKwredef */;
8376 val
* var
/* : null */;
8377 short int var1
/* : Bool */;
8379 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AExternMethPropdef> */
8381 if (var_node
== NULL
) {
8382 var1
= 0; /* is null */
8384 var1
= 1; /* arg is null and recv is not */
8387 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
8392 /* method parser_prod#AExternMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
8393 void VIRTUAL_parser_prod__AExternMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
8394 parser_prod__AExternMethPropdef__n_kwredef_61d(self
, p0
);
8397 /* method parser_prod#AExternMethPropdef#n_visibility= for (self: AExternMethPropdef, nullable AVisibility) */
8398 void parser_prod__AExternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
8399 val
* var_node
/* var node: nullable AVisibility */;
8401 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AExternMethPropdef> */
8402 if (var_node
== NULL
) {
8403 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2160);
8406 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
8410 /* method parser_prod#AExternMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
8411 void VIRTUAL_parser_prod__AExternMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
8412 parser_prod__AExternMethPropdef__n_visibility_61d(self
, p0
);
8415 /* method parser_prod#AExternMethPropdef#n_kwmeth= for (self: AExternMethPropdef, TKwmeth) */
8416 void parser_prod__AExternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8417 val
* var_node
/* var node: TKwmeth */;
8419 self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AExternMethPropdef> */
8420 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwmeth>*/;
8423 /* method parser_prod#AExternMethPropdef#n_kwmeth= for (self: Object, TKwmeth) */
8424 void VIRTUAL_parser_prod__AExternMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
8425 parser_prod__AExternMethPropdef__n_kwmeth_61d(self
, p0
);
8428 /* method parser_prod#AExternMethPropdef#n_methid= for (self: AExternMethPropdef, nullable AMethid) */
8429 void parser_prod__AExternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8430 val
* var_node
/* var node: nullable AMethid */;
8432 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AExternMethPropdef> */
8433 if (var_node
== NULL
) {
8434 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2170);
8437 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
8441 /* method parser_prod#AExternMethPropdef#n_methid= for (self: Object, nullable AMethid) */
8442 void VIRTUAL_parser_prod__AExternMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
8443 parser_prod__AExternMethPropdef__n_methid_61d(self
, p0
);
8446 /* method parser_prod#AExternMethPropdef#n_signature= for (self: AExternMethPropdef, nullable ASignature) */
8447 void parser_prod__AExternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8448 val
* var_node
/* var node: nullable ASignature */;
8450 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AExternMethPropdef> */
8451 if (var_node
== NULL
) {
8452 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2175);
8455 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
8459 /* method parser_prod#AExternMethPropdef#n_signature= for (self: Object, nullable ASignature) */
8460 void VIRTUAL_parser_prod__AExternMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
8461 parser_prod__AExternMethPropdef__n_signature_61d(self
, p0
);
8464 /* method parser_prod#AExternMethPropdef#n_extern= for (self: AExternMethPropdef, nullable TString) */
8465 void parser_prod__AExternMethPropdef__n_extern_61d(val
* self
, val
* p0
) {
8466 val
* var_node
/* var node: nullable TString */;
8467 val
* var
/* : null */;
8468 short int var1
/* : Bool */;
8470 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
= var_node
; /* _n_extern on <self:AExternMethPropdef> */
8472 if (var_node
== NULL
) {
8473 var1
= 0; /* is null */
8475 var1
= 1; /* arg is null and recv is not */
8478 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TString(TString)>*/;
8483 /* method parser_prod#AExternMethPropdef#n_extern= for (self: Object, nullable TString) */
8484 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_61d(val
* self
, val
* p0
) {
8485 parser_prod__AExternMethPropdef__n_extern_61d(self
, p0
);
8488 /* method parser_prod#AExternMethPropdef#n_extern_calls= for (self: AExternMethPropdef, nullable AExternCalls) */
8489 void parser_prod__AExternMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
8490 val
* var_node
/* var node: nullable AExternCalls */;
8491 val
* var
/* : null */;
8492 short int var1
/* : Bool */;
8494 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
= var_node
; /* _n_extern_calls on <self:AExternMethPropdef> */
8496 if (var_node
== NULL
) {
8497 var1
= 0; /* is null */
8499 var1
= 1; /* arg is null and recv is not */
8502 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCalls(AExternCalls)>*/;
8507 /* method parser_prod#AExternMethPropdef#n_extern_calls= for (self: Object, nullable AExternCalls) */
8508 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_calls_61d(val
* self
, val
* p0
) {
8509 parser_prod__AExternMethPropdef__n_extern_calls_61d(self
, p0
);
8512 /* method parser_prod#AExternMethPropdef#n_extern_code_block= for (self: AExternMethPropdef, nullable AExternCodeBlock) */
8513 void parser_prod__AExternMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
8514 val
* var_node
/* var node: nullable AExternCodeBlock */;
8515 val
* var
/* : null */;
8516 short int var1
/* : Bool */;
8518 self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
= var_node
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8520 if (var_node
== NULL
) {
8521 var1
= 0; /* is null */
8523 var1
= 1; /* arg is null and recv is not */
8526 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExternCodeBlock(AExternCodeBlock)>*/;
8531 /* method parser_prod#AExternMethPropdef#n_extern_code_block= for (self: Object, nullable AExternCodeBlock) */
8532 void VIRTUAL_parser_prod__AExternMethPropdef__n_extern_code_block_61d(val
* self
, val
* p0
) {
8533 parser_prod__AExternMethPropdef__n_extern_code_block_61d(self
, p0
);
8536 /* method parser_prod#AExternMethPropdef#visit_all for (self: AExternMethPropdef, Visitor) */
8537 void parser_prod__AExternMethPropdef__visit_all(val
* self
, val
* p0
) {
8538 val
* var_v
/* var v: Visitor */;
8539 val
* var
/* : nullable ADoc */;
8540 val
* var1
/* : null */;
8541 short int var2
/* : Bool */;
8542 val
* var3
/* : nullable ADoc */;
8543 val
* var4
/* : nullable TKwredef */;
8544 val
* var5
/* : null */;
8545 short int var6
/* : Bool */;
8546 val
* var7
/* : nullable TKwredef */;
8547 val
* var8
/* : nullable AVisibility */;
8548 val
* var9
/* : TKwmeth */;
8549 val
* var10
/* : nullable AMethid */;
8550 val
* var11
/* : nullable ASignature */;
8551 val
* var12
/* : nullable TString */;
8552 val
* var13
/* : null */;
8553 short int var14
/* : Bool */;
8554 val
* var15
/* : nullable TString */;
8555 val
* var16
/* : nullable AExternCalls */;
8556 val
* var17
/* : null */;
8557 short int var18
/* : Bool */;
8558 val
* var19
/* : nullable AExternCalls */;
8559 val
* var20
/* : nullable AExternCodeBlock */;
8560 val
* var21
/* : null */;
8561 short int var22
/* : Bool */;
8562 val
* var23
/* : nullable AExternCodeBlock */;
8564 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8567 var2
= 0; /* is null */
8569 var2
= 1; /* arg is null and recv is not */
8572 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AExternMethPropdef> */
8574 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2203);
8577 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
8580 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8583 var6
= 0; /* is null */
8585 var6
= 1; /* arg is null and recv is not */
8588 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AExternMethPropdef> */
8590 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2206);
8593 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
8596 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AExternMethPropdef> */
8597 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
8598 var9
= self
->attrs
[COLOR_parser_nodes__AExternMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AExternMethPropdef> */
8600 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwmeth", "src/parser/parser_prod.nit", 2209);
8603 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
8604 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AExternMethPropdef> */
8605 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
8606 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AExternMethPropdef> */
8607 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
8608 var12
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8610 if (var12
== NULL
) {
8611 var14
= 0; /* is null */
8613 var14
= 1; /* arg is null and recv is not */
8616 var15
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern
].val
; /* _n_extern on <self:AExternMethPropdef> */
8617 if (var15
== NULL
) {
8618 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2213);
8621 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
8624 var16
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8626 if (var16
== NULL
) {
8627 var18
= 0; /* is null */
8629 var18
= 1; /* arg is null and recv is not */
8632 var19
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_calls
].val
; /* _n_extern_calls on <self:AExternMethPropdef> */
8633 if (var19
== NULL
) {
8634 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2216);
8637 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var19
) /* enter_visit on <var_v:Visitor>*/;
8640 var20
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8642 if (var20
== NULL
) {
8643 var22
= 0; /* is null */
8645 var22
= 1; /* arg is null and recv is not */
8648 var23
= self
->attrs
[COLOR_parser_nodes__AExternPropdef___n_extern_code_block
].val
; /* _n_extern_code_block on <self:AExternMethPropdef> */
8649 if (var23
== NULL
) {
8650 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2219);
8653 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var23
) /* enter_visit on <var_v:Visitor>*/;
8658 /* method parser_prod#AExternMethPropdef#visit_all for (self: Object, Visitor) */
8659 void VIRTUAL_parser_prod__AExternMethPropdef__visit_all(val
* self
, val
* p0
) {
8660 parser_prod__AExternMethPropdef__visit_all(self
, p0
);
8663 /* method parser_prod#AConcreteMethPropdef#empty_init for (self: AConcreteMethPropdef) */
8664 void parser_prod__AConcreteMethPropdef__empty_init(val
* self
) {
8667 /* method parser_prod#AConcreteMethPropdef#empty_init for (self: Object) */
8668 void VIRTUAL_parser_prod__AConcreteMethPropdef__empty_init(val
* self
) {
8669 parser_prod__AConcreteMethPropdef__empty_init(self
);
8672 /* 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) */
8673 void parser_prod__AConcreteMethPropdef__init_aconcretemethpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
8674 val
* var_n_doc
/* var n_doc: nullable ADoc */;
8675 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
8676 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
8677 val
* var_n_kwmeth
/* var n_kwmeth: nullable TKwmeth */;
8678 val
* var_n_methid
/* var n_methid: nullable AMethid */;
8679 val
* var_n_signature
/* var n_signature: nullable ASignature */;
8680 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
8681 val
* var_n_block
/* var n_block: nullable AExpr */;
8682 val
* var
/* : null */;
8683 short int var1
/* : Bool */;
8684 val
* var2
/* : null */;
8685 short int var3
/* : Bool */;
8686 val
* var4
/* : null */;
8687 short int var5
/* : Bool */;
8688 val
* var6
/* : null */;
8689 short int var7
/* : Bool */;
8692 var_n_visibility
= p2
;
8695 var_n_signature
= p5
;
8696 var_n_annotations
= p6
;
8698 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteMethPropdef__empty_init
]))(self
) /* empty_init on <self:AConcreteMethPropdef>*/;
8699 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AConcreteMethPropdef> */
8701 if (var_n_doc
== NULL
) {
8702 var1
= 0; /* is null */
8704 var1
= 1; /* arg is null and recv is not */
8707 ((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)>*/;
8710 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AConcreteMethPropdef> */
8712 if (var_n_kwredef
== NULL
) {
8713 var3
= 0; /* is null */
8715 var3
= 1; /* arg is null and recv is not */
8718 ((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)>*/;
8721 if (var_n_visibility
== NULL
) {
8722 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2246);
8725 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AConcreteMethPropdef> */
8726 if (var_n_visibility
== NULL
) {
8727 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2247);
8730 ((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>*/;
8732 if (var_n_kwmeth
== NULL
) {
8733 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2248);
8736 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_n_kwmeth
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
8737 if (var_n_kwmeth
== NULL
) {
8738 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2249);
8741 ((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>*/;
8743 if (var_n_methid
== NULL
) {
8744 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2250);
8747 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AConcreteMethPropdef> */
8748 if (var_n_methid
== NULL
) {
8749 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2251);
8752 ((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>*/;
8754 if (var_n_signature
== NULL
) {
8755 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2252);
8758 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AConcreteMethPropdef> */
8759 if (var_n_signature
== NULL
) {
8760 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2253);
8763 ((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>*/;
8765 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AConcreteMethPropdef> */
8767 if (var_n_annotations
== NULL
) {
8768 var5
= 0; /* is null */
8770 var5
= 1; /* arg is null and recv is not */
8773 ((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)>*/;
8776 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AConcreteMethPropdef> */
8778 if (var_n_block
== NULL
) {
8779 var7
= 0; /* is null */
8781 var7
= 1; /* arg is null and recv is not */
8784 ((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)>*/;
8789 /* 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) */
8790 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
) {
8791 parser_prod__AConcreteMethPropdef__init_aconcretemethpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
);
8794 /* method parser_prod#AConcreteMethPropdef#replace_child for (self: AConcreteMethPropdef, ANode, nullable ANode) */
8795 void parser_prod__AConcreteMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
8796 val
* var_old_child
/* var old_child: ANode */;
8797 val
* var_new_child
/* var new_child: nullable ANode */;
8798 val
* var
/* : nullable ADoc */;
8799 short int var1
/* : Bool */;
8800 val
* var2
/* : null */;
8801 short int var3
/* : Bool */;
8802 short int var4
/* : Bool */;
8805 val
* var5
/* : null */;
8806 val
* var6
/* : nullable TKwredef */;
8807 short int var7
/* : Bool */;
8808 val
* var8
/* : null */;
8809 short int var9
/* : Bool */;
8810 short int var10
/* : Bool */;
8813 val
* var13
/* : null */;
8814 val
* var14
/* : nullable AVisibility */;
8815 short int var15
/* : Bool */;
8816 val
* var16
/* : null */;
8817 short int var17
/* : Bool */;
8818 short int var18
/* : Bool */;
8821 val
* var21
/* : nullable TKwmeth */;
8822 short int var22
/* : Bool */;
8823 val
* var23
/* : null */;
8824 short int var24
/* : Bool */;
8825 short int var25
/* : Bool */;
8828 val
* var28
/* : nullable AMethid */;
8829 short int var29
/* : Bool */;
8830 val
* var30
/* : null */;
8831 short int var31
/* : Bool */;
8832 short int var32
/* : Bool */;
8835 val
* var35
/* : nullable ASignature */;
8836 short int var36
/* : Bool */;
8837 val
* var37
/* : null */;
8838 short int var38
/* : Bool */;
8839 short int var39
/* : Bool */;
8842 val
* var42
/* : nullable AAnnotations */;
8843 short int var43
/* : Bool */;
8844 val
* var44
/* : null */;
8845 short int var45
/* : Bool */;
8846 short int var46
/* : Bool */;
8849 val
* var49
/* : null */;
8850 val
* var50
/* : nullable AExpr */;
8851 short int var51
/* : Bool */;
8852 val
* var52
/* : null */;
8853 short int var53
/* : Bool */;
8854 short int var54
/* : Bool */;
8857 val
* var57
/* : null */;
8860 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
8862 var1
= 0; /* <var_old_child:ANode> cannot be null */
8864 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
8868 if (var_new_child
== NULL
) {
8869 var3
= 0; /* is null */
8871 var3
= 1; /* arg is null and recv is not */
8874 ((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)>*/;
8875 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
8876 cltype
= type_parser_nodes__ADoc
.color
;
8877 idtype
= type_parser_nodes__ADoc
.id
;
8878 if(cltype
>= var_new_child
->type
->table_size
) {
8881 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
8884 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2269);
8887 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AConcreteMethPropdef> */
8890 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AConcreteMethPropdef> */
8895 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
8897 var7
= 0; /* <var_old_child:ANode> cannot be null */
8899 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
8903 if (var_new_child
== NULL
) {
8904 var9
= 0; /* is null */
8906 var9
= 1; /* arg is null and recv is not */
8909 ((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)>*/;
8910 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
8911 cltype11
= type_parser_nodes__TKwredef
.color
;
8912 idtype12
= type_parser_nodes__TKwredef
.id
;
8913 if(cltype11
>= var_new_child
->type
->table_size
) {
8916 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
8919 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2279);
8922 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AConcreteMethPropdef> */
8925 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AConcreteMethPropdef> */
8930 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AConcreteMethPropdef> */
8931 if (var14
== NULL
) {
8932 var15
= 0; /* <var_old_child:ANode> cannot be null */
8934 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
8938 if (var_new_child
== NULL
) {
8939 var17
= 0; /* is null */
8941 var17
= 1; /* arg is null and recv is not */
8944 ((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)>*/;
8945 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
8946 cltype19
= type_parser_nodes__AVisibility
.color
;
8947 idtype20
= type_parser_nodes__AVisibility
.id
;
8948 if(cltype19
>= var_new_child
->type
->table_size
) {
8951 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
8954 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2289);
8957 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AConcreteMethPropdef> */
8959 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2292);
8965 var21
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
8966 if (var21
== NULL
) {
8967 var22
= 0; /* <var_old_child:ANode> cannot be null */
8969 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:nullable TKwmeth>*/;
8973 if (var_new_child
== NULL
) {
8974 var24
= 0; /* is null */
8976 var24
= 1; /* arg is null and recv is not */
8979 ((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)>*/;
8980 /* <var_new_child:nullable ANode(ANode)> isa TKwmeth */
8981 cltype26
= type_parser_nodes__TKwmeth
.color
;
8982 idtype27
= type_parser_nodes__TKwmeth
.id
;
8983 if(cltype26
>= var_new_child
->type
->table_size
) {
8986 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
8989 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2299);
8992 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_new_child
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
8994 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2302);
9000 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AConcreteMethPropdef> */
9001 if (var28
== NULL
) {
9002 var29
= 0; /* <var_old_child:ANode> cannot be null */
9004 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
9008 if (var_new_child
== NULL
) {
9009 var31
= 0; /* is null */
9011 var31
= 1; /* arg is null and recv is not */
9014 ((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)>*/;
9015 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
9016 cltype33
= type_parser_nodes__AMethid
.color
;
9017 idtype34
= type_parser_nodes__AMethid
.id
;
9018 if(cltype33
>= var_new_child
->type
->table_size
) {
9021 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
9024 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2309);
9027 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AConcreteMethPropdef> */
9029 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2312);
9035 var35
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AConcreteMethPropdef> */
9036 if (var35
== NULL
) {
9037 var36
= 0; /* <var_old_child:ANode> cannot be null */
9039 var36
= ((short int (*)(val
*, val
*))(var35
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var35
, var_old_child
) /* == on <var35:nullable ASignature>*/;
9043 if (var_new_child
== NULL
) {
9044 var38
= 0; /* is null */
9046 var38
= 1; /* arg is null and recv is not */
9049 ((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)>*/;
9050 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
9051 cltype40
= type_parser_nodes__ASignature
.color
;
9052 idtype41
= type_parser_nodes__ASignature
.id
;
9053 if(cltype40
>= var_new_child
->type
->table_size
) {
9056 var39
= var_new_child
->type
->type_table
[cltype40
] == idtype41
;
9059 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2319);
9062 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AConcreteMethPropdef> */
9064 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2322);
9070 var42
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9071 if (var42
== NULL
) {
9072 var43
= 0; /* <var_old_child:ANode> cannot be null */
9074 var43
= ((short int (*)(val
*, val
*))(var42
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var42
, var_old_child
) /* == on <var42:nullable AAnnotations>*/;
9078 if (var_new_child
== NULL
) {
9079 var45
= 0; /* is null */
9081 var45
= 1; /* arg is null and recv is not */
9084 ((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)>*/;
9085 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
9086 cltype47
= type_parser_nodes__AAnnotations
.color
;
9087 idtype48
= type_parser_nodes__AAnnotations
.id
;
9088 if(cltype47
>= var_new_child
->type
->table_size
) {
9091 var46
= var_new_child
->type
->type_table
[cltype47
] == idtype48
;
9094 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2329);
9097 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AConcreteMethPropdef> */
9100 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var49
; /* _n_annotations on <self:AConcreteMethPropdef> */
9105 var50
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9106 if (var50
== NULL
) {
9107 var51
= 0; /* <var_old_child:ANode> cannot be null */
9109 var51
= ((short int (*)(val
*, val
*))(var50
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var50
, var_old_child
) /* == on <var50:nullable AExpr>*/;
9113 if (var_new_child
== NULL
) {
9114 var53
= 0; /* is null */
9116 var53
= 1; /* arg is null and recv is not */
9119 ((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)>*/;
9120 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
9121 cltype55
= type_parser_nodes__AExpr
.color
;
9122 idtype56
= type_parser_nodes__AExpr
.id
;
9123 if(cltype55
>= var_new_child
->type
->table_size
) {
9126 var54
= var_new_child
->type
->type_table
[cltype55
] == idtype56
;
9129 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2339);
9132 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_new_child
; /* _n_block on <self:AConcreteMethPropdef> */
9135 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var57
; /* _n_block on <self:AConcreteMethPropdef> */
9142 /* method parser_prod#AConcreteMethPropdef#replace_child for (self: Object, ANode, nullable ANode) */
9143 void VIRTUAL_parser_prod__AConcreteMethPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9144 parser_prod__AConcreteMethPropdef__replace_child(self
, p0
, p1
);
9147 /* method parser_prod#AConcreteMethPropdef#n_doc= for (self: AConcreteMethPropdef, nullable ADoc) */
9148 void parser_prod__AConcreteMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9149 val
* var_node
/* var node: nullable ADoc */;
9150 val
* var
/* : null */;
9151 short int var1
/* : Bool */;
9153 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AConcreteMethPropdef> */
9155 if (var_node
== NULL
) {
9156 var1
= 0; /* is null */
9158 var1
= 1; /* arg is null and recv is not */
9161 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
9166 /* method parser_prod#AConcreteMethPropdef#n_doc= for (self: Object, nullable ADoc) */
9167 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_doc_61d(val
* self
, val
* p0
) {
9168 parser_prod__AConcreteMethPropdef__n_doc_61d(self
, p0
);
9171 /* method parser_prod#AConcreteMethPropdef#n_kwredef= for (self: AConcreteMethPropdef, nullable TKwredef) */
9172 void parser_prod__AConcreteMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9173 val
* var_node
/* var node: nullable TKwredef */;
9174 val
* var
/* : null */;
9175 short int var1
/* : Bool */;
9177 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9179 if (var_node
== NULL
) {
9180 var1
= 0; /* is null */
9182 var1
= 1; /* arg is null and recv is not */
9185 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
9190 /* method parser_prod#AConcreteMethPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
9191 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9192 parser_prod__AConcreteMethPropdef__n_kwredef_61d(self
, p0
);
9195 /* method parser_prod#AConcreteMethPropdef#n_visibility= for (self: AConcreteMethPropdef, nullable AVisibility) */
9196 void parser_prod__AConcreteMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9197 val
* var_node
/* var node: nullable AVisibility */;
9199 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AConcreteMethPropdef> */
9200 if (var_node
== NULL
) {
9201 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2365);
9204 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
9208 /* method parser_prod#AConcreteMethPropdef#n_visibility= for (self: Object, nullable AVisibility) */
9209 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9210 parser_prod__AConcreteMethPropdef__n_visibility_61d(self
, p0
);
9213 /* method parser_prod#AConcreteMethPropdef#n_kwmeth= for (self: AConcreteMethPropdef, nullable TKwmeth) */
9214 void parser_prod__AConcreteMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9215 val
* var_node
/* var node: nullable TKwmeth */;
9217 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
= var_node
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9218 if (var_node
== NULL
) {
9219 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2370);
9222 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwmeth>*/;
9226 /* method parser_prod#AConcreteMethPropdef#n_kwmeth= for (self: Object, nullable TKwmeth) */
9227 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_kwmeth_61d(val
* self
, val
* p0
) {
9228 parser_prod__AConcreteMethPropdef__n_kwmeth_61d(self
, p0
);
9231 /* method parser_prod#AConcreteMethPropdef#n_methid= for (self: AConcreteMethPropdef, nullable AMethid) */
9232 void parser_prod__AConcreteMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9233 val
* var_node
/* var node: nullable AMethid */;
9235 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_node
; /* _n_methid on <self:AConcreteMethPropdef> */
9236 if (var_node
== NULL
) {
9237 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2375);
9240 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AMethid>*/;
9244 /* method parser_prod#AConcreteMethPropdef#n_methid= for (self: Object, nullable AMethid) */
9245 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_methid_61d(val
* self
, val
* p0
) {
9246 parser_prod__AConcreteMethPropdef__n_methid_61d(self
, p0
);
9249 /* method parser_prod#AConcreteMethPropdef#n_signature= for (self: AConcreteMethPropdef, nullable ASignature) */
9250 void parser_prod__AConcreteMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9251 val
* var_node
/* var node: nullable ASignature */;
9253 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_node
; /* _n_signature on <self:AConcreteMethPropdef> */
9254 if (var_node
== NULL
) {
9255 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2380);
9258 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ASignature>*/;
9262 /* method parser_prod#AConcreteMethPropdef#n_signature= for (self: Object, nullable ASignature) */
9263 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_signature_61d(val
* self
, val
* p0
) {
9264 parser_prod__AConcreteMethPropdef__n_signature_61d(self
, p0
);
9267 /* method parser_prod#AConcreteMethPropdef#n_annotations= for (self: AConcreteMethPropdef, nullable AAnnotations) */
9268 void parser_prod__AConcreteMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9269 val
* var_node
/* var node: nullable AAnnotations */;
9270 val
* var
/* : null */;
9271 short int var1
/* : Bool */;
9273 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AConcreteMethPropdef> */
9275 if (var_node
== NULL
) {
9276 var1
= 0; /* is null */
9278 var1
= 1; /* arg is null and recv is not */
9281 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AAnnotations(AAnnotations)>*/;
9286 /* method parser_prod#AConcreteMethPropdef#n_annotations= for (self: Object, nullable AAnnotations) */
9287 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_annotations_61d(val
* self
, val
* p0
) {
9288 parser_prod__AConcreteMethPropdef__n_annotations_61d(self
, p0
);
9291 /* method parser_prod#AConcreteMethPropdef#n_block= for (self: AConcreteMethPropdef, nullable AExpr) */
9292 void parser_prod__AConcreteMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9293 val
* var_node
/* var node: nullable AExpr */;
9294 val
* var
/* : null */;
9295 short int var1
/* : Bool */;
9297 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_node
; /* _n_block on <self:AConcreteMethPropdef> */
9299 if (var_node
== NULL
) {
9300 var1
= 0; /* is null */
9302 var1
= 1; /* arg is null and recv is not */
9305 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AExpr(AExpr)>*/;
9310 /* method parser_prod#AConcreteMethPropdef#n_block= for (self: Object, nullable AExpr) */
9311 void VIRTUAL_parser_prod__AConcreteMethPropdef__n_block_61d(val
* self
, val
* p0
) {
9312 parser_prod__AConcreteMethPropdef__n_block_61d(self
, p0
);
9315 /* method parser_prod#AConcreteMethPropdef#visit_all for (self: AConcreteMethPropdef, Visitor) */
9316 void parser_prod__AConcreteMethPropdef__visit_all(val
* self
, val
* p0
) {
9317 val
* var_v
/* var v: Visitor */;
9318 val
* var
/* : nullable ADoc */;
9319 val
* var1
/* : null */;
9320 short int var2
/* : Bool */;
9321 val
* var3
/* : nullable ADoc */;
9322 val
* var4
/* : nullable TKwredef */;
9323 val
* var5
/* : null */;
9324 short int var6
/* : Bool */;
9325 val
* var7
/* : nullable TKwredef */;
9326 val
* var8
/* : nullable AVisibility */;
9327 val
* var9
/* : nullable TKwmeth */;
9328 val
* var10
/* : nullable AMethid */;
9329 val
* var11
/* : nullable ASignature */;
9330 val
* var12
/* : nullable AAnnotations */;
9331 val
* var13
/* : null */;
9332 short int var14
/* : Bool */;
9333 val
* var15
/* : nullable AAnnotations */;
9334 val
* var16
/* : nullable AExpr */;
9335 val
* var17
/* : null */;
9336 short int var18
/* : Bool */;
9337 val
* var19
/* : nullable AExpr */;
9339 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
9342 var2
= 0; /* is null */
9344 var2
= 1; /* arg is null and recv is not */
9347 var3
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteMethPropdef> */
9349 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2401);
9352 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var3
) /* enter_visit on <var_v:Visitor>*/;
9355 var4
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9358 var6
= 0; /* is null */
9360 var6
= 1; /* arg is null and recv is not */
9363 var7
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteMethPropdef> */
9365 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2404);
9368 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var7
) /* enter_visit on <var_v:Visitor>*/;
9371 var8
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AConcreteMethPropdef> */
9372 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var8
) /* enter_visit on <var_v:Visitor>*/;
9373 var9
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_kwmeth
].val
; /* _n_kwmeth on <self:AConcreteMethPropdef> */
9374 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var9
) /* enter_visit on <var_v:Visitor>*/;
9375 var10
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AConcreteMethPropdef> */
9376 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var10
) /* enter_visit on <var_v:Visitor>*/;
9377 var11
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AConcreteMethPropdef> */
9378 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var11
) /* enter_visit on <var_v:Visitor>*/;
9379 var12
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9381 if (var12
== NULL
) {
9382 var14
= 0; /* is null */
9384 var14
= 1; /* arg is null and recv is not */
9387 var15
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteMethPropdef> */
9388 if (var15
== NULL
) {
9389 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2411);
9392 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var15
) /* enter_visit on <var_v:Visitor>*/;
9395 var16
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9397 if (var16
== NULL
) {
9398 var18
= 0; /* is null */
9400 var18
= 1; /* arg is null and recv is not */
9403 var19
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteMethPropdef> */
9404 if (var19
== NULL
) {
9405 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2414);
9408 ((void (*)(val
*, val
*))(var_v
->class->vft
[COLOR_parser_nodes__Visitor__enter_visit
]))(var_v
, var19
) /* enter_visit on <var_v:Visitor>*/;
9413 /* method parser_prod#AConcreteMethPropdef#visit_all for (self: Object, Visitor) */
9414 void VIRTUAL_parser_prod__AConcreteMethPropdef__visit_all(val
* self
, val
* p0
) {
9415 parser_prod__AConcreteMethPropdef__visit_all(self
, p0
);
9418 /* method parser_prod#AConcreteInitPropdef#empty_init for (self: AConcreteInitPropdef) */
9419 void parser_prod__AConcreteInitPropdef__empty_init(val
* self
) {
9422 /* method parser_prod#AConcreteInitPropdef#empty_init for (self: Object) */
9423 void VIRTUAL_parser_prod__AConcreteInitPropdef__empty_init(val
* self
) {
9424 parser_prod__AConcreteInitPropdef__empty_init(self
);
9427 /* 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) */
9428 void parser_prod__AConcreteInitPropdef__init_aconcreteinitpropdef(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
9429 val
* var_n_doc
/* var n_doc: nullable ADoc */;
9430 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
9431 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
9432 val
* var_n_kwinit
/* var n_kwinit: nullable TKwinit */;
9433 val
* var_n_methid
/* var n_methid: nullable AMethid */;
9434 val
* var_n_signature
/* var n_signature: nullable ASignature */;
9435 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
9436 val
* var_n_block
/* var n_block: nullable AExpr */;
9437 val
* var
/* : null */;
9438 short int var1
/* : Bool */;
9439 val
* var2
/* : null */;
9440 short int var3
/* : Bool */;
9441 val
* var4
/* : null */;
9442 short int var5
/* : Bool */;
9443 val
* var6
/* : null */;
9444 short int var7
/* : Bool */;
9445 val
* var8
/* : null */;
9446 short int var9
/* : Bool */;
9449 var_n_visibility
= p2
;
9452 var_n_signature
= p5
;
9453 var_n_annotations
= p6
;
9455 ((void (*)(val
*))(self
->class->vft
[COLOR_parser_prod__AConcreteInitPropdef__empty_init
]))(self
) /* empty_init on <self:AConcreteInitPropdef>*/;
9456 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AConcreteInitPropdef> */
9458 if (var_n_doc
== NULL
) {
9459 var1
= 0; /* is null */
9461 var1
= 1; /* arg is null and recv is not */
9464 ((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)>*/;
9467 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9469 if (var_n_kwredef
== NULL
) {
9470 var3
= 0; /* is null */
9472 var3
= 1; /* arg is null and recv is not */
9475 ((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)>*/;
9478 if (var_n_visibility
== NULL
) {
9479 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2441);
9482 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AConcreteInitPropdef> */
9483 if (var_n_visibility
== NULL
) {
9484 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2442);
9487 ((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>*/;
9489 if (var_n_kwinit
== NULL
) {
9490 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2443);
9493 self
->attrs
[COLOR_parser_nodes__AConcreteInitPropdef___n_kwinit
].val
= var_n_kwinit
; /* _n_kwinit on <self:AConcreteInitPropdef> */
9494 if (var_n_kwinit
== NULL
) {
9495 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2444);
9498 ((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>*/;
9500 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_n_methid
; /* _n_methid on <self:AConcreteInitPropdef> */
9502 if (var_n_methid
== NULL
) {
9503 var5
= 0; /* is null */
9505 var5
= 1; /* arg is null and recv is not */
9508 ((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)>*/;
9511 if (var_n_signature
== NULL
) {
9512 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Cast failed", "src/parser/parser_prod.nit", 2449);
9515 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_n_signature
; /* _n_signature on <self:AConcreteInitPropdef> */
9516 if (var_n_signature
== NULL
) {
9517 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2450);
9520 ((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>*/;
9522 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AConcreteInitPropdef> */
9524 if (var_n_annotations
== NULL
) {
9525 var7
= 0; /* is null */
9527 var7
= 1; /* arg is null and recv is not */
9530 ((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)>*/;
9533 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_n_block
; /* _n_block on <self:AConcreteInitPropdef> */
9535 if (var_n_block
== NULL
) {
9536 var9
= 0; /* is null */
9538 var9
= 1; /* arg is null and recv is not */
9541 ((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)>*/;
9546 /* 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) */
9547 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
) {
9548 parser_prod__AConcreteInitPropdef__init_aconcreteinitpropdef(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
);
9551 /* method parser_prod#AConcreteInitPropdef#replace_child for (self: AConcreteInitPropdef, ANode, nullable ANode) */
9552 void parser_prod__AConcreteInitPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9553 val
* var_old_child
/* var old_child: ANode */;
9554 val
* var_new_child
/* var new_child: nullable ANode */;
9555 val
* var
/* : nullable ADoc */;
9556 short int var1
/* : Bool */;
9557 val
* var2
/* : null */;
9558 short int var3
/* : Bool */;
9559 short int var4
/* : Bool */;
9562 val
* var5
/* : null */;
9563 val
* var6
/* : nullable TKwredef */;
9564 short int var7
/* : Bool */;
9565 val
* var8
/* : null */;
9566 short int var9
/* : Bool */;
9567 short int var10
/* : Bool */;
9570 val
* var13
/* : null */;
9571 val
* var14
/* : nullable AVisibility */;
9572 short int var15
/* : Bool */;
9573 val
* var16
/* : null */;
9574 short int var17
/* : Bool */;
9575 short int var18
/* : Bool */;
9578 val
* var21
/* : TKwinit */;
9579 short int var22
/* : Bool */;
9580 val
* var23
/* : null */;
9581 short int var24
/* : Bool */;
9582 short int var25
/* : Bool */;
9585 val
* var28
/* : nullable AMethid */;
9586 short int var29
/* : Bool */;
9587 val
* var30
/* : null */;
9588 short int var31
/* : Bool */;
9589 short int var32
/* : Bool */;
9592 val
* var35
/* : null */;
9593 val
* var36
/* : nullable ASignature */;
9594 short int var37
/* : Bool */;
9595 val
* var38
/* : null */;
9596 short int var39
/* : Bool */;
9597 short int var40
/* : Bool */;
9600 val
* var43
/* : nullable AAnnotations */;
9601 short int var44
/* : Bool */;
9602 val
* var45
/* : null */;
9603 short int var46
/* : Bool */;
9604 short int var47
/* : Bool */;
9607 val
* var50
/* : null */;
9608 val
* var51
/* : nullable AExpr */;
9609 short int var52
/* : Bool */;
9610 val
* var53
/* : null */;
9611 short int var54
/* : Bool */;
9612 short int var55
/* : Bool */;
9615 val
* var58
/* : null */;
9618 var
= self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
; /* _n_doc on <self:AConcreteInitPropdef> */
9620 var1
= 0; /* <var_old_child:ANode> cannot be null */
9622 var1
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_old_child
) /* == on <var:nullable ADoc>*/;
9626 if (var_new_child
== NULL
) {
9627 var3
= 0; /* is null */
9629 var3
= 1; /* arg is null and recv is not */
9632 ((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)>*/;
9633 /* <var_new_child:nullable ANode(ANode)> isa ADoc */
9634 cltype
= type_parser_nodes__ADoc
.color
;
9635 idtype
= type_parser_nodes__ADoc
.id
;
9636 if(cltype
>= var_new_child
->type
->table_size
) {
9639 var4
= var_new_child
->type
->type_table
[cltype
] == idtype
;
9642 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2466);
9645 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_new_child
; /* _n_doc on <self:AConcreteInitPropdef> */
9648 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var5
; /* _n_doc on <self:AConcreteInitPropdef> */
9653 var6
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9655 var7
= 0; /* <var_old_child:ANode> cannot be null */
9657 var7
= ((short int (*)(val
*, val
*))(var6
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var6
, var_old_child
) /* == on <var6:nullable TKwredef>*/;
9661 if (var_new_child
== NULL
) {
9662 var9
= 0; /* is null */
9664 var9
= 1; /* arg is null and recv is not */
9667 ((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)>*/;
9668 /* <var_new_child:nullable ANode(ANode)> isa TKwredef */
9669 cltype11
= type_parser_nodes__TKwredef
.color
;
9670 idtype12
= type_parser_nodes__TKwredef
.id
;
9671 if(cltype11
>= var_new_child
->type
->table_size
) {
9674 var10
= var_new_child
->type
->type_table
[cltype11
] == idtype12
;
9677 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2476);
9680 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_new_child
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9683 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var13
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9688 var14
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
; /* _n_visibility on <self:AConcreteInitPropdef> */
9689 if (var14
== NULL
) {
9690 var15
= 0; /* <var_old_child:ANode> cannot be null */
9692 var15
= ((short int (*)(val
*, val
*))(var14
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var14
, var_old_child
) /* == on <var14:nullable AVisibility>*/;
9696 if (var_new_child
== NULL
) {
9697 var17
= 0; /* is null */
9699 var17
= 1; /* arg is null and recv is not */
9702 ((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)>*/;
9703 /* <var_new_child:nullable ANode(ANode)> isa AVisibility */
9704 cltype19
= type_parser_nodes__AVisibility
.color
;
9705 idtype20
= type_parser_nodes__AVisibility
.id
;
9706 if(cltype19
>= var_new_child
->type
->table_size
) {
9709 var18
= var_new_child
->type
->type_table
[cltype19
] == idtype20
;
9712 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2486);
9715 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_new_child
; /* _n_visibility on <self:AConcreteInitPropdef> */
9717 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2489);
9723 var21
= self
->attrs
[COLOR_parser_nodes__AConcreteInitPropdef___n_kwinit
].val
; /* _n_kwinit on <self:AConcreteInitPropdef> */
9724 if (var21
== NULL
) {
9725 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Uninitialized attribute _n_kwinit", "src/parser/parser_prod.nit", 2493);
9728 var22
= ((short int (*)(val
*, val
*))(var21
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var21
, var_old_child
) /* == on <var21:TKwinit>*/;
9731 if (var_new_child
== NULL
) {
9732 var24
= 0; /* is null */
9734 var24
= 1; /* arg is null and recv is not */
9737 ((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)>*/;
9738 /* <var_new_child:nullable ANode(ANode)> isa TKwinit */
9739 cltype26
= type_parser_nodes__TKwinit
.color
;
9740 idtype27
= type_parser_nodes__TKwinit
.id
;
9741 if(cltype26
>= var_new_child
->type
->table_size
) {
9744 var25
= var_new_child
->type
->type_table
[cltype26
] == idtype27
;
9747 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2496);
9750 self
->attrs
[COLOR_parser_nodes__AConcreteInitPropdef___n_kwinit
].val
= var_new_child
; /* _n_kwinit on <self:AConcreteInitPropdef> */
9752 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2499);
9758 var28
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
; /* _n_methid on <self:AConcreteInitPropdef> */
9759 if (var28
== NULL
) {
9760 var29
= 0; /* <var_old_child:ANode> cannot be null */
9762 var29
= ((short int (*)(val
*, val
*))(var28
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var28
, var_old_child
) /* == on <var28:nullable AMethid>*/;
9766 if (var_new_child
== NULL
) {
9767 var31
= 0; /* is null */
9769 var31
= 1; /* arg is null and recv is not */
9772 ((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)>*/;
9773 /* <var_new_child:nullable ANode(ANode)> isa AMethid */
9774 cltype33
= type_parser_nodes__AMethid
.color
;
9775 idtype34
= type_parser_nodes__AMethid
.id
;
9776 if(cltype33
>= var_new_child
->type
->table_size
) {
9779 var32
= var_new_child
->type
->type_table
[cltype33
] == idtype34
;
9782 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2506);
9785 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var_new_child
; /* _n_methid on <self:AConcreteInitPropdef> */
9788 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_methid
].val
= var35
; /* _n_methid on <self:AConcreteInitPropdef> */
9793 var36
= self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
; /* _n_signature on <self:AConcreteInitPropdef> */
9794 if (var36
== NULL
) {
9795 var37
= 0; /* <var_old_child:ANode> cannot be null */
9797 var37
= ((short int (*)(val
*, val
*))(var36
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var36
, var_old_child
) /* == on <var36:nullable ASignature>*/;
9801 if (var_new_child
== NULL
) {
9802 var39
= 0; /* is null */
9804 var39
= 1; /* arg is null and recv is not */
9807 ((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)>*/;
9808 /* <var_new_child:nullable ANode(ANode)> isa ASignature */
9809 cltype41
= type_parser_nodes__ASignature
.color
;
9810 idtype42
= type_parser_nodes__ASignature
.id
;
9811 if(cltype41
>= var_new_child
->type
->table_size
) {
9814 var40
= var_new_child
->type
->type_table
[cltype41
] == idtype42
;
9817 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2516);
9820 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_signature
].val
= var_new_child
; /* _n_signature on <self:AConcreteInitPropdef> */
9822 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Aborted", "src/parser/parser_prod.nit", 2519);
9828 var43
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AConcreteInitPropdef> */
9829 if (var43
== NULL
) {
9830 var44
= 0; /* <var_old_child:ANode> cannot be null */
9832 var44
= ((short int (*)(val
*, val
*))(var43
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var43
, var_old_child
) /* == on <var43:nullable AAnnotations>*/;
9836 if (var_new_child
== NULL
) {
9837 var46
= 0; /* is null */
9839 var46
= 1; /* arg is null and recv is not */
9842 ((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)>*/;
9843 /* <var_new_child:nullable ANode(ANode)> isa AAnnotations */
9844 cltype48
= type_parser_nodes__AAnnotations
.color
;
9845 idtype49
= type_parser_nodes__AAnnotations
.id
;
9846 if(cltype48
>= var_new_child
->type
->table_size
) {
9849 var47
= var_new_child
->type
->type_table
[cltype48
] == idtype49
;
9852 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2526);
9855 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_new_child
; /* _n_annotations on <self:AConcreteInitPropdef> */
9858 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var50
; /* _n_annotations on <self:AConcreteInitPropdef> */
9863 var51
= self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
; /* _n_block on <self:AConcreteInitPropdef> */
9864 if (var51
== NULL
) {
9865 var52
= 0; /* <var_old_child:ANode> cannot be null */
9867 var52
= ((short int (*)(val
*, val
*))(var51
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var51
, var_old_child
) /* == on <var51:nullable AExpr>*/;
9871 if (var_new_child
== NULL
) {
9872 var54
= 0; /* is null */
9874 var54
= 1; /* arg is null and recv is not */
9877 ((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)>*/;
9878 /* <var_new_child:nullable ANode(ANode)> isa AExpr */
9879 cltype56
= type_parser_nodes__AExpr
.color
;
9880 idtype57
= type_parser_nodes__AExpr
.id
;
9881 if(cltype56
>= var_new_child
->type
->table_size
) {
9884 var55
= var_new_child
->type
->type_table
[cltype56
] == idtype57
;
9887 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Assert failed", "src/parser/parser_prod.nit", 2536);
9890 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var_new_child
; /* _n_block on <self:AConcreteInitPropdef> */
9893 self
->attrs
[COLOR_parser_nodes__AConcreteMethPropdef___n_block
].val
= var58
; /* _n_block on <self:AConcreteInitPropdef> */
9900 /* method parser_prod#AConcreteInitPropdef#replace_child for (self: Object, ANode, nullable ANode) */
9901 void VIRTUAL_parser_prod__AConcreteInitPropdef__replace_child(val
* self
, val
* p0
, val
* p1
) {
9902 parser_prod__AConcreteInitPropdef__replace_child(self
, p0
, p1
);
9905 /* method parser_prod#AConcreteInitPropdef#n_doc= for (self: AConcreteInitPropdef, nullable ADoc) */
9906 void parser_prod__AConcreteInitPropdef__n_doc_61d(val
* self
, val
* p0
) {
9907 val
* var_node
/* var node: nullable ADoc */;
9908 val
* var
/* : null */;
9909 short int var1
/* : Bool */;
9911 self
->attrs
[COLOR_parser_nodes__APropdef___n_doc
].val
= var_node
; /* _n_doc on <self:AConcreteInitPropdef> */
9913 if (var_node
== NULL
) {
9914 var1
= 0; /* is null */
9916 var1
= 1; /* arg is null and recv is not */
9919 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable ADoc(ADoc)>*/;
9924 /* method parser_prod#AConcreteInitPropdef#n_doc= for (self: Object, nullable ADoc) */
9925 void VIRTUAL_parser_prod__AConcreteInitPropdef__n_doc_61d(val
* self
, val
* p0
) {
9926 parser_prod__AConcreteInitPropdef__n_doc_61d(self
, p0
);
9929 /* method parser_prod#AConcreteInitPropdef#n_kwredef= for (self: AConcreteInitPropdef, nullable TKwredef) */
9930 void parser_prod__AConcreteInitPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9931 val
* var_node
/* var node: nullable TKwredef */;
9932 val
* var
/* : null */;
9933 short int var1
/* : Bool */;
9935 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AConcreteInitPropdef> */
9937 if (var_node
== NULL
) {
9938 var1
= 0; /* is null */
9940 var1
= 1; /* arg is null and recv is not */
9943 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable TKwredef(TKwredef)>*/;
9948 /* method parser_prod#AConcreteInitPropdef#n_kwredef= for (self: Object, nullable TKwredef) */
9949 void VIRTUAL_parser_prod__AConcreteInitPropdef__n_kwredef_61d(val
* self
, val
* p0
) {
9950 parser_prod__AConcreteInitPropdef__n_kwredef_61d(self
, p0
);
9953 /* method parser_prod#AConcreteInitPropdef#n_visibility= for (self: AConcreteInitPropdef, nullable AVisibility) */
9954 void parser_prod__AConcreteInitPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9955 val
* var_node
/* var node: nullable AVisibility */;
9957 self
->attrs
[COLOR_parser_nodes__AMethPropdef___n_visibility
].val
= var_node
; /* _n_visibility on <self:AConcreteInitPropdef> */
9958 if (var_node
== NULL
) {
9959 fprintf(stderr
, "Runtime error: %s (%s:%d)\n", "Reciever is null", "src/parser/parser_prod.nit", 2562);
9962 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:nullable AVisibility>*/;
9966 /* method parser_prod#AConcreteInitPropdef#n_visibility= for (self: Object, nullable AVisibility) */
9967 void VIRTUAL_parser_prod__AConcreteInitPropdef__n_visibility_61d(val
* self
, val
* p0
) {
9968 parser_prod__AConcreteInitPropdef__n_visibility_61d(self
, p0
);
9971 /* method parser_prod#AConcreteInitPropdef#n_kwinit= for (self: AConcreteInitPropdef, TKwinit) */
9972 void parser_prod__AConcreteInitPropdef__n_kwinit_61d(val
* self
, val
* p0
) {
9973 val
* var_node
/* var node: TKwinit */;
9975 self
->attrs
[COLOR_parser_nodes__AConcreteInitPropdef___n_kwinit
].val
= var_node
; /* _n_kwinit on <self:AConcreteInitPropdef> */
9976 ((void (*)(val
*, val
*))(var_node
->class->vft
[COLOR_parser_nodes__ANode__parent_61d
]))(var_node
, self
) /* parent= on <var_node:TKwinit>*/;
9979 /* method parser_prod#AConcreteInitPropdef#n_kwinit= for (self: Object, TKwinit) */
9980 void VIRTUAL_parser_prod__AConcreteInitPropdef__n_kwinit_61d(val
* self
, val
* p0
) {
9981 parser_prod__AConcreteInitPropdef__n_kwinit_61d(self
, p0
);