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) {