declaration as property

This commit is contained in:
Thomas Krijnen
2026-01-15 16:11:58 +01:00
parent d82e1da907
commit 5c4046e054
5 changed files with 8 additions and 8 deletions
@@ -615,7 +615,7 @@ class Usecase:
nonlocal attributes_
if attributes_ is not None:
return attributes_
attributes_ = element.declaration().as_entity().all_attributes()
attributes_ = element.declaration.all_attributes()
return attributes_
def get_existing_element_(
@@ -81,7 +81,7 @@ class Usecase:
self.style = style
attribute_types: dict[str, str] = {}
for attribute in style.declaration().as_entity().all_attributes():
for attribute in style.declaration.all_attributes():
attribute_type = attribute.type_of_attribute()
if attribute_type.as_aggregation_type() is None:
attribute_type = attribute_type.declared_type().name()