JPS, minor: rename KotlinModuleBuildTarget.updateSourcesList to computeSourcesList
Original commit: 81cf3fbc28
This commit is contained in:
@@ -152,13 +152,13 @@ abstract class KotlinModuleBuildTarget<BuildMetaInfoType : BuildMetaInfo> intern
|
|||||||
get() = _sources.value
|
get() = _sources.value
|
||||||
|
|
||||||
@Volatile
|
@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) {
|
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 result = mutableMapOf<File, Source>()
|
||||||
val moduleExcludes = module.excludeRootsList.urls.mapTo(java.util.HashSet(), JpsPathUtil::urlToFile)
|
val moduleExcludes = module.excludeRootsList.urls.mapTo(java.util.HashSet(), JpsPathUtil::urlToFile)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user