proper scopes
This commit is contained in:
@@ -180,7 +180,7 @@ public class ModuleGraph
|
||||
|
||||
var astModuleCache = new Dictionary<Ast, Module>();
|
||||
|
||||
// First pass: Register modules from ast
|
||||
// Second pass: Register modules from ast
|
||||
foreach (var ast in asts)
|
||||
{
|
||||
if (!modules.ContainsKey(ast.ModuleName.Ident))
|
||||
@@ -191,7 +191,7 @@ public class ModuleGraph
|
||||
}
|
||||
}
|
||||
|
||||
// Second pass: Register struct types without fields
|
||||
// Third pass: Register struct types without fields
|
||||
foreach (var ast in asts)
|
||||
{
|
||||
var module = astModuleCache[ast];
|
||||
@@ -204,7 +204,7 @@ public class ModuleGraph
|
||||
}
|
||||
}
|
||||
|
||||
// Third pass: Resolve struct fields
|
||||
// Fourth pass: Resolve struct fields
|
||||
foreach (var ast in asts)
|
||||
{
|
||||
var module = astModuleCache[ast];
|
||||
@@ -219,7 +219,7 @@ public class ModuleGraph
|
||||
}
|
||||
}
|
||||
|
||||
// Fourth pass: Register identifiers
|
||||
// Fifth pass: Register identifiers
|
||||
foreach (var ast in asts)
|
||||
{
|
||||
var module = astModuleCache[ast];
|
||||
|
||||
Reference in New Issue
Block a user