*
* @param {Array} tokens array of tokens (from collapse)
* @param {String} srcFile the original file
- * @param {String} pscope Parent scope for all tokens (default $global$)
* @param {Array} args Local variables which do not need to be added to scope.
*/
function (cfg)
{
- this.pscope = this.pscope || '$global$';
- this.bscope = this.pscope;
ScopeNamer.superclass.constructor.call(this, cfg);
this.args = this.args ? this.args.slice(0) : [];
Symbol.srcFile = this.filename;
},
- pscope : '$global$',
- /**
- * When parser comes across a change in scope,
- * it get's added to the current scope name here
- *
- *
- *
- *
- *
- * @param {String} n the name
- */
- addScopeName: function (n)
- {
- var ar = this.pscope.split('|');
- if (ar[0] == '$global$') {
- ar.shift();
- }
- ar.push(n);
- this.pscope = ar.join('|');
- return this.pscope;
-
-
- },
+
/**
* same as symbol ctr...