Merge branch 'refs/heads/main' into testsuites

This commit is contained in:
JonathanFleischmann 2024-05-07 20:28:15 +02:00
commit 7d298069cb
4 changed files with 6 additions and 1 deletions

View File

@ -13,9 +13,12 @@ import java.util.Map;
@Data
public class TypedClass implements Node {
private Boolean isPublic;
private TypedId typedId;
private List<TypedField> typedFields;
private List<TypedMethod> typedMethods;
private TypedMainMethod typedMainMethod;
private List<TypedConstructor> typedConstructors;
@Override
public Type typeCheck(Map<String, Type> localVar, Map<String, TypedClass> classes) {

View File

@ -12,6 +12,7 @@ import java.util.Map;
@Data
public class TypedConstructor implements Node {
private Boolean isPublic;
private TypedId typedId;
private List<TypedParameter> typedParameters;
private TypedBlock typedBlock;

View File

@ -8,7 +8,7 @@ import lombok.Data;
import java.util.Map;
@Data
public class TypedFieldId implements Node {
public class TypedFieldId implements Expression {
private Boolean field;
private Expression recipient;
private TypedId typedId;

View File

@ -13,6 +13,7 @@ import java.util.Map;
@Data
public class TypedMethod implements Node {
private Boolean isPublic;
private TypedId typedId;
private Type returnType;
private List<TypedParameter> typedParameters;