diff options
| author | Kevin Atkinson <kevina@cs.utah.edu> | 2012-02-01 16:19:45 -0700 |
|---|---|---|
| committer | Kevin Atkinson <kevina@cs.utah.edu> | 2012-02-03 20:41:49 -0700 |
| commit | a2dde9a69218ab350b442caec00d2b991ba2262c (patch) | |
| tree | c66979892a5229502d56c586f2327ef97f872e4c /src/comp/syntax/parse | |
| parent | f7fab77102057b55202992c7e73d62d7123f6356 (diff) | |
| download | rust-a2dde9a69218ab350b442caec00d2b991ba2262c.tar.gz rust-a2dde9a69218ab350b442caec00d2b991ba2262c.zip | |
Allow anti-quotes to also be ast::ty rather than just ast::expr.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
