Visit item macros.

This commit is contained in:
Eric Holk 2012-07-10 13:24:22 -07:00
parent 22e955a76a
commit 877ebed6cf
3 changed files with 3 additions and 4 deletions
src
libsyntax
rustc/middle

@ -2626,7 +2626,6 @@ class parser {
{
// item macro.
let pth = self.parse_path_without_tps();
#error("parsing invocation of %s", *pth.idents[0]);
self.expect(token::NOT);
let id = self.parse_ident();
let tts = self.parse_unspanned_seq(token::LBRACE, token::RBRACE,

@ -163,7 +163,7 @@ fn visit_item<E>(i: @item, e: E, v: vt<E>) {
v.visit_ty(m.decl.output, e, v);
}
}
item_mac(_m) { fail "item macros unimplemented" }
item_mac(m) { visit_mac(m, e, v) }
}
}

@ -1352,7 +1352,7 @@ fn found_def_item(i: @ast::item, ns: namespace) -> option<def> {
}
}
ast::item_impl(*) { /* ??? */ }
ast::item_mac(*) { fail "item macros unimplemented" }
ast::item_mac(*) { /* ???? */ }
}
ret none;
}
@ -1660,7 +1660,7 @@ fn index_mod(md: ast::_mod) -> mod_index {
add_to_index(index, it.ident, mie_item(it));
}
ast::item_mac(*) {
fail "item macros unimplemented"
/* ??? */
}
}
}