diff --git a/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntacticSugar.java b/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntacticSugar.java index a564c49c..d7b6e5d5 100644 --- a/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntacticSugar.java +++ b/src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntacticSugar.java @@ -34,6 +34,11 @@ public class SyntacticSugar { public void visit(ReturnVoid aReturn) { hasReturn = true; } + + @Override + public void visit(LambdaExpression le) { + //PL 2024-04-09 Do nothing, as in a LambdaExpression a return could be + } } private static boolean hasReturn(Block block) {