Added constructor for TypedParameter

This commit is contained in:
ahmad 2024-05-10 11:11:32 +02:00
parent 68b55a4600
commit 875d0adac4

View File

@ -18,9 +18,12 @@ public class TypedParameter implements TypedNode {
private String paraName;
private Type type;
public TypedParameter convertToTypedParameter(Parameter unTypedParameter) {
//TODO: implement
return null;
public TypedParameter(Map<String, Type> localVar, TypedClass clas, Parameter unTypedParameter) {
convertToTypedParameter(localVar, clas, unTypedParameter);
}
public void convertToTypedParameter(Map<String, Type> localVar, TypedClass clas, Parameter unTypedParameter) {
paraName = unTypedParameter.name();
type = unTypedParameter.type();
}
@Override