diff options
author | Zubakov Aleksey <aleks.zubakov@gmail.com> | 2018-07-17 17:13:01 +0300 |
---|---|---|
committer | Zubakov Aleksey <aleks.zubakov@gmail.com> | 2018-07-17 17:15:28 +0300 |
commit | 93a9052d8434879f8fdf192d9d498285a6a31127 (patch) | |
tree | 5e7e58e04e74cd423eb105ed080953de5b079fca | |
parent | 755b701a4720bf1d0690935898f46dd36c205936 (diff) | |
download | dokka-93a9052d8434879f8fdf192d9d498285a6a31127.tar.gz dokka-93a9052d8434879f8fdf192d9d498285a6a31127.tar.bz2 dokka-93a9052d8434879f8fdf192d9d498285a6a31127.zip |
NodeReferenceGraph style fixes
-rw-r--r-- | core/src/main/kotlin/Model/DocumentationReference.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/kotlin/Model/DocumentationReference.kt b/core/src/main/kotlin/Model/DocumentationReference.kt index 89ec1b3e..5db1f05a 100644 --- a/core/src/main/kotlin/Model/DocumentationReference.kt +++ b/core/src/main/kotlin/Model/DocumentationReference.kt @@ -37,24 +37,24 @@ class PendingDocumentationReference(val lazyNodeFrom: () -> DocumentationNode?, } } -class NodeReferenceGraph() { +class NodeReferenceGraph { private val nodeMap = hashMapOf<String, DocumentationNode>() val references = arrayListOf<PendingDocumentationReference>() fun register(signature: String, node: DocumentationNode) { - nodeMap.put(signature, node) + nodeMap[signature] = node } fun link(fromNode: DocumentationNode, toSignature: String, kind: RefKind) { - references.add(PendingDocumentationReference({ -> fromNode}, { -> nodeMap[toSignature]}, kind)) + references.add(PendingDocumentationReference({ fromNode }, { nodeMap[toSignature] }, kind)) } fun link(fromSignature: String, toNode: DocumentationNode, kind: RefKind) { - references.add(PendingDocumentationReference({ -> nodeMap[fromSignature]}, { -> toNode}, kind)) + references.add(PendingDocumentationReference({ nodeMap[fromSignature] }, { toNode }, kind)) } fun link(fromSignature: String, toSignature: String, kind: RefKind) { - references.add(PendingDocumentationReference({ -> nodeMap[fromSignature]}, { -> nodeMap[toSignature]}, kind)) + references.add(PendingDocumentationReference({ nodeMap[fromSignature] }, { nodeMap[toSignature] }, kind)) } fun lookup(signature: String) = nodeMap[signature] |