aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/documentableProperties.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-02-26 15:51:07 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-27 10:51:51 +0100
commitb62126328f0778abe21d3334f5a713086cb3d15e (patch)
tree7b20dba4051626b0646a57df82f7130627a349ce /core/src/main/kotlin/model/documentableProperties.kt
parent3aadd4c85e55ab8321bd3230ffd975cc85e394a8 (diff)
downloaddokka-b62126328f0778abe21d3334f5a713086cb3d15e.tar.gz
dokka-b62126328f0778abe21d3334f5a713086cb3d15e.tar.bz2
dokka-b62126328f0778abe21d3334f5a713086cb3d15e.zip
Adding psi parsing for new model
Diffstat (limited to 'core/src/main/kotlin/model/documentableProperties.kt')
-rw-r--r--core/src/main/kotlin/model/documentableProperties.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt
new file mode 100644
index 00000000..38a06451
--- /dev/null
+++ b/core/src/main/kotlin/model/documentableProperties.kt
@@ -0,0 +1,14 @@
+package org.jetbrains.dokka.model
+
+import org.jetbrains.dokka.model.properties.ExtraProperty
+import org.jetbrains.dokka.model.properties.MergeStrategy
+
+data class InheritedFunction(val isInherited: Boolean): ExtraProperty<Function> {
+ object InheritedFunctionKey: ExtraProperty.Key<Function, Boolean> {
+ override fun mergeStrategyFor(left: Boolean, right: Boolean) = MergeStrategy.Fail {
+ throw IllegalArgumentException("Function inheritance should be consistent!")
+ }
+ }
+ override val key: ExtraProperty.Key<Function, Boolean> =
+ InheritedFunctionKey
+} \ No newline at end of file