diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-02-24 17:56:05 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-27 10:51:51 +0100 |
commit | c7dc9db1dabfa2847df5c15862889b2c17e9d58d (patch) | |
tree | 4921582f399afed0a174a0b4abd1233a06590457 /core/src/main/kotlin/links/DRI.kt | |
parent | f8194a41c600ebd6a06277f056c728a65f1327ed (diff) | |
download | dokka-c7dc9db1dabfa2847df5c15862889b2c17e9d58d.tar.gz dokka-c7dc9db1dabfa2847df5c15862889b2c17e9d58d.tar.bz2 dokka-c7dc9db1dabfa2847df5c15862889b2c17e9d58d.zip |
Model for type parameters
Diffstat (limited to 'core/src/main/kotlin/links/DRI.kt')
-rw-r--r-- | core/src/main/kotlin/links/DRI.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt index 220ed719..aefaf8f6 100644 --- a/core/src/main/kotlin/links/DRI.kt +++ b/core/src/main/kotlin/links/DRI.kt @@ -16,6 +16,7 @@ data class DRI( val classNames: String? = null, val callable: Callable? = null, val target: Int? = null, + val genericTarget: Int? = null, val extra: String? = null ) { override fun toString(): String = @@ -44,6 +45,7 @@ fun DRI.withClass(name: String) = copy(classNames = if (classNames.isNullOrBlank val DRI.parent: DRI get() = when { extra != null -> copy(extra = null) + genericTarget != null -> copy(genericTarget = null) target != null -> copy(target = null) callable != null -> copy(callable = null) classNames != null -> copy(classNames = classNames.substringBeforeLast('.').takeIf { it.isNotBlank() }) |