From c7dc9db1dabfa2847df5c15862889b2c17e9d58d Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Mon, 24 Feb 2020 17:56:05 +0100 Subject: Model for type parameters --- core/src/main/kotlin/links/DRI.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src/main/kotlin/links/DRI.kt') 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() }) -- cgit