about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-07-09 16:00:41 -0700
committerJohn Clements <clements@racket-lang.org>2013-09-06 13:35:09 -0700
commit015ba31c02b912220a9b7323e1a6ae3bad4ab927 (patch)
tree213a6f5f648306479c9856d05cb60e470b54c724
parent62fee04ae9f82c1d1fe03c68735ee2b9f69f9b8e (diff)
downloadrust-015ba31c02b912220a9b7323e1a6ae3bad4ab927.tar.gz
rust-015ba31c02b912220a9b7323e1a6ae3bad4ab927.zip
test case support fns, remove debugging test case
-rw-r--r--src/libsyntax/ext/expand.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index ca82fd09a6b..baa4e616b4f 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -1462,10 +1462,14 @@ mod test {
         pprust::print_mod(s, &crate.module, crate.attrs);
     }
 
-    //fn expand_and_resolve(crate_str: @str) -> ast::crate {
-        //let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
+    fn expand_crate_str(crate_str: @str) -> @ast::Crate {
+        let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
         // the cfg argument actually does matter, here...
-        //let expanded_ast = expand_crate(ps,~[],crate_ast);
+        expand_crate(ps,~[],crate_ast)
+    }
+
+    //fn expand_and_resolve(crate_str: @str) -> ast::crate {
+        //let expanded_ast = expand_crate_str(crate_str);
         // std::io::println(fmt!("expanded: %?\n",expanded_ast));
         //mtwt_resolve_crate(expanded_ast)
     //}