aboutsummaryrefslogtreecommitdiff
path: root/src/js_ast.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r--src/js_ast.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig
index 6f73f426a..29fa317ba 100644
--- a/src/js_ast.zig
+++ b/src/js_ast.zig
@@ -211,6 +211,10 @@ pub const BindingNodeIndex = Binding;
pub const StmtNodeIndex = Stmt;
pub const ExprNodeIndex = Expr;
+/// This is like ArrayList except it stores the length and capacity as u32
+/// In practice, it is very unusual to have lengths above 4 GB
+///
+/// This lets us have array lists which occupy the same amount of space as a slice
pub fn BabyList(comptime Type: type) type {
return struct {
const ListType = @This();