if (token.name == "FUNCTION") {
// function a() { .... } << scope is a $this$={a}
if (this.lookTok(1).is('NAME')) {
- name = isGlobal ? this.lookTok(2).data : '';
+ name = isGlobal ? this.lookTok(1).data : '';
this.walkFunctionDef(scope, name, this.lookTok(2).args, this.lookTok(3).items, token);
continue;
this.debugCall("wallkFuncDef: " + inscope + '@' + this.look(0).line );
var scope = name.length ? (inscope + '.' + name) : inscope;
if (name.length) {
-
var symbol = new Symbol( scope , args || [] , "FUNCTION" , jsdocTok.jsdoc);
symbol._token = jsdocTok;
this.addSymbol(symbol, jsdocTok.jsdoc);