Move 'export name' out of the import section. (#3950)

This implements recent updates to #3938
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-05-17 18:26:14 +00:00
1 parent 40b2217421
commit ecb300ee5e
12 files changed
+208 -74

No files matched your search

+2 -1
View File
@@ -223,7 +223,8 @@ CARBON_PARSE_NODE_KIND_CHILD_COUNT(LibrarySpecifier, 1, Library)
// _external_: IdentifierName or QualifiedName
// ExportDirective
CARBON_PARSE_NODE_KIND_CHILD_COUNT(ExportIntroducer, 0, Export)
CARBON_PARSE_NODE_KIND_CHILD_COUNT(ExportDirective, 2, CARBON_IF_VALID(Semi))
CARBON_PARSE_NODE_KIND_BRACKET(ExportDirective, ExportIntroducer,
CARBON_IF_VALID(Semi))
// `namespace`:
// NamespaceStart