From d0c24b9ac85edaa5e48826a7cd9d86eb93238739 Mon Sep 17 00:00:00 2001 From: Andreas Stadelmeier Date: Wed, 20 Mar 2024 12:58:17 +0000 Subject: [PATCH] Fix StatementGeneratorTest --- src/test/java/de/dhbw/horb/StatementGeneratorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/de/dhbw/horb/StatementGeneratorTest.java b/src/test/java/de/dhbw/horb/StatementGeneratorTest.java index 4229bf1..7fcca05 100644 --- a/src/test/java/de/dhbw/horb/StatementGeneratorTest.java +++ b/src/test/java/de/dhbw/horb/StatementGeneratorTest.java @@ -27,6 +27,6 @@ public class StatementGeneratorTest DecafLexer lexer = new DecafLexer(input); CommonTokenStream tokens = new CommonTokenStream(lexer); DecafParser parser = new DecafParser(tokens); - return new StatementGenerator().visit(parser.stmt()); + return parser.stmt().accept(new StatementGenerator()); } } \ No newline at end of file