mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Separate fields from other var decls in parse (#5320)
This enables us to decouple class fields from pattern matching. --------- Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>
This commit is contained in:
@@ -67,7 +67,7 @@ auto HandleStatement(Context& context) -> void {
|
||||
// We intentionally don't handle Package here, because `package.` can be
|
||||
// used at the start of an expression, and it's not worth disambiguating it.
|
||||
case Lex::TokenKind::Var: {
|
||||
context.PushState(StateKind::Decl);
|
||||
context.PushState(StateKind::DeclAsNonClass);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user