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.

resolveIdentLink

html_render.resolveIdentLink
fn resolveIdentLink(
    file_index: Walk.File.Index,
    out: *ArrayList(u8),
    ident_token: Ast.TokenIndex,
) Oom!void

File

lib/docs/wasm/html_render.zig:386

Code

fn resolveIdentLink(
    file_index: Walk.File.Index,
    out: *ArrayList(u8),
    ident_token: Ast.TokenIndex,
) Oom!void {
    const decl_index = file_index.get().lookup_token(ident_token);
    if (decl_index == .none) return;
    try resolveDeclLink(decl_index, out);
}