diff options
| author | Brian Anderson <[email protected]> | 2011-03-24 21:04:29 -0400 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-25 11:01:52 -0700 |
| commit | 71f058499a0e551d2b8deb5d098bdb04387dc021 (patch) | |
| tree | 4e14a52c8c0092f332c3c9477b85b97799310244 /src/comp/front/ast.rs | |
| parent | Add test for local declarations with receive. XFAIL in rustc. (diff) | |
| download | rust-71f058499a0e551d2b8deb5d098bdb04387dc021.tar.xz rust-71f058499a0e551d2b8deb5d098bdb04387dc021.zip | |
Refactor ast.local to make room for initialization via recv
Diffstat (limited to 'src/comp/front/ast.rs')
| -rw-r--r-- | src/comp/front/ast.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 349f887a..0d70c993 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -194,10 +194,18 @@ tag stmt_ { stmt_crate_directive(@crate_directive); } +tag init_op { + init_assign; + init_recv; +} + +type initializer = rec(init_op op, + @expr expr); + type local = rec(option.t[@ty] ty, bool infer, ident ident, - option.t[@expr] init, + option.t[initializer] init, def_id id, ann ann); |