mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 01:18:03 +00:00
Added TODOs
This commit is contained in:
parent
dea4ba1808
commit
f329ad6c59
@ -1,5 +1,6 @@
|
||||
package de.maishai.typedast.typedclass;
|
||||
|
||||
import de.maishai.ast.records.MethodCall;
|
||||
import de.maishai.typedast.*;
|
||||
import lombok.Data;
|
||||
import org.objectweb.asm.MethodVisitor;
|
||||
@ -9,10 +10,15 @@ import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class TypedMethodCall implements TypedExpression, TypedStatement {
|
||||
private TypedExpression recipient;
|
||||
private TypedFieldVarAccess recipient;
|
||||
private List<TypedExpression> args;
|
||||
private Type returnType;
|
||||
|
||||
@Override
|
||||
public TypedMethodCall convertToTypedMethodCall(MethodCall unTypedMethodCall) {
|
||||
//TODO: Implement this
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public Type typeCheck(Map<String, Type> localVar, Map<String, TypedClass> classes) {
|
||||
//TODO: Implement typeCheck for MethodCall
|
||||
return null;
|
||||
|
@ -12,6 +12,11 @@ import java.util.Map;
|
||||
public class TypedNew implements TypedExpression, TypedStatement {
|
||||
private Type type;
|
||||
private List<TypedExpression> args;
|
||||
|
||||
public TypedNew convertToTypedNew(New unTypedNew) {
|
||||
//TODO: Implement this
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public Type typeCheck(Map<String, Type> localVar, Map<String, TypedClass> classes) {
|
||||
// new A(1, 2, 3)
|
||||
|
@ -17,6 +17,11 @@ public class TypedParameter implements TypedNode {
|
||||
private String paraName;
|
||||
private Type type;
|
||||
|
||||
public TypedParameter convertToTypedParameter(Parameter unTypedParameter) {
|
||||
//TODO: implement
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type typeCheck(Map<String, Type> localVar, Map<String, TypedClass> classes) {
|
||||
if (localVar.containsKey(paraName)) {
|
||||
@ -25,6 +30,7 @@ public class TypedParameter implements TypedNode {
|
||||
localVar.put(paraName, type);
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TypedNode convertToTypedAST(Map<String, Type> localVar, Map<String, TypedClass> classes, de.maishai.ast.records.Node unTypedAST) {
|
||||
Parameter untyped = (Parameter) unTypedAST;
|
||||
|
Loading…
Reference in New Issue
Block a user