diff options
author | 2021-05-30 01:17:55 -0700 | |
---|---|---|
committer | 2021-05-30 01:17:55 -0700 | |
commit | 534f9cf509a1816734ff77af0ae132069b25761c (patch) | |
tree | a20f458af480ebac505fef11225dc75099e51399 /src/js_parser | |
parent | d1db1fdd79ae34f443c3ab701016790737980458 (diff) | |
download | bun-534f9cf509a1816734ff77af0ae132069b25761c.tar.gz bun-534f9cf509a1816734ff77af0ae132069b25761c.tar.zst bun-534f9cf509a1816734ff77af0ae132069b25761c.zip |
This'll do for now, I guess.
Former-commit-id: cfda423c01b2c9265989bc3eb4c54c0fd124c669
Diffstat (limited to 'src/js_parser')
-rw-r--r-- | src/js_parser/js_parser.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index ced5f8f25..b24001323 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -5249,13 +5249,14 @@ pub const P = struct { try p.lexer.expect(.t_close_paren); const args = p.allocator.alloc(ExprNodeIndex, 1) catch unreachable; args[0] = path; - value.data = .{ .e_call = Expr.Data.Store.Call.append(E.Call{ .target = value, .args = args }) }; + value.data = .{ .e_call = Expr.Data.Store.All.append(E.Call, E.Call{ .target = value, .args = args }) }; } else { // "import Foo = Bar" // "import Foo = Bar.Baz" while (p.lexer.token == .t_dot) { try p.lexer.next(); - value.data = .{ .e_dot = Expr.Data.Store.Dot.append( + value.data = .{ .e_dot = Expr.Data.Store.All.append( + E.Dot, E.Dot{ .target = value, .name = p.lexer.identifier, .name_loc = p.lexer.loc() }, ) }; try p.lexer.expect(.t_identifier); |