mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 03:02:41 +00: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:
1 parent
9cdb9c803a
commit
e940cb72b6
14 files changed
+177
-162
No files matched your search
@@ -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