Handle resolving to native modules.

This commit is contained in:
Rafael Ávila de Espíndola 2011-03-10 21:33:53 -05:00
parent bc5a8393e7
commit 0117cf2fc2
2 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,7 @@ tag def {
def_obj(def_id);
def_obj_field(def_id);
def_mod(def_id);
def_native_mod(def_id);
def_const(def_id);
def_arg(def_id);
def_local(def_id);

View File

@ -71,6 +71,13 @@ fn unwrap_def(def_wrap d) -> def {
}
}
}
case (def_wrap_native_mod(?m)) {
alt (m.node) {
case (ast.item_native_mod(_, _, ?id)) {
ret ast.def_native_mod(id);
}
}
}
case (def_wrap_other(?d)) {
ret d;
}