mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
For modifiers, get the TokenKind from DeclKind instead of argument. (#4028)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user