From 8e660afb356c1f6d0b9cd115426cf21129e5d304 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 6 Apr 2024 20:00:31 -0600 Subject: Untested SymbolTable full implementation --- st/TypeInstance.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'st/TypeInstance.java') diff --git a/st/TypeInstance.java b/st/TypeInstance.java index e00c1f9..b4031d9 100644 --- a/st/TypeInstance.java +++ b/st/TypeInstance.java @@ -6,7 +6,6 @@ public class TypeInstance extends AbstractInstance { public TypeInstance(String name, TypeEnum type) { super(name, type); - this.scope = null; } public boolean sameType(TypeInstance other) { @@ -28,12 +27,4 @@ public class TypeInstance extends AbstractInstance { return type != TypeEnum.ERROR; } - public AbstractInstance getScope() { - /** - * Returns the scope of the variable, or - * `null' if unset. - */ - return this.scope; - } - } -- cgit v1.2.3