Fixed: importing didn't increment context locals

This commit is contained in:
arookas 2016-02-01 00:24:16 -05:00
parent c0e747d2bd
commit f2d46235ee

View file

@ -78,9 +78,11 @@ namespace arookas {
if (result == sunImportResult.Loaded) {
try {
ImportResolver.EnterFile(file);
mContext.PushLocal();
var parser = new sunParser();
var tree = parser.Parse(file);
tree.Compile(this);
mContext.PopLocal();
ImportResolver.ExitFile(file);
}
finally {