JPS, minor: rename KotlinModuleBuildTarget.updateSourcesList to computeSourcesList

Original commit: 81cf3fbc28
This commit is contained in:
Sergey Rostov
2018-09-13 16:26:16 +03:00
parent e47d796bd7
commit 3a7f2ff5c5
@@ -152,13 +152,13 @@ abstract class KotlinModuleBuildTarget<BuildMetaInfoType : BuildMetaInfo> intern
get() = _sources.value
@Volatile
private var _sources: Lazy<Map<File, Source>> = lazy { updateSourcesList(jpsGlobalContext) }
private var _sources: Lazy<Map<File, Source>> = lazy { computeSourcesList(jpsGlobalContext) }
fun nextRound(localContext: CompileContext) {
_sources = lazy { updateSourcesList(localContext) }
_sources = lazy { computeSourcesList(localContext) }
}
private fun updateSourcesList(localContext: CompileContext): Map<File, Source> {
private fun computeSourcesList(localContext: CompileContext): Map<File, Source> {
val result = mutableMapOf<File, Source>()
val moduleExcludes = module.excludeRootsList.urls.mapTo(java.util.HashSet(), JpsPathUtil::urlToFile)