From 2e44a16148218c7d8f31f19be26789256868b3be Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 30 Sep 2015 18:03:02 +0800 Subject: [PATCH] JSDOC/TokenStream.vala --- JSDOC/TokenStream.vala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/JSDOC/TokenStream.vala b/JSDOC/TokenStream.vala index df4b946..25846c2 100644 --- a/JSDOC/TokenStream.vala +++ b/JSDOC/TokenStream.vala @@ -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; -- 2.39.2