aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-09 14:37:50 -0800
committerGraydon Hoare <[email protected]>2010-12-09 14:37:50 -0800
commit876282791e36c482676aeeaee722f5038126e175 (patch)
tree6455132ac599209d9263440a5fcb7b8fe30b252b /src/comp/front/ast.rs
parentActually un-XFAIL drop-on-ret.rs. (diff)
downloadrust-876282791e36c482676aeeaee722f5038126e175.tar.xz
rust-876282791e36c482676aeeaee722f5038126e175.zip
First sketch of support for const items, not including most of trans.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index a37fd191..553a49f6 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -204,6 +204,7 @@ type variant = rec(str name, vec[variant_arg] args, def_id id, ann ann);
type item = spanned[item_];
tag item_ {
+ item_const(ident, @ty, @expr, def_id, ann);
item_fn(ident, _fn, vec[ty_param], def_id, ann);
item_mod(ident, _mod, def_id);
item_ty(ident, @ty, vec[ty_param], def_id, ann);