JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:34:55 +0000 (16:34 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:34:55 +0000 (16:34 +0800)
JSDOC/TokenStream.vala

index 3a58abe..04f3a66 100644 (file)
@@ -229,9 +229,9 @@ namespace JSDOC {
                    var started = false;
                    //Seed.print("START:" + start);
                    //Seed.print("STOP:" + stop);
-                   Token? token;
+                   Token token;
                    
-                   while ((token = this.look(1,false))) {
+                   while (null != (token = this.look(1,false))) {
                        if (token.is(start)) {
                      //      Seed.print("balance: START : " + depth + " " + token.data);
                            depth++;