lib/chant/src/ast/variable.zig
daab053ee43316e1809a84551d573ddd1e5bf3d2
1 const types = @import("type/root.zig");
2 const expr = @import("expr.zig");
3 const storage = @import("storage.zig");
4
5 pub const Variable = struct {
6 name: []const u8,
7 type: *const types.Type,
8 storage: storage.Storage = .none,
9 alignment: ?u64 = null,
10 is_constexpr: bool = false,
11 is_thread_local: bool = false,
12 initializer: ?*expr.Expr = null,
13 };