Parsing impl...as (#3473)

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
josh11b
2023-12-09 04:04:00 +00:00
committed by GitHub
co-authored by Jon Ross-Perkins
parent c4864aa2ff
commit 5f439b842b
19 changed files with 650 additions and 116 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ static auto TryHandleAsDecl(Context& context, Context::StateStackEntry state,
return true;
}
case Lex::TokenKind::Impl: {
// TODO: Treat this `impl` token as a declaration introducer
HandleUnrecognizedDecl(context, state.subtree_start);
ApplyIntroducer(context, state, NodeKind::ImplIntroducer,
State::ImplAfterIntroducer);
return true;
}
case Lex::TokenKind::Interface: {