From ccfe1cda844fb839ddfcacecd3e8454bc8ddaa7b Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 15 Apr 2019 15:55:11 +0200 Subject: Fix inline functions tests --- core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 2 +- core/testdata/functions/inlineFunction.kt | 2 +- core/testdata/functions/inlineSuspendFunction.kt | 2 +- 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) { } -- cgit