diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-26 17:01:48 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-02 13:14:08 +0200 |
commit | ae8b4481b56d6bac4a3feb6a427e77afdbe36b2f (patch) | |
tree | 2708bb3718be7a9d351bfcecb0a0e45d5485691b /plugins/base/src/test/kotlin/utils | |
parent | 7b8d341efbaf96abe6c5c848bccfd74d7ddce606 (diff) | |
download | dokka-ae8b4481b56d6bac4a3feb6a427e77afdbe36b2f.tar.gz dokka-ae8b4481b56d6bac4a3feb6a427e77afdbe36b2f.tar.bz2 dokka-ae8b4481b56d6bac4a3feb6a427e77afdbe36b2f.zip |
Show fully qualified name for typealias targets to different packages
Diffstat (limited to 'plugins/base/src/test/kotlin/utils')
-rw-r--r-- | plugins/base/src/test/kotlin/utils/contentUtils.kt | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/utils/contentUtils.kt b/plugins/base/src/test/kotlin/utils/contentUtils.kt index 90813cf8..7fcd8e89 100644 --- a/plugins/base/src/test/kotlin/utils/contentUtils.kt +++ b/plugins/base/src/test/kotlin/utils/contentUtils.kt @@ -167,6 +167,49 @@ fun ContentMatcherBuilder<*>.propertySignature( } } + +fun ContentMatcherBuilder<*>.typealiasSignature(name: String, expressionTarget: String) { + group { + header { +"Package test" } + skipAllNotMatching() + } + group { + group { + skipAllNotMatching() + header { +"Types" } + table { + group { + link { +name } + divergentGroup { + divergentInstance { + group { + group { + group { + group { + +"typealias " + group { + link { +name } + skipAllNotMatching() + } + +" = " + group { + link { +expressionTarget } + } + } + } + } + } + } + skipAllNotMatching() + } + } + skipAllNotMatching() + } + skipAllNotMatching() + } + } +} + fun ContentMatcherBuilder<*>.pWrapped(text: String) = group {// TODO: remove it when double wrapping for descriptions will be resolved group { +text } @@ -197,4 +240,4 @@ data class ParamAttributes( val annotations: Map<String, Set<String>>, val keywords: Set<String>, val type: String -)
\ No newline at end of file +) |