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;