summaryrefslogtreecommitdiff
path: root/boil/library/TypeFactory.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-17 12:22:59 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-17 12:22:59 -0600
commitdf976c9bac104d44c8e7b446235ad73e956b5415 (patch)
tree332a55b1f9c5359be01efa88467d5839289809c7 /boil/library/TypeFactory.java
parentc14f3676114df656e5c6c07b49351c74496aaf04 (diff)
TypeFactory now maps "strings" to temp alias
Diffstat (limited to 'boil/library/TypeFactory.java')
-rw-r--r--boil/library/TypeFactory.java5
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.