move main method out of loop

This commit is contained in:
404Simon 2024-05-30 19:52:55 +02:00
parent a59ac5ef23
commit c4c2c459f0

View File

@ -75,13 +75,13 @@ public class TypedClass implements TypedNode {
for (Method method : c.methods()) {
enterCurrentMethod(typedMethods.get(j));
typedMethods.get(j).convertToTypedBlock(typedProgram, method);
exitCurrentMethod();
j++;
}
// Hier wird der Block des main-Methode ausgeführt
if (c.mainmeth() != null) {
mainMethodBlock = new TypedBlock(typedProgram, c.mainmeth());
}
exitCurrentMethod();
j++;
}
}
@Override