mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is our first statement attribute, made more complicated by the fact that a 'case'/'default' isn't really a normal statement. I've chosen /not/ to implement a general statement attribute logic like we have for types and decls at this time, but I did get the compiler parsing arbitrary attributes before 'case' and 'default'. As a bonus, we now treat all cases within functions as being switch-like rather than enum-like, which is better for recovery when not in a switch.
20 KiB
20 KiB