Skip to content

Commit 162187c

Browse files
committed
Revert "SwiftSyntax: Fix resilient build"
This reverts commit bbb21c8.
1 parent f5f715f commit 162187c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/SwiftSyntax/Diagnostic.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public enum FixIt: Codable {
109109
/// it is a range with the same start and end location.
110110
public var range: SourceRange {
111111
switch self {
112-
case .remove(let range): return range
113-
case .replace(let range, _): return range
112+
case .remove(let range), .replace(let range, _): return range
114113
case .insert(let loc, _): return SourceRange(start: loc, end: loc)
115114
}
116115
}

0 commit comments

Comments
 (0)