aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-06 18:36:28 -0700
committerGraydon Hoare <[email protected]>2010-10-06 18:36:28 -0700
commitfa5ef4cfb64d900a659f2e4380c8f2c8718f3826 (patch)
treefa83697f1be4111e436a3cdd685f1aaf4b5a78a8 /src/comp/front/parser.rs
parentMake ast node box uses more uniform in rustc. (diff)
downloadrust-fa5ef4cfb64d900a659f2e4380c8f2c8718f3826.tar.xz
rust-fa5ef4cfb64d900a659f2e4380c8f2c8718f3826.zip
Add the beginnings of an ast folder plus an empty module for resolve.
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index ef0cc6c3..4eb303ed 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -651,7 +651,7 @@ io fn parse_item(parser p) -> tup(ast.ident, @ast.item) {
fail;
}
-io fn parse_crate(parser p) -> ast.crate {
+io fn parse_crate(parser p) -> @ast.crate {
auto lo = p.get_span();
auto hi = lo;
let ast._mod m = new_str_hash[@ast.item]();
@@ -660,7 +660,7 @@ io fn parse_crate(parser p) -> ast.crate {
m.insert(i._0, i._1);
hi = i._1.span;
}
- ret spanned(lo, hi, rec(module=m));
+ ret @spanned(lo, hi, rec(module=m));
}
//