mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 09:28:03 +00:00
Add some docu for TypedProgram
This commit is contained in:
parent
5fe0098062
commit
3e63f309d9
@ -19,10 +19,12 @@ public class TypedProgram {
|
||||
|
||||
public void startConversion(Program program) {
|
||||
|
||||
// Initialisiere die Klassen nur mit den Klassennamen und deren Typ
|
||||
for (var clas : program.classes()) {
|
||||
typedClasses.add(new TypedClass(clas));
|
||||
}
|
||||
|
||||
// Konvertiere die Methoden, Konstruktoren und Felder von den jeweiligen Klassen
|
||||
int k = 0;
|
||||
for (var clas : program.classes()) {
|
||||
enterCurrentClass(typedClasses.get(k));
|
||||
@ -31,6 +33,7 @@ public class TypedProgram {
|
||||
k++;
|
||||
}
|
||||
|
||||
// Konvertiere die Blöcke der Konstruktoren und Methoden von den jeweiligen Klassen
|
||||
int i = 0;
|
||||
for (var clas : program.classes()) {
|
||||
enterCurrentClass(typedClasses.get(i));
|
||||
|
Loading…
Reference in New Issue
Block a user