X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=5f28890238525cb7ffae25f518b23d8651ab94e3;hp=3d44c3465015e5df636df6619e5731be3621603f;hb=eed11f41f2d2f157fd76ae19f03498c08a2b37d9;hpb=cf19a51fbc45888394a0854c4cc8abc5015c9063 diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 3d44c34..5f28890 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -250,11 +250,7 @@ Walker2 = XObject.define( if (token.type == 'NAME') { //print("TOK(ident)"+ token.toString()); - - - - - + if (/\.extend$/.test(token.data) && this.ts.lookTok(1).data == '(' && this.ts.lookTok(2).type == 'NAME' && @@ -442,6 +438,8 @@ Walker2 = XObject.define( if (((this.ts.lookTok(1).data == ':' )|| (this.ts.lookTok(1).data == '=')) && (this.ts.lookTok(2).name == "FUNCTION") ) { + this.ts.nextTok(); + this.ts.nextTok(); atype = 'FUNCTION'; } @@ -452,6 +450,9 @@ Walker2 = XObject.define( false, atype); + + + } @@ -739,7 +740,8 @@ Walker2 = XObject.define( addSymbol: function(lastIdent, appendIt, atype ) { - //print("Walker.addSymbol : " + lastIdent); + print("Walker.addSymbol : " + lastIdent); + print("Walker.curdoc: " + JSON.stringify(this.currentDoc)); /*if (!this.currentDoc.tags.length) { @@ -844,7 +846,7 @@ Walker2 = XObject.define( throw { name: "ArgumentError", message: "Trying to append symbol '" + _s + "', but no doc available\n" + - token.toString() + this.ts.lookTok(0).toString() };