[SyntaxTree][List] Fix: `ParameterDeclarationList` is the `List` inside `ParametersAndQualifiers`

Differential Revision: https://reviews.llvm.org/D87598
This commit is contained in:
Eduardo Caldas 2020-09-14 07:56:39 +00:00
parent 676febc044
commit 12232dc181
1 changed files with 3 additions and 3 deletions

View File

@ -366,7 +366,7 @@ clang::tok::TokenKind syntax::List::getDelimiterTokenKind() {
case NodeKind::NestedNameSpecifier:
return clang::tok::coloncolon;
case NodeKind::CallArguments:
case NodeKind::ParametersAndQualifiers:
case NodeKind::ParameterDeclarationList:
return clang::tok::comma;
default:
llvm_unreachable("This is not a subclass of List, thus "
@ -379,7 +379,7 @@ syntax::List::TerminationKind syntax::List::getTerminationKind() {
case NodeKind::NestedNameSpecifier:
return TerminationKind::Terminated;
case NodeKind::CallArguments:
case NodeKind::ParametersAndQualifiers:
case NodeKind::ParameterDeclarationList:
return TerminationKind::Separated;
default:
llvm_unreachable("This is not a subclass of List, thus "
@ -393,7 +393,7 @@ bool syntax::List::canBeEmpty() {
return false;
case NodeKind::CallArguments:
return true;
case NodeKind::ParametersAndQualifiers:
case NodeKind::ParameterDeclarationList:
return true;
default:
llvm_unreachable("This is not a subclass of List, thus canBeEmpty() "