[Syntax] Parse "value binding pattern" nodes

This commit is contained in:
Rintaro Ishizaki
2017-12-20 18:19:07 +09:00
parent c379f5c232
commit bc768b6e0e
3 changed files with 12 additions and 1 deletions

View File

@@ -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();