diff options
| author | Graydon Hoare <[email protected]> | 2010-10-06 15:41:14 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-10-06 15:41:14 -0700 |
| commit | 5f2d35ed0853f0fb7bb72f633794b8b8da5cd713 (patch) | |
| tree | 1379e836f14d8698bb5b93df3e99ad77dc3d4d06 /src/comp/front/ast.rs | |
| parent | Add -minimal mode to rustboot that skips emitting code that's broken or unnee... (diff) | |
| download | rust-5f2d35ed0853f0fb7bb72f633794b8b8da5cd713.tar.xz rust-5f2d35ed0853f0fb7bb72f633794b8b8da5cd713.zip | |
Make ast node box uses more uniform in rustc.
Diffstat (limited to 'src/comp/front/ast.rs')
| -rw-r--r-- | src/comp/front/ast.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 15c29db9..74126b96 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -9,7 +9,7 @@ import util.common.none; type ident = str; -type name_ = rec(ident ident, vec[ty] types); +type name_ = rec(ident ident, vec[@ty] types); type name = spanned[name_]; type path = vec[name]; @@ -76,7 +76,7 @@ tag stmt_ { type decl = spanned[decl_]; tag decl_ { - decl_local(ident, option[ty], ty); + decl_local(ident, option[@ty], ty); decl_item(name, @item); } @@ -92,7 +92,7 @@ tag expr_ { expr_name(name, option[referent]); expr_field(@expr, ident); expr_index(@expr, @expr); - expr_cast(@expr, ty); + expr_cast(@expr, @ty); expr_if(@expr, block, option[block]); expr_block(block); } @@ -125,18 +125,18 @@ tag mode { alias; } -type slot = rec(ty ty, mode mode, option[slot_id] id); +type slot = rec(@ty ty, mode mode, option[slot_id] id); type _fn = rec(vec[rec(slot slot, ident ident)] inputs, slot output, block body); -type _mod = hashmap[ident,item]; +type _mod = hashmap[ident,@item]; type item = spanned[item_]; tag item_ { - item_fn(@_fn, item_id); - item_mod(@_mod); + item_fn(_fn, item_id); + item_mod(_mod); item_ty(@ty, item_id); } |