diff options
author | 2023-05-01 21:00:31 -0700 | |
---|---|---|
committer | 2023-05-01 21:00:31 -0700 | |
commit | b3c7d0ea23b99f66a8acfa0c629e60673c035f45 (patch) | |
tree | f9de5cc2e4014f0ba334356e7112511ca7433685 /src/js_ast.zig | |
parent | 1af4e1dce1f4e89f2581872e390c7e68150ecf29 (diff) | |
download | bun-b3c7d0ea23b99f66a8acfa0c629e60673c035f45.tar.gz bun-b3c7d0ea23b99f66a8acfa0c629e60673c035f45.tar.zst bun-b3c7d0ea23b99f66a8acfa0c629e60673c035f45.zip |
Small improvement to minifier
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 2ad88ea62..e5b9db2bc 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -4060,6 +4060,10 @@ pub const Expr = struct { } } + pub fn isPrimitiveLiteral(this: Expr) bool { + return @as(Tag, this.data).isPrimitiveLiteral(); + } + pub const Tag = enum(u6) { e_array, e_unary, |