Parse support for simple friend declarations (#7889)

This change only supports `friend` with an identifier operand, because
there are a lot of open questions about the desired syntax beyond that.
This commit is contained in:
Geoff Romer authored and GitHub committed 2026-10-05 17:30:29 +00:00
1 parent d31a8b67d3
commit 8f258eaaa6
9 files changed
+208

No files matched your search

+9
View File
@@ -443,6 +443,15 @@ auto HandleParseNode(Context& context, Parse::BaseDeclId node_id) -> bool {
return true;
}
auto HandleParseNode(Context& context, Parse::FriendIntroducerId node_id)
-> bool {
return context.TODO(node_id, "friend decl not supported in check");
}
auto HandleParseNode(Context& context, Parse::FriendDeclId node_id) -> bool {
return context.TODO(node_id, "friend decl not supported in check");
}
auto HandleParseNode(Context& context, Parse::ClassDefinitionId node_id)
-> bool {
auto class_id =