Mercurial > repos > tabletprog
changeset 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 | e44f65abaf0e |
children | 57d78a0af132 |
files | cbackend.js |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cbackend.js Sun Apr 26 11:16:14 2015 -0700 +++ b/cbackend.js Wed Aug 12 19:13:04 2015 -0700 @@ -127,6 +127,11 @@ symbols = symbols.parent; info = symbols.find(name, false, true); } + if (info && info.type == 'parent') { + //parent reference are not currently supported in the LL dialect + //but parent might refer to a module + info = toplevel.find(name); + } if (!info) { return this.cSafeName(); }