From a7f99e9929d6d8993d86d64056d29af7b8077dbf Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Mon, 24 Feb 2020 14:27:03 +0100 Subject: Moving expect value to PlaformDependent --- core/src/main/kotlin/model/Documentable.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 3c97feaf..54983467 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -32,7 +32,7 @@ abstract class Documentable { } } -data class PlatformDependent(val map: Map) : Map by map { +data class PlatformDependent(val map: Map, val expect: T? = null) : Map by map { val prevalentValue: T? get() = if (map.all { values.first() == it.value }) values.first() else null @@ -42,7 +42,6 @@ data class PlatformDependent(val map: Map) : Map } @@ -123,7 +122,6 @@ class Class( override val functions: List, override val properties: List, override val classlikes: List, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val visibility: PlatformDependent, override val companion: Object?, @@ -142,7 +140,6 @@ class Enum( override val name: String, val entries: List, override val documentation: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val functions: List, override val properties: List, @@ -177,7 +174,6 @@ class Function( val returnType: TypeWrapper?, val parameters: List, override val documentation: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val visibility: PlatformDependent, override val type: PlatformDependent, @@ -195,7 +191,6 @@ class Interface( override val dri: DRI, override val documentation: PlatformDependent, override val original: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val functions: List, override val properties: List, @@ -214,7 +209,6 @@ class Object( override val dri: DRI, override val documentation: PlatformDependent, override val original: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val functions: List, override val properties: List, @@ -231,7 +225,6 @@ class Annotation( override val dri: DRI, override val documentation: PlatformDependent, override val original: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val functions: List, override val properties: List, @@ -248,7 +241,6 @@ class Property( override val dri: DRI, override val name: String, override val documentation: PlatformDependent, - override val expect: DocumentableSource?, override val actual: PlatformDependent, override val visibility: PlatformDependent, override val type: PlatformDependent, -- cgit