aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-20 14:44:30 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-20 14:44:30 +0100
commitecadf405143811776f46142e7c97cc33380efb68 (patch)
treec03992fcd662e333cdc360a44a6e5d3b9ebb6120 /test/src
parent85a3ae7626810113816fd31a0e26d44d48308ed2 (diff)
downloaddokka-ecadf405143811776f46142e7c97cc33380efb68.tar.gz
dokka-ecadf405143811776f46142e7c97cc33380efb68.tar.bz2
dokka-ecadf405143811776f46142e7c97cc33380efb68.zip
allow a LocationService to take a qualified name directly, not just a DocumentationNode
Diffstat (limited to 'test/src')
-rw-r--r--test/src/TestAPI.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 285ffa28..33688053 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -105,7 +105,8 @@ class InMemoryLocation(override val path: String): Location {
}
object InMemoryLocationService: LocationService {
- override fun location(node: DocumentationNode) = InMemoryLocation(relativePathToNode(node))
+ override fun location(qualifiedName: List<String>, hasMembers: Boolean) =
+ InMemoryLocation(relativePathToNode(qualifiedName, hasMembers))
}
val tempLocation = InMemoryLocation("")