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
@@ -28,8 +28,7 @@ auto HandleExportDecl(Context& context, Parse::ExportDeclId node_id) -> bool {
auto introducer =
context.decl_introducer_state_stack().Pop(DeclIntroducerState::Export);
LimitModifiersOnDecl(context, introducer, KeywordModifierSet::None,
Lex::TokenKind::Export);
LimitModifiersOnDecl(context, introducer, KeywordModifierSet::None);
if (name_context.state == DeclNameStack::NameContext::State::Error) {
// Should already be diagnosed.