return !(env->class_def && GET(flag, ae_flag_global)) ? GW_OK :GW_ERROR;
}
-ANN Type find_type(const Env env, ID_List path) {
- Type type = nspc_lookup_type1(env->curr, path->xid);
-if(!type && env->class_def) {
- Type base = env->class_def->e->parent;
- while(base && base->nspc) {
- if((type = nspc_lookup_type1(base->nspc, path->xid)))
- break;
+ANN Type _find_type(const Env env, const Symbol xid) {
+ Type type = nspc_lookup_type1(env->curr, xid);
+ if(!type && env->class_def) {
+ Type base = env->class_def->e->parent;
+ while(base && base->nspc) {
+ if((type = nspc_lookup_type1(base->nspc, xid)))
+ break;
+ }
}
+ return type;
}
+ANN Type find_type(const Env env, ID_List path) {
+ Type type = _find_type(env, path->xid);
CHECK_OO(type)
Nspc nspc = type->nspc;
path = path->next;