DNodeGenerator

- Removed all code in `generalPass(...)` which tried to set the `root` DNode
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-07 11:43:35 +02:00
parent 02ee5c49da
commit 2229562589
1 changed files with 1 additions and 2 deletions

View File

@ -1505,13 +1505,12 @@ public class DNodeGenerator
/* If this is a Module then it must become the root */
if(cast(Module)namedContainer)
{
root = node;
}
/* NOTE: 1st October: Just for now ignore funciton stuff InitScvope? */
else if(cast(Function)namedContainer)
{
ignoreInitScope=false;
root=pool(cast(Module)tc.getResolver().findContainerOfType(Module.classinfo, namedContainer));
}