mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove this bit from function decls and closures. Instead, for closures, infer it from the presence of a single return or single expression AST node in the body, which ought to be equivalent, and automatically takes result builders into consideration. We can also completely drop this query from AbstractFunctionDecl, replacing it instead with a bit on ReturnStmt.
11 KiB
11 KiB