fix: location of type is incorrect

This commit is contained in:
TopchetoEU 2022-10-28 13:07:27 +03:00
parent f58eb14a00
commit ec2d29ef18

View File

@ -17,7 +17,9 @@ bool ast::parse_type(ast_ctx_t &ctx, size_t &res_i, map_t &out) {
auto &nmsp_arr = nmsp["content"].array(); auto &nmsp_arr = nmsp["content"].array();
h.i--;
out["location"] = conv::loc_to_map(h.res_loc()); out["location"] = conv::loc_to_map(h.res_loc());
h.i++;
out["name"] = nmsp_arr.back(); out["name"] = nmsp_arr.back();
out["ptr_n"] = (float)ptr_n; out["ptr_n"] = (float)ptr_n;
nmsp_arr.pop_back(); nmsp_arr.pop_back();