libSyntax: support function parameter nodes. (#13324)

This commit is contained in:
Xi Ge
2017-12-07 14:09:17 -08:00
committed by GitHub
parent 6d2c465071
commit 1b24d23c1e
6 changed files with 48 additions and 18 deletions

View File

@@ -167,7 +167,7 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc,
return parseList(tok::r_paren, leftParenLoc, rightParenLoc,
/*AllowSepAfterLast=*/false,
diag::expected_rparen_parameter,
SyntaxKind::Unknown,
SyntaxKind::FunctionParameterList,
[&]() -> ParserStatus {
ParsedParameter param;
ParserStatus status;