Skip to content

Commit

Permalink
Small simplification in parser.rs' crate parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jun 15, 2011
1 parent 1ad6929 commit 0987b17
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/comp/front/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2181,13 +2181,7 @@ fn parse_crate_directive(&parser p) -> ast::crate_directive {
auto hi = p.get_hi_pos();
expect(p, token::RBRACE);
ret spanned(lo, hi, ast::cdir_let(id, x, v));
} else if (is_word(p, "use")) {
auto vi = parse_view_item(p);
ret spanned(lo, vi.span.hi, ast::cdir_view_item(vi));
} else if (is_word(p, "import")) {
auto vi = parse_view_item(p);
ret spanned(lo, vi.span.hi, ast::cdir_view_item(vi));
} else if (is_word(p, "export")) {
} else if (is_view_item(p)) {
auto vi = parse_view_item(p);
ret spanned(lo, vi.span.hi, ast::cdir_view_item(vi));
} else {
Expand Down

0 comments on commit 0987b17

Please sign in to comment.