From 30b161d28a3d4d8b6e60575e4fb9ffa500ca14e8 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Mon, 21 Dec 2015 14:45:41 +0300 Subject: [PATCH] Minor: rename getSubtypeOf->withSubtypes Original commit: d36810ab4256d1520a67ab9a72b99f353c2b32ed --- .../src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt index f618294e8ce..9915bc9a566 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt @@ -743,14 +743,14 @@ private fun doProcessChangesUsingLookups( KotlinBuilder.LOG.debug("Start processing changes") val changedSignatureFqNames = changes.filterIsInstance().map { it.fqName } - for (classFqName in getSubtypesOf(changedSignatureFqNames, caches)) { + for (classFqName in withSubtypes(changedSignatureFqNames, caches)) { val scope = classFqName.parent().asString() val name = classFqName.shortName().identifier dirtyLookupSymbols.add(LookupSymbol(name, scope)) } for (change in changes.filterIsInstance()) { - val scopes = getSubtypesOf(listOf(change.fqName), caches).map { it.asString() } + val scopes = withSubtypes(listOf(change.fqName), caches).map { it.asString() } for (name in change.names) { for (scope in scopes) { @@ -779,7 +779,7 @@ private fun doProcessChangesUsingLookups( /* TODO: in case of chunk containing more than one target, depending targets would be asked about same subtype more than once. Can be solved by putting all caches in set */ -private fun getSubtypesOf( +private fun withSubtypes( typeFqNames: Iterable, caches: Collection ): Set {