aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig
index a42ec3c2e1..f52e1c8ef7 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -782,6 +782,10 @@ pub const ErrorSet = struct {
/// The length is given by `names_len`.
names_ptr: [*]const []const u8,
+ pub fn names(self: ErrorSet) []const []const u8 {
+ return self.names_ptr[0..self.names_len];
+ }
+
pub fn srcLoc(self: ErrorSet) SrcLoc {
return .{
.file_scope = self.owner_decl.getFileScope(),