aboutsummaryrefslogtreecommitdiff
path: root/src/js_printer.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-30 00:17:17 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-30 00:17:17 -0700
commitd1db1fdd79ae34f443c3ab701016790737980458 (patch)
tree43f635d7a7959e578330c43d20b6f52d623acbc0 /src/js_printer.zig
parent2a54b9f13803a06514c1681464a4a86c0c15f978 (diff)
downloadbun-d1db1fdd79ae34f443c3ab701016790737980458.tar.gz
bun-d1db1fdd79ae34f443c3ab701016790737980458.tar.zst
bun-d1db1fdd79ae34f443c3ab701016790737980458.zip
This blocks approach seems to work
Former-commit-id: 95d5bc78f29e541d299d77e7c521a808f80499b7
Diffstat (limited to 'src/js_printer.zig')
-rw-r--r--src/js_printer.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/js_printer.zig b/src/js_printer.zig
index de467a105..698eb3227 100644
--- a/src/js_printer.zig
+++ b/src/js_printer.zig
@@ -1473,7 +1473,7 @@ pub fn NewPrinter(comptime ascii_only: bool) type {
var wrap = false;
if (p.call_target) |target| {
- wrap = e.was_originally_identifier and target.e_import_identifier.index == expr.data.e_import_identifier.index;
+ wrap = e.was_originally_identifier and target.e_import_identifier == expr.data.e_import_identifier;
}
if (wrap) {
@@ -2870,26 +2870,26 @@ pub fn NewPrinter(comptime ascii_only: bool) type {
while (true) {
switch (s.*) {
.s_if => |index| {
- if (Stmt.Data.Store.If.at(index).no) |*no| {
+ if (index.no) |*no| {
s = &no.data;
} else {
return true;
}
},
.s_for => |current| {
- s = &Stmt.Data.Store.For.at(current).body.data;
+ s = &current.body.data;
},
.s_for_in => |current| {
- s = &Stmt.Data.Store.ForIn.at(current).body.data;
+ s = &current.body.data;
},
.s_for_of => |current| {
- s = &Stmt.Data.Store.ForOf.at(current).body.data;
+ s = &current.body.data;
},
.s_while => |current| {
- s = &Stmt.Data.Store.While.at(current).body.data;
+ s = &current.body.data;
},
.s_with => |current| {
- s = &Stmt.Data.Store.With.at(current).body.data;
+ s = &current.body.data;
},
else => {
return false;