X-Git-Url: http://nitlanguage.org diff --git a/c_src/nitc__parser_prod.sep.2.c b/c_src/nitc__parser_prod.sep.2.c index 2f890c2..785f3c7 100644 --- a/c_src/nitc__parser_prod.sep.2.c +++ b/c_src/nitc__parser_prod.sep.2.c @@ -1,224 +1,87 @@ #include "nitc__parser_prod.sep.0.h" -/* method parser_prod#ASuperPropdef#n_doc= for (self: ASuperPropdef, nullable ADoc) */ -void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val* self, val* p0) { -val* var_node /* var node: nullable ADoc */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_node; /* _n_doc on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +/* method parser_prod$AMethPropdef$visit_all for (self: AMethPropdef, Visitor) */ +void nitc__parser_prod___AMethPropdef___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable ADoc */; +val* var1 /* : nullable TKwredef */; +val* var2 /* : nullable AVisibility */; +val* var3 /* : nullable TKwmeth */; +val* var4 /* : nullable TKwinit */; +val* var5 /* : nullable TKwnew */; +val* var6 /* : nullable AMethid */; +val* var7 /* : nullable ASignature */; +val* var8 /* : nullable AAnnotations */; +val* var9 /* : nullable AExternCalls */; +val* var10 /* : nullable AExternCodeBlock */; +val* var11 /* : nullable TKwdo */; +val* var12 /* : nullable AExpr */; +val* var13 /* : nullable TKwend */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (var){ +var1 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#ASuperPropdef#n_kwredef= for (self: ASuperPropdef, nullable TKwredef) */ -void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwredef */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_node; /* _n_kwredef on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +var2 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (var){ +var3 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_kwmeth].val; /* _n_kwmeth on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ } -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#ASuperPropdef#n_visibility= for (self: ASuperPropdef, nullable AVisibility) */ -void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val* self, val* p0) { -val* var_node /* var node: nullable AVisibility */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_node; /* _n_visibility on */ -if (var_node == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1374); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -if (unlikely(var_node == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#ASuperPropdef#n_kwsuper= for (self: ASuperPropdef, TKwsuper) */ -void nitc__parser_prod___ASuperPropdef___n_kwsuper_61d(val* self, val* p0) { -val* var_node /* var node: TKwsuper */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val = var_node; /* _n_kwsuper on */ +var4 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_kwinit].val; /* _n_kwinit on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; +nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes$Visitor$enter_visit on */ } -/* method parser_prod#ASuperPropdef#n_type= for (self: ASuperPropdef, AType) */ -void nitc__parser_prod___ASuperPropdef___n_type_61d(val* self, val* p0) { -val* var_node /* var node: AType */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val = var_node; /* _n_type on */ +var5 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_kwnew].val; /* _n_kwnew on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#ASuperPropdef#n_annotations= for (self: ASuperPropdef, nullable AAnnotations) */ -void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +var6 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_methid].val; /* _n_methid on */ { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var6); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var = var1; -} -if (var){ +var7 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_signature].val; /* _n_signature on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { +nitc___nitc__Visitor___enter_visit(var_v, var7); /* Direct call parser_nodes$Visitor$enter_visit on */ } -RET_LABEL:; -} -/* method parser_prod#ASuperPropdef#visit_all for (self: ASuperPropdef, Visitor) */ -void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable ADoc */; -val* var1 /* : nullable TKwredef */; -val* var2 /* : nullable AVisibility */; -val* var3 /* : TKwsuper */; -val* var4 /* : AType */; -val* var5 /* : nullable AAnnotations */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var8); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var1 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ +var9 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_calls].val; /* _n_extern_calls on */ { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var9); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var2 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +var10 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_extern_code_block].val; /* _n_extern_code_block on */ { -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var3 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val; /* _n_kwsuper on */ -if (unlikely(var3 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1398); -fatal_exit(1); +nitc___nitc__Visitor___enter_visit(var_v, var10); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var11 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_kwdo].val; /* _n_kwdo on */ { -nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var4 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val; /* _n_type on */ -if (unlikely(var4 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1399); -fatal_exit(1); +nitc___nitc__Visitor___enter_visit(var_v, var11); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var12 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_block].val; /* _n_block on */ { -nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var12); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var5 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +var13 = self->attrs[COLOR_nitc__parser_nodes__AMethPropdef___n_kwend].val; /* _n_kwend on */ { -nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var13); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#init_aannotpropdef for (self: AAnnotPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ -void nitc__parser_prod___AAnnotPropdef___init_aannotpropdef(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5, val* p6, val* p7) { +/* method parser_prod$ASuperPropdef$init_asuperpropdef for (self: ASuperPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable TKwsuper, nullable AType, nullable AAnnotations) */ +void nitc__parser_prod___ASuperPropdef___init_asuperpropdef(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { val* var_n_doc /* var n_doc: nullable ADoc */; val* var_n_kwredef /* var n_kwredef: nullable TKwredef */; val* var_n_visibility /* var n_visibility: nullable AVisibility */; -val* var_n_atid /* var n_atid: nullable AAtid */; -val* var_n_opar /* var n_opar: nullable TOpar */; -val* var_n_args /* var n_args: Collection[Object] */; -val* var_n_cpar /* var n_cpar: nullable TCpar */; +val* var_n_kwsuper /* var n_kwsuper: nullable TKwsuper */; +val* var_n_type /* var n_type: nullable AType */; val* var_n_annotations /* var n_annotations: nullable AAnnotations */; short int var /* : Bool */; short int var2 /* : Bool */; @@ -229,45 +92,29 @@ short int var7 /* : Bool */; short int var8 /* : Bool */; short int var10 /* : Bool */; short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; short int var16 /* : Bool */; short int var17 /* : Bool */; +short int var19 /* : Bool */; short int var20 /* : Bool */; -short int var21 /* : Bool */; -short int var23 /* : Bool */; -short int var24 /* : Bool */; -val* var26 /* : ANodes[AExpr] */; -val* var28 /* : ANodes[AExpr] */; -short int var29 /* : Bool */; -short int var30 /* : Bool */; -short int var32 /* : Bool */; -short int var33 /* : Bool */; -short int var35 /* : Bool */; -short int var36 /* : Bool */; -short int var38 /* : Bool */; -short int var39 /* : Bool */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_doc = p0; var_n_kwredef = p1; var_n_visibility = p2; -var_n_atid = p3; -var_n_opar = p4; -var_n_args = p5; -var_n_cpar = p6; -var_n_annotations = p7; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_n_doc; /* _n_doc on */ +var_n_kwsuper = p3; +var_n_type = p4; +var_n_annotations = p5; +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_n_doc; /* _n_doc on */ if (var_n_doc == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_doc,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_doc,((val*)NULL)) on */ var_other = ((val*)NULL); { var4 = ((short int(*)(val* self, val* p0))(var_n_doc->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_doc, var_other); /* == on */ @@ -281,21 +128,21 @@ var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_doc,self) on */ var_n_doc->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL6:(void)0; } } } else { } -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_n_kwredef; /* _n_kwredef on */ +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_n_kwredef; /* _n_kwredef on */ if (var_n_kwredef == NULL) { var7 = 0; /* is null */ } else { var7 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_kwredef,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_kwredef,((val*)NULL)) on */ var_other = ((val*)NULL); { var10 = ((short int(*)(val* self, val* p0))(var_n_kwredef->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwredef, var_other); /* == on */ @@ -309,165 +156,135 @@ var7 = var8; } if (var7){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_kwredef,self) on */ var_n_kwredef->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL12:(void)0; } } } else { } -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_n_visibility; /* _n_visibility on */ +if (unlikely(var_n_visibility == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1323); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_n_visibility; /* _n_visibility on */ if (var_n_visibility == NULL) { -var13 = 0; /* is null */ +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1324); +fatal_exit(1); } else { -var13 = 1; /* arg is null and recv is not */ +{ /* Inline parser_nodes$ANode$parent= (var_n_visibility,self) on */ +if (unlikely(var_n_visibility == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_n_visibility,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var16 = ((short int(*)(val* self, val* p0))(var_n_visibility->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_visibility, var_other); /* == on */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } -var17 = !var16; -var14 = var17; -goto RET_LABEL15; -RET_LABEL15:(void)0; +var_n_visibility->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL13:(void)0; } -var13 = var14; } -if (var13){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on */ -var_n_visibility->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL18:(void)0; +if (unlikely(var_n_kwsuper == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1325); +fatal_exit(1); } +self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val = var_n_kwsuper; /* _n_kwsuper on */ +if (var_n_kwsuper == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1326); +fatal_exit(1); } else { +{ /* Inline parser_nodes$ANode$parent= (var_n_kwsuper,self) on */ +if (unlikely(var_n_kwsuper == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_kwsuper->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL14:(void)0; +} +} +if (unlikely(var_n_type == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(var_n_atid == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1421); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1327); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val = var_n_atid; /* _n_atid on */ -if (var_n_atid == NULL) { +self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1422); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1328); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on */ -if (unlikely(var_n_atid == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_atid->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL19:(void)0; +var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL15:(void)0; } } -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val = var_n_opar; /* _n_opar on */ -if (var_n_opar == NULL) { -var20 = 0; /* is null */ +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { +var16 = 0; /* is null */ } else { -var20 = 1; /* arg is null and recv is not */ +var16 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_annotations,((val*)NULL)) on */ var_other = ((val*)NULL); { -var23 = ((short int(*)(val* self, val* p0))(var_n_opar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_opar, var_other); /* == on */ -} -var24 = !var23; -var21 = var24; -goto RET_LABEL22; -RET_LABEL22:(void)0; +var19 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ } -var20 = var21; -} -if (var20){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on */ -var_n_opar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL25:(void)0; -} -} -} else { -} -{ -{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ -var28 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (unlikely(var28 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 2926); -fatal_exit(1); -} -var26 = var28; -RET_LABEL27:(void)0; -} -} -{ -nitc___nitc__ANodes___unsafe_add_all(var26, var_n_args); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ -} -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val = var_n_cpar; /* _n_cpar on */ -if (var_n_cpar == NULL) { -var29 = 0; /* is null */ -} else { -var29 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var32 = ((short int(*)(val* self, val* p0))(var_n_cpar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cpar, var_other); /* == on */ -} -var33 = !var32; -var30 = var33; -goto RET_LABEL31; -RET_LABEL31:(void)0; -} -var29 = var30; -} -if (var29){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on */ -var_n_cpar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL34:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -if (var_n_annotations == NULL) { -var35 = 0; /* is null */ -} else { -var35 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var38 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ -} -var39 = !var38; -var36 = var39; -goto RET_LABEL37; -RET_LABEL37:(void)0; +var20 = !var19; +var17 = var20; +goto RET_LABEL18; +RET_LABEL18:(void)0; } -var35 = var36; +var16 = var17; } -if (var35){ +if (var16){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_annotations,self) on */ var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL40:(void)0; +RET_LABEL21:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#replace_child for (self: AAnnotPropdef, ANode, nullable ANode) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ASuperPropdef$replace_child for (self: ASuperPropdef, ANode, nullable ANode) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : nullable ADoc */; @@ -498,7 +315,7 @@ short int var26 /* : Bool */; int cltype27; int idtype28; const char* var_class_name29; -val* var30 /* : AAtid */; +val* var30 /* : TKwsuper */; short int var31 /* : Bool */; short int var33 /* : Bool */; short int var35 /* : Bool */; @@ -506,46 +323,33 @@ short int var36 /* : Bool */; int cltype37; int idtype38; const char* var_class_name39; -val* var40 /* : nullable TOpar */; +val* var40 /* : AType */; short int var41 /* : Bool */; -short int var42 /* : Bool */; -short int var44 /* : Bool */; +short int var43 /* : Bool */; +short int var45 /* : Bool */; short int var46 /* : Bool */; -short int var47 /* : Bool */; -int cltype48; -int idtype49; -const char* var_class_name50; -val* var51 /* : ANodes[AExpr] */; -val* var53 /* : ANodes[AExpr] */; +int cltype47; +int idtype48; +const char* var_class_name49; +val* var50 /* : nullable AAnnotations */; +short int var51 /* : Bool */; +short int var52 /* : Bool */; short int var54 /* : Bool */; -val* var55 /* : nullable TCpar */; short int var56 /* : Bool */; short int var57 /* : Bool */; -short int var59 /* : Bool */; -short int var61 /* : Bool */; -short int var62 /* : Bool */; -int cltype63; -int idtype64; -const char* var_class_name65; -val* var66 /* : nullable AAnnotations */; -short int var67 /* : Bool */; -short int var68 /* : Bool */; -short int var70 /* : Bool */; -short int var72 /* : Bool */; -short int var73 /* : Bool */; -int cltype74; -int idtype75; -const char* var_class_name76; +int cltype58; +int idtype59; +const char* var_class_name60; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ +var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var6 = var == var_other; var4 = var6; goto RET_LABEL5; @@ -574,23 +378,23 @@ var7 = var_new_child->type->type_table[cltype] == idtype; if (unlikely(!var7)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1435); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1336); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_doc= on */ +nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_doc= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ if (var8 == NULL) { var9 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ var14 = var8 == var_other; var12 = var14; goto RET_LABEL13; @@ -619,23 +423,23 @@ var15 = var_new_child->type->type_table[cltype16] == idtype17; if (unlikely(!var15)) { var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1439); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1340); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_kwredef= on */ +nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_kwredef= on */ } goto RET_LABEL; } else { } -var19 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +var19 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ if (var19 == NULL) { var20 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var19,var_old_child) on */ +{ /* Inline kernel$Object$== (var19,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var19,var_other) on */ var25 = var19 == var_other; var23 = var25; goto RET_LABEL24; @@ -649,11 +453,11 @@ RET_LABEL22:(void)0; var20 = var21; } if (var20){ -/* isa nullable AVisibility */ -cltype27 = type_nullable__nitc__AVisibility.color; -idtype28 = type_nullable__nitc__AVisibility.id; +/* isa AVisibility */ +cltype27 = type_nitc__AVisibility.color; +idtype28 = type_nitc__AVisibility.id; if(var_new_child == NULL) { -var26 = 1; +var26 = 0; } else { if(cltype27 >= var_new_child->type->table_size) { var26 = 0; @@ -663,27 +467,30 @@ var26 = var_new_child->type->type_table[cltype27] == idtype28; } if (unlikely(!var26)) { var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1443); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AVisibility", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1344); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_visibility= on */ +nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_visibility= on */ } goto RET_LABEL; } else { } -var30 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ +var30 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val; /* _n_kwsuper on */ if (unlikely(var30 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1446); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1347); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var30,var_old_child) on */ +{ /* Inline kernel$Object$== (var30,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var30,var_other) on */ var35 = var30 == var_other; var33 = var35; goto RET_LABEL34; @@ -696,9 +503,9 @@ RET_LABEL32:(void)0; } } if (var31){ -/* isa AAtid */ -cltype37 = type_nitc__AAtid.color; -idtype38 = type_nitc__AAtid.id; +/* isa TKwsuper */ +cltype37 = type_nitc__TKwsuper.color; +idtype38 = type_nitc__TKwsuper.id; if(var_new_child == NULL) { var36 = 0; } else { @@ -710,174 +517,115 @@ var36 = var_new_child->type->type_table[cltype37] == idtype38; } if (unlikely(!var36)) { var_class_name39 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name39); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1447); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name39); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1348); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_atid= on */ +nitc__parser_prod___ASuperPropdef___n_kwsuper_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_kwsuper= on */ } goto RET_LABEL; } else { } -var40 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ -if (var40 == NULL) { -var41 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var40,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var40,var_other) on */ -var46 = var40 == var_other; -var44 = var46; -goto RET_LABEL45; -RET_LABEL45:(void)0; -} -} -var42 = var44; -goto RET_LABEL43; -RET_LABEL43:(void)0; -} -var41 = var42; -} -if (var41){ -/* isa nullable TOpar */ -cltype48 = type_nullable__nitc__TOpar.color; -idtype49 = type_nullable__nitc__TOpar.id; -if(var_new_child == NULL) { -var47 = 1; -} else { -if(cltype48 >= var_new_child->type->table_size) { -var47 = 0; -} else { -var47 = var_new_child->type->type_table[cltype48] == idtype49; -} -} -if (unlikely(!var47)) { -var_class_name50 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name50); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1451); -fatal_exit(1); -} -{ -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_opar= on */ -} -goto RET_LABEL; -} else { +var40 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val; /* _n_type on */ +if (unlikely(var40 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -{ -{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ -var53 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (unlikely(var53 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 2926); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1351); fatal_exit(1); } -var51 = var53; -RET_LABEL52:(void)0; -} -} { -var54 = nitc___nitc__ANodes___replace_child(var51, var_old_child, var_new_child); -} -if (var54){ -goto RET_LABEL; -} else { -} -var55 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ -if (var55 == NULL) { -var56 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var55,var_old_child) on */ +{ /* Inline kernel$Object$== (var40,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var55,var_other) on */ -var61 = var55 == var_other; -var59 = var61; -goto RET_LABEL60; -RET_LABEL60:(void)0; +{ /* Inline kernel$Object$is_same_instance (var40,var_other) on */ +var45 = var40 == var_other; +var43 = var45; +goto RET_LABEL44; +RET_LABEL44:(void)0; } } -var57 = var59; -goto RET_LABEL58; -RET_LABEL58:(void)0; +var41 = var43; +goto RET_LABEL42; +RET_LABEL42:(void)0; } -var56 = var57; } -if (var56){ -/* isa nullable TCpar */ -cltype63 = type_nullable__nitc__TCpar.color; -idtype64 = type_nullable__nitc__TCpar.id; +if (var41){ +/* isa AType */ +cltype47 = type_nitc__AType.color; +idtype48 = type_nitc__AType.id; if(var_new_child == NULL) { -var62 = 1; +var46 = 0; } else { -if(cltype63 >= var_new_child->type->table_size) { -var62 = 0; +if(cltype47 >= var_new_child->type->table_size) { +var46 = 0; } else { -var62 = var_new_child->type->type_table[cltype63] == idtype64; +var46 = var_new_child->type->type_table[cltype47] == idtype48; } } -if (unlikely(!var62)) { -var_class_name65 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name65); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1456); +if (unlikely(!var46)) { +var_class_name49 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name49); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1352); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_cpar= on */ +nitc__parser_prod___ASuperPropdef___n_type_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_type= on */ } goto RET_LABEL; } else { } -var66 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var66 == NULL) { -var67 = 0; /* cannot be null */ +var50 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var50 == NULL) { +var51 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var66,var_old_child) on */ +{ /* Inline kernel$Object$== (var50,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var66,var_other) on */ -var72 = var66 == var_other; -var70 = var72; -goto RET_LABEL71; -RET_LABEL71:(void)0; +{ /* Inline kernel$Object$is_same_instance (var50,var_other) on */ +var56 = var50 == var_other; +var54 = var56; +goto RET_LABEL55; +RET_LABEL55:(void)0; } } -var68 = var70; -goto RET_LABEL69; -RET_LABEL69:(void)0; +var52 = var54; +goto RET_LABEL53; +RET_LABEL53:(void)0; } -var67 = var68; +var51 = var52; } -if (var67){ +if (var51){ /* isa nullable AAnnotations */ -cltype74 = type_nullable__nitc__AAnnotations.color; -idtype75 = type_nullable__nitc__AAnnotations.id; +cltype58 = type_nullable__nitc__AAnnotations.color; +idtype59 = type_nullable__nitc__AAnnotations.id; if(var_new_child == NULL) { -var73 = 1; +var57 = 1; } else { -if(cltype74 >= var_new_child->type->table_size) { -var73 = 0; +if(cltype58 >= var_new_child->type->table_size) { +var57 = 0; } else { -var73 = var_new_child->type->type_table[cltype74] == idtype75; +var57 = var_new_child->type->type_table[cltype58] == idtype59; } } -if (unlikely(!var73)) { -var_class_name76 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name76); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1460); +if (unlikely(!var57)) { +var_class_name60 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name60); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1356); fatal_exit(1); } { -nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AAnnotPropdef#n_annotations= on */ +nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod$ASuperPropdef$n_annotations= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_doc= for (self: AAnnotPropdef, nullable ADoc) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val* self, val* p0) { +/* method parser_prod$ASuperPropdef$n_doc= for (self: ASuperPropdef, nullable ADoc) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val* self, val* p0) { val* var_node /* var node: nullable ADoc */; short int var /* : Bool */; short int var1 /* : Bool */; @@ -885,14 +633,14 @@ val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_node; /* _n_doc on */ +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_node; /* _n_doc on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ @@ -906,7 +654,7 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } @@ -915,8 +663,8 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_kwredef= for (self: AAnnotPropdef, nullable TKwredef) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val* self, val* p0) { +/* method parser_prod$ASuperPropdef$n_kwredef= for (self: ASuperPropdef, nullable TKwredef) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val* self, val* p0) { val* var_node /* var node: nullable TKwredef */; short int var /* : Bool */; short int var1 /* : Bool */; @@ -924,14 +672,14 @@ val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_node; /* _n_kwredef on */ +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_node; /* _n_kwredef on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ @@ -945,7 +693,7 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } @@ -954,78 +702,80 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_visibility= for (self: AAnnotPropdef, nullable AVisibility) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val* self, val* p0) { +/* method parser_prod$ASuperPropdef$n_visibility= for (self: ASuperPropdef, nullable AVisibility) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val* self, val* p0) { val* var_node /* var node: nullable AVisibility */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_node; /* _n_visibility on */ +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_node; /* _n_visibility on */ if (var_node == NULL) { -var = 0; /* is null */ +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1374); +fatal_exit(1); } else { -var = 1; /* arg is null and recv is not */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +if (unlikely(var_node == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -var = var1; } -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +RET_LABEL:; } +/* method parser_prod$ASuperPropdef$n_kwsuper= for (self: ASuperPropdef, TKwsuper) */ +void nitc__parser_prod___ASuperPropdef___n_kwsuper_61d(val* self, val* p0) { +val* var_node /* var node: TKwsuper */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val = var_node; /* _n_kwsuper on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -} else { } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_atid= for (self: AAnnotPropdef, AAtid) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(val* self, val* p0) { -val* var_node /* var node: AAtid */; +/* method parser_prod$ASuperPropdef$n_type= for (self: ASuperPropdef, AType) */ +void nitc__parser_prod___ASuperPropdef___n_type_61d(val* self, val* p0) { +val* var_node /* var node: AType */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val = var_node; /* _n_atid on */ +self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val = var_node; /* _n_type on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_opar= for (self: AAnnotPropdef, nullable TOpar) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TOpar */; +/* method parser_prod$ASuperPropdef$n_annotations= for (self: ASuperPropdef, nullable AAnnotations) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val = var_node; /* _n_opar on */ +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -1036,8 +786,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -1045,809 +795,1104 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_cpar= for (self: AAnnotPropdef, nullable TCpar) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TCpar */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val = var_node; /* _n_cpar on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +/* method parser_prod$ASuperPropdef$visit_all for (self: ASuperPropdef, Visitor) */ +void nitc__parser_prod___ASuperPropdef___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable ADoc */; +val* var1 /* : nullable TKwredef */; +val* var2 /* : nullable AVisibility */; +val* var3 /* : TKwsuper */; +val* var4 /* : AType */; +val* var5 /* : nullable AAnnotations */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +var1 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var2 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var = var1; +var3 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_kwsuper].val; /* _n_kwsuper on */ +if (unlikely(var3 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1398); +fatal_exit(1); } -if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var4 = self->attrs[COLOR_nitc__parser_nodes__ASuperPropdef___n_type].val; /* _n_type on */ +if (unlikely(var4 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -} else { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1399); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var5 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AAnnotPropdef#n_annotations= for (self: AAnnotPropdef, nullable AAnnotations) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; +/* method parser_prod$AAnnotPropdef$init_aannotpropdef for (self: AAnnotPropdef, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ +void nitc__parser_prod___AAnnotPropdef___init_aannotpropdef(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5, val* p6, val* p7) { +val* var_n_doc /* var n_doc: nullable ADoc */; +val* var_n_kwredef /* var n_kwredef: nullable TKwredef */; +val* var_n_visibility /* var n_visibility: nullable AVisibility */; +val* var_n_atid /* var n_atid: nullable AAtid */; +val* var_n_opar /* var n_opar: nullable TOpar */; +val* var_n_args /* var n_args: Collection[Object] */; +val* var_n_cpar /* var n_cpar: nullable TCpar */; +val* var_n_annotations /* var n_annotations: nullable AAnnotations */; short int var /* : Bool */; -short int var1 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ -if (var_node == NULL) { +short int var5 /* : Bool */; +short int var7 /* : Bool */; +short int var8 /* : Bool */; +short int var10 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var17 /* : Bool */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var24 /* : Bool */; +val* var26 /* : ANodes[AExpr] */; +val* var28 /* : ANodes[AExpr] */; +short int var29 /* : Bool */; +short int var30 /* : Bool */; +short int var32 /* : Bool */; +short int var33 /* : Bool */; +short int var35 /* : Bool */; +short int var36 /* : Bool */; +short int var38 /* : Bool */; +short int var39 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_doc = p0; +var_n_kwredef = p1; +var_n_visibility = p2; +var_n_atid = p3; +var_n_opar = p4; +var_n_args = p5; +var_n_cpar = p6; +var_n_annotations = p7; +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_n_doc; /* _n_doc on */ +if (var_n_doc == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_doc,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var4 = ((short int(*)(val* self, val* p0))(var_n_doc->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_doc, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var5 = !var4; +var2 = var5; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -var = var1; +var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_doc,self) on */ +var_n_doc->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL6:(void)0; } } } else { } -RET_LABEL:; -} -/* method parser_prod#AAnnotPropdef#visit_all for (self: AAnnotPropdef, Visitor) */ -void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable ADoc */; -val* var1 /* : nullable TKwredef */; -val* var2 /* : nullable AVisibility */; -val* var3 /* : AAtid */; -val* var4 /* : nullable TOpar */; -val* var5 /* : ANodes[AExpr] */; -val* var7 /* : ANodes[AExpr] */; -val* var8 /* : nullable TCpar */; -val* var9 /* : nullable AAnnotations */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var1 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_n_kwredef; /* _n_kwredef on */ +if (var_n_kwredef == NULL) { +var7 = 0; /* is null */ +} else { +var7 = 1; /* arg is null and recv is not */ } -var2 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +if (0) { +{ /* Inline kernel$Object$!= (var_n_kwredef,((val*)NULL)) on */ +var_other = ((val*)NULL); { -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +var10 = ((short int(*)(val* self, val* p0))(var_n_kwredef->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwredef, var_other); /* == on */ } -var3 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ -if (unlikely(var3 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1507); -fatal_exit(1); +var11 = !var10; +var8 = var11; +goto RET_LABEL9; +RET_LABEL9:(void)0; } -{ -nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +var7 = var8; } -var4 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ +if (var7){ { -nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_kwredef,self) on */ +var_n_kwredef->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL12:(void)0; } -{ -{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ -var7 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (unlikely(var7 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 2926); -fatal_exit(1); } -var5 = var7; -RET_LABEL6:(void)0; +} else { } +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_n_visibility; /* _n_visibility on */ +if (var_n_visibility == NULL) { +var13 = 0; /* is null */ +} else { +var13 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_n_visibility,((val*)NULL)) on */ +var_other = ((val*)NULL); { -nitc___nitc__ANodes___visit_all(var5, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +var16 = ((short int(*)(val* self, val* p0))(var_n_visibility->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_visibility, var_other); /* == on */ } -var8 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var8); /* Direct call parser_nodes#Visitor#enter_visit on */ +var17 = !var16; +var14 = var17; +goto RET_LABEL15; +RET_LABEL15:(void)0; } -var9 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +var13 = var14; +} +if (var13){ { -nitc___nitc__Visitor___enter_visit(var_v, var9); /* Direct call parser_nodes#Visitor#enter_visit on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_visibility,self) on */ +var_n_visibility->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL18:(void)0; } -RET_LABEL:; } -/* method parser_prod#AIdMethid#init_aidmethid for (self: AIdMethid, nullable TId) */ -void nitc__parser_prod___AIdMethid___init_aidmethid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TId */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +} else { } +if (unlikely(var_n_atid == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var_n_id = p0; -if (unlikely(var_n_id == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1519); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1421); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val = var_n_atid; /* _n_atid on */ +if (var_n_atid == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1520); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1422); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); +{ /* Inline parser_nodes$ANode$parent= (var_n_atid,self) on */ +if (unlikely(var_n_atid == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } +var_n_atid->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL19:(void)0; } -RET_LABEL:; } -/* method parser_prod#AIdMethid#replace_child for (self: AIdMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TId */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val; /* _n_id on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1525); -fatal_exit(1); +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val = var_n_opar; /* _n_opar on */ +if (var_n_opar == NULL) { +var20 = 0; /* is null */ +} else { +var20 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_n_opar,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#== (var,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +var23 = ((short int(*)(val* self, val* p0))(var_n_opar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_opar, var_other); /* == on */ } +var24 = !var23; +var21 = var24; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var20 = var21; +} +if (var20){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_opar,self) on */ +var_n_opar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL25:(void)0; } } -if (var1){ -/* isa TId */ -cltype = type_nitc__TId.color; -idtype = type_nitc__TId.id; -if(var_new_child == NULL) { -var6 = 0; -} else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; } +{ +{ /* Inline parser_nodes$AAnnotation$n_args (self) on */ +var28 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var28 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1526); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 3007); fatal_exit(1); } +var26 = var28; +RET_LABEL27:(void)0; +} +} { -nitc__parser_prod___AIdMethid___n_id_61d(self, var_new_child); /* Direct call parser_prod#AIdMethid#n_id= on */ +nitc___nitc__ANodes___unsafe_add_all(var26, var_n_args); /* Direct call parser_nodes$ANodes$unsafe_add_all on */ } -goto RET_LABEL; +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val = var_n_cpar; /* _n_cpar on */ +if (var_n_cpar == NULL) { +var29 = 0; /* is null */ } else { +var29 = 1; /* arg is null and recv is not */ } -RET_LABEL:; -} -/* method parser_prod#AIdMethid#n_id= for (self: AIdMethid, TId) */ -void nitc__parser_prod___AIdMethid___n_id_61d(val* self, val* p0) { -val* var_node /* var node: TId */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val = var_node; /* _n_id on */ +if (0) { +{ /* Inline kernel$Object$!= (var_n_cpar,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} +var32 = ((short int(*)(val* self, val* p0))(var_n_cpar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cpar, var_other); /* == on */ } -RET_LABEL:; +var33 = !var32; +var30 = var33; +goto RET_LABEL31; +RET_LABEL31:(void)0; } -/* method parser_prod#AIdMethid#visit_all for (self: AIdMethid, Visitor) */ -void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : TId */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val; /* _n_id on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1540); -fatal_exit(1); +var29 = var30; } +if (var29){ { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_cpar,self) on */ +var_n_cpar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL34:(void)0; } -RET_LABEL:; } -/* method parser_prod#APlusMethid#init_aplusmethid for (self: APlusMethid, nullable TPlus) */ -void nitc__parser_prod___APlusMethid___init_aplusmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TPlus */; +} else { +} +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { +var35 = 0; /* is null */ +} else { +var35 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_annotations,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +var38 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ } +var39 = !var38; +var36 = var39; +goto RET_LABEL37; +RET_LABEL37:(void)0; } -var_n_op = p0; -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1548); -fatal_exit(1); +var35 = var36; } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ -if (var_n_op == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1549); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); +if (var35){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_annotations,self) on */ +var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL40:(void)0; } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; } +} else { } RET_LABEL:; } -/* method parser_prod#APlusMethid#replace_child for (self: APlusMethid, ANode, nullable ANode) */ -void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AAnnotPropdef$replace_child for (self: AAnnotPropdef, ANode, nullable ANode) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +val* var /* : nullable ADoc */; short int var1 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; +short int var4 /* : Bool */; short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; +val* var8 /* : nullable TKwredef */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : nullable AVisibility */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : AAtid */; +short int var31 /* : Bool */; +short int var33 /* : Bool */; +short int var35 /* : Bool */; +short int var36 /* : Bool */; +int cltype37; +int idtype38; +const char* var_class_name39; +val* var40 /* : nullable TOpar */; +short int var41 /* : Bool */; +short int var42 /* : Bool */; +short int var44 /* : Bool */; +short int var46 /* : Bool */; +short int var47 /* : Bool */; +int cltype48; +int idtype49; +const char* var_class_name50; +val* var51 /* : ANodes[AExpr] */; +val* var53 /* : ANodes[AExpr] */; +short int var54 /* : Bool */; +val* var55 /* : nullable TCpar */; +short int var56 /* : Bool */; +short int var57 /* : Bool */; +short int var59 /* : Bool */; +short int var61 /* : Bool */; +short int var62 /* : Bool */; +int cltype63; +int idtype64; +const char* var_class_name65; +val* var66 /* : nullable AAnnotations */; +short int var67 /* : Bool */; +short int var68 /* : Bool */; +short int var70 /* : Bool */; +short int var72 /* : Bool */; +short int var73 /* : Bool */; +int cltype74; +int idtype75; +const char* var_class_name76; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1554); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; } +var1 = var2; } if (var1){ -/* isa TPlus */ -cltype = type_nitc__TPlus.color; -idtype = type_nitc__TPlus.id; +/* isa nullable ADoc */ +cltype = type_nullable__nitc__ADoc.color; +idtype = type_nullable__nitc__ADoc.id; if(var_new_child == NULL) { -var6 = 0; +var7 = 1; } else { if(cltype >= var_new_child->type->table_size) { -var6 = 0; +var7 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var6)) { +if (unlikely(!var7)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1555); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1435); fatal_exit(1); } { -nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#APlusMethid#n_op= on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_doc= on */ } goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#APlusMethid#n_op= for (self: APlusMethid, Token) */ -void nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { -val* var_node /* var node: Token */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var8,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } } -RET_LABEL:; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } -/* method parser_prod#APlusMethid#visit_all for (self: APlusMethid, Visitor) */ -void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1569); +var9 = var10; +} +if (var9){ +/* isa nullable TKwredef */ +cltype16 = type_nullable__nitc__TKwredef.color; +idtype17 = type_nullable__nitc__TKwredef.id; +if(var_new_child == NULL) { +var15 = 1; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1439); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_kwredef= on */ } -RET_LABEL:; +goto RET_LABEL; +} else { } -/* method parser_prod#AMinusMethid#init_aminusmethid for (self: AMinusMethid, nullable TMinus) */ -void nitc__parser_prod___AMinusMethid___init_aminusmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TMinus */; +var19 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +if (var19 == NULL) { +var20 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var19,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } } -var_n_op = p0; -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1577); -fatal_exit(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ -if (var_n_op == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1578); -fatal_exit(1); +var20 = var21; +} +if (var20){ +/* isa nullable AVisibility */ +cltype27 = type_nullable__nitc__AVisibility.color; +idtype28 = type_nullable__nitc__AVisibility.id; +if(var_new_child == NULL) { +var26 = 1; } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1443); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; +{ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_visibility= on */ } +goto RET_LABEL; +} else { } -RET_LABEL:; +var30 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ +if (unlikely(var30 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -/* method parser_prod#AMinusMethid#replace_child for (self: AMinusMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1583); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1446); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var30,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +{ /* Inline kernel$Object$is_same_instance (var30,var_other) on */ +var35 = var30 == var_other; +var33 = var35; +goto RET_LABEL34; +RET_LABEL34:(void)0; } } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var31 = var33; +goto RET_LABEL32; +RET_LABEL32:(void)0; } } -if (var1){ -/* isa TMinus */ -cltype = type_nitc__TMinus.color; -idtype = type_nitc__TMinus.id; +if (var31){ +/* isa AAtid */ +cltype37 = type_nitc__AAtid.color; +idtype38 = type_nitc__AAtid.id; if(var_new_child == NULL) { -var6 = 0; +var36 = 0; } else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; +if(cltype37 >= var_new_child->type->table_size) { +var36 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var36 = var_new_child->type->type_table[cltype37] == idtype38; } } -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1584); +if (unlikely(!var36)) { +var_class_name39 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name39); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1447); fatal_exit(1); } { -nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AMinusMethid#n_op= on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_atid= on */ } goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#AMinusMethid#n_op= for (self: AMinusMethid, Token) */ -void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { -val* var_node /* var node: Token */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +var40 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ +if (var40 == NULL) { +var41 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var40,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var40,var_other) on */ +var46 = var40 == var_other; +var44 = var46; +goto RET_LABEL45; +RET_LABEL45:(void)0; } } -RET_LABEL:; +var42 = var44; +goto RET_LABEL43; +RET_LABEL43:(void)0; } -/* method parser_prod#AMinusMethid#visit_all for (self: AMinusMethid, Visitor) */ -void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1598); +var41 = var42; +} +if (var41){ +/* isa nullable TOpar */ +cltype48 = type_nullable__nitc__TOpar.color; +idtype49 = type_nullable__nitc__TOpar.id; +if(var_new_child == NULL) { +var47 = 1; +} else { +if(cltype48 >= var_new_child->type->table_size) { +var47 = 0; +} else { +var47 = var_new_child->type->type_table[cltype48] == idtype49; +} +} +if (unlikely(!var47)) { +var_class_name50 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name50); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1451); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_opar= on */ } -RET_LABEL:; +goto RET_LABEL; +} else { } -/* method parser_prod#AStarMethid#init_astarmethid for (self: AStarMethid, nullable TStar) */ -void nitc__parser_prod___AStarMethid___init_astarmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TStar */; { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; -} +{ /* Inline parser_nodes$AAnnotation$n_args (self) on */ +var53 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var53 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var_n_op = p0; -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1606); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 3007); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ -if (var_n_op == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1607); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); +var51 = var53; +RET_LABEL52:(void)0; } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; } +{ +var54 = nitc___nitc__ANodes___replace_child(var51, var_old_child, var_new_child); } -RET_LABEL:; +if (var54){ +goto RET_LABEL; +} else { } -/* method parser_prod#AStarMethid#replace_child for (self: AStarMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1612); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var55 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ +if (var55 == NULL) { +var56 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var55,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +{ /* Inline kernel$Object$is_same_instance (var55,var_other) on */ +var61 = var55 == var_other; +var59 = var61; +goto RET_LABEL60; +RET_LABEL60:(void)0; } } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var57 = var59; +goto RET_LABEL58; +RET_LABEL58:(void)0; } +var56 = var57; } -if (var1){ -/* isa TStar */ -cltype = type_nitc__TStar.color; -idtype = type_nitc__TStar.id; +if (var56){ +/* isa nullable TCpar */ +cltype63 = type_nullable__nitc__TCpar.color; +idtype64 = type_nullable__nitc__TCpar.id; if(var_new_child == NULL) { -var6 = 0; +var62 = 1; } else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; +if(cltype63 >= var_new_child->type->table_size) { +var62 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var62 = var_new_child->type->type_table[cltype63] == idtype64; } } -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStar", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1613); +if (unlikely(!var62)) { +var_class_name65 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name65); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1456); fatal_exit(1); } { -nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AStarMethid#n_op= on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_cpar= on */ } goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#AStarMethid#n_op= for (self: AStarMethid, Token) */ -void nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { -val* var_node /* var node: Token */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +var66 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var66 == NULL) { +var67 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var66,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var66,var_other) on */ +var72 = var66 == var_other; +var70 = var72; +goto RET_LABEL71; +RET_LABEL71:(void)0; } } -RET_LABEL:; +var68 = var70; +goto RET_LABEL69; +RET_LABEL69:(void)0; } -/* method parser_prod#AStarMethid#visit_all for (self: AStarMethid, Visitor) */ -void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1627); +var67 = var68; +} +if (var67){ +/* isa nullable AAnnotations */ +cltype74 = type_nullable__nitc__AAnnotations.color; +idtype75 = type_nullable__nitc__AAnnotations.id; +if(var_new_child == NULL) { +var73 = 1; +} else { +if(cltype74 >= var_new_child->type->table_size) { +var73 = 0; +} else { +var73 = var_new_child->type->type_table[cltype74] == idtype75; +} +} +if (unlikely(!var73)) { +var_class_name76 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name76); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1460); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod$AAnnotPropdef$n_annotations= on */ +} +goto RET_LABEL; +} else { } RET_LABEL:; } -/* method parser_prod#AStarstarMethid#init_astarstarmethid for (self: AStarstarMethid, nullable TStarstar) */ -void nitc__parser_prod___AStarstarMethid___init_astarstarmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TStarstar */; +/* method parser_prod$AAnnotPropdef$n_doc= for (self: AAnnotPropdef, nullable ADoc) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_doc_61d(val* self, val* p0) { +val* var_node /* var node: nullable ADoc */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val = var_node; /* _n_doc on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var_n_op = p0; -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1635); -fatal_exit(1); +var = var1; } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ -if (var_n_op == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1636); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ -if (unlikely(var_n_op == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; } +} else { } RET_LABEL:; } -/* method parser_prod#AStarstarMethid#replace_child for (self: AStarstarMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +/* method parser_prod$AAnnotPropdef$n_kwredef= for (self: AAnnotPropdef, nullable TKwredef) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_kwredef_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwredef */; +short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1641); -fatal_exit(1); +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val = var_node; /* _n_kwredef on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#== (var,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; -} +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -var1 = var3; +var4 = !var3; +var1 = var4; goto RET_LABEL2; RET_LABEL2:(void)0; } +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} } -if (var1){ -/* isa TStarstar */ -cltype = type_nitc__TStarstar.color; -idtype = type_nitc__TStarstar.id; -if(var_new_child == NULL) { -var6 = 0; } else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; +} +RET_LABEL:; +} +/* method parser_prod$AAnnotPropdef$n_visibility= for (self: AAnnotPropdef, nullable AVisibility) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ADefinition__n_visibility_61d(val* self, val* p0) { +val* var_node /* var node: nullable AVisibility */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val = var_node; /* _n_visibility on */ +if (var_node == NULL) { +var = 0; /* is null */ } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstar", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1642); -fatal_exit(1); +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; } +if (var){ { -nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AStarstarMethid#n_op= on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} } -goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AStarstarMethid#n_op= for (self: AStarstarMethid, Token) */ -void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { -val* var_node /* var node: Token */; +/* method parser_prod$AAnnotPropdef$n_atid= for (self: AAnnotPropdef, AAtid) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_atid_61d(val* self, val* p0) { +val* var_node /* var node: AAtid */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val = var_node; /* _n_atid on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AStarstarMethid#visit_all for (self: AStarstarMethid, Visitor) */ -void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1656); +/* method parser_prod$AAnnotPropdef$n_opar= for (self: AAnnotPropdef, nullable TOpar) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_opar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TOpar */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val = var_node; /* _n_opar on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$AAnnotPropdef$n_cpar= for (self: AAnnotPropdef, nullable TCpar) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__AAnnotation__n_cpar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TCpar */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val = var_node; /* _n_cpar on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$AAnnotPropdef$n_annotations= for (self: AAnnotPropdef, nullable AAnnotations) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$AAnnotPropdef$visit_all for (self: AAnnotPropdef, Visitor) */ +void nitc__parser_prod___AAnnotPropdef___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable ADoc */; +val* var1 /* : nullable TKwredef */; +val* var2 /* : nullable AVisibility */; +val* var3 /* : AAtid */; +val* var4 /* : nullable TOpar */; +val* var5 /* : ANodes[AExpr] */; +val* var7 /* : ANodes[AExpr] */; +val* var8 /* : nullable TCpar */; +val* var9 /* : nullable AAnnotations */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_doc].val; /* _n_doc on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_kwredef].val; /* _n_kwredef on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var2 = self->attrs[COLOR_nitc__parser_nodes__ADefinition___n_visibility].val; /* _n_visibility on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var3 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ +if (unlikely(var3 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1507); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var4 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +{ +{ /* Inline parser_nodes$AAnnotation$n_args (self) on */ +var7 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var7 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 3007); fatal_exit(1); } +var5 = var7; +RET_LABEL6:(void)0; +} +} +{ +nitc___nitc__ANodes___visit_all(var5, var_v); /* Direct call parser_nodes$ANodes$visit_all on */ +} +var8 = self->attrs[COLOR_nitc__parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var8); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var9 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var9); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ASlashMethid#init_aslashmethid for (self: ASlashMethid, nullable TSlash) */ -void nitc__parser_prod___ASlashMethid___init_aslashmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TSlash */; +/* method parser_prod$AIdMethid$init_aidmethid for (self: AIdMethid, nullable TId) */ +void nitc__parser_prod___AIdMethid___init_aidmethid(val* self, val* p0) { +val* var_n_id /* var n_id: nullable TId */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_op = p0; -if (unlikely(var_n_op == NULL)) { +var_n_id = p0; +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1664); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1519); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ -if (var_n_op == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1665); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1520); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ -if (unlikely(var_n_op == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ASlashMethid#replace_child for (self: ASlashMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AIdMethid$replace_child for (self: AIdMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +val* var /* : TId */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; @@ -1858,17 +1903,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val; /* _n_id on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1670); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1525); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -1881,9 +1929,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TSlash */ -cltype = type_nitc__TSlash.color; -idtype = type_nitc__TSlash.id; +/* isa TId */ +cltype = type_nitc__TId.color; +idtype = type_nitc__TId.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -1895,81 +1943,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1671); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1526); fatal_exit(1); } { -nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ASlashMethid#n_op= on */ +nitc__parser_prod___AIdMethid___n_id_61d(self, var_new_child); /* Direct call parser_prod$AIdMethid$n_id= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ASlashMethid#n_op= for (self: ASlashMethid, Token) */ -void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { -val* var_node /* var node: Token */; +/* method parser_prod$AIdMethid$n_id= for (self: AIdMethid, TId) */ +void nitc__parser_prod___AIdMethid___n_id_61d(val* self, val* p0) { +val* var_node /* var node: TId */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val = var_node; /* _n_id on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ASlashMethid#visit_all for (self: ASlashMethid, Visitor) */ -void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AIdMethid$visit_all for (self: AIdMethid, Visitor) */ +void nitc__parser_prod___AIdMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : Token */; +val* var /* : TId */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AIdMethid___n_id].val; /* _n_id on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1685); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1540); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#APercentMethid#init_apercentmethid for (self: APercentMethid, nullable TPercent) */ -void nitc__parser_prod___APercentMethid___init_apercentmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TPercent */; +/* method parser_prod$APlusMethid$init_aplusmethid for (self: APlusMethid, nullable TPlus) */ +void nitc__parser_prod___APlusMethid___init_aplusmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TPlus */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1693); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1548); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1694); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1549); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#APercentMethid#replace_child for (self: APercentMethid, ANode, nullable ANode) */ -void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$APlusMethid$replace_child for (self: APlusMethid, ANode, nullable ANode) */ +void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -1983,17 +2043,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1699); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1554); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2006,9 +2069,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TPercent */ -cltype = type_nitc__TPercent.color; -idtype = type_nitc__TPercent.id; +/* isa TPlus */ +cltype = type_nitc__TPlus.color; +idtype = type_nitc__TPlus.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2020,81 +2083,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1700); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPlus", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1555); fatal_exit(1); } { -nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#APercentMethid#n_op= on */ +nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$APlusMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#APercentMethid#n_op= for (self: APercentMethid, Token) */ -void nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$APlusMethid$n_op= for (self: APlusMethid, Token) */ +void nitc__parser_prod___APlusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#APercentMethid#visit_all for (self: APercentMethid, Visitor) */ -void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$APlusMethid$visit_all for (self: APlusMethid, Visitor) */ +void nitc__parser_prod___APlusMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1714); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1569); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AEqMethid#init_aeqmethid for (self: AEqMethid, nullable TEq) */ -void nitc__parser_prod___AEqMethid___init_aeqmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TEq */; +/* method parser_prod$AMinusMethid$init_aminusmethid for (self: AMinusMethid, nullable TMinus) */ +void nitc__parser_prod___AMinusMethid___init_aminusmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TMinus */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1722); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1577); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1723); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1578); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AEqMethid#replace_child for (self: AEqMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AMinusMethid$replace_child for (self: AMinusMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2108,17 +2183,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1728); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1583); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2131,9 +2209,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TEq */ -cltype = type_nitc__TEq.color; -idtype = type_nitc__TEq.id; +/* isa TMinus */ +cltype = type_nitc__TMinus.color; +idtype = type_nitc__TMinus.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2145,81 +2223,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEq", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1729); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinus", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1584); fatal_exit(1); } { -nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AEqMethid#n_op= on */ +nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AMinusMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AEqMethid#n_op= for (self: AEqMethid, Token) */ -void nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AMinusMethid$n_op= for (self: AMinusMethid, Token) */ +void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AEqMethid#visit_all for (self: AEqMethid, Visitor) */ -void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AMinusMethid$visit_all for (self: AMinusMethid, Visitor) */ +void nitc__parser_prod___AMinusMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1743); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1598); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ANeMethid#init_anemethid for (self: ANeMethid, nullable TNe) */ -void nitc__parser_prod___ANeMethid___init_anemethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TNe */; +/* method parser_prod$AStarMethid$init_astarmethid for (self: AStarMethid, nullable TStar) */ +void nitc__parser_prod___AStarMethid___init_astarmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TStar */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1751); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1606); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1752); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1607); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ANeMethid#replace_child for (self: ANeMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AStarMethid$replace_child for (self: AStarMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2233,17 +2323,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1757); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1612); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2256,9 +2349,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TNe */ -cltype = type_nitc__TNe.color; -idtype = type_nitc__TNe.id; +/* isa TStar */ +cltype = type_nitc__TStar.color; +idtype = type_nitc__TStar.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2270,81 +2363,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNe", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1758); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStar", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1613); fatal_exit(1); } { -nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ANeMethid#n_op= on */ +nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AStarMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ANeMethid#n_op= for (self: ANeMethid, Token) */ -void nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AStarMethid$n_op= for (self: AStarMethid, Token) */ +void nitc__parser_prod___AStarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ANeMethid#visit_all for (self: ANeMethid, Visitor) */ -void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AStarMethid$visit_all for (self: AStarMethid, Visitor) */ +void nitc__parser_prod___AStarMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1772); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1627); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ALeMethid#init_alemethid for (self: ALeMethid, nullable TLe) */ -void nitc__parser_prod___ALeMethid___init_alemethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TLe */; +/* method parser_prod$AStarstarMethid$init_astarstarmethid for (self: AStarstarMethid, nullable TStarstar) */ +void nitc__parser_prod___AStarstarMethid___init_astarstarmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TStarstar */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1780); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1635); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1781); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1636); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALeMethid#replace_child for (self: ALeMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AStarstarMethid$replace_child for (self: AStarstarMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2358,17 +2463,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1786); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1641); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2381,9 +2489,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TLe */ -cltype = type_nitc__TLe.color; -idtype = type_nitc__TLe.id; +/* isa TStarstar */ +cltype = type_nitc__TStarstar.color; +idtype = type_nitc__TStarstar.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2395,81 +2503,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLe", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1787); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarstar", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1642); fatal_exit(1); } { -nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ALeMethid#n_op= on */ +nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AStarstarMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ALeMethid#n_op= for (self: ALeMethid, Token) */ -void nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AStarstarMethid$n_op= for (self: AStarstarMethid, Token) */ +void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALeMethid#visit_all for (self: ALeMethid, Visitor) */ -void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AStarstarMethid$visit_all for (self: AStarstarMethid, Visitor) */ +void nitc__parser_prod___AStarstarMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1801); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1656); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AGeMethid#init_agemethid for (self: AGeMethid, nullable TGe) */ -void nitc__parser_prod___AGeMethid___init_agemethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TGe */; +/* method parser_prod$ASlashMethid$init_aslashmethid for (self: ASlashMethid, nullable TSlash) */ +void nitc__parser_prod___ASlashMethid___init_aslashmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TSlash */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1809); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1664); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1810); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1665); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGeMethid#replace_child for (self: AGeMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ASlashMethid$replace_child for (self: ASlashMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2483,17 +2603,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1815); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1670); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2506,9 +2629,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TGe */ -cltype = type_nitc__TGe.color; -idtype = type_nitc__TGe.id; +/* isa TSlash */ +cltype = type_nitc__TSlash.color; +idtype = type_nitc__TSlash.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2520,81 +2643,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGe", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1816); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TSlash", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1671); fatal_exit(1); } { -nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AGeMethid#n_op= on */ +nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ASlashMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AGeMethid#n_op= for (self: AGeMethid, Token) */ -void nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$ASlashMethid$n_op= for (self: ASlashMethid, Token) */ +void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGeMethid#visit_all for (self: AGeMethid, Visitor) */ -void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ASlashMethid$visit_all for (self: ASlashMethid, Visitor) */ +void nitc__parser_prod___ASlashMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1830); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1685); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ALtMethid#init_altmethid for (self: ALtMethid, nullable TLt) */ -void nitc__parser_prod___ALtMethid___init_altmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TLt */; +/* method parser_prod$APercentMethid$init_apercentmethid for (self: APercentMethid, nullable TPercent) */ +void nitc__parser_prod___APercentMethid___init_apercentmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TPercent */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1838); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1693); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1839); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1694); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALtMethid#replace_child for (self: ALtMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$APercentMethid$replace_child for (self: APercentMethid, ANode, nullable ANode) */ +void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2608,17 +2743,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1844); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1699); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2631,9 +2769,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TLt */ -cltype = type_nitc__TLt.color; -idtype = type_nitc__TLt.id; +/* isa TPercent */ +cltype = type_nitc__TPercent.color; +idtype = type_nitc__TPercent.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2645,81 +2783,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLt", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1845); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPercent", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1700); fatal_exit(1); } { -nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ALtMethid#n_op= on */ +nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$APercentMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ALtMethid#n_op= for (self: ALtMethid, Token) */ -void nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$APercentMethid$n_op= for (self: APercentMethid, Token) */ +void nitc__parser_prod___APercentMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALtMethid#visit_all for (self: ALtMethid, Visitor) */ -void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$APercentMethid$visit_all for (self: APercentMethid, Visitor) */ +void nitc__parser_prod___APercentMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1859); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1714); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AGtMethid#init_agtmethid for (self: AGtMethid, nullable TGt) */ -void nitc__parser_prod___AGtMethid___init_agtmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TGt */; +/* method parser_prod$AEqMethid$init_aeqmethid for (self: AEqMethid, nullable TEq) */ +void nitc__parser_prod___AEqMethid___init_aeqmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TEq */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1867); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1722); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1868); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1723); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGtMethid#replace_child for (self: AGtMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AEqMethid$replace_child for (self: AEqMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2733,17 +2883,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1873); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1728); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2756,9 +2909,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TGt */ -cltype = type_nitc__TGt.color; -idtype = type_nitc__TGt.id; +/* isa TEq */ +cltype = type_nitc__TEq.color; +idtype = type_nitc__TEq.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2770,81 +2923,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGt", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1874); -fatal_exit(1); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TEq", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1729); +fatal_exit(1); } { -nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AGtMethid#n_op= on */ +nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AEqMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AGtMethid#n_op= for (self: AGtMethid, Token) */ -void nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AEqMethid$n_op= for (self: AEqMethid, Token) */ +void nitc__parser_prod___AEqMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGtMethid#visit_all for (self: AGtMethid, Visitor) */ -void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AEqMethid$visit_all for (self: AEqMethid, Visitor) */ +void nitc__parser_prod___AEqMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1888); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1743); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ALlMethid#init_allmethid for (self: ALlMethid, nullable TLl) */ -void nitc__parser_prod___ALlMethid___init_allmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TLl */; +/* method parser_prod$ANeMethid$init_anemethid for (self: ANeMethid, nullable TNe) */ +void nitc__parser_prod___ANeMethid___init_anemethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TNe */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1896); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1751); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1897); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1752); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALlMethid#replace_child for (self: ALlMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ANeMethid$replace_child for (self: ANeMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2858,17 +3023,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1902); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1757); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -2881,9 +3049,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TLl */ -cltype = type_nitc__TLl.color; -idtype = type_nitc__TLl.id; +/* isa TNe */ +cltype = type_nitc__TNe.color; +idtype = type_nitc__TNe.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -2895,81 +3063,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLl", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1903); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TNe", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1758); fatal_exit(1); } { -nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ALlMethid#n_op= on */ +nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ANeMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ALlMethid#n_op= for (self: ALlMethid, Token) */ -void nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$ANeMethid$n_op= for (self: ANeMethid, Token) */ +void nitc__parser_prod___ANeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ALlMethid#visit_all for (self: ALlMethid, Visitor) */ -void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ANeMethid$visit_all for (self: ANeMethid, Visitor) */ +void nitc__parser_prod___ANeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1917); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1772); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AGgMethid#init_aggmethid for (self: AGgMethid, nullable TGg) */ -void nitc__parser_prod___AGgMethid___init_aggmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TGg */; +/* method parser_prod$ALeMethid$init_alemethid for (self: ALeMethid, nullable TLe) */ +void nitc__parser_prod___ALeMethid___init_alemethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TLe */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1925); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1780); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1926); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1781); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGgMethid#replace_child for (self: AGgMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ALeMethid$replace_child for (self: ALeMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -2983,17 +3163,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1931); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1786); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3006,9 +3189,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TGg */ -cltype = type_nitc__TGg.color; -idtype = type_nitc__TGg.id; +/* isa TLe */ +cltype = type_nitc__TLe.color; +idtype = type_nitc__TLe.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3020,81 +3203,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGg", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1932); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLe", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1787); fatal_exit(1); } { -nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AGgMethid#n_op= on */ +nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ALeMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AGgMethid#n_op= for (self: AGgMethid, Token) */ -void nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$ALeMethid$n_op= for (self: ALeMethid, Token) */ +void nitc__parser_prod___ALeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AGgMethid#visit_all for (self: AGgMethid, Visitor) */ -void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ALeMethid$visit_all for (self: ALeMethid, Visitor) */ +void nitc__parser_prod___ALeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1946); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1801); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AStarshipMethid#init_astarshipmethid for (self: AStarshipMethid, nullable TStarship) */ -void nitc__parser_prod___AStarshipMethid___init_astarshipmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TStarship */; +/* method parser_prod$AGeMethid$init_agemethid for (self: AGeMethid, nullable TGe) */ +void nitc__parser_prod___AGeMethid___init_agemethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TGe */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1954); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1809); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1955); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1810); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AStarshipMethid#replace_child for (self: AStarshipMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AGeMethid$replace_child for (self: AGeMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -3108,17 +3303,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1960); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1815); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3131,9 +3329,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TStarship */ -cltype = type_nitc__TStarship.color; -idtype = type_nitc__TStarship.id; +/* isa TGe */ +cltype = type_nitc__TGe.color; +idtype = type_nitc__TGe.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3145,81 +3343,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarship", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1961); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGe", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1816); fatal_exit(1); } { -nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AStarshipMethid#n_op= on */ +nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AGeMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AStarshipMethid#n_op= for (self: AStarshipMethid, Token) */ -void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AGeMethid$n_op= for (self: AGeMethid, Token) */ +void nitc__parser_prod___AGeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AStarshipMethid#visit_all for (self: AStarshipMethid, Visitor) */ -void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AGeMethid$visit_all for (self: AGeMethid, Visitor) */ +void nitc__parser_prod___AGeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1975); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1830); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#APipeMethid#init_apipemethid for (self: APipeMethid, nullable TPipe) */ -void nitc__parser_prod___APipeMethid___init_apipemethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TPipe */; +/* method parser_prod$ALtMethid$init_altmethid for (self: ALtMethid, nullable TLt) */ +void nitc__parser_prod___ALtMethid___init_altmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TLt */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1983); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1838); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1984); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1839); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#APipeMethid#replace_child for (self: APipeMethid, ANode, nullable ANode) */ -void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ALtMethid$replace_child for (self: ALtMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -3233,17 +3443,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1989); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1844); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3256,9 +3469,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TPipe */ -cltype = type_nitc__TPipe.color; -idtype = type_nitc__TPipe.id; +/* isa TLt */ +cltype = type_nitc__TLt.color; +idtype = type_nitc__TLt.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3270,81 +3483,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1990); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLt", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1845); fatal_exit(1); } { -nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#APipeMethid#n_op= on */ +nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ALtMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#APipeMethid#n_op= for (self: APipeMethid, Token) */ -void nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$ALtMethid$n_op= for (self: ALtMethid, Token) */ +void nitc__parser_prod___ALtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#APipeMethid#visit_all for (self: APipeMethid, Visitor) */ -void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ALtMethid$visit_all for (self: ALtMethid, Visitor) */ +void nitc__parser_prod___ALtMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2004); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1859); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ACaretMethid#init_acaretmethid for (self: ACaretMethid, nullable TCaret) */ -void nitc__parser_prod___ACaretMethid___init_acaretmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TCaret */; +/* method parser_prod$AGtMethid$init_agtmethid for (self: AGtMethid, nullable TGt) */ +void nitc__parser_prod___AGtMethid___init_agtmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TGt */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2012); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1867); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2013); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1868); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ACaretMethid#replace_child for (self: ACaretMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AGtMethid$replace_child for (self: AGtMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -3358,17 +3583,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2018); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1873); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3381,9 +3609,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TCaret */ -cltype = type_nitc__TCaret.color; -idtype = type_nitc__TCaret.id; +/* isa TGt */ +cltype = type_nitc__TGt.color; +idtype = type_nitc__TGt.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3395,81 +3623,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2019); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGt", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1874); fatal_exit(1); } { -nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ACaretMethid#n_op= on */ +nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AGtMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ACaretMethid#n_op= for (self: ACaretMethid, Token) */ -void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AGtMethid$n_op= for (self: AGtMethid, Token) */ +void nitc__parser_prod___AGtMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ACaretMethid#visit_all for (self: ACaretMethid, Visitor) */ -void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AGtMethid$visit_all for (self: AGtMethid, Visitor) */ +void nitc__parser_prod___AGtMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2033); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1888); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AAmpMethid#init_aampmethid for (self: AAmpMethid, nullable TAmp) */ -void nitc__parser_prod___AAmpMethid___init_aampmethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TAmp */; +/* method parser_prod$ALlMethid$init_allmethid for (self: ALlMethid, nullable TLl) */ +void nitc__parser_prod___ALlMethid___init_allmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TLl */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2041); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1896); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2042); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1897); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AAmpMethid#replace_child for (self: AAmpMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ALlMethid$replace_child for (self: ALlMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -3483,17 +3723,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2047); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1902); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3506,11 +3749,11 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TAmp */ -cltype = type_nitc__TAmp.color; -idtype = type_nitc__TAmp.id; -if(var_new_child == NULL) { -var6 = 0; +/* isa TLl */ +cltype = type_nitc__TLl.color; +idtype = type_nitc__TLl.id; +if(var_new_child == NULL) { +var6 = 0; } else { if(cltype >= var_new_child->type->table_size) { var6 = 0; @@ -3520,81 +3763,93 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2048); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TLl", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1903); fatal_exit(1); } { -nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#AAmpMethid#n_op= on */ +nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ALlMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AAmpMethid#n_op= for (self: AAmpMethid, Token) */ -void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$ALlMethid$n_op= for (self: ALlMethid, Token) */ +void nitc__parser_prod___ALlMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AAmpMethid#visit_all for (self: AAmpMethid, Visitor) */ -void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ALlMethid$visit_all for (self: ALlMethid, Visitor) */ +void nitc__parser_prod___ALlMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2062); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1917); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ATildeMethid#init_atildemethid for (self: ATildeMethid, nullable TTilde) */ -void nitc__parser_prod___ATildeMethid___init_atildemethid(val* self, val* p0) { -val* var_n_op /* var n_op: nullable TTilde */; +/* method parser_prod$AGgMethid$init_aggmethid for (self: AGgMethid, nullable TGg) */ +void nitc__parser_prod___AGgMethid___init_aggmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TGg */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } var_n_op = p0; if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2070); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1925); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2071); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1926); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_op,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ATildeMethid#replace_child for (self: ATildeMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AGgMethid$replace_child for (self: AGgMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; @@ -3608,17 +3863,20 @@ int idtype; const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2076); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1931); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3631,9 +3889,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TTilde */ -cltype = type_nitc__TTilde.color; -idtype = type_nitc__TTilde.id; +/* isa TGg */ +cltype = type_nitc__TGg.color; +idtype = type_nitc__TGg.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3645,107 +3903,96 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2077); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TGg", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1932); fatal_exit(1); } { -nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod#ATildeMethid#n_op= on */ +nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AGgMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ATildeMethid#n_op= for (self: ATildeMethid, Token) */ -void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +/* method parser_prod$AGgMethid$n_op= for (self: AGgMethid, Token) */ +void nitc__parser_prod___AGgMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ATildeMethid#visit_all for (self: ATildeMethid, Visitor) */ -void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AGgMethid$visit_all for (self: AGgMethid, Visitor) */ +void nitc__parser_prod___AGgMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2091); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1946); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ABraMethid#init_abramethid for (self: ABraMethid, nullable TObra, nullable TCbra) */ -void nitc__parser_prod___ABraMethid___init_abramethid(val* self, val* p0, val* p1) { -val* var_n_obra /* var n_obra: nullable TObra */; -val* var_n_cbra /* var n_cbra: nullable TCbra */; +/* method parser_prod$AStarshipMethid$init_astarshipmethid for (self: AStarshipMethid, nullable TStarship) */ +void nitc__parser_prod___AStarshipMethid___init_astarshipmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TStarship */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_obra = p0; -var_n_cbra = p1; -if (unlikely(var_n_obra == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2100); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val = var_n_obra; /* _n_obra on */ -if (var_n_obra == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2101); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on */ -if (unlikely(var_n_obra == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} +var_n_op = p0; +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(var_n_cbra == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2102); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1954); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val = var_n_cbra; /* _n_cbra on */ -if (var_n_cbra == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2103); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1955); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on */ -if (unlikely(var_n_cbra == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL3:(void)0; +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ABraMethid#replace_child for (self: ABraMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AStarshipMethid$replace_child for (self: AStarshipMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TObra */; +val* var /* : Token */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; @@ -3754,27 +4001,22 @@ short int var6 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : TCbra */; -short int var8 /* : Bool */; -short int var10 /* : Bool */; -short int var12 /* : Bool */; -short int var13 /* : Bool */; -int cltype14; -int idtype15; -const char* var_class_name16; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val; /* _n_obra on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2108); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1960); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -3787,9 +4029,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TObra */ -cltype = type_nitc__TObra.color; -idtype = type_nitc__TObra.id; +/* isa TStarship */ +cltype = type_nitc__TStarship.color; +idtype = type_nitc__TStarship.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -3801,177 +4043,96 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2109); -fatal_exit(1); -} -{ -nitc__parser_prod___ABraMethid___n_obra_61d(self, var_new_child); /* Direct call parser_prod#ABraMethid#n_obra= on */ -} -goto RET_LABEL; -} else { -} -var7 = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val; /* _n_cbra on */ -if (unlikely(var7 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2112); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var7,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var12 = var7 == var_other; -var10 = var12; -goto RET_LABEL11; -RET_LABEL11:(void)0; -} -} -var8 = var10; -goto RET_LABEL9; -RET_LABEL9:(void)0; -} -} -if (var8){ -/* isa TCbra */ -cltype14 = type_nitc__TCbra.color; -idtype15 = type_nitc__TCbra.id; -if(var_new_child == NULL) { -var13 = 0; -} else { -if(cltype14 >= var_new_child->type->table_size) { -var13 = 0; -} else { -var13 = var_new_child->type->type_table[cltype14] == idtype15; -} -} -if (unlikely(!var13)) { -var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2113); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TStarship", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1961); fatal_exit(1); } { -nitc__parser_prod___ABraMethid___n_cbra_61d(self, var_new_child); /* Direct call parser_prod#ABraMethid#n_cbra= on */ +nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AStarshipMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ABraMethid#n_obra= for (self: ABraMethid, TObra) */ -void nitc__parser_prod___ABraMethid___n_obra_61d(val* self, val* p0) { -val* var_node /* var node: TObra */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val = var_node; /* _n_obra on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#ABraMethid#n_cbra= for (self: ABraMethid, TCbra) */ -void nitc__parser_prod___ABraMethid___n_cbra_61d(val* self, val* p0) { -val* var_node /* var node: TCbra */; +/* method parser_prod$AStarshipMethid$n_op= for (self: AStarshipMethid, Token) */ +void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val = var_node; /* _n_cbra on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ABraMethid#visit_all for (self: ABraMethid, Visitor) */ -void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AStarshipMethid$visit_all for (self: AStarshipMethid, Visitor) */ +void nitc__parser_prod___AStarshipMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TObra */; -val* var1 /* : TCbra */; +val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val; /* _n_obra on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2132); -fatal_exit(1); -} -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var1 = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val; /* _n_cbra on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2133); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1975); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AAssignMethid#init_aassignmethid for (self: AAssignMethid, nullable TId, nullable TAssign) */ -void nitc__parser_prod___AAssignMethid___init_aassignmethid(val* self, val* p0, val* p1) { -val* var_n_id /* var n_id: nullable TId */; -val* var_n_assign /* var n_assign: nullable TAssign */; +/* method parser_prod$APipeMethid$init_apipemethid for (self: APipeMethid, nullable TPipe) */ +void nitc__parser_prod___APipeMethid___init_apipemethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TPipe */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_id = p0; -var_n_assign = p1; -if (unlikely(var_n_id == NULL)) { +var_n_op = p0; +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2142); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1983); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2143); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1984); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } } -if (unlikely(var_n_assign == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2144); -fatal_exit(1); +RET_LABEL:; } -self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val = var_n_assign; /* _n_assign on */ -if (var_n_assign == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2145); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on */ -if (unlikely(var_n_assign == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL3:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#AAssignMethid#replace_child for (self: AAssignMethid, ANode, nullable ANode) */ -void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$APipeMethid$replace_child for (self: APipeMethid, ANode, nullable ANode) */ +void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TId */; +val* var /* : Token */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; @@ -3980,27 +4141,22 @@ short int var6 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : TAssign */; -short int var8 /* : Bool */; -short int var10 /* : Bool */; -short int var12 /* : Bool */; -short int var13 /* : Bool */; -int cltype14; -int idtype15; -const char* var_class_name16; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val; /* _n_id on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2150); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1989); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -4013,9 +4169,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TId */ -cltype = type_nitc__TId.color; -idtype = type_nitc__TId.id; +/* isa TPipe */ +cltype = type_nitc__TPipe.color; +idtype = type_nitc__TPipe.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -4027,200 +4183,96 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2151); -fatal_exit(1); -} -{ -nitc__parser_prod___AAssignMethid___n_id_61d(self, var_new_child); /* Direct call parser_prod#AAssignMethid#n_id= on */ -} -goto RET_LABEL; -} else { -} -var7 = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val; /* _n_assign on */ -if (unlikely(var7 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2154); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var7,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var12 = var7 == var_other; -var10 = var12; -goto RET_LABEL11; -RET_LABEL11:(void)0; -} -} -var8 = var10; -goto RET_LABEL9; -RET_LABEL9:(void)0; -} -} -if (var8){ -/* isa TAssign */ -cltype14 = type_nitc__TAssign.color; -idtype15 = type_nitc__TAssign.id; -if(var_new_child == NULL) { -var13 = 0; -} else { -if(cltype14 >= var_new_child->type->table_size) { -var13 = 0; -} else { -var13 = var_new_child->type->type_table[cltype14] == idtype15; -} -} -if (unlikely(!var13)) { -var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2155); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPipe", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 1990); fatal_exit(1); } { -nitc__parser_prod___AAssignMethid___n_assign_61d(self, var_new_child); /* Direct call parser_prod#AAssignMethid#n_assign= on */ +nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$APipeMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AAssignMethid#n_id= for (self: AAssignMethid, TId) */ -void nitc__parser_prod___AAssignMethid___n_id_61d(val* self, val* p0) { -val* var_node /* var node: TId */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val = var_node; /* _n_id on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#AAssignMethid#n_assign= for (self: AAssignMethid, TAssign) */ -void nitc__parser_prod___AAssignMethid___n_assign_61d(val* self, val* p0) { -val* var_node /* var node: TAssign */; +/* method parser_prod$APipeMethid$n_op= for (self: APipeMethid, Token) */ +void nitc__parser_prod___APipeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val = var_node; /* _n_assign on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AAssignMethid#visit_all for (self: AAssignMethid, Visitor) */ -void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$APipeMethid$visit_all for (self: APipeMethid, Visitor) */ +void nitc__parser_prod___APipeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TId */; -val* var1 /* : TAssign */; +val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val; /* _n_id on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2174); -fatal_exit(1); -} -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var1 = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val; /* _n_assign on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2175); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2004); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ABraassignMethid#init_abraassignmethid for (self: ABraassignMethid, nullable TObra, nullable TCbra, nullable TAssign) */ -void nitc__parser_prod___ABraassignMethid___init_abraassignmethid(val* self, val* p0, val* p1, val* p2) { -val* var_n_obra /* var n_obra: nullable TObra */; -val* var_n_cbra /* var n_cbra: nullable TCbra */; -val* var_n_assign /* var n_assign: nullable TAssign */; +/* method parser_prod$ACaretMethid$init_acaretmethid for (self: ACaretMethid, nullable TCaret) */ +void nitc__parser_prod___ACaretMethid___init_acaretmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TCaret */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_obra = p0; -var_n_cbra = p1; -var_n_assign = p2; -if (unlikely(var_n_obra == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2185); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val = var_n_obra; /* _n_obra on */ -if (var_n_obra == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2186); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on */ -if (unlikely(var_n_obra == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} +var_n_op = p0; +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(var_n_cbra == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2187); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val = var_n_cbra; /* _n_cbra on */ -if (var_n_cbra == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2188); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on */ -if (unlikely(var_n_cbra == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2012); fatal_exit(1); } -var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL3:(void)0; -} -} -if (unlikely(var_n_assign == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2189); -fatal_exit(1); +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val = var_n_assign; /* _n_assign on */ -if (var_n_assign == NULL) { PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2190); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2013); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on */ -if (unlikely(var_n_assign == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL4:(void)0; +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#ABraassignMethid#replace_child for (self: ABraassignMethid, ANode, nullable ANode) */ -void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ACaretMethid$replace_child for (self: ACaretMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TObra */; +val* var /* : Token */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; @@ -4229,35 +4281,22 @@ short int var6 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : TCbra */; -short int var8 /* : Bool */; -short int var10 /* : Bool */; -short int var12 /* : Bool */; -short int var13 /* : Bool */; -int cltype14; -int idtype15; -const char* var_class_name16; -val* var17 /* : TAssign */; -short int var18 /* : Bool */; -short int var20 /* : Bool */; -short int var22 /* : Bool */; -short int var23 /* : Bool */; -int cltype24; -int idtype25; -const char* var_class_name26; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val; /* _n_obra on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2195); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2018); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -4270,9 +4309,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TObra */ -cltype = type_nitc__TObra.color; -idtype = type_nitc__TObra.id; +/* isa TCaret */ +cltype = type_nitc__TCaret.color; +idtype = type_nitc__TCaret.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -4284,1322 +4323,952 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2196); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCaret", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2019); fatal_exit(1); } { -nitc__parser_prod___ABraassignMethid___n_obra_61d(self, var_new_child); /* Direct call parser_prod#ABraassignMethid#n_obra= on */ +nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ACaretMethid$n_op= on */ } goto RET_LABEL; } else { } -var7 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val; /* _n_cbra on */ -if (unlikely(var7 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2199); -fatal_exit(1); +RET_LABEL:; } +/* method parser_prod$ACaretMethid$n_op= for (self: ACaretMethid, Token) */ +void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +val* var_node /* var node: Token */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline kernel#Object#== (var7,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var12 = var7 == var_other; -var10 = var12; -goto RET_LABEL11; -RET_LABEL11:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } } -var8 = var10; -goto RET_LABEL9; -RET_LABEL9:(void)0; +RET_LABEL:; } +/* method parser_prod$ACaretMethid$visit_all for (self: ACaretMethid, Visitor) */ +void nitc__parser_prod___ACaretMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : Token */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (var8){ -/* isa TCbra */ -cltype14 = type_nitc__TCbra.color; -idtype15 = type_nitc__TCbra.id; -if(var_new_child == NULL) { -var13 = 0; -} else { -if(cltype14 >= var_new_child->type->table_size) { -var13 = 0; -} else { -var13 = var_new_child->type->type_table[cltype14] == idtype15; +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2033); +fatal_exit(1); } +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (unlikely(!var13)) { -var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2200); -fatal_exit(1); +RET_LABEL:; } +/* method parser_prod$AAmpMethid$init_aampmethid for (self: AAmpMethid, nullable TAmp) */ +void nitc__parser_prod___AAmpMethid___init_aampmethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TAmp */; { -nitc__parser_prod___ABraassignMethid___n_cbra_61d(self, var_new_child); /* Direct call parser_prod#ABraassignMethid#n_cbra= on */ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; } -goto RET_LABEL; +} +var_n_op = p0; +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2041); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2042); +fatal_exit(1); } else { +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var17 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val; /* _n_assign on */ -if (unlikely(var17 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2203); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod$AAmpMethid$replace_child for (self: AAmpMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : Token */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2047); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var17,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var17,var_other) on */ -var22 = var17 == var_other; -var20 = var22; -goto RET_LABEL21; -RET_LABEL21:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } } -var18 = var20; -goto RET_LABEL19; -RET_LABEL19:(void)0; +var1 = var3; +goto RET_LABEL2; +RET_LABEL2:(void)0; } } -if (var18){ -/* isa TAssign */ -cltype24 = type_nitc__TAssign.color; -idtype25 = type_nitc__TAssign.id; +if (var1){ +/* isa TAmp */ +cltype = type_nitc__TAmp.color; +idtype = type_nitc__TAmp.id; if(var_new_child == NULL) { -var23 = 0; +var6 = 0; } else { -if(cltype24 >= var_new_child->type->table_size) { -var23 = 0; +if(cltype >= var_new_child->type->table_size) { +var6 = 0; } else { -var23 = var_new_child->type->type_table[cltype24] == idtype25; +var6 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var23)) { -var_class_name26 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2204); +if (unlikely(!var6)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAmp", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2048); fatal_exit(1); } { -nitc__parser_prod___ABraassignMethid___n_assign_61d(self, var_new_child); /* Direct call parser_prod#ABraassignMethid#n_assign= on */ +nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$AAmpMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ABraassignMethid#n_obra= for (self: ABraassignMethid, TObra) */ -void nitc__parser_prod___ABraassignMethid___n_obra_61d(val* self, val* p0) { -val* var_node /* var node: TObra */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val = var_node; /* _n_obra on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#ABraassignMethid#n_cbra= for (self: ABraassignMethid, TCbra) */ -void nitc__parser_prod___ABraassignMethid___n_cbra_61d(val* self, val* p0) { -val* var_node /* var node: TCbra */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val = var_node; /* _n_cbra on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#ABraassignMethid#n_assign= for (self: ABraassignMethid, TAssign) */ -void nitc__parser_prod___ABraassignMethid___n_assign_61d(val* self, val* p0) { -val* var_node /* var node: TAssign */; +/* method parser_prod$AAmpMethid$n_op= for (self: AAmpMethid, Token) */ +void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val = var_node; /* _n_assign on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ABraassignMethid#visit_all for (self: ABraassignMethid, Visitor) */ -void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AAmpMethid$visit_all for (self: AAmpMethid, Visitor) */ +void nitc__parser_prod___AAmpMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TObra */; -val* var1 /* : TCbra */; -val* var2 /* : TAssign */; +val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val; /* _n_obra on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2228); -fatal_exit(1); -} -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var1 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val; /* _n_cbra on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2229); -fatal_exit(1); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var2 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val; /* _n_assign on */ -if (unlikely(var2 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2230); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2062); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AQid#init_aqid for (self: AQid, nullable AQualified, nullable TId) */ -void nitc__parser_prod___AQid___init_aqid(val* self, val* p0, val* p1) { -val* var_n_qualified /* var n_qualified: nullable AQualified */; -val* var_n_id /* var n_id: nullable TId */; -short int var /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; +/* method parser_prod$ATildeMethid$init_atildemethid for (self: ATildeMethid, nullable TTilde) */ +void nitc__parser_prod___ATildeMethid___init_atildemethid(val* self, val* p0) { +val* var_n_op /* var n_op: nullable TTilde */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_qualified = p0; -var_n_id = p1; -self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val = var_n_qualified; /* _n_qualified on */ -if (var_n_qualified == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var4 = ((short int(*)(val* self, val* p0))(var_n_qualified->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_qualified, var_other); /* == on */ -} -var5 = !var4; -var2 = var5; -goto RET_LABEL3; -RET_LABEL3:(void)0; -} -var = var2; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on */ -var_n_qualified->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL6:(void)0; -} -} -} else { +var_n_op = p0; +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(var_n_id == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2241); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2070); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_n_op; /* _n_op on */ +if (var_n_op == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2242); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2071); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_op,self) on */ +if (unlikely(var_n_op == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; +var_n_op->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } } RET_LABEL:; } -/* method parser_prod#AQid#replace_child for (self: AQid, ANode, nullable ANode) */ -void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ATildeMethid$replace_child for (self: ATildeMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable AQualified */; +val* var /* : Token */; short int var1 /* : Bool */; -short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; short int var6 /* : Bool */; -short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : TId */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; -int cltype15; -int idtype16; -const char* var_class_name17; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val; /* _n_qualified on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2076); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var6 = var == var_other; -var4 = var6; -goto RET_LABEL5; -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } } -var2 = var4; -goto RET_LABEL3; -RET_LABEL3:(void)0; +var1 = var3; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var1 = var2; } if (var1){ -/* isa nullable AQualified */ -cltype = type_nullable__nitc__AQualified.color; -idtype = type_nullable__nitc__AQualified.id; +/* isa TTilde */ +cltype = type_nitc__TTilde.color; +idtype = type_nitc__TTilde.id; if(var_new_child == NULL) { -var7 = 1; +var6 = 0; } else { if(cltype >= var_new_child->type->table_size) { -var7 = 0; +var6 = 0; } else { -var7 = var_new_child->type->type_table[cltype] == idtype; +var6 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var7)) { +if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2248); -fatal_exit(1); -} -{ -nitc__parser_prod___AQid___n_qualified_61d(self, var_new_child); /* Direct call parser_prod#AQid#n_qualified= on */ -} -goto RET_LABEL; -} else { -} -var8 = self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val; /* _n_id on */ -if (unlikely(var8 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2251); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var8,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ -var13 = var8 == var_other; -var11 = var13; -goto RET_LABEL12; -RET_LABEL12:(void)0; -} -} -var9 = var11; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -} -if (var9){ -/* isa TId */ -cltype15 = type_nitc__TId.color; -idtype16 = type_nitc__TId.id; -if(var_new_child == NULL) { -var14 = 0; -} else { -if(cltype15 >= var_new_child->type->table_size) { -var14 = 0; -} else { -var14 = var_new_child->type->type_table[cltype15] == idtype16; -} -} -if (unlikely(!var14)) { -var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2252); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TTilde", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2077); fatal_exit(1); } { -nitc__parser_prod___AQid___n_id_61d(self, var_new_child); /* Direct call parser_prod#AQid#n_id= on */ +nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(self, var_new_child); /* Direct call parser_prod$ATildeMethid$n_op= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AQid#n_qualified= for (self: AQid, nullable AQualified) */ -void nitc__parser_prod___AQid___n_qualified_61d(val* self, val* p0) { -val* var_node /* var node: nullable AQualified */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val = var_node; /* _n_qualified on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#AQid#n_id= for (self: AQid, TId) */ -void nitc__parser_prod___AQid___n_id_61d(val* self, val* p0) { -val* var_node /* var node: TId */; +/* method parser_prod$ATildeMethid$n_op= for (self: ATildeMethid, Token) */ +void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__AOperatorMethid__n_op_61d(val* self, val* p0) { +val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val = var_node; /* _n_id on */ +self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val = var_node; /* _n_op on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AQid#visit_all for (self: AQid, Visitor) */ -void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ATildeMethid$visit_all for (self: ATildeMethid, Visitor) */ +void nitc__parser_prod___ATildeMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : nullable AQualified */; -val* var1 /* : TId */; +val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val; /* _n_qualified on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +var = self->attrs[COLOR_nitc__parser_nodes__AOperatorMethid___n_op].val; /* _n_op on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var1 = self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val; /* _n_id on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2272); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_op"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2091); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AQclassid#init_aqclassid for (self: AQclassid, nullable AQualified, nullable TClassid) */ -void nitc__parser_prod___AQclassid___init_aqclassid(val* self, val* p0, val* p1) { -val* var_n_qualified /* var n_qualified: nullable AQualified */; -val* var_n_id /* var n_id: nullable TClassid */; -short int var /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; +/* method parser_prod$ABraMethid$init_abramethid for (self: ABraMethid, nullable TObra, nullable TCbra) */ +void nitc__parser_prod___ABraMethid___init_abramethid(val* self, val* p0, val* p1) { +val* var_n_obra /* var n_obra: nullable TObra */; +val* var_n_cbra /* var n_cbra: nullable TCbra */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_qualified = p0; -var_n_id = p1; -self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val = var_n_qualified; /* _n_qualified on */ -if (var_n_qualified == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +var_n_obra = p0; +var_n_cbra = p1; +if (unlikely(var_n_obra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_n_qualified,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var4 = ((short int(*)(val* self, val* p0))(var_n_qualified->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_qualified, var_other); /* == on */ +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2100); +fatal_exit(1); } -var5 = !var4; -var2 = var5; -goto RET_LABEL3; -RET_LABEL3:(void)0; +self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val = var_n_obra; /* _n_obra on */ +if (var_n_obra == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var = var2; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2101); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_n_obra,self) on */ +if (unlikely(var_n_obra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_qualified,self) on */ -var_n_qualified->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL6:(void)0; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } } -} else { +if (unlikely(var_n_cbra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(var_n_id == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2283); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2102); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val = var_n_cbra; /* _n_cbra on */ +if (var_n_cbra == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2284); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2103); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_cbra,self) on */ +if (unlikely(var_n_cbra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; +var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; } } RET_LABEL:; } -/* method parser_prod#AQclassid#replace_child for (self: AQclassid, ANode, nullable ANode) */ -void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ABraMethid$replace_child for (self: ABraMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable AQualified */; +val* var /* : TObra */; short int var1 /* : Bool */; -short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; short int var6 /* : Bool */; -short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : TClassid */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; +val* var7 /* : TCbra */; +short int var8 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; short int var13 /* : Bool */; -short int var14 /* : Bool */; -int cltype15; -int idtype16; -const char* var_class_name17; +int cltype14; +int idtype15; +const char* var_class_name16; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val; /* _n_qualified on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val; /* _n_obra on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2108); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var6 = var == var_other; -var4 = var6; -goto RET_LABEL5; -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } } -var2 = var4; -goto RET_LABEL3; -RET_LABEL3:(void)0; +var1 = var3; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var1 = var2; } if (var1){ -/* isa nullable AQualified */ -cltype = type_nullable__nitc__AQualified.color; -idtype = type_nullable__nitc__AQualified.id; +/* isa TObra */ +cltype = type_nitc__TObra.color; +idtype = type_nitc__TObra.id; if(var_new_child == NULL) { -var7 = 1; +var6 = 0; } else { if(cltype >= var_new_child->type->table_size) { -var7 = 0; +var6 = 0; } else { -var7 = var_new_child->type->type_table[cltype] == idtype; +var6 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var7)) { +if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2290); -fatal_exit(1); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2109); +fatal_exit(1); } { -nitc__parser_prod___AQclassid___n_qualified_61d(self, var_new_child); /* Direct call parser_prod#AQclassid#n_qualified= on */ +nitc__parser_prod___ABraMethid___n_obra_61d(self, var_new_child); /* Direct call parser_prod$ABraMethid$n_obra= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val; /* _n_id on */ -if (unlikely(var8 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2293); +var7 = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val; /* _n_cbra on */ +if (unlikely(var7 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2112); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +{ /* Inline kernel$Object$== (var7,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ -var13 = var8 == var_other; -var11 = var13; -goto RET_LABEL12; -RET_LABEL12:(void)0; +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ +var12 = var7 == var_other; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } } -var9 = var11; -goto RET_LABEL10; -RET_LABEL10:(void)0; +var8 = var10; +goto RET_LABEL9; +RET_LABEL9:(void)0; } } -if (var9){ -/* isa TClassid */ -cltype15 = type_nitc__TClassid.color; -idtype16 = type_nitc__TClassid.id; +if (var8){ +/* isa TCbra */ +cltype14 = type_nitc__TCbra.color; +idtype15 = type_nitc__TCbra.id; if(var_new_child == NULL) { -var14 = 0; +var13 = 0; } else { -if(cltype15 >= var_new_child->type->table_size) { -var14 = 0; +if(cltype14 >= var_new_child->type->table_size) { +var13 = 0; } else { -var14 = var_new_child->type->type_table[cltype15] == idtype16; +var13 = var_new_child->type->type_table[cltype14] == idtype15; } } -if (unlikely(!var14)) { -var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2294); +if (unlikely(!var13)) { +var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2113); fatal_exit(1); } { -nitc__parser_prod___AQclassid___n_id_61d(self, var_new_child); /* Direct call parser_prod#AQclassid#n_id= on */ +nitc__parser_prod___ABraMethid___n_cbra_61d(self, var_new_child); /* Direct call parser_prod$ABraMethid$n_cbra= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AQclassid#n_qualified= for (self: AQclassid, nullable AQualified) */ -void nitc__parser_prod___AQclassid___n_qualified_61d(val* self, val* p0) { -val* var_node /* var node: nullable AQualified */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; +/* method parser_prod$ABraMethid$n_obra= for (self: ABraMethid, TObra) */ +void nitc__parser_prod___ABraMethid___n_obra_61d(val* self, val* p0) { +val* var_node /* var node: TObra */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val = var_node; /* _n_qualified on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; -} -if (var){ +self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val = var_node; /* _n_obra on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -} else { } RET_LABEL:; } -/* method parser_prod#AQclassid#n_id= for (self: AQclassid, TClassid) */ -void nitc__parser_prod___AQclassid___n_id_61d(val* self, val* p0) { -val* var_node /* var node: TClassid */; +/* method parser_prod$ABraMethid$n_cbra= for (self: ABraMethid, TCbra) */ +void nitc__parser_prod___ABraMethid___n_cbra_61d(val* self, val* p0) { +val* var_node /* var node: TCbra */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val = var_node; /* _n_id on */ +self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val = var_node; /* _n_cbra on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AQclassid#visit_all for (self: AQclassid, Visitor) */ -void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ABraMethid$visit_all for (self: ABraMethid, Visitor) */ +void nitc__parser_prod___ABraMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : nullable AQualified */; -val* var1 /* : TClassid */; +val* var /* : TObra */; +val* var1 /* : TCbra */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val; /* _n_qualified on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +var = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_obra].val; /* _n_obra on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var1 = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val; /* _n_id on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2314); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2132); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; -} -/* method parser_prod#ASignature#init_asignature for (self: ASignature, nullable TOpar, Collection[Object], nullable TCpar, nullable AType) */ -void nitc__parser_prod___ASignature___init_asignature(val* self, val* p0, val* p1, val* p2, val* p3) { -val* var_n_opar /* var n_opar: nullable TOpar */; -val* var_n_params /* var n_params: Collection[Object] */; -val* var_n_cpar /* var n_cpar: nullable TCpar */; -val* var_n_type /* var n_type: nullable AType */; -short int var /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; -val* var7 /* : ANodes[AParam] */; -val* var9 /* : ANodes[AParam] */; -short int var10 /* : Bool */; -short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; -short int var16 /* : Bool */; -short int var17 /* : Bool */; -short int var19 /* : Bool */; -short int var20 /* : Bool */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var1 = self->attrs[COLOR_nitc__parser_nodes__ABraMethid___n_cbra].val; /* _n_cbra on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var_n_opar = p0; -var_n_params = p1; -var_n_cpar = p2; -var_n_type = p3; -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val = var_n_opar; /* _n_opar on */ -if (var_n_opar == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2133); +fatal_exit(1); } -if (0) { -{ /* Inline kernel#Object#!= (var_n_opar,((val*)NULL)) on */ -var_other = ((val*)NULL); { -var4 = ((short int(*)(val* self, val* p0))(var_n_opar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_opar, var_other); /* == on */ -} -var5 = !var4; -var2 = var5; -goto RET_LABEL3; -RET_LABEL3:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var = var2; +RET_LABEL:; } -if (var){ +/* method parser_prod$AAssignMethid$init_aassignmethid for (self: AAssignMethid, nullable TId, nullable TAssign) */ +void nitc__parser_prod___AAssignMethid___init_aassignmethid(val* self, val* p0, val* p1) { +val* var_n_id /* var n_id: nullable TId */; +val* var_n_assign /* var n_assign: nullable TAssign */; { -{ /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on */ -var_n_opar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL6:(void)0; +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; } } -} else { +var_n_id = p0; +var_n_assign = p1; +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -{ -{ /* Inline parser_nodes#ASignature#n_params (self) on */ -var9 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ -if (unlikely(var9 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1679); +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2142); fatal_exit(1); } -var7 = var9; -RET_LABEL8:(void)0; -} -} -{ -nitc___nitc__ANodes___unsafe_add_all(var7, var_n_params); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val = var_n_cpar; /* _n_cpar on */ -if (var_n_cpar == NULL) { -var10 = 0; /* is null */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2143); +fatal_exit(1); } else { -var10 = 1; /* arg is null and recv is not */ +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_n_cpar,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var13 = ((short int(*)(val* self, val* p0))(var_n_cpar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cpar, var_other); /* == on */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } -var14 = !var13; -var11 = var14; -goto RET_LABEL12; -RET_LABEL12:(void)0; +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } -var10 = var11; } -if (var10){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on */ -var_n_cpar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL15:(void)0; +if (unlikely(var_n_assign == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2144); +fatal_exit(1); } -} else { +self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val = var_n_assign; /* _n_assign on */ +if (var_n_assign == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val = var_n_type; /* _n_type on */ -if (var_n_type == NULL) { -var16 = 0; /* is null */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2145); +fatal_exit(1); } else { -var16 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var19 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ -} -var20 = !var19; -var17 = var20; -goto RET_LABEL18; -RET_LABEL18:(void)0; -} -var16 = var17; +{ /* Inline parser_nodes$ANode$parent= (var_n_assign,self) on */ +if (unlikely(var_n_assign == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (var16){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ -var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL21:(void)0; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } +var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; } -} else { } RET_LABEL:; } -/* method parser_prod#ASignature#replace_child for (self: ASignature, ANode, nullable ANode) */ -void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AAssignMethid$replace_child for (self: AAssignMethid, ANode, nullable ANode) */ +void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable TOpar */; +val* var /* : TId */; short int var1 /* : Bool */; -short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; short int var6 /* : Bool */; -short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : ANodes[AParam] */; -val* var10 /* : ANodes[AParam] */; -short int var11 /* : Bool */; -val* var12 /* : nullable TCpar */; +val* var7 /* : TAssign */; +short int var8 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; short int var13 /* : Bool */; -short int var14 /* : Bool */; -short int var16 /* : Bool */; -short int var18 /* : Bool */; -short int var19 /* : Bool */; -int cltype20; -int idtype21; -const char* var_class_name22; -val* var23 /* : nullable AType */; -short int var24 /* : Bool */; -short int var25 /* : Bool */; -short int var27 /* : Bool */; -short int var29 /* : Bool */; -short int var30 /* : Bool */; -int cltype31; -int idtype32; -const char* var_class_name33; +int cltype14; +int idtype15; +const char* var_class_name16; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val; /* _n_opar on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2150); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var6 = var == var_other; -var4 = var6; -goto RET_LABEL5; -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } } -var2 = var4; -goto RET_LABEL3; -RET_LABEL3:(void)0; +var1 = var3; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var1 = var2; } if (var1){ -/* isa nullable TOpar */ -cltype = type_nullable__nitc__TOpar.color; -idtype = type_nullable__nitc__TOpar.id; +/* isa TId */ +cltype = type_nitc__TId.color; +idtype = type_nitc__TId.id; if(var_new_child == NULL) { -var7 = 1; +var6 = 0; } else { if(cltype >= var_new_child->type->table_size) { -var7 = 0; +var6 = 0; } else { -var7 = var_new_child->type->type_table[cltype] == idtype; +var6 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var7)) { +if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2337); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2151); fatal_exit(1); } { -nitc__parser_prod___ASignature___n_opar_61d(self, var_new_child); /* Direct call parser_prod#ASignature#n_opar= on */ +nitc__parser_prod___AAssignMethid___n_id_61d(self, var_new_child); /* Direct call parser_prod$AAssignMethid$n_id= on */ } goto RET_LABEL; } else { } -{ -{ /* Inline parser_nodes#ASignature#n_params (self) on */ -var10 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ -if (unlikely(var10 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1679); -fatal_exit(1); -} -var8 = var10; -RET_LABEL9:(void)0; +var7 = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val; /* _n_assign on */ +if (unlikely(var7 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2154); +fatal_exit(1); } { -var11 = nitc___nitc__ANodes___replace_child(var8, var_old_child, var_new_child); -} -if (var11){ -goto RET_LABEL; -} else { -} -var12 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val; /* _n_cpar on */ -if (var12 == NULL) { -var13 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var12,var_old_child) on */ +{ /* Inline kernel$Object$== (var7,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var12,var_other) on */ -var18 = var12 == var_other; -var16 = var18; -goto RET_LABEL17; -RET_LABEL17:(void)0; +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ +var12 = var7 == var_other; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } } -var14 = var16; -goto RET_LABEL15; -RET_LABEL15:(void)0; +var8 = var10; +goto RET_LABEL9; +RET_LABEL9:(void)0; } -var13 = var14; } -if (var13){ -/* isa nullable TCpar */ -cltype20 = type_nullable__nitc__TCpar.color; -idtype21 = type_nullable__nitc__TCpar.id; +if (var8){ +/* isa TAssign */ +cltype14 = type_nitc__TAssign.color; +idtype15 = type_nitc__TAssign.id; if(var_new_child == NULL) { -var19 = 1; +var13 = 0; } else { -if(cltype20 >= var_new_child->type->table_size) { -var19 = 0; +if(cltype14 >= var_new_child->type->table_size) { +var13 = 0; } else { -var19 = var_new_child->type->type_table[cltype20] == idtype21; +var13 = var_new_child->type->type_table[cltype14] == idtype15; } } -if (unlikely(!var19)) { -var_class_name22 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name22); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2342); +if (unlikely(!var13)) { +var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name16); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2155); fatal_exit(1); } { -nitc__parser_prod___ASignature___n_cpar_61d(self, var_new_child); /* Direct call parser_prod#ASignature#n_cpar= on */ +nitc__parser_prod___AAssignMethid___n_assign_61d(self, var_new_child); /* Direct call parser_prod$AAssignMethid$n_assign= on */ } goto RET_LABEL; } else { } -var23 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val; /* _n_type on */ -if (var23 == NULL) { -var24 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var23,var_old_child) on */ -var_other = var_old_child; +RET_LABEL:; +} +/* method parser_prod$AAssignMethid$n_id= for (self: AAssignMethid, TId) */ +void nitc__parser_prod___AAssignMethid___n_id_61d(val* self, val* p0) { +val* var_node /* var node: TId */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val = var_node; /* _n_id on */ { -{ /* Inline kernel#Object#is_same_instance (var23,var_other) on */ -var29 = var23 == var_other; -var27 = var29; -goto RET_LABEL28; -RET_LABEL28:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } } -var25 = var27; -goto RET_LABEL26; -RET_LABEL26:(void)0; +RET_LABEL:; } -var24 = var25; +/* method parser_prod$AAssignMethid$n_assign= for (self: AAssignMethid, TAssign) */ +void nitc__parser_prod___AAssignMethid___n_assign_61d(val* self, val* p0) { +val* var_node /* var node: TAssign */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val = var_node; /* _n_assign on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -if (var24){ -/* isa nullable AType */ -cltype31 = type_nullable__nitc__AType.color; -idtype32 = type_nullable__nitc__AType.id; -if(var_new_child == NULL) { -var30 = 1; -} else { -if(cltype31 >= var_new_child->type->table_size) { -var30 = 0; -} else { -var30 = var_new_child->type->type_table[cltype31] == idtype32; } +RET_LABEL:; } -if (unlikely(!var30)) { -var_class_name33 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name33); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2346); +/* method parser_prod$AAssignMethid$visit_all for (self: AAssignMethid, Visitor) */ +void nitc__parser_prod___AAssignMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TId */; +val* var1 /* : TAssign */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2174); fatal_exit(1); } { -nitc__parser_prod___ASignature___n_type_61d(self, var_new_child); /* Direct call parser_prod#ASignature#n_type= on */ -} -goto RET_LABEL; -} else { +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -RET_LABEL:; +var1 = self->attrs[COLOR_nitc__parser_nodes__AAssignMethid___n_assign].val; /* _n_assign on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -/* method parser_prod#ASignature#n_opar= for (self: ASignature, nullable TOpar) */ -void nitc__parser_prod___ASignature___n_opar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TOpar */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val = var_node; /* _n_opar on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2175); +fatal_exit(1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var = var1; +RET_LABEL:; } -if (var){ +/* method parser_prod$ABraassignMethid$init_abraassignmethid for (self: ABraassignMethid, nullable TObra, nullable TCbra, nullable TAssign) */ +void nitc__parser_prod___ABraassignMethid___init_abraassignmethid(val* self, val* p0, val* p1, val* p2) { +val* var_n_obra /* var n_obra: nullable TObra */; +val* var_n_cbra /* var n_cbra: nullable TCbra */; +val* var_n_assign /* var n_assign: nullable TAssign */; { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; } } -} else { +var_n_obra = p0; +var_n_cbra = p1; +var_n_assign = p2; +if (unlikely(var_n_obra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -RET_LABEL:; +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2185); +fatal_exit(1); } -/* method parser_prod#ASignature#n_cpar= for (self: ASignature, nullable TCpar) */ -void nitc__parser_prod___ASignature___n_cpar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TCpar */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val = var_node; /* _n_cpar on */ -if (var_node == NULL) { -var = 0; /* is null */ +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val = var_n_obra; /* _n_obra on */ +if (var_n_obra == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2186); +fatal_exit(1); } else { -var = 1; /* arg is null and recv is not */ +{ /* Inline parser_nodes$ANode$parent= (var_n_obra,self) on */ +if (unlikely(var_n_obra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; +var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL2:(void)0; } -var = var1; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#ASignature#n_type= for (self: ASignature, nullable AType) */ -void nitc__parser_prod___ASignature___n_type_61d(val* self, val* p0) { -val* var_node /* var node: nullable AType */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val = var_node; /* _n_type on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; } -var = var1; +if (unlikely(var_n_cbra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2187); +fatal_exit(1); } +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val = var_n_cbra; /* _n_cbra on */ +if (var_n_cbra == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2188); +fatal_exit(1); } else { +{ /* Inline parser_nodes$ANode$parent= (var_n_cbra,self) on */ +if (unlikely(var_n_cbra == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -RET_LABEL:; -} -/* method parser_prod#ASignature#visit_all for (self: ASignature, Visitor) */ -void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable TOpar */; -val* var1 /* : ANodes[AParam] */; -val* var3 /* : ANodes[AParam] */; -val* var4 /* : nullable TCpar */; -val* var5 /* : nullable AType */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val; /* _n_opar on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -{ -{ /* Inline parser_nodes#ASignature#n_params (self) on */ -var3 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ -if (unlikely(var3 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1679); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var1 = var3; -RET_LABEL2:(void)0; -} -} -{ -nitc___nitc__ANodes___visit_all(var1, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ -} -var4 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val; /* _n_cpar on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var5 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val; /* _n_type on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; +var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; } -/* method parser_prod#AParam#init_aparam for (self: AParam, nullable TId, nullable AType, nullable TDotdotdot, nullable AAnnotations) */ -void nitc__parser_prod___AParam___init_aparam(val* self, val* p0, val* p1, val* p2, val* p3) { -val* var_n_id /* var n_id: nullable TId */; -val* var_n_type /* var n_type: nullable AType */; -val* var_n_dotdotdot /* var n_dotdotdot: nullable TDotdotdot */; -val* var_n_annotations /* var n_annotations: nullable AAnnotations */; -short int var /* : Bool */; -short int var3 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var12 /* : Bool */; -short int var14 /* : Bool */; -short int var15 /* : Bool */; -short int var17 /* : Bool */; -short int var18 /* : Bool */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; } +if (unlikely(var_n_assign == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var_n_id = p0; -var_n_type = p1; -var_n_dotdotdot = p2; -var_n_annotations = p3; -if (unlikely(var_n_id == NULL)) { PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2384); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2189); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val = var_n_assign; /* _n_assign on */ +if (var_n_assign == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2385); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2190); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_assign,self) on */ +if (unlikely(var_n_assign == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} -} -self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val = var_n_type; /* _n_type on */ -if (var_n_type == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var5 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ -} -var6 = !var5; -var3 = var6; -goto RET_LABEL4; +var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL4:(void)0; } -var = var3; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ -var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val = var_n_dotdotdot; /* _n_dotdotdot on */ -if (var_n_dotdotdot == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_dotdotdot,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var11 = ((short int(*)(val* self, val* p0))(var_n_dotdotdot->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_dotdotdot, var_other); /* == on */ -} -var12 = !var11; -var9 = var12; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -var8 = var9; -} -if (var8){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on */ -var_n_dotdotdot->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL13:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -if (var_n_annotations == NULL) { -var14 = 0; /* is null */ -} else { -var14 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var17 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ -} -var18 = !var17; -var15 = var18; -goto RET_LABEL16; -RET_LABEL16:(void)0; -} -var14 = var15; -} -if (var14){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ -var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL19:(void)0; -} -} -} else { } RET_LABEL:; } -/* method parser_prod#AParam#replace_child for (self: AParam, ANode, nullable ANode) */ -void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$ABraassignMethid$replace_child for (self: ABraassignMethid, ANode, nullable ANode) */ +void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TId */; +val* var /* : TObra */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; @@ -5608,46 +5277,38 @@ short int var6 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : nullable AType */; +val* var7 /* : TCbra */; short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; short int var13 /* : Bool */; -short int var14 /* : Bool */; -int cltype15; -int idtype16; -const char* var_class_name17; -val* var18 /* : nullable TDotdotdot */; -short int var19 /* : Bool */; +int cltype14; +int idtype15; +const char* var_class_name16; +val* var17 /* : TAssign */; +short int var18 /* : Bool */; short int var20 /* : Bool */; short int var22 /* : Bool */; -short int var24 /* : Bool */; -short int var25 /* : Bool */; -int cltype26; -int idtype27; -const char* var_class_name28; -val* var29 /* : nullable AAnnotations */; -short int var30 /* : Bool */; -short int var31 /* : Bool */; -short int var33 /* : Bool */; -short int var35 /* : Bool */; -short int var36 /* : Bool */; -int cltype37; -int idtype38; -const char* var_class_name39; +short int var23 /* : Bool */; +int cltype24; +int idtype25; +const char* var_class_name26; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val; /* _n_id on */ +var = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val; /* _n_obra on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2396); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2195); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -5660,9 +5321,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TId */ -cltype = type_nitc__TId.color; -idtype = type_nitc__TId.id; +/* isa TObra */ +cltype = type_nitc__TObra.color; +idtype = type_nitc__TObra.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -5674,264 +5335,419 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2397); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2196); fatal_exit(1); } { -nitc__parser_prod___AParam___n_id_61d(self, var_new_child); /* Direct call parser_prod#AParam#n_id= on */ +nitc__parser_prod___ABraassignMethid___n_obra_61d(self, var_new_child); /* Direct call parser_prod$ABraassignMethid$n_obra= on */ } goto RET_LABEL; } else { } -var7 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val; /* _n_type on */ -if (var7 == NULL) { -var8 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var7,var_old_child) on */ +var7 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val; /* _n_cbra on */ +if (unlikely(var7 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2199); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var7,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var13 = var7 == var_other; -var11 = var13; -goto RET_LABEL12; -RET_LABEL12:(void)0; +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ +var12 = var7 == var_other; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } } -var9 = var11; -goto RET_LABEL10; -RET_LABEL10:(void)0; +var8 = var10; +goto RET_LABEL9; +RET_LABEL9:(void)0; } -var8 = var9; } if (var8){ -/* isa nullable AType */ -cltype15 = type_nullable__nitc__AType.color; -idtype16 = type_nullable__nitc__AType.id; +/* isa TCbra */ +cltype14 = type_nitc__TCbra.color; +idtype15 = type_nitc__TCbra.id; if(var_new_child == NULL) { -var14 = 1; +var13 = 0; } else { -if(cltype15 >= var_new_child->type->table_size) { -var14 = 0; +if(cltype14 >= var_new_child->type->table_size) { +var13 = 0; } else { -var14 = var_new_child->type->type_table[cltype15] == idtype16; +var13 = var_new_child->type->type_table[cltype14] == idtype15; } } -if (unlikely(!var14)) { -var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2401); +if (unlikely(!var13)) { +var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name16); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2200); fatal_exit(1); } { -nitc__parser_prod___AParam___n_type_61d(self, var_new_child); /* Direct call parser_prod#AParam#n_type= on */ +nitc__parser_prod___ABraassignMethid___n_cbra_61d(self, var_new_child); /* Direct call parser_prod$ABraassignMethid$n_cbra= on */ } goto RET_LABEL; } else { } -var18 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val; /* _n_dotdotdot on */ -if (var18 == NULL) { -var19 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var18,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var18,var_other) on */ -var24 = var18 == var_other; -var22 = var24; -goto RET_LABEL23; -RET_LABEL23:(void)0; +var17 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val; /* _n_assign on */ +if (unlikely(var17 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2203); +fatal_exit(1); } +{ +{ /* Inline kernel$Object$== (var17,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var17,var_other) on */ +var22 = var17 == var_other; var20 = var22; goto RET_LABEL21; RET_LABEL21:(void)0; } -var19 = var20; } -if (var19){ -/* isa nullable TDotdotdot */ -cltype26 = type_nullable__nitc__TDotdotdot.color; -idtype27 = type_nullable__nitc__TDotdotdot.id; +var18 = var20; +goto RET_LABEL19; +RET_LABEL19:(void)0; +} +} +if (var18){ +/* isa TAssign */ +cltype24 = type_nitc__TAssign.color; +idtype25 = type_nitc__TAssign.id; if(var_new_child == NULL) { -var25 = 1; +var23 = 0; } else { -if(cltype26 >= var_new_child->type->table_size) { -var25 = 0; +if(cltype24 >= var_new_child->type->table_size) { +var23 = 0; } else { -var25 = var_new_child->type->type_table[cltype26] == idtype27; +var23 = var_new_child->type->type_table[cltype24] == idtype25; } } -if (unlikely(!var25)) { -var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDotdotdot", var_class_name28); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2405); +if (unlikely(!var23)) { +var_class_name26 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAssign", var_class_name26); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2204); fatal_exit(1); } { -nitc__parser_prod___AParam___n_dotdotdot_61d(self, var_new_child); /* Direct call parser_prod#AParam#n_dotdotdot= on */ +nitc__parser_prod___ABraassignMethid___n_assign_61d(self, var_new_child); /* Direct call parser_prod$ABraassignMethid$n_assign= on */ } goto RET_LABEL; } else { } -var29 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var29 == NULL) { -var30 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var29,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var29,var_other) on */ -var35 = var29 == var_other; -var33 = var35; -goto RET_LABEL34; -RET_LABEL34:(void)0; -} -} -var31 = var33; -goto RET_LABEL32; -RET_LABEL32:(void)0; -} -var30 = var31; +RET_LABEL:; } -if (var30){ -/* isa nullable AAnnotations */ -cltype37 = type_nullable__nitc__AAnnotations.color; -idtype38 = type_nullable__nitc__AAnnotations.id; -if(var_new_child == NULL) { -var36 = 1; -} else { -if(cltype37 >= var_new_child->type->table_size) { -var36 = 0; -} else { -var36 = var_new_child->type->type_table[cltype37] == idtype38; +/* method parser_prod$ABraassignMethid$n_obra= for (self: ABraassignMethid, TObra) */ +void nitc__parser_prod___ABraassignMethid___n_obra_61d(val* self, val* p0) { +val* var_node /* var node: TObra */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val = var_node; /* _n_obra on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } } -if (unlikely(!var36)) { -var_class_name39 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name39); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2409); -fatal_exit(1); +RET_LABEL:; } +/* method parser_prod$ABraassignMethid$n_cbra= for (self: ABraassignMethid, TCbra) */ +void nitc__parser_prod___ABraassignMethid___n_cbra_61d(val* self, val* p0) { +val* var_node /* var node: TCbra */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val = var_node; /* _n_cbra on */ { -nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AParam#n_annotations= on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -goto RET_LABEL; -} else { } RET_LABEL:; } -/* method parser_prod#AParam#n_id= for (self: AParam, TId) */ -void nitc__parser_prod___AParam___n_id_61d(val* self, val* p0) { -val* var_node /* var node: TId */; +/* method parser_prod$ABraassignMethid$n_assign= for (self: ABraassignMethid, TAssign) */ +void nitc__parser_prod___ABraassignMethid___n_assign_61d(val* self, val* p0) { +val* var_node /* var node: TAssign */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val = var_node; /* _n_id on */ +self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val = var_node; /* _n_assign on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AParam#n_type= for (self: AParam, nullable AType) */ -void nitc__parser_prod___AParam___n_type_61d(val* self, val* p0) { -val* var_node /* var node: nullable AType */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val = var_node; /* _n_type on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +/* method parser_prod$ABraassignMethid$visit_all for (self: ABraassignMethid, Visitor) */ +void nitc__parser_prod___ABraassignMethid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TObra */; +val* var1 /* : TCbra */; +val* var2 /* : TAssign */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_obra].val; /* _n_obra on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2228); +fatal_exit(1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var1 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_cbra].val; /* _n_cbra on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var = var1; +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2229); +fatal_exit(1); } -if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var2 = self->attrs[COLOR_nitc__parser_nodes__ABraassignMethid___n_assign].val; /* _n_assign on */ +if (unlikely(var2 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -} else { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_assign"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2230); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AParam#n_dotdotdot= for (self: AParam, nullable TDotdotdot) */ -void nitc__parser_prod___AParam___n_dotdotdot_61d(val* self, val* p0) { -val* var_node /* var node: nullable TDotdotdot */; +/* method parser_prod$AQid$init_aqid for (self: AQid, nullable AQualified, nullable TId) */ +void nitc__parser_prod___AQid___init_aqid(val* self, val* p0, val* p1) { +val* var_n_qualified /* var n_qualified: nullable AQualified */; +val* var_n_id /* var n_id: nullable TId */; short int var /* : Bool */; -short int var1 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val = var_node; /* _n_dotdotdot on */ -if (var_node == NULL) { +short int var5 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_qualified = p0; +var_n_id = p1; +self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val = var_n_qualified; /* _n_qualified on */ +if (var_n_qualified == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_qualified,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var4 = ((short int(*)(val* self, val* p0))(var_n_qualified->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_qualified, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var5 = !var4; +var2 = var5; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -var = var1; +var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_qualified,self) on */ +var_n_qualified->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL6:(void)0; } } } else { } -RET_LABEL:; +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -/* method parser_prod#AParam#n_annotations= for (self: AParam, nullable AAnnotations) */ -void nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2241); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2242); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod$AQid$replace_child for (self: AQid, ANode, nullable ANode) */ +void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable AQualified */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : TId */; +short int var9 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +int cltype15; +int idtype16; +const char* var_class_name17; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val; /* _n_qualified on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa nullable AQualified */ +cltype = type_nullable__nitc__AQualified.color; +idtype = type_nullable__nitc__AQualified.id; +if(var_new_child == NULL) { +var7 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2248); +fatal_exit(1); +} +{ +nitc__parser_prod___AQid___n_qualified_61d(self, var_new_child); /* Direct call parser_prod$AQid$n_qualified= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val; /* _n_id on */ +if (unlikely(var8 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2251); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var13 = var8 == var_other; +var11 = var13; +goto RET_LABEL12; +RET_LABEL12:(void)0; +} +} +var9 = var11; +goto RET_LABEL10; +RET_LABEL10:(void)0; +} +} +if (var9){ +/* isa TId */ +cltype15 = type_nitc__TId.color; +idtype16 = type_nitc__TId.id; +if(var_new_child == NULL) { +var14 = 0; +} else { +if(cltype15 >= var_new_child->type->table_size) { +var14 = 0; +} else { +var14 = var_new_child->type->type_table[cltype15] == idtype16; +} +} +if (unlikely(!var14)) { +var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2252); +fatal_exit(1); +} +{ +nitc__parser_prod___AQid___n_id_61d(self, var_new_child); /* Direct call parser_prod$AQid$n_id= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod$AQid$n_qualified= for (self: AQid, nullable AQualified) */ +void nitc__parser_prod___AQid___n_qualified_61d(val* self, val* p0) { +val* var_node /* var node: nullable AQualified */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val = var_node; /* _n_qualified on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -5942,8 +5758,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -5951,86 +5767,70 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AParam#visit_all for (self: AParam, Visitor) */ -void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AQid$n_id= for (self: AQid, TId) */ +void nitc__parser_prod___AQid___n_id_61d(val* self, val* p0) { +val* var_node /* var node: TId */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod$AQid$visit_all for (self: AQid, Visitor) */ +void nitc__parser_prod___AQid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TId */; -val* var1 /* : nullable AType */; -val* var2 /* : nullable TDotdotdot */; -val* var3 /* : nullable AAnnotations */; +val* var /* : nullable AQualified */; +val* var1 /* : TId */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val; /* _n_id on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2438); -fatal_exit(1); -} +var = self->attrs[COLOR_nitc__parser_nodes__AQid___n_qualified].val; /* _n_qualified on */ { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var1 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val; /* _n_type on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +var1 = self->attrs[COLOR_nitc__parser_nodes__AQid___n_id].val; /* _n_id on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var2 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val; /* _n_dotdotdot on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2272); +fatal_exit(1); } -var3 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AType#init_atype for (self: AType, nullable TKwnullable, nullable AQclassid, nullable TObra, Collection[Object], nullable TCbra, nullable AAnnotations) */ -void nitc__parser_prod___AType___init_atype(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { -val* var_n_kwnullable /* var n_kwnullable: nullable TKwnullable */; -val* var_n_qid /* var n_qid: nullable AQclassid */; -val* var_n_obra /* var n_obra: nullable TObra */; -val* var_n_types /* var n_types: Collection[Object] */; -val* var_n_cbra /* var n_cbra: nullable TCbra */; -val* var_n_annotations /* var n_annotations: nullable AAnnotations */; +/* method parser_prod$AQclassid$init_aqclassid for (self: AQclassid, nullable AQualified, nullable TClassid) */ +void nitc__parser_prod___AQclassid___init_aqclassid(val* self, val* p0, val* p1) { +val* var_n_qualified /* var n_qualified: nullable AQualified */; +val* var_n_id /* var n_id: nullable TClassid */; short int var /* : Bool */; short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; short int var5 /* : Bool */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var12 /* : Bool */; -val* var14 /* : ANodes[AType] */; -val* var16 /* : ANodes[AType] */; -short int var17 /* : Bool */; -short int var18 /* : Bool */; -short int var20 /* : Bool */; -short int var21 /* : Bool */; -short int var23 /* : Bool */; -short int var24 /* : Bool */; -short int var26 /* : Bool */; -short int var27 /* : Bool */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_kwnullable = p0; -var_n_qid = p1; -var_n_obra = p2; -var_n_types = p3; -var_n_cbra = p4; -var_n_annotations = p5; -self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val = var_n_kwnullable; /* _n_kwnullable on */ -if (var_n_kwnullable == NULL) { +var_n_qualified = p0; +var_n_id = p1; +self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val = var_n_qualified; /* _n_qualified on */ +if (var_n_qualified == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_kwnullable,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_qualified,((val*)NULL)) on */ var_other = ((val*)NULL); { -var4 = ((short int(*)(val* self, val* p0))(var_n_kwnullable->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwnullable, var_other); /* == on */ +var4 = ((short int(*)(val* self, val* p0))(var_n_qualified->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_qualified, var_other); /* == on */ } var5 = !var4; var2 = var5; @@ -6041,140 +5841,50 @@ var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on */ -var_n_kwnullable->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_qualified,self) on */ +var_n_qualified->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL6:(void)0; } } } else { } -if (unlikely(var_n_qid == NULL)) { +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2456); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2283); fatal_exit(1); } -self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val = var_n_qid; /* _n_qid on */ -if (var_n_qid == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2457); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2284); fatal_exit(1); } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_qid,self) on */ -if (unlikely(var_n_qid == NULL)) { +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -var_n_qid->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL7:(void)0; } } -self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val = var_n_obra; /* _n_obra on */ -if (var_n_obra == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_obra,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var11 = ((short int(*)(val* self, val* p0))(var_n_obra->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_obra, var_other); /* == on */ -} -var12 = !var11; -var9 = var12; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -var8 = var9; +RET_LABEL:; } -if (var8){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on */ -var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL13:(void)0; -} -} -} else { -} -{ -{ /* Inline parser_nodes#AType#n_types (self) on */ -var16 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ -if (unlikely(var16 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1715); -fatal_exit(1); -} -var14 = var16; -RET_LABEL15:(void)0; -} -} -{ -nitc___nitc__ANodes___unsafe_add_all(var14, var_n_types); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ -} -self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val = var_n_cbra; /* _n_cbra on */ -if (var_n_cbra == NULL) { -var17 = 0; /* is null */ -} else { -var17 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_cbra,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var20 = ((short int(*)(val* self, val* p0))(var_n_cbra->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cbra, var_other); /* == on */ -} -var21 = !var20; -var18 = var21; -goto RET_LABEL19; -RET_LABEL19:(void)0; -} -var17 = var18; -} -if (var17){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on */ -var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL22:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -if (var_n_annotations == NULL) { -var23 = 0; /* is null */ -} else { -var23 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var26 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ -} -var27 = !var26; -var24 = var27; -goto RET_LABEL25; -RET_LABEL25:(void)0; -} -var23 = var24; -} -if (var23){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ -var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL28:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#AType#replace_child for (self: AType, ANode, nullable ANode) */ -void nitc__parser_prod___AType___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AQclassid$replace_child for (self: AQclassid, ANode, nullable ANode) */ +void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable TKwnullable */; +val* var /* : nullable AQualified */; short int var1 /* : Bool */; short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; @@ -6184,7 +5894,7 @@ short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : AQclassid */; +val* var8 /* : TClassid */; short int var9 /* : Bool */; short int var11 /* : Bool */; short int var13 /* : Bool */; @@ -6192,46 +5902,16 @@ short int var14 /* : Bool */; int cltype15; int idtype16; const char* var_class_name17; -val* var18 /* : nullable TObra */; -short int var19 /* : Bool */; -short int var20 /* : Bool */; -short int var22 /* : Bool */; -short int var24 /* : Bool */; -short int var25 /* : Bool */; -int cltype26; -int idtype27; -const char* var_class_name28; -val* var29 /* : ANodes[AType] */; -val* var31 /* : ANodes[AType] */; -short int var32 /* : Bool */; -val* var33 /* : nullable TCbra */; -short int var34 /* : Bool */; -short int var35 /* : Bool */; -short int var37 /* : Bool */; -short int var39 /* : Bool */; -short int var40 /* : Bool */; -int cltype41; -int idtype42; -const char* var_class_name43; -val* var44 /* : nullable AAnnotations */; -short int var45 /* : Bool */; -short int var46 /* : Bool */; -short int var48 /* : Bool */; -short int var50 /* : Bool */; -short int var51 /* : Bool */; -int cltype52; -int idtype53; -const char* var_class_name54; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val; /* _n_kwnullable on */ +var = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val; /* _n_qualified on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var6 = var == var_other; var4 = var6; goto RET_LABEL5; @@ -6245,9 +5925,9 @@ RET_LABEL3:(void)0; var1 = var2; } if (var1){ -/* isa nullable TKwnullable */ -cltype = type_nullable__nitc__TKwnullable.color; -idtype = type_nullable__nitc__TKwnullable.id; +/* isa nullable AQualified */ +cltype = type_nullable__nitc__AQualified.color; +idtype = type_nullable__nitc__AQualified.id; if(var_new_child == NULL) { var7 = 1; } else { @@ -6259,27 +5939,30 @@ var7 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var7)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnullable", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2470); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AQualified", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2290); fatal_exit(1); } { -nitc__parser_prod___AType___n_kwnullable_61d(self, var_new_child); /* Direct call parser_prod#AType#n_kwnullable= on */ +nitc__parser_prod___AQclassid___n_qualified_61d(self, var_new_child); /* Direct call parser_prod$AQclassid$n_qualified= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val; /* _n_qid on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val; /* _n_id on */ if (unlikely(var8 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2473); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2293); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ var13 = var8 == var_other; var11 = var13; goto RET_LABEL12; @@ -6292,9 +5975,9 @@ RET_LABEL10:(void)0; } } if (var9){ -/* isa AQclassid */ -cltype15 = type_nitc__AQclassid.color; -idtype16 = type_nitc__AQclassid.id; +/* isa TClassid */ +cltype15 = type_nitc__TClassid.color; +idtype16 = type_nitc__TClassid.id; if(var_new_child == NULL) { var14 = 0; } else { @@ -6306,612 +5989,522 @@ var14 = var_new_child->type->type_table[cltype15] == idtype16; } if (unlikely(!var14)) { var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQclassid", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2474); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TClassid", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2294); fatal_exit(1); } { -nitc__parser_prod___AType___n_qid_61d(self, var_new_child); /* Direct call parser_prod#AType#n_qid= on */ +nitc__parser_prod___AQclassid___n_id_61d(self, var_new_child); /* Direct call parser_prod$AQclassid$n_id= on */ } goto RET_LABEL; } else { } -var18 = self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val; /* _n_obra on */ -if (var18 == NULL) { -var19 = 0; /* cannot be null */ +RET_LABEL:; +} +/* method parser_prod$AQclassid$n_qualified= for (self: AQclassid, nullable AQualified) */ +void nitc__parser_prod___AQclassid___n_qualified_61d(val* self, val* p0) { +val* var_node /* var node: nullable AQualified */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val = var_node; /* _n_qualified on */ +if (var_node == NULL) { +var = 0; /* is null */ } else { -{ /* Inline kernel#Object#== (var18,var_old_child) on */ -var_other = var_old_child; +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#is_same_instance (var18,var_other) on */ -var24 = var18 == var_other; -var22 = var24; -goto RET_LABEL23; -RET_LABEL23:(void)0; +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var20 = var22; -goto RET_LABEL21; -RET_LABEL21:(void)0; +var = var1; } -var19 = var20; +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } -if (var19){ -/* isa nullable TObra */ -cltype26 = type_nullable__nitc__TObra.color; -idtype27 = type_nullable__nitc__TObra.id; -if(var_new_child == NULL) { -var25 = 1; -} else { -if(cltype26 >= var_new_child->type->table_size) { -var25 = 0; -} else { -var25 = var_new_child->type->type_table[cltype26] == idtype27; } +} else { } -if (unlikely(!var25)) { -var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TObra", var_class_name28); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2478); -fatal_exit(1); +RET_LABEL:; } +/* method parser_prod$AQclassid$n_id= for (self: AQclassid, TClassid) */ +void nitc__parser_prod___AQclassid___n_id_61d(val* self, val* p0) { +val* var_node /* var node: TClassid */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val = var_node; /* _n_id on */ { -nitc__parser_prod___AType___n_obra_61d(self, var_new_child); /* Direct call parser_prod#AType#n_obra= on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; } -goto RET_LABEL; -} else { } +RET_LABEL:; +} +/* method parser_prod$AQclassid$visit_all for (self: AQclassid, Visitor) */ +void nitc__parser_prod___AQclassid___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable AQualified */; +val* var1 /* : TClassid */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_qualified].val; /* _n_qualified on */ { -{ /* Inline parser_nodes#AType#n_types (self) on */ -var31 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ -if (unlikely(var31 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1715); -fatal_exit(1); +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var29 = var31; -RET_LABEL30:(void)0; +var1 = self->attrs[COLOR_nitc__parser_nodes__AQclassid___n_id].val; /* _n_id on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2314); +fatal_exit(1); } { -var32 = nitc___nitc__ANodes___replace_child(var29, var_old_child, var_new_child); +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (var32){ -goto RET_LABEL; -} else { +RET_LABEL:; } -var33 = self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val; /* _n_cbra on */ -if (var33 == NULL) { -var34 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var33,var_old_child) on */ -var_other = var_old_child; +/* method parser_prod$ASignature$init_asignature for (self: ASignature, nullable TOpar, Collection[Object], nullable TCpar, nullable AType) */ +void nitc__parser_prod___ASignature___init_asignature(val* self, val* p0, val* p1, val* p2, val* p3) { +val* var_n_opar /* var n_opar: nullable TOpar */; +val* var_n_params /* var n_params: Collection[Object] */; +val* var_n_cpar /* var n_cpar: nullable TCpar */; +val* var_n_type /* var n_type: nullable AType */; +short int var /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +val* var7 /* : ANodes[AParam] */; +val* var9 /* : ANodes[AParam] */; +short int var10 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var17 /* : Bool */; +short int var19 /* : Bool */; +short int var20 /* : Bool */; { -{ /* Inline kernel#Object#is_same_instance (var33,var_other) on */ -var39 = var33 == var_other; -var37 = var39; -goto RET_LABEL38; -RET_LABEL38:(void)0; -} -} -var35 = var37; -goto RET_LABEL36; -RET_LABEL36:(void)0; +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; } -var34 = var35; } -if (var34){ -/* isa nullable TCbra */ -cltype41 = type_nullable__nitc__TCbra.color; -idtype42 = type_nullable__nitc__TCbra.id; -if(var_new_child == NULL) { -var40 = 1; -} else { -if(cltype41 >= var_new_child->type->table_size) { -var40 = 0; +var_n_opar = p0; +var_n_params = p1; +var_n_cpar = p2; +var_n_type = p3; +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val = var_n_opar; /* _n_opar on */ +if (var_n_opar == NULL) { +var = 0; /* is null */ } else { -var40 = var_new_child->type->type_table[cltype41] == idtype42; -} -} -if (unlikely(!var40)) { -var_class_name43 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCbra", var_class_name43); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2483); -fatal_exit(1); +var = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_n_opar,((val*)NULL)) on */ +var_other = ((val*)NULL); { -nitc__parser_prod___AType___n_cbra_61d(self, var_new_child); /* Direct call parser_prod#AType#n_cbra= on */ -} -goto RET_LABEL; -} else { +var4 = ((short int(*)(val* self, val* p0))(var_n_opar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_opar, var_other); /* == on */ } -var44 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var44 == NULL) { -var45 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var44,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var44,var_other) on */ -var50 = var44 == var_other; -var48 = var50; -goto RET_LABEL49; -RET_LABEL49:(void)0; +var5 = !var4; +var2 = var5; +goto RET_LABEL3; +RET_LABEL3:(void)0; } +var = var2; } -var46 = var48; -goto RET_LABEL47; -RET_LABEL47:(void)0; +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_opar,self) on */ +var_n_opar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL6:(void)0; } -var45 = var46; } -if (var45){ -/* isa nullable AAnnotations */ -cltype52 = type_nullable__nitc__AAnnotations.color; -idtype53 = type_nullable__nitc__AAnnotations.id; -if(var_new_child == NULL) { -var51 = 1; } else { -if(cltype52 >= var_new_child->type->table_size) { -var51 = 0; -} else { -var51 = var_new_child->type->type_table[cltype52] == idtype53; } +{ +{ /* Inline parser_nodes$ASignature$n_params (self) on */ +var9 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ +if (unlikely(var9 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(!var51)) { -var_class_name54 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name54); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2487); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1746); fatal_exit(1); } -{ -nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AType#n_annotations= on */ +var7 = var9; +RET_LABEL8:(void)0; } -goto RET_LABEL; -} else { } -RET_LABEL:; +{ +nitc___nitc__ANodes___unsafe_add_all(var7, var_n_params); /* Direct call parser_nodes$ANodes$unsafe_add_all on */ } -/* method parser_prod#AType#n_kwnullable= for (self: AType, nullable TKwnullable) */ -void nitc__parser_prod___AType___n_kwnullable_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwnullable */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val = var_node; /* _n_kwnullable on */ -if (var_node == NULL) { -var = 0; /* is null */ +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val = var_n_cpar; /* _n_cpar on */ +if (var_n_cpar == NULL) { +var10 = 0; /* is null */ } else { -var = 1; /* arg is null and recv is not */ +var10 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_cpar,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var13 = ((short int(*)(val* self, val* p0))(var_n_cpar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cpar, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var14 = !var13; +var11 = var14; +goto RET_LABEL12; +RET_LABEL12:(void)0; } -var = var1; +var10 = var11; } -if (var){ +if (var10){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_cpar,self) on */ +var_n_cpar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL15:(void)0; } } } else { } -RET_LABEL:; -} -/* method parser_prod#AType#n_qid= for (self: AType, AQclassid) */ -void nitc__parser_prod___AType___n_qid_61d(val* self, val* p0) { -val* var_node /* var node: AQclassid */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val = var_node; /* _n_qid on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} -RET_LABEL:; -} -/* method parser_prod#AType#n_obra= for (self: AType, nullable TObra) */ -void nitc__parser_prod___AType___n_obra_61d(val* self, val* p0) { -val* var_node /* var node: nullable TObra */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val = var_node; /* _n_obra on */ -if (var_node == NULL) { -var = 0; /* is null */ +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { +var16 = 0; /* is null */ } else { -var = 1; /* arg is null and recv is not */ +var16 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_type,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var19 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var20 = !var19; +var17 = var20; +goto RET_LABEL18; +RET_LABEL18:(void)0; } -var = var1; +var16 = var17; } -if (var){ +if (var16){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_type,self) on */ +var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL21:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AType#n_cbra= for (self: AType, nullable TCbra) */ -void nitc__parser_prod___AType___n_cbra_61d(val* self, val* p0) { -val* var_node /* var node: nullable TCbra */; -short int var /* : Bool */; +/* method parser_prod$ASignature$replace_child for (self: ASignature, ANode, nullable ANode) */ +void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable TOpar */; short int var1 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val = var_node; /* _n_cbra on */ -if (var_node == NULL) { -var = 0; /* is null */ +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : ANodes[AParam] */; +val* var10 /* : ANodes[AParam] */; +short int var11 /* : Bool */; +val* var12 /* : nullable TCpar */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var18 /* : Bool */; +short int var19 /* : Bool */; +int cltype20; +int idtype21; +const char* var_class_name22; +val* var23 /* : nullable AType */; +short int var24 /* : Bool */; +short int var25 /* : Bool */; +short int var27 /* : Bool */; +short int var29 /* : Bool */; +short int var30 /* : Bool */; +int cltype31; +int idtype32; +const char* var_class_name33; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val; /* _n_opar on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ } else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +{ /* Inline kernel$Object$== (var,var_old_child) on */ +var_other = var_old_child; { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -var = var1; } -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; } +var1 = var2; } +if (var1){ +/* isa nullable TOpar */ +cltype = type_nullable__nitc__TOpar.color; +idtype = type_nullable__nitc__TOpar.id; +if(var_new_child == NULL) { +var7 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; } else { +var7 = var_new_child->type->type_table[cltype] == idtype; } -RET_LABEL:; } -/* method parser_prod#AType#n_annotations= for (self: AType, nullable AAnnotations) */ -void nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2337); +fatal_exit(1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +nitc__parser_prod___ASignature___n_opar_61d(self, var_new_child); /* Direct call parser_prod$ASignature$n_opar= on */ } -var = var1; +goto RET_LABEL; +} else { } -if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ASignature$n_params (self) on */ +var10 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ +if (unlikely(var10 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1746); +fatal_exit(1); } -} else { +var8 = var10; +RET_LABEL9:(void)0; } -RET_LABEL:; } -/* method parser_prod#AType#visit_all for (self: AType, Visitor) */ -void nitc__parser_prod___AType___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable TKwnullable */; -val* var1 /* : AQclassid */; -val* var2 /* : nullable TObra */; -val* var3 /* : ANodes[AType] */; -val* var5 /* : ANodes[AType] */; -val* var6 /* : nullable TCbra */; -val* var7 /* : nullable AAnnotations */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val; /* _n_kwnullable on */ { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +var11 = nitc___nitc__ANodes___replace_child(var8, var_old_child, var_new_child); } -var1 = self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val; /* _n_qid on */ -if (unlikely(var1 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2522); -fatal_exit(1); +if (var11){ +goto RET_LABEL; +} else { } +var12 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val; /* _n_cpar on */ +if (var12 == NULL) { +var13 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var12,var_old_child) on */ +var_other = var_old_child; { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +{ /* Inline kernel$Object$is_same_instance (var12,var_other) on */ +var18 = var12 == var_other; +var16 = var18; +goto RET_LABEL17; +RET_LABEL17:(void)0; } -var2 = self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val; /* _n_obra on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ } -{ -{ /* Inline parser_nodes#AType#n_types (self) on */ -var5 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ -if (unlikely(var5 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1715); -fatal_exit(1); +var14 = var16; +goto RET_LABEL15; +RET_LABEL15:(void)0; } -var3 = var5; -RET_LABEL4:(void)0; +var13 = var14; } +if (var13){ +/* isa nullable TCpar */ +cltype20 = type_nullable__nitc__TCpar.color; +idtype21 = type_nullable__nitc__TCpar.id; +if(var_new_child == NULL) { +var19 = 1; +} else { +if(cltype20 >= var_new_child->type->table_size) { +var19 = 0; +} else { +var19 = var_new_child->type->type_table[cltype20] == idtype21; } -{ -nitc___nitc__ANodes___visit_all(var3, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ } -var6 = self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val; /* _n_cbra on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var6); /* Direct call parser_nodes#Visitor#enter_visit on */ +if (unlikely(!var19)) { +var_class_name22 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name22); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2342); +fatal_exit(1); } -var7 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var7); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc__parser_prod___ASignature___n_cpar_61d(self, var_new_child); /* Direct call parser_prod$ASignature$n_cpar= on */ } -RET_LABEL:; +goto RET_LABEL; +} else { } -/* method parser_prod#ALabel#init_alabel for (self: ALabel, nullable TKwlabel, nullable TId) */ -void nitc__parser_prod___ALabel___init_alabel(val* self, val* p0, val* p1) { -val* var_n_kwlabel /* var n_kwlabel: nullable TKwlabel */; -val* var_n_id /* var n_id: nullable TId */; -short int var /* : Bool */; -short int var3 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; +var23 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val; /* _n_type on */ +if (var23 == NULL) { +var24 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var23,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var23,var_other) on */ +var29 = var23 == var_other; +var27 = var29; +goto RET_LABEL28; +RET_LABEL28:(void)0; } } -var_n_kwlabel = p0; -var_n_id = p1; -if (unlikely(var_n_kwlabel == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2535); -fatal_exit(1); +var25 = var27; +goto RET_LABEL26; +RET_LABEL26:(void)0; } -self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val = var_n_kwlabel; /* _n_kwlabel on */ -if (var_n_kwlabel == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2536); -fatal_exit(1); +var24 = var25; +} +if (var24){ +/* isa nullable AType */ +cltype31 = type_nullable__nitc__AType.color; +idtype32 = type_nullable__nitc__AType.id; +if(var_new_child == NULL) { +var30 = 1; } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwlabel,self) on */ -if (unlikely(var_n_kwlabel == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); +if(cltype31 >= var_new_child->type->table_size) { +var30 = 0; +} else { +var30 = var_new_child->type->type_table[cltype31] == idtype32; +} +} +if (unlikely(!var30)) { +var_class_name33 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name33); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2346); fatal_exit(1); } -var_n_kwlabel->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; +{ +nitc__parser_prod___ASignature___n_type_61d(self, var_new_child); /* Direct call parser_prod$ASignature$n_type= on */ +} +goto RET_LABEL; +} else { } +RET_LABEL:; } -self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { +/* method parser_prod$ASignature$n_opar= for (self: ASignature, nullable TOpar) */ +void nitc__parser_prod___ASignature___n_opar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TOpar */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val = var_node; /* _n_opar on */ +if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_id,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var5 = ((short int(*)(val* self, val* p0))(var_n_id->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_id, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -var6 = !var5; -var3 = var6; -goto RET_LABEL4; -RET_LABEL4:(void)0; +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var = var3; +var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#ALabel#replace_child for (self: ALabel, ANode, nullable ANode) */ -void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TKwlabel */; +/* method parser_prod$ASignature$n_cpar= for (self: ASignature, nullable TCpar) */ +void nitc__parser_prod___ASignature___n_cpar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TCpar */; +short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -val* var7 /* : nullable TId */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; -int cltype15; -int idtype16; -const char* var_class_name17; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val; /* _n_kwlabel on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2543); -fatal_exit(1); +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val = var_node; /* _n_cpar on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#== (var,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; -} +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -var1 = var3; +var4 = !var3; +var1 = var4; goto RET_LABEL2; RET_LABEL2:(void)0; } +var = var1; } -if (var1){ -/* isa TKwlabel */ -cltype = type_nitc__TKwlabel.color; -idtype = type_nitc__TKwlabel.id; -if(var_new_child == NULL) { -var6 = 0; -} else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; -} else { -var6 = var_new_child->type->type_table[cltype] == idtype; -} -} -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwlabel", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2544); -fatal_exit(1); -} +if (var){ { -nitc__parser_prod___ALabel___n_kwlabel_61d(self, var_new_child); /* Direct call parser_prod#ALabel#n_kwlabel= on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} } -goto RET_LABEL; } else { } -var7 = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val; /* _n_id on */ -if (var7 == NULL) { -var8 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var7,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var13 = var7 == var_other; -var11 = var13; -goto RET_LABEL12; -RET_LABEL12:(void)0; -} -} -var9 = var11; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -var8 = var9; -} -if (var8){ -/* isa nullable TId */ -cltype15 = type_nullable__nitc__TId.color; -idtype16 = type_nullable__nitc__TId.id; -if(var_new_child == NULL) { -var14 = 1; -} else { -if(cltype15 >= var_new_child->type->table_size) { -var14 = 0; -} else { -var14 = var_new_child->type->type_table[cltype15] == idtype16; -} -} -if (unlikely(!var14)) { -var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2548); -fatal_exit(1); -} -{ -nitc__parser_prod___ALabel___n_id_61d(self, var_new_child); /* Direct call parser_prod#ALabel#n_id= on */ -} -goto RET_LABEL; -} else { -} -RET_LABEL:; -} -/* method parser_prod#ALabel#n_kwlabel= for (self: ALabel, TKwlabel) */ -void nitc__parser_prod___ALabel___n_kwlabel_61d(val* self, val* p0) { -val* var_node /* var node: TKwlabel */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val = var_node; /* _n_kwlabel on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; -} -} RET_LABEL:; } -/* method parser_prod#ALabel#n_id= for (self: ALabel, nullable TId) */ -void nitc__parser_prod___ALabel___n_id_61d(val* self, val* p0) { -val* var_node /* var node: nullable TId */; +/* method parser_prod$ASignature$n_type= for (self: ASignature, nullable AType) */ +void nitc__parser_prod___ASignature___n_type_61d(val* self, val* p0) { +val* var_node /* var node: nullable AType */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val = var_node; /* _n_id on */ +self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val = var_node; /* _n_type on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -6922,8 +6515,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -6931,342 +6524,144 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#ALabel#visit_all for (self: ALabel, Visitor) */ -void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ASignature$visit_all for (self: ASignature, Visitor) */ +void nitc__parser_prod___ASignature___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TKwlabel */; -val* var1 /* : nullable TId */; +val* var /* : nullable TOpar */; +val* var1 /* : ANodes[AParam] */; +val* var3 /* : ANodes[AParam] */; +val* var4 /* : nullable TCpar */; +val* var5 /* : nullable AType */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val; /* _n_kwlabel on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2567); -fatal_exit(1); -} -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var1 = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val; /* _n_id on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; -} -/* method parser_prod#ABlockExpr#init_ablockexpr for (self: ABlockExpr, Collection[Object], nullable TKwend) */ -void nitc__parser_prod___ABlockExpr___init_ablockexpr(val* self, val* p0, val* p1) { -val* var_n_expr /* var n_expr: Collection[Object] */; -val* var_n_kwend /* var n_kwend: nullable TKwend */; -val* var /* : ANodes[AExpr] */; -val* var3 /* : ANodes[AExpr] */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var7 /* : Bool */; -short int var8 /* : Bool */; +var = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_opar].val; /* _n_opar on */ { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; -} +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var_n_expr = p0; -var_n_kwend = p1; { -{ /* Inline parser_nodes#ABlockExpr#n_expr (self) on */ -var3 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ +{ /* Inline parser_nodes$ASignature$n_params (self) on */ +var3 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_params].val; /* _n_params on */ if (unlikely(var3 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1744); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_params"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1746); fatal_exit(1); } -var = var3; +var1 = var3; RET_LABEL2:(void)0; } } { -nitc___nitc__ANodes___unsafe_add_all(var, var_n_expr); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ -} -self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val = var_n_kwend; /* _n_kwend on */ -if (var_n_kwend == NULL) { -var4 = 0; /* is null */ -} else { -var4 = 1; /* arg is null and recv is not */ +nitc___nitc__ANodes___visit_all(var1, var_v); /* Direct call parser_nodes$ANodes$visit_all on */ } -if (0) { -{ /* Inline kernel#Object#!= (var_n_kwend,((val*)NULL)) on */ -var_other = ((val*)NULL); +var4 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_cpar].val; /* _n_cpar on */ { -var7 = ((short int(*)(val* self, val* p0))(var_n_kwend->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwend, var_other); /* == on */ -} -var8 = !var7; -var5 = var8; -goto RET_LABEL6; -RET_LABEL6:(void)0; -} -var4 = var5; +nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes$Visitor$enter_visit on */ } -if (var4){ +var5 = self->attrs[COLOR_nitc__parser_nodes__ASignature___n_type].val; /* _n_type on */ { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwend,self) on */ -var_n_kwend->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL9:(void)0; -} -} -} else { +nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#ABlockExpr#replace_child for (self: ABlockExpr, ANode, nullable ANode) */ -void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : ANodes[AExpr] */; -val* var2 /* : ANodes[AExpr] */; +/* method parser_prod$AParam$init_aparam for (self: AParam, nullable TId, nullable AType, nullable TDotdotdot, nullable AAnnotations) */ +void nitc__parser_prod___AParam___init_aparam(val* self, val* p0, val* p1, val* p2, val* p3) { +val* var_n_id /* var n_id: nullable TId */; +val* var_n_type /* var n_type: nullable AType */; +val* var_n_dotdotdot /* var n_dotdotdot: nullable TDotdotdot */; +val* var_n_annotations /* var n_annotations: nullable AAnnotations */; +short int var /* : Bool */; short int var3 /* : Bool */; -val* var4 /* : nullable TKwend */; +val* var_other /* var other: nullable Object */; short int var5 /* : Bool */; short int var6 /* : Bool */; -val* var_other /* var other: nullable Object */; short int var8 /* : Bool */; -short int var10 /* : Bool */; +short int var9 /* : Bool */; short int var11 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +short int var17 /* : Bool */; +short int var18 /* : Bool */; { -{ /* Inline parser_nodes#ABlockExpr#n_expr (self) on */ -var2 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ -if (unlikely(var2 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1744); -fatal_exit(1); -} -var = var2; +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -{ -var3 = nitc___nitc__ANodes___replace_child(var, var_old_child, var_new_child); -} -if (var3){ -goto RET_LABEL; -} else { -} -var4 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val; /* _n_kwend on */ -if (var4 == NULL) { -var5 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var4,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var4,var_other) on */ -var10 = var4 == var_other; -var8 = var10; -goto RET_LABEL9; -RET_LABEL9:(void)0; -} +var_n_id = p0; +var_n_type = p1; +var_n_dotdotdot = p2; +var_n_annotations = p3; +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var6 = var8; -goto RET_LABEL7; -RET_LABEL7:(void)0; +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2384); +fatal_exit(1); } -var5 = var6; +self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (var5){ -/* isa nullable TKwend */ -cltype = type_nullable__nitc__TKwend.color; -idtype = type_nullable__nitc__TKwend.id; -if(var_new_child == NULL) { -var11 = 1; -} else { -if(cltype >= var_new_child->type->table_size) { -var11 = 0; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2385); +fatal_exit(1); } else { -var11 = var_new_child->type->type_table[cltype] == idtype; -} +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (unlikely(!var11)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2586); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); fatal_exit(1); } -{ -nitc__parser_prod___ABlockExpr___n_kwend_61d(self, var_new_child); /* Direct call parser_prod#ABlockExpr#n_kwend= on */ -} -goto RET_LABEL; -} else { +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } -RET_LABEL:; } -/* method parser_prod#ABlockExpr#n_kwend= for (self: ABlockExpr, nullable TKwend) */ -void nitc__parser_prod___ABlockExpr___n_kwend_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwend */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val = var_node; /* _n_kwend on */ -if (var_node == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_type,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var5 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var6 = !var5; +var3 = var6; +goto RET_LABEL4; +RET_LABEL4:(void)0; } -var = var1; +var = var3; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_type,self) on */ +var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } } } else { } -RET_LABEL:; -} -/* method parser_prod#ABlockExpr#visit_all for (self: ABlockExpr, Visitor) */ -void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : ANodes[AExpr] */; -val* var2 /* : ANodes[AExpr] */; -val* var3 /* : nullable TKwend */; -var_v = p0; -{ -{ /* Inline parser_nodes#ABlockExpr#n_expr (self) on */ -var2 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ -if (unlikely(var2 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1744); -fatal_exit(1); -} -var = var2; -RET_LABEL1:(void)0; -} -} -{ -nitc___nitc__ANodes___visit_all(var, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ -} -var3 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val; /* _n_kwend on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; -} -/* method parser_prod#AVardeclExpr#init_avardeclexpr for (self: AVardeclExpr, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations) */ -void nitc__parser_prod___AVardeclExpr___init_avardeclexpr(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { -val* var_n_kwvar /* var n_kwvar: nullable TKwvar */; -val* var_n_id /* var n_id: nullable TId */; -val* var_n_type /* var n_type: nullable AType */; -val* var_n_assign /* var n_assign: nullable TAssign */; -val* var_n_expr /* var n_expr: nullable AExpr */; -val* var_n_annotations /* var n_annotations: nullable AAnnotations */; -short int var /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var12 /* : Bool */; -short int var14 /* : Bool */; -short int var15 /* : Bool */; -short int var17 /* : Bool */; -short int var18 /* : Bool */; -short int var20 /* : Bool */; -short int var21 /* : Bool */; -short int var23 /* : Bool */; -short int var24 /* : Bool */; -short int var26 /* : Bool */; -short int var27 /* : Bool */; -short int var29 /* : Bool */; -short int var30 /* : Bool */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; -} -} -var_n_kwvar = p0; -var_n_id = p1; -var_n_type = p2; -var_n_assign = p3; -var_n_expr = p4; -var_n_annotations = p5; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val = var_n_kwvar; /* _n_kwvar on */ -if (var_n_kwvar == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_kwvar,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var4 = ((short int(*)(val* self, val* p0))(var_n_kwvar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwvar, var_other); /* == on */ -} -var5 = !var4; -var2 = var5; -goto RET_LABEL3; -RET_LABEL3:(void)0; -} -var = var2; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_kwvar,self) on */ -var_n_kwvar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL6:(void)0; -} -} -} else { -} -if (unlikely(var_n_id == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2616); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2617); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ -if (unlikely(var_n_id == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; -} -} -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val = var_n_type; /* _n_type on */ -if (var_n_type == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ +self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val = var_n_dotdotdot; /* _n_dotdotdot on */ +if (var_n_dotdotdot == NULL) { +var8 = 0; /* is null */ +} else { +var8 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_type,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_dotdotdot,((val*)NULL)) on */ var_other = ((val*)NULL); { -var11 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ +var11 = ((short int(*)(val* self, val* p0))(var_n_dotdotdot->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_dotdotdot, var_other); /* == on */ } var12 = !var11; var9 = var12; @@ -7277,24 +6672,24 @@ var8 = var9; } if (var8){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ -var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_dotdotdot,self) on */ +var_n_dotdotdot->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL13:(void)0; } } } else { } -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val = var_n_assign; /* _n_assign on */ -if (var_n_assign == NULL) { +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { var14 = 0; /* is null */ } else { var14 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_assign,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_annotations,((val*)NULL)) on */ var_other = ((val*)NULL); { -var17 = ((short int(*)(val* self, val* p0))(var_n_assign->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_assign, var_other); /* == on */ +var17 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ } var18 = !var17; var15 = var18; @@ -7305,86 +6700,30 @@ var14 = var15; } if (var14){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_assign,self) on */ -var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL19:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val = var_n_expr; /* _n_expr on */ -if (var_n_expr == NULL) { -var20 = 0; /* is null */ -} else { -var20 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var23 = ((short int(*)(val* self, val* p0))(var_n_expr->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_expr, var_other); /* == on */ -} -var24 = !var23; -var21 = var24; -goto RET_LABEL22; -RET_LABEL22:(void)0; -} -var20 = var21; -} -if (var20){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ -var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL25:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -if (var_n_annotations == NULL) { -var26 = 0; /* is null */ -} else { -var26 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_annotations,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var29 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ -} -var30 = !var29; -var27 = var30; -goto RET_LABEL28; -RET_LABEL28:(void)0; -} -var26 = var27; -} -if (var26){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_annotations,self) on */ var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL31:(void)0; +RET_LABEL19:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#replace_child for (self: AVardeclExpr, ANode, nullable ANode) */ -void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AParam$replace_child for (self: AParam, ANode, nullable ANode) */ +void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable TKwvar */; +val* var /* : TId */; short int var1 /* : Bool */; -short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; short int var6 /* : Bool */; -short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : TId */; +val* var7 /* : nullable AType */; +short int var8 /* : Bool */; short int var9 /* : Bool */; short int var11 /* : Bool */; short int var13 /* : Bool */; @@ -7392,7 +6731,7 @@ short int var14 /* : Bool */; int cltype15; int idtype16; const char* var_class_name17; -val* var18 /* : nullable AType */; +val* var18 /* : nullable TDotdotdot */; short int var19 /* : Bool */; short int var20 /* : Bool */; short int var22 /* : Bool */; @@ -7401,7 +6740,7 @@ short int var25 /* : Bool */; int cltype26; int idtype27; const char* var_class_name28; -val* var29 /* : nullable TAssign */; +val* var29 /* : nullable AAnnotations */; short int var30 /* : Bool */; short int var31 /* : Bool */; short int var33 /* : Bool */; @@ -7410,83 +6749,67 @@ short int var36 /* : Bool */; int cltype37; int idtype38; const char* var_class_name39; -val* var40 /* : nullable AExpr */; -short int var41 /* : Bool */; -short int var42 /* : Bool */; -short int var44 /* : Bool */; -short int var46 /* : Bool */; -short int var47 /* : Bool */; -int cltype48; -int idtype49; -const char* var_class_name50; -val* var51 /* : nullable AAnnotations */; -short int var52 /* : Bool */; -short int var53 /* : Bool */; -short int var55 /* : Bool */; -short int var57 /* : Bool */; -short int var58 /* : Bool */; -int cltype59; -int idtype60; -const char* var_class_name61; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val; /* _n_kwvar on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2396); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var6 = var == var_other; -var4 = var6; -goto RET_LABEL5; -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } } -var2 = var4; -goto RET_LABEL3; -RET_LABEL3:(void)0; +var1 = var3; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var1 = var2; } if (var1){ -/* isa nullable TKwvar */ -cltype = type_nullable__nitc__TKwvar.color; -idtype = type_nullable__nitc__TKwvar.id; +/* isa TId */ +cltype = type_nitc__TId.color; +idtype = type_nitc__TId.id; if(var_new_child == NULL) { -var7 = 1; +var6 = 0; } else { if(cltype >= var_new_child->type->table_size) { -var7 = 0; +var6 = 0; } else { -var7 = var_new_child->type->type_table[cltype] == idtype; +var6 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var7)) { +if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwvar", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2631); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2397); fatal_exit(1); } { -nitc__parser_prod___AVardeclExpr___n_kwvar_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_kwvar= on */ +nitc__parser_prod___AParam___n_id_61d(self, var_new_child); /* Direct call parser_prod$AParam$n_id= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val; /* _n_id on */ -if (unlikely(var8 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2634); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var7 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val; /* _n_type on */ +if (var7 == NULL) { +var8 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var7,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ -var13 = var8 == var_other; +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ +var13 = var7 == var_other; var11 = var13; goto RET_LABEL12; RET_LABEL12:(void)0; @@ -7496,13 +6819,14 @@ var9 = var11; goto RET_LABEL10; RET_LABEL10:(void)0; } +var8 = var9; } -if (var9){ -/* isa TId */ -cltype15 = type_nitc__TId.color; -idtype16 = type_nitc__TId.id; +if (var8){ +/* isa nullable AType */ +cltype15 = type_nullable__nitc__AType.color; +idtype16 = type_nullable__nitc__AType.id; if(var_new_child == NULL) { -var14 = 0; +var14 = 1; } else { if(cltype15 >= var_new_child->type->table_size) { var14 = 0; @@ -7512,24 +6836,24 @@ var14 = var_new_child->type->type_table[cltype15] == idtype16; } if (unlikely(!var14)) { var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2635); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2401); fatal_exit(1); } { -nitc__parser_prod___AVardeclExpr___n_id_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_id= on */ +nitc__parser_prod___AParam___n_type_61d(self, var_new_child); /* Direct call parser_prod$AParam$n_type= on */ } goto RET_LABEL; } else { } -var18 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val; /* _n_type on */ +var18 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val; /* _n_dotdotdot on */ if (var18 == NULL) { var19 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var18,var_old_child) on */ +{ /* Inline kernel$Object$== (var18,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var18,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var18,var_other) on */ var24 = var18 == var_other; var22 = var24; goto RET_LABEL23; @@ -7543,9 +6867,9 @@ RET_LABEL21:(void)0; var19 = var20; } if (var19){ -/* isa nullable AType */ -cltype26 = type_nullable__nitc__AType.color; -idtype27 = type_nullable__nitc__AType.id; +/* isa nullable TDotdotdot */ +cltype26 = type_nullable__nitc__TDotdotdot.color; +idtype27 = type_nullable__nitc__TDotdotdot.id; if(var_new_child == NULL) { var25 = 1; } else { @@ -7557,24 +6881,24 @@ var25 = var_new_child->type->type_table[cltype26] == idtype27; } if (unlikely(!var25)) { var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name28); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2639); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDotdotdot", var_class_name28); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2405); fatal_exit(1); } { -nitc__parser_prod___AVardeclExpr___n_type_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_type= on */ +nitc__parser_prod___AParam___n_dotdotdot_61d(self, var_new_child); /* Direct call parser_prod$AParam$n_dotdotdot= on */ } goto RET_LABEL; } else { } -var29 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val; /* _n_assign on */ +var29 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ if (var29 == NULL) { var30 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var29,var_old_child) on */ +{ /* Inline kernel$Object$== (var29,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var29,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var29,var_other) on */ var35 = var29 == var_other; var33 = var35; goto RET_LABEL34; @@ -7588,9 +6912,9 @@ RET_LABEL32:(void)0; var30 = var31; } if (var30){ -/* isa nullable TAssign */ -cltype37 = type_nullable__nitc__TAssign.color; -idtype38 = type_nullable__nitc__TAssign.id; +/* isa nullable AAnnotations */ +cltype37 = type_nullable__nitc__AAnnotations.color; +idtype38 = type_nullable__nitc__AAnnotations.id; if(var_new_child == NULL) { var36 = 1; } else { @@ -7602,162 +6926,33 @@ var36 = var_new_child->type->type_table[cltype37] == idtype38; } if (unlikely(!var36)) { var_class_name39 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name39); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2643); -fatal_exit(1); -} -{ -nitc__parser_prod___AVardeclExpr___n_assign_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_assign= on */ -} -goto RET_LABEL; -} else { -} -var40 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val; /* _n_expr on */ -if (var40 == NULL) { -var41 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var40,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var40,var_other) on */ -var46 = var40 == var_other; -var44 = var46; -goto RET_LABEL45; -RET_LABEL45:(void)0; -} -} -var42 = var44; -goto RET_LABEL43; -RET_LABEL43:(void)0; -} -var41 = var42; -} -if (var41){ -/* isa nullable AExpr */ -cltype48 = type_nullable__nitc__AExpr.color; -idtype49 = type_nullable__nitc__AExpr.id; -if(var_new_child == NULL) { -var47 = 1; -} else { -if(cltype48 >= var_new_child->type->table_size) { -var47 = 0; -} else { -var47 = var_new_child->type->type_table[cltype48] == idtype49; -} -} -if (unlikely(!var47)) { -var_class_name50 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name50); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2647); -fatal_exit(1); -} -{ -nitc__parser_prod___AVardeclExpr___n_expr_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_expr= on */ -} -goto RET_LABEL; -} else { -} -var51 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var51 == NULL) { -var52 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var51,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var51,var_other) on */ -var57 = var51 == var_other; -var55 = var57; -goto RET_LABEL56; -RET_LABEL56:(void)0; -} -} -var53 = var55; -goto RET_LABEL54; -RET_LABEL54:(void)0; -} -var52 = var53; -} -if (var52){ -/* isa nullable AAnnotations */ -cltype59 = type_nullable__nitc__AAnnotations.color; -idtype60 = type_nullable__nitc__AAnnotations.id; -if(var_new_child == NULL) { -var58 = 1; -} else { -if(cltype59 >= var_new_child->type->table_size) { -var58 = 0; -} else { -var58 = var_new_child->type->type_table[cltype59] == idtype60; -} -} -if (unlikely(!var58)) { -var_class_name61 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name61); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2651); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name39); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2409); fatal_exit(1); } { -nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AVardeclExpr#n_annotations= on */ +nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod$AParam$n_annotations= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#n_kwvar= for (self: AVardeclExpr, nullable TKwvar) */ -void nitc__parser_prod___AVardeclExpr___n_kwvar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwvar */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val = var_node; /* _n_kwvar on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#AVardeclExpr#n_id= for (self: AVardeclExpr, TId) */ -void nitc__parser_prod___AVardeclExpr___n_id_61d(val* self, val* p0) { +/* method parser_prod$AParam$n_id= for (self: AParam, TId) */ +void nitc__parser_prod___AParam___n_id_61d(val* self, val* p0) { val* var_node /* var node: TId */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val = var_node; /* _n_id on */ +self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val = var_node; /* _n_id on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#n_type= for (self: AVardeclExpr, nullable AType) */ -void nitc__parser_prod___AVardeclExpr___n_type_61d(val* self, val* p0) { +/* method parser_prod$AParam$n_type= for (self: AParam, nullable AType) */ +void nitc__parser_prod___AParam___n_type_61d(val* self, val* p0) { val* var_node /* var node: nullable AType */; short int var /* : Bool */; short int var1 /* : Bool */; @@ -7765,14 +6960,14 @@ val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val = var_node; /* _n_type on */ +self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val = var_node; /* _n_type on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ @@ -7786,7 +6981,7 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } @@ -7795,65 +6990,26 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#n_assign= for (self: AVardeclExpr, nullable TAssign) */ -void nitc__parser_prod___AVardeclExpr___n_assign_61d(val* self, val* p0) { -val* var_node /* var node: nullable TAssign */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val = var_node; /* _n_assign on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#AVardeclExpr#n_expr= for (self: AVardeclExpr, nullable AExpr) */ -void nitc__parser_prod___AVardeclExpr___n_expr_61d(val* self, val* p0) { -val* var_node /* var node: nullable AExpr */; +/* method parser_prod$AParam$n_dotdotdot= for (self: AParam, nullable TDotdotdot) */ +void nitc__parser_prod___AParam___n_dotdotdot_61d(val* self, val* p0) { +val* var_node /* var node: nullable TDotdotdot */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val = var_node; /* _n_expr on */ +self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val = var_node; /* _n_dotdotdot on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -7864,8 +7020,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -7873,8 +7029,8 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#n_annotations= for (self: AVardeclExpr, nullable AAnnotations) */ -void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { +/* method parser_prod$AParam$n_annotations= for (self: AParam, nullable AAnnotations) */ +void nitc__parser_prod___AParam___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { val* var_node /* var node: nullable AAnnotations */; short int var /* : Bool */; short int var1 /* : Bool */; @@ -7882,14 +7038,14 @@ val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ @@ -7903,7 +7059,7 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } @@ -7912,78 +7068,89 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AVardeclExpr#visit_all for (self: AVardeclExpr, Visitor) */ -void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AParam$visit_all for (self: AParam, Visitor) */ +void nitc__parser_prod___AParam___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : nullable TKwvar */; -val* var1 /* : TId */; -val* var2 /* : nullable AType */; -val* var3 /* : nullable TAssign */; -val* var4 /* : nullable AExpr */; -val* var5 /* : nullable AAnnotations */; +val* var /* : TId */; +val* var1 /* : nullable AType */; +val* var2 /* : nullable TDotdotdot */; +val* var3 /* : nullable AAnnotations */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val; /* _n_kwvar on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +var = self->attrs[COLOR_nitc__parser_nodes__AParam___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -var1 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val; /* _n_id on */ -if (unlikely(var1 == NULL)) { PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2691); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2438); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var2 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val; /* _n_type on */ +var1 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_type].val; /* _n_type on */ { -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var3 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val; /* _n_assign on */ +var2 = self->attrs[COLOR_nitc__parser_nodes__AParam___n_dotdotdot].val; /* _n_dotdotdot on */ { -nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var4 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val; /* _n_expr on */ +var3 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var5 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AReturnExpr#init_areturnexpr for (self: AReturnExpr, nullable TKwreturn, nullable AExpr) */ -void nitc__parser_prod___AReturnExpr___init_areturnexpr(val* self, val* p0, val* p1) { -val* var_n_kwreturn /* var n_kwreturn: nullable TKwreturn */; -val* var_n_expr /* var n_expr: nullable AExpr */; +/* method parser_prod$AType$init_atype for (self: AType, nullable TKwnullable, nullable AQclassid, nullable TObra, Collection[Object], nullable TCbra, nullable AAnnotations) */ +void nitc__parser_prod___AType___init_atype(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { +val* var_n_kwnullable /* var n_kwnullable: nullable TKwnullable */; +val* var_n_qid /* var n_qid: nullable AQclassid */; +val* var_n_obra /* var n_obra: nullable TObra */; +val* var_n_types /* var n_types: Collection[Object] */; +val* var_n_cbra /* var n_cbra: nullable TCbra */; +val* var_n_annotations /* var n_annotations: nullable AAnnotations */; short int var /* : Bool */; short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; short int var5 /* : Bool */; -short int var7 /* : Bool */; short int var8 /* : Bool */; -short int var10 /* : Bool */; +short int var9 /* : Bool */; short int var11 /* : Bool */; +short int var12 /* : Bool */; +val* var14 /* : ANodes[AType] */; +val* var16 /* : ANodes[AType] */; +short int var17 /* : Bool */; +short int var18 /* : Bool */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var24 /* : Bool */; +short int var26 /* : Bool */; +short int var27 /* : Bool */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_kwreturn = p0; -var_n_expr = p1; -self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val = var_n_kwreturn; /* _n_kwreturn on */ -if (var_n_kwreturn == NULL) { +var_n_kwnullable = p0; +var_n_qid = p1; +var_n_obra = p2; +var_n_types = p3; +var_n_cbra = p4; +var_n_annotations = p5; +self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val = var_n_kwnullable; /* _n_kwnullable on */ +if (var_n_kwnullable == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_kwreturn,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_kwnullable,((val*)NULL)) on */ var_other = ((val*)NULL); { -var4 = ((short int(*)(val* self, val* p0))(var_n_kwreturn->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwreturn, var_other); /* == on */ +var4 = ((short int(*)(val* self, val* p0))(var_n_kwnullable->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwnullable, var_other); /* == on */ } var5 = !var4; var2 = var5; @@ -7994,48 +7161,152 @@ var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwreturn,self) on */ -var_n_kwreturn->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_n_kwnullable,self) on */ +var_n_kwnullable->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL6:(void)0; } } } else { } -self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_expr].val = var_n_expr; /* _n_expr on */ -if (var_n_expr == NULL) { -var7 = 0; /* is null */ +if (unlikely(var_n_qid == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2456); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val = var_n_qid; /* _n_qid on */ +if (var_n_qid == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2457); +fatal_exit(1); } else { -var7 = 1; /* arg is null and recv is not */ +{ /* Inline parser_nodes$ANode$parent= (var_n_qid,self) on */ +if (unlikely(var_n_qid == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_qid->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val = var_n_obra; /* _n_obra on */ +if (var_n_obra == NULL) { +var8 = 0; /* is null */ +} else { +var8 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_expr,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_obra,((val*)NULL)) on */ var_other = ((val*)NULL); { -var10 = ((short int(*)(val* self, val* p0))(var_n_expr->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_expr, var_other); /* == on */ +var11 = ((short int(*)(val* self, val* p0))(var_n_obra->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_obra, var_other); /* == on */ } -var11 = !var10; -var8 = var11; -goto RET_LABEL9; -RET_LABEL9:(void)0; +var12 = !var11; +var9 = var12; +goto RET_LABEL10; +RET_LABEL10:(void)0; } -var7 = var8; +var8 = var9; } -if (var7){ +if (var8){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ -var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL12:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_obra,self) on */ +var_n_obra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL13:(void)0; +} +} +} else { +} +{ +{ /* Inline parser_nodes$AType$n_types (self) on */ +var16 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ +if (unlikely(var16 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1782); +fatal_exit(1); +} +var14 = var16; +RET_LABEL15:(void)0; +} +} +{ +nitc___nitc__ANodes___unsafe_add_all(var14, var_n_types); /* Direct call parser_nodes$ANodes$unsafe_add_all on */ +} +self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val = var_n_cbra; /* _n_cbra on */ +if (var_n_cbra == NULL) { +var17 = 0; /* is null */ +} else { +var17 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_cbra,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var20 = ((short int(*)(val* self, val* p0))(var_n_cbra->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_cbra, var_other); /* == on */ +} +var21 = !var20; +var18 = var21; +goto RET_LABEL19; +RET_LABEL19:(void)0; +} +var17 = var18; +} +if (var17){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_cbra,self) on */ +var_n_cbra->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL22:(void)0; +} +} +} else { +} +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { +var23 = 0; /* is null */ +} else { +var23 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_annotations,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var26 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ +} +var27 = !var26; +var24 = var27; +goto RET_LABEL25; +RET_LABEL25:(void)0; +} +var23 = var24; +} +if (var23){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_annotations,self) on */ +var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL28:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AReturnExpr#replace_child for (self: AReturnExpr, ANode, nullable ANode) */ -void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AType$replace_child for (self: AType, ANode, nullable ANode) */ +void nitc__parser_prod___AType___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable TKwreturn */; +val* var /* : nullable TKwnullable */; short int var1 /* : Bool */; short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; @@ -8045,25 +7316,54 @@ short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var8 /* : nullable AExpr */; +val* var8 /* : AQclassid */; short int var9 /* : Bool */; -short int var10 /* : Bool */; -short int var12 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; short int var14 /* : Bool */; -short int var15 /* : Bool */; -int cltype16; -int idtype17; -const char* var_class_name18; +int cltype15; +int idtype16; +const char* var_class_name17; +val* var18 /* : nullable TObra */; +short int var19 /* : Bool */; +short int var20 /* : Bool */; +short int var22 /* : Bool */; +short int var24 /* : Bool */; +short int var25 /* : Bool */; +int cltype26; +int idtype27; +const char* var_class_name28; +val* var29 /* : ANodes[AType] */; +val* var31 /* : ANodes[AType] */; +short int var32 /* : Bool */; +val* var33 /* : nullable TCbra */; +short int var34 /* : Bool */; +short int var35 /* : Bool */; +short int var37 /* : Bool */; +short int var39 /* : Bool */; +short int var40 /* : Bool */; +int cltype41; +int idtype42; +const char* var_class_name43; +val* var44 /* : nullable AAnnotations */; +short int var45 /* : Bool */; +short int var46 /* : Bool */; +short int var48 /* : Bool */; +short int var50 /* : Bool */; +short int var51 /* : Bool */; +int cltype52; +int idtype53; +const char* var_class_name54; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val; /* _n_kwreturn on */ +var = self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val; /* _n_kwnullable on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var6 = var == var_other; var4 = var6; goto RET_LABEL5; @@ -8077,9 +7377,9 @@ RET_LABEL3:(void)0; var1 = var2; } if (var1){ -/* isa nullable TKwreturn */ -cltype = type_nullable__nitc__TKwreturn.color; -idtype = type_nullable__nitc__TKwreturn.id; +/* isa nullable TKwnullable */ +cltype = type_nullable__nitc__TKwnullable.color; +idtype = type_nullable__nitc__TKwnullable.id; if(var_new_child == NULL) { var7 = 1; } else { @@ -8091,83 +7391,245 @@ var7 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var7)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwreturn", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2713); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwnullable", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2470); fatal_exit(1); } { -nitc__parser_prod___AReturnExpr___n_kwreturn_61d(self, var_new_child); /* Direct call parser_prod#AReturnExpr#n_kwreturn= on */ +nitc__parser_prod___AType___n_kwnullable_61d(self, var_new_child); /* Direct call parser_prod$AType$n_kwnullable= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_expr].val; /* _n_expr on */ -if (var8 == NULL) { -var9 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val; /* _n_qid on */ +if (unlikely(var8 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2473); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ -var14 = var8 == var_other; -var12 = var14; -goto RET_LABEL13; -RET_LABEL13:(void)0; +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var13 = var8 == var_other; +var11 = var13; +goto RET_LABEL12; +RET_LABEL12:(void)0; } } -var10 = var12; -goto RET_LABEL11; -RET_LABEL11:(void)0; +var9 = var11; +goto RET_LABEL10; +RET_LABEL10:(void)0; } -var9 = var10; } if (var9){ -/* isa nullable AExpr */ -cltype16 = type_nullable__nitc__AExpr.color; -idtype17 = type_nullable__nitc__AExpr.id; +/* isa AQclassid */ +cltype15 = type_nitc__AQclassid.color; +idtype16 = type_nitc__AQclassid.id; if(var_new_child == NULL) { -var15 = 1; +var14 = 0; } else { -if(cltype16 >= var_new_child->type->table_size) { -var15 = 0; +if(cltype15 >= var_new_child->type->table_size) { +var14 = 0; } else { -var15 = var_new_child->type->type_table[cltype16] == idtype17; +var14 = var_new_child->type->type_table[cltype15] == idtype16; } } -if (unlikely(!var15)) { -var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2717); +if (unlikely(!var14)) { +var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AQclassid", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2474); +fatal_exit(1); +} +{ +nitc__parser_prod___AType___n_qid_61d(self, var_new_child); /* Direct call parser_prod$AType$n_qid= on */ +} +goto RET_LABEL; +} else { +} +var18 = self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val; /* _n_obra on */ +if (var18 == NULL) { +var19 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var18,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var18,var_other) on */ +var24 = var18 == var_other; +var22 = var24; +goto RET_LABEL23; +RET_LABEL23:(void)0; +} +} +var20 = var22; +goto RET_LABEL21; +RET_LABEL21:(void)0; +} +var19 = var20; +} +if (var19){ +/* isa nullable TObra */ +cltype26 = type_nullable__nitc__TObra.color; +idtype27 = type_nullable__nitc__TObra.id; +if(var_new_child == NULL) { +var25 = 1; +} else { +if(cltype26 >= var_new_child->type->table_size) { +var25 = 0; +} else { +var25 = var_new_child->type->type_table[cltype26] == idtype27; +} +} +if (unlikely(!var25)) { +var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TObra", var_class_name28); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2478); +fatal_exit(1); +} +{ +nitc__parser_prod___AType___n_obra_61d(self, var_new_child); /* Direct call parser_prod$AType$n_obra= on */ +} +goto RET_LABEL; +} else { +} +{ +{ /* Inline parser_nodes$AType$n_types (self) on */ +var31 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ +if (unlikely(var31 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1782); +fatal_exit(1); +} +var29 = var31; +RET_LABEL30:(void)0; +} +} +{ +var32 = nitc___nitc__ANodes___replace_child(var29, var_old_child, var_new_child); +} +if (var32){ +goto RET_LABEL; +} else { +} +var33 = self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val; /* _n_cbra on */ +if (var33 == NULL) { +var34 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var33,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var33,var_other) on */ +var39 = var33 == var_other; +var37 = var39; +goto RET_LABEL38; +RET_LABEL38:(void)0; +} +} +var35 = var37; +goto RET_LABEL36; +RET_LABEL36:(void)0; +} +var34 = var35; +} +if (var34){ +/* isa nullable TCbra */ +cltype41 = type_nullable__nitc__TCbra.color; +idtype42 = type_nullable__nitc__TCbra.id; +if(var_new_child == NULL) { +var40 = 1; +} else { +if(cltype41 >= var_new_child->type->table_size) { +var40 = 0; +} else { +var40 = var_new_child->type->type_table[cltype41] == idtype42; +} +} +if (unlikely(!var40)) { +var_class_name43 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCbra", var_class_name43); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2483); +fatal_exit(1); +} +{ +nitc__parser_prod___AType___n_cbra_61d(self, var_new_child); /* Direct call parser_prod$AType$n_cbra= on */ +} +goto RET_LABEL; +} else { +} +var44 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var44 == NULL) { +var45 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var44,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var44,var_other) on */ +var50 = var44 == var_other; +var48 = var50; +goto RET_LABEL49; +RET_LABEL49:(void)0; +} +} +var46 = var48; +goto RET_LABEL47; +RET_LABEL47:(void)0; +} +var45 = var46; +} +if (var45){ +/* isa nullable AAnnotations */ +cltype52 = type_nullable__nitc__AAnnotations.color; +idtype53 = type_nullable__nitc__AAnnotations.id; +if(var_new_child == NULL) { +var51 = 1; +} else { +if(cltype52 >= var_new_child->type->table_size) { +var51 = 0; +} else { +var51 = var_new_child->type->type_table[cltype52] == idtype53; +} +} +if (unlikely(!var51)) { +var_class_name54 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name54); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2487); fatal_exit(1); } { -nitc__parser_prod___AReturnExpr___n_expr_61d(self, var_new_child); /* Direct call parser_prod#AReturnExpr#n_expr= on */ +nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod$AType$n_annotations= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AReturnExpr#n_kwreturn= for (self: AReturnExpr, nullable TKwreturn) */ -void nitc__parser_prod___AReturnExpr___n_kwreturn_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwreturn */; +/* method parser_prod$AType$n_kwnullable= for (self: AType, nullable TKwnullable) */ +void nitc__parser_prod___AType___n_kwnullable_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwnullable */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val = var_node; /* _n_kwreturn on */ +self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val = var_node; /* _n_kwnullable on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -8178,8 +7640,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -8187,26 +7649,39 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AReturnExpr#n_expr= for (self: AReturnExpr, nullable AExpr) */ -void nitc__parser_prod___AReturnExpr___n_expr_61d(val* self, val* p0) { -val* var_node /* var node: nullable AExpr */; +/* method parser_prod$AType$n_qid= for (self: AType, AQclassid) */ +void nitc__parser_prod___AType___n_qid_61d(val* self, val* p0) { +val* var_node /* var node: AQclassid */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val = var_node; /* _n_qid on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod$AType$n_obra= for (self: AType, nullable TObra) */ +void nitc__parser_prod___AType___n_obra_61d(val* self, val* p0) { +val* var_node /* var node: nullable TObra */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_expr].val = var_node; /* _n_expr on */ +self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val = var_node; /* _n_obra on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -8217,8 +7692,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -8226,103 +7701,233 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AReturnExpr#visit_all for (self: AReturnExpr, Visitor) */ -void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable TKwreturn */; -val* var1 /* : nullable AExpr */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val; /* _n_kwreturn on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var1 = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_expr].val; /* _n_expr on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; -} -/* method parser_prod#ABreakExpr#init_abreakexpr for (self: ABreakExpr, nullable TKwbreak, nullable ALabel) */ -void nitc__parser_prod___ABreakExpr___init_abreakexpr(val* self, val* p0, val* p1) { -val* var_n_kwbreak /* var n_kwbreak: nullable TKwbreak */; -val* var_n_label /* var n_label: nullable ALabel */; +/* method parser_prod$AType$n_cbra= for (self: AType, nullable TCbra) */ +void nitc__parser_prod___AType___n_cbra_61d(val* self, val* p0) { +val* var_node /* var node: nullable TCbra */; short int var /* : Bool */; -short int var3 /* : Bool */; +short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; -} -} -var_n_kwbreak = p0; -var_n_label = p1; -if (unlikely(var_n_kwbreak == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2746); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val = var_n_kwbreak; /* _n_kwbreak on */ -if (var_n_kwbreak == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2747); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwbreak,self) on */ -if (unlikely(var_n_kwbreak == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_kwbreak->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} -} -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_n_label; /* _n_label on */ -if (var_n_label == NULL) { +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val = var_node; /* _n_cbra on */ +if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var5 = ((short int(*)(val* self, val* p0))(var_n_label->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_label, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -var6 = !var5; -var3 = var6; -goto RET_LABEL4; -RET_LABEL4:(void)0; +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var = var3; +var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_label,self) on */ -var_n_label->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#ABreakExpr#replace_child for (self: ABreakExpr, ANode, nullable ANode) */ -void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TKwbreak */; +/* method parser_prod$AType$n_annotations= for (self: AType, nullable AAnnotations) */ +void nitc__parser_prod___AType___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; +short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$AType$visit_all for (self: AType, Visitor) */ +void nitc__parser_prod___AType___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable TKwnullable */; +val* var1 /* : AQclassid */; +val* var2 /* : nullable TObra */; +val* var3 /* : ANodes[AType] */; +val* var5 /* : ANodes[AType] */; +val* var6 /* : nullable TCbra */; +val* var7 /* : nullable AAnnotations */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AType___n_kwnullable].val; /* _n_kwnullable on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__AType___n_qid].val; /* _n_qid on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_qid"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2522); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var2 = self->attrs[COLOR_nitc__parser_nodes__AType___n_obra].val; /* _n_obra on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +{ +{ /* Inline parser_nodes$AType$n_types (self) on */ +var5 = self->attrs[COLOR_nitc__parser_nodes__AType___n_types].val; /* _n_types on */ +if (unlikely(var5 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_types"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1782); +fatal_exit(1); +} +var3 = var5; +RET_LABEL4:(void)0; +} +} +{ +nitc___nitc__ANodes___visit_all(var3, var_v); /* Direct call parser_nodes$ANodes$visit_all on */ +} +var6 = self->attrs[COLOR_nitc__parser_nodes__AType___n_cbra].val; /* _n_cbra on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var6); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var7 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var7); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod$ALabel$init_alabel for (self: ALabel, nullable TKwlabel, nullable TId) */ +void nitc__parser_prod___ALabel___init_alabel(val* self, val* p0, val* p1) { +val* var_n_kwlabel /* var n_kwlabel: nullable TKwlabel */; +val* var_n_id /* var n_id: nullable TId */; +short int var /* : Bool */; +short int var3 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_kwlabel = p0; +var_n_id = p1; +if (unlikely(var_n_kwlabel == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2535); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val = var_n_kwlabel; /* _n_kwlabel on */ +if (var_n_kwlabel == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2536); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_n_kwlabel,self) on */ +if (unlikely(var_n_kwlabel == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_kwlabel->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_id,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var5 = ((short int(*)(val* self, val* p0))(var_n_id->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_id, var_other); /* == on */ +} +var6 = !var5; +var3 = var6; +goto RET_LABEL4; +RET_LABEL4:(void)0; +} +var = var3; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$ALabel$replace_child for (self: ALabel, ANode, nullable ANode) */ +void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwlabel */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : nullable ALabel */; +val* var7 /* : nullable TId */; short int var8 /* : Bool */; short int var9 /* : Bool */; short int var11 /* : Bool */; @@ -8333,17 +7938,20 @@ int idtype16; const char* var_class_name17; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val; /* _n_kwbreak on */ +var = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val; /* _n_kwlabel on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2754); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2543); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ var5 = var == var_other; var3 = var5; goto RET_LABEL4; @@ -8356,9 +7964,9 @@ RET_LABEL2:(void)0; } } if (var1){ -/* isa TKwbreak */ -cltype = type_nitc__TKwbreak.color; -idtype = type_nitc__TKwbreak.id; +/* isa TKwlabel */ +cltype = type_nitc__TKwlabel.color; +idtype = type_nitc__TKwlabel.id; if(var_new_child == NULL) { var6 = 0; } else { @@ -8370,24 +7978,24 @@ var6 = var_new_child->type->type_table[cltype] == idtype; } if (unlikely(!var6)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwbreak", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2755); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwlabel", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2544); fatal_exit(1); } { -nitc__parser_prod___ABreakExpr___n_kwbreak_61d(self, var_new_child); /* Direct call parser_prod#ABreakExpr#n_kwbreak= on */ +nitc__parser_prod___ALabel___n_kwlabel_61d(self, var_new_child); /* Direct call parser_prod$ALabel$n_kwlabel= on */ } goto RET_LABEL; } else { } -var7 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ +var7 = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val; /* _n_id on */ if (var7 == NULL) { var8 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var7,var_old_child) on */ +{ /* Inline kernel$Object$== (var7,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ var13 = var7 == var_other; var11 = var13; goto RET_LABEL12; @@ -8401,9 +8009,9 @@ RET_LABEL10:(void)0; var8 = var9; } if (var8){ -/* isa nullable ALabel */ -cltype15 = type_nullable__nitc__ALabel.color; -idtype16 = type_nullable__nitc__ALabel.id; +/* isa nullable TId */ +cltype15 = type_nullable__nitc__TId.color; +idtype16 = type_nullable__nitc__TId.id; if(var_new_child == NULL) { var14 = 1; } else { @@ -8415,51 +8023,51 @@ var14 = var_new_child->type->type_table[cltype15] == idtype16; } if (unlikely(!var14)) { var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2759); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TId", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2548); fatal_exit(1); } { -nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(self, var_new_child); /* Direct call parser_prod#ABreakExpr#n_label= on */ +nitc__parser_prod___ALabel___n_id_61d(self, var_new_child); /* Direct call parser_prod$ALabel$n_id= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#ABreakExpr#n_kwbreak= for (self: ABreakExpr, TKwbreak) */ -void nitc__parser_prod___ABreakExpr___n_kwbreak_61d(val* self, val* p0) { -val* var_node /* var node: TKwbreak */; +/* method parser_prod$ALabel$n_kwlabel= for (self: ALabel, TKwlabel) */ +void nitc__parser_prod___ALabel___n_kwlabel_61d(val* self, val* p0) { +val* var_node /* var node: TKwlabel */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val = var_node; /* _n_kwbreak on */ +self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val = var_node; /* _n_kwlabel on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#ABreakExpr#n_label= for (self: ABreakExpr, nullable ALabel) */ -void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(val* self, val* p0) { -val* var_node /* var node: nullable ALabel */; +/* method parser_prod$ALabel$n_id= for (self: ALabel, nullable TId) */ +void nitc__parser_prod___ALabel___n_id_61d(val* self, val* p0) { +val* var_node /* var node: nullable TId */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_node; /* _n_label on */ +self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val = var_node; /* _n_id on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -8470,8 +8078,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -8479,367 +8087,823 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#ABreakExpr#visit_all for (self: ABreakExpr, Visitor) */ -void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$ALabel$visit_all for (self: ALabel, Visitor) */ +void nitc__parser_prod___ALabel___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TKwbreak */; -val* var1 /* : nullable ALabel */; +val* var /* : TKwlabel */; +val* var1 /* : nullable TId */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val; /* _n_kwbreak on */ +var = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_kwlabel].val; /* _n_kwlabel on */ if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2778); +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwlabel"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2567); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__ALabel___n_id].val; /* _n_id on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod$ABlockExpr$init_ablockexpr for (self: ABlockExpr, Collection[Object], nullable TKwend) */ +void nitc__parser_prod___ABlockExpr___init_ablockexpr(val* self, val* p0, val* p1) { +val* var_n_expr /* var n_expr: Collection[Object] */; +val* var_n_kwend /* var n_kwend: nullable TKwend */; +val* var /* : ANodes[AExpr] */; +val* var3 /* : ANodes[AExpr] */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var7 /* : Bool */; +short int var8 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_expr = p0; +var_n_kwend = p1; +{ +{ /* Inline parser_nodes$ABlockExpr$n_expr (self) on */ +var3 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var3 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1811); fatal_exit(1); } +var = var3; +RET_LABEL2:(void)0; +} +} +{ +nitc___nitc__ANodes___unsafe_add_all(var, var_n_expr); /* Direct call parser_nodes$ANodes$unsafe_add_all on */ +} +self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val = var_n_kwend; /* _n_kwend on */ +if (var_n_kwend == NULL) { +var4 = 0; /* is null */ +} else { +var4 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_kwend,((val*)NULL)) on */ +var_other = ((val*)NULL); { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +var7 = ((short int(*)(val* self, val* p0))(var_n_kwend->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwend, var_other); /* == on */ +} +var8 = !var7; +var5 = var8; +goto RET_LABEL6; +RET_LABEL6:(void)0; +} +var4 = var5; +} +if (var4){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_kwend,self) on */ +var_n_kwend->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL9:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$ABlockExpr$replace_child for (self: ABlockExpr, ANode, nullable ANode) */ +void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +short int var3 /* : Bool */; +val* var4 /* : nullable TKwend */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var8 /* : Bool */; +short int var10 /* : Bool */; +short int var11 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +{ +{ /* Inline parser_nodes$ABlockExpr$n_expr (self) on */ +var2 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var2 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1811); +fatal_exit(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +var3 = nitc___nitc__ANodes___replace_child(var, var_old_child, var_new_child); +} +if (var3){ +goto RET_LABEL; +} else { +} +var4 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val; /* _n_kwend on */ +if (var4 == NULL) { +var5 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var4,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var4,var_other) on */ +var10 = var4 == var_other; +var8 = var10; +goto RET_LABEL9; +RET_LABEL9:(void)0; +} +} +var6 = var8; +goto RET_LABEL7; +RET_LABEL7:(void)0; +} +var5 = var6; +} +if (var5){ +/* isa nullable TKwend */ +cltype = type_nullable__nitc__TKwend.color; +idtype = type_nullable__nitc__TKwend.id; +if(var_new_child == NULL) { +var11 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var11 = 0; +} else { +var11 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var11)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwend", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2586); +fatal_exit(1); +} +{ +nitc__parser_prod___ABlockExpr___n_kwend_61d(self, var_new_child); /* Direct call parser_prod$ABlockExpr$n_kwend= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod$ABlockExpr$n_kwend= for (self: ABlockExpr, nullable TKwend) */ +void nitc__parser_prod___ABlockExpr___n_kwend_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwend */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val = var_node; /* _n_kwend on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; +} +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$ABlockExpr$visit_all for (self: ABlockExpr, Visitor) */ +void nitc__parser_prod___ABlockExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +val* var3 /* : nullable TKwend */; +var_v = p0; +{ +{ /* Inline parser_nodes$ABlockExpr$n_expr (self) on */ +var2 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var2 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 1811); +fatal_exit(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +nitc___nitc__ANodes___visit_all(var, var_v); /* Direct call parser_nodes$ANodes$visit_all on */ +} +var3 = self->attrs[COLOR_nitc__parser_nodes__ABlockExpr___n_kwend].val; /* _n_kwend on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod$AVardeclExpr$init_avardeclexpr for (self: AVardeclExpr, nullable TKwvar, nullable TId, nullable AType, nullable TAssign, nullable AExpr, nullable AAnnotations) */ +void nitc__parser_prod___AVardeclExpr___init_avardeclexpr(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { +val* var_n_kwvar /* var n_kwvar: nullable TKwvar */; +val* var_n_id /* var n_id: nullable TId */; +val* var_n_type /* var n_type: nullable AType */; +val* var_n_assign /* var n_assign: nullable TAssign */; +val* var_n_expr /* var n_expr: nullable AExpr */; +val* var_n_annotations /* var n_annotations: nullable AAnnotations */; +short int var /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var8 /* : Bool */; +short int var9 /* : Bool */; +short int var11 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +short int var17 /* : Bool */; +short int var18 /* : Bool */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var24 /* : Bool */; +short int var26 /* : Bool */; +short int var27 /* : Bool */; +short int var29 /* : Bool */; +short int var30 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_kwvar = p0; +var_n_id = p1; +var_n_type = p2; +var_n_assign = p3; +var_n_expr = p4; +var_n_annotations = p5; +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val = var_n_kwvar; /* _n_kwvar on */ +if (var_n_kwvar == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_kwvar,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var4 = ((short int(*)(val* self, val* p0))(var_n_kwvar->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwvar, var_other); /* == on */ +} +var5 = !var4; +var2 = var5; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var = var2; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_kwvar,self) on */ +var_n_kwvar->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL6:(void)0; +} +} +} else { +} +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2616); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2617); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_id->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { +var8 = 0; /* is null */ +} else { +var8 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_type,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var11 = ((short int(*)(val* self, val* p0))(var_n_type->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_type, var_other); /* == on */ +} +var12 = !var11; +var9 = var12; +goto RET_LABEL10; +RET_LABEL10:(void)0; +} +var8 = var9; +} +if (var8){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_type,self) on */ +var_n_type->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL13:(void)0; +} +} +} else { +} +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val = var_n_assign; /* _n_assign on */ +if (var_n_assign == NULL) { +var14 = 0; /* is null */ +} else { +var14 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_assign,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var17 = ((short int(*)(val* self, val* p0))(var_n_assign->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_assign, var_other); /* == on */ +} +var18 = !var17; +var15 = var18; +goto RET_LABEL16; +RET_LABEL16:(void)0; +} +var14 = var15; +} +if (var14){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_assign,self) on */ +var_n_assign->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL19:(void)0; +} +} +} else { +} +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +var20 = 0; /* is null */ +} else { +var20 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_expr,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var23 = ((short int(*)(val* self, val* p0))(var_n_expr->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_expr, var_other); /* == on */ +} +var24 = !var23; +var21 = var24; +goto RET_LABEL22; +RET_LABEL22:(void)0; +} +var20 = var21; +} +if (var20){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_expr,self) on */ +var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL25:(void)0; +} +} +} else { +} +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { +var26 = 0; /* is null */ +} else { +var26 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_n_annotations,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var29 = ((short int(*)(val* self, val* p0))(var_n_annotations->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_annotations, var_other); /* == on */ +} +var30 = !var29; +var27 = var30; +goto RET_LABEL28; +RET_LABEL28:(void)0; +} +var26 = var27; +} +if (var26){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_n_annotations,self) on */ +var_n_annotations->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL31:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod$AVardeclExpr$replace_child for (self: AVardeclExpr, ANode, nullable ANode) */ +void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable TKwvar */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : TId */; +short int var9 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +int cltype15; +int idtype16; +const char* var_class_name17; +val* var18 /* : nullable AType */; +short int var19 /* : Bool */; +short int var20 /* : Bool */; +short int var22 /* : Bool */; +short int var24 /* : Bool */; +short int var25 /* : Bool */; +int cltype26; +int idtype27; +const char* var_class_name28; +val* var29 /* : nullable TAssign */; +short int var30 /* : Bool */; +short int var31 /* : Bool */; +short int var33 /* : Bool */; +short int var35 /* : Bool */; +short int var36 /* : Bool */; +int cltype37; +int idtype38; +const char* var_class_name39; +val* var40 /* : nullable AExpr */; +short int var41 /* : Bool */; +short int var42 /* : Bool */; +short int var44 /* : Bool */; +short int var46 /* : Bool */; +short int var47 /* : Bool */; +int cltype48; +int idtype49; +const char* var_class_name50; +val* var51 /* : nullable AAnnotations */; +short int var52 /* : Bool */; +short int var53 /* : Bool */; +short int var55 /* : Bool */; +short int var57 /* : Bool */; +short int var58 /* : Bool */; +int cltype59; +int idtype60; +const char* var_class_name61; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val; /* _n_kwvar on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa nullable TKwvar */ +cltype = type_nullable__nitc__TKwvar.color; +idtype = type_nullable__nitc__TKwvar.id; +if(var_new_child == NULL) { +var7 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; } -var1 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ } -RET_LABEL:; +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwvar", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2631); +fatal_exit(1); } -/* method parser_prod#AAbortExpr#init_aabortexpr for (self: AAbortExpr, nullable TKwabort) */ -void nitc__parser_prod___AAbortExpr___init_aabortexpr(val* self, val* p0) { -val* var_n_kwabort /* var n_kwabort: nullable TKwabort */; { -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; -} -} -var_n_kwabort = p0; -if (unlikely(var_n_kwabort == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2787); -fatal_exit(1); +nitc__parser_prod___AVardeclExpr___n_kwvar_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_kwvar= on */ } -self->attrs[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort].val = var_n_kwabort; /* _n_kwabort on */ -if (var_n_kwabort == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2788); -fatal_exit(1); +goto RET_LABEL; } else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwabort,self) on */ -if (unlikely(var_n_kwabort == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_kwabort->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; } +var8 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val; /* _n_id on */ +if (unlikely(var8 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -RET_LABEL:; -} -/* method parser_prod#AAbortExpr#replace_child for (self: AAbortExpr, ANode, nullable ANode) */ -void nitc__parser_prod___AAbortExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TKwabort */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort].val; /* _n_kwabort on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2793); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2634); fatal_exit(1); } { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var13 = var8 == var_other; +var11 = var13; +goto RET_LABEL12; +RET_LABEL12:(void)0; } } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var9 = var11; +goto RET_LABEL10; +RET_LABEL10:(void)0; } } -if (var1){ -/* isa TKwabort */ -cltype = type_nitc__TKwabort.color; -idtype = type_nitc__TKwabort.id; +if (var9){ +/* isa TId */ +cltype15 = type_nitc__TId.color; +idtype16 = type_nitc__TId.id; if(var_new_child == NULL) { -var6 = 0; +var14 = 0; } else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; +if(cltype15 >= var_new_child->type->table_size) { +var14 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var14 = var_new_child->type->type_table[cltype15] == idtype16; } } -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabort", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2794); +if (unlikely(!var14)) { +var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2635); fatal_exit(1); } { -nitc__parser_prod___AAbortExpr___n_kwabort_61d(self, var_new_child); /* Direct call parser_prod#AAbortExpr#n_kwabort= on */ +nitc__parser_prod___AVardeclExpr___n_id_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_id= on */ } goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#AAbortExpr#n_kwabort= for (self: AAbortExpr, TKwabort) */ -void nitc__parser_prod___AAbortExpr___n_kwabort_61d(val* self, val* p0) { -val* var_node /* var node: TKwabort */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort].val = var_node; /* _n_kwabort on */ +var18 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val; /* _n_type on */ +if (var18 == NULL) { +var19 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var18,var_old_child) on */ +var_other = var_old_child; { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +{ /* Inline kernel$Object$is_same_instance (var18,var_other) on */ +var24 = var18 == var_other; +var22 = var24; +goto RET_LABEL23; +RET_LABEL23:(void)0; } } -RET_LABEL:; +var20 = var22; +goto RET_LABEL21; +RET_LABEL21:(void)0; } -/* method parser_prod#AAbortExpr#visit_all for (self: AAbortExpr, Visitor) */ -void nitc__parser_prod___AAbortExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : TKwabort */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AAbortExpr___n_kwabort].val; /* _n_kwabort on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwabort"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2808); -fatal_exit(1); +var19 = var20; } -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +if (var19){ +/* isa nullable AType */ +cltype26 = type_nullable__nitc__AType.color; +idtype27 = type_nullable__nitc__AType.id; +if(var_new_child == NULL) { +var25 = 1; +} else { +if(cltype26 >= var_new_child->type->table_size) { +var25 = 0; +} else { +var25 = var_new_child->type->type_table[cltype26] == idtype27; } -RET_LABEL:; } -/* method parser_prod#AContinueExpr#init_acontinueexpr for (self: AContinueExpr, nullable TKwcontinue, nullable ALabel) */ -void nitc__parser_prod___AContinueExpr___init_acontinueexpr(val* self, val* p0, val* p1) { -val* var_n_kwcontinue /* var n_kwcontinue: nullable TKwcontinue */; -val* var_n_label /* var n_label: nullable ALabel */; -short int var /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var5 /* : Bool */; -short int var7 /* : Bool */; -short int var8 /* : Bool */; -short int var10 /* : Bool */; -short int var11 /* : Bool */; -{ -{ /* Inline kernel#Object#init (self) on */ -RET_LABEL1:(void)0; +if (unlikely(!var25)) { +var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AType", var_class_name28); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2639); +fatal_exit(1); } +{ +nitc__parser_prod___AVardeclExpr___n_type_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_type= on */ } -var_n_kwcontinue = p0; -var_n_label = p1; -self->attrs[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue].val = var_n_kwcontinue; /* _n_kwcontinue on */ -if (var_n_kwcontinue == NULL) { -var = 0; /* is null */ +goto RET_LABEL; } else { -var = 1; /* arg is null and recv is not */ } -if (0) { -{ /* Inline kernel#Object#!= (var_n_kwcontinue,((val*)NULL)) on */ -var_other = ((val*)NULL); +var29 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val; /* _n_assign on */ +if (var29 == NULL) { +var30 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var29,var_old_child) on */ +var_other = var_old_child; { -var4 = ((short int(*)(val* self, val* p0))(var_n_kwcontinue->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwcontinue, var_other); /* == on */ -} -var5 = !var4; -var2 = var5; -goto RET_LABEL3; -RET_LABEL3:(void)0; +{ /* Inline kernel$Object$is_same_instance (var29,var_other) on */ +var35 = var29 == var_other; +var33 = var35; +goto RET_LABEL34; +RET_LABEL34:(void)0; } -var = var2; } -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_kwcontinue,self) on */ -var_n_kwcontinue->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL6:(void)0; +var31 = var33; +goto RET_LABEL32; +RET_LABEL32:(void)0; } +var30 = var31; } +if (var30){ +/* isa nullable TAssign */ +cltype37 = type_nullable__nitc__TAssign.color; +idtype38 = type_nullable__nitc__TAssign.id; +if(var_new_child == NULL) { +var36 = 1; } else { -} -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_n_label; /* _n_label on */ -if (var_n_label == NULL) { -var7 = 0; /* is null */ +if(cltype37 >= var_new_child->type->table_size) { +var36 = 0; } else { -var7 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var10 = ((short int(*)(val* self, val* p0))(var_n_label->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_label, var_other); /* == on */ +var36 = var_new_child->type->type_table[cltype37] == idtype38; } -var11 = !var10; -var8 = var11; -goto RET_LABEL9; -RET_LABEL9:(void)0; } -var7 = var8; +if (unlikely(!var36)) { +var_class_name39 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAssign", var_class_name39); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2643); +fatal_exit(1); } -if (var7){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_label,self) on */ -var_n_label->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL12:(void)0; -} +nitc__parser_prod___AVardeclExpr___n_assign_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_assign= on */ } +goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#AContinueExpr#replace_child for (self: AContinueExpr, ANode, nullable ANode) */ -void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable TKwcontinue */; -short int var1 /* : Bool */; -short int var2 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var4 /* : Bool */; -short int var6 /* : Bool */; -short int var7 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -val* var8 /* : nullable ALabel */; -short int var9 /* : Bool */; -short int var10 /* : Bool */; -short int var12 /* : Bool */; -short int var14 /* : Bool */; -short int var15 /* : Bool */; -int cltype16; -int idtype17; -const char* var_class_name18; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue].val; /* _n_kwcontinue on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ +var40 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val; /* _n_expr on */ +if (var40 == NULL) { +var41 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var,var_old_child) on */ +{ /* Inline kernel$Object$== (var40,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var6 = var == var_other; -var4 = var6; -goto RET_LABEL5; -RET_LABEL5:(void)0; +{ /* Inline kernel$Object$is_same_instance (var40,var_other) on */ +var46 = var40 == var_other; +var44 = var46; +goto RET_LABEL45; +RET_LABEL45:(void)0; } } -var2 = var4; -goto RET_LABEL3; -RET_LABEL3:(void)0; +var42 = var44; +goto RET_LABEL43; +RET_LABEL43:(void)0; } -var1 = var2; +var41 = var42; } -if (var1){ -/* isa nullable TKwcontinue */ -cltype = type_nullable__nitc__TKwcontinue.color; -idtype = type_nullable__nitc__TKwcontinue.id; +if (var41){ +/* isa nullable AExpr */ +cltype48 = type_nullable__nitc__AExpr.color; +idtype49 = type_nullable__nitc__AExpr.id; if(var_new_child == NULL) { -var7 = 1; +var47 = 1; } else { -if(cltype >= var_new_child->type->table_size) { -var7 = 0; +if(cltype48 >= var_new_child->type->table_size) { +var47 = 0; } else { -var7 = var_new_child->type->type_table[cltype] == idtype; +var47 = var_new_child->type->type_table[cltype48] == idtype49; } } -if (unlikely(!var7)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwcontinue", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2826); +if (unlikely(!var47)) { +var_class_name50 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name50); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2647); fatal_exit(1); } { -nitc__parser_prod___AContinueExpr___n_kwcontinue_61d(self, var_new_child); /* Direct call parser_prod#AContinueExpr#n_kwcontinue= on */ +nitc__parser_prod___AVardeclExpr___n_expr_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_expr= on */ } goto RET_LABEL; } else { } -var8 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ -if (var8 == NULL) { -var9 = 0; /* cannot be null */ +var51 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var51 == NULL) { +var52 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var8,var_old_child) on */ +{ /* Inline kernel$Object$== (var51,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ -var14 = var8 == var_other; -var12 = var14; -goto RET_LABEL13; -RET_LABEL13:(void)0; +{ /* Inline kernel$Object$is_same_instance (var51,var_other) on */ +var57 = var51 == var_other; +var55 = var57; +goto RET_LABEL56; +RET_LABEL56:(void)0; } } -var10 = var12; -goto RET_LABEL11; -RET_LABEL11:(void)0; +var53 = var55; +goto RET_LABEL54; +RET_LABEL54:(void)0; } -var9 = var10; +var52 = var53; } -if (var9){ -/* isa nullable ALabel */ -cltype16 = type_nullable__nitc__ALabel.color; -idtype17 = type_nullable__nitc__ALabel.id; +if (var52){ +/* isa nullable AAnnotations */ +cltype59 = type_nullable__nitc__AAnnotations.color; +idtype60 = type_nullable__nitc__AAnnotations.id; if(var_new_child == NULL) { -var15 = 1; +var58 = 1; } else { -if(cltype16 >= var_new_child->type->table_size) { -var15 = 0; +if(cltype59 >= var_new_child->type->table_size) { +var58 = 0; } else { -var15 = var_new_child->type->type_table[cltype16] == idtype17; +var58 = var_new_child->type->type_table[cltype59] == idtype60; } } -if (unlikely(!var15)) { -var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name18); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2830); +if (unlikely(!var58)) { +var_class_name61 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name61); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2651); fatal_exit(1); } { -nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ALabelable__n_label_61d(self, var_new_child); /* Direct call parser_prod#AContinueExpr#n_label= on */ +nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(self, var_new_child); /* Direct call parser_prod$AVardeclExpr$n_annotations= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AContinueExpr#n_kwcontinue= for (self: AContinueExpr, nullable TKwcontinue) */ -void nitc__parser_prod___AContinueExpr___n_kwcontinue_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwcontinue */; +/* method parser_prod$AVardeclExpr$n_kwvar= for (self: AVardeclExpr, nullable TKwvar) */ +void nitc__parser_prod___AVardeclExpr___n_kwvar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwvar */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue].val = var_node; /* _n_kwcontinue on */ +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val = var_node; /* _n_kwvar on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -8850,8 +8914,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -8859,349 +8923,99 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#AContinueExpr#n_label= for (self: AContinueExpr, nullable ALabel) */ -void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ALabelable__n_label_61d(val* self, val* p0) { -val* var_node /* var node: nullable ALabel */; -short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; +/* method parser_prod$AVardeclExpr$n_id= for (self: AVardeclExpr, TId) */ +void nitc__parser_prod___AVardeclExpr___n_id_61d(val* self, val* p0) { +val* var_node /* var node: TId */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_node; /* _n_label on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ -} -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -var = var1; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; -} -} -} else { -} -RET_LABEL:; -} -/* method parser_prod#AContinueExpr#visit_all for (self: AContinueExpr, Visitor) */ -void nitc__parser_prod___AContinueExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable TKwcontinue */; -val* var1 /* : nullable ALabel */; -var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__AContinueExpr___n_kwcontinue].val; /* _n_kwcontinue on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -var1 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ -{ -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ -} -RET_LABEL:; -} -/* method parser_prod#ADoExpr#init_adoexpr for (self: ADoExpr, nullable TKwdo, nullable AExpr, nullable ALabel) */ -void nitc__parser_prod___ADoExpr___init_adoexpr(val* self, val* p0, val* p1, val* p2) { -val* var_n_kwdo /* var n_kwdo: nullable TKwdo */; -val* var_n_block /* var n_block: nullable AExpr */; -val* var_n_label /* var n_label: nullable ALabel */; -short int var /* : Bool */; -short int var3 /* : Bool */; -val* var_other /* var other: nullable Object */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var12 /* : Bool */; +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val = var_node; /* _n_id on */ { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } -var_n_kwdo = p0; -var_n_block = p1; -var_n_label = p2; -if (unlikely(var_n_kwdo == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2860); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo].val = var_n_kwdo; /* _n_kwdo on */ -if (var_n_kwdo == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2861); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwdo,self) on */ -if (unlikely(var_n_kwdo == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_kwdo->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} -} -self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_block].val = var_n_block; /* _n_block on */ -if (var_n_block == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_block,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var5 = ((short int(*)(val* self, val* p0))(var_n_block->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_block, var_other); /* == on */ -} -var6 = !var5; -var3 = var6; -goto RET_LABEL4; -RET_LABEL4:(void)0; -} -var = var3; -} -if (var){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_block,self) on */ -var_n_block->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL7:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_n_label; /* _n_label on */ -if (var_n_label == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_label,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var11 = ((short int(*)(val* self, val* p0))(var_n_label->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_label, var_other); /* == on */ -} -var12 = !var11; -var9 = var12; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -var8 = var9; -} -if (var8){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_label,self) on */ -var_n_label->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL13:(void)0; -} -} -} else { -} RET_LABEL:; } -/* method parser_prod#ADoExpr#replace_child for (self: ADoExpr, ANode, nullable ANode) */ -void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TKwdo */; +/* method parser_prod$AVardeclExpr$n_type= for (self: AVardeclExpr, nullable AType) */ +void nitc__parser_prod___AVardeclExpr___n_type_61d(val* self, val* p0) { +val* var_node /* var node: nullable AType */; +short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; -short int var6 /* : Bool */; -int cltype; -int idtype; -const char* var_class_name; -val* var7 /* : nullable AExpr */; -short int var8 /* : Bool */; -short int var9 /* : Bool */; -short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; -int cltype15; -int idtype16; -const char* var_class_name17; -val* var18 /* : nullable ALabel */; -short int var19 /* : Bool */; -short int var20 /* : Bool */; -short int var22 /* : Bool */; -short int var24 /* : Bool */; -short int var25 /* : Bool */; -int cltype26; -int idtype27; -const char* var_class_name28; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo].val; /* _n_kwdo on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2870); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; -} -} -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; -} -} -if (var1){ -/* isa TKwdo */ -cltype = type_nitc__TKwdo.color; -idtype = type_nitc__TKwdo.id; -if(var_new_child == NULL) { -var6 = 0; -} else { -if(cltype >= var_new_child->type->table_size) { -var6 = 0; -} else { -var6 = var_new_child->type->type_table[cltype] == idtype; -} -} -if (unlikely(!var6)) { -var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdo", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2871); -fatal_exit(1); -} -{ -nitc__parser_prod___ADoExpr___n_kwdo_61d(self, var_new_child); /* Direct call parser_prod#ADoExpr#n_kwdo= on */ -} -goto RET_LABEL; -} else { -} -var7 = self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_block].val; /* _n_block on */ -if (var7 == NULL) { -var8 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var7,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var13 = var7 == var_other; -var11 = var13; -goto RET_LABEL12; -RET_LABEL12:(void)0; -} -} -var9 = var11; -goto RET_LABEL10; -RET_LABEL10:(void)0; -} -var8 = var9; -} -if (var8){ -/* isa nullable AExpr */ -cltype15 = type_nullable__nitc__AExpr.color; -idtype16 = type_nullable__nitc__AExpr.id; -if(var_new_child == NULL) { -var14 = 1; -} else { -if(cltype15 >= var_new_child->type->table_size) { -var14 = 0; -} else { -var14 = var_new_child->type->type_table[cltype15] == idtype16; -} -} -if (unlikely(!var14)) { -var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name17); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2875); -fatal_exit(1); -} -{ -nitc__parser_prod___ADoExpr___n_block_61d(self, var_new_child); /* Direct call parser_prod#ADoExpr#n_block= on */ -} -goto RET_LABEL; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val = var_node; /* _n_type on */ +if (var_node == NULL) { +var = 0; /* is null */ } else { +var = 1; /* arg is null and recv is not */ } -var18 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ -if (var18 == NULL) { -var19 = 0; /* cannot be null */ -} else { -{ /* Inline kernel#Object#== (var18,var_old_child) on */ -var_other = var_old_child; +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#is_same_instance (var18,var_other) on */ -var24 = var18 == var_other; -var22 = var24; -goto RET_LABEL23; -RET_LABEL23:(void)0; +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -var20 = var22; -goto RET_LABEL21; -RET_LABEL21:(void)0; +var = var1; +} +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } -var19 = var20; } -if (var19){ -/* isa nullable ALabel */ -cltype26 = type_nullable__nitc__ALabel.color; -idtype27 = type_nullable__nitc__ALabel.id; -if(var_new_child == NULL) { -var25 = 1; -} else { -if(cltype26 >= var_new_child->type->table_size) { -var25 = 0; } else { -var25 = var_new_child->type->type_table[cltype26] == idtype27; } +RET_LABEL:; } -if (unlikely(!var25)) { -var_class_name28 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name28); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2879); -fatal_exit(1); +/* method parser_prod$AVardeclExpr$n_assign= for (self: AVardeclExpr, nullable TAssign) */ +void nitc__parser_prod___AVardeclExpr___n_assign_61d(val* self, val* p0) { +val* var_node /* var node: nullable TAssign */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val = var_node; /* _n_assign on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -nitc__parser_prod___ADoExpr___nitc__parser_nodes__ALabelable__n_label_61d(self, var_new_child); /* Direct call parser_prod#ADoExpr#n_label= on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } -goto RET_LABEL; -} else { +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -RET_LABEL:; +var = var1; } -/* method parser_prod#ADoExpr#n_kwdo= for (self: ADoExpr, TKwdo) */ -void nitc__parser_prod___ADoExpr___n_kwdo_61d(val* self, val* p0) { -val* var_node /* var node: TKwdo */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo].val = var_node; /* _n_kwdo on */ +if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; +} } +} else { } RET_LABEL:; } -/* method parser_prod#ADoExpr#n_block= for (self: ADoExpr, nullable AExpr) */ -void nitc__parser_prod___ADoExpr___n_block_61d(val* self, val* p0) { +/* method parser_prod$AVardeclExpr$n_expr= for (self: AVardeclExpr, nullable AExpr) */ +void nitc__parser_prod___AVardeclExpr___n_expr_61d(val* self, val* p0) { val* var_node /* var node: nullable AExpr */; short int var /* : Bool */; short int var1 /* : Bool */; @@ -9209,14 +9023,14 @@ val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_block].val = var_node; /* _n_block on */ +self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val = var_node; /* _n_expr on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ @@ -9230,7 +9044,7 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } @@ -9239,26 +9053,26 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#ADoExpr#n_label= for (self: ADoExpr, nullable ALabel) */ -void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ALabelable__n_label_61d(val* self, val* p0) { -val* var_node /* var node: nullable ALabel */; +/* method parser_prod$AVardeclExpr$n_annotations= for (self: AVardeclExpr, nullable AAnnotations) */ +void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__Prod__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_node; /* _n_label on */ +self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -9269,8 +9083,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -9278,686 +9092,831 @@ RET_LABEL5:(void)0; } RET_LABEL:; } -/* method parser_prod#ADoExpr#visit_all for (self: ADoExpr, Visitor) */ -void nitc__parser_prod___ADoExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +/* method parser_prod$AVardeclExpr$visit_all for (self: AVardeclExpr, Visitor) */ +void nitc__parser_prod___AVardeclExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : TKwdo */; -val* var1 /* : nullable AExpr */; -val* var2 /* : nullable ALabel */; +val* var /* : nullable TKwvar */; +val* var1 /* : TId */; +val* var2 /* : nullable AType */; +val* var3 /* : nullable TAssign */; +val* var4 /* : nullable AExpr */; +val* var5 /* : nullable AAnnotations */; var_v = p0; -var = self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_kwdo].val; /* _n_kwdo on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdo"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2903); +var = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_kwvar].val; /* _n_kwvar on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_id].val; /* _n_id on */ +if (unlikely(var1 == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2691); fatal_exit(1); } { -nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var2 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_type].val; /* _n_type on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var3 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_assign].val; /* _n_assign on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var3); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var1 = self->attrs[COLOR_nitc__parser_nodes__ADoExpr___n_block].val; /* _n_block on */ +var4 = self->attrs[COLOR_nitc__parser_nodes__AVardeclExpr___n_expr].val; /* _n_expr on */ { -nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var4); /* Direct call parser_nodes$Visitor$enter_visit on */ } -var2 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ +var5 = self->attrs[COLOR_nitc__parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ { -nitc___nitc__Visitor___enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +nitc___nitc__Visitor___enter_visit(var_v, var5); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AIfExpr#init_aifexpr for (self: AIfExpr, nullable TKwif, nullable AExpr, nullable TKwthen, nullable AExpr, nullable TKwelse, nullable AExpr) */ -void nitc__parser_prod___AIfExpr___init_aifexpr(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5) { -val* var_n_kwif /* var n_kwif: nullable TKwif */; +/* method parser_prod$AReturnExpr$init_areturnexpr for (self: AReturnExpr, nullable TKwreturn, nullable AExpr) */ +void nitc__parser_prod___AReturnExpr___init_areturnexpr(val* self, val* p0, val* p1) { +val* var_n_kwreturn /* var n_kwreturn: nullable TKwreturn */; val* var_n_expr /* var n_expr: nullable AExpr */; -val* var_n_kwthen /* var n_kwthen: nullable TKwthen */; -val* var_n_then /* var n_then: nullable AExpr */; -val* var_n_kwelse /* var n_kwelse: nullable TKwelse */; -val* var_n_else /* var n_else: nullable AExpr */; short int var /* : Bool */; -short int var5 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; short int var7 /* : Bool */; short int var8 /* : Bool */; short int var10 /* : Bool */; short int var11 /* : Bool */; -short int var13 /* : Bool */; -short int var14 /* : Bool */; -short int var16 /* : Bool */; -short int var17 /* : Bool */; -short int var19 /* : Bool */; -short int var20 /* : Bool */; { -{ /* Inline kernel#Object#init (self) on */ +{ /* Inline kernel$Object$init (self) on */ RET_LABEL1:(void)0; } } -var_n_kwif = p0; +var_n_kwreturn = p0; var_n_expr = p1; -var_n_kwthen = p2; -var_n_then = p3; -var_n_kwelse = p4; -var_n_else = p5; -if (unlikely(var_n_kwif == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2918); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwif].val = var_n_kwif; /* _n_kwif on */ -if (var_n_kwif == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2919); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwif,self) on */ -if (unlikely(var_n_kwif == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_kwif->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL2:(void)0; -} -} -if (unlikely(var_n_expr == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2920); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_expr].val = var_n_expr; /* _n_expr on */ -if (var_n_expr == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2921); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ -if (unlikely(var_n_expr == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL3:(void)0; -} -} -if (unlikely(var_n_kwthen == NULL)) { -PRINT_ERROR("Runtime error: %s", "Cast failed"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2922); -fatal_exit(1); -} -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen].val = var_n_kwthen; /* _n_kwthen on */ -if (var_n_kwthen == NULL) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2923); -fatal_exit(1); -} else { -{ /* Inline parser_nodes#ANode#parent= (var_n_kwthen,self) on */ -if (unlikely(var_n_kwthen == NULL)) { -PRINT_ERROR("Runtime error: %s", "Receiver is null"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 46); -fatal_exit(1); -} -var_n_kwthen->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL4:(void)0; -} -} -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_then].val = var_n_then; /* _n_then on */ -if (var_n_then == NULL) { +self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val = var_n_kwreturn; /* _n_kwreturn on */ +if (var_n_kwreturn == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_then,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_kwreturn,((val*)NULL)) on */ var_other = ((val*)NULL); { -var7 = ((short int(*)(val* self, val* p0))(var_n_then->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_then, var_other); /* == on */ +var4 = ((short int(*)(val* self, val* p0))(var_n_kwreturn->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwreturn, var_other); /* == on */ } -var8 = !var7; -var5 = var8; -goto RET_LABEL6; -RET_LABEL6:(void)0; +var5 = !var4; +var2 = var5; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -var = var5; +var = var2; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_then,self) on */ -var_n_then->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL9:(void)0; -} -} -} else { -} -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse].val = var_n_kwelse; /* _n_kwelse on */ -if (var_n_kwelse == NULL) { -var10 = 0; /* is null */ -} else { -var10 = 1; /* arg is null and recv is not */ -} -if (0) { -{ /* Inline kernel#Object#!= (var_n_kwelse,((val*)NULL)) on */ -var_other = ((val*)NULL); -{ -var13 = ((short int(*)(val* self, val* p0))(var_n_kwelse->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_kwelse, var_other); /* == on */ -} -var14 = !var13; -var11 = var14; -goto RET_LABEL12; -RET_LABEL12:(void)0; -} -var10 = var11; -} -if (var10){ -{ -{ /* Inline parser_nodes#ANode#parent= (var_n_kwelse,self) on */ -var_n_kwelse->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL15:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_kwreturn,self) on */ +var_n_kwreturn->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL6:(void)0; } } } else { } -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_else].val = var_n_else; /* _n_else on */ -if (var_n_else == NULL) { -var16 = 0; /* is null */ +self->attrs[COLOR_nitc__parser_nodes__AEscapeExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +var7 = 0; /* is null */ } else { -var16 = 1; /* arg is null and recv is not */ +var7 = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_n_else,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_expr,((val*)NULL)) on */ var_other = ((val*)NULL); { -var19 = ((short int(*)(val* self, val* p0))(var_n_else->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_else, var_other); /* == on */ +var10 = ((short int(*)(val* self, val* p0))(var_n_expr->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_expr, var_other); /* == on */ } -var20 = !var19; -var17 = var20; -goto RET_LABEL18; -RET_LABEL18:(void)0; +var11 = !var10; +var8 = var11; +goto RET_LABEL9; +RET_LABEL9:(void)0; } -var16 = var17; +var7 = var8; } -if (var16){ +if (var7){ { -{ /* Inline parser_nodes#ANode#parent= (var_n_else,self) on */ -var_n_else->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL21:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_expr,self) on */ +var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL12:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AIfExpr#replace_child for (self: AIfExpr, ANode, nullable ANode) */ -void nitc__parser_prod___AIfExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod$AReturnExpr$replace_child for (self: AReturnExpr, ANode, nullable ANode) */ +void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : TKwif */; +val* var /* : nullable TKwreturn */; short int var1 /* : Bool */; +short int var2 /* : Bool */; val* var_other /* var other: nullable Object */; -short int var3 /* : Bool */; -short int var5 /* : Bool */; +short int var4 /* : Bool */; short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; const char* var_class_name; -val* var7 /* : AExpr */; -short int var8 /* : Bool */; +val* var8 /* : nullable AExpr */; +short int var9 /* : Bool */; short int var10 /* : Bool */; short int var12 /* : Bool */; -short int var13 /* : Bool */; -int cltype14; -int idtype15; -const char* var_class_name16; -val* var17 /* : TKwthen */; -short int var18 /* : Bool */; -short int var20 /* : Bool */; -short int var22 /* : Bool */; -short int var23 /* : Bool */; -int cltype24; -int idtype25; -const char* var_class_name26; -val* var27 /* : nullable AExpr */; -short int var28 /* : Bool */; -short int var29 /* : Bool */; -short int var31 /* : Bool */; -short int var33 /* : Bool */; -short int var34 /* : Bool */; -int cltype35; -int idtype36; -const char* var_class_name37; -val* var38 /* : nullable TKwelse */; -short int var39 /* : Bool */; -short int var40 /* : Bool */; -short int var42 /* : Bool */; -short int var44 /* : Bool */; -short int var45 /* : Bool */; -int cltype46; -int idtype47; -const char* var_class_name48; -val* var49 /* : nullable AExpr */; -short int var50 /* : Bool */; -short int var51 /* : Bool */; -short int var53 /* : Bool */; -short int var55 /* : Bool */; -short int var56 /* : Bool */; -int cltype57; -int idtype58; -const char* var_class_name59; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwif].val; /* _n_kwif on */ -if (unlikely(var == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwif"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2934); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var,var_old_child) on */ +var = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val; /* _n_kwreturn on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ -var5 = var == var_other; -var3 = var5; -goto RET_LABEL4; -RET_LABEL4:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } } -var1 = var3; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; } +var1 = var2; } if (var1){ -/* isa TKwif */ -cltype = type_nitc__TKwif.color; -idtype = type_nitc__TKwif.id; +/* isa nullable TKwreturn */ +cltype = type_nullable__nitc__TKwreturn.color; +idtype = type_nullable__nitc__TKwreturn.id; if(var_new_child == NULL) { -var6 = 0; +var7 = 1; } else { if(cltype >= var_new_child->type->table_size) { -var6 = 0; +var7 = 0; } else { -var6 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var6)) { +if (unlikely(!var7)) { var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwif", var_class_name); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2935); +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwreturn", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2713); fatal_exit(1); } { -nitc__parser_prod___AIfExpr___n_kwif_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_kwif= on */ +nitc__parser_prod___AReturnExpr___n_kwreturn_61d(self, var_new_child); /* Direct call parser_prod$AReturnExpr$n_kwreturn= on */ } goto RET_LABEL; } else { } -var7 = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_expr].val; /* _n_expr on */ -if (unlikely(var7 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2938); -fatal_exit(1); -} -{ -{ /* Inline kernel#Object#== (var7,var_old_child) on */ +var8 = self->attrs[COLOR_nitc__parser_nodes__AEscapeExpr___n_expr].val; /* _n_expr on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var7,var_other) on */ -var12 = var7 == var_other; +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} var10 = var12; goto RET_LABEL11; RET_LABEL11:(void)0; } +var9 = var10; } -var8 = var10; -goto RET_LABEL9; -RET_LABEL9:(void)0; -} -} -if (var8){ -/* isa AExpr */ -cltype14 = type_nitc__AExpr.color; -idtype15 = type_nitc__AExpr.id; +if (var9){ +/* isa nullable AExpr */ +cltype16 = type_nullable__nitc__AExpr.color; +idtype17 = type_nullable__nitc__AExpr.id; if(var_new_child == NULL) { -var13 = 0; +var15 = 1; } else { -if(cltype14 >= var_new_child->type->table_size) { -var13 = 0; +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -var13 = var_new_child->type->type_table[cltype14] == idtype15; +var15 = var_new_child->type->type_table[cltype16] == idtype17; } } -if (unlikely(!var13)) { -var_class_name16 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name16); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2939); +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2717); fatal_exit(1); } { -nitc__parser_prod___AIfExpr___n_expr_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_expr= on */ +nitc__parser_prod___AReturnExpr___nitc__parser_nodes__AEscapeExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod$AReturnExpr$n_expr= on */ } goto RET_LABEL; } else { } -var17 = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen].val; /* _n_kwthen on */ -if (unlikely(var17 == NULL)) { -PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwthen"); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2942); -fatal_exit(1); +RET_LABEL:; } +/* method parser_prod$AReturnExpr$n_kwreturn= for (self: AReturnExpr, nullable TKwreturn) */ +void nitc__parser_prod___AReturnExpr___n_kwreturn_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwreturn */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val = var_node; /* _n_kwreturn on */ +if (var_node == NULL) { +var = 0; /* is null */ +} else { +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); { -{ /* Inline kernel#Object#== (var17,var_old_child) on */ -var_other = var_old_child; -{ -{ /* Inline kernel#Object#is_same_instance (var17,var_other) on */ -var22 = var17 == var_other; -var20 = var22; -goto RET_LABEL21; -RET_LABEL21:(void)0; +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +} +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } +var = var1; } -var18 = var20; -goto RET_LABEL19; -RET_LABEL19:(void)0; +if (var){ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } } -if (var18){ -/* isa TKwthen */ -cltype24 = type_nitc__TKwthen.color; -idtype25 = type_nitc__TKwthen.id; -if(var_new_child == NULL) { -var23 = 0; } else { -if(cltype24 >= var_new_child->type->table_size) { -var23 = 0; +} +RET_LABEL:; +} +/* method parser_prod$AReturnExpr$n_expr= for (self: AReturnExpr, nullable AExpr) */ +void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__AEscapeExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: nullable AExpr */; +short int var /* : Bool */; +short int var1 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var3 /* : Bool */; +short int var4 /* : Bool */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__AEscapeExpr___n_expr].val = var_node; /* _n_expr on */ +if (var_node == NULL) { +var = 0; /* is null */ } else { -var23 = var_new_child->type->type_table[cltype24] == idtype25; +var = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ +var_other = ((val*)NULL); +{ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } +var4 = !var3; +var1 = var4; +goto RET_LABEL2; +RET_LABEL2:(void)0; } -if (unlikely(!var23)) { -var_class_name26 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwthen", var_class_name26); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2943); -fatal_exit(1); +var = var1; } +if (var){ { -nitc__parser_prod___AIfExpr___n_kwthen_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_kwthen= on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL5:(void)0; } -goto RET_LABEL; -} else { } -var27 = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_then].val; /* _n_then on */ -if (var27 == NULL) { -var28 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var27,var_old_child) on */ -var_other = var_old_child; +} +RET_LABEL:; +} +/* method parser_prod$AReturnExpr$visit_all for (self: AReturnExpr, Visitor) */ +void nitc__parser_prod___AReturnExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable TKwreturn */; +val* var1 /* : nullable AExpr */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AReturnExpr___n_kwreturn].val; /* _n_kwreturn on */ { -{ /* Inline kernel#Object#is_same_instance (var27,var_other) on */ -var33 = var27 == var_other; -var31 = var33; -goto RET_LABEL32; -RET_LABEL32:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__AEscapeExpr___n_expr].val; /* _n_expr on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } +RET_LABEL:; } -var29 = var31; -goto RET_LABEL30; -RET_LABEL30:(void)0; +/* method parser_prod$AYieldExpr$init_ayieldexpr for (self: AYieldExpr, nullable TKwyield, nullable AExpr) */ +void nitc__parser_prod___AYieldExpr___init_ayieldexpr(val* self, val* p0, val* p1) { +val* var_n_kwyield /* var n_kwyield: nullable TKwyield */; +val* var_n_expr /* var n_expr: nullable AExpr */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; } -var28 = var29; } -if (var28){ -/* isa nullable AExpr */ -cltype35 = type_nullable__nitc__AExpr.color; -idtype36 = type_nullable__nitc__AExpr.id; -if(var_new_child == NULL) { -var34 = 1; -} else { -if(cltype35 >= var_new_child->type->table_size) { -var34 = 0; +var_n_kwyield = p0; +var_n_expr = p1; +if (unlikely(var_n_kwyield == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2746); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_kwyield].val = var_n_kwyield; /* _n_kwyield on */ +if (var_n_kwyield == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2747); +fatal_exit(1); } else { -var34 = var_new_child->type->type_table[cltype35] == idtype36; +{ /* Inline parser_nodes$ANode$parent= (var_n_kwyield,self) on */ +if (unlikely(var_n_kwyield == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_kwyield->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; } -if (unlikely(!var34)) { -var_class_name37 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name37); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2947); +} +if (unlikely(var_n_expr == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2748); fatal_exit(1); } -{ -nitc__parser_prod___AIfExpr___n_then_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_then= on */ +self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -goto RET_LABEL; +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2749); +fatal_exit(1); } else { +{ /* Inline parser_nodes$ANode$parent= (var_n_expr,self) on */ +if (unlikely(var_n_expr == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_expr->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; } -var38 = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse].val; /* _n_kwelse on */ -if (var38 == NULL) { -var39 = 0; /* cannot be null */ +} +RET_LABEL:; +} +/* method parser_prod$AYieldExpr$replace_child for (self: AYieldExpr, ANode, nullable ANode) */ +void nitc__parser_prod___AYieldExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable TKwyield */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : nullable AExpr */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_kwyield].val; /* _n_kwyield on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var38,var_old_child) on */ +{ /* Inline kernel$Object$== (var,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var38,var_other) on */ -var44 = var38 == var_other; -var42 = var44; -goto RET_LABEL43; -RET_LABEL43:(void)0; +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } } -var40 = var42; -goto RET_LABEL41; -RET_LABEL41:(void)0; +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -var39 = var40; +var1 = var2; } -if (var39){ -/* isa nullable TKwelse */ -cltype46 = type_nullable__nitc__TKwelse.color; -idtype47 = type_nullable__nitc__TKwelse.id; +if (var1){ +/* isa TKwyield */ +cltype = type_nitc__TKwyield.color; +idtype = type_nitc__TKwyield.id; if(var_new_child == NULL) { -var45 = 1; +var7 = 0; } else { -if(cltype46 >= var_new_child->type->table_size) { -var45 = 0; +if(cltype >= var_new_child->type->table_size) { +var7 = 0; } else { -var45 = var_new_child->type->type_table[cltype46] == idtype47; +var7 = var_new_child->type->type_table[cltype] == idtype; } } -if (unlikely(!var45)) { -var_class_name48 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwelse", var_class_name48); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2951); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwyield", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2755); fatal_exit(1); } { -nitc__parser_prod___AIfExpr___n_kwelse_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_kwelse= on */ +nitc__parser_prod___AYieldExpr___n_kwyield_61d(self, var_new_child); /* Direct call parser_prod$AYieldExpr$n_kwyield= on */ } goto RET_LABEL; } else { } -var49 = self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_else].val; /* _n_else on */ -if (var49 == NULL) { -var50 = 0; /* cannot be null */ +var8 = self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_expr].val; /* _n_expr on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ } else { -{ /* Inline kernel#Object#== (var49,var_old_child) on */ +{ /* Inline kernel$Object$== (var8,var_old_child) on */ var_other = var_old_child; { -{ /* Inline kernel#Object#is_same_instance (var49,var_other) on */ -var55 = var49 == var_other; -var53 = var55; -goto RET_LABEL54; -RET_LABEL54:(void)0; +{ /* Inline kernel$Object$is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } } -var51 = var53; -goto RET_LABEL52; -RET_LABEL52:(void)0; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } -var50 = var51; +var9 = var10; } -if (var50){ -/* isa nullable AExpr */ -cltype57 = type_nullable__nitc__AExpr.color; -idtype58 = type_nullable__nitc__AExpr.id; +if (var9){ +/* isa AExpr */ +cltype16 = type_nitc__AExpr.color; +idtype17 = type_nitc__AExpr.id; if(var_new_child == NULL) { -var56 = 1; +var15 = 0; } else { -if(cltype57 >= var_new_child->type->table_size) { -var56 = 0; +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -var56 = var_new_child->type->type_table[cltype57] == idtype58; +var15 = var_new_child->type->type_table[cltype16] == idtype17; } } -if (unlikely(!var56)) { -var_class_name59 = var_new_child == NULL ? "null" : var_new_child->type->name; -PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AExpr", var_class_name59); -PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2955); +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2759); fatal_exit(1); } { -nitc__parser_prod___AIfExpr___n_else_61d(self, var_new_child); /* Direct call parser_prod#AIfExpr#n_else= on */ +nitc__parser_prod___AYieldExpr___n_expr_61d(self, var_new_child); /* Direct call parser_prod$AYieldExpr$n_expr= on */ } goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_kwif= for (self: AIfExpr, TKwif) */ -void nitc__parser_prod___AIfExpr___n_kwif_61d(val* self, val* p0) { -val* var_node /* var node: TKwif */; +/* method parser_prod$AYieldExpr$n_kwyield= for (self: AYieldExpr, nullable TKwyield) */ +void nitc__parser_prod___AYieldExpr___n_kwyield_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwyield */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwif].val = var_node; /* _n_kwif on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_kwyield].val = var_node; /* _n_kwyield on */ +if (var_node == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2767); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +if (unlikely(var_node == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_expr= for (self: AIfExpr, AExpr) */ -void nitc__parser_prod___AIfExpr___n_expr_61d(val* self, val* p0) { -val* var_node /* var node: AExpr */; +/* method parser_prod$AYieldExpr$n_expr= for (self: AYieldExpr, nullable AExpr) */ +void nitc__parser_prod___AYieldExpr___n_expr_61d(val* self, val* p0) { +val* var_node /* var node: nullable AExpr */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_expr].val = var_node; /* _n_expr on */ -{ -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_expr].val = var_node; /* _n_expr on */ +if (var_node == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2772); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +if (unlikely(var_node == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL1:(void)0; } } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_kwthen= for (self: AIfExpr, TKwthen) */ -void nitc__parser_prod___AIfExpr___n_kwthen_61d(val* self, val* p0) { -val* var_node /* var node: TKwthen */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwthen].val = var_node; /* _n_kwthen on */ +/* method parser_prod$AYieldExpr$visit_all for (self: AYieldExpr, Visitor) */ +void nitc__parser_prod___AYieldExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable TKwyield */; +val* var1 /* : nullable AExpr */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_kwyield].val; /* _n_kwyield on */ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL1:(void)0; +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ } +var1 = self->attrs[COLOR_nitc__parser_nodes__AYieldExpr___n_expr].val; /* _n_expr on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_then= for (self: AIfExpr, nullable AExpr) */ -void nitc__parser_prod___AIfExpr___n_then_61d(val* self, val* p0) { -val* var_node /* var node: nullable AExpr */; +/* method parser_prod$ABreakExpr$init_abreakexpr for (self: ABreakExpr, nullable TKwbreak, nullable ALabel) */ +void nitc__parser_prod___ABreakExpr___init_abreakexpr(val* self, val* p0, val* p1) { +val* var_n_kwbreak /* var n_kwbreak: nullable TKwbreak */; +val* var_n_label /* var n_label: nullable ALabel */; short int var /* : Bool */; -short int var1 /* : Bool */; -val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_then].val = var_node; /* _n_then on */ -if (var_node == NULL) { +val* var_other /* var other: nullable Object */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +{ +{ /* Inline kernel$Object$init (self) on */ +RET_LABEL1:(void)0; +} +} +var_n_kwbreak = p0; +var_n_label = p1; +if (unlikely(var_n_kwbreak == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2788); +fatal_exit(1); +} +self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val = var_n_kwbreak; /* _n_kwbreak on */ +if (var_n_kwbreak == NULL) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2789); +fatal_exit(1); +} else { +{ /* Inline parser_nodes$ANode$parent= (var_n_kwbreak,self) on */ +if (unlikely(var_n_kwbreak == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_nodes, 60); +fatal_exit(1); +} +var_n_kwbreak->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_n_label; /* _n_label on */ +if (var_n_label == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_n_label,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var5 = ((short int(*)(val* self, val* p0))(var_n_label->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_n_label, var_other); /* == on */ } -var4 = !var3; -var1 = var4; -goto RET_LABEL2; -RET_LABEL2:(void)0; +var6 = !var5; +var3 = var6; +goto RET_LABEL4; +RET_LABEL4:(void)0; } -var = var1; +var = var3; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +{ /* Inline parser_nodes$ANode$parent= (var_n_label,self) on */ +var_n_label->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } } } else { } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_kwelse= for (self: AIfExpr, nullable TKwelse) */ -void nitc__parser_prod___AIfExpr___n_kwelse_61d(val* self, val* p0) { -val* var_node /* var node: nullable TKwelse */; -short int var /* : Bool */; +/* method parser_prod$ABreakExpr$replace_child for (self: ABreakExpr, ANode, nullable ANode) */ +void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwbreak */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; -short int var4 /* : Bool */; -var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_kwelse].val = var_node; /* _n_kwelse on */ -if (var_node == NULL) { -var = 0; /* is null */ -} else { -var = 1; /* arg is null and recv is not */ +short int var5 /* : Bool */; +short int var6 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var7 /* : nullable ALabel */; +short int var8 /* : Bool */; +short int var9 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +int cltype15; +int idtype16; +const char* var_class_name17; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val; /* _n_kwbreak on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); } -if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ -var_other = ((val*)NULL); +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2796); +fatal_exit(1); +} +{ +{ /* Inline kernel$Object$== (var,var_old_child) on */ +var_other = var_old_child; { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +{ /* Inline kernel$Object$is_same_instance (var,var_other) on */ +var5 = var == var_other; +var3 = var5; +goto RET_LABEL4; +RET_LABEL4:(void)0; } -var4 = !var3; -var1 = var4; +} +var1 = var3; goto RET_LABEL2; RET_LABEL2:(void)0; } -var = var1; } -if (var){ +if (var1){ +/* isa TKwbreak */ +cltype = type_nitc__TKwbreak.color; +idtype = type_nitc__TKwbreak.id; +if(var_new_child == NULL) { +var6 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var6 = 0; +} else { +var6 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var6)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwbreak", var_class_name); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2797); +fatal_exit(1); +} { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ -RET_LABEL5:(void)0; +nitc__parser_prod___ABreakExpr___n_kwbreak_61d(self, var_new_child); /* Direct call parser_prod$ABreakExpr$n_kwbreak= on */ +} +goto RET_LABEL; +} else { +} +var7 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ +if (var7 == NULL) { +var8 = 0; /* cannot be null */ +} else { +{ /* Inline kernel$Object$== (var7,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel$Object$is_same_instance (var7,var_other) on */ +var13 = var7 == var_other; +var11 = var13; +goto RET_LABEL12; +RET_LABEL12:(void)0; } } +var9 = var11; +goto RET_LABEL10; +RET_LABEL10:(void)0; +} +var8 = var9; +} +if (var8){ +/* isa nullable ALabel */ +cltype15 = type_nullable__nitc__ALabel.color; +idtype16 = type_nullable__nitc__ALabel.id; +if(var_new_child == NULL) { +var14 = 1; +} else { +if(cltype15 >= var_new_child->type->table_size) { +var14 = 0; +} else { +var14 = var_new_child->type->type_table[cltype15] == idtype16; +} +} +if (unlikely(!var14)) { +var_class_name17 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ALabel", var_class_name17); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2801); +fatal_exit(1); +} +{ +nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(self, var_new_child); /* Direct call parser_prod$ABreakExpr$n_label= on */ +} +goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AIfExpr#n_else= for (self: AIfExpr, nullable AExpr) */ -void nitc__parser_prod___AIfExpr___n_else_61d(val* self, val* p0) { -val* var_node /* var node: nullable AExpr */; +/* method parser_prod$ABreakExpr$n_kwbreak= for (self: ABreakExpr, TKwbreak) */ +void nitc__parser_prod___ABreakExpr___n_kwbreak_61d(val* self, val* p0) { +val* var_node /* var node: TKwbreak */; +var_node = p0; +self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val = var_node; /* _n_kwbreak on */ +{ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod$ABreakExpr$n_label= for (self: ABreakExpr, nullable ALabel) */ +void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ALabelable__n_label_61d(val* self, val* p0) { +val* var_node /* var node: nullable ALabel */; short int var /* : Bool */; short int var1 /* : Bool */; val* var_other /* var other: nullable Object */; short int var3 /* : Bool */; short int var4 /* : Bool */; var_node = p0; -self->attrs[COLOR_nitc__parser_nodes__AIfExpr___n_else].val = var_node; /* _n_else on */ +self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val = var_node; /* _n_label on */ if (var_node == NULL) { var = 0; /* is null */ } else { var = 1; /* arg is null and recv is not */ } if (0) { -{ /* Inline kernel#Object#!= (var_node,((val*)NULL)) on */ +{ /* Inline kernel$Object$!= (var_node,((val*)NULL)) on */ var_other = ((val*)NULL); { -var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ +var3 = ((short int(*)(val* self, val* p0))(var_node->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_node, var_other); /* == on */ } var4 = !var3; var1 = var4; @@ -9968,8 +9927,8 @@ var = var1; } if (var){ { -{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ -var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ +{ /* Inline parser_nodes$ANode$parent= (var_node,self) on */ +var_node->attrs[COLOR_nitc__parser_nodes__ANode___parent].val = self; /* _parent on */ RET_LABEL5:(void)0; } } @@ -9977,3 +9936,27 @@ RET_LABEL5:(void)0; } RET_LABEL:; } +/* method parser_prod$ABreakExpr$visit_all for (self: ABreakExpr, Visitor) */ +void nitc__parser_prod___ABreakExpr___nitc__parser_nodes__ANode__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TKwbreak */; +val* var1 /* : nullable ALabel */; +var_v = p0; +var = self->attrs[COLOR_nitc__parser_nodes__ABreakExpr___n_kwbreak].val; /* _n_kwbreak on */ +if (unlikely(var == NULL)) { +if(catchStack.cursor >= 0){ +longjmp(catchStack.envs[catchStack.cursor], 1); +} +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwbreak"); +PRINT_ERROR(" (%s:%d)\n", FILE_nitc__parser_prod, 2820); +fatal_exit(1); +} +{ +nitc___nitc__Visitor___enter_visit(var_v, var); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +var1 = self->attrs[COLOR_nitc__parser_nodes__ALabelable___n_label].val; /* _n_label on */ +{ +nitc___nitc__Visitor___enter_visit(var_v, var1); /* Direct call parser_nodes$Visitor$enter_visit on */ +} +RET_LABEL:; +}