From 07c0eb37187dd46574bb6718d2e224bd355cb430 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 1 Apr 2021 15:32:05 +0200 Subject: [PATCH] Cleaned up --- source/tlang/compiler/typecheck/core.d | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/source/tlang/compiler/typecheck/core.d b/source/tlang/compiler/typecheck/core.d index 53ab7ef..85de0af 100644 --- a/source/tlang/compiler/typecheck/core.d +++ b/source/tlang/compiler/typecheck/core.d @@ -85,18 +85,12 @@ public final class TypeChecker private void beginCheck() { - // checkIt(modulle.getStatements(), modulle.getName()); - - - /* First we define global types (so classes) */ - gprintln("dd"); - // checkClasses(modulle); - - /* TODO: Then we declare global functions */ - //checkFunctions(modulle); - - /* TODO: Then we declare global variables */ - + /** + * Make sure there are no name collisions anywhere + * in the Module with an order of precedence of + * Classes being declared before Functions and + * Functions before Variables + */ checkContainer(modulle); checkIt(modulle);