Merge remote-tracking branch 'origin/master'

This commit is contained in:
Krauß, Josefine 2024-05-31 13:41:45 +02:00
commit 949c2de28e

View File

@ -68,7 +68,7 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
public Node visitConstuctorDecl(DecafParser.ConstuctorDeclContext ctx) { public Node visitConstuctorDecl(DecafParser.ConstuctorDeclContext ctx) {
String name = ctx.Identifier().getText(); String name = ctx.Identifier().getText();
ParameterList parameterList = (ParameterList) visit(ctx.parameterList()); 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 @Override