mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We decided to go with 'var' as a distributive pattern introducer which applies to bare identifiers within the subpattern. For example, 'var (a, b)' and '(var a, var b)' would be equivalent patterns. To model this, give 'var' its own AST node with a subpattern and remove the introducer loc from NamedPattern. Swift SVN r5824
11 KiB
11 KiB