X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenStream.js;h=32ce52f12c7628d1e367d21d1deeec5a70d51c93;hb=d56985f1898989ac6236528f762e69837f185914;hp=cc526518c5f375a8ba552804e161549cc15d5ae0;hpb=85ea2c49f7e1a4250920fdd74db2f22126e9c5ae;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenStream.js b/JSDOC/TokenStream.js index cc52651..32ce52f 100644 --- a/JSDOC/TokenStream.js +++ b/JSDOC/TokenStream.js @@ -7,13 +7,28 @@ XObject = imports.XObject.XObject; console = imports.console.console; Token = imports.Token.Token; -Lang = imports.Lange.Lang; +Lang = imports.Lang.Lang; + /** - @constructor -*/ + * @class TokenStream + * + * BC notes: + * + * nextT => nextTok + * lookT => lookTok + * + */ + TokenStream = XObject.define( + + /** + * @constructor + * + * + */ + function(tokens) { @@ -122,8 +137,10 @@ TokenStream = XObject.define( }, /** - @type JSDOC.Token|JSDOC.Token[]| null! - */ + * @return {Token|null} + */ + + next : function(/**Number*/howMany) { if (typeof howMany == "undefined") howMany = 1; if (howMany < 1) return null;