Sema: implement ExportOptions support in @export

Also fix switch blocks not emitting their AIR code.
This commit is contained in:
Andrew Kelley
2021-05-03 20:05:29 -07:00
parent 69d18ad7f0
commit 2ae72c6f09
5 changed files with 116 additions and 88 deletions

View File

@@ -3273,6 +3273,10 @@ pub fn analyzeExport(
const owner_decl = scope.ownerDecl().?;
log.debug("exporting Decl '{s}' as symbol '{s}' from Decl '{s}'", .{
exported_decl.name, borrowed_symbol_name, owner_decl.name,
});
new_export.* = .{
.options = .{ .name = symbol_name },
.src = src,