mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 09:28:03 +00:00
move main method out of loop
This commit is contained in:
parent
a59ac5ef23
commit
c4c2c459f0
@ -75,13 +75,13 @@ public class TypedClass implements TypedNode {
|
|||||||
for (Method method : c.methods()) {
|
for (Method method : c.methods()) {
|
||||||
enterCurrentMethod(typedMethods.get(j));
|
enterCurrentMethod(typedMethods.get(j));
|
||||||
typedMethods.get(j).convertToTypedBlock(typedProgram, method);
|
typedMethods.get(j).convertToTypedBlock(typedProgram, method);
|
||||||
// Hier wird der Block des main-Methode ausgeführt
|
|
||||||
if (c.mainmeth() != null) {
|
|
||||||
mainMethodBlock = new TypedBlock(typedProgram, c.mainmeth());
|
|
||||||
}
|
|
||||||
exitCurrentMethod();
|
exitCurrentMethod();
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
// Hier wird der Block des main-Methode ausgeführt
|
||||||
|
if (c.mainmeth() != null) {
|
||||||
|
mainMethodBlock = new TypedBlock(typedProgram, c.mainmeth());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user