From 34fad9467618d10178d55f30c034f93ce03ada25 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Thu, 25 Apr 2024 16:59:15 -0600 Subject: BoilVisitor.MessageSend for Bracket, proper class Extension in ST --- st/MethodInstance.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'st/MethodInstance.java') diff --git a/st/MethodInstance.java b/st/MethodInstance.java index c2f978b..9f1e6df 100644 --- a/st/MethodInstance.java +++ b/st/MethodInstance.java @@ -5,10 +5,10 @@ import java.util.ArrayList; public class MethodInstance extends AbstractInstance { private ArrayList args; // the list of arguments private ArrayList lvars; // the list of local variables - protected ClassInstance par_cls; // the surrounding class - private TypeEnum rtrn; // the returned type + protected ClassInstance par_cls; // the surrounding class + private ClassInstance rtrn; // the returned type - public MethodInstance(String name, TypeEnum rtrn, ClassInstance par_cls) { + public MethodInstance(String name, ClassInstance rtrn, ClassInstance par_cls) { super(name, TypeEnum.method); this.lvars = new ArrayList<>(); this.args = new ArrayList<>(); @@ -31,7 +31,7 @@ public class MethodInstance extends AbstractInstance { return this.lvars; } - public TypeEnum getReturn() { + public ClassInstance getReturn() { return this.rtrn; } -- cgit v1.2.3