mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
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
@ -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> {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user