-Subproject commit 43c1eb04340b41b4ddb44deb0322d4e4f62a2969
+Subproject commit 668bf4463056cd0fb19e9f66c8ba60f9d5d8275b
type_decl->flag = udef->flag;
const Var_Decl var_decl = new_var_decl(emit->gwion->mp, udef->xid, NULL, loc_cpy(emit->gwion->mp, udef->pos));
const Var_Decl_List var_decl_list = new_var_decl_list(emit->gwion->mp, var_decl, NULL);
- const Exp exp = new_exp_decl(emit->gwion->mp, type_decl, var_decl_list);
+ const Exp exp = new_exp_decl(emit->gwion->mp, type_decl, var_decl_list, loc_cpy(emit->gwion->mp, udef->pos));
exp->d.exp_decl.type = udef->value->type;
var_decl->value = udef->value;
const m_bool ret = emit_exp_decl(emit, &exp->d.exp_decl);
DECL_OO(Type_Decl*, td, = gwi_str2decl(gwi, type))
const Var_Decl_List vlist = gwi_str2varlist(gwi, name);
if(vlist)
- return new_exp_decl(gwi->gwion->mp, td, vlist);
+ return new_exp_decl(gwi->gwion->mp, td, vlist, loc(gwi));
free_type_decl(gwi->gwion->mp, td);
return NULL;
}
ANN Exp symbol_owned_exp(const Gwion gwion, const Symbol *data) {
const Value v = prim_self(data)->value;
const Exp base = new_prim_id(gwion->mp, dot_symbol(gwion->st, v), loc_cpy(gwion->mp, prim_pos(data)));
- const Exp dot = new_exp_dot(gwion->mp, base, *data);
+ const Exp dot = new_exp_dot(gwion->mp, base, *data, loc_cpy(gwion->mp, prim_pos(data)));
const Type owner = v->from->owner_class;
dot->d.exp_dot.t_base = dot->d.exp_dot.base->info->type = !GET_FLAG(v, static) ?
owner : type_class(gwion, owner);