Scope = imports.Scope.Scope;
DocComment = imports.DocComment.DocComment;
Symbol = imports.Symbol.Symbol;
-Parser = imports.Parser.Parser;
+
/**
* Scope stuff
//print(JSON.stringify(this.ts, null, 4)); Seed.quit();
while (null != (token = this.ts.next())) {
- //print("TOK"+ token.toString());
+ print("TOK"+ token.toString());
// this.timerPrint("parseScope AFTER lookT: " + token.toString());
if (token.is('COMM')) {
//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("Walker.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;
atype = 'OBJECT'; //this.currentDoc.getTag('class').length ? 'OBJECT' : 'FUNCTION';;
}
+ print("Walker.create symbol: " + lastIdent);
var symbol = new Symbol(_s, [], atype, this.currentDoc);
-
+ Parser = imports.Parser.Parser;
Parser.addSymbol(symbol);
this.symbols[_s] = symbol;