X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FCompressWhite.vala;h=4114c9723fc65e4abbe46a22f153aec2d50489d1;hb=cc935efc3f7afc2b006802fc8e53ce6f2f49996c;hp=543b167bc176f353d42698c227b8fba90a0acb82;hpb=7f69a0fd2ea802ef8f4c6db172c33b0e37baafe5;p=gnome.introspection-doc-generator diff --git a/JSDOC/CompressWhite.vala b/JSDOC/CompressWhite.vala index 543b167..4114c97 100644 --- a/JSDOC/CompressWhite.vala +++ b/JSDOC/CompressWhite.vala @@ -78,15 +78,14 @@ namespace JSDOC //println("got = function() "); tok = ts.nextTok(); tok = ts.nextTok(); - tok = ts.nextTok(); + //tok = ts.next(); var cu = ts.cursor; - print("CUR: %s\n", ts.lookTok(0).asString()); - print("NEXT = should be brace: %s\n", ts.lookTok(1).asString()); - - + print("NEXT = should be brac: %s\n", ts.lookTok(1).asString()); + + print("cursor = %d", ts.cursor); - if (tok.data != "(" || ts.balance("(").size < 1 ){ + if (ts.lookTok(1).data != "(" || ts.balance("(").size < 1 ){ print("balance ( issue on line %d\n", ts.toArray().get(cu).line); ts.dump(cu-40, cu+2); print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>"); @@ -94,10 +93,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 (