Dependency

- Actually removed `static DNode[] poes`
- Actually added some todos

TypeChecker

- Actually removed any references to `DNode.poes`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-01-20 16:49:41 +02:00
parent 2ee2bc22a4
commit 68e1a25c9a
2 changed files with 2 additions and 14 deletions

View File

@ -110,10 +110,6 @@ public final class TypeChecker
codeQueue.clear();
assert(codeQueue.empty() == true);
//FIXME: Look at this, ffs why is it static
//Clear tree/linearized version (todo comment)
DNode.poes=[];
/* Grab functionData ??? */
FunctionData[string] functionDefinitions = grabFunctionDefs();
gprintln("Defined functions: "~to!(string)(functionDefinitions));
@ -165,9 +161,6 @@ public final class TypeChecker
}
codeQueue.clear();
// Clear the linearization for the next round
DNode.poes=[];
gprintln("FUNCDEF DONE: "~to!(string)(functionBodyCodeQueues[funcData.name]));
}

View File

@ -162,11 +162,6 @@ public class DNode
private bool complete;
private DNode[] dependencies;
//TODO: Commen this
//NOTE: This is the linearized version
public static DNode[] poes;
this(DNodeGenerator dnodegen, Statement entity)
{
this.entity = entity;
@ -327,7 +322,7 @@ public class DNode
/* TODO: I think using `isDone` we can linearise */
gprintln("Done/Not-done?: "~to!(string)(isDone));
// TODO: What is this for and do we even need it? See issue #41
// TODO: What is this for and do we even need it? See issue #41 Problem 5
if(isDone)
{
destinationLinearList ~= this;
@ -337,7 +332,7 @@ public class DNode
return tree;
}
// TODO: What is this for and do we even need it? See issue #41
// TODO: What is this for and do we even need it? See issue #41 Problem 5
private bool isDone()
{
bool done = false;