mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 20:32:38 +00:00
Parse where assignment declarations in impl definitions (#8136)
These were introduced in proposal #5168. Details: https://github.com/carbon-language/carbon-lang/blob/b7ea32c3a49620fae12f0b2298c81d429a20eab3/proposals/p005168-forward-impl-declaration-of-an-incomplete-interface.md#associated-constants-may-be-assigned-in-the-body-of-an-impl-definition
This commit is contained in:
1 parent
71a125a4c1
commit
c0b2cc5921
14 files changed
+529
-22
No files matched your search
@@ -75,7 +75,8 @@ auto HandleStatement(Context& context) -> void {
|
||||
case Lex::TokenKind::Observe:
|
||||
// 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: {
|
||||
case Lex::TokenKind::Var:
|
||||
case Lex::TokenKind::Where: {
|
||||
context.PushState(StateKind::DeclAsRegular);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user