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.
Zig › compiler/ › translate-c/ › ast.zig › renderBinOpGrouped
renderBinOpGrouped
ast.renderBinOpGrouped
fn renderBinOpGrouped (c : *Context , node : Node , tag : std .zig .Ast .Node .Tag , tok_tag : TokenTag , bytes : []const u8 ) !NodeIndex
File
Code
fn renderBinOpGrouped (c : *Context , node : Node , tag : std .zig .Ast .Node .Tag , tok_tag : TokenTag , bytes : []const u8 ) !NodeIndex {
const payload = @as (*Payload .BinOp , @alignCast (@fieldParentPtr ("base" , node .ptr_otherwise ))).data ;
const lhs = try renderNodeGrouped (c , payload .lhs );
return c .addNode (.{
.tag = tag ,
.main_token = try c .addToken (tok_tag , bytes ),
.data = .{ .node_and_node = .{
lhs , try renderNodeGrouped (c , payload .rhs ),
} },
});
}