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.

markAllFilesDirty

Watch.markAllFilesDirty
fn markAllFilesDirty(w: *Watch) void

File

lib/compiler/Maker/Watch.zig:918

Code

fn markAllFilesDirty(w: *Watch) void {
    const maker = w.maker;

    for (switch (builtin.os.tag) {
        .windows => w.os.handle_table.keys(),
        else => w.os.handle_table.values(),
    }) |item| {
        const reaction_set = switch (builtin.os.tag) {
            .linux, .windows => item.reaction_set,
            else => item,
        };
        for (reaction_set.values()) |step_set| {
            for (step_set.keys()) |step_index| {
                const step = maker.stepByIndex(step_index);
                _ = maker.invalidateResult(step);
            }
        }
    }
}