Test code gen

typecheck_reliancetree
Tristan B. Kildaire 3 years ago
parent 2ac8137bc1
commit b4aa08808f

@ -93,6 +93,16 @@ public final class TypeChecker
StructuralOrganizer so = new StructuralOrganizer(this);
so.generate();
so.printPool();
import compiler.codegen.core;
foreach(Entity entity; so.initQueue)
{
if(cast(Emittable)entity)
{
Emittable emittable = cast(Emittable)entity;
gprintln("Emit code: "~emittable.emit());
}
}
}
/**

@ -251,9 +251,6 @@ public final class StructuralOrganizer
/* Statically initialize the static class */
TreeNode staticMemberClass = staticInitializeClass(cast(Clazz)entity);
/* Make it depend on us */
//staticMemberClass.addDep(treeNode);
/* We need to init it first as part of our initialization */
treeNode.addDep(staticMemberClass);
gprintln("brgfdfgdfgdu");

Loading…
Cancel
Save