JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:03:02 +0000 (18:03 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:03:02 +0000 (18:03 +0800)
JSDOC/TokenStream.vala

index df4b946..25846c2 100644 (file)
@@ -182,16 +182,17 @@ namespace JSDOC {
                
                // what about comments after 'function'...
                // is this used ???
-               nextTok  : function() {
+               public Token? nextTok() {
                    return this.nextNonSpace();
-               },
-               nextNonSpace : function ()
+               }
+               
+               public Token? nextNonSpace ()
                {
                    
                    while (true) {
-                       tok = this.next(1);
+                       tok = this.next();
                        if (!tok) {
-                           return false;
+                           return null;
                        }
                        if (tok.is('WHIT') ||  tok.is('COMM')) {
                            continue;