diff options
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 2f0d8ddd6..dbd0fb010 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -5269,6 +5269,11 @@ pub const S = struct { was_commonjs_export: bool = false, + pub fn canMergeWith(this: *const Local, other: *const Local) bool { + return this.kind == other.kind and this.is_export == other.is_export and + this.was_commonjs_export == other.was_commonjs_export; + } + pub const Kind = enum(u2) { k_var, k_let, |