about summary refs log tree commit diff
path: root/src/parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.zig')
-rw-r--r--src/parser.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.zig b/src/parser.zig
index 5db8fa8..e92ed51 100644
--- a/src/parser.zig
+++ b/src/parser.zig
@@ -92,6 +92,7 @@ pub const Node = union(enum) {
     TYPE: union(enum) {
         SIMPLE_TYPE: struct {
             name: []const u8,
+            underlying_type: ?*Node,
         },
         FUNCTION_TYPE: struct {
             parameters: []*Node,
@@ -863,6 +864,7 @@ pub const Parser = struct {
                     .TYPE = .{
                         .SIMPLE_TYPE = .{
                             .name = try self.arena.dupe(u8, ident),
+                            .underlying_type = null,
                         },
                     },
                 });