X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.js;h=fb22a3dcbf02683844d28f2124710601b6c15f2d;hb=c2ce08c77413bc34301b53cf78485f637918e32b;hp=8977435d4b712ad5e72ebcfee86e7d18aa2cae56;hpb=251a612f98bda9d80aa3c724736e626bec36398f;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index 8977435..fb22a3d 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -54,9 +54,8 @@ const TokenReader = XObject.define( } return true; } - console.log(tokens); + while (!stream.look().eof) { - if (this.read_mlcomment(stream, tokens)) continue; if (this.read_slcomment(stream, tokens)) continue; if (this.read_dbquote(stream, tokens)) continue; @@ -64,6 +63,7 @@ const TokenReader = XObject.define( if (this.read_regx(stream, tokens)) continue; if (this.read_numb(stream, tokens)) continue; if (this.read_punc(stream, tokens)) continue; + if(typeof(tokens) == 'undefined') {console.log('empty????');} if (this.read_newline(stream, tokens)) continue; if (this.read_space(stream, tokens)) continue; if (this.read_word(stream, tokens)) continue; @@ -260,6 +260,7 @@ const TokenReader = XObject.define( found = "\n"; } if (this.keepWhite) { + console.log(typeof(tokens)); var last = tokens.pop(); if (last && last.name != "WHIT") { tokens.push(last);