Doug Gregor
Doug Gregor
Demonstrate the effect of the Swift Concurrency translation on Objective-C APIs.
Fixes rdar://108871352.
The `hasStorage()` computation is used in many places to determine the signatures of other declarations. It currently needs to expand accessor macros, which causes a number of cyclic references. Provide...
Lookahead to determine when we are parsing a type within an expression context was failing to consider inverted constraints. Make sure we look past the `~` to an identifier.
### Issue Kind Bad Diagnostic Produced ### Source Code ```swift func foo() -> throws(MyError) Int {} ``` ### Description Applying the Fix-It for the parser diagnostics here produces malformed code,...
### Description The `GroupedDiagnostics` formatter takes an array of `Diagnostic`s that it formats into a buffer. However, it only handles the top-level diagnostic messages, not any [attached notes](https://github.com/apple/swift-syntax/blob/main/Sources/SwiftDiagnostics/Diagnostic.swift#L30C3-L31C1)---which also have...
Swift provides the ability to conditionally compile parts of a source file based on various built-time conditions, including information about the target (operating system, processor architecture, environment), information about the...
### Description Given this code: ```swift for (i = 🐮; i != 👩👩👦👦; i += 1) { x x } ``` The diagnostic formatter produces this: ``` 1 │ for...
### Issue Kind Bad Diagnostic Produced ### Source Code ```swift func genFn(_: T) -> Int {} ``` ### Description We get these diagnostics: ``` 1:21: Expected '>' to end generic...