authorchloe caruso <git@paperclover.net> 2024-10-29 00:09:55-07:00
committerchloe caruso <git@paperclover.net> 2024-10-29 00:09:55-07:00
logd0dcd18fdc6d392a08e9449f59bc9f2d2049f720
tree924b58b6455356cd95e4aa1002a5e0ef1e6960e4
parentb1f64e4c22560b8bf8cfa321d28ea21308dfb957
signature Commit is signed but in an unrecognized format.

fix todos


3 files changed, 4 insertions(+), 2 deletions(-)

src/core/Ast.Dump.zig+2
......@@ -75,6 +75,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err
7575 .string,
7676 .number_int,
7777 .number_float,
78 .enum_literal,
7879 => try writer.print(" {s}", .{state.ast.tokenSlice(main_token)}),
7980
8081 else => unreachable,
......@@ -124,6 +125,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err
124125 .block_void,
125126 .block_implicit_return,
126127 .struct_decl,
128 .@"enum",
127129 => try dumpNodeList(writer, state, list, '{', '}'),
128130 .builtin_call,
129131 .tuple_init,
src/core/Ast.zig+1-1
......@@ -344,7 +344,7 @@ pub const Node = struct {
344344 .shr_assign = .bin,
345345 .@"enum" = .list,
346346 .enum_literal = .none,
347 .enum_field = .none,
347 .enum_field = .enum_field,
348348 .string = .none,
349349 .struct_decl = .list,
350350 .array_type = .un,
src/core/Parse.zig+1-1
......@@ -742,7 +742,7 @@ fn parseEnumField(p: *Parse) Error!NodeIndex {
742742 null;
743743
744744 return try p.addNode(.{
745 .tag = .struct_field,
745 .tag = .enum_field,
746746 .main_token = main_token,
747747 .data = .{ .enum_field = .{
748748 .payload = .init(payload),