aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/model/aditionalExtras.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/aditionalExtras.kt b/core/src/main/kotlin/model/aditionalExtras.kt
index f71852c4..055fc5a6 100644
--- a/core/src/main/kotlin/model/aditionalExtras.kt
+++ b/core/src/main/kotlin/model/aditionalExtras.kt
@@ -59,4 +59,15 @@ data class ActualTypealias(val underlyingType: SourceSetDependent<Bound>) : Extr
}
override val key: ExtraProperty.Key<DClasslike, ActualTypealias> = ActualTypealias
+}
+
+data class ConstructorValues(val values: List<String>) : ExtraProperty<DEnumEntry>{
+ companion object : ExtraProperty.Key<DEnumEntry, ConstructorValues> {
+ override fun mergeStrategyFor(left: ConstructorValues, right: ConstructorValues) =
+ MergeStrategy.Fail{
+ throw IllegalArgumentException("Merging constructor parameters not applicable")
+ }
+ }
+
+ override val key: ExtraProperty.Key<DEnumEntry, ConstructorValues> = ConstructorValues
} \ No newline at end of file