X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=7b4ca3f19614d7b8a8547a4c9c4565088ec29d91;hb=442c1512a6bf94e4f3548d3b197a3ecff6382af7;hp=136b048aaff4053534da77eced67d5bcf3c50623;hpb=bc409f14cffa7c0e5f8c0cebc46ed161eda06a46;p=gnome.introspection-doc-generator diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 136b048..7b4ca3f 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -156,13 +156,14 @@ Walker2 = XObject.define( //print(JSON.stringify(this.ts, null, 4)); Seed.quit(); while (null != (token = this.ts.next())) { - print("TOK"+ token.toString()); + //print("TOK"+ token.toString()); // this.timerPrint("parseScope AFTER lookT: " + token.toString()); - if (token.is('WHIT')) { + if (token.is('COMM')) { if (token.name != 'JSDOC') { + //print("Walker2 : spce is not JSDOC"); continue; //skip. } if (this.currentDoc) { @@ -178,7 +179,7 @@ Walker2 = XObject.define( // it's a scope changer.. if (newDoc.getTag("scope").length) { - //print(newDoc.getTag("scope").toSource()); + //print("Walker2 : doctag changes scope"); //throw "done"; scope.ident = '$private$|' + newDoc.getTag("scope")[0].desc; continue; @@ -188,6 +189,7 @@ Walker2 = XObject.define( if (newDoc.getTag("scopeAlias").length) { //print(newDoc.getTag("scopeAlias").toSource()); // @scopeAlias a=b + //print("Walker2 : doctag changes scope (alias)"); var sal = newDoc.getTag("scopeAlias")[0].desc.split("="); aliases[sal[0]] = sal[1]; @@ -197,6 +199,7 @@ Walker2 = XObject.define( /// got a doc comment.. //token.data might be this.??? (not sure though) + //print("Walker2 : setting currentDoc"); this.currentDoc = newDoc; continue; } @@ -737,7 +740,7 @@ Walker2 = XObject.define( addSymbol: function(lastIdent, appendIt, atype ) { - + print("addSymbol : " + lastIndent); /*if (!this.currentDoc.tags.length) {