Allow anti-quotes to also be ast::ty rather than just ast::expr.

This commit is contained in:
Kevin Atkinson 2012-02-01 16:19:45 -07:00
parent f7fab77102
commit a2dde9a692
4 changed files with 77 additions and 20 deletions

View file

@ -420,6 +420,13 @@ fn parse_ret_ty(p: parser) -> (ast::ret_style, @ast::ty) {
fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty {
let lo = p.span.lo;
alt have_dollar(p) {
some(e) {ret @spanned(lo, p.span.hi,
ast::ty_mac(spanned(lo, p.span.hi, e)))}
none {}
}
let t: ast::ty_;
// FIXME: do something with this