diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-09-09 11:38:55 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-09-10 13:11:02 +0200 |
commit | d8a3e7db72109c8f439095a924bdc1da47b6ab6a (patch) | |
tree | 28e541fe952ae42519aabdbd990918673664684d /plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt | |
parent | f1bc6e87722085363b10d559696d27071e7e1745 (diff) | |
download | dokka-d8a3e7db72109c8f439095a924bdc1da47b6ab6a.tar.gz dokka-d8a3e7db72109c8f439095a924bdc1da47b6ab6a.tar.bz2 dokka-d8a3e7db72109c8f439095a924bdc1da47b6ab6a.zip |
Add TypeAliased bound
Diffstat (limited to 'plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt')
-rw-r--r-- | plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt index e0ac3c40..d79bd7b1 100644 --- a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt +++ b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt @@ -58,7 +58,8 @@ internal fun DPackage.asJava(): DPackage { return copy( functions = emptyList(), properties = emptyList(), - classlikes = classlikes.map { it.asJava() } + syntheticClasses + classlikes = classlikes.map { it.asJava() } + syntheticClasses, + typealiases = emptyList() ) } @@ -181,6 +182,9 @@ private fun Bound.asJava(): Bound = when (this) { is TypeConstructor -> copy( dri = dri.possiblyAsJava() ) + is TypeAliased -> copy( + inner = inner.asJava() + ) is Nullable -> copy( inner = inner.asJava() ) |