diff options
| author | John Clements <clements@racket-lang.org> | 2013-01-30 09:56:33 -0800 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-01-31 23:05:12 -0800 |
| commit | 53688addaa4484f1a317bb0938cf453381810427 (patch) | |
| tree | 2c025b1dc64129e4651df886918a07af9896a14f /src/libsyntax/parse/classify.rs | |
| parent | e343abd0ed11227425eca16e186367eced39cd82 (diff) | |
| download | rust-53688addaa4484f1a317bb0938cf453381810427.tar.gz rust-53688addaa4484f1a317bb0938cf453381810427.zip | |
test cases, cleanup
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index afe6823e76d..4ceb04c55d0 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -13,6 +13,7 @@ */ use ast; +use codemap; use ast_util::operator_prec; pub fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { @@ -31,7 +32,8 @@ pub fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { pub fn expr_is_simple_block(e: @ast::expr) -> bool { match e.node { ast::expr_block( - ast::spanned { node: ast::blk_ { rules: ast::default_blk, _ }, _ } + codemap::spanned { + node: ast::blk_ { rules: ast::default_blk, _ }, _ } ) => true, _ => false } |
