Skip to content

Commit f875561

Browse files
author
David Ungar
committed
documented AdditionPurpose cases
1 parent fe7100a commit f875561

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraphParts/InputDependencySourceMap.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,15 @@ extension InputDependencySourceMap {
5757
// MARK: - Populating
5858
extension InputDependencySourceMap {
5959
public enum AdditionPurpose {
60-
case mocking,
61-
buildingFromSwiftDeps,
62-
readingPriors,
63-
inputsAddedSincePriors }
60+
/// For testing:
61+
case mocking
62+
/// When building from a `swiftdeps` file:
63+
case buildingFromSwiftDeps
64+
/// When deserializing the map from a prior build:
65+
case readingPriors
66+
/// Adding an entry for an input added to the build since the priors were stored:
67+
case inputsAddedSincePriors
68+
}
6469
@_spi(Testing) public mutating func addEntry(_ input: TypedVirtualPath,
6570
_ dependencySource: DependencySource,
6671
`for` _ : AdditionPurpose) {

0 commit comments

Comments
 (0)