Idea: /* TODO: Got it, we NEED a dependency tree, to know chihs is being processed previosuly */

static_support
Tristan B. V. Kildaire 2021-06-04 11:44:51 +02:00
parent 3051d6b66f
commit 6c0a0ec69e
2 changed files with 10 additions and 2 deletions

View File

@ -134,6 +134,7 @@ public final class TypeChecker
if(cast(Number)type) if(cast(Number)type)
{ {
/* TODO: Mark it as ready-for-reference */ /* TODO: Mark it as ready-for-reference */
type.mark();
} }
else else
{ {
@ -142,6 +143,8 @@ public final class TypeChecker
{ {
Clazz clazzType = cast(Clazz)type; Clazz clazzType = cast(Clazz)type;
/* TODO: Check constructor */
/* TODO: We need to start marking things */ /* TODO: We need to start marking things */
/* TODO: Do actual checks here now */ /* TODO: Do actual checks here now */
@ -149,9 +152,15 @@ public final class TypeChecker
if(clazzType == c) if(clazzType == c)
{ {
gprintln("Container we are in matches type of TypedEdntity being processed"); gprintln("Container we are in matches type of TypedEdntity being processed");
/* TODO: In that case mark the entity as fine */
clazzType.mark();
} }
else else
{ {
/* TODO: Also make it fine? mmuutal recusive refernce */
/* TODO: Got it, we NEED a dependency tree, to know chihs is being processed previosuly */
/* TODO: Now check this class and follow it's path */ /* TODO: Now check this class and follow it's path */
checkClass(clazzType); checkClass(clazzType);
} }

View File

@ -60,8 +60,7 @@ class Shekshi
class kl class kl
{ {
kl o;
Shekshi oo;
} }
int Shekshi2; int Shekshi2;