Back to where we were last night now
This commit is contained in:
parent
f22df86e39
commit
c8ae0e7ae4
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue