diff --git a/dataforge-context/src/jvmMain/kotlin/space/kscience/dataforge/descriptors/reflectiveDescriptors.kt b/dataforge-context/src/jvmMain/kotlin/space/kscience/dataforge/descriptors/reflectiveDescriptors.kt index 9c36410a..b2953018 100644 --- a/dataforge-context/src/jvmMain/kotlin/space/kscience/dataforge/descriptors/reflectiveDescriptors.kt +++ b/dataforge-context/src/jvmMain/kotlin/space/kscience/dataforge/descriptors/reflectiveDescriptors.kt @@ -79,7 +79,7 @@ public fun MetaDescriptor.Companion.forClass( is DescriptorUrl -> loadDescriptorFromUrl(URL(it.url)) } } - kClass.memberProperties.forEach { property-> + kClass.memberProperties.forEach { property -> var flag = false @@ -88,11 +88,6 @@ public fun MetaDescriptor.Companion.forClass( (property.returnType.classifier as? KClass<*>)?.let { from(forClass(it)) } -// -// (property.getDelegate(Unit) as? MetaDelegate<*>)?.descriptor?.let { -// from(it) -// flag = true -// } property.annotations.forEach { when (it) { diff --git a/dataforge-data/src/commonTest/kotlin/space/kscience/dataforge/data/ActionsTest.kt b/dataforge-data/src/jvmTest/kotlin/space/kscience/dataforge/data/ActionsTest.kt similarity index 100% rename from dataforge-data/src/commonTest/kotlin/space/kscience/dataforge/data/ActionsTest.kt rename to dataforge-data/src/jvmTest/kotlin/space/kscience/dataforge/data/ActionsTest.kt diff --git a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt index 2291e3d3..dfdbfeab 100644 --- a/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt +++ b/dataforge-meta/src/commonMain/kotlin/space/kscience/dataforge/meta/descriptors/MetaDescriptorBuilder.kt @@ -47,6 +47,7 @@ public class MetaDescriptorBuilder @PublishedApi internal constructor() { ): Unit { when (name.length) { 0 -> error("Can't set descriptor to root") + 1 -> { children[name.first().body] = descriptorBuilder }