From 942597d5359101ec639f1c7f7ac4938295253b07 Mon Sep 17 00:00:00 2001 From: Jochen Seyfried Date: Sat, 29 Jun 2024 14:04:00 +0200 Subject: [PATCH] Removed TODOs --- src/main/java/abstractSyntaxTree/Class/MethodDecl.java | 2 -- .../java/abstractSyntaxTree/Expression/BinaryExpression.java | 1 - 2 files changed, 3 deletions(-) diff --git a/src/main/java/abstractSyntaxTree/Class/MethodDecl.java b/src/main/java/abstractSyntaxTree/Class/MethodDecl.java index 224cb01..d836d61 100644 --- a/src/main/java/abstractSyntaxTree/Class/MethodDecl.java +++ b/src/main/java/abstractSyntaxTree/Class/MethodDecl.java @@ -53,8 +53,6 @@ public class MethodDecl implements Node { return result; } - - //TODO: Stack computing schlägt fehl --> Reihenfolge aufruf? --> Sobald if-else / if / while drin sind? --> vllt auch schon bei MethodenDecl //Need to get the returnType of the method if it is an object // methodContext (class, (returnType, (identifier, parameter))) // typeContext (class, (type, identifier)) diff --git a/src/main/java/abstractSyntaxTree/Expression/BinaryExpression.java b/src/main/java/abstractSyntaxTree/Expression/BinaryExpression.java index cbce259..68f58e5 100644 --- a/src/main/java/abstractSyntaxTree/Expression/BinaryExpression.java +++ b/src/main/java/abstractSyntaxTree/Expression/BinaryExpression.java @@ -157,7 +157,6 @@ public class BinaryExpression extends AbstractType implements IExpression{ } default -> throw new TypeCheckException("The operator " + operator + " is not known."); } - //TODO: This is only viable for boolean expressions --> structure this file differently mv.visitLabel(operationFalse); mv.visitInsn(Opcodes.ICONST_0); // Push false on the stack mv.visitJumpInsn(Opcodes.GOTO, expressionEnd); // Jump to the end of the expression (skip the true push)