Skip to content

Commit 92ae467

Browse files
authored
Merge pull request #41 from returntocorp/nmote/require
Add `Require` AST node for CommonJS require
2 parents 1c75e52 + f833197 commit 92ae467

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)