]> git.lizzy.rs Git - rust.git/commitdiff
test case work
authorJohn Clements <clements@racket-lang.org>
Fri, 7 Jun 2013 19:28:03 +0000 (12:28 -0700)
committerJohn Clements <clements@racket-lang.org>
Fri, 6 Sep 2013 20:35:09 +0000 (13:35 -0700)
src/libsyntax/ext/expand.rs

index fa4b7f9ecd196c4a6e6fbd339e9032f90b00c813..6d5811f1afbdf9b0e848530fbf643d9ede6608c8 100644 (file)
@@ -1461,12 +1461,15 @@ fn fake_print_crate(s: @pprust::ps, crate: &ast::Crate) {
         pprust::print_mod(s, &crate.module, crate.attrs);
     }
 
-    //fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
+    //fn expand_and_resolve(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);
         // std::io::println(fmt!("expanded: %?\n",expanded_ast));
-        //let resolved_ast = mtwt_resolve_crate(expanded_ast);
+        //mtwt_resolve_crate(expanded_ast)
+    //}
+    //fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
+        //let resolved_ast = expand_and_resolve(crate_str);
         //pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
     //}
 
@@ -1503,4 +1506,9 @@ fn pat_idents(){
         pat_idents.visit_pat(pat, ());
         assert_eq!(idents, @mut strs_to_idents(~["a","c","b","d"]));
     }
+
+/*    #[test]
+    fn debugging(){
+        io::println(fmt!("%?",expand_and_resolve(@~"fn main () {    let x : int = 13;}")))
+    }*/
 }