Skip to content

Commit ec13d74

Browse files
Merge pull request #15 from oven-sh/zack/expose-dbHelper
Expose `dbHelper` functions
2 parents edc6229 + f3f5b58 commit ec13d74

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/std/hash_map.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ pub fn HashMapUnmanaged(
15191519

15201520
/// This function is used in the debugger pretty formatters in tools/ to fetch the
15211521
/// header type to facilitate fancy debug printing for this type.
1522-
fn dbHelper(self: *Self, hdr: *Header, entry: *Entry) void {
1522+
pub fn dbHelper(self: *Self, hdr: *Header, entry: *Entry) void {
15231523
_ = self;
15241524
_ = hdr;
15251525
_ = entry;

lib/std/multi_array_list.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub fn MultiArrayList(comptime T: type) type {
137137

138138
/// This function is used in the debugger pretty formatters in tools/ to fetch the
139139
/// child field order and entry type to facilitate fancy debug printing for this type.
140-
fn dbHelper(self: *Slice, child: *Elem, field: *Field, entry: *Entry) void {
140+
pub fn dbHelper(self: *Slice, child: *Elem, field: *Field, entry: *Entry) void {
141141
_ = self;
142142
_ = child;
143143
_ = field;
@@ -587,7 +587,7 @@ pub fn MultiArrayList(comptime T: type) type {
587587
};
588588
/// This function is used in the debugger pretty formatters in tools/ to fetch the
589589
/// child field order and entry type to facilitate fancy debug printing for this type.
590-
fn dbHelper(self: *Self, child: *Elem, field: *Field, entry: *Entry) void {
590+
pub fn dbHelper(self: *Self, child: *Elem, field: *Field, entry: *Entry) void {
591591
_ = self;
592592
_ = child;
593593
_ = field;

src/InternPool.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4730,7 +4730,7 @@ pub const Index = enum(u32) {
47304730

47314731
/// This function is used in the debugger pretty formatters in tools/ to fetch the
47324732
/// Tag to encoding mapping to facilitate fancy debug printing for this type.
4733-
fn dbHelper(self: *Index, tag_to_encoding_map: *struct {
4733+
pub fn dbHelper(self: *Index, tag_to_encoding_map: *struct {
47344734
const DataIsIndex = struct { data: Index };
47354735
const DataIsExtraIndexOfEnumExplicit = struct {
47364736
const @"data.fields_len" = opaque {};

0 commit comments

Comments
 (0)