From 15bce32ef6ce2af4c880d3acfec55272fdad648b Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 6 Jun 2021 18:44:47 +0200 Subject: [PATCH] WIP: Everything should be dependent on itself, just so we can build a tree afterwards else things like `int j;` at module-level will not be remembered --- source/tlang/compiler/typecheck/dependancy.d | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/tlang/compiler/typecheck/dependancy.d b/source/tlang/compiler/typecheck/dependancy.d index c29f6b79..8a2cf921 100644 --- a/source/tlang/compiler/typecheck/dependancy.d +++ b/source/tlang/compiler/typecheck/dependancy.d @@ -114,8 +114,14 @@ public void dependancyGenerate(TypeChecker tc, Container container) */ encounter(tc, variable, classType); } - - + } + /** + * Anything else (TODO: Checking) + */ + else + { + /* TODO: EVerything else is fine */ + /* TODO: Either struct or primtive, neither have static initlization */ } /* If then variable has an assignment */