mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 16:01:05 +01:00
Decouple associated constants from let (#5973)
Decouples associated constants from being special cased in let handlers. Enforces associated constant grammar restrictions in parsing instead of checking. Closes #5411
This commit is contained in:
@@ -31,7 +31,7 @@ auto Parse(Lex::TokenizedBuffer& tokens, ParseOptions options) -> Tree {
|
||||
context.AddLeafNode(NodeKind::FileStart,
|
||||
context.ConsumeChecked(Lex::TokenKind::FileStart));
|
||||
|
||||
context.PushState(StateKind::DeclScopeLoopAsNonClass);
|
||||
context.PushState(StateKind::DeclScopeLoopAsRegular);
|
||||
|
||||
while (!context.state_stack().empty()) {
|
||||
switch (context.state_stack().back().kind) {
|
||||
|
||||
Reference in New Issue
Block a user