summaryrefslogtreecommitdiff
path: root/heat/HeatVisitor.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-12 13:30:35 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-12 13:30:35 -0600
commite5709fbc956d3395e7b401fd5198524e02542e81 (patch)
treeca528882e64927f2eeda4a2ac6756059c156e4e1 /heat/HeatVisitor.java
parent42a95045240803c8ce2f3af9b63ab5a10c07ce0c (diff)
Make (classinstance).send typecheck in HeatVisitor
Diffstat (limited to 'heat/HeatVisitor.java')
-rw-r--r--heat/HeatVisitor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/HeatVisitor.java b/heat/HeatVisitor.java
index 41fd3fe..e02f0d2 100644
--- a/heat/HeatVisitor.java
+++ b/heat/HeatVisitor.java
@@ -784,7 +784,7 @@ public class HeatVisitor extends GJDepthFirst<TypeBundle,ArrayList<TypeBundle>>
t = new TypeInstance("null",null,null,null);
ClassInstance c = this.recentClass;
MinimalLogger.info(String.format("Setting class to the most recent return: %s",
- c.toString()));
+ c));
t.addClassInstance(c);
break;
default:
@@ -951,6 +951,7 @@ public class HeatVisitor extends GJDepthFirst<TypeBundle,ArrayList<TypeBundle>>
n.getClass().getSimpleName()));
///////////////////////////////////////////////////////////////
TypeInstance t = this.symt.getType(n.f0.tokenImage);
+ this.recentClass = t.getClassInstance();
_ret = new TypeBundle(t.getType(), t.getClassInstance());
///////////////////////////////////////////////////////////////
MinimalLogger.info(String.format("<- %s with %s",