diff options
| author | Graydon Hoare <[email protected]> | 2011-03-11 15:49:48 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-11 15:49:56 -0800 |
| commit | ec7e84ae0d9d04c52a8456c16dd846efe6390340 (patch) | |
| tree | cac83fdde3f379554aae7fcf133b66fe4149742e /src/comp/front/ast.rs | |
| parent | Remove redundant entry from Makefile (diff) | |
| download | rust-ec7e84ae0d9d04c52a8456c16dd846efe6390340.tar.xz rust-ec7e84ae0d9d04c52a8456c16dd846efe6390340.zip | |
Preserve crate directives in the parsed crate.
Diffstat (limited to 'src/comp/front/ast.rs')
| -rw-r--r-- | src/comp/front/ast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index b39f3d4c..5999388e 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -44,7 +44,8 @@ tag def { } type crate = spanned[crate_]; -type crate_ = rec(_mod module); +type crate_ = rec(vec[@crate_directive] directives, + _mod module); tag crate_directive_ { cdir_expr(@expr); |