From 8d72f0ff1b368e035ac93f1642d2e78c58bf271b Mon Sep 17 00:00:00 2001 From: Ahmad Date: Thu, 9 May 2024 15:52:33 +0200 Subject: [PATCH] correct the implementation of converToTypedAST in typedclass --- .../java/de/maishai/typedast/typedclass/TypedClass.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedClass.java b/src/main/java/de/maishai/typedast/typedclass/TypedClass.java index c2a7eb8..1d947b5 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedClass.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedClass.java @@ -64,18 +64,18 @@ public class TypedClass implements TypedNode { for (Declaration field : c.fieldDeclarations()) { TypedField typedField = new TypedField(); - typedClass.getTypedFields().add(typedField.unTypedFieldToTypedField(field)); + typedClass.getTypedFields().add(typedField.convertToTypedField(localVar, classes, field)); } for (Method method : c.methods()) { TypedMethod typedMethod = new TypedMethod(); - typedClass.getTypedMethods().add(typedMethod.unTypedMethodToTypedMethod(method)); + typedClass.getTypedMethods().add(typedMethod.convertToTypedMethod(localVar, classes,method)); } for (Constructor constructor : c.constructors()) { TypedConstructor typedConstructor = new TypedConstructor(); - typedClass.getTypedConstructors().add(typedConstructor.unTypedContructorToTypedConstructor(constructor)); + typedClass.getTypedConstructors().add(typedConstructor.constructorToTypedConstructor(localVar, classes, constructor)); } return typedClass;