Sema: implement ExportOptions support in @export
Also fix switch blocks not emitting their AIR code.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user