NichtHaskell/Source/abstractSyntaxTree/Class/MethodDecl.java
Krauß, Josefine 783bab8580 context tables
2024-05-08 14:28:51 +02:00

27 lines
759 B
Java

package abstractSyntaxTree.Class;
import TypeCheck.TypeCheckResult;
import java.util.HashMap;
import java.util.List;
public class MethodDecl implements IClass {
public String classThatContainsMethod;
public String name;
public List<String> parameters;
public String returnType;
//TODO: Move this into the typeCheck
private HashMap<String, String> localVars; // (type, identifier) // add content here
public TypeCheckResult typeCheck(HashMap<String, HashMap<String, HashMap<String, String>>> methodContext, HashMap<String, HashMap<String, String>> typeContext, List<MethodDecl> fieldsOrMethods) throws Exception {
// write localvars
// jede methode als block statement aufrufen
return null;
}
}