Parse ref as operator (#6539)

This is the first step of implementing the guidance in #6342.

---------

Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>
This commit is contained in:
Geoff Romerandjosh11b authored and GitHub committed 2025-12-30 19:18:34 +00:00
1 parent 9cdb9c803a
commit e940cb72b6
14 files changed
+177 -162

No files matched your search

-5
View File
@@ -133,11 +133,6 @@ static auto HandleBraceExprParamAfterDesignator(Context& context,
// that one has a `:` separator and the other has an `=` separator.
state.token = context.Consume();
context.PushState(state, param_finish_kind);
if (param_finish_kind == StateKind::BraceExprParamFinishAsValue &&
context.PositionIs(Lex::TokenKind::Ref)) {
context.PushState(StateKind::RefTagFinishAsRegular);
context.ConsumeChecked(Lex::TokenKind::Ref);
}
context.PushState(StateKind::Expr);
}