File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ extension GroupedDiagnostics {
150
150
151
151
// If this is a root note, take the first note.
152
152
if sourceFile. parent == nil ,
153
- let note = sourceFile. diagnostics. first {
153
+ let note = sourceFile. diagnostics. first
154
+ {
154
155
return ( sourceFile, note)
155
156
}
156
157
@@ -205,7 +206,8 @@ extension GroupedDiagnostics {
205
206
// Provide a link back to the original source file where this generated buffer occurred, so it's easy to find if
206
207
// (for example) the generated buffer is no longer available.
207
208
if sourceFile. id != primaryDiagSourceFile. id,
208
- var ( rootSourceID, rootPosition) = primaryDiagSourceFile. parent {
209
+ var ( rootSourceID, rootPosition) = primaryDiagSourceFile. parent
210
+ {
209
211
// Go all the way up to the root to find the absolute position of the outermost generated buffer within the
210
212
// root source file.
211
213
while let parent = sourceFiles [ rootSourceID. id] . parent {
You can’t perform that action at this time.
0 commit comments