X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FCompressWhite.vala;h=6a38ef7a35d4e4b93988c705ec78af8a7a871435;hb=dad53f90789b90b0767d049a5c449b305d64941b;hp=dffe4f2a520e87e97c0609b6c81ccfb5336b24c6;hpb=5dddf59e86ded7697d463d9de21bab6df7000749;p=gnome.introspection-doc-generator diff --git a/JSDOC/CompressWhite.vala b/JSDOC/CompressWhite.vala index dffe4f2..6a38ef7 100644 --- a/JSDOC/CompressWhite.vala +++ b/JSDOC/CompressWhite.vala @@ -17,6 +17,8 @@ namespace JSDOC { //keepWhite = keepWhite || false; ts.rewind(); + //ts.dumpAllFlat(); GLib.Process.exit(1); + //var str = File.read(fn); var rep_var = 1; @@ -83,7 +85,7 @@ namespace JSDOC var cu = ts.cursor; print("NEXT = should be brac: %s\n", ts.lookTok(1).asString()); - + 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); @@ -93,10 +95,13 @@ namespace JSDOC throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" ); } - tok = ts.lookTok(0); - + 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()); 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("AFTER BALANCE ("); //ts.dump(cu, ts.cursor); //ts.cursor--; // cursor at the (