Scope = imports.Scope.Scope;
DocComment = imports.DocComment.DocComment;
Symbol = imports.Symbol.Symbol;
-Parser = imports.Parser.Parser;
+
/**
* Scope stuff
// things that stop comments carrying on...??
if (this.currentDoc && (
- token.tokN.data == ';' ||
- token.tokN.data == '}')) {
+ token.data == ';' ||
+ token.data == '}')) {
this.addSymbol('', true);
//throw "Unconsumed Doc ("+ token.toString() +"): " + this.currentDoc.toSource();
}
//print("ADD SYM:" + atype + ":" + token.toString() + this.ts.lookTok(1).toString() + this.ts.lookTok(2).toString());
this.addSymbol(
- this.ts.lookTok(-1).tokN == Script.TOKdot ? token.data : fixAlias(token.data),
+ this.ts.lookTok(-1).data == '.' ? token.data : fixAlias(token.data),
false,
atype);
addSymbol: function(lastIdent, appendIt, atype )
{
- print("addSymbol : " + lastIndent);
+ print("addSymbol : " + lastIdent);
/*if (!this.currentDoc.tags.length) {
return;
}
- var token = this.ts.cur();
+ var token = this.ts.lookTok(0);
if (typeof(appendIt) == 'undefined') {
appendIt= false;
}
if (this.currentDoc.getTag('class').length) {
_s = this.currentDoc.getTag('class')[0].desc;
var symbol = new Symbol(_s, [], "CONSTRUCTOR", this.currentDoc);
+ Parser = imports.Parser.Parser;
Parser.addSymbol(symbol);
this.symbols[_s] = symbol;
return;
}
var symbol = new Symbol(_s, [], atype, this.currentDoc);
-
+ Parser = imports.Parser.Parser;
Parser.addSymbol(symbol);
this.symbols[_s] = symbol;