diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-15 15:55:11 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-15 15:55:11 +0200 |
commit | ccfe1cda844fb839ddfcacecd3e8454bc8ddaa7b (patch) | |
tree | 430687d5b36de6244449c612d7377a223fd129df /core | |
parent | fb4149a5e7a57a7ea51fb66dc64538102be01737 (diff) | |
download | dokka-ccfe1cda844fb839ddfcacecd3e8454bc8ddaa7b.tar.gz dokka-ccfe1cda844fb839ddfcacecd3e8454bc8ddaa7b.tar.bz2 dokka-ccfe1cda844fb839ddfcacecd3e8454bc8ddaa7b.zip |
Fix inline functions tests
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 2 | ||||
-rw-r--r-- | core/testdata/functions/inlineFunction.kt | 2 | ||||
-rw-r--r-- | core/testdata/functions/inlineSuspendFunction.kt | 2 | ||||
-rw-r--r-- | core/testdata/functions/suspendInlineFunction.kt | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index d6413b64..eb0399c7 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -296,7 +296,6 @@ class DocumentationBuilder fun DocumentationNode.appendModifiers(descriptor: DeclarationDescriptor) { val psi = (descriptor as DeclarationDescriptorWithSource).source.getPsi() as? KtModifierListOwner ?: return - appendInline(descriptor, psi) KtTokens.MODIFIER_KEYWORDS_ARRAY.filter { it !in knownModifiers }.sortedBy { @@ -306,6 +305,7 @@ class DocumentationBuilder appendTextNode(it.value, NodeKind.Modifier) } } + appendInline(descriptor, psi) } fun DocumentationNode.appendDefaultPlatforms(descriptor: DeclarationDescriptor) { diff --git a/core/testdata/functions/inlineFunction.kt b/core/testdata/functions/inlineFunction.kt index 11c19672..64a617a4 100644 --- a/core/testdata/functions/inlineFunction.kt +++ b/core/testdata/functions/inlineFunction.kt @@ -1,2 +1,2 @@ -inline fun f() { +inline fun f(a: () -> String) { } diff --git a/core/testdata/functions/inlineSuspendFunction.kt b/core/testdata/functions/inlineSuspendFunction.kt index 54032ccf..5f376267 100644 --- a/core/testdata/functions/inlineSuspendFunction.kt +++ b/core/testdata/functions/inlineSuspendFunction.kt @@ -1,2 +1,2 @@ -inline suspend fun f() { +inline suspend fun f(a: () -> String) { } diff --git a/core/testdata/functions/suspendInlineFunction.kt b/core/testdata/functions/suspendInlineFunction.kt index 15a9018f..54f65658 100644 --- a/core/testdata/functions/suspendInlineFunction.kt +++ b/core/testdata/functions/suspendInlineFunction.kt @@ -1,2 +1,2 @@ -suspend inline fun f() { +suspend inline fun f(a: () -> String) { } |