Commit c5b408f
committed
Use presumed file/line number when printing grouped diagnostics
For the primary diagnostic, print the presumed file/line number in the
same manner as the Swift compiler does. In the actual code listing,
keep the line numbers and code from the actual source file that was
parsed, because there's no sensible way to map the source from the
`#sourceLocation`-named file (which might not exist).1 parent 2f5dd64 commit c5b408f
File tree
2 files changed
+26
-1
lines changed- Sources/SwiftDiagnostics
- Tests/SwiftDiagnosticsTest
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
63 | 88 | | |
64 | 89 | | |
65 | 90 | | |
| |||
0 commit comments