File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 200200function Scope :addChild (scope )
201201 -- This will add all References from that Scope to higher Scopes. Note that the higher scopes may only be global
202202 for scope , ids in pairs (scope .variablesFromHigherScopes ) do
203- if not scope .isGlobal then
204- logger :error (" Tried to Add Child that is referencing a Higher non global variable!" );
205- end
206203 for id , count in pairs (ids ) do
207204 if count and count > 0 then
208205 self :addReferenceToHigherScope (scope , id , count );
240237function Scope :addReferenceToHigherScope (scope , id , n , b )
241238 n = n or 1 ;
242239 if self .isGlobal then
240+ if not scope .isGlobal then
241+ logger :error (string.format (" Could not resolve Scope \" %s\" " , scope .name ))
242+ end
243243 return
244244 end
245245 if scope == self then
You can’t perform that action at this time.
0 commit comments