pub const DebugLocation = union(enum)
pub const DebugLocation = union(enum) { no_location: void, location: Location, pub const Location = struct { line: u32, column: u32, scope: Builder.Metadata.Optional, inlined_at: Builder.Metadata.Optional, }; pub fn toMetadata(self: DebugLocation, builder: *Builder) Allocator.Error!Metadata.Optional { return switch (self) { .no_location => .none, .location => |location| (try builder.debugLocation( location.line, location.column, location.scope.unwrap().?, location.inlined_at.unwrap(), )).toOptional(), }; } }