mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-10-06 14:11:41 +00:00
fixed missing empty constructor in Testfiles
This commit is contained in:
parent
fb7a7d8230
commit
71560cf163
@ -2,10 +2,8 @@
|
||||
// int x;
|
||||
//}
|
||||
|
||||
import de.maishai.ast.records.*;
|
||||
import de.maishai.ast.records.Class;
|
||||
import de.maishai.ast.records.Constructor;
|
||||
import de.maishai.ast.records.Declaration;
|
||||
import de.maishai.ast.records.Method;
|
||||
import de.maishai.typedast.Type;
|
||||
|
||||
import java.util.List;
|
||||
@ -19,7 +17,17 @@ public class AbstractSyntax_ClassWithField {
|
||||
)
|
||||
);
|
||||
List<Method> methods = List.of();
|
||||
List<Constructor> constructors = List.of();
|
||||
List<Constructor> constructors =
|
||||
List.of(
|
||||
new Constructor(
|
||||
"ClassWithField",
|
||||
List.of(),
|
||||
new Block(
|
||||
List.of(),
|
||||
List.of()
|
||||
)
|
||||
)
|
||||
);
|
||||
return new Class(
|
||||
"ClassWithField",
|
||||
declarations,
|
||||
|
@ -17,7 +17,16 @@ public class AbstractSyntax_ClassWithMethod {
|
||||
"ClassWithMethod",
|
||||
List.of(),
|
||||
methods,
|
||||
List.of()
|
||||
List.of(
|
||||
new Constructor(
|
||||
"ClassWithMethod",
|
||||
List.of(),
|
||||
new Block(
|
||||
List.of(),
|
||||
List.of()
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
//public class PublicClass {
|
||||
//}
|
||||
|
||||
import de.maishai.ast.records.Block;
|
||||
import de.maishai.ast.records.Class;
|
||||
import de.maishai.ast.records.Constructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -11,7 +13,17 @@ public class AbstractSyntax_PublicClass {
|
||||
"PublicClass",
|
||||
List.of(),
|
||||
List.of(),
|
||||
List.of()
|
||||
List.of(
|
||||
new Constructor(
|
||||
"PublicClass",
|
||||
List.of(),
|
||||
new Block(
|
||||
List.of(),
|
||||
List.of()
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user