aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat@beresnev.me>2022-01-27 12:56:27 +0300
committerGitHub <noreply@github.com>2022-01-27 12:56:27 +0300
commite0a10c24ea7e623137f2ab21522ed0f84bf59814 (patch)
treec863973a41efccb4ad34858c88b885e5370b2dbd /plugins/base/src/test/kotlin/content
parent7c44db1ef0075e2b80a4723e0747bbf57c32e775 (diff)
downloaddokka-e0a10c24ea7e623137f2ab21522ed0f84bf59814.tar.gz
dokka-e0a10c24ea7e623137f2ab21522ed0f84bf59814.tar.bz2
dokka-e0a10c24ea7e623137f2ab21522ed0f84bf59814.zip
KT-50292 - Implement vertical alignment of parameters (#2309)
* Implement vertical alignment (wrapping) of parameters for kt * Add tests for params wrapping and extend matchers to check for classes * Add distinguishable parameters block to kotlinAsJava, extract common logic * Create a separate Kind for symbol function parameters
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt45
1 files changed, 35 insertions, 10 deletions
diff --git a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
index 12160db8..508a0a36 100644
--- a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
+++ b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
@@ -98,8 +98,13 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
group {
+"class "
link { +"SomeClass" }
- +"(a: "
- group { link { +"String" } }
+ +"("
+ group {
+ group {
+ +"a: "
+ group { link { +"String" } }
+ }
+ }
+")"
}
}
@@ -131,8 +136,13 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
group {
+"class "
link { +"SomeClass" }
- +"(a: " // TODO: Make sure if we still do not want to have "val" here
- group { link { +"String" } }
+ +"("
+ group {
+ group {
+ +"a: " // TODO: Make sure if we still do not want to have "val" here
+ group { link { +"String" } }
+ }
+ }
+")"
}
}
@@ -165,8 +175,13 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
group {
+"class "
link { +"SomeClass" }
- +"(a: "
- group { link { +"String" } }
+ +"("
+ group {
+ group {
+ +"a: "
+ group { link { +"String" } }
+ }
+ }
+")"
}
}
@@ -227,8 +242,13 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
group {
+"class "
link { +"SomeClass" }
- +"(a: "
- group { link { +"String" } }
+ +"("
+ group {
+ group {
+ +"a: "
+ group { link { +"String" } }
+ }
+ }
+")"
}
skipAllNotMatching()
@@ -243,9 +263,14 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
group {
+"fun "
link { +"SomeClass" }
- +"(a: "
+ +"("
group {
- link { +"String" }
+ group {
+ +"a: "
+ group {
+ link { +"String" }
+ }
+ }
}
+")"
}