X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=c9f9e04288720ac4f5d5bc284cf7aa1c5f72872d;hp=a94c3dc62247e1ffe4d59c2b2db07748bfa0e625;hb=849423714334b403a91040dae4736efcb5f48501;hpb=3dd8b3f742c2e4d8b0ae6fa81fc98121525bf9fe diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index a94c3dc..c9f9e04 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -4,7 +4,7 @@ XObject = imports.XObject.XObject; Scope = imports.Scope.Scope; DocComment = imports.DocComment.DocComment; Symbol = imports.Symbol.Symbol; -Parser = imports.Parser.Parser; + /** * Scope stuff @@ -156,7 +156,7 @@ 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('COMM')) { @@ -740,7 +740,8 @@ Walker2 = XObject.define( addSymbol: function(lastIdent, appendIt, atype ) { - print("addSymbol : " + lastIdent); + print("Walker.addSymbol : " + lastIdent); + /*if (!this.currentDoc.tags.length) { @@ -825,6 +826,7 @@ Walker2 = XObject.define( if (this.currentDoc.getTag('class').length) { _s = this.currentDoc.getTag('class')[0].desc; var symbol = new Symbol(_s, [], "CONSTRUCTOR", this.currentDoc); + Parser = imports.Parser.Parser; Parser.addSymbol(symbol); this.symbols[_s] = symbol; return; @@ -864,8 +866,9 @@ Walker2 = XObject.define( atype = 'OBJECT'; //this.currentDoc.getTag('class').length ? 'OBJECT' : 'FUNCTION';; } + print("Walker.create symbol: " + lastIdent); var symbol = new Symbol(_s, [], atype, this.currentDoc); - + Parser = imports.Parser.Parser; Parser.addSymbol(symbol); this.symbols[_s] = symbol;