const size_t tdepth = depth + src->array_depth;
const Type base = tdepth > 1 ? array_type(env, src, tdepth - 1) : src;
struct TemplateScan ts = {.t = base, /*.td=td*/ };
- struct Op_Import opi = {.op = insert_symbol("@scan"),
+ struct Op_Import opi = {.op = insert_symbol("class"),
.lhs = env->gwion->type[et_array],
.data = (uintptr_t)&ts};
return op_check(env, &opi);
GWI_BB(gwi_oper_end(gwi, "@each_idx", NULL))
GWI_BB(gwi_oper_ini(gwi, "Array", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_array_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
GWI_BB(gwi_oper_ini(gwi, (m_str)OP_ANY_TYPE, NULL, "bool"))
GWI_BB(gwi_oper_end(gwi, "@array_init", NoOp))
GWI_BB(gwi_oper_ini(gwi, "funptr", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_closure_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
GWI_BB(gwi_oper_ini(gwi, (m_str)OP_ANY_TYPE, "function", NULL))
GWI_BB(gwi_oper_add(gwi, opck_func_call))
GWI_BB(gwi_oper_ini(gwi, "Dict", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_dict_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
GWI_BB(gwi_oper_ini(gwi, "Dict", NULL, "int"))
GWI_BB(gwi_oper_emi(gwi, opem_dict_each))
GWI_BB(gwi_oper_end(gwi, "!", NULL))
GWI_BB(gwi_oper_ini(gwi, "@Compound", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_struct_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
return GW_OK;
}
GWI_BB(gwi_class_end(gwi))
GWI_BB(gwi_oper_ini(gwi, "Ptr", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_ptr_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
GWI_BB(gwi_oper_ini(gwi, (m_str)OP_ANY_TYPE, "Ptr", NULL))
GWI_BB(gwi_oper_add(gwi, opck_ptr_assign))
GWI_BB(gwi_oper_emi(gwi, opem_ptr_assign))
gwidoc(gwi, "internal `Ref` type creation.");
GWI_BB(gwi_oper_ini(gwi, "Ref", NULL, NULL))
GWI_BB(gwi_oper_add(gwi, opck_ref_scan))
- GWI_BB(gwi_oper_end(gwi, "@scan", NULL))
+ GWI_BB(gwi_oper_end(gwi, "class", NULL))
return GW_OK;
}
? t->info->cdef->base.tmpl->list : NULL;
const bool is_spread = is_spread_tmpl(t->info->cdef->base.tmpl);
if(!single_variadic) CHECK_BO(check_tmpl(env, tl, sl, td->pos, is_spread));
- struct Op_Import opi = {.op = insert_symbol("@scan"),
+ struct Op_Import opi = {.op = insert_symbol("class"),
.lhs = t,
.data = (uintptr_t)&ts,
.pos = td->pos};