mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
Resolve top level variables, to make sure they are properly defined.
Variables within templates are not resolved in this way unless they are actually used.
This commit is contained in:
parent
b559feb7be
commit
843631092c
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ public:
|
|||
const Scope& top = stack_.front();
|
||||
for(Scope::const_iterator v = top.begin(), ve = top.end(); v != ve; ++v)
|
||||
v->second->injectGlobalScope(top);
|
||||
for(Scope::const_iterator v = top.begin(), ve = top.end(); v != ve; ++v)
|
||||
lookup(top, v->first);
|
||||
} // freezeTopLevel
|
||||
|
||||
void injectGlobalScope(const Scope& scope)
|
||||
|
|
Loading…
Reference in a new issue