From: Alan Knowles Date: Thu, 10 Sep 2015 10:36:25 +0000 (+0800) Subject: JSDOC/TokenReader.vala X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=4c648df8ca91ac675c02fc35ca663209d8bf8d55 JSDOC/TokenReader.vala --- diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index 5922d11..a971019 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -113,7 +113,7 @@ namespace JSDOC { return tokens; - }, + } /** * findPuncToken - find the id of a token (previous to current) @@ -149,7 +149,7 @@ namespace JSDOC { n--; } return -1; - }, + } /** * lastSym - find the last token symbol * need to back check syntax.. @@ -158,14 +158,15 @@ namespace JSDOC { * @arg {Number} offset where to start.. * @return {Token} the token */ - public Token lastSym(TokenArray tokens, int n) { + public Token lastSym(TokenArray tokens, int n) + { for (var i = n-1; i >= 0; i--) { if (!(tokens.get(i).is("WHIT") || tokens.get(i).is("COMM"))) { return tokens.get(i); } } return null; - }, + } @@ -174,7 +175,7 @@ namespace JSDOC { */ public bool read_word (TokenStream stream, TokenArray tokens) { var found = ""; - while (!stream.look().eof && Lang.isWordChar(stream.look())) { + while (!stream.lookEOF() && Lang.isWordChar(stream.look())) { found += stream.next(); } @@ -226,7 +227,7 @@ namespace JSDOC { return true; - }, + } /** @returns {Boolean} Was the token found?