From 39e8e0ea6aed6cddc8be9cfc353c140153ee23b0 Mon Sep 17 00:00:00 2001 From: StefanZ3 Date: Fri, 31 May 2024 13:08:18 +0200 Subject: [PATCH] change returnType of constructorDecl to null --- src/main/java/astGenerator/ASTGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/astGenerator/ASTGenerator.java b/src/main/java/astGenerator/ASTGenerator.java index 6c5cbc4..886f7b0 100644 --- a/src/main/java/astGenerator/ASTGenerator.java +++ b/src/main/java/astGenerator/ASTGenerator.java @@ -68,7 +68,7 @@ public class ASTGenerator extends DecafBaseVisitor { public Node visitConstuctorDecl(DecafParser.ConstuctorDeclContext ctx) { String name = ctx.Identifier().getText(); ParameterList parameterList = (ParameterList) visit(ctx.parameterList()); - return new MethodDecl("", "", name, parameterList, new BlockStatement(new ArrayList<>(), "void")); + return new MethodDecl("", null, name, parameterList, new BlockStatement(new ArrayList<>(), "void")); } @Override