diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-06 22:36:22 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-06 22:38:00 -0600 |
commit | 8f1eeb71061e4009abec9356c9430075c0a7f7ee (patch) | |
tree | 5d4f35717bd90711b19acbb4feab37f469be19ac /st/ClassInstance.java | |
parent | 1eac68a0e5fd00ee563ac43cb6f4dac3a4fb2c33 (diff) |
Add SymTableTopDown, changes to SymbolTable to make it possible
Delete SymTableVis
Diffstat (limited to 'st/ClassInstance.java')
-rw-r--r-- | st/ClassInstance.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/st/ClassInstance.java b/st/ClassInstance.java index f926fa6..ad7e6b0 100644 --- a/st/ClassInstance.java +++ b/st/ClassInstance.java @@ -21,7 +21,7 @@ public class ClassInstance extends AbstractInstance { return this.ext; } - public ArrayList<TypeInstance> getAttributes() { + public ArrayList<TypeInstance> getLocals() { return this.attrs; } @@ -29,7 +29,7 @@ public class ClassInstance extends AbstractInstance { return this.mtds; } - protected void addAttribute(TypeInstance attr) { + protected void addLocal(TypeInstance attr) { this.attrs.add(attr); } |