JSDOC/TokenReader.js
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.vala
index 14ad933..053713c 100644 (file)
@@ -17,7 +17,7 @@ namespace JSDOC
        {
                //keepWhite = keepWhite || false;
                ts.rewind();
-               ts.dumpAllFlat(); GLib.Process.exit(1);
+               //ts.dumpAllFlat(); GLib.Process.exit(1);
                
                //var str = File.read(fn);
                var rep_var = 1;
@@ -83,9 +83,9 @@ namespace JSDOC
                                
                                //tok = ts.next();
                                 var cu = ts.cursor;
-                                       print("NEXT = should be brac: %s\n", ts.lookTok(1).asString());
+                                       //print("NEXT = should be brac: %s\n", ts.lookTok(1).asString());
                                          
-                              print("cursor = %d", ts.cursor);
+                              //print("cursor = %d", ts.cursor);
                                  
                                if (ts.lookTok(1).data != "(" || ts.balance("(").size < 1 ){
                                        print("balance ( issue on line %d\n", ts.toArray().get(cu).line);
@@ -95,13 +95,13 @@ namespace JSDOC
                                    
                                    throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" );
                                }
-                               print("cursor = %d", ts.cursor);
-                               print("CUR = should be ): %s\n", ts.lookTok(0).asString());
+                               //print("cursor = %d", ts.cursor);
+                               //print("CUR = should be ): %s\n", ts.lookTok(0).asString());
 
                                tok = ts.nextTok();
-                               print("CUR = should be {: %s\n", ts.lookTok(0).asString());                             
+                               //print("CUR = should be {: %s\n", ts.lookTok(0).asString());                           
                                cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method.
-                               print("cursor = %d", ts.cursor);
+                               //print("cursor = %d", ts.cursor);
                                //print("AFTER BALANCE (");
                                //ts.dump(cu, ts.cursor);
                                //ts.cursor--; // cursor at the (