JSDOC/ScopeNamer.js
[app.jsdoc] / JSDOC / ScopeNamer.js
index fa1f1f6..d1b7d36 100644 (file)
@@ -132,8 +132,18 @@ ScopeNamer = XObject.define(
             this.debugCall("walkStatements :" + scope ) ;            
             var _this = this;
             var res = false;
-            
+            var isGlobal = scope == '_global_';
+           
             statements.some(function(st ) {
+                 
+                if (isGlobal &&
+                        st[0].jsdoc &&
+                        st[0].jsdoc.getTag('scope').length
+                   ) {
+                    
+                    print("GOT scope");
+                    print(st[0].jsdoc.getTag('scope'));
+                 }
                 
                 
                 res = _this.walkStatement(scope, st);
@@ -169,6 +179,8 @@ ScopeNamer = XObject.define(
                 print("GOT ignore?");
                 return true;
             }
+           
+            
             while (null != (token = this.next())) {
                 
                 //'function'