X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FCompressWhite.vala;h=dffe4f2a520e87e97c0609b6c81ccfb5336b24c6;hb=47d710e1ad8352be849a59e4728f421627e568a6;hp=ae1f696a5b33eb9eeb245833743973bcc8246cce;hpb=5597e62a5936ef4bc55882307bc31862b27c284a;p=gnome.introspection-doc-generator diff --git a/JSDOC/CompressWhite.vala b/JSDOC/CompressWhite.vala index ae1f696..dffe4f2 100644 --- a/JSDOC/CompressWhite.vala +++ b/JSDOC/CompressWhite.vala @@ -76,15 +76,16 @@ namespace JSDOC if (ts.lookTok(1).data == "=" && ts.lookTok(2).name == "FUNCTION") { // freeze time.. //println("got = function() "); - tok = ts.next(); - tok = ts.next(); - tok = ts.next(); - - var cu = ts.cursor; - ts.cursor+=2; // move two along, and balance... - - if (tok.data != "(" || ts.balance("(").size < 1 ){ + tok = ts.nextTok(); + tok = ts.nextTok(); + //tok = ts.next(); + var cu = ts.cursor; + print("NEXT = should be brac: %s\n", ts.lookTok(1).asString()); + + + + 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>>>>>>>>>>>>"); @@ -93,6 +94,9 @@ namespace JSDOC throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" ); } tok = ts.lookTok(0); + + cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method. + //print("AFTER BALANCE ("); //ts.dump(cu, ts.cursor); //ts.cursor--; // cursor at the (