X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=d1e14ee5780fdd789ede778e28880435a44a3aec;hp=48396db1681facad73df1e4f0c1bcdea67119dab;hb=759466942f163998373b165f409fd9cfaaa9910f;hpb=fe422e05dc9495d445136cb86dd4a872267c5e56 diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 48396db..d1e14ee 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -427,7 +427,7 @@ Walker2 = XObject.define( this.currentDoc = false; continue; } - /* + if (this.currentDoc) { //print(token.toString()); @@ -438,8 +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(); + // this.ts.nextTok(); + // this.ts.nextTok(); atype = 'FUNCTION'; } @@ -450,11 +450,11 @@ Walker2 = XObject.define( false, atype); - + this.currentDoc = false; } - */ + continue; // dont care about other idents.. @@ -477,16 +477,16 @@ Walker2 = XObject.define( //print("GOT FUNCTION"); // see if we have an unconsumed doc... - //if (this.currentDoc) { - // throw { - // name: "ArgumentError", - // message: "Unhandled doc (TOKfunction)" + token.toString() - // }; - // + if (this.currentDoc) { + throw { + name: "ArgumentError", + message: "Unhandled doc (TOKfunction)" + token.toString() + }; + //this.addSymbol(this.currentDoc.getTag('class')[0].name, true); //throw "Unconsumed Doc: (TOKrbrace)" + this.currentDoc.toSource(); - //} + } @@ -740,8 +740,8 @@ Walker2 = XObject.define( addSymbol: function(lastIdent, appendIt, atype ) { - print("Walker.addSymbol : " + lastIdent); - print("Walker.curdoc: " + JSON.stringify(this.currentDoc, null,4)); + //print("Walker.addSymbol : " + lastIdent); + //print("Walker.curdoc: " + JSON.stringify(this.currentDoc, null,4)); /*if (!this.currentDoc.tags.length) {