JSDOC/Scope.js
authorAlan Knowles <alan@roojs.com>
Mon, 11 Jan 2016 09:00:12 +0000 (17:00 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Jan 2016 09:00:12 +0000 (17:00 +0800)
JSDOC/Scope.js

index 6d191bd..ed5202a 100644 (file)
@@ -62,10 +62,16 @@ Scope.prototype = {
     dump : function(indent) 
     {
         indent = indent || '';
     dump : function(indent) 
     {
         indent = indent || '';
+        var str = '';
+        for (var k in this.identifiers) {
+            str += str.length ? ", " : "";
+            str += k + '=>' + this.identifiers[k].mungedValue;
+        }
+        
         print(
             indent + "Scope: " + this.id + "\n" +
             indent + "Started: " + ( this.token ? this.token.line  : 'TOP' ) + "\n" +
         print(
             indent + "Scope: " + this.id + "\n" +
             indent + "Started: " + ( this.token ? this.token.line  : 'TOP' ) + "\n" +
-            indent + "- " + XObject.keys(this.identifiers).join(", ") + "\n"
+            indent + "- " + str + "\n"
         );
         this.subScopes.forEach(function(s) {
             s.dump(indent + ' ');
         );
         this.subScopes.forEach(function(s) {
             s.dump(indent + ' ');