@@ -111,9 +111,9 @@ public final actor SemanticIndexManager {
111111 /// ...). `nil` if no build graph is currently being generated.
112112 private var generateBuildGraphTask : Task < Void , Never > ?
113113
114- private let preparationUpToDateStatus = IndexUpToDateStatusManager < ConfiguredTarget > ( )
114+ private let preparationUpToDateTracker = UpToDateTracker < ConfiguredTarget > ( )
115115
116- private let indexStoreUpToDateStatus = IndexUpToDateStatusManager < DocumentURI > ( )
116+ private let indexStoreUpToDateTracker = UpToDateTracker < DocumentURI > ( )
117117
118118 /// The preparation tasks that have been started and are either scheduled in the task scheduler or currently
119119 /// executing.
@@ -305,23 +305,23 @@ public final actor SemanticIndexManager {
305305 // We only re-index the files that were changed and don't re-index any of their dependencies. See the
306306 // `Documentation/Files_To_Reindex.md` file.
307307 let changedFiles = events. map ( \. uri)
308- await indexStoreUpToDateStatus . markOutOfDate ( changedFiles)
308+ await indexStoreUpToDateTracker . markOutOfDate ( changedFiles)
309309
310310 // Note that configured targets are the right abstraction layer here (instead of a non-configured target) because a
311311 // build system might have targets that include different source files. Hence a source file might be in target T
312312 // configured for macOS but not in target T configured for iOS.
313313 let targets = await changedFiles. asyncMap { await buildSystemManager. configuredTargets ( for: $0) } . flatMap { $0 }
314314 if let dependentTargets = await buildSystemManager. targets ( dependingOn: targets) {
315- await preparationUpToDateStatus . markOutOfDate ( dependentTargets)
315+ await preparationUpToDateTracker . markOutOfDate ( dependentTargets)
316316 } else {
317- await preparationUpToDateStatus . markAllOutOfDate ( )
317+ await preparationUpToDateTracker . markAllKnownOutOfDate ( )
318318 // `markAllOutOfDate` only marks targets out-of-date that have been indexed before. Also mark all targets with
319319 // in-progress preparation out of date. So we don't get into the following situation, which would result in an
320320 // incorrect up-to-date status of a target
321321 // - Target preparation starts for the first time
322322 // - Files changed
323323 // - Target preparation finishes.
324- await preparationUpToDateStatus . markOutOfDate ( inProgressPreparationTasks. keys)
324+ await preparationUpToDateTracker . markOutOfDate ( inProgressPreparationTasks. keys)
325325 }
326326
327327 await scheduleBackgroundIndex ( files: changedFiles)
@@ -406,7 +406,7 @@ public final actor SemanticIndexManager {
406406 // schedule two preparations of the same target in quick succession, only the first one actually performs a prepare
407407 // and the second one will be a no-op once it runs.
408408 let targetsToPrepare = await targets. asyncFilter {
409- await !preparationUpToDateStatus . isUpToDate ( $0)
409+ await !preparationUpToDateTracker . isUpToDate ( $0)
410410 }
411411
412412 guard !targetsToPrepare. isEmpty else {
@@ -417,7 +417,7 @@ public final actor SemanticIndexManager {
417417 PreparationTaskDescription (
418418 targetsToPrepare: targetsToPrepare,
419419 buildSystemManager: self . buildSystemManager,
420- preparationUpToDateStatus : preparationUpToDateStatus ,
420+ preparationUpToDateTracker : preparationUpToDateTracker ,
421421 indexProcessDidProduceResult: indexProcessDidProduceResult,
422422 testHooks: testHooks
423423 )
@@ -464,7 +464,7 @@ public final actor SemanticIndexManager {
464464 filesToIndex: filesAndTargets,
465465 buildSystemManager: self . buildSystemManager,
466466 index: index,
467- indexStoreUpToDateStatus : indexStoreUpToDateStatus ,
467+ indexStoreUpToDateTracker : indexStoreUpToDateTracker ,
468468 indexProcessDidProduceResult: indexProcessDidProduceResult,
469469 testHooks: testHooks
470470 )
@@ -509,7 +509,7 @@ public final actor SemanticIndexManager {
509509 // schedule two indexing jobs for the same file in quick succession, only the first one actually updates the index
510510 // store and the second one will be a no-op once it runs.
511511 let outOfDateFiles = await filesToIndex ( toCover: files) . asyncFilter {
512- if await indexStoreUpToDateStatus . isUpToDate ( $0. sourceFile) {
512+ if await indexStoreUpToDateTracker . isUpToDate ( $0. sourceFile) {
513513 return false
514514 }
515515 guard let language = await buildSystemManager. defaultLanguage ( for: $0. mainFile) ,
0 commit comments