diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-10-03 21:27:49 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-10-03 21:27:49 +0200 |
commit | 60053306d59e844717999c7843206c744505e272 (patch) | |
tree | 7edc6595c4e107503e93a94d97b6e54006036b12 /core | |
parent | 44096805509f2398e360211ed7fae1125da44f7b (diff) | |
download | dokka-60053306d59e844717999c7843206c744505e272.tar.gz dokka-60053306d59e844717999c7843206c744505e272.tar.bz2 dokka-60053306d59e844717999c7843206c744505e272.zip |
Fix the extension function file location
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Generation/DocumentationMerger.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Generation/DocumentationMerger.kt b/core/src/main/kotlin/Generation/DocumentationMerger.kt index 942688d4..53dc23a9 100644 --- a/core/src/main/kotlin/Generation/DocumentationMerger.kt +++ b/core/src/main/kotlin/Generation/DocumentationMerger.kt @@ -164,7 +164,13 @@ class DocumentationMerger( if (groupNode.kind == NodeKind.ExternalClass){ val refs = nodes.flatMap { it.allReferences() }.filter { it.kind != RefKind.Owner && it.kind != RefKind.TopLevelPage } - refs.forEach { groupNode.append(it.to, RefKind.Member) } + refs.forEach { + if (it.kind != RefKind.Link) { + it.to.dropReferences { ref -> ref.kind == RefKind.Owner } + it.to.append(groupNode, RefKind.Owner) + } + groupNode.append(it.to, it.kind) + } } // if nodes are classes, nested members should be also merged and |