Skip to content

Commit

Permalink
Tuning setup of cached modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pachanga committed Sep 4, 2024
1 parent 6c55e39 commit d7b77e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compile/antlr_proc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,6 @@ static public void ProcessAll(ProjectCompilationStateBundle proc_bundle)
proc_bundle,
Module.SetupFlags.Namespaces |
Module.SetupFlags.Imports |
Module.SetupFlags.Funcs |
Module.SetupFlags.Gvars
);

Expand All @@ -824,7 +823,9 @@ static public void ProcessAll(ProjectCompilationStateBundle proc_bundle)
SetupCachedModules(
name2module,
proc_bundle,
Module.SetupFlags.Classes);
Module.SetupFlags.Funcs |
Module.SetupFlags.Classes
);

foreach(var kv in proc_bundle.file2proc)
WrapError(kv.Value, () => kv.Value.Phase_ParseFuncBodies());
Expand Down

0 comments on commit d7b77e0

Please sign in to comment.