[Gradle] CInteropCommonizerTask: Refine local variable names
^KT-47775 ^KT-47053
This commit is contained in:
committed by
Space
parent
153df1dd1a
commit
ff9643b70e
+5
-5
@@ -99,14 +99,14 @@ internal open class CInteropCommonizerTask : AbstractCInteropCommonizerTask() {
|
|||||||
@Nested
|
@Nested
|
||||||
internal fun getAllInteropsGroups(): Set<CInteropCommonizerGroup> {
|
internal fun getAllInteropsGroups(): Set<CInteropCommonizerGroup> {
|
||||||
val dependents = getAllDependents()
|
val dependents = getAllDependents()
|
||||||
val allScopes = dependents.map { it.scopes }.toSet()
|
val allScopeSets = dependents.map { it.scopes }.toSet()
|
||||||
val rootScopes = allScopes.filter { scopes ->
|
val rootScopeSets = allScopeSets.filter { scopeSet ->
|
||||||
allScopes.none { otherScopes -> otherScopes != scopes && otherScopes.containsAll(scopes) }
|
allScopeSets.none { otherScopeSet -> otherScopeSet != scopeSet && otherScopeSet.containsAll(scopeSet) }
|
||||||
}
|
}
|
||||||
|
|
||||||
return rootScopes.map { scopes ->
|
return rootScopeSets.map { scopeSet ->
|
||||||
val dependentsForScopes = dependents.filter { dependent ->
|
val dependentsForScopes = dependents.filter { dependent ->
|
||||||
scopes.containsAll(dependent.scopes)
|
scopeSet.containsAll(dependent.scopes)
|
||||||
}
|
}
|
||||||
|
|
||||||
CInteropCommonizerGroup(
|
CInteropCommonizerGroup(
|
||||||
|
|||||||
Reference in New Issue
Block a user