JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 03:12:33 +0000 (11:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 03:12:33 +0000 (11:12 +0800)
JSDOC/ScopeNamer.js

index d3513cc..708757d 100644 (file)
@@ -156,8 +156,11 @@ ScopeNamer = XObject.define(
             
             var isGlobal = scope == '_global_';
             
-            if (stmt[0].jsdoc) {
-                print(JSON.stringify(stmt[0].jsdoc, null,4));
+            if (scope == '_global_' &&
+                    stmt[0].jsdoc &&
+                    stmt[0].jsdoc.getTag('ignore').length
+               ) {
+                return true;
             }
             while (null != (token = this.next())) {