Skip to content

Commit 9e72f5d

Browse files
committed
added setContext with private vars
1 parent c076314 commit 9e72f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hscript/Checker.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ class Checker {
337337
this.types = types;
338338
}
339339

340-
public function setGlobals( cl : CClass ) {
340+
public function setGlobals( cl : CClass, allowPrivate = false ) {
341341
while( true ) {
342342
for( f in cl.fields )
343-
if( f.isPublic )
343+
if( f.isPublic || allowPrivate )
344344
setGlobal(f.name, f.params.length == 0 ? f.t : TLazy(function() return apply(f.t,f.params,[for( i in 0...f.params.length) makeMono()])));
345345
if( cl.superClass == null )
346346
break;

0 commit comments

Comments
 (0)