From 7d1b7bc5b0a29bc0254aa86502fabe3f48eb355c Mon Sep 17 00:00:00 2001 From: laurenz Date: Wed, 8 May 2024 11:05:27 +0200 Subject: [PATCH] fixed compilation errors --- src/main/java/de/maishai/StatementGenerator.java | 2 +- .../java/de/maishai/typedast/typedclass/TypedAssignment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/maishai/StatementGenerator.java b/src/main/java/de/maishai/StatementGenerator.java index 64384a4..62b7800 100644 --- a/src/main/java/de/maishai/StatementGenerator.java +++ b/src/main/java/de/maishai/StatementGenerator.java @@ -68,7 +68,7 @@ public class StatementGenerator extends DecafBaseVisitor { private Assignment generateAssign(DecafParser.AssignContext ctx) { Id id = new Id(ctx.id().getText()); - Expression expr = resolveFancyAssign(ctx.assignSign(), id, new ExpressionGenerator().visit(ctx.expr());); + Expression expr = resolveFancyAssign(ctx.assignSign(), id, new ExpressionGenerator().visit(ctx.expr())); return new Assignment(id, expr); } diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java index 86bda39..bece885 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java @@ -2,6 +2,7 @@ package de.maishai.typedast.typedclass; import de.maishai.ast.AssignSign; import de.maishai.ast.records.Assignment; +import de.maishai.typedast.MethodContext; import de.maishai.typedast.TypedExpression; import de.maishai.typedast.TypedNode; import de.maishai.typedast.TypedStatement; @@ -41,7 +42,6 @@ public class TypedAssignment implements TypedStatement { return typedAssignment; } - @Override public void codeGen(MethodVisitor mv, MethodContext ctx) {