JSDOC/Packer.vala
[gnome.introspection-doc-generator] / JSDOC / Packer.vala
index d942b31..e4a54b8 100644 (file)
@@ -268,7 +268,7 @@ namespace JSDOC
                            
                        }
                         
-                       print("COMPRESSING ");
+                       print("COMPRESSING to %s\n", minfile);
                        //var codeComp = pack(str, 10, 0, 0);
                        if (FileUtils.test (minfile, FileTest.EXISTS)) {
                            FileUtils.remove(minfile);
@@ -355,6 +355,9 @@ namespace JSDOC
                        //var ts = new TokenStream(toks);
                        //print(JSON.stringify(toks, null,4 )); Seed.quit();
                        var ts = new Collapse(toks.tokens);
+                       
+                       //ts.dumpAll("");                       print("Done collaps"); Process.exit(1);
+                       
                   // print(JSON.stringify(ts.tokens, null,4 )); Seed.quit();
                        //return;//
                        var sp = new ScopeParser(ts);
@@ -369,13 +372,14 @@ namespace JSDOC
                
                        var outf = CompressWhite(new TokenStream(toks.tokens), this, this.keepWhite); // do not kill whitespace..
                
-               
-               
+                       
+                       print("RESULT: \n %s\n", outf);
                
                         if (outf.length > 0) {
                                FileUtils.set_contents(minfile, outf);
                                 
-                       }
+                       }  
+
                
                        return outf;