mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 18:48:12 +00:00
Don't create two parse nodes for each => token. (#7894)
Instead of producing two parse nodes in a row for each `=>` token, produce just one. Assisted-by: Gemini via Antigravity
This commit is contained in:
1 parent
a5912b8b82
commit
f83518bfd7
12 files changed
+12
-28
No files matched your search
@@ -63,7 +63,6 @@ auto HandleFunctionSignatureFinish(Context& context) -> void {
|
||||
}
|
||||
case Lex::TokenKind::EqualGreater: {
|
||||
context.AddFunctionDefinitionStart(context.Consume(), state.has_error);
|
||||
context.AddLeafNode(NodeKind::TerseBodyArrow, *(context.position() - 1));
|
||||
context.PushState(state, StateKind::FunctionTerseBodyFinish);
|
||||
context.PushStateForExpr(PrecedenceGroup::ForTopLevelExpr());
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user