diff options
| author | Graydon Hoare <[email protected]> | 2011-02-14 17:46:28 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-14 17:46:28 -0800 |
| commit | f1f33abdeba156523d6db1752bbff75dc4088724 (patch) | |
| tree | 9591e536c2a2197756c36859727b20fd0af19cde /src/comp/front/ast.rs | |
| parent | Adjust commented-out diagnostic log statement in parser.rs. (diff) | |
| download | rust-f1f33abdeba156523d6db1752bbff75dc4088724.tar.xz rust-f1f33abdeba156523d6db1752bbff75dc4088724.zip | |
Move all non-decl/non-expr stmts to exprs.
Diffstat (limited to 'src/comp/front/ast.rs')
| -rw-r--r-- | src/comp/front/ast.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 820bbbfa..53ffdd87 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -116,11 +116,6 @@ tag mode { type stmt = spanned[stmt_]; tag stmt_ { stmt_decl(@decl); - stmt_ret(option.t[@expr]); - stmt_be(@expr); - stmt_log(@expr); - stmt_check_expr(@expr); - stmt_fail; stmt_expr(@expr); } @@ -165,6 +160,11 @@ tag expr_ { expr_index(@expr, @expr, ann); expr_path(path, option.t[def], ann); expr_ext(vec[@expr], option.t[@expr], ann); + expr_fail; + expr_ret(option.t[@expr]); + expr_be(@expr); + expr_log(@expr); + expr_check_expr(@expr); } type lit = spanned[lit_]; |