Removed TODOs

This commit is contained in:
Jochen Seyfried 2024-06-29 14:04:00 +02:00
parent 392fea7d23
commit 942597d535
2 changed files with 0 additions and 3 deletions

View File

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

View File

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