Add parsing for 'fn destroy' (#5045)

Syntax is proposed in #5017, but has already been discussed with leads.
Semantics is left as a TODO.

---------

Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>
This commit is contained in:
Jon Ross-Perkins
2025-03-03 17:37:10 +00:00
committed by GitHub
co-authored by josh11b
parent 437d3b9af6
commit c44e688e5d
19 changed files with 362 additions and 64 deletions
+5 -1
View File
@@ -98,6 +98,9 @@ CARBON_PARSE_NODE_KIND(EmptyDecl)
CARBON_PARSE_NODE_KIND(IdentifierNameNotBeforeParams)
CARBON_PARSE_NODE_KIND(IdentifierNameBeforeParams)
CARBON_PARSE_NODE_KIND(KeywordNameNotBeforeParams)
CARBON_PARSE_NODE_KIND(KeywordNameBeforeParams)
CARBON_PARSE_NODE_KIND(IdentifierNameExpr)
CARBON_PARSE_NODE_KIND(SelfValueName)
@@ -124,7 +127,8 @@ CARBON_PARSE_NODE_KIND(LibraryDecl)
CARBON_PARSE_NODE_KIND(LibrarySpecifier)
CARBON_PARSE_NODE_KIND(NameQualifierWithParams)
CARBON_PARSE_NODE_KIND(NameQualifierWithoutParams)
CARBON_PARSE_NODE_KIND(IdentifierNameQualifierWithoutParams)
CARBON_PARSE_NODE_KIND(KeywordNameQualifierWithoutParams)
CARBON_PARSE_NODE_KIND(ExportIntroducer)
CARBON_PARSE_NODE_KIND(ExportDecl)