Remove parser support for recv as an initializer in preparation for changing the recv syntax.

This commit is contained in:
Michael Sullivan 2011-05-26 18:17:13 -07:00
parent 55b40e6894
commit ea16e582eb
13 changed files with 32 additions and 29 deletions

View file

@ -1442,11 +1442,13 @@ fn parse_initializer(&parser p) -> option::t[ast::initializer] {
ret some(rec(op = ast::init_assign,
expr = parse_expr(p)));
}
case (token::LARROW) {
p.bump();
ret some(rec(op = ast::init_recv,
expr = parse_expr(p)));
}
// Now that the the channel is the first argument to receive,
// combining it with an initializer doesn't really make sense.
// case (token::RECV) {
// p.bump();
// ret some(rec(op = ast::init_recv,
// expr = parse_expr(p)));
// }
case (_) {
ret none[ast::initializer];
}