mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Parse: Parse switch statements (again).
Reimplement 'switch' parsing for our new AST representation, where cases contain patterns and 'where' guards, case blocks can have multiple cases, and 'default' is constrained to being the lone label of the last block if present. No type-checking or parsing of actual pattern productions yet. Swift SVN r5834
This commit is contained in:
@@ -69,6 +69,7 @@ KEYWORD(fallthrough)
|
||||
KEYWORD(switch)
|
||||
KEYWORD(case)
|
||||
KEYWORD(default)
|
||||
KEYWORD(where)
|
||||
|
||||
// Expression keywords.
|
||||
KEYWORD(new)
|
||||
|
||||
Reference in New Issue
Block a user