From d6fb82580830654e3ee5fbc848bbd50df40ce86c Mon Sep 17 00:00:00 2001 From: StefanZ3 Date: Thu, 30 May 2024 20:57:50 +0200 Subject: [PATCH] add Node to IExpression --- src/main/java/abstractSyntaxTree/Expression/IExpression.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/abstractSyntaxTree/Expression/IExpression.java b/src/main/java/abstractSyntaxTree/Expression/IExpression.java index 24c4ac1..2379268 100644 --- a/src/main/java/abstractSyntaxTree/Expression/IExpression.java +++ b/src/main/java/abstractSyntaxTree/Expression/IExpression.java @@ -1,13 +1,14 @@ package abstractSyntaxTree.Expression; import TypeCheck.TypeCheckResult; +import abstractSyntaxTree.Node; import abstractSyntaxTree.Parameter.ParameterList; import org.objectweb.asm.MethodVisitor; import java.util.HashMap; import java.util.LinkedHashMap; -public interface IExpression { +public interface IExpression extends Node { // typeCheck method //TypeCheckResult typeCheck() throws Exception; TypeCheckResult typeCheck(HashMap>> methodContext, HashMap> typeContext, HashMap localVars) throws Exception;