JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Nov 2011 08:30:10 +0000 (16:30 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Nov 2011 08:30:10 +0000 (16:30 +0800)
JSDOC/ScopeNamer.js

index 24288ae..1ebd297 100644 (file)
@@ -76,7 +76,6 @@ Symbol = imports.Symbol.Symbol;
  *
  * @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.
  */ 
  
@@ -84,8 +83,6 @@ ScopeNamer = XObject.define(
     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;
@@ -172,29 +169,7 @@ ScopeNamer = XObject.define(
             
         },
         
-        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...