From a2dde9a69218ab350b442caec00d2b991ba2262c Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Wed, 1 Feb 2012 16:19:45 -0700 Subject: Allow anti-quotes to also be ast::ty rather than just ast::expr. --- src/comp/syntax/parse/parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 2327350eb82..7253109d022 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -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 -- cgit 1.4.1-3-g733a5