Skip to content

Commit 0dc8704

Browse files
author
David Ungar
committed
Address review comments.
1 parent 41237bf commit 0dc8704

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraph.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,9 @@ extension ModuleDependencyGraph {
209209
let diags = info.diagnosticEngine
210210
var allFound = true
211211
for input in info.inputFiles {
212-
if let source = ofm.getDependencySource(for: input, diagnosticEngine: diags) {
212+
if let source = ofm.dependencySource(for: input, diagnosticEngine: diags) {
213213
inputDependencySourceMap.addEntry(input, source, for: purpose)
214-
}
215-
else {
214+
} else {
216215
// Don't break in order to report all failures.
217216
allFound = false
218217
}
@@ -221,7 +220,7 @@ extension ModuleDependencyGraph {
221220
}
222221
}
223222
extension OutputFileMap {
224-
fileprivate func getDependencySource(
223+
fileprivate func dependencySource(
225224
for sourceFile: TypedVirtualPath,
226225
diagnosticEngine: DiagnosticsEngine
227226
) -> DependencySource? {
@@ -345,8 +344,7 @@ extension ModuleDependencyGraph {
345344
) -> TransitivelyInvalidatedInputSet? {
346345
var invalidatedInputs = TransitivelyInvalidatedInputSet()
347346
for invalidatedSwiftDeps in collectSwiftDepsUsingInvalidated(nodes: directlyInvalidatedNodes) {
348-
guard let invalidatedInput = input(neededFor: invalidatedSwiftDeps)
349-
else {
347+
guard let invalidatedInput = input(neededFor: invalidatedSwiftDeps) else {
350348
return nil
351349
}
352350
invalidatedInputs.insert(invalidatedInput)

0 commit comments

Comments
 (0)