diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-02 00:50:08 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-02 00:50:08 +0300 |
commit | 7acc52ba723eab08fe796fcfd68755e7f0eb6a66 (patch) | |
tree | 7760517756051bdaa14bdbb2ab61664ebc3993dc /core/src/test/kotlin | |
parent | 1b722f7c61ea3405b8f33612044b28f0b4087406 (diff) | |
download | dokka-7acc52ba723eab08fe796fcfd68755e7f0eb6a66.tar.gz dokka-7acc52ba723eab08fe796fcfd68755e7f0eb6a66.tar.bz2 dokka-7acc52ba723eab08fe796fcfd68755e7f0eb6a66.zip |
WIP: Refactoring, remove LocationService, rework FormatDescriptor
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/TestAPI.kt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt index ff8a5260..aa3eff48 100644 --- a/core/src/test/kotlin/TestAPI.kt +++ b/core/src/test/kotlin/TestAPI.kt @@ -270,21 +270,6 @@ fun ContentNode.toTestString(): String { }.toString() } -class InMemoryLocation(override val path: String): Location { - override fun relativePathTo(other: Location, anchor: String?): String = - if (anchor != null) other.path + "#" + anchor else other.path -} - -object InMemoryLocationService: LocationService { - override fun location(qualifiedName: List<String>, hasMembers: Boolean) = - InMemoryLocation(relativePathToNode(qualifiedName, hasMembers)) - - override val root: Location - get() = InMemoryLocation("") -} - -val tempLocation = InMemoryLocation("") - val ContentRoot.path: String get() = when(this) { is KotlinSourceRoot -> path |