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 standard library.
std › zig › Ast › ptrType Public Function ptrType Doc Source Public Function std.zig.Ast.ptrType
pub fn ptrType (tree : Ast , node : Node .Index ) full .PtrType Params File zig/Ast.zig: 1670
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683 pub fn ptrType (tree : Ast , node : Node .Index ) full .PtrType {
assert (tree .nodeTag (node ) == .ptr_type );
const extra_index , const child_type = tree .nodeData (node ).extra_and_node ;
const extra = tree .extraData (extra_index , Node .PtrType );
return tree .fullPtrTypeComponents (.{
.main_token = tree .nodeMainToken (node ),
.align_node = extra .align_node ,
.addrspace_node = extra .addrspace_node ,
.sentinel = extra .sentinel ,
.bit_range_start = .none ,
.bit_range_end = .none ,
.child_type = child_type ,
});
}