aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-10 18:58:58 -0800
committerGraydon Hoare <[email protected]>2011-02-10 18:58:58 -0800
commitb59d98ccb9de56a49768586961ce745d462e0697 (patch)
treefe2afd135e5cd2d2209b5b8489c73468e08ce0ac
parentFix bug in trans_field, un-XFAIL two more tests. (diff)
downloadrust-b59d98ccb9de56a49768586961ce745d462e0697.tar.xz
rust-b59d98ccb9de56a49768586961ce745d462e0697.zip
Parse effects and layers in a couple contexts; drop on floor as we have nowhere to put them yet.
-rw-r--r--src/comp/front/parser.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index ea4cf12c..97e86b7f 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -173,6 +173,10 @@ impure fn parse_ty_obj(parser p, &mutable ast.span hi) -> ast.ty_ {
expect(p, token.OBJ);
impure fn parse_method_sig(parser p) -> ast.ty_method {
auto flo = p.get_span();
+
+ // FIXME: do something with this, currently it's dropped on the floor.
+ let ast.effect eff = parse_effect(p);
+
expect(p, token.FN);
auto ident = parse_ident(p);
auto f = parse_ty_fn(p, flo);
@@ -204,6 +208,12 @@ impure fn parse_ty(parser p) -> @ast.ty {
auto lo = p.get_span();
auto hi = lo;
let ast.ty_ t;
+
+ // FIXME: do something with these; currently they're
+ // dropped on the floor.
+ let ast.effect eff = parse_effect(p);
+ let ast.layer lyr = parse_layer(p);
+
alt (p.peek()) {
case (token.BOOL) { p.bump(); t = ast.ty_bool; }
case (token.INT) { p.bump(); t = ast.ty_int; }