aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-13 08:53:03 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-26 12:36:03 +0100
commit3aab04fa61e38acec0029553fb0704d65cd11465 (patch)
tree0718b69dd35e175152dd1e8d154db40af14aa153 /plugins/base/src
parent91857c9ee37ff3227821feb952124e74bc415dfd (diff)
downloaddokka-3aab04fa61e38acec0029553fb0704d65cd11465.tar.gz
dokka-3aab04fa61e38acec0029553fb0704d65cd11465.tar.bz2
dokka-3aab04fa61e38acec0029553fb0704d65cd11465.zip
Fixed formatting
Diffstat (limited to 'plugins/base/src')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt21
1 files changed, 7 insertions, 14 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index f29b05fb..02b9ea2a 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -42,7 +42,7 @@ open class DefaultPageCreator(
open fun pageForFunction(f: DFunction) = MemberPageNode(f.name, contentForFunction(f), setOf(f.dri), f)
protected open fun contentForModule(m: DModule) = contentBuilder.contentFor(m) {
- platformDependentHint(m.dri,m.platformData.toSet()){
+ platformDependentHint(m.dri, m.platformData.toSet()){
header(1) { text(m.name) }
block("Packages", 2, ContentKind.Packages, m.packages, m.platformData.toSet()) {
link(it.name, it.dri)
@@ -53,7 +53,7 @@ open class DefaultPageCreator(
}
protected open fun contentForPackage(p: DPackage) = contentBuilder.contentFor(p) {
- platformDependentHint(p.dri,p.platformData.toSet()){
+ platformDependentHint(p.dri, p.platformData.toSet()){
header(1) { text("Package ${p.name}") }
+contentForScope(p, p.dri, p.platformData)
}
@@ -65,7 +65,7 @@ open class DefaultPageCreator(
platformData: List<PlatformData>
) = contentBuilder.contentFor(s as Documentable) {
block("Types", 2, ContentKind.Classlikes, s.classlikes, platformData.toSet()) {
- platformDependentHint(it.dri,it.platformData.toSet()){
+ platformDependentHint(it.dri, it.platformData.toSet()){
link(it.name.orEmpty(), it.dri)
group {
+buildSignature(it)
@@ -76,7 +76,7 @@ open class DefaultPageCreator(
}
}
block("Functions", 2, ContentKind.Functions, s.functions, platformData.toSet()) {
- platformDependentHint(it.dri,it.platformData.toSet()){
+ platformDependentHint(it.dri, it.platformData.toSet()){
link(it.name, it.dri)
group {
+buildSignature(it)
@@ -87,7 +87,7 @@ open class DefaultPageCreator(
}
}
block("Properties", 2, ContentKind.Properties, s.properties, platformData.toSet()) {
- platformDependentHint(it.dri,it.platformData.toSet()){
+ platformDependentHint(it.dri, it.platformData.toSet()){
link(it.name, it.dri)
+buildSignature(it)
breakLine()
@@ -142,7 +142,7 @@ open class DefaultPageCreator(
// TODO: this probably needs fixing
d.documentation.forEach { _, documentationNode ->
documentationNode.children.filter(filtering).forEach {
- platformDependentHint(d.dri,d.platformData.toSet()){
+ platformDependentHint(d.dri, d.platformData.toSet()){
header(3) {
text(it.toHeaderString())
d.documentation.keys.joinToString(prefix = "[", postfix = "]", separator = ", ")
@@ -154,19 +154,12 @@ open class DefaultPageCreator(
}
}.children
-<<<<<<< HEAD
protected open fun contentForFunction(f: DFunction) = contentBuilder.contentFor(f) {
- header(1) { text(f.name) }
- +buildSignature(f)
- +contentForComments(f)
-=======
- protected open fun contentForFunction(f: Function) = contentBuilder.contentFor(f) {
- platformDependentHint(f.dri,f.platformData.toSet()){
+ platformDependentHint(f.dri, f.platformData.toSet()){
header(1) { text(f.name) }
+buildSignature(f)
+contentForComments(f)
}
->>>>>>> Added platformDepndentHints for platform-dependent contents
}
protected open fun TagWrapper.toHeaderString() = this.javaClass.toGenericString().split('.').last()