Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

append_parent_ns

Decl.append_parent_ns
pub fn append_parent_ns(list: *ArrayList(u8), parent: Decl.Index) Oom!void

File

lib/docs/wasm/Decl.zig:234

Code

pub fn append_parent_ns(list: *ArrayList(u8), parent: Decl.Index) Oom!void {
    assert(parent != .none);
    const decl = parent.get();
    if (decl.parent != .none) {
        try append_parent_ns(list, decl.parent);
        try list.appendSlice(gpa, decl.extra_info().name);
        try list.append(gpa, '.');
    }
}