Found why we are crashing (dependency generation is ordered right but we need to maybe make different objects or add checks of a different sort)

This commit is contained in:
Tristan B. Velloza Kildaire 2022-10-14 20:44:33 +02:00
parent b30b6e0fe0
commit 3536e39f6f
2 changed files with 9 additions and 0 deletions

View File

@ -334,10 +334,14 @@ public final class TypeChecker
gprintln("VarExp: "~g.getName());
gprintln(g.getContext());
auto gVar = cast(TypedEntity)resolver.resolveBest(g.getContext().getContainer(), g.getName());
gprintln("gVar nullity?: "~to!(string)(gVar is null));
/* TODO; Above crashes when it is a container, eish baba - from dependency generation with `TestClass.P.h` */
string variableName = resolver.generateName(modulle, gVar);
gprintln("VarName: "~variableName);
gprintln("Halo");
gprintln("Yaa, it's rewind time1: "~to!(string)(gVar.getType()));
gprintln("Yaa, it's rewind time2: "~to!(string)(gVar.getContext()));

View File

@ -50,6 +50,11 @@ public final class Context
{
return container;
}
public override string toString()
{
return "Context [ContPtr(valid?): "~to!(string)(!(container is null))~", InitScope: "~to!(string)(initScope)~"]";
}
}
/**