From fb199e7dea3d26d15401ae4bbade7c0f7983b8d1 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Tue, 1 Oct 2019 18:09:26 +0200 Subject: [PATCH] added removeGlobal() --- hscript/Checker.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hscript/Checker.hx b/hscript/Checker.hx index fa92cac..3dda47b 100644 --- a/hscript/Checker.hx +++ b/hscript/Checker.hx @@ -258,6 +258,10 @@ class Checker { this.types = types; } + public function removeGlobal( name : String ) { + globals.remove(name); + } + public function setGlobal( name : String, type : TType ) { globals.set(name, type); }