diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-17 12:22:59 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-17 12:22:59 -0600 |
commit | df976c9bac104d44c8e7b446235ad73e956b5415 (patch) | |
tree | 332a55b1f9c5359be01efa88467d5839289809c7 /boil/library/TypeFactory.java | |
parent | c14f3676114df656e5c6c07b49351c74496aaf04 (diff) |
TypeFactory now maps "strings" to temp alias
Diffstat (limited to 'boil/library/TypeFactory.java')
-rw-r--r-- | boil/library/TypeFactory.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/boil/library/TypeFactory.java b/boil/library/TypeFactory.java index be77f63..8c64101 100644 --- a/boil/library/TypeFactory.java +++ b/boil/library/TypeFactory.java @@ -1,19 +1,18 @@ package boil.library; import java.util.HashMap; -import st.TypeInstance; public class TypeFactory { private int type_num; - private HashMap<TypeInstance,String> map; + private HashMap<String,String> map; public void reset() { this.type_num = 0; this.map = new HashMap<>(); } - public String alias(TypeInstance t) { + public String alias(String t) { /** * Given a TypeInstance, return the designated * vapor alias. If the alias does not exist, create it. |