Skip to content

Commit f833197

Browse files
committed
Add Require AST node for CommonJS require
1 parent 1c75e52 commit f833197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ast_generic_v1.atd

+2
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ type special = [
364364
(* used for unary and binary operations *)
365365
| Op of operator
366366
| IncrDecr of (incr_decr * prefix_postfix)
367+
(* JS: `require('foo')` *)
368+
| Require
367369
]
368370

369371

0 commit comments

Comments
 (0)