ANN static m_int gwi_item_tmpl(const Gwi gwi) {
const MemPool mp = gwi->gwion->mp;
- const Stmt stmt = new_stmt_exp(mp, ae_stmt_exp, gwi->ck->exp);
+ const Stmt stmt = new_stmt_exp(mp, ae_stmt_exp, gwi->ck->exp, loc(gwi));
const Stmt_List slist = new_stmt_list(mp, stmt, NULL);
Section* section = new_section_stmt_list(mp, slist);
const Ast body = new_ast(mp, section, NULL);
ANN Type check_exp_unary_spork(const Env env, const Stmt code);
ANN static void fork_exp(const Env env, const Exp_Unary* unary) {
- const Stmt stmt = new_stmt_exp(env->gwion->mp, ae_stmt_exp, unary->exp);
+ const Stmt stmt = new_stmt_exp(env->gwion->mp, ae_stmt_exp, unary->exp,
+ loc_cpy(env->gwion->mp, unary->exp->pos));
const Stmt_List list = new_stmt_list(env->gwion->mp, stmt, NULL);
- const Stmt code = new_stmt_code(env->gwion->mp, list);
+ const Stmt code = new_stmt_code(env->gwion->mp, list,
+ loc_cpy(env->gwion->mp, unary->exp->pos));
((Exp_Unary*)unary)->exp = NULL;
((Exp_Unary*)unary)->code = code;
}