mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user