this.currentDoc = false;
continue;
}
- /*
+
if (this.currentDoc) {
//print(token.toString());
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';
}
}
- */
+
continue; // dont care about other idents..
//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();
- //}
+ }