1 #include "parser_prod.sep.0.h"
2 /* method parser_prod#ACastAsExternCall#n_dot= for (self: ACastAsExternCall, nullable TDot) */
3 void parser_prod__ACastAsExternCall__n_dot_61d(val
* self
, val
* p0
) {
4 val
* var_node
/* var node: nullable TDot */;
6 short int var1
/* : Bool */;
7 short int var2
/* : Bool */;
8 val
* var_other
/* var other: nullable Object */;
9 short int var4
/* : Bool */;
10 short int var5
/* : Bool */;
11 short int var6
/* : Bool */;
13 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
= var_node
; /* _n_dot on <self:ACastAsExternCall> */
15 if (var_node
== NULL
) {
16 var1
= 0; /* is null */
18 var1
= 1; /* arg is null and recv is not */
21 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TDot> */
24 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TDot(TDot)>*/;
36 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TDot(TDot)> */
37 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TDot(TDot)> */
45 /* method parser_prod#ACastAsExternCall#n_dot= for (self: Object, nullable TDot) */
46 void VIRTUAL_parser_prod__ACastAsExternCall__n_dot_61d(val
* self
, val
* p0
) {
47 parser_prod__ACastAsExternCall__n_dot_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_dot= on <self:Object(ACastAsExternCall)>*/
50 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: ACastAsExternCall, TKwas) */
51 void parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
52 val
* var_node
/* var node: TKwas */;
54 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:ACastAsExternCall> */
56 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
57 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
63 /* method parser_prod#ACastAsExternCall#n_kwas= for (self: Object, TKwas) */
64 void VIRTUAL_parser_prod__ACastAsExternCall__n_kwas_61d(val
* self
, val
* p0
) {
65 parser_prod__ACastAsExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on <self:Object(ACastAsExternCall)>*/
68 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: ACastAsExternCall, AType) */
69 void parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
70 val
* var_node
/* var node: AType */;
72 self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
= var_node
; /* _n_to_type on <self:ACastAsExternCall> */
74 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
75 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
81 /* method parser_prod#ACastAsExternCall#n_to_type= for (self: Object, AType) */
82 void VIRTUAL_parser_prod__ACastAsExternCall__n_to_type_61d(val
* self
, val
* p0
) {
83 parser_prod__ACastAsExternCall__n_to_type_61d(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on <self:Object(ACastAsExternCall)>*/
86 /* method parser_prod#ACastAsExternCall#visit_all for (self: ACastAsExternCall, Visitor) */
87 void parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
88 val
* var_v
/* var v: Visitor */;
89 val
* var
/* : AType */;
90 val
* var1
/* : nullable TDot */;
91 val
* var2
/* : TKwas */;
92 val
* var3
/* : AType */;
94 var
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_from_type
].val
; /* _n_from_type on <self:ACastAsExternCall> */
95 if (unlikely(var
== NULL
)) {
96 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type");
97 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7272);
101 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
103 var1
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_dot
].val
; /* _n_dot on <self:ACastAsExternCall> */
105 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
107 var2
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_kwas
].val
; /* _n_kwas on <self:ACastAsExternCall> */
108 if (unlikely(var2
== NULL
)) {
109 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
110 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7274);
114 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
116 var3
= self
->attrs
[COLOR_parser_nodes__ACastAsExternCall___n_to_type
].val
; /* _n_to_type on <self:ACastAsExternCall> */
117 if (unlikely(var3
== NULL
)) {
118 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type");
119 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7275);
123 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
127 /* method parser_prod#ACastAsExternCall#visit_all for (self: Object, Visitor) */
128 void VIRTUAL_parser_prod__ACastAsExternCall__visit_all(val
* self
, val
* p0
) {
129 parser_prod__ACastAsExternCall__visit_all(self
, p0
); /* Direct call parser_prod#ACastAsExternCall#visit_all on <self:Object(ACastAsExternCall)>*/
132 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: AAsNullableExternCall, nullable AType, nullable TKwas, nullable TKwnullable) */
133 void parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
134 val
* var_n_type
/* var n_type: nullable AType */;
135 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
136 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
139 var_n_kwnullable
= p2
;
140 if (unlikely(var_n_type
== NULL
)) {
141 PRINT_ERROR("Runtime error: %s", "Cast failed");
142 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7285);
145 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNullableExternCall> */
146 if (var_n_type
== NULL
) {
147 PRINT_ERROR("Runtime error: %s", "Receiver is null");
148 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7286);
151 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
152 if (unlikely(var_n_type
== NULL
)) {
153 PRINT_ERROR("Runtime error: %s", "Receiver is null");
154 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
157 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
161 if (unlikely(var_n_kwas
== NULL
)) {
162 PRINT_ERROR("Runtime error: %s", "Cast failed");
163 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7287);
166 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNullableExternCall> */
167 if (var_n_kwas
== NULL
) {
168 PRINT_ERROR("Runtime error: %s", "Receiver is null");
169 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7288);
172 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
173 if (unlikely(var_n_kwas
== NULL
)) {
174 PRINT_ERROR("Runtime error: %s", "Receiver is null");
175 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
178 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
182 if (unlikely(var_n_kwnullable
== NULL
)) {
183 PRINT_ERROR("Runtime error: %s", "Cast failed");
184 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7289);
187 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNullableExternCall> */
188 if (var_n_kwnullable
== NULL
) {
189 PRINT_ERROR("Runtime error: %s", "Receiver is null");
190 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7290);
193 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable> */
194 if (unlikely(var_n_kwnullable
== NULL
)) {
195 PRINT_ERROR("Runtime error: %s", "Receiver is null");
196 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
199 var_n_kwnullable
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable> */
205 /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnullable) */
206 void VIRTUAL_parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
207 parser_prod__AAsNullableExternCall__init_aasnullableexterncall(self
, p0
, p1
, p2
); /* Direct call parser_prod#AAsNullableExternCall#init_aasnullableexterncall on <self:Object(AAsNullableExternCall)>*/
210 /* method parser_prod#AAsNullableExternCall#replace_child for (self: AAsNullableExternCall, ANode, nullable ANode) */
211 void parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
212 val
* var_old_child
/* var old_child: ANode */;
213 val
* var_new_child
/* var new_child: nullable ANode */;
214 val
* var
/* : AType */;
215 short int var1
/* : Bool */;
216 short int var2
/* : Bool */;
217 val
* var_other
/* var other: nullable Object */;
218 short int var4
/* : Bool */;
219 short int var6
/* : Bool */;
220 short int var7
/* : Bool */;
223 const char* var_class_name
;
224 val
* var8
/* : TKwas */;
225 short int var9
/* : Bool */;
226 short int var10
/* : Bool */;
227 short int var12
/* : Bool */;
228 short int var14
/* : Bool */;
229 short int var15
/* : Bool */;
232 const char* var_class_name18
;
233 val
* var19
/* : TKwnullable */;
234 short int var20
/* : Bool */;
235 short int var21
/* : Bool */;
236 short int var23
/* : Bool */;
237 short int var25
/* : Bool */;
238 short int var26
/* : Bool */;
241 const char* var_class_name29
;
244 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
245 if (unlikely(var
== NULL
)) {
246 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
247 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7295);
251 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
252 var_other
= var_old_child
;
254 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
255 var6
= var
== var_other
;
268 /* <var_new_child:nullable ANode> isa AType */
269 cltype
= type_parser_nodes__AType
.color
;
270 idtype
= type_parser_nodes__AType
.id
;
271 if(var_new_child
== NULL
) {
274 if(cltype
>= var_new_child
->type
->table_size
) {
277 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
280 if (unlikely(!var7
)) {
281 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
282 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
283 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7296);
287 parser_prod__AAsNullableExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_type= on <self:AAsNullableExternCall>*/
292 var8
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
293 if (unlikely(var8
== NULL
)) {
294 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
295 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7299);
299 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
300 var_other
= var_old_child
;
302 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
303 var14
= var8
== var_other
;
316 /* <var_new_child:nullable ANode> isa TKwas */
317 cltype16
= type_parser_nodes__TKwas
.color
;
318 idtype17
= type_parser_nodes__TKwas
.id
;
319 if(var_new_child
== NULL
) {
322 if(cltype16
>= var_new_child
->type
->table_size
) {
325 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
328 if (unlikely(!var15
)) {
329 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
330 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
331 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7300);
335 parser_prod__AAsNullableExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on <self:AAsNullableExternCall>*/
340 var19
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
341 if (unlikely(var19
== NULL
)) {
342 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
343 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7303);
347 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwnullable> */
348 var_other
= var_old_child
;
350 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwnullable> */
351 var25
= var19
== var_other
;
364 /* <var_new_child:nullable ANode> isa TKwnullable */
365 cltype27
= type_parser_nodes__TKwnullable
.color
;
366 idtype28
= type_parser_nodes__TKwnullable
.id
;
367 if(var_new_child
== NULL
) {
370 if(cltype27
>= var_new_child
->type
->table_size
) {
373 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
376 if (unlikely(!var26
)) {
377 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
378 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name29
);
379 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7304);
383 parser_prod__AAsNullableExternCall__n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on <self:AAsNullableExternCall>*/
390 /* method parser_prod#AAsNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
391 void VIRTUAL_parser_prod__AAsNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
392 parser_prod__AAsNullableExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNullableExternCall#replace_child on <self:Object(AAsNullableExternCall)>*/
395 /* method parser_prod#AAsNullableExternCall#n_type= for (self: AAsNullableExternCall, AType) */
396 void parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
397 val
* var_node
/* var node: AType */;
399 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNullableExternCall> */
401 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
402 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
408 /* method parser_prod#AAsNullableExternCall#n_type= for (self: Object, AType) */
409 void VIRTUAL_parser_prod__AAsNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
410 parser_prod__AAsNullableExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_type= on <self:Object(AAsNullableExternCall)>*/
413 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: AAsNullableExternCall, TKwas) */
414 void parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
415 val
* var_node
/* var node: TKwas */;
417 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNullableExternCall> */
419 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
420 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
426 /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: Object, TKwas) */
427 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
428 parser_prod__AAsNullableExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on <self:Object(AAsNullableExternCall)>*/
431 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: AAsNullableExternCall, TKwnullable) */
432 void parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
433 val
* var_node
/* var node: TKwnullable */;
435 self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNullableExternCall> */
437 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnullable> */
438 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnullable> */
444 /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
445 void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
446 parser_prod__AAsNullableExternCall__n_kwnullable_61d(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on <self:Object(AAsNullableExternCall)>*/
449 /* method parser_prod#AAsNullableExternCall#visit_all for (self: AAsNullableExternCall, Visitor) */
450 void parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
451 val
* var_v
/* var v: Visitor */;
452 val
* var
/* : AType */;
453 val
* var1
/* : TKwas */;
454 val
* var2
/* : TKwnullable */;
456 var
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNullableExternCall> */
457 if (unlikely(var
== NULL
)) {
458 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
459 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7328);
463 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
465 var1
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNullableExternCall> */
466 if (unlikely(var1
== NULL
)) {
467 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
468 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7329);
472 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
474 var2
= self
->attrs
[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNullableExternCall> */
475 if (unlikely(var2
== NULL
)) {
476 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
477 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7330);
481 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
485 /* method parser_prod#AAsNullableExternCall#visit_all for (self: Object, Visitor) */
486 void VIRTUAL_parser_prod__AAsNullableExternCall__visit_all(val
* self
, val
* p0
) {
487 parser_prod__AAsNullableExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AAsNullableExternCall#visit_all on <self:Object(AAsNullableExternCall)>*/
490 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: AAsNotNullableExternCall, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
491 void parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
492 val
* var_n_type
/* var n_type: nullable AType */;
493 val
* var_n_kwas
/* var n_kwas: nullable TKwas */;
494 val
* var_n_kwnot
/* var n_kwnot: nullable TKwnot */;
495 val
* var_n_kwnullable
/* var n_kwnullable: nullable TKwnullable */;
499 var_n_kwnullable
= p3
;
500 if (unlikely(var_n_type
== NULL
)) {
501 PRINT_ERROR("Runtime error: %s", "Cast failed");
502 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7341);
505 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_n_type
; /* _n_type on <self:AAsNotNullableExternCall> */
506 if (var_n_type
== NULL
) {
507 PRINT_ERROR("Runtime error: %s", "Receiver is null");
508 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7342);
511 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
512 if (unlikely(var_n_type
== NULL
)) {
513 PRINT_ERROR("Runtime error: %s", "Receiver is null");
514 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
517 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
521 if (unlikely(var_n_kwas
== NULL
)) {
522 PRINT_ERROR("Runtime error: %s", "Cast failed");
523 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7343);
526 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_n_kwas
; /* _n_kwas on <self:AAsNotNullableExternCall> */
527 if (var_n_kwas
== NULL
) {
528 PRINT_ERROR("Runtime error: %s", "Receiver is null");
529 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7344);
532 { /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on <var_n_kwas:nullable TKwas> */
533 if (unlikely(var_n_kwas
== NULL
)) {
534 PRINT_ERROR("Runtime error: %s", "Receiver is null");
535 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
538 var_n_kwas
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwas:nullable TKwas> */
542 if (unlikely(var_n_kwnot
== NULL
)) {
543 PRINT_ERROR("Runtime error: %s", "Cast failed");
544 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7345);
547 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_n_kwnot
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
548 if (var_n_kwnot
== NULL
) {
549 PRINT_ERROR("Runtime error: %s", "Receiver is null");
550 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7346);
553 { /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on <var_n_kwnot:nullable TKwnot> */
554 if (unlikely(var_n_kwnot
== NULL
)) {
555 PRINT_ERROR("Runtime error: %s", "Receiver is null");
556 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
559 var_n_kwnot
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnot:nullable TKwnot> */
563 if (unlikely(var_n_kwnullable
== NULL
)) {
564 PRINT_ERROR("Runtime error: %s", "Cast failed");
565 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7347);
568 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_n_kwnullable
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
569 if (var_n_kwnullable
== NULL
) {
570 PRINT_ERROR("Runtime error: %s", "Receiver is null");
571 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7348);
574 { /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on <var_n_kwnullable:nullable TKwnullable> */
575 if (unlikely(var_n_kwnullable
== NULL
)) {
576 PRINT_ERROR("Runtime error: %s", "Receiver is null");
577 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
580 var_n_kwnullable
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwnullable:nullable TKwnullable> */
586 /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */
587 void VIRTUAL_parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
588 parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall on <self:Object(AAsNotNullableExternCall)>*/
591 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: AAsNotNullableExternCall, ANode, nullable ANode) */
592 void parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
593 val
* var_old_child
/* var old_child: ANode */;
594 val
* var_new_child
/* var new_child: nullable ANode */;
595 val
* var
/* : AType */;
596 short int var1
/* : Bool */;
597 short int var2
/* : Bool */;
598 val
* var_other
/* var other: nullable Object */;
599 short int var4
/* : Bool */;
600 short int var6
/* : Bool */;
601 short int var7
/* : Bool */;
604 const char* var_class_name
;
605 val
* var8
/* : TKwas */;
606 short int var9
/* : Bool */;
607 short int var10
/* : Bool */;
608 short int var12
/* : Bool */;
609 short int var14
/* : Bool */;
610 short int var15
/* : Bool */;
613 const char* var_class_name18
;
614 val
* var19
/* : TKwnot */;
615 short int var20
/* : Bool */;
616 short int var21
/* : Bool */;
617 short int var23
/* : Bool */;
618 short int var25
/* : Bool */;
619 short int var26
/* : Bool */;
622 const char* var_class_name29
;
623 val
* var30
/* : TKwnullable */;
624 short int var31
/* : Bool */;
625 short int var32
/* : Bool */;
626 short int var34
/* : Bool */;
627 short int var36
/* : Bool */;
628 short int var37
/* : Bool */;
631 const char* var_class_name40
;
634 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
635 if (unlikely(var
== NULL
)) {
636 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
637 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7353);
641 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
642 var_other
= var_old_child
;
644 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
645 var6
= var
== var_other
;
658 /* <var_new_child:nullable ANode> isa AType */
659 cltype
= type_parser_nodes__AType
.color
;
660 idtype
= type_parser_nodes__AType
.id
;
661 if(var_new_child
== NULL
) {
664 if(cltype
>= var_new_child
->type
->table_size
) {
667 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
670 if (unlikely(!var7
)) {
671 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
672 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
673 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7354);
677 parser_prod__AAsNotNullableExternCall__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on <self:AAsNotNullableExternCall>*/
682 var8
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
683 if (unlikely(var8
== NULL
)) {
684 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
685 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7357);
689 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TKwas> */
690 var_other
= var_old_child
;
692 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TKwas> */
693 var14
= var8
== var_other
;
706 /* <var_new_child:nullable ANode> isa TKwas */
707 cltype16
= type_parser_nodes__TKwas
.color
;
708 idtype17
= type_parser_nodes__TKwas
.id
;
709 if(var_new_child
== NULL
) {
712 if(cltype16
>= var_new_child
->type
->table_size
) {
715 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
718 if (unlikely(!var15
)) {
719 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
720 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18
);
721 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7358);
725 parser_prod__AAsNotNullableExternCall__n_kwas_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on <self:AAsNotNullableExternCall>*/
730 var19
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
731 if (unlikely(var19
== NULL
)) {
732 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
733 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7361);
737 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:TKwnot> */
738 var_other
= var_old_child
;
740 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:TKwnot> */
741 var25
= var19
== var_other
;
754 /* <var_new_child:nullable ANode> isa TKwnot */
755 cltype27
= type_parser_nodes__TKwnot
.color
;
756 idtype28
= type_parser_nodes__TKwnot
.id
;
757 if(var_new_child
== NULL
) {
760 if(cltype27
>= var_new_child
->type
->table_size
) {
763 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
766 if (unlikely(!var26
)) {
767 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
768 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name29
);
769 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7362);
773 parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on <self:AAsNotNullableExternCall>*/
778 var30
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
779 if (unlikely(var30
== NULL
)) {
780 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
781 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7365);
785 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:TKwnullable> */
786 var_other
= var_old_child
;
788 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:TKwnullable> */
789 var36
= var30
== var_other
;
802 /* <var_new_child:nullable ANode> isa TKwnullable */
803 cltype38
= type_parser_nodes__TKwnullable
.color
;
804 idtype39
= type_parser_nodes__TKwnullable
.id
;
805 if(var_new_child
== NULL
) {
808 if(cltype38
>= var_new_child
->type
->table_size
) {
811 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
814 if (unlikely(!var37
)) {
815 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
816 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name40
);
817 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7366);
821 parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self
, var_new_child
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on <self:AAsNotNullableExternCall>*/
828 /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */
829 void VIRTUAL_parser_prod__AAsNotNullableExternCall__replace_child(val
* self
, val
* p0
, val
* p1
) {
830 parser_prod__AAsNotNullableExternCall__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAsNotNullableExternCall#replace_child on <self:Object(AAsNotNullableExternCall)>*/
833 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: AAsNotNullableExternCall, AType) */
834 void parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
835 val
* var_node
/* var node: AType */;
837 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
= var_node
; /* _n_type on <self:AAsNotNullableExternCall> */
839 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
840 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
846 /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: Object, AType) */
847 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_type_61d(val
* self
, val
* p0
) {
848 parser_prod__AAsNotNullableExternCall__n_type_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on <self:Object(AAsNotNullableExternCall)>*/
851 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: AAsNotNullableExternCall, TKwas) */
852 void parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
853 val
* var_node
/* var node: TKwas */;
855 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
= var_node
; /* _n_kwas on <self:AAsNotNullableExternCall> */
857 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwas> */
858 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwas> */
864 /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: Object, TKwas) */
865 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwas_61d(val
* self
, val
* p0
) {
866 parser_prod__AAsNotNullableExternCall__n_kwas_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on <self:Object(AAsNotNullableExternCall)>*/
869 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: AAsNotNullableExternCall, TKwnot) */
870 void parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
871 val
* var_node
/* var node: TKwnot */;
873 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
= var_node
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
875 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnot> */
876 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnot> */
882 /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: Object, TKwnot) */
883 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val
* self
, val
* p0
) {
884 parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on <self:Object(AAsNotNullableExternCall)>*/
887 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: AAsNotNullableExternCall, TKwnullable) */
888 void parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
889 val
* var_node
/* var node: TKwnullable */;
891 self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
= var_node
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
893 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwnullable> */
894 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwnullable> */
900 /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */
901 void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val
* self
, val
* p0
) {
902 parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on <self:Object(AAsNotNullableExternCall)>*/
905 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: AAsNotNullableExternCall, Visitor) */
906 void parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
907 val
* var_v
/* var v: Visitor */;
908 val
* var
/* : AType */;
909 val
* var1
/* : TKwas */;
910 val
* var2
/* : TKwnot */;
911 val
* var3
/* : TKwnullable */;
913 var
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_type
].val
; /* _n_type on <self:AAsNotNullableExternCall> */
914 if (unlikely(var
== NULL
)) {
915 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
916 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7395);
920 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
922 var1
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas
].val
; /* _n_kwas on <self:AAsNotNullableExternCall> */
923 if (unlikely(var1
== NULL
)) {
924 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas");
925 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7396);
929 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
931 var2
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot
].val
; /* _n_kwnot on <self:AAsNotNullableExternCall> */
932 if (unlikely(var2
== NULL
)) {
933 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot");
934 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7397);
938 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
940 var3
= self
->attrs
[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable
].val
; /* _n_kwnullable on <self:AAsNotNullableExternCall> */
941 if (unlikely(var3
== NULL
)) {
942 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable");
943 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7398);
947 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
951 /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: Object, Visitor) */
952 void VIRTUAL_parser_prod__AAsNotNullableExternCall__visit_all(val
* self
, val
* p0
) {
953 parser_prod__AAsNotNullableExternCall__visit_all(self
, p0
); /* Direct call parser_prod#AAsNotNullableExternCall#visit_all on <self:Object(AAsNotNullableExternCall)>*/
956 /* method parser_prod#AInLanguage#init_ainlanguage for (self: AInLanguage, nullable TKwin, nullable TString) */
957 void parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
958 val
* var_n_kwin
/* var n_kwin: nullable TKwin */;
959 val
* var_n_string
/* var n_string: nullable TString */;
962 if (unlikely(var_n_kwin
== NULL
)) {
963 PRINT_ERROR("Runtime error: %s", "Cast failed");
964 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7407);
967 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_n_kwin
; /* _n_kwin on <self:AInLanguage> */
968 if (var_n_kwin
== NULL
) {
969 PRINT_ERROR("Runtime error: %s", "Receiver is null");
970 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7408);
973 { /* Inline parser_nodes#ANode#parent= (var_n_kwin,self) on <var_n_kwin:nullable TKwin> */
974 if (unlikely(var_n_kwin
== NULL
)) {
975 PRINT_ERROR("Runtime error: %s", "Receiver is null");
976 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
979 var_n_kwin
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwin:nullable TKwin> */
983 if (unlikely(var_n_string
== NULL
)) {
984 PRINT_ERROR("Runtime error: %s", "Cast failed");
985 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7409);
988 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_n_string
; /* _n_string on <self:AInLanguage> */
989 if (var_n_string
== NULL
) {
990 PRINT_ERROR("Runtime error: %s", "Receiver is null");
991 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7410);
994 { /* Inline parser_nodes#ANode#parent= (var_n_string,self) on <var_n_string:nullable TString> */
995 if (unlikely(var_n_string
== NULL
)) {
996 PRINT_ERROR("Runtime error: %s", "Receiver is null");
997 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1000 var_n_string
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_string:nullable TString> */
1006 /* method parser_prod#AInLanguage#init_ainlanguage for (self: Object, nullable TKwin, nullable TString) */
1007 void VIRTUAL_parser_prod__AInLanguage__init_ainlanguage(val
* self
, val
* p0
, val
* p1
) {
1008 parser_prod__AInLanguage__init_ainlanguage(self
, p0
, p1
); /* Direct call parser_prod#AInLanguage#init_ainlanguage on <self:Object(AInLanguage)>*/
1011 /* method parser_prod#AInLanguage#replace_child for (self: AInLanguage, ANode, nullable ANode) */
1012 void parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
1013 val
* var_old_child
/* var old_child: ANode */;
1014 val
* var_new_child
/* var new_child: nullable ANode */;
1015 val
* var
/* : TKwin */;
1016 short int var1
/* : Bool */;
1017 short int var2
/* : Bool */;
1018 val
* var_other
/* var other: nullable Object */;
1019 short int var4
/* : Bool */;
1020 short int var6
/* : Bool */;
1021 short int var7
/* : Bool */;
1024 const char* var_class_name
;
1025 val
* var8
/* : TString */;
1026 short int var9
/* : Bool */;
1027 short int var10
/* : Bool */;
1028 short int var12
/* : Bool */;
1029 short int var14
/* : Bool */;
1030 short int var15
/* : Bool */;
1033 const char* var_class_name18
;
1036 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
1037 if (unlikely(var
== NULL
)) {
1038 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin");
1039 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7415);
1043 { /* Inline kernel#Object#== (var,var_old_child) on <var:TKwin> */
1044 var_other
= var_old_child
;
1046 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:TKwin> */
1047 var6
= var
== var_other
;
1060 /* <var_new_child:nullable ANode> isa TKwin */
1061 cltype
= type_parser_nodes__TKwin
.color
;
1062 idtype
= type_parser_nodes__TKwin
.id
;
1063 if(var_new_child
== NULL
) {
1066 if(cltype
>= var_new_child
->type
->table_size
) {
1069 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1072 if (unlikely(!var7
)) {
1073 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1074 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwin", var_class_name
);
1075 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7416);
1079 parser_prod__AInLanguage__n_kwin_61d(self
, var_new_child
); /* Direct call parser_prod#AInLanguage#n_kwin= on <self:AInLanguage>*/
1084 var8
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
1085 if (unlikely(var8
== NULL
)) {
1086 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
1087 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7419);
1091 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TString> */
1092 var_other
= var_old_child
;
1094 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TString> */
1095 var14
= var8
== var_other
;
1098 RET_LABEL13
:(void)0;
1103 RET_LABEL11
:(void)0;
1108 /* <var_new_child:nullable ANode> isa TString */
1109 cltype16
= type_parser_nodes__TString
.color
;
1110 idtype17
= type_parser_nodes__TString
.id
;
1111 if(var_new_child
== NULL
) {
1114 if(cltype16
>= var_new_child
->type
->table_size
) {
1117 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1120 if (unlikely(!var15
)) {
1121 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1122 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name18
);
1123 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7420);
1127 parser_prod__AInLanguage__n_string_61d(self
, var_new_child
); /* Direct call parser_prod#AInLanguage#n_string= on <self:AInLanguage>*/
1134 /* method parser_prod#AInLanguage#replace_child for (self: Object, ANode, nullable ANode) */
1135 void VIRTUAL_parser_prod__AInLanguage__replace_child(val
* self
, val
* p0
, val
* p1
) {
1136 parser_prod__AInLanguage__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AInLanguage#replace_child on <self:Object(AInLanguage)>*/
1139 /* method parser_prod#AInLanguage#n_kwin= for (self: AInLanguage, TKwin) */
1140 void parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
1141 val
* var_node
/* var node: TKwin */;
1143 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
= var_node
; /* _n_kwin on <self:AInLanguage> */
1145 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TKwin> */
1146 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TKwin> */
1152 /* method parser_prod#AInLanguage#n_kwin= for (self: Object, TKwin) */
1153 void VIRTUAL_parser_prod__AInLanguage__n_kwin_61d(val
* self
, val
* p0
) {
1154 parser_prod__AInLanguage__n_kwin_61d(self
, p0
); /* Direct call parser_prod#AInLanguage#n_kwin= on <self:Object(AInLanguage)>*/
1157 /* method parser_prod#AInLanguage#n_string= for (self: AInLanguage, TString) */
1158 void parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
1159 val
* var_node
/* var node: TString */;
1161 self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
= var_node
; /* _n_string on <self:AInLanguage> */
1163 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TString> */
1164 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TString> */
1170 /* method parser_prod#AInLanguage#n_string= for (self: Object, TString) */
1171 void VIRTUAL_parser_prod__AInLanguage__n_string_61d(val
* self
, val
* p0
) {
1172 parser_prod__AInLanguage__n_string_61d(self
, p0
); /* Direct call parser_prod#AInLanguage#n_string= on <self:Object(AInLanguage)>*/
1175 /* method parser_prod#AInLanguage#visit_all for (self: AInLanguage, Visitor) */
1176 void parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
1177 val
* var_v
/* var v: Visitor */;
1178 val
* var
/* : TKwin */;
1179 val
* var1
/* : TString */;
1181 var
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_kwin
].val
; /* _n_kwin on <self:AInLanguage> */
1182 if (unlikely(var
== NULL
)) {
1183 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin");
1184 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7439);
1188 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1190 var1
= self
->attrs
[COLOR_parser_nodes__AInLanguage___n_string
].val
; /* _n_string on <self:AInLanguage> */
1191 if (unlikely(var1
== NULL
)) {
1192 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string");
1193 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7440);
1197 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1201 /* method parser_prod#AInLanguage#visit_all for (self: Object, Visitor) */
1202 void VIRTUAL_parser_prod__AInLanguage__visit_all(val
* self
, val
* p0
) {
1203 parser_prod__AInLanguage__visit_all(self
, p0
); /* Direct call parser_prod#AInLanguage#visit_all on <self:Object(AInLanguage)>*/
1206 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: AExternCodeBlock, nullable AInLanguage, nullable TExternCodeSegment) */
1207 void parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
1208 val
* var_n_in_language
/* var n_in_language: nullable AInLanguage */;
1209 val
* var_n_extern_code_segment
/* var n_extern_code_segment: nullable TExternCodeSegment */;
1210 val
* var
/* : null */;
1211 short int var1
/* : Bool */;
1212 short int var2
/* : Bool */;
1213 val
* var_other
/* var other: nullable Object */;
1214 short int var4
/* : Bool */;
1215 short int var5
/* : Bool */;
1216 short int var6
/* : Bool */;
1217 var_n_in_language
= p0
;
1218 var_n_extern_code_segment
= p1
;
1219 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_n_in_language
; /* _n_in_language on <self:AExternCodeBlock> */
1221 if (var_n_in_language
== NULL
) {
1222 var1
= 0; /* is null */
1224 var1
= 1; /* arg is null and recv is not */
1227 { /* Inline kernel#Object#!= (var_n_in_language,var) on <var_n_in_language:nullable AInLanguage> */
1230 var5
= ((short int (*)(val
*, val
*))(var_n_in_language
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_in_language
, var_other
) /* == on <var_n_in_language:nullable AInLanguage(AInLanguage)>*/;
1242 { /* Inline parser_nodes#ANode#parent= (var_n_in_language,self) on <var_n_in_language:nullable AInLanguage(AInLanguage)> */
1243 var_n_in_language
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_in_language:nullable AInLanguage(AInLanguage)> */
1249 if (unlikely(var_n_extern_code_segment
== NULL
)) {
1250 PRINT_ERROR("Runtime error: %s", "Cast failed");
1251 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7451);
1254 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_n_extern_code_segment
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
1255 if (var_n_extern_code_segment
== NULL
) {
1256 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1257 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7452);
1260 { /* Inline parser_nodes#ANode#parent= (var_n_extern_code_segment,self) on <var_n_extern_code_segment:nullable TExternCodeSegment> */
1261 if (unlikely(var_n_extern_code_segment
== NULL
)) {
1262 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1263 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
1266 var_n_extern_code_segment
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_extern_code_segment:nullable TExternCodeSegment> */
1272 /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: Object, nullable AInLanguage, nullable TExternCodeSegment) */
1273 void VIRTUAL_parser_prod__AExternCodeBlock__init_aexterncodeblock(val
* self
, val
* p0
, val
* p1
) {
1274 parser_prod__AExternCodeBlock__init_aexterncodeblock(self
, p0
, p1
); /* Direct call parser_prod#AExternCodeBlock#init_aexterncodeblock on <self:Object(AExternCodeBlock)>*/
1277 /* method parser_prod#AExternCodeBlock#replace_child for (self: AExternCodeBlock, ANode, nullable ANode) */
1278 void parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
1279 val
* var_old_child
/* var old_child: ANode */;
1280 val
* var_new_child
/* var new_child: nullable ANode */;
1281 val
* var
/* : nullable AInLanguage */;
1282 short int var1
/* : Bool */;
1283 short int var2
/* : Bool */;
1284 val
* var_other
/* var other: nullable Object */;
1285 short int var4
/* : Bool */;
1286 short int var6
/* : Bool */;
1287 short int var7
/* : Bool */;
1290 const char* var_class_name
;
1291 val
* var8
/* : TExternCodeSegment */;
1292 short int var9
/* : Bool */;
1293 short int var10
/* : Bool */;
1294 short int var12
/* : Bool */;
1295 short int var14
/* : Bool */;
1296 short int var15
/* : Bool */;
1299 const char* var_class_name18
;
1302 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
1304 var1
= 0; /* <var_old_child:ANode> cannot be null */
1306 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AInLanguage> */
1307 var_other
= var_old_child
;
1309 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AInLanguage(AInLanguage)> */
1310 var6
= var
== var_other
;
1323 /* <var_new_child:nullable ANode> isa nullable AInLanguage */
1324 cltype
= type_nullable_parser_nodes__AInLanguage
.color
;
1325 idtype
= type_nullable_parser_nodes__AInLanguage
.id
;
1326 if(var_new_child
== NULL
) {
1329 if(cltype
>= var_new_child
->type
->table_size
) {
1332 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1335 if (unlikely(!var7
)) {
1336 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1337 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AInLanguage", var_class_name
);
1338 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7458);
1342 parser_prod__AExternCodeBlock__n_in_language_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on <self:AExternCodeBlock>*/
1347 var8
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
1348 if (unlikely(var8
== NULL
)) {
1349 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment");
1350 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7461);
1354 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:TExternCodeSegment> */
1355 var_other
= var_old_child
;
1357 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:TExternCodeSegment> */
1358 var14
= var8
== var_other
;
1361 RET_LABEL13
:(void)0;
1366 RET_LABEL11
:(void)0;
1371 /* <var_new_child:nullable ANode> isa TExternCodeSegment */
1372 cltype16
= type_parser_nodes__TExternCodeSegment
.color
;
1373 idtype17
= type_parser_nodes__TExternCodeSegment
.id
;
1374 if(var_new_child
== NULL
) {
1377 if(cltype16
>= var_new_child
->type
->table_size
) {
1380 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
1383 if (unlikely(!var15
)) {
1384 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1385 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TExternCodeSegment", var_class_name18
);
1386 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7462);
1390 parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self
, var_new_child
); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on <self:AExternCodeBlock>*/
1397 /* method parser_prod#AExternCodeBlock#replace_child for (self: Object, ANode, nullable ANode) */
1398 void VIRTUAL_parser_prod__AExternCodeBlock__replace_child(val
* self
, val
* p0
, val
* p1
) {
1399 parser_prod__AExternCodeBlock__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExternCodeBlock#replace_child on <self:Object(AExternCodeBlock)>*/
1402 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: AExternCodeBlock, nullable AInLanguage) */
1403 void parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
1404 val
* var_node
/* var node: nullable AInLanguage */;
1405 val
* var
/* : null */;
1406 short int var1
/* : Bool */;
1407 short int var2
/* : Bool */;
1408 val
* var_other
/* var other: nullable Object */;
1409 short int var4
/* : Bool */;
1410 short int var5
/* : Bool */;
1411 short int var6
/* : Bool */;
1413 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
= var_node
; /* _n_in_language on <self:AExternCodeBlock> */
1415 if (var_node
== NULL
) {
1416 var1
= 0; /* is null */
1418 var1
= 1; /* arg is null and recv is not */
1421 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AInLanguage> */
1424 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AInLanguage(AInLanguage)>*/;
1436 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AInLanguage(AInLanguage)> */
1437 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AInLanguage(AInLanguage)> */
1445 /* method parser_prod#AExternCodeBlock#n_in_language= for (self: Object, nullable AInLanguage) */
1446 void VIRTUAL_parser_prod__AExternCodeBlock__n_in_language_61d(val
* self
, val
* p0
) {
1447 parser_prod__AExternCodeBlock__n_in_language_61d(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on <self:Object(AExternCodeBlock)>*/
1450 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: AExternCodeBlock, TExternCodeSegment) */
1451 void parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
1452 val
* var_node
/* var node: TExternCodeSegment */;
1454 self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
= var_node
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
1456 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:TExternCodeSegment> */
1457 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:TExternCodeSegment> */
1463 /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: Object, TExternCodeSegment) */
1464 void VIRTUAL_parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val
* self
, val
* p0
) {
1465 parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on <self:Object(AExternCodeBlock)>*/
1468 /* method parser_prod#AExternCodeBlock#visit_all for (self: AExternCodeBlock, Visitor) */
1469 void parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
1470 val
* var_v
/* var v: Visitor */;
1471 val
* var
/* : nullable AInLanguage */;
1472 val
* var1
/* : TExternCodeSegment */;
1474 var
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_in_language
].val
; /* _n_in_language on <self:AExternCodeBlock> */
1476 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1478 var1
= self
->attrs
[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment
].val
; /* _n_extern_code_segment on <self:AExternCodeBlock> */
1479 if (unlikely(var1
== NULL
)) {
1480 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment");
1481 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7482);
1485 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1489 /* method parser_prod#AExternCodeBlock#visit_all for (self: Object, Visitor) */
1490 void VIRTUAL_parser_prod__AExternCodeBlock__visit_all(val
* self
, val
* p0
) {
1491 parser_prod__AExternCodeBlock__visit_all(self
, p0
); /* Direct call parser_prod#AExternCodeBlock#visit_all on <self:Object(AExternCodeBlock)>*/
1494 /* method parser_prod#AQualified#init_aqualified for (self: AQualified, Collection[Object], nullable TClassid) */
1495 void parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
1496 val
* var_n_id
/* var n_id: Collection[Object] */;
1497 val
* var_n_classid
/* var n_classid: nullable TClassid */;
1498 val
* var
/* : ANodes[TId] */;
1499 val
* var2
/* : ANodes[TId] */;
1500 val
* var3
/* : null */;
1501 short int var4
/* : Bool */;
1502 short int var5
/* : Bool */;
1503 val
* var_other
/* var other: nullable Object */;
1504 short int var7
/* : Bool */;
1505 short int var8
/* : Bool */;
1506 short int var9
/* : Bool */;
1510 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
1511 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
1512 if (unlikely(var2
== NULL
)) {
1513 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1514 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2380);
1522 parser_nodes__ANodes__unsafe_add_all(var
, var_n_id
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[TId]>*/
1524 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_n_classid
; /* _n_classid on <self:AQualified> */
1526 if (var_n_classid
== NULL
) {
1527 var4
= 0; /* is null */
1529 var4
= 1; /* arg is null and recv is not */
1532 { /* Inline kernel#Object#!= (var_n_classid,var3) on <var_n_classid:nullable TClassid> */
1535 var8
= ((short int (*)(val
*, val
*))(var_n_classid
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_classid
, var_other
) /* == on <var_n_classid:nullable TClassid(TClassid)>*/;
1547 { /* Inline parser_nodes#ANode#parent= (var_n_classid,self) on <var_n_classid:nullable TClassid(TClassid)> */
1548 var_n_classid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_classid:nullable TClassid(TClassid)> */
1549 RET_LABEL10
:(void)0;
1556 /* method parser_prod#AQualified#init_aqualified for (self: Object, Collection[Object], nullable TClassid) */
1557 void VIRTUAL_parser_prod__AQualified__init_aqualified(val
* self
, val
* p0
, val
* p1
) {
1558 parser_prod__AQualified__init_aqualified(self
, p0
, p1
); /* Direct call parser_prod#AQualified#init_aqualified on <self:Object(AQualified)>*/
1561 /* method parser_prod#AQualified#replace_child for (self: AQualified, ANode, nullable ANode) */
1562 void parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
1563 val
* var_old_child
/* var old_child: ANode */;
1564 val
* var_new_child
/* var new_child: nullable ANode */;
1565 val
* var
/* : ANodes[TId] */;
1566 val
* var2
/* : ANodes[TId] */;
1567 short int var3
/* : Bool */;
1568 val
* var4
/* : nullable TClassid */;
1569 short int var5
/* : Bool */;
1570 short int var6
/* : Bool */;
1571 val
* var_other
/* var other: nullable Object */;
1572 short int var8
/* : Bool */;
1573 short int var10
/* : Bool */;
1574 short int var11
/* : Bool */;
1577 const char* var_class_name
;
1581 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
1582 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
1583 if (unlikely(var2
== NULL
)) {
1584 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1585 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2380);
1593 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
1599 var4
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
1601 var5
= 0; /* <var_old_child:ANode> cannot be null */
1603 { /* Inline kernel#Object#== (var4,var_old_child) on <var4:nullable TClassid> */
1604 var_other
= var_old_child
;
1606 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:nullable TClassid(TClassid)> */
1607 var10
= var4
== var_other
;
1620 /* <var_new_child:nullable ANode> isa nullable TClassid */
1621 cltype
= type_nullable_parser_nodes__TClassid
.color
;
1622 idtype
= type_nullable_parser_nodes__TClassid
.id
;
1623 if(var_new_child
== NULL
) {
1626 if(cltype
>= var_new_child
->type
->table_size
) {
1629 var11
= var_new_child
->type
->type_table
[cltype
] == idtype
;
1632 if (unlikely(!var11
)) {
1633 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
1634 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TClassid", var_class_name
);
1635 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7500);
1639 parser_prod__AQualified__n_classid_61d(self
, var_new_child
); /* Direct call parser_prod#AQualified#n_classid= on <self:AQualified>*/
1646 /* method parser_prod#AQualified#replace_child for (self: Object, ANode, nullable ANode) */
1647 void VIRTUAL_parser_prod__AQualified__replace_child(val
* self
, val
* p0
, val
* p1
) {
1648 parser_prod__AQualified__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AQualified#replace_child on <self:Object(AQualified)>*/
1651 /* method parser_prod#AQualified#n_classid= for (self: AQualified, nullable TClassid) */
1652 void parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
1653 val
* var_node
/* var node: nullable TClassid */;
1654 val
* var
/* : null */;
1655 short int var1
/* : Bool */;
1656 short int var2
/* : Bool */;
1657 val
* var_other
/* var other: nullable Object */;
1658 short int var4
/* : Bool */;
1659 short int var5
/* : Bool */;
1660 short int var6
/* : Bool */;
1662 self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
= var_node
; /* _n_classid on <self:AQualified> */
1664 if (var_node
== NULL
) {
1665 var1
= 0; /* is null */
1667 var1
= 1; /* arg is null and recv is not */
1670 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TClassid> */
1673 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TClassid(TClassid)>*/;
1685 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TClassid(TClassid)> */
1686 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TClassid(TClassid)> */
1694 /* method parser_prod#AQualified#n_classid= for (self: Object, nullable TClassid) */
1695 void VIRTUAL_parser_prod__AQualified__n_classid_61d(val
* self
, val
* p0
) {
1696 parser_prod__AQualified__n_classid_61d(self
, p0
); /* Direct call parser_prod#AQualified#n_classid= on <self:Object(AQualified)>*/
1699 /* method parser_prod#AQualified#visit_all for (self: AQualified, Visitor) */
1700 void parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
1701 val
* var_v
/* var v: Visitor */;
1702 val
* var
/* : ANodes[TId] */;
1703 val
* var2
/* : ANodes[TId] */;
1704 val
* var3
/* : nullable TClassid */;
1707 { /* Inline parser_nodes#AQualified#n_id (self) on <self:AQualified> */
1708 var2
= self
->attrs
[COLOR_parser_nodes__AQualified___n_id
].val
; /* _n_id on <self:AQualified> */
1709 if (unlikely(var2
== NULL
)) {
1710 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
1711 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2380);
1719 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[TId]>*/
1721 var3
= self
->attrs
[COLOR_parser_nodes__AQualified___n_classid
].val
; /* _n_classid on <self:AQualified> */
1723 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
1727 /* method parser_prod#AQualified#visit_all for (self: Object, Visitor) */
1728 void VIRTUAL_parser_prod__AQualified__visit_all(val
* self
, val
* p0
) {
1729 parser_prod__AQualified__visit_all(self
, p0
); /* Direct call parser_prod#AQualified#visit_all on <self:Object(AQualified)>*/
1732 /* method parser_prod#ADoc#init_adoc for (self: ADoc, Collection[Object]) */
1733 void parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
1734 val
* var_n_comment
/* var n_comment: Collection[Object] */;
1735 val
* var
/* : ANodes[TComment] */;
1736 val
* var2
/* : ANodes[TComment] */;
1739 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
1740 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
1741 if (unlikely(var2
== NULL
)) {
1742 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
1743 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2391);
1751 parser_nodes__ANodes__unsafe_add_all(var
, var_n_comment
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var:ANodes[TComment]>*/
1755 /* method parser_prod#ADoc#init_adoc for (self: Object, Collection[Object]) */
1756 void VIRTUAL_parser_prod__ADoc__init_adoc(val
* self
, val
* p0
) {
1757 parser_prod__ADoc__init_adoc(self
, p0
); /* Direct call parser_prod#ADoc#init_adoc on <self:Object(ADoc)>*/
1760 /* method parser_prod#ADoc#replace_child for (self: ADoc, ANode, nullable ANode) */
1761 void parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
1762 val
* var_old_child
/* var old_child: ANode */;
1763 val
* var_new_child
/* var new_child: nullable ANode */;
1764 val
* var
/* : ANodes[TComment] */;
1765 val
* var2
/* : ANodes[TComment] */;
1766 short int var3
/* : Bool */;
1770 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
1771 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
1772 if (unlikely(var2
== NULL
)) {
1773 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
1774 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2391);
1782 var3
= parser_nodes__ANodes__replace_child(var
, var_old_child
, var_new_child
);
1790 /* method parser_prod#ADoc#replace_child for (self: Object, ANode, nullable ANode) */
1791 void VIRTUAL_parser_prod__ADoc__replace_child(val
* self
, val
* p0
, val
* p1
) {
1792 parser_prod__ADoc__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ADoc#replace_child on <self:Object(ADoc)>*/
1795 /* method parser_prod#ADoc#visit_all for (self: ADoc, Visitor) */
1796 void parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
1797 val
* var_v
/* var v: Visitor */;
1798 val
* var
/* : ANodes[TComment] */;
1799 val
* var2
/* : ANodes[TComment] */;
1802 { /* Inline parser_nodes#ADoc#n_comment (self) on <self:ADoc> */
1803 var2
= self
->attrs
[COLOR_parser_nodes__ADoc___n_comment
].val
; /* _n_comment on <self:ADoc> */
1804 if (unlikely(var2
== NULL
)) {
1805 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment");
1806 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2391);
1814 parser_nodes__ANodes__visit_all(var
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var:ANodes[TComment]>*/
1818 /* method parser_prod#ADoc#visit_all for (self: Object, Visitor) */
1819 void VIRTUAL_parser_prod__ADoc__visit_all(val
* self
, val
* p0
) {
1820 parser_prod__ADoc__visit_all(self
, p0
); /* Direct call parser_prod#ADoc#visit_all on <self:Object(ADoc)>*/
1823 /* method parser_prod#AAnnotations#init_aannotations for (self: AAnnotations, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
1824 void parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1825 val
* var_n_at
/* var n_at: nullable TAt */;
1826 val
* var_n_opar
/* var n_opar: nullable TOpar */;
1827 val
* var_n_items
/* var n_items: Collection[Object] */;
1828 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
1829 val
* var
/* : null */;
1830 short int var1
/* : Bool */;
1831 short int var2
/* : Bool */;
1832 val
* var_other
/* var other: nullable Object */;
1833 short int var4
/* : Bool */;
1834 short int var5
/* : Bool */;
1835 short int var6
/* : Bool */;
1836 val
* var8
/* : null */;
1837 short int var9
/* : Bool */;
1838 short int var10
/* : Bool */;
1839 short int var12
/* : Bool */;
1840 short int var13
/* : Bool */;
1841 short int var14
/* : Bool */;
1842 val
* var16
/* : ANodes[AAnnotation] */;
1843 val
* var18
/* : ANodes[AAnnotation] */;
1844 val
* var19
/* : null */;
1845 short int var20
/* : Bool */;
1846 short int var21
/* : Bool */;
1847 short int var23
/* : Bool */;
1848 short int var24
/* : Bool */;
1849 short int var25
/* : Bool */;
1854 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_n_at
; /* _n_at on <self:AAnnotations> */
1856 if (var_n_at
== NULL
) {
1857 var1
= 0; /* is null */
1859 var1
= 1; /* arg is null and recv is not */
1862 { /* Inline kernel#Object#!= (var_n_at,var) on <var_n_at:nullable TAt> */
1865 var5
= ((short int (*)(val
*, val
*))(var_n_at
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_at
, var_other
) /* == on <var_n_at:nullable TAt(TAt)>*/;
1877 { /* Inline parser_nodes#ANode#parent= (var_n_at,self) on <var_n_at:nullable TAt(TAt)> */
1878 var_n_at
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_at:nullable TAt(TAt)> */
1884 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotations> */
1886 if (var_n_opar
== NULL
) {
1887 var9
= 0; /* is null */
1889 var9
= 1; /* arg is null and recv is not */
1892 { /* Inline kernel#Object#!= (var_n_opar,var8) on <var_n_opar:nullable TOpar> */
1895 var13
= ((short int (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_opar
, var_other
) /* == on <var_n_opar:nullable TOpar(TOpar)>*/;
1901 RET_LABEL11
:(void)0;
1907 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
1908 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
1909 RET_LABEL15
:(void)0;
1915 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
1916 var18
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
1917 if (unlikely(var18
== NULL
)) {
1918 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
1919 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2403);
1923 RET_LABEL17
:(void)0;
1927 parser_nodes__ANodes__unsafe_add_all(var16
, var_n_items
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var16:ANodes[AAnnotation]>*/
1929 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotations> */
1931 if (var_n_cpar
== NULL
) {
1932 var20
= 0; /* is null */
1934 var20
= 1; /* arg is null and recv is not */
1937 { /* Inline kernel#Object#!= (var_n_cpar,var19) on <var_n_cpar:nullable TCpar> */
1940 var24
= ((short int (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_cpar
, var_other
) /* == on <var_n_cpar:nullable TCpar(TCpar)>*/;
1946 RET_LABEL22
:(void)0;
1952 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
1953 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
1954 RET_LABEL26
:(void)0;
1961 /* method parser_prod#AAnnotations#init_aannotations for (self: Object, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */
1962 void VIRTUAL_parser_prod__AAnnotations__init_aannotations(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
) {
1963 parser_prod__AAnnotations__init_aannotations(self
, p0
, p1
, p2
, p3
); /* Direct call parser_prod#AAnnotations#init_aannotations on <self:Object(AAnnotations)>*/
1966 /* method parser_prod#AAnnotations#replace_child for (self: AAnnotations, ANode, nullable ANode) */
1967 void parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
1968 val
* var_old_child
/* var old_child: ANode */;
1969 val
* var_new_child
/* var new_child: nullable ANode */;
1970 val
* var
/* : nullable TAt */;
1971 short int var1
/* : Bool */;
1972 short int var2
/* : Bool */;
1973 val
* var_other
/* var other: nullable Object */;
1974 short int var4
/* : Bool */;
1975 short int var6
/* : Bool */;
1976 short int var7
/* : Bool */;
1979 const char* var_class_name
;
1980 val
* var8
/* : nullable TOpar */;
1981 short int var9
/* : Bool */;
1982 short int var10
/* : Bool */;
1983 short int var12
/* : Bool */;
1984 short int var14
/* : Bool */;
1985 short int var15
/* : Bool */;
1988 const char* var_class_name18
;
1989 val
* var19
/* : ANodes[AAnnotation] */;
1990 val
* var21
/* : ANodes[AAnnotation] */;
1991 short int var22
/* : Bool */;
1992 val
* var23
/* : nullable TCpar */;
1993 short int var24
/* : Bool */;
1994 short int var25
/* : Bool */;
1995 short int var27
/* : Bool */;
1996 short int var29
/* : Bool */;
1997 short int var30
/* : Bool */;
2000 const char* var_class_name33
;
2003 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
2005 var1
= 0; /* <var_old_child:ANode> cannot be null */
2007 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable TAt> */
2008 var_other
= var_old_child
;
2010 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable TAt(TAt)> */
2011 var6
= var
== var_other
;
2024 /* <var_new_child:nullable ANode> isa nullable TAt */
2025 cltype
= type_nullable_parser_nodes__TAt
.color
;
2026 idtype
= type_nullable_parser_nodes__TAt
.id
;
2027 if(var_new_child
== NULL
) {
2030 if(cltype
>= var_new_child
->type
->table_size
) {
2033 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2036 if (unlikely(!var7
)) {
2037 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2038 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAt", var_class_name
);
2039 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7558);
2043 parser_prod__AAnnotations__n_at_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_at= on <self:AAnnotations>*/
2048 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
2050 var9
= 0; /* <var_old_child:ANode> cannot be null */
2052 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TOpar> */
2053 var_other
= var_old_child
;
2055 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TOpar(TOpar)> */
2056 var14
= var8
== var_other
;
2059 RET_LABEL13
:(void)0;
2064 RET_LABEL11
:(void)0;
2069 /* <var_new_child:nullable ANode> isa nullable TOpar */
2070 cltype16
= type_nullable_parser_nodes__TOpar
.color
;
2071 idtype17
= type_nullable_parser_nodes__TOpar
.id
;
2072 if(var_new_child
== NULL
) {
2075 if(cltype16
>= var_new_child
->type
->table_size
) {
2078 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2081 if (unlikely(!var15
)) {
2082 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2083 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name18
);
2084 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7562);
2088 parser_prod__AAnnotations__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_opar= on <self:AAnnotations>*/
2094 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
2095 var21
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
2096 if (unlikely(var21
== NULL
)) {
2097 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
2098 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2403);
2102 RET_LABEL20
:(void)0;
2106 var22
= parser_nodes__ANodes__replace_child(var19
, var_old_child
, var_new_child
);
2112 var23
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
2113 if (var23
== NULL
) {
2114 var24
= 0; /* <var_old_child:ANode> cannot be null */
2116 { /* Inline kernel#Object#== (var23,var_old_child) on <var23:nullable TCpar> */
2117 var_other
= var_old_child
;
2119 { /* Inline kernel#Object#is_same_instance (var23,var_other) on <var23:nullable TCpar(TCpar)> */
2120 var29
= var23
== var_other
;
2123 RET_LABEL28
:(void)0;
2128 RET_LABEL26
:(void)0;
2133 /* <var_new_child:nullable ANode> isa nullable TCpar */
2134 cltype31
= type_nullable_parser_nodes__TCpar
.color
;
2135 idtype32
= type_nullable_parser_nodes__TCpar
.id
;
2136 if(var_new_child
== NULL
) {
2139 if(cltype31
>= var_new_child
->type
->table_size
) {
2142 var30
= var_new_child
->type
->type_table
[cltype31
] == idtype32
;
2145 if (unlikely(!var30
)) {
2146 var_class_name33
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2147 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name33
);
2148 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7567);
2152 parser_prod__AAnnotations__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotations#n_cpar= on <self:AAnnotations>*/
2159 /* method parser_prod#AAnnotations#replace_child for (self: Object, ANode, nullable ANode) */
2160 void VIRTUAL_parser_prod__AAnnotations__replace_child(val
* self
, val
* p0
, val
* p1
) {
2161 parser_prod__AAnnotations__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAnnotations#replace_child on <self:Object(AAnnotations)>*/
2164 /* method parser_prod#AAnnotations#n_at= for (self: AAnnotations, nullable TAt) */
2165 void parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
2166 val
* var_node
/* var node: nullable TAt */;
2167 val
* var
/* : null */;
2168 short int var1
/* : Bool */;
2169 short int var2
/* : Bool */;
2170 val
* var_other
/* var other: nullable Object */;
2171 short int var4
/* : Bool */;
2172 short int var5
/* : Bool */;
2173 short int var6
/* : Bool */;
2175 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
= var_node
; /* _n_at on <self:AAnnotations> */
2177 if (var_node
== NULL
) {
2178 var1
= 0; /* is null */
2180 var1
= 1; /* arg is null and recv is not */
2183 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TAt> */
2186 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TAt(TAt)>*/;
2198 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TAt(TAt)> */
2199 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TAt(TAt)> */
2207 /* method parser_prod#AAnnotations#n_at= for (self: Object, nullable TAt) */
2208 void VIRTUAL_parser_prod__AAnnotations__n_at_61d(val
* self
, val
* p0
) {
2209 parser_prod__AAnnotations__n_at_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_at= on <self:Object(AAnnotations)>*/
2212 /* method parser_prod#AAnnotations#n_opar= for (self: AAnnotations, nullable TOpar) */
2213 void parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
2214 val
* var_node
/* var node: nullable TOpar */;
2215 val
* var
/* : null */;
2216 short int var1
/* : Bool */;
2217 short int var2
/* : Bool */;
2218 val
* var_other
/* var other: nullable Object */;
2219 short int var4
/* : Bool */;
2220 short int var5
/* : Bool */;
2221 short int var6
/* : Bool */;
2223 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotations> */
2225 if (var_node
== NULL
) {
2226 var1
= 0; /* is null */
2228 var1
= 1; /* arg is null and recv is not */
2231 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
2234 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
2246 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
2247 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
2255 /* method parser_prod#AAnnotations#n_opar= for (self: Object, nullable TOpar) */
2256 void VIRTUAL_parser_prod__AAnnotations__n_opar_61d(val
* self
, val
* p0
) {
2257 parser_prod__AAnnotations__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_opar= on <self:Object(AAnnotations)>*/
2260 /* method parser_prod#AAnnotations#n_cpar= for (self: AAnnotations, nullable TCpar) */
2261 void parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
2262 val
* var_node
/* var node: nullable TCpar */;
2263 val
* var
/* : null */;
2264 short int var1
/* : Bool */;
2265 short int var2
/* : Bool */;
2266 val
* var_other
/* var other: nullable Object */;
2267 short int var4
/* : Bool */;
2268 short int var5
/* : Bool */;
2269 short int var6
/* : Bool */;
2271 self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotations> */
2273 if (var_node
== NULL
) {
2274 var1
= 0; /* is null */
2276 var1
= 1; /* arg is null and recv is not */
2279 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
2282 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
2294 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
2295 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
2303 /* method parser_prod#AAnnotations#n_cpar= for (self: Object, nullable TCpar) */
2304 void VIRTUAL_parser_prod__AAnnotations__n_cpar_61d(val
* self
, val
* p0
) {
2305 parser_prod__AAnnotations__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAnnotations#n_cpar= on <self:Object(AAnnotations)>*/
2308 /* method parser_prod#AAnnotations#visit_all for (self: AAnnotations, Visitor) */
2309 void parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
2310 val
* var_v
/* var v: Visitor */;
2311 val
* var
/* : nullable TAt */;
2312 val
* var1
/* : nullable TOpar */;
2313 val
* var2
/* : ANodes[AAnnotation] */;
2314 val
* var4
/* : ANodes[AAnnotation] */;
2315 val
* var5
/* : nullable TCpar */;
2317 var
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_at
].val
; /* _n_at on <self:AAnnotations> */
2319 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2321 var1
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_opar
].val
; /* _n_opar on <self:AAnnotations> */
2323 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2326 { /* Inline parser_nodes#AAnnotations#n_items (self) on <self:AAnnotations> */
2327 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_items
].val
; /* _n_items on <self:AAnnotations> */
2328 if (unlikely(var4
== NULL
)) {
2329 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items");
2330 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2403);
2338 parser_nodes__ANodes__visit_all(var2
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var2:ANodes[AAnnotation]>*/
2340 var5
= self
->attrs
[COLOR_parser_nodes__AAnnotations___n_cpar
].val
; /* _n_cpar on <self:AAnnotations> */
2342 parser_nodes__Visitor__enter_visit(var_v
, var5
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
2346 /* method parser_prod#AAnnotations#visit_all for (self: Object, Visitor) */
2347 void VIRTUAL_parser_prod__AAnnotations__visit_all(val
* self
, val
* p0
) {
2348 parser_prod__AAnnotations__visit_all(self
, p0
); /* Direct call parser_prod#AAnnotations#visit_all on <self:Object(AAnnotations)>*/
2351 /* method parser_prod#AAnnotation#init_aannotation for (self: AAnnotation, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
2352 void parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
2353 val
* var_n_doc
/* var n_doc: nullable ADoc */;
2354 val
* var_n_kwredef
/* var n_kwredef: nullable TKwredef */;
2355 val
* var_n_visibility
/* var n_visibility: nullable AVisibility */;
2356 val
* var_n_atid
/* var n_atid: nullable AAtid */;
2357 val
* var_n_opar
/* var n_opar: nullable TOpar */;
2358 val
* var_n_args
/* var n_args: Collection[Object] */;
2359 val
* var_n_cpar
/* var n_cpar: nullable TCpar */;
2360 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
2361 val
* var
/* : null */;
2362 short int var1
/* : Bool */;
2363 short int var2
/* : Bool */;
2364 val
* var_other
/* var other: nullable Object */;
2365 short int var4
/* : Bool */;
2366 short int var5
/* : Bool */;
2367 short int var6
/* : Bool */;
2368 val
* var8
/* : null */;
2369 short int var9
/* : Bool */;
2370 short int var10
/* : Bool */;
2371 short int var12
/* : Bool */;
2372 short int var13
/* : Bool */;
2373 short int var14
/* : Bool */;
2374 val
* var16
/* : null */;
2375 short int var17
/* : Bool */;
2376 short int var18
/* : Bool */;
2377 short int var20
/* : Bool */;
2378 short int var21
/* : Bool */;
2379 short int var22
/* : Bool */;
2380 val
* var25
/* : null */;
2381 short int var26
/* : Bool */;
2382 short int var27
/* : Bool */;
2383 short int var29
/* : Bool */;
2384 short int var30
/* : Bool */;
2385 short int var31
/* : Bool */;
2386 val
* var33
/* : ANodes[AAtArg] */;
2387 val
* var35
/* : ANodes[AAtArg] */;
2388 val
* var36
/* : null */;
2389 short int var37
/* : Bool */;
2390 short int var38
/* : Bool */;
2391 short int var40
/* : Bool */;
2392 short int var41
/* : Bool */;
2393 short int var42
/* : Bool */;
2394 val
* var44
/* : null */;
2395 short int var45
/* : Bool */;
2396 short int var46
/* : Bool */;
2397 short int var48
/* : Bool */;
2398 short int var49
/* : Bool */;
2399 short int var50
/* : Bool */;
2402 var_n_visibility
= p2
;
2407 var_n_annotations
= p7
;
2408 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
= var_n_doc
; /* _n_doc on <self:AAnnotation> */
2410 if (var_n_doc
== NULL
) {
2411 var1
= 0; /* is null */
2413 var1
= 1; /* arg is null and recv is not */
2416 { /* Inline kernel#Object#!= (var_n_doc,var) on <var_n_doc:nullable ADoc> */
2419 var5
= ((short int (*)(val
*, val
*))(var_n_doc
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_doc
, var_other
) /* == on <var_n_doc:nullable ADoc(ADoc)>*/;
2431 { /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on <var_n_doc:nullable ADoc(ADoc)> */
2432 var_n_doc
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_doc:nullable ADoc(ADoc)> */
2438 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
= var_n_kwredef
; /* _n_kwredef on <self:AAnnotation> */
2440 if (var_n_kwredef
== NULL
) {
2441 var9
= 0; /* is null */
2443 var9
= 1; /* arg is null and recv is not */
2446 { /* Inline kernel#Object#!= (var_n_kwredef,var8) on <var_n_kwredef:nullable TKwredef> */
2449 var13
= ((short int (*)(val
*, val
*))(var_n_kwredef
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_kwredef
, var_other
) /* == on <var_n_kwredef:nullable TKwredef(TKwredef)>*/;
2455 RET_LABEL11
:(void)0;
2461 { /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2462 var_n_kwredef
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_kwredef:nullable TKwredef(TKwredef)> */
2463 RET_LABEL15
:(void)0;
2468 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
= var_n_visibility
; /* _n_visibility on <self:AAnnotation> */
2470 if (var_n_visibility
== NULL
) {
2471 var17
= 0; /* is null */
2473 var17
= 1; /* arg is null and recv is not */
2476 { /* Inline kernel#Object#!= (var_n_visibility,var16) on <var_n_visibility:nullable AVisibility> */
2479 var21
= ((short int (*)(val
*, val
*))(var_n_visibility
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_visibility
, var_other
) /* == on <var_n_visibility:nullable AVisibility(AVisibility)>*/;
2485 RET_LABEL19
:(void)0;
2491 { /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on <var_n_visibility:nullable AVisibility(AVisibility)> */
2492 var_n_visibility
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_visibility:nullable AVisibility(AVisibility)> */
2493 RET_LABEL23
:(void)0;
2498 if (unlikely(var_n_atid
== NULL
)) {
2499 PRINT_ERROR("Runtime error: %s", "Cast failed");
2500 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7615);
2503 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_n_atid
; /* _n_atid on <self:AAnnotation> */
2504 if (var_n_atid
== NULL
) {
2505 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2506 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7616);
2509 { /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on <var_n_atid:nullable AAtid> */
2510 if (unlikely(var_n_atid
== NULL
)) {
2511 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2512 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
2515 var_n_atid
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_atid:nullable AAtid> */
2516 RET_LABEL24
:(void)0;
2519 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_n_opar
; /* _n_opar on <self:AAnnotation> */
2521 if (var_n_opar
== NULL
) {
2522 var26
= 0; /* is null */
2524 var26
= 1; /* arg is null and recv is not */
2527 { /* Inline kernel#Object#!= (var_n_opar,var25) on <var_n_opar:nullable TOpar> */
2530 var30
= ((short int (*)(val
*, val
*))(var_n_opar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_opar
, var_other
) /* == on <var_n_opar:nullable TOpar(TOpar)>*/;
2536 RET_LABEL28
:(void)0;
2542 { /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on <var_n_opar:nullable TOpar(TOpar)> */
2543 var_n_opar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_opar:nullable TOpar(TOpar)> */
2544 RET_LABEL32
:(void)0;
2550 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
2551 var35
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
2552 if (unlikely(var35
== NULL
)) {
2553 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2554 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2426);
2558 RET_LABEL34
:(void)0;
2562 parser_nodes__ANodes__unsafe_add_all(var33
, var_n_args
); /* Direct call parser_nodes#ANodes#unsafe_add_all on <var33:ANodes[AAtArg]>*/
2564 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_n_cpar
; /* _n_cpar on <self:AAnnotation> */
2566 if (var_n_cpar
== NULL
) {
2567 var37
= 0; /* is null */
2569 var37
= 1; /* arg is null and recv is not */
2572 { /* Inline kernel#Object#!= (var_n_cpar,var36) on <var_n_cpar:nullable TCpar> */
2575 var41
= ((short int (*)(val
*, val
*))(var_n_cpar
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_cpar
, var_other
) /* == on <var_n_cpar:nullable TCpar(TCpar)>*/;
2581 RET_LABEL39
:(void)0;
2587 { /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on <var_n_cpar:nullable TCpar(TCpar)> */
2588 var_n_cpar
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_cpar:nullable TCpar(TCpar)> */
2589 RET_LABEL43
:(void)0;
2594 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAnnotation> */
2596 if (var_n_annotations
== NULL
) {
2597 var45
= 0; /* is null */
2599 var45
= 1; /* arg is null and recv is not */
2602 { /* Inline kernel#Object#!= (var_n_annotations,var44) on <var_n_annotations:nullable AAnnotations> */
2605 var49
= ((short int (*)(val
*, val
*))(var_n_annotations
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_n_annotations
, var_other
) /* == on <var_n_annotations:nullable AAnnotations(AAnnotations)>*/;
2611 RET_LABEL47
:(void)0;
2617 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2618 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations(AAnnotations)> */
2619 RET_LABEL51
:(void)0;
2626 /* method parser_prod#AAnnotation#init_aannotation for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */
2627 void VIRTUAL_parser_prod__AAnnotation__init_aannotation(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
, val
* p5
, val
* p6
, val
* p7
) {
2628 parser_prod__AAnnotation__init_aannotation(self
, p0
, p1
, p2
, p3
, p4
, p5
, p6
, p7
); /* Direct call parser_prod#AAnnotation#init_aannotation on <self:Object(AAnnotation)>*/
2631 /* method parser_prod#AAnnotation#replace_child for (self: AAnnotation, ANode, nullable ANode) */
2632 void parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
2633 val
* var_old_child
/* var old_child: ANode */;
2634 val
* var_new_child
/* var new_child: nullable ANode */;
2635 val
* var
/* : nullable ADoc */;
2636 short int var1
/* : Bool */;
2637 short int var2
/* : Bool */;
2638 val
* var_other
/* var other: nullable Object */;
2639 short int var4
/* : Bool */;
2640 short int var6
/* : Bool */;
2641 short int var7
/* : Bool */;
2644 const char* var_class_name
;
2645 val
* var8
/* : nullable TKwredef */;
2646 short int var9
/* : Bool */;
2647 short int var10
/* : Bool */;
2648 short int var12
/* : Bool */;
2649 short int var14
/* : Bool */;
2650 short int var15
/* : Bool */;
2653 const char* var_class_name18
;
2654 val
* var19
/* : nullable AVisibility */;
2655 short int var20
/* : Bool */;
2656 short int var21
/* : Bool */;
2657 short int var23
/* : Bool */;
2658 short int var25
/* : Bool */;
2659 short int var26
/* : Bool */;
2662 const char* var_class_name29
;
2663 val
* var30
/* : AAtid */;
2664 short int var31
/* : Bool */;
2665 short int var32
/* : Bool */;
2666 short int var34
/* : Bool */;
2667 short int var36
/* : Bool */;
2668 short int var37
/* : Bool */;
2671 const char* var_class_name40
;
2672 val
* var41
/* : nullable TOpar */;
2673 short int var42
/* : Bool */;
2674 short int var43
/* : Bool */;
2675 short int var45
/* : Bool */;
2676 short int var47
/* : Bool */;
2677 short int var48
/* : Bool */;
2680 const char* var_class_name51
;
2681 val
* var52
/* : ANodes[AAtArg] */;
2682 val
* var54
/* : ANodes[AAtArg] */;
2683 short int var55
/* : Bool */;
2684 val
* var56
/* : nullable TCpar */;
2685 short int var57
/* : Bool */;
2686 short int var58
/* : Bool */;
2687 short int var60
/* : Bool */;
2688 short int var62
/* : Bool */;
2689 short int var63
/* : Bool */;
2692 const char* var_class_name66
;
2693 val
* var67
/* : nullable AAnnotations */;
2694 short int var68
/* : Bool */;
2695 short int var69
/* : Bool */;
2696 short int var71
/* : Bool */;
2697 short int var73
/* : Bool */;
2698 short int var74
/* : Bool */;
2701 const char* var_class_name77
;
2704 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
; /* _n_doc on <self:AAnnotation> */
2706 var1
= 0; /* <var_old_child:ANode> cannot be null */
2708 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable ADoc> */
2709 var_other
= var_old_child
;
2711 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable ADoc(ADoc)> */
2712 var6
= var
== var_other
;
2725 /* <var_new_child:nullable ANode> isa nullable ADoc */
2726 cltype
= type_nullable_parser_nodes__ADoc
.color
;
2727 idtype
= type_nullable_parser_nodes__ADoc
.id
;
2728 if(var_new_child
== NULL
) {
2731 if(cltype
>= var_new_child
->type
->table_size
) {
2734 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
2737 if (unlikely(!var7
)) {
2738 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2739 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name
);
2740 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7629);
2744 parser_prod__AAnnotation__n_doc_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_doc= on <self:AAnnotation>*/
2749 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotation> */
2751 var9
= 0; /* <var_old_child:ANode> cannot be null */
2753 { /* Inline kernel#Object#== (var8,var_old_child) on <var8:nullable TKwredef> */
2754 var_other
= var_old_child
;
2756 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:nullable TKwredef(TKwredef)> */
2757 var14
= var8
== var_other
;
2760 RET_LABEL13
:(void)0;
2765 RET_LABEL11
:(void)0;
2770 /* <var_new_child:nullable ANode> isa nullable TKwredef */
2771 cltype16
= type_nullable_parser_nodes__TKwredef
.color
;
2772 idtype17
= type_nullable_parser_nodes__TKwredef
.id
;
2773 if(var_new_child
== NULL
) {
2776 if(cltype16
>= var_new_child
->type
->table_size
) {
2779 var15
= var_new_child
->type
->type_table
[cltype16
] == idtype17
;
2782 if (unlikely(!var15
)) {
2783 var_class_name18
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2784 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18
);
2785 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7633);
2789 parser_prod__AAnnotation__n_kwredef_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_kwredef= on <self:AAnnotation>*/
2794 var19
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
; /* _n_visibility on <self:AAnnotation> */
2795 if (var19
== NULL
) {
2796 var20
= 0; /* <var_old_child:ANode> cannot be null */
2798 { /* Inline kernel#Object#== (var19,var_old_child) on <var19:nullable AVisibility> */
2799 var_other
= var_old_child
;
2801 { /* Inline kernel#Object#is_same_instance (var19,var_other) on <var19:nullable AVisibility(AVisibility)> */
2802 var25
= var19
== var_other
;
2805 RET_LABEL24
:(void)0;
2810 RET_LABEL22
:(void)0;
2815 /* <var_new_child:nullable ANode> isa nullable AVisibility */
2816 cltype27
= type_nullable_parser_nodes__AVisibility
.color
;
2817 idtype28
= type_nullable_parser_nodes__AVisibility
.id
;
2818 if(var_new_child
== NULL
) {
2821 if(cltype27
>= var_new_child
->type
->table_size
) {
2824 var26
= var_new_child
->type
->type_table
[cltype27
] == idtype28
;
2827 if (unlikely(!var26
)) {
2828 var_class_name29
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2829 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29
);
2830 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7637);
2834 parser_prod__AAnnotation__n_visibility_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_visibility= on <self:AAnnotation>*/
2839 var30
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
2840 if (unlikely(var30
== NULL
)) {
2841 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
2842 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7640);
2846 { /* Inline kernel#Object#== (var30,var_old_child) on <var30:AAtid> */
2847 var_other
= var_old_child
;
2849 { /* Inline kernel#Object#is_same_instance (var30,var_other) on <var30:AAtid> */
2850 var36
= var30
== var_other
;
2853 RET_LABEL35
:(void)0;
2858 RET_LABEL33
:(void)0;
2863 /* <var_new_child:nullable ANode> isa AAtid */
2864 cltype38
= type_parser_nodes__AAtid
.color
;
2865 idtype39
= type_parser_nodes__AAtid
.id
;
2866 if(var_new_child
== NULL
) {
2869 if(cltype38
>= var_new_child
->type
->table_size
) {
2872 var37
= var_new_child
->type
->type_table
[cltype38
] == idtype39
;
2875 if (unlikely(!var37
)) {
2876 var_class_name40
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2877 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name40
);
2878 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7641);
2882 parser_prod__AAnnotation__n_atid_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_atid= on <self:AAnnotation>*/
2887 var41
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
2888 if (var41
== NULL
) {
2889 var42
= 0; /* <var_old_child:ANode> cannot be null */
2891 { /* Inline kernel#Object#== (var41,var_old_child) on <var41:nullable TOpar> */
2892 var_other
= var_old_child
;
2894 { /* Inline kernel#Object#is_same_instance (var41,var_other) on <var41:nullable TOpar(TOpar)> */
2895 var47
= var41
== var_other
;
2898 RET_LABEL46
:(void)0;
2903 RET_LABEL44
:(void)0;
2908 /* <var_new_child:nullable ANode> isa nullable TOpar */
2909 cltype49
= type_nullable_parser_nodes__TOpar
.color
;
2910 idtype50
= type_nullable_parser_nodes__TOpar
.id
;
2911 if(var_new_child
== NULL
) {
2914 if(cltype49
>= var_new_child
->type
->table_size
) {
2917 var48
= var_new_child
->type
->type_table
[cltype49
] == idtype50
;
2920 if (unlikely(!var48
)) {
2921 var_class_name51
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2922 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name51
);
2923 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7645);
2927 parser_prod__AAnnotation__n_opar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_opar= on <self:AAnnotation>*/
2933 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
2934 var54
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
2935 if (unlikely(var54
== NULL
)) {
2936 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
2937 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2426);
2941 RET_LABEL53
:(void)0;
2945 var55
= parser_nodes__ANodes__replace_child(var52
, var_old_child
, var_new_child
);
2951 var56
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
2952 if (var56
== NULL
) {
2953 var57
= 0; /* <var_old_child:ANode> cannot be null */
2955 { /* Inline kernel#Object#== (var56,var_old_child) on <var56:nullable TCpar> */
2956 var_other
= var_old_child
;
2958 { /* Inline kernel#Object#is_same_instance (var56,var_other) on <var56:nullable TCpar(TCpar)> */
2959 var62
= var56
== var_other
;
2962 RET_LABEL61
:(void)0;
2967 RET_LABEL59
:(void)0;
2972 /* <var_new_child:nullable ANode> isa nullable TCpar */
2973 cltype64
= type_nullable_parser_nodes__TCpar
.color
;
2974 idtype65
= type_nullable_parser_nodes__TCpar
.id
;
2975 if(var_new_child
== NULL
) {
2978 if(cltype64
>= var_new_child
->type
->table_size
) {
2981 var63
= var_new_child
->type
->type_table
[cltype64
] == idtype65
;
2984 if (unlikely(!var63
)) {
2985 var_class_name66
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
2986 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name66
);
2987 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7650);
2991 parser_prod__AAnnotation__n_cpar_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_cpar= on <self:AAnnotation>*/
2996 var67
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
2997 if (var67
== NULL
) {
2998 var68
= 0; /* <var_old_child:ANode> cannot be null */
3000 { /* Inline kernel#Object#== (var67,var_old_child) on <var67:nullable AAnnotations> */
3001 var_other
= var_old_child
;
3003 { /* Inline kernel#Object#is_same_instance (var67,var_other) on <var67:nullable AAnnotations(AAnnotations)> */
3004 var73
= var67
== var_other
;
3007 RET_LABEL72
:(void)0;
3012 RET_LABEL70
:(void)0;
3017 /* <var_new_child:nullable ANode> isa nullable AAnnotations */
3018 cltype75
= type_nullable_parser_nodes__AAnnotations
.color
;
3019 idtype76
= type_nullable_parser_nodes__AAnnotations
.id
;
3020 if(var_new_child
== NULL
) {
3023 if(cltype75
>= var_new_child
->type
->table_size
) {
3026 var74
= var_new_child
->type
->type_table
[cltype75
] == idtype76
;
3029 if (unlikely(!var74
)) {
3030 var_class_name77
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3031 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name77
);
3032 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7654);
3036 parser_prod__AAnnotation__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAnnotation#n_annotations= on <self:AAnnotation>*/
3043 /* method parser_prod#AAnnotation#replace_child for (self: Object, ANode, nullable ANode) */
3044 void VIRTUAL_parser_prod__AAnnotation__replace_child(val
* self
, val
* p0
, val
* p1
) {
3045 parser_prod__AAnnotation__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAnnotation#replace_child on <self:Object(AAnnotation)>*/
3048 /* method parser_prod#AAnnotation#n_doc= for (self: AAnnotation, nullable ADoc) */
3049 void parser_prod__AAnnotation__n_doc_61d(val
* self
, val
* p0
) {
3050 val
* var_node
/* var node: nullable ADoc */;
3051 val
* var
/* : null */;
3052 short int var1
/* : Bool */;
3053 short int var2
/* : Bool */;
3054 val
* var_other
/* var other: nullable Object */;
3055 short int var4
/* : Bool */;
3056 short int var5
/* : Bool */;
3057 short int var6
/* : Bool */;
3059 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
= var_node
; /* _n_doc on <self:AAnnotation> */
3061 if (var_node
== NULL
) {
3062 var1
= 0; /* is null */
3064 var1
= 1; /* arg is null and recv is not */
3067 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable ADoc> */
3070 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable ADoc(ADoc)>*/;
3082 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable ADoc(ADoc)> */
3083 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable ADoc(ADoc)> */
3091 /* method parser_prod#AAnnotation#n_doc= for (self: Object, nullable ADoc) */
3092 void VIRTUAL_parser_prod__AAnnotation__n_doc_61d(val
* self
, val
* p0
) {
3093 parser_prod__AAnnotation__n_doc_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_doc= on <self:Object(AAnnotation)>*/
3096 /* method parser_prod#AAnnotation#n_kwredef= for (self: AAnnotation, nullable TKwredef) */
3097 void parser_prod__AAnnotation__n_kwredef_61d(val
* self
, val
* p0
) {
3098 val
* var_node
/* var node: nullable TKwredef */;
3099 val
* var
/* : null */;
3100 short int var1
/* : Bool */;
3101 short int var2
/* : Bool */;
3102 val
* var_other
/* var other: nullable Object */;
3103 short int var4
/* : Bool */;
3104 short int var5
/* : Bool */;
3105 short int var6
/* : Bool */;
3107 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
= var_node
; /* _n_kwredef on <self:AAnnotation> */
3109 if (var_node
== NULL
) {
3110 var1
= 0; /* is null */
3112 var1
= 1; /* arg is null and recv is not */
3115 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TKwredef> */
3118 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TKwredef(TKwredef)>*/;
3130 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TKwredef(TKwredef)> */
3131 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TKwredef(TKwredef)> */
3139 /* method parser_prod#AAnnotation#n_kwredef= for (self: Object, nullable TKwredef) */
3140 void VIRTUAL_parser_prod__AAnnotation__n_kwredef_61d(val
* self
, val
* p0
) {
3141 parser_prod__AAnnotation__n_kwredef_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_kwredef= on <self:Object(AAnnotation)>*/
3144 /* method parser_prod#AAnnotation#n_visibility= for (self: AAnnotation, nullable AVisibility) */
3145 void parser_prod__AAnnotation__n_visibility_61d(val
* self
, val
* p0
) {
3146 val
* var_node
/* var node: nullable AVisibility */;
3147 val
* var
/* : null */;
3148 short int var1
/* : Bool */;
3149 short int var2
/* : Bool */;
3150 val
* var_other
/* var other: nullable Object */;
3151 short int var4
/* : Bool */;
3152 short int var5
/* : Bool */;
3153 short int var6
/* : Bool */;
3155 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
= var_node
; /* _n_visibility on <self:AAnnotation> */
3157 if (var_node
== NULL
) {
3158 var1
= 0; /* is null */
3160 var1
= 1; /* arg is null and recv is not */
3163 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AVisibility> */
3166 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AVisibility(AVisibility)>*/;
3178 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AVisibility(AVisibility)> */
3179 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AVisibility(AVisibility)> */
3187 /* method parser_prod#AAnnotation#n_visibility= for (self: Object, nullable AVisibility) */
3188 void VIRTUAL_parser_prod__AAnnotation__n_visibility_61d(val
* self
, val
* p0
) {
3189 parser_prod__AAnnotation__n_visibility_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_visibility= on <self:Object(AAnnotation)>*/
3192 /* method parser_prod#AAnnotation#n_atid= for (self: AAnnotation, AAtid) */
3193 void parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
3194 val
* var_node
/* var node: AAtid */;
3196 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
= var_node
; /* _n_atid on <self:AAnnotation> */
3198 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AAtid> */
3199 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AAtid> */
3205 /* method parser_prod#AAnnotation#n_atid= for (self: Object, AAtid) */
3206 void VIRTUAL_parser_prod__AAnnotation__n_atid_61d(val
* self
, val
* p0
) {
3207 parser_prod__AAnnotation__n_atid_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_atid= on <self:Object(AAnnotation)>*/
3210 /* method parser_prod#AAnnotation#n_opar= for (self: AAnnotation, nullable TOpar) */
3211 void parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
3212 val
* var_node
/* var node: nullable TOpar */;
3213 val
* var
/* : null */;
3214 short int var1
/* : Bool */;
3215 short int var2
/* : Bool */;
3216 val
* var_other
/* var other: nullable Object */;
3217 short int var4
/* : Bool */;
3218 short int var5
/* : Bool */;
3219 short int var6
/* : Bool */;
3221 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
= var_node
; /* _n_opar on <self:AAnnotation> */
3223 if (var_node
== NULL
) {
3224 var1
= 0; /* is null */
3226 var1
= 1; /* arg is null and recv is not */
3229 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TOpar> */
3232 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TOpar(TOpar)>*/;
3244 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TOpar(TOpar)> */
3245 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TOpar(TOpar)> */
3253 /* method parser_prod#AAnnotation#n_opar= for (self: Object, nullable TOpar) */
3254 void VIRTUAL_parser_prod__AAnnotation__n_opar_61d(val
* self
, val
* p0
) {
3255 parser_prod__AAnnotation__n_opar_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_opar= on <self:Object(AAnnotation)>*/
3258 /* method parser_prod#AAnnotation#n_cpar= for (self: AAnnotation, nullable TCpar) */
3259 void parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
3260 val
* var_node
/* var node: nullable TCpar */;
3261 val
* var
/* : null */;
3262 short int var1
/* : Bool */;
3263 short int var2
/* : Bool */;
3264 val
* var_other
/* var other: nullable Object */;
3265 short int var4
/* : Bool */;
3266 short int var5
/* : Bool */;
3267 short int var6
/* : Bool */;
3269 self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
= var_node
; /* _n_cpar on <self:AAnnotation> */
3271 if (var_node
== NULL
) {
3272 var1
= 0; /* is null */
3274 var1
= 1; /* arg is null and recv is not */
3277 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable TCpar> */
3280 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable TCpar(TCpar)>*/;
3292 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable TCpar(TCpar)> */
3293 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable TCpar(TCpar)> */
3301 /* method parser_prod#AAnnotation#n_cpar= for (self: Object, nullable TCpar) */
3302 void VIRTUAL_parser_prod__AAnnotation__n_cpar_61d(val
* self
, val
* p0
) {
3303 parser_prod__AAnnotation__n_cpar_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_cpar= on <self:Object(AAnnotation)>*/
3306 /* method parser_prod#AAnnotation#n_annotations= for (self: AAnnotation, nullable AAnnotations) */
3307 void parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
3308 val
* var_node
/* var node: nullable AAnnotations */;
3309 val
* var
/* : null */;
3310 short int var1
/* : Bool */;
3311 short int var2
/* : Bool */;
3312 val
* var_other
/* var other: nullable Object */;
3313 short int var4
/* : Bool */;
3314 short int var5
/* : Bool */;
3315 short int var6
/* : Bool */;
3317 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAnnotation> */
3319 if (var_node
== NULL
) {
3320 var1
= 0; /* is null */
3322 var1
= 1; /* arg is null and recv is not */
3325 { /* Inline kernel#Object#!= (var_node,var) on <var_node:nullable AAnnotations> */
3328 var5
= ((short int (*)(val
*, val
*))(var_node
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable AAnnotations(AAnnotations)>*/;
3340 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations(AAnnotations)> */
3341 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations(AAnnotations)> */
3349 /* method parser_prod#AAnnotation#n_annotations= for (self: Object, nullable AAnnotations) */
3350 void VIRTUAL_parser_prod__AAnnotation__n_annotations_61d(val
* self
, val
* p0
) {
3351 parser_prod__AAnnotation__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AAnnotation#n_annotations= on <self:Object(AAnnotation)>*/
3354 /* method parser_prod#AAnnotation#visit_all for (self: AAnnotation, Visitor) */
3355 void parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
3356 val
* var_v
/* var v: Visitor */;
3357 val
* var
/* : nullable ADoc */;
3358 val
* var1
/* : nullable TKwredef */;
3359 val
* var2
/* : nullable AVisibility */;
3360 val
* var3
/* : AAtid */;
3361 val
* var4
/* : nullable TOpar */;
3362 val
* var5
/* : ANodes[AAtArg] */;
3363 val
* var7
/* : ANodes[AAtArg] */;
3364 val
* var8
/* : nullable TCpar */;
3365 val
* var9
/* : nullable AAnnotations */;
3367 var
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_doc
].val
; /* _n_doc on <self:AAnnotation> */
3369 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3371 var1
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_kwredef
].val
; /* _n_kwredef on <self:AAnnotation> */
3373 parser_nodes__Visitor__enter_visit(var_v
, var1
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3375 var2
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_visibility
].val
; /* _n_visibility on <self:AAnnotation> */
3377 parser_nodes__Visitor__enter_visit(var_v
, var2
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3379 var3
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_atid
].val
; /* _n_atid on <self:AAnnotation> */
3380 if (unlikely(var3
== NULL
)) {
3381 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid");
3382 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7701);
3386 parser_nodes__Visitor__enter_visit(var_v
, var3
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3388 var4
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_opar
].val
; /* _n_opar on <self:AAnnotation> */
3390 parser_nodes__Visitor__enter_visit(var_v
, var4
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3393 { /* Inline parser_nodes#AAnnotation#n_args (self) on <self:AAnnotation> */
3394 var7
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <self:AAnnotation> */
3395 if (unlikely(var7
== NULL
)) {
3396 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
3397 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 2426);
3405 parser_nodes__ANodes__visit_all(var5
, var_v
); /* Direct call parser_nodes#ANodes#visit_all on <var5:ANodes[AAtArg]>*/
3407 var8
= self
->attrs
[COLOR_parser_nodes__AAnnotation___n_cpar
].val
; /* _n_cpar on <self:AAnnotation> */
3409 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3411 var9
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAnnotation> */
3413 parser_nodes__Visitor__enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3417 /* method parser_prod#AAnnotation#visit_all for (self: Object, Visitor) */
3418 void VIRTUAL_parser_prod__AAnnotation__visit_all(val
* self
, val
* p0
) {
3419 parser_prod__AAnnotation__visit_all(self
, p0
); /* Direct call parser_prod#AAnnotation#visit_all on <self:Object(AAnnotation)>*/
3422 /* method parser_prod#ATypeAtArg#init_atypeatarg for (self: ATypeAtArg, nullable AType) */
3423 void parser_prod__ATypeAtArg__init_atypeatarg(val
* self
, val
* p0
) {
3424 val
* var_n_type
/* var n_type: nullable AType */;
3426 if (unlikely(var_n_type
== NULL
)) {
3427 PRINT_ERROR("Runtime error: %s", "Cast failed");
3428 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7713);
3431 self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
= var_n_type
; /* _n_type on <self:ATypeAtArg> */
3432 if (var_n_type
== NULL
) {
3433 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3434 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7714);
3437 { /* Inline parser_nodes#ANode#parent= (var_n_type,self) on <var_n_type:nullable AType> */
3438 if (unlikely(var_n_type
== NULL
)) {
3439 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3440 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3443 var_n_type
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_type:nullable AType> */
3449 /* method parser_prod#ATypeAtArg#init_atypeatarg for (self: Object, nullable AType) */
3450 void VIRTUAL_parser_prod__ATypeAtArg__init_atypeatarg(val
* self
, val
* p0
) {
3451 parser_prod__ATypeAtArg__init_atypeatarg(self
, p0
); /* Direct call parser_prod#ATypeAtArg#init_atypeatarg on <self:Object(ATypeAtArg)>*/
3454 /* method parser_prod#ATypeAtArg#replace_child for (self: ATypeAtArg, ANode, nullable ANode) */
3455 void parser_prod__ATypeAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3456 val
* var_old_child
/* var old_child: ANode */;
3457 val
* var_new_child
/* var new_child: nullable ANode */;
3458 val
* var
/* : AType */;
3459 short int var1
/* : Bool */;
3460 short int var2
/* : Bool */;
3461 val
* var_other
/* var other: nullable Object */;
3462 short int var4
/* : Bool */;
3463 short int var6
/* : Bool */;
3464 short int var7
/* : Bool */;
3467 const char* var_class_name
;
3470 var
= self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
; /* _n_type on <self:ATypeAtArg> */
3471 if (unlikely(var
== NULL
)) {
3472 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
3473 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7719);
3477 { /* Inline kernel#Object#== (var,var_old_child) on <var:AType> */
3478 var_other
= var_old_child
;
3480 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AType> */
3481 var6
= var
== var_other
;
3494 /* <var_new_child:nullable ANode> isa AType */
3495 cltype
= type_parser_nodes__AType
.color
;
3496 idtype
= type_parser_nodes__AType
.id
;
3497 if(var_new_child
== NULL
) {
3500 if(cltype
>= var_new_child
->type
->table_size
) {
3503 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3506 if (unlikely(!var7
)) {
3507 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3508 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name
);
3509 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7720);
3513 parser_prod__ATypeAtArg__n_type_61d(self
, var_new_child
); /* Direct call parser_prod#ATypeAtArg#n_type= on <self:ATypeAtArg>*/
3520 /* method parser_prod#ATypeAtArg#replace_child for (self: Object, ANode, nullable ANode) */
3521 void VIRTUAL_parser_prod__ATypeAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3522 parser_prod__ATypeAtArg__replace_child(self
, p0
, p1
); /* Direct call parser_prod#ATypeAtArg#replace_child on <self:Object(ATypeAtArg)>*/
3525 /* method parser_prod#ATypeAtArg#n_type= for (self: ATypeAtArg, AType) */
3526 void parser_prod__ATypeAtArg__n_type_61d(val
* self
, val
* p0
) {
3527 val
* var_node
/* var node: AType */;
3529 self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
= var_node
; /* _n_type on <self:ATypeAtArg> */
3531 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AType> */
3532 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AType> */
3538 /* method parser_prod#ATypeAtArg#n_type= for (self: Object, AType) */
3539 void VIRTUAL_parser_prod__ATypeAtArg__n_type_61d(val
* self
, val
* p0
) {
3540 parser_prod__ATypeAtArg__n_type_61d(self
, p0
); /* Direct call parser_prod#ATypeAtArg#n_type= on <self:Object(ATypeAtArg)>*/
3543 /* method parser_prod#ATypeAtArg#visit_all for (self: ATypeAtArg, Visitor) */
3544 void parser_prod__ATypeAtArg__visit_all(val
* self
, val
* p0
) {
3545 val
* var_v
/* var v: Visitor */;
3546 val
* var
/* : AType */;
3548 var
= self
->attrs
[COLOR_parser_nodes__ATypeAtArg___n_type
].val
; /* _n_type on <self:ATypeAtArg> */
3549 if (unlikely(var
== NULL
)) {
3550 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type");
3551 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7734);
3555 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3559 /* method parser_prod#ATypeAtArg#visit_all for (self: Object, Visitor) */
3560 void VIRTUAL_parser_prod__ATypeAtArg__visit_all(val
* self
, val
* p0
) {
3561 parser_prod__ATypeAtArg__visit_all(self
, p0
); /* Direct call parser_prod#ATypeAtArg#visit_all on <self:Object(ATypeAtArg)>*/
3564 /* method parser_prod#AExprAtArg#init_aexpratarg for (self: AExprAtArg, nullable AExpr) */
3565 void parser_prod__AExprAtArg__init_aexpratarg(val
* self
, val
* p0
) {
3566 val
* var_n_expr
/* var n_expr: nullable AExpr */;
3568 if (unlikely(var_n_expr
== NULL
)) {
3569 PRINT_ERROR("Runtime error: %s", "Cast failed");
3570 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7742);
3573 self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
= var_n_expr
; /* _n_expr on <self:AExprAtArg> */
3574 if (var_n_expr
== NULL
) {
3575 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3576 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7743);
3579 { /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on <var_n_expr:nullable AExpr> */
3580 if (unlikely(var_n_expr
== NULL
)) {
3581 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3582 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3585 var_n_expr
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_expr:nullable AExpr> */
3591 /* method parser_prod#AExprAtArg#init_aexpratarg for (self: Object, nullable AExpr) */
3592 void VIRTUAL_parser_prod__AExprAtArg__init_aexpratarg(val
* self
, val
* p0
) {
3593 parser_prod__AExprAtArg__init_aexpratarg(self
, p0
); /* Direct call parser_prod#AExprAtArg#init_aexpratarg on <self:Object(AExprAtArg)>*/
3596 /* method parser_prod#AExprAtArg#replace_child for (self: AExprAtArg, ANode, nullable ANode) */
3597 void parser_prod__AExprAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3598 val
* var_old_child
/* var old_child: ANode */;
3599 val
* var_new_child
/* var new_child: nullable ANode */;
3600 val
* var
/* : AExpr */;
3601 short int var1
/* : Bool */;
3602 short int var2
/* : Bool */;
3603 val
* var_other
/* var other: nullable Object */;
3604 short int var4
/* : Bool */;
3605 short int var6
/* : Bool */;
3606 short int var7
/* : Bool */;
3609 const char* var_class_name
;
3612 var
= self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
; /* _n_expr on <self:AExprAtArg> */
3613 if (unlikely(var
== NULL
)) {
3614 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3615 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7748);
3619 { /* Inline kernel#Object#== (var,var_old_child) on <var:AExpr> */
3620 var_other
= var_old_child
;
3622 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:AExpr> */
3623 var6
= var
== var_other
;
3636 /* <var_new_child:nullable ANode> isa AExpr */
3637 cltype
= type_parser_nodes__AExpr
.color
;
3638 idtype
= type_parser_nodes__AExpr
.id
;
3639 if(var_new_child
== NULL
) {
3642 if(cltype
>= var_new_child
->type
->table_size
) {
3645 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3648 if (unlikely(!var7
)) {
3649 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3650 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name
);
3651 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7749);
3655 parser_prod__AExprAtArg__n_expr_61d(self
, var_new_child
); /* Direct call parser_prod#AExprAtArg#n_expr= on <self:AExprAtArg>*/
3662 /* method parser_prod#AExprAtArg#replace_child for (self: Object, ANode, nullable ANode) */
3663 void VIRTUAL_parser_prod__AExprAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3664 parser_prod__AExprAtArg__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AExprAtArg#replace_child on <self:Object(AExprAtArg)>*/
3667 /* method parser_prod#AExprAtArg#n_expr= for (self: AExprAtArg, AExpr) */
3668 void parser_prod__AExprAtArg__n_expr_61d(val
* self
, val
* p0
) {
3669 val
* var_node
/* var node: AExpr */;
3671 self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
= var_node
; /* _n_expr on <self:AExprAtArg> */
3673 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:AExpr> */
3674 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:AExpr> */
3680 /* method parser_prod#AExprAtArg#n_expr= for (self: Object, AExpr) */
3681 void VIRTUAL_parser_prod__AExprAtArg__n_expr_61d(val
* self
, val
* p0
) {
3682 parser_prod__AExprAtArg__n_expr_61d(self
, p0
); /* Direct call parser_prod#AExprAtArg#n_expr= on <self:Object(AExprAtArg)>*/
3685 /* method parser_prod#AExprAtArg#visit_all for (self: AExprAtArg, Visitor) */
3686 void parser_prod__AExprAtArg__visit_all(val
* self
, val
* p0
) {
3687 val
* var_v
/* var v: Visitor */;
3688 val
* var
/* : AExpr */;
3690 var
= self
->attrs
[COLOR_parser_nodes__AExprAtArg___n_expr
].val
; /* _n_expr on <self:AExprAtArg> */
3691 if (unlikely(var
== NULL
)) {
3692 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr");
3693 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7763);
3697 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3701 /* method parser_prod#AExprAtArg#visit_all for (self: Object, Visitor) */
3702 void VIRTUAL_parser_prod__AExprAtArg__visit_all(val
* self
, val
* p0
) {
3703 parser_prod__AExprAtArg__visit_all(self
, p0
); /* Direct call parser_prod#AExprAtArg#visit_all on <self:Object(AExprAtArg)>*/
3706 /* method parser_prod#AAtAtArg#init_aatatarg for (self: AAtAtArg, nullable AAnnotations) */
3707 void parser_prod__AAtAtArg__init_aatatarg(val
* self
, val
* p0
) {
3708 val
* var_n_annotations
/* var n_annotations: nullable AAnnotations */;
3709 var_n_annotations
= p0
;
3710 if (unlikely(var_n_annotations
== NULL
)) {
3711 PRINT_ERROR("Runtime error: %s", "Cast failed");
3712 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7771);
3715 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_n_annotations
; /* _n_annotations on <self:AAtAtArg> */
3716 if (var_n_annotations
== NULL
) {
3717 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3718 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7772);
3721 { /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on <var_n_annotations:nullable AAnnotations> */
3722 if (unlikely(var_n_annotations
== NULL
)) {
3723 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3724 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3727 var_n_annotations
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_annotations:nullable AAnnotations> */
3733 /* method parser_prod#AAtAtArg#init_aatatarg for (self: Object, nullable AAnnotations) */
3734 void VIRTUAL_parser_prod__AAtAtArg__init_aatatarg(val
* self
, val
* p0
) {
3735 parser_prod__AAtAtArg__init_aatatarg(self
, p0
); /* Direct call parser_prod#AAtAtArg#init_aatatarg on <self:Object(AAtAtArg)>*/
3738 /* method parser_prod#AAtAtArg#replace_child for (self: AAtAtArg, ANode, nullable ANode) */
3739 void parser_prod__AAtAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3740 val
* var_old_child
/* var old_child: ANode */;
3741 val
* var_new_child
/* var new_child: nullable ANode */;
3742 val
* var
/* : nullable AAnnotations */;
3743 short int var1
/* : Bool */;
3744 short int var2
/* : Bool */;
3745 val
* var_other
/* var other: nullable Object */;
3746 short int var4
/* : Bool */;
3747 short int var6
/* : Bool */;
3748 short int var7
/* : Bool */;
3751 const char* var_class_name
;
3754 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtAtArg> */
3756 var1
= 0; /* <var_old_child:ANode> cannot be null */
3758 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AAnnotations> */
3759 var_other
= var_old_child
;
3761 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AAnnotations(AAnnotations)> */
3762 var6
= var
== var_other
;
3775 /* <var_new_child:nullable ANode> isa AAnnotations */
3776 cltype
= type_parser_nodes__AAnnotations
.color
;
3777 idtype
= type_parser_nodes__AAnnotations
.id
;
3778 if(var_new_child
== NULL
) {
3781 if(cltype
>= var_new_child
->type
->table_size
) {
3784 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3787 if (unlikely(!var7
)) {
3788 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3789 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAnnotations", var_class_name
);
3790 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7778);
3794 parser_prod__AAtAtArg__n_annotations_61d(self
, var_new_child
); /* Direct call parser_prod#AAtAtArg#n_annotations= on <self:AAtAtArg>*/
3801 /* method parser_prod#AAtAtArg#replace_child for (self: Object, ANode, nullable ANode) */
3802 void VIRTUAL_parser_prod__AAtAtArg__replace_child(val
* self
, val
* p0
, val
* p1
) {
3803 parser_prod__AAtAtArg__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AAtAtArg#replace_child on <self:Object(AAtAtArg)>*/
3806 /* method parser_prod#AAtAtArg#n_annotations= for (self: AAtAtArg, nullable AAnnotations) */
3807 void parser_prod__AAtAtArg__n_annotations_61d(val
* self
, val
* p0
) {
3808 val
* var_node
/* var node: nullable AAnnotations */;
3810 self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
= var_node
; /* _n_annotations on <self:AAtAtArg> */
3811 if (var_node
== NULL
) {
3812 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3813 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7786);
3816 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:nullable AAnnotations> */
3817 if (unlikely(var_node
== NULL
)) {
3818 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3819 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3822 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:nullable AAnnotations> */
3828 /* method parser_prod#AAtAtArg#n_annotations= for (self: Object, nullable AAnnotations) */
3829 void VIRTUAL_parser_prod__AAtAtArg__n_annotations_61d(val
* self
, val
* p0
) {
3830 parser_prod__AAtAtArg__n_annotations_61d(self
, p0
); /* Direct call parser_prod#AAtAtArg#n_annotations= on <self:Object(AAtAtArg)>*/
3833 /* method parser_prod#AAtAtArg#visit_all for (self: AAtAtArg, Visitor) */
3834 void parser_prod__AAtAtArg__visit_all(val
* self
, val
* p0
) {
3835 val
* var_v
/* var v: Visitor */;
3836 val
* var
/* : nullable AAnnotations */;
3838 var
= self
->attrs
[COLOR_parser_nodes__Prod___n_annotations
].val
; /* _n_annotations on <self:AAtAtArg> */
3840 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3844 /* method parser_prod#AAtAtArg#visit_all for (self: Object, Visitor) */
3845 void VIRTUAL_parser_prod__AAtAtArg__visit_all(val
* self
, val
* p0
) {
3846 parser_prod__AAtAtArg__visit_all(self
, p0
); /* Direct call parser_prod#AAtAtArg#visit_all on <self:Object(AAtAtArg)>*/
3849 /* method parser_prod#AIdAtid#init_aidatid for (self: AIdAtid, nullable TId) */
3850 void parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
3851 val
* var_n_id
/* var n_id: nullable TId */;
3853 if (unlikely(var_n_id
== NULL
)) {
3854 PRINT_ERROR("Runtime error: %s", "Cast failed");
3855 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7800);
3858 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AIdAtid> */
3859 if (var_n_id
== NULL
) {
3860 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3861 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7801);
3864 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TId> */
3865 if (unlikely(var_n_id
== NULL
)) {
3866 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3867 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
3870 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TId> */
3876 /* method parser_prod#AIdAtid#init_aidatid for (self: Object, nullable TId) */
3877 void VIRTUAL_parser_prod__AIdAtid__init_aidatid(val
* self
, val
* p0
) {
3878 parser_prod__AIdAtid__init_aidatid(self
, p0
); /* Direct call parser_prod#AIdAtid#init_aidatid on <self:Object(AIdAtid)>*/
3881 /* method parser_prod#AIdAtid#replace_child for (self: AIdAtid, ANode, nullable ANode) */
3882 void parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
3883 val
* var_old_child
/* var old_child: ANode */;
3884 val
* var_new_child
/* var new_child: nullable ANode */;
3885 val
* var
/* : Token */;
3886 short int var1
/* : Bool */;
3887 short int var2
/* : Bool */;
3888 val
* var_other
/* var other: nullable Object */;
3889 short int var4
/* : Bool */;
3890 short int var6
/* : Bool */;
3891 short int var7
/* : Bool */;
3894 const char* var_class_name
;
3897 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
3898 if (unlikely(var
== NULL
)) {
3899 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3900 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7806);
3904 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
3905 var_other
= var_old_child
;
3907 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
3908 var6
= var
== var_other
;
3921 /* <var_new_child:nullable ANode> isa TId */
3922 cltype
= type_parser_nodes__TId
.color
;
3923 idtype
= type_parser_nodes__TId
.id
;
3924 if(var_new_child
== NULL
) {
3927 if(cltype
>= var_new_child
->type
->table_size
) {
3930 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
3933 if (unlikely(!var7
)) {
3934 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
3935 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name
);
3936 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7807);
3940 parser_prod__AIdAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AIdAtid#n_id= on <self:AIdAtid>*/
3947 /* method parser_prod#AIdAtid#replace_child for (self: Object, ANode, nullable ANode) */
3948 void VIRTUAL_parser_prod__AIdAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
3949 parser_prod__AIdAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AIdAtid#replace_child on <self:Object(AIdAtid)>*/
3952 /* method parser_prod#AIdAtid#n_id= for (self: AIdAtid, Token) */
3953 void parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
3954 val
* var_node
/* var node: Token */;
3956 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AIdAtid> */
3958 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
3959 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
3965 /* method parser_prod#AIdAtid#n_id= for (self: Object, Token) */
3966 void VIRTUAL_parser_prod__AIdAtid__n_id_61d(val
* self
, val
* p0
) {
3967 parser_prod__AIdAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AIdAtid#n_id= on <self:Object(AIdAtid)>*/
3970 /* method parser_prod#AIdAtid#visit_all for (self: AIdAtid, Visitor) */
3971 void parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
3972 val
* var_v
/* var v: Visitor */;
3973 val
* var
/* : Token */;
3975 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AIdAtid> */
3976 if (unlikely(var
== NULL
)) {
3977 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
3978 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7821);
3982 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
3986 /* method parser_prod#AIdAtid#visit_all for (self: Object, Visitor) */
3987 void VIRTUAL_parser_prod__AIdAtid__visit_all(val
* self
, val
* p0
) {
3988 parser_prod__AIdAtid__visit_all(self
, p0
); /* Direct call parser_prod#AIdAtid#visit_all on <self:Object(AIdAtid)>*/
3991 /* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: AKwreadableAtid, nullable TKwreadable) */
3992 void parser_prod__AKwreadableAtid__init_akwreadableatid(val
* self
, val
* p0
) {
3993 val
* var_n_id
/* var n_id: nullable TKwreadable */;
3995 if (unlikely(var_n_id
== NULL
)) {
3996 PRINT_ERROR("Runtime error: %s", "Cast failed");
3997 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7887);
4000 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwreadableAtid> */
4001 if (var_n_id
== NULL
) {
4002 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4003 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7888);
4006 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TKwreadable> */
4007 if (unlikely(var_n_id
== NULL
)) {
4008 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4009 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4012 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TKwreadable> */
4018 /* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: Object, nullable TKwreadable) */
4019 void VIRTUAL_parser_prod__AKwreadableAtid__init_akwreadableatid(val
* self
, val
* p0
) {
4020 parser_prod__AKwreadableAtid__init_akwreadableatid(self
, p0
); /* Direct call parser_prod#AKwreadableAtid#init_akwreadableatid on <self:Object(AKwreadableAtid)>*/
4023 /* method parser_prod#AKwreadableAtid#replace_child for (self: AKwreadableAtid, ANode, nullable ANode) */
4024 void parser_prod__AKwreadableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4025 val
* var_old_child
/* var old_child: ANode */;
4026 val
* var_new_child
/* var new_child: nullable ANode */;
4027 val
* var
/* : Token */;
4028 short int var1
/* : Bool */;
4029 short int var2
/* : Bool */;
4030 val
* var_other
/* var other: nullable Object */;
4031 short int var4
/* : Bool */;
4032 short int var6
/* : Bool */;
4033 short int var7
/* : Bool */;
4036 const char* var_class_name
;
4039 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwreadableAtid> */
4040 if (unlikely(var
== NULL
)) {
4041 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4042 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7893);
4046 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
4047 var_other
= var_old_child
;
4049 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
4050 var6
= var
== var_other
;
4063 /* <var_new_child:nullable ANode> isa TKwreadable */
4064 cltype
= type_parser_nodes__TKwreadable
.color
;
4065 idtype
= type_parser_nodes__TKwreadable
.id
;
4066 if(var_new_child
== NULL
) {
4069 if(cltype
>= var_new_child
->type
->table_size
) {
4072 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4075 if (unlikely(!var7
)) {
4076 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4077 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwreadable", var_class_name
);
4078 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7894);
4082 parser_prod__AKwreadableAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AKwreadableAtid#n_id= on <self:AKwreadableAtid>*/
4089 /* method parser_prod#AKwreadableAtid#replace_child for (self: Object, ANode, nullable ANode) */
4090 void VIRTUAL_parser_prod__AKwreadableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4091 parser_prod__AKwreadableAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AKwreadableAtid#replace_child on <self:Object(AKwreadableAtid)>*/
4094 /* method parser_prod#AKwreadableAtid#n_id= for (self: AKwreadableAtid, Token) */
4095 void parser_prod__AKwreadableAtid__n_id_61d(val
* self
, val
* p0
) {
4096 val
* var_node
/* var node: Token */;
4098 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwreadableAtid> */
4100 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
4101 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
4107 /* method parser_prod#AKwreadableAtid#n_id= for (self: Object, Token) */
4108 void VIRTUAL_parser_prod__AKwreadableAtid__n_id_61d(val
* self
, val
* p0
) {
4109 parser_prod__AKwreadableAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AKwreadableAtid#n_id= on <self:Object(AKwreadableAtid)>*/
4112 /* method parser_prod#AKwreadableAtid#visit_all for (self: AKwreadableAtid, Visitor) */
4113 void parser_prod__AKwreadableAtid__visit_all(val
* self
, val
* p0
) {
4114 val
* var_v
/* var v: Visitor */;
4115 val
* var
/* : Token */;
4117 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwreadableAtid> */
4118 if (unlikely(var
== NULL
)) {
4119 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4120 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7908);
4124 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4128 /* method parser_prod#AKwreadableAtid#visit_all for (self: Object, Visitor) */
4129 void VIRTUAL_parser_prod__AKwreadableAtid__visit_all(val
* self
, val
* p0
) {
4130 parser_prod__AKwreadableAtid__visit_all(self
, p0
); /* Direct call parser_prod#AKwreadableAtid#visit_all on <self:Object(AKwreadableAtid)>*/
4133 /* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: AKwwritableAtid, nullable TKwwritable) */
4134 void parser_prod__AKwwritableAtid__init_akwwritableatid(val
* self
, val
* p0
) {
4135 val
* var_n_id
/* var n_id: nullable TKwwritable */;
4137 if (unlikely(var_n_id
== NULL
)) {
4138 PRINT_ERROR("Runtime error: %s", "Cast failed");
4139 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7916);
4142 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_n_id
; /* _n_id on <self:AKwwritableAtid> */
4143 if (var_n_id
== NULL
) {
4144 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4145 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7917);
4148 { /* Inline parser_nodes#ANode#parent= (var_n_id,self) on <var_n_id:nullable TKwwritable> */
4149 if (unlikely(var_n_id
== NULL
)) {
4150 PRINT_ERROR("Runtime error: %s", "Receiver is null");
4151 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_nodes.nit", 38);
4154 var_n_id
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_n_id:nullable TKwwritable> */
4160 /* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: Object, nullable TKwwritable) */
4161 void VIRTUAL_parser_prod__AKwwritableAtid__init_akwwritableatid(val
* self
, val
* p0
) {
4162 parser_prod__AKwwritableAtid__init_akwwritableatid(self
, p0
); /* Direct call parser_prod#AKwwritableAtid#init_akwwritableatid on <self:Object(AKwwritableAtid)>*/
4165 /* method parser_prod#AKwwritableAtid#replace_child for (self: AKwwritableAtid, ANode, nullable ANode) */
4166 void parser_prod__AKwwritableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4167 val
* var_old_child
/* var old_child: ANode */;
4168 val
* var_new_child
/* var new_child: nullable ANode */;
4169 val
* var
/* : Token */;
4170 short int var1
/* : Bool */;
4171 short int var2
/* : Bool */;
4172 val
* var_other
/* var other: nullable Object */;
4173 short int var4
/* : Bool */;
4174 short int var6
/* : Bool */;
4175 short int var7
/* : Bool */;
4178 const char* var_class_name
;
4181 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwwritableAtid> */
4182 if (unlikely(var
== NULL
)) {
4183 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4184 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7922);
4188 { /* Inline kernel#Object#== (var,var_old_child) on <var:Token> */
4189 var_other
= var_old_child
;
4191 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:Token> */
4192 var6
= var
== var_other
;
4205 /* <var_new_child:nullable ANode> isa TKwwritable */
4206 cltype
= type_parser_nodes__TKwwritable
.color
;
4207 idtype
= type_parser_nodes__TKwwritable
.id
;
4208 if(var_new_child
== NULL
) {
4211 if(cltype
>= var_new_child
->type
->table_size
) {
4214 var7
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4217 if (unlikely(!var7
)) {
4218 var_class_name
= var_new_child
== NULL ?
"null" : var_new_child
->type
->name
;
4219 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwwritable", var_class_name
);
4220 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7923);
4224 parser_prod__AKwwritableAtid__n_id_61d(self
, var_new_child
); /* Direct call parser_prod#AKwwritableAtid#n_id= on <self:AKwwritableAtid>*/
4231 /* method parser_prod#AKwwritableAtid#replace_child for (self: Object, ANode, nullable ANode) */
4232 void VIRTUAL_parser_prod__AKwwritableAtid__replace_child(val
* self
, val
* p0
, val
* p1
) {
4233 parser_prod__AKwwritableAtid__replace_child(self
, p0
, p1
); /* Direct call parser_prod#AKwwritableAtid#replace_child on <self:Object(AKwwritableAtid)>*/
4236 /* method parser_prod#AKwwritableAtid#n_id= for (self: AKwwritableAtid, Token) */
4237 void parser_prod__AKwwritableAtid__n_id_61d(val
* self
, val
* p0
) {
4238 val
* var_node
/* var node: Token */;
4240 self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
= var_node
; /* _n_id on <self:AKwwritableAtid> */
4242 { /* Inline parser_nodes#ANode#parent= (var_node,self) on <var_node:Token> */
4243 var_node
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_node:Token> */
4249 /* method parser_prod#AKwwritableAtid#n_id= for (self: Object, Token) */
4250 void VIRTUAL_parser_prod__AKwwritableAtid__n_id_61d(val
* self
, val
* p0
) {
4251 parser_prod__AKwwritableAtid__n_id_61d(self
, p0
); /* Direct call parser_prod#AKwwritableAtid#n_id= on <self:Object(AKwwritableAtid)>*/
4254 /* method parser_prod#AKwwritableAtid#visit_all for (self: AKwwritableAtid, Visitor) */
4255 void parser_prod__AKwwritableAtid__visit_all(val
* self
, val
* p0
) {
4256 val
* var_v
/* var v: Visitor */;
4257 val
* var
/* : Token */;
4259 var
= self
->attrs
[COLOR_parser_nodes__AAtid___n_id
].val
; /* _n_id on <self:AKwwritableAtid> */
4260 if (unlikely(var
== NULL
)) {
4261 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id");
4262 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7937);
4266 parser_nodes__Visitor__enter_visit(var_v
, var
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4270 /* method parser_prod#AKwwritableAtid#visit_all for (self: Object, Visitor) */
4271 void VIRTUAL_parser_prod__AKwwritableAtid__visit_all(val
* self
, val
* p0
) {
4272 parser_prod__AKwwritableAtid__visit_all(self
, p0
); /* Direct call parser_prod#AKwwritableAtid#visit_all on <self:Object(AKwwritableAtid)>*/
4275 /* method parser_prod#Start#replace_child for (self: Start, ANode, nullable ANode) */
4276 void parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
4277 val
* var_old_child
/* var old_child: ANode */;
4278 val
* var_new_child
/* var new_child: nullable ANode */;
4279 val
* var
/* : nullable AModule */;
4280 short int var1
/* : Bool */;
4281 short int var2
/* : Bool */;
4282 val
* var_other
/* var other: nullable Object */;
4283 short int var4
/* : Bool */;
4284 short int var6
/* : Bool */;
4285 val
* var7
/* : null */;
4286 short int var8
/* : Bool */;
4287 short int var9
/* : Bool */;
4288 short int var11
/* : Bool */;
4289 short int var13
/* : Bool */;
4290 short int var15
/* : Bool */;
4293 val
* var16
/* : null */;
4296 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
4298 var1
= 0; /* <var_old_child:ANode> cannot be null */
4300 { /* Inline kernel#Object#== (var,var_old_child) on <var:nullable AModule> */
4301 var_other
= var_old_child
;
4303 { /* Inline kernel#Object#is_same_instance (var,var_other) on <var:nullable AModule(AModule)> */
4304 var6
= var
== var_other
;
4318 if (var_new_child
== NULL
) {
4319 var8
= 1; /* is null */
4321 var8
= 0; /* arg is null but recv is not */
4324 { /* Inline kernel#Object#== (var_new_child,var7) on <var_new_child:nullable ANode> */
4327 { /* Inline kernel#Object#is_same_instance (var_new_child,var_other) on <var_new_child:nullable ANode(ANode)> */
4328 var13
= var_new_child
== var_other
;
4331 RET_LABEL12
:(void)0;
4336 RET_LABEL10
:(void)0;
4343 { /* Inline parser_nodes#ANode#parent= (var_new_child,self) on <var_new_child:nullable ANode(ANode)> */
4344 var_new_child
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= self
; /* _parent on <var_new_child:nullable ANode(ANode)> */
4345 RET_LABEL14
:(void)0;
4348 /* <var_new_child:nullable ANode(ANode)> isa AModule */
4349 cltype
= type_parser_nodes__AModule
.color
;
4350 idtype
= type_parser_nodes__AModule
.id
;
4351 if(cltype
>= var_new_child
->type
->table_size
) {
4354 var15
= var_new_child
->type
->type_table
[cltype
] == idtype
;
4356 if (unlikely(!var15
)) {
4357 PRINT_ERROR("Runtime error: %s", "Assert failed");
4358 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7977);
4361 self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
= var_new_child
; /* _n_base on <self:Start> */
4365 { /* Inline parser_nodes#ANode#parent= (var_old_child,var16) on <var_old_child:ANode> */
4366 var_old_child
->attrs
[COLOR_parser_nodes__ANode___parent
].val
= var16
; /* _parent on <var_old_child:ANode> */
4367 RET_LABEL17
:(void)0;
4375 /* method parser_prod#Start#replace_child for (self: Object, ANode, nullable ANode) */
4376 void VIRTUAL_parser_prod__Start__replace_child(val
* self
, val
* p0
, val
* p1
) {
4377 parser_prod__Start__replace_child(self
, p0
, p1
); /* Direct call parser_prod#Start#replace_child on <self:Object(Start)>*/
4380 /* method parser_prod#Start#visit_all for (self: Start, Visitor) */
4381 void parser_prod__Start__visit_all(val
* self
, val
* p0
) {
4382 val
* var_v
/* var v: Visitor */;
4383 val
* var
/* : nullable AModule */;
4384 val
* var1
/* : null */;
4385 short int var2
/* : Bool */;
4386 short int var3
/* : Bool */;
4387 val
* var_other
/* var other: nullable Object */;
4388 short int var5
/* : Bool */;
4389 short int var6
/* : Bool */;
4390 short int var7
/* : Bool */;
4391 val
* var8
/* : nullable AModule */;
4392 val
* var9
/* : EOF */;
4394 var
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
4397 var2
= 0; /* is null */
4399 var2
= 1; /* arg is null and recv is not */
4402 { /* Inline kernel#Object#!= (var,var1) on <var:nullable AModule> */
4405 var6
= ((short int (*)(val
*, val
*))(var
->class->vft
[COLOR_kernel__Object___61d_61d
]))(var
, var_other
) /* == on <var:nullable AModule(AModule)>*/;
4416 var8
= self
->attrs
[COLOR_parser_nodes__Start___n_base
].val
; /* _n_base on <self:Start> */
4417 if (unlikely(var8
== NULL
)) {
4418 PRINT_ERROR("Runtime error: %s", "Cast failed");
4419 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7988);
4423 parser_nodes__Visitor__enter_visit(var_v
, var8
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4427 var9
= self
->attrs
[COLOR_parser_nodes__Start___n_eof
].val
; /* _n_eof on <self:Start> */
4428 if (unlikely(var9
== NULL
)) {
4429 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_eof");
4430 PRINT_ERROR(" (%s:%d)\n", "src/parser/parser_prod.nit", 7990);
4434 parser_nodes__Visitor__enter_visit(var_v
, var9
); /* Direct call parser_nodes#Visitor#enter_visit on <var_v:Visitor>*/
4438 /* method parser_prod#Start#visit_all for (self: Object, Visitor) */
4439 void VIRTUAL_parser_prod__Start__visit_all(val
* self
, val
* p0
) {
4440 parser_prod__Start__visit_all(self
, p0
); /* Direct call parser_prod#Start#visit_all on <self:Object(Start)>*/