Remove obsolete '...' hints on node kind macros (#4958)

We used to have more arguments, but they've mostly been removed now.
This commit is contained in:
Jon Ross-Perkins
2025-02-15 01:36:46 +00:00
committed by GitHub
parent e3764ff6f3
commit 9cd3f0aa3d
6 changed files with 29 additions and 31 deletions
+4 -5
View File
@@ -184,9 +184,8 @@ static auto ResolveAmbiguousTokenAsDeclaration(Context& context,
case Lex::TokenKind::Library:
case Lex::TokenKind::Namespace:
case Lex::TokenKind::Var:
#define CARBON_PARSE_NODE_KIND(...)
#define CARBON_PARSE_NODE_KIND_TOKEN_MODIFIER(Name, ...) \
case Lex::TokenKind::Name:
#define CARBON_PARSE_NODE_KIND(Name)
#define CARBON_PARSE_NODE_KIND_TOKEN_MODIFIER(Name) case Lex::TokenKind::Name:
#include "toolchain/parse/node_kind.def"
return false;
@@ -214,8 +213,8 @@ static auto TryHandleAsModifier(Context& context) -> bool {
}
switch (position_kind) {
#define CARBON_PARSE_NODE_KIND(...)
#define CARBON_PARSE_NODE_KIND_TOKEN_MODIFIER(Name, ...) \
#define CARBON_PARSE_NODE_KIND(Name)
#define CARBON_PARSE_NODE_KIND_TOKEN_MODIFIER(Name) \
case Lex::TokenKind::Name: \
context.AddLeafNode(NodeKind::Name##Modifier, context.Consume()); \
return true;