Change 'iface' to 'trait' internally; parse trait as iface synonym

This commit is contained in:
Lindsey Kuper 2012-07-03 16:30:42 -07:00
parent d93f3c5d83
commit 33334f3c43
49 changed files with 453 additions and 451 deletions

View file

@ -214,11 +214,11 @@ fn map_item(i: @item, cx: ctx, v: vt) {
extend(cx, i.ident)));
}
}
item_class(tps, ifces, items, ctor, dtor, _) {
item_class(tps, traits, items, ctor, dtor, _) {
let (_, ms) = ast_util::split_class_items(items);
// Map iface refs to their parent classes. This is
// Map trait refs to their parent classes. This is
// so we can find the self_ty
do vec::iter(ifces) |p| { cx.map.insert(p.id,
do vec::iter(traits) |p| { cx.map.insert(p.id,
node_item(i, item_path)); };
let d_id = ast_util::local_def(i.id);
let p = extend(cx, i.ident);