mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch also refactors the structure of function signature node so that closure signature can re-use parts of function signature. For instance, we group arrow and return type to be "ReturnClause". And we group parenthesized parameter list to be "ParamClause". This structure of closure signature also calls for a good way to represent either-or node in libSyntax APIs, since we've two ways to specify parameters in closure: one is as regular function parameter and the other is dot-separated simple names.
40 KiB
40 KiB