mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 17:41:26 +00:00
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:
1 parent
d31a8b67d3
commit
8f258eaaa6
9 files changed
+208
No files matched your search
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user