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.

restoreSourceCursor

AstGen.restoreSourceCursor
fn restoreSourceCursor(astgen: *AstGen, cursor: SourceCursor) void

File

lib/std/zig/AstGen.zig:12850

Code

fn restoreSourceCursor(astgen: *AstGen, cursor: SourceCursor) void {
    astgen.source_offset = cursor.offset;
    astgen.source_line = cursor.line;
    astgen.source_column = cursor.column;
}