mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Parser] Replace postfix ellipsis with a prefix 'repeat' keyword for pack
expansion expressions, and create them in the parser instead of during pre-checking in the constraint system.
This commit is contained in:
@@ -163,7 +163,8 @@ bool Parser::startsParameterName(bool isClosure) {
|
||||
if (!Tok.isContextualKeyword("isolated") &&
|
||||
!Tok.isContextualKeyword("some") &&
|
||||
!Tok.isContextualKeyword("any") &&
|
||||
!Tok.isContextualKeyword("each"))
|
||||
!Tok.isContextualKeyword("each") &&
|
||||
!Tok.is(tok::kw_repeat))
|
||||
return true;
|
||||
|
||||
// "isolated" can be an argument label, but it's also a contextual keyword,
|
||||
|
||||
Reference in New Issue
Block a user