diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2019-12-13 16:24:16 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2019-12-16 16:43:35 +0100 |
commit | 288431f21b18f5311de77c9afcb29346cb7c6498 (patch) | |
tree | 0dbadd88532daae26f4edacba15cd43c3cc19b20 /core/src/main/kotlin/parsers/HtmlParser.kt | |
parent | 54f587baf12ecf8f0115cb406203df14c4d6ab5d (diff) | |
download | dokka-288431f21b18f5311de77c9afcb29346cb7c6498.tar.gz dokka-288431f21b18f5311de77c9afcb29346cb7c6498.tar.bz2 dokka-288431f21b18f5311de77c9afcb29346cb7c6498.zip |
Changes naming and applies pull request's requirements
Diffstat (limited to 'core/src/main/kotlin/parsers/HtmlParser.kt')
-rw-r--r-- | core/src/main/kotlin/parsers/HtmlParser.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/kotlin/parsers/HtmlParser.kt b/core/src/main/kotlin/parsers/HtmlParser.kt index 30f882b1..aebdee41 100644 --- a/core/src/main/kotlin/parsers/HtmlParser.kt +++ b/core/src/main/kotlin/parsers/HtmlParser.kt @@ -1,6 +1,6 @@ -package parsers +package org.jetbrains.dokka.parsers -import model.doc.* +import org.jetbrains.dokka.model.doc.* import org.jetbrains.dokka.parsers.factories.DocNodesFromStringFactory import org.jsoup.Jsoup import org.jsoup.nodes.Node @@ -11,10 +11,10 @@ class HtmlParser : Parser() { inner class NodeFilterImpl : NodeFilter { - private val nodesCache: MutableMap<Int, MutableList<DocNode>> = mutableMapOf() + private val nodesCache: MutableMap<Int, MutableList<DocTag>> = mutableMapOf() private var currentDepth = 0 - fun collect(): DocNode = nodesCache[currentDepth]!![0] + fun collect(): DocTag = nodesCache[currentDepth]!![0] override fun tail(node: Node?, depth: Int): NodeFilter.FilterResult { val nodeName = node!!.nodeName() @@ -65,7 +65,7 @@ class HtmlParser : Parser() { } - private fun htmlToDocNode(string: String): DocNode { + private fun htmlToDocNode(string: String): DocTag { val document = Jsoup.parse(string) val nodeFilterImpl = NodeFilterImpl() NodeTraversor.filter(nodeFilterImpl, document.root()) |