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();
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;
_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++) {