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)