For modifiers, get the TokenKind from DeclKind instead of argument. (#4028)

This commit is contained in:
Jon Ross-Perkins
2024-06-05 16:23:36 +00:00
committed by GitHub
parent a910eda020
commit 0ffa5bf659
13 changed files with 83 additions and 78 deletions
+1 -2
View File
@@ -194,8 +194,7 @@ static auto BuildImplDecl(Context& context, Parse::AnyImplDeclId node_id)
// TODO: Handle `final` modifier.
auto introducer =
context.decl_introducer_state_stack().Pop(DeclIntroducerState::Impl);
LimitModifiersOnDecl(context, introducer, KeywordModifierSet::ImplDecl,
Lex::TokenKind::Impl);
LimitModifiersOnDecl(context, introducer, KeywordModifierSet::ImplDecl);
// Finish processing the name, which should be empty, but might have
// parameters.