mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:11:12 +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:
@@ -28,7 +28,7 @@ auto Parse(Lex::TokenizedBuffer& tokens, Diagnostics::Consumer& consumer,
|
||||
context.AddLeafNode(NodeKind::FileStart,
|
||||
context.ConsumeChecked(Lex::TokenKind::FileStart));
|
||||
|
||||
context.PushState(StateKind::DeclScopeLoop);
|
||||
context.PushState(StateKind::DeclScopeLoopAsNonClass);
|
||||
|
||||
while (!context.state_stack().empty()) {
|
||||
switch (context.state_stack().back().kind) {
|
||||
|
||||
Reference in New Issue
Block a user