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 {
150150
151151 // If this is a root note, take the first note.
152152 if sourceFile. parent == nil ,
153- let note = sourceFile. diagnostics. first {
153+ let note = sourceFile. diagnostics. first
154+ {
154155 return ( sourceFile, note)
155156 }
156157
@@ -205,7 +206,8 @@ extension GroupedDiagnostics {
205206 // Provide a link back to the original source file where this generated buffer occurred, so it's easy to find if
206207 // (for example) the generated buffer is no longer available.
207208 if sourceFile. id != primaryDiagSourceFile. id,
208- var ( rootSourceID, rootPosition) = primaryDiagSourceFile. parent {
209+ var ( rootSourceID, rootPosition) = primaryDiagSourceFile. parent
210+ {
209211 // Go all the way up to the root to find the absolute position of the outermost generated buffer within the
210212 // root source file.
211213 while let parent = sourceFiles [ rootSourceID. id] . parent {
You can’t perform that action at this time.
0 commit comments