JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Sun, 27 Nov 2011 15:05:35 +0000 (23:05 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 27 Nov 2011 15:05:35 +0000 (23:05 +0800)
JSDOC/ScopeNamer.js

index e8cbcef..937fcc0 100644 (file)
@@ -343,12 +343,22 @@ ScopeNamer = XObject.define(
                     this.walkObject(scope, name, token.props, jd);
                     continue;
                 }
-                 
+                
+                // including ... aaa = new BBB({
+                
+                if (token.data == 'new' && this.lookTok(-1).data == '=' && this.lookTok(-2).is('NAME')) {
+                    
+                    
+                    
+                }
+                
+                
+                
                 
                  //  'assignment..'
                  // it's done on the third element to enable object assignment to work above..
                 //   a = .....
-                // including ... aaa = new BBB({
+              
                 if (this.lookTok(-1).data == '=' && this.lookTok(-2).is('NAME')) {