Commit 7262c1a
committed
[SE-0458] Disambiguate existing uses of
Only treat `unsafe` as starting an unsafe expression if the following token
is on the same line and isn't a `)`. The former is in line with how we
handle other modifier expressions like this, and the latter is because of
the archaic `@MainActor(unsafe)`.unsafe better1 parent 14ea0a4 commit 7262c1a
File tree
2 files changed
+7
-16
lines changed- Sources/SwiftParser
- Tests/SwiftParserTest
2 files changed
+7
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
448 | 452 | | |
449 | 453 | | |
450 | 454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
2203 | | - | |
| 2203 | + | |
| 2204 | + | |
2204 | 2205 | | |
2205 | 2206 | | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
| 2207 | + | |
2221 | 2208 | | |
2222 | 2209 | | |
2223 | 2210 | | |
| |||
0 commit comments