From 547f25b835f8e5bdc2573a7126a914af9477cf71 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Mon, 7 Jun 2021 13:29:15 +0200 Subject: [PATCH] Nvm --- source/tlang/compiler/typecheck/dependancy.d | 61 +------------------- 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/source/tlang/compiler/typecheck/dependancy.d b/source/tlang/compiler/typecheck/dependancy.d index 457ec13..5fb7eb9 100644 --- a/source/tlang/compiler/typecheck/dependancy.d +++ b/source/tlang/compiler/typecheck/dependancy.d @@ -188,69 +188,10 @@ public final class StructuralOrganizer } /* Else init the class AND then the variable */ else - { - //treeNode.addDep(staticInitializeClass(cast(Clazz)type)); - //treeNode.addDep(variableTNode); - } - } - else - { - /* TODO: dik */ - } - - - /* TODO: Implement this later */ - if(variable.getAssignment()) - { - - } - } - } - } - - /** - * Process static entities - * - * Here we first want to mark the statics that have basic types - * or non-basic class types that match our class - */ - foreach(Entity entity; entities) - { - if(entity.getModifierType() == InitScope.STATIC) - { - /** - * Static Variable declarations - */ - if(cast(Variable)entity) - { - /* Variable being declared */ - Variable variable = cast(Variable)entity; - TreeNode variableTNode = poolNode(variable); - - /* Get the variable's type */ - Type type = tc.getType(clazz, variable.getType()); - - /* If the variable's type basic */ - if(cast(Primitive)type) - { - /* TODO: Init */ - /* Immediately set as init, no further static recursion */ - //treeNode.addDep(variableTNode); - } - /* If the variable's type is class-type */ - else if(cast(Clazz)type) - { - /* If it is ours */ - if(type != clazz) { treeNode.addDep(staticInitializeClass(cast(Clazz)type)); treeNode.addDep(variableTNode); } - /* Else init the class AND then the variable */ - else - { - - } } else { @@ -267,6 +208,8 @@ public final class StructuralOrganizer } } + + return treeNode; }