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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user