summaryrefslogtreecommitdiff
path: root/st/MethodInstance.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-02 23:23:06 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-02 23:23:06 -0600
commit0ae01301d572b2e69585c4d1cb753ed7fc89dfe3 (patch)
treeaf2923bdaf9f0810f780634af39816c87e902eae /st/MethodInstance.java
parent35b1ec663c4bf233c1beba823d2c2ebd2759289e (diff)
Store SymTable child information as an array of strings
Diffstat (limited to 'st/MethodInstance.java')
-rw-r--r--st/MethodInstance.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/st/MethodInstance.java b/st/MethodInstance.java
index 11b233b..8b4ed57 100644
--- a/st/MethodInstance.java
+++ b/st/MethodInstance.java
@@ -3,8 +3,8 @@ package st;
import java.util.ArrayList;
public class MethodInstance extends AbstractInstance {
- private ArrayList<TypeInstance> args; // the list of arguments
- private ArrayList<TypeInstance> lvars; // the list of local variables
+ private ArrayList<String> args; // the list of arguments
+ private ArrayList<String> lvars; // the list of local variables
private TypeEnum rtrn; // the returned type
public MethodInstance(String name, TypeEnum rtrn) {
@@ -20,11 +20,11 @@ public class MethodInstance extends AbstractInstance {
"]V[" + this.lvars.toString() + "]";
}
- public void set_args(ArrayList<TypeInstance> args) {
+ public void set_args(ArrayList<String> args) {
this.args = args;
}
- public void set_locals(ArrayList<TypeInstance> lvars) {
+ public void set_locals(ArrayList<String> lvars) {
this.lvars = lvars;
}