delete modifier

This commit is contained in:
Krauß, Josefine 2024-05-08 13:51:00 +02:00
parent a9101d2c12
commit 370b2dbb06
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ import java.util.List;
public class MethodDecl implements IClass { public class MethodDecl implements IClass {
// name
private HashMap<String, HashMap<String, HashMap<String, String>>> methodContext; private HashMap<String, HashMap<String, HashMap<String, String>>> methodContext;
private HashMap<String, HashMap<String, String>> typeContext; private HashMap<String, HashMap<String, String>> typeContext;

View File

@ -10,8 +10,8 @@ import java.util.List;
public class Program { public class Program {
public List<RefType> classes; public List<RefType> classes;
public HashMap<String, HashMap<String, String>> typeContext; // (class, (type, identifier)) public HashMap<String, HashMap<String, String>> attributContext; // (class, (type, identifier))
public HashMap<String, HashMap<String, HashMap<String, String>>> methodContext; // (class, (returntype, (identifier, parameter))) public HashMap<String, HashMap<String, HashMap<String, List<String>>>> methodContext; // (class, (returntype, (identifier, parameter)))
public TypeCheckResult typeCheck() throws Exception{ public TypeCheckResult typeCheck() throws Exception{
for(RefType oneClass : classes){ for(RefType oneClass : classes){