JSDOC/CompressWhite.vala
[gnome.introspection-doc-generator] / JSDOC / TokenStream.vala
index 2e66576..6c6f8ad 100644 (file)
@@ -28,7 +28,10 @@ namespace JSDOC {
 
                        this.rewind();
                }
-       
+               public  Gee.ArrayList<Token> toArray()
+               {
+                       return this.tokens;
+               }
 
                
                public void rewind() {
@@ -214,7 +217,7 @@ namespace JSDOC {
                {
                    
                    // accepts names or "{" etc..
-                   
+                   var stop = in_stop;
                    start = Lang.punc(start) == null ? start : Lang.punc(start);
                    
                    if (stop=="") {
@@ -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++;