From 87766d28c04102be6c7c0c37f7fdfc05338d4cc9 Mon Sep 17 00:00:00 2001 From: Boolean-True Date: Wed, 1 May 2024 11:09:55 +0200 Subject: [PATCH] Remove unnecessary record --- src/main/java/de/maishai/ExpressionGenerator.java | 2 +- .../de/maishai/ast/records/MethodCallExpression.java | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 src/main/java/de/maishai/ast/records/MethodCallExpression.java diff --git a/src/main/java/de/maishai/ExpressionGenerator.java b/src/main/java/de/maishai/ExpressionGenerator.java index 4ef2105..2743b4a 100644 --- a/src/main/java/de/maishai/ExpressionGenerator.java +++ b/src/main/java/de/maishai/ExpressionGenerator.java @@ -36,7 +36,7 @@ public class ExpressionGenerator extends DecafBaseVisitor { Expression astExpr = expr.accept(this); args.add(astExpr); } - return new MethodCallExpression(id, args); + return new MethodCall(id, args); } @Override diff --git a/src/main/java/de/maishai/ast/records/MethodCallExpression.java b/src/main/java/de/maishai/ast/records/MethodCallExpression.java deleted file mode 100644 index ba22482..0000000 --- a/src/main/java/de/maishai/ast/records/MethodCallExpression.java +++ /dev/null @@ -1,11 +0,0 @@ -package de.maishai.ast.records; - - - -import de.maishai.ast.Expression; -import de.maishai.ast.Statement; - -import java.util.List; - -public record MethodCallExpression(Id id, List args) implements Expression, Statement { -}