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

index 20ef4d3..eb2f2e7 100644 (file)
@@ -135,6 +135,8 @@ ScopeNamer = XObject.define(
             
             
             statements.forEach(function(st ) {
+                
+                
                 res = _this.walkStatement(scope, st);
                 if (res === true) {
                     return true;
@@ -154,9 +156,11 @@ ScopeNamer = XObject.define(
             
             var isGlobal = scope == '_global_';
             
-            
+            if (tokens[0].jsdoc) {
+                print(JSON.stringify(tokens[0].jsdoc, null,4));
+            }
             while (null != (token = this.next())) {
-            
+                
                 //'function' 
                 //walkFunction(scope, name , args,  stmts  )
                 //