diff 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
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();
 	}