Removed TODOs
This commit is contained in:
parent
392fea7d23
commit
942597d535
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user