25 lines
525 B
Java
25 lines
525 B
Java
package abstractSyntaxTree.Class;
|
|
|
|
import TypeCheck.TypeCheckResult;
|
|
import abstractSyntaxTree.Program;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
|
|
public class MethodDecl implements IClass {
|
|
|
|
private Program program;
|
|
|
|
private HashMap<String, String> localVars;
|
|
|
|
public MethodDecl(Program program){
|
|
this.program = program;
|
|
}
|
|
public TypeCheckResult typeCheck(List<MethodDecl> fieldsOrMethods) throws Exception {
|
|
return null;
|
|
// write localvars
|
|
// write method table
|
|
}
|
|
|
|
}
|