Mercurial > repos > tabletprog
diff compiler.js @ 23:068d63627b16
Populate in scope symbol buttons when clicking on a symbol in the source
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 26 Mar 2012 21:29:03 -0700 |
parents | bf03c9f0dd55 |
children | fe3533494ce9 |
line wrap: on
line diff
--- a/compiler.js Mon Mar 26 00:06:13 2012 -0700 +++ b/compiler.js Mon Mar 26 21:29:03 2012 -0700 @@ -45,6 +45,13 @@ } return 'this'; } +osymbols.prototype.allSymbols = function() { + var start = this.parent ? this.parent.allSymbols() : {}; + for (var key in this.names) { + start[key] = this.names[key]; + } + return start; +} function lsymbols(parent) { @@ -93,6 +100,7 @@ this.needsSelfVar = true; } }; +lsymbols.prototype.allSymbols = osymbols.prototype.allSymbols; var mainModule;