From 88f0a08b6c7c09960a5e4097b8ec56f35a05373c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Jul 2010 07:50:44 +0800 Subject: [PATCH] JSDOC/Walker2.js --- JSDOC/Walker2.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 6bf413c..e2af130 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -490,7 +490,11 @@ Walker2 = XObject.define( if (this.currentDoc) { print(this.ts.dump(this.ts.cursor-20, this.ts.cursor+20)); - throw "Unhandled doc (TOKfunction)" + token.toString(); + 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(); @@ -642,7 +646,11 @@ Walker2 = XObject.define( print(this.ts.dump(this.ts.cursor-20, this.ts.cursor+20)); - throw "dont know how to handle function syntax??"; + throw { + name: "ArgumentError", + message: "dont know how to handle function syntax??" + }; + continue; @@ -844,9 +852,13 @@ Walker2 = XObject.define( _s = _s.replace(/\.prototype.*$/, ''); if (typeof(this.symbols[_s]) == 'undefined') { //print("Symbol:" + _s); - //print(this.currentDoc.src); - - throw "Trying to append symbol, but no doc available"; + //print(this.currentDoc.src); + throw { + name: "ArgumentError", + message: "Trying to append symbol, but no doc available" + }; + + } for (var i =0; i < this.currentDoc.tags.length;i++) { -- 2.39.2