X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenStream.vala;h=10a8b98f75bd0a31a047f854b4ac73a04407ca71;hb=e80166c6012671cf8c2956f1fa5f943669bff60e;hp=b9291a7649feb63953e2d246ab1eed79ca29c708;hpb=7fb09d0c3ef6ead592966135c860de5fcd4fac47;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenStream.vala b/JSDOC/TokenStream.vala index b9291a7..10a8b98 100644 --- a/JSDOC/TokenStream.vala +++ b/JSDOC/TokenStream.vala @@ -28,7 +28,10 @@ namespace JSDOC { this.rewind(); } - + public Gee.ArrayList toArray() + { + return this.tokens; + } public void rewind() { @@ -233,6 +236,7 @@ namespace JSDOC { Token token; while (null != (token = this.look(1,false))) { + debug("BALANCE: " + token.asString()); if (token.is(start)) { // Seed.print("balance: START : " + depth + " " + token.data); depth++; @@ -245,10 +249,12 @@ namespace JSDOC { if (token.is(stop)) { depth--; - // Seed.print("balance: STOP: " + depth + " " + token.data); + + print("balance (%d): STOP: %s\n" , depth , token.data); if (depth < 1) { return got; } + } if (null == this.next()) { break;