| ... | ... | @@ -21,7 +21,7 @@ pub fn parse(comptime input: string) astgen.Value { |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype) !void { |
| 24 | | const t = tracer.trace(@src()); |
| 24 | const t = tracer.trace(@src(), "", .{}); |
| 25 | 25 | defer t.end(); |
| 26 | 26 | |
| 27 | 27 | try writer.writeAll("<!DOCTYPE html>\n"); |
| ... | ... | @@ -34,7 +34,7 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, comptime opts: DoOptions, data: anytype) !void { |
| 37 | | const t = tracer.trace(@src()); |
| 37 | const t = tracer.trace(@src(), "", .{}); |
| 38 | 38 | defer t.end(); |
| 39 | 39 | |
| 40 | 40 | try do(alloc, writer, value, data, data, opts); |
| ... | ... | @@ -44,7 +44,7 @@ pub fn compileInner(alloc: std.mem.Allocator, writer: anytype, comptime value: a |
| 44 | 44 | pub const Writer = std.ArrayList(u8).Writer; |
| 45 | 45 | |
| 46 | 46 | fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions) anyerror!void { |
| 47 | | const t = tracer.trace(@src()); |
| 47 | const t = tracer.trace(@src(), "", .{}); |
| 48 | 48 | defer t.end(); |
| 49 | 49 | |
| 50 | 50 | switch (comptime value) { |
| ... | ... | @@ -342,7 +342,7 @@ fn Field(comptime T: type, comptime field_name: string) type { |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | pub fn writeEscaped(s: string, writer: anytype) !void { |
| 345 | | const t = tracer.trace(@src()); |
| 345 | const t = tracer.trace(@src(), "", .{}); |
| 346 | 346 | defer t.end(); |
| 347 | 347 | |
| 348 | 348 | const view = std.unicode.Utf8View.initUnchecked(s); |
| ... | ... | @@ -427,7 +427,7 @@ fn contains(haystack: []const string, needle: string) bool { |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | fn doif(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions, flag2: bool) anyerror!void { |
| 430 | | const t = tracer.trace(@src()); |
| 430 | const t = tracer.trace(@src(), "", .{}); |
| 431 | 431 | defer t.end(); |
| 432 | 432 | |
| 433 | 433 | if (flag2) { |
| ... | ... | @@ -438,7 +438,7 @@ fn doif(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, c |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | 440 | fn docap(alloc: std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, comptime opts: DoOptions, flag2: anytype) anyerror!void { |
| 441 | | const t = tracer.trace(@src()); |
| 441 | const t = tracer.trace(@src(), "", .{}); |
| 442 | 442 | defer t.end(); |
| 443 | 443 | |
| 444 | 444 | if (flag2) |_| { |