Skip to content

Commit 8ca52a0

Browse files
committed
---
yaml --- r: 7034 b: refs/heads/master c: 0e98e64 h: refs/heads/master v: v3
1 parent d211762 commit 8ca52a0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1dec1c8813768f86e6c0f581fb0bea07fa70a4c8
2+
refs/heads/master: 0e98e64bc2eb1ed87dfcb030a92c9e112c5df7a2

trunk/src/comp/middle/ast_map.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ fn map_native_item(cx: ctx, i: @native_item) {
8888

8989
fn map_expr(cx: ctx, ex: @expr) {
9090
cx.map.insert(ex.id, node_expr(ex));
91+
alt ex.node {
92+
expr_anon_obj(ao) {
93+
for m in ao.methods {
94+
cx.map.insert(m.id, node_obj_method(m));
95+
}
96+
}
97+
_ {}
98+
}
9199
}
92100

93101
fn new_smallintmap_int_adapter<copy V>() -> std::map::hashmap<int, V> {

trunk/src/comp/middle/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ fn create_function(fcx: @fn_ctxt) -> @metadata<subprogram_md> {
726726
}
727727
}
728728
}
729-
ast_map::node_obj_method(method) {
729+
ast_map::node_obj_method(method) | ast_map::node_method(method) {
730730
(method.ident, method.decl.output, method.id)
731731
}
732732
ast_map::node_res_ctor(item) {

0 commit comments

Comments
 (0)