Fixed: importing didn't increment context locals
This commit is contained in:
parent
c0e747d2bd
commit
f2d46235ee
1 changed files with 2 additions and 0 deletions
|
@ -78,9 +78,11 @@ namespace arookas {
|
||||||
if (result == sunImportResult.Loaded) {
|
if (result == sunImportResult.Loaded) {
|
||||||
try {
|
try {
|
||||||
ImportResolver.EnterFile(file);
|
ImportResolver.EnterFile(file);
|
||||||
|
mContext.PushLocal();
|
||||||
var parser = new sunParser();
|
var parser = new sunParser();
|
||||||
var tree = parser.Parse(file);
|
var tree = parser.Parse(file);
|
||||||
tree.Compile(this);
|
tree.Compile(this);
|
||||||
|
mContext.PopLocal();
|
||||||
ImportResolver.ExitFile(file);
|
ImportResolver.ExitFile(file);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
|
Loading…
Reference in a new issue