Back to where we were last night now

This commit is contained in:
Tristan B. Kildaire 2021-06-09 21:14:48 +02:00
parent f22df86e39
commit c8ae0e7ae4
2 changed files with 11 additions and 10 deletions

View File

@ -86,28 +86,29 @@ public class DNode
return i;
}
public static ulong c = 0;
public string print()
{
string spaces = " ";
string spaces = " ";
/* The tree */ /*TODO: Make genral to statement */
string tree = " ";
tree ~= resolver.generateName(cast(Container)dnodegen.root.getEntity(), cast(Entity)entity);
ulong c = count(resolver.generateName(cast(Container)dnodegen.root.getEntity(), cast(Entity)entity));
tree ~= "\n";
c++;
foreach(DNode dependancy; dependencies)
{
if(!dependancy.isCompleted())
{
dependancy.markCompleted();
tree ~= spaces[0..(c+1)*3]~dependancy.print();
tree ~= spaces[0..(c)*3]~dependancy.print();
}
}
markCompleted();
c--;
return tree;
}
}

View File

@ -3,11 +3,6 @@ module typeChecking1;
A aInstance;
B bInstance;
int k;
class B
{
static int jStatic;
static A aInstanceStatic;
}
class A
{
@ -18,3 +13,8 @@ class A
int poes;
}
class B
{
static int jStatic;
static A aInstanceStatic;
}