Add more item types to the ast_map so the test suite can build with debug info.
This commit is contained in:
parent
1dec1c8813
commit
0e98e64bc2
2 changed files with 9 additions and 1 deletions
|
@ -88,6 +88,14 @@ fn map_native_item(cx: ctx, i: @native_item) {
|
||||||
|
|
||||||
fn map_expr(cx: ctx, ex: @expr) {
|
fn map_expr(cx: ctx, ex: @expr) {
|
||||||
cx.map.insert(ex.id, node_expr(ex));
|
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> {
|
fn new_smallintmap_int_adapter<copy V>() -> std::map::hashmap<int, V> {
|
||||||
|
|
|
@ -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)
|
(method.ident, method.decl.output, method.id)
|
||||||
}
|
}
|
||||||
ast_map::node_res_ctor(item) {
|
ast_map::node_res_ctor(item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue