Add more item types to the ast_map so the test suite can build with debug info.

This commit is contained in:
Josh Matthews 2012-01-05 01:19:50 -05:00
parent 1dec1c8813
commit 0e98e64bc2
2 changed files with 9 additions and 1 deletions

View File

@ -88,6 +88,14 @@ fn map_native_item(cx: ctx, i: @native_item) {
fn map_expr(cx: ctx, ex: @expr) {
cx.map.insert(ex.id, node_expr(ex));
alt ex.node {
expr_anon_obj(ao) {
for m in ao.methods {
cx.map.insert(m.id, node_obj_method(m));
}
}
_ {}
}
}
fn new_smallintmap_int_adapter<copy V>() -> std::map::hashmap<int, V> {

View File

@ -726,7 +726,7 @@ fn create_function(fcx: @fn_ctxt) -> @metadata<subprogram_md> {
}
}
}
ast_map::node_obj_method(method) {
ast_map::node_obj_method(method) | ast_map::node_method(method) {
(method.ident, method.decl.output, method.id)
}
ast_map::node_res_ctor(item) {