X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=12847361479070a216825f167c0286d00f017e4e;hp=7b4ca3f19614d7b8a8547a4c9c4565088ec29d91;hb=69be0ed8cc8f94be9e19411e4821316d0b0adc92;hpb=442c1512a6bf94e4f3548d3b197a3ecff6382af7 diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 7b4ca3f..1284736 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 @@ -211,8 +211,8 @@ Walker2 = XObject.define( // things that stop comments carrying on...?? if (this.currentDoc && ( - token.tokN.data == ';' || - token.tokN.data == '}')) { + token.data == ';' || + token.data == '}')) { this.addSymbol('', true); //throw "Unconsumed Doc ("+ token.toString() +"): " + this.currentDoc.toSource(); } @@ -460,7 +460,7 @@ Walker2 = XObject.define( //print("ADD SYM:" + atype + ":" + token.toString() + this.ts.lookTok(1).toString() + this.ts.lookTok(2).toString()); this.addSymbol( - this.ts.lookTok(-1).tokN == Script.TOKdot ? token.data : fixAlias(token.data), + this.ts.lookTok(-1).data == '.' ? token.data : fixAlias(token.data), false, atype); @@ -740,7 +740,7 @@ Walker2 = XObject.define( addSymbol: function(lastIdent, appendIt, atype ) { - print("addSymbol : " + lastIndent); + print("addSymbol : " + lastIdent); /*if (!this.currentDoc.tags.length) { @@ -761,7 +761,7 @@ Walker2 = XObject.define( return; } - var token = this.ts.cur(); + var token = this.ts.lookTok(0); if (typeof(appendIt) == 'undefined') { appendIt= false; } @@ -825,6 +825,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; @@ -865,7 +866,7 @@ Walker2 = XObject.define( } var symbol = new Symbol(_s, [], atype, this.currentDoc); - + Parser = imports.Parser.Parser; Parser.addSymbol(symbol); this.symbols[_s] = symbol;