mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Syntax] Parse "value binding pattern" nodes
This commit is contained in:
@@ -875,6 +875,7 @@ ParserResult<Pattern> Parser::parsePattern() {
|
||||
|
||||
case tok::kw_var:
|
||||
case tok::kw_let: {
|
||||
PatternCtx.setCreateSyntax(SyntaxKind::ValueBindingPattern);
|
||||
bool isLet = Tok.is(tok::kw_let);
|
||||
SourceLoc varLoc = consumeToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user