aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-07 10:14:25 -0700
committerPatrick Walton <[email protected]>2011-04-07 10:14:25 -0700
commit2a894cabc237f32484dd9fb4265790c60eefd661 (patch)
tree3d3b128ae9670f7b425d6cd68936482f603ca656 /src/comp/front/ast.rs
parentMerge branch 'master' of github.com:graydon/rust (diff)
parentRun optimizations. (diff)
downloadrust-2a894cabc237f32484dd9fb4265790c60eefd661.tar.xz
rust-2a894cabc237f32484dd9fb4265790c60eefd661.zip
Merge branch 'master' of github.com:graydon/rust
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index d41e6d60..cf4145a5 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -215,8 +215,8 @@ tag mode {
type stmt = spanned[stmt_];
tag stmt_ {
- stmt_decl(@decl);
- stmt_expr(@expr);
+ stmt_decl(@decl, option.t[@ts_ann]);
+ stmt_expr(@expr, option.t[@ts_ann]);
// These only exist in crate-level blocks.
stmt_crate_directive(@crate_directive);
}
@@ -495,7 +495,7 @@ fn index_native_view_item(native_mod_index index, @view_item it) {
fn index_stmt(block_index index, @stmt s) {
alt (s.node) {
- case (ast.stmt_decl(?d)) {
+ case (ast.stmt_decl(?d,_)) {
alt (d.node) {
case (ast.decl_local(?loc)) {
index.insert(loc.ident, ast.bie_local(loc));