JSDOC/TokenStream.vala
[gnome.introspection-doc-generator] / JSDOC / TokenStream.vala
index 2f16369..ad1baf2 100644 (file)
@@ -235,8 +235,8 @@ namespace JSDOC {
                    //Seed.print("STOP:" + stop);
                    Token token;
                    
-                   while (null != (token = this.look(1,false))) {
-                               debug(token.toString());
+                   while (null != (token = this.lookTok(1))) {
+                               debug("BALANCE: " + token.asString());
                        if (token.is(start)) {
                      //      Seed.print("balance: START : " + depth + " " + token.data);
                            depth++;
@@ -254,7 +254,7 @@ namespace JSDOC {
                                        return got;
                                }
                        }
-                       if (null == this.next()) {
+                       if (null == this.nextTok()) {
                                break;
                        }
                    }