Files
swift-mirror/test/expr
Ben Cohen c9c9000b20 MiscDiagnostics: handle implicit callee in fixItEncloseTrailingClosure (#88860)
When a CallExpr's callee is implicit (e.g. `callAsFunction`),
`fn->getEndLoc()` collapses to the call site's location, so the
bare-trailing-closure path could compute `lastLoc` at or past the
closure's start. The resulting `fixItReplaceChars(lastLoc,
closureRange.Start, ...)` produced a degenerate SourceRange that crashed
the Swift-syntax-aware diagnostic renderer when constructing
`Range<AbsolutePosition>`. Detect that case and fall back to a plain
insertion at the closure's start.

fixes rdar://170779809
2026-05-07 05:51:55 -07:00
..
2026-03-14 17:47:51 -04:00