rustc: Add a next_ann method to ext_ctxt

After this we can remove the parser from the syntax extensions, at least for
now.
This commit is contained in:
Brian Anderson 2011-06-04 17:31:44 -04:00
parent 3ca5fff195
commit 1d6f1dc58d
2 changed files with 13 additions and 4 deletions

View file

@ -1048,7 +1048,7 @@ fn expand_syntax_ext(&parser p, common::span sp,
p.err("unknown syntax expander: '" + extname + "'");
}
case (some(ext::x(?ext))) {
auto ext_cx = ext::mk_ctxt(p.get_session());
auto ext_cx = ext::mk_ctxt(p);
ret ast::expr_ext(path, args, body,
ext(ext_cx, p, sp, args, body),
p.get_ann());