diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-25 23:38:22 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-25 23:38:22 -0600 |
commit | 9252e0f965347ba3b338fe9c35e86a0fa15c9f20 (patch) | |
tree | 7b6e852487dde5b2edd218ddaaf8b90623b6fd0d | |
parent | 416e88a071c9d091c3d868171cecb4bdd093b6b6 (diff) |
Fix BracketSend to handle class attributes, observe all given tests pass
-rw-r--r-- | boil/library/BoilVisitor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boil/library/BoilVisitor.java b/boil/library/BoilVisitor.java index 0c0f76a..001b6e6 100644 --- a/boil/library/BoilVisitor.java +++ b/boil/library/BoilVisitor.java @@ -988,6 +988,9 @@ public class BoilVisitor extends GJDepthFirst<String,String> { t = new TypeInstance(this.getUniqueID(), TypeEnum.ERROR, (MethodInstance) this.symt.getActive(TypeEnum.method), (ClassInstance) this.symt.getActive(TypeEnum.classname)); + this.addVapor(String.format(" %s = %s\n", + this.tf.alias(t.getName()), + rhs)); t.addClassInstance(cls); break; default: |