comparison cbackend.js @ 369:6b5096b07dd5

Lame hack to allow LL dialect code to access the module object when its also the parent of the current object
author Michael Pavone <pavone@retrodev.com>
date Wed, 12 Aug 2015 19:13:04 -0700
parents 06dceff348ea
children 368fbc9ea51b
comparison
equal deleted inserted replaced
364:e44f65abaf0e 369:6b5096b07dd5
124 var info = this.symbols.find(name, false, true); 124 var info = this.symbols.find(name, false, true);
125 var symbols = this.symbols; 125 var symbols = this.symbols;
126 while (info && info.type == 'local') { 126 while (info && info.type == 'local') {
127 symbols = symbols.parent; 127 symbols = symbols.parent;
128 info = symbols.find(name, false, true); 128 info = symbols.find(name, false, true);
129 }
130 if (info && info.type == 'parent') {
131 //parent reference are not currently supported in the LL dialect
132 //but parent might refer to a module
133 info = toplevel.find(name);
129 } 134 }
130 if (!info) { 135 if (!info) {
131 return this.cSafeName(); 136 return this.cSafeName();
132 } 137 }
133 if (info.type == 'toplevel') { 138 if (info.type == 'toplevel') {