comparison 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
comparison
equal deleted inserted replaced
22:40a85f135be5 23:068d63627b16
43 if (!this.parent) { 43 if (!this.parent) {
44 return 'null'; 44 return 'null';
45 } 45 }
46 return 'this'; 46 return 'this';
47 } 47 }
48 osymbols.prototype.allSymbols = function() {
49 var start = this.parent ? this.parent.allSymbols() : {};
50 for (var key in this.names) {
51 start[key] = this.names[key];
52 }
53 return start;
54 }
48 55
49 function lsymbols(parent) 56 function lsymbols(parent)
50 { 57 {
51 this.parent = parent; 58 this.parent = parent;
52 this.names = {}; 59 this.names = {};
91 this.parent.needsSelf(); 98 this.parent.needsSelf();
92 } else { 99 } else {
93 this.needsSelfVar = true; 100 this.needsSelfVar = true;
94 } 101 }
95 }; 102 };
103 lsymbols.prototype.allSymbols = osymbols.prototype.allSymbols;
96 104
97 var mainModule; 105 var mainModule;
98 106
99 function toobj(val) 107 function toobj(val)
100 { 108 {