Just do it once per attribute

This commit is contained in:
Juan Martín Sotuyo Dodero
2024-04-19 00:31:37 -03:00
parent ce5e229c61
commit 8d51a2f2a0

View File

@@ -68,8 +68,8 @@ class AstAttributeNode extends BaseNodeInfo implements SiblingCountingNode {
@Override
public AtomicSequence atomize() {
getTreeInfo().getLogger().recordUsageOf(attribute);
if (value == null) {
getTreeInfo().getLogger().recordUsageOf(attribute);
value = DomainConversion.convert(attribute.getValue());
}
return value;