From 27ff92ac42a58844dd57340f7cada14cea8b5d7f Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Mon, 15 Jun 2020 08:32:41 +0200 Subject: Extract information about extensions --- core/src/main/kotlin/model/properties/PropertyContainer.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/src/main/kotlin/model') diff --git a/core/src/main/kotlin/model/properties/PropertyContainer.kt b/core/src/main/kotlin/model/properties/PropertyContainer.kt index e1e0250e..6009bfe0 100644 --- a/core/src/main/kotlin/model/properties/PropertyContainer.kt +++ b/core/src/main/kotlin/model/properties/PropertyContainer.kt @@ -23,6 +23,9 @@ class PropertyContainer internal constructor( } } +operator fun PropertyContainer.plus(prop: ExtraProperty?): PropertyContainer = + if (prop == null) this else PropertyContainer(map + (prop.key to prop)) + interface WithExtraProperties { val extra: PropertyContainer -- cgit