mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This introduces a few unfortunate things because the syntax is awkward. In particular, the period and following token in \.[a], \.? and \.! are token sequences that don't appear anywhere else in Swift, and so need special handling. This is somewhat compounded by \foo.bar.baz possibly being \(foo).bar.baz or \(foo.bar).baz (parens around the type), and, furthermore, needing to distinguish \Foo?.bar from \Foo.?bar. rdar://problem/31724243