From 875d0adac4490c7af9168f5b6235b075ca9f97d5 Mon Sep 17 00:00:00 2001 From: ahmad Date: Fri, 10 May 2024 11:11:32 +0200 Subject: [PATCH] Added constructor for TypedParameter --- .../de/maishai/typedast/typedclass/TypedParameter.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedParameter.java b/src/main/java/de/maishai/typedast/typedclass/TypedParameter.java index b9f388f..05689d7 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedParameter.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedParameter.java @@ -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 localVar, TypedClass clas, Parameter unTypedParameter) { + convertToTypedParameter(localVar, clas, unTypedParameter); + } + public void convertToTypedParameter(Map localVar, TypedClass clas, Parameter unTypedParameter) { + paraName = unTypedParameter.name(); + type = unTypedParameter.type(); } @Override