swift
9b64990d - [AST] Remove the "single expression body" bit

Commit
1 year ago
[AST] Remove the "single expression body" bit 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.
Author
Parents
Loading