react-code-dataset / next.js /turbopack /crates /turbopack-ecmascript /tests /analyzer /graph /iife /graph-effects.snapshot
| [ | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 9..16, | |
| in_try: false, | |
| }, | |
| Conditional { | |
| condition: Constant( | |
| True, | |
| ), | |
| kind: If { | |
| then: EffectsBlock { | |
| effects: [ | |
| Call { | |
| func: Variable( | |
| ( | |
| "f", | |
| #5, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "test", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Expr, | |
| ), | |
| ExprStmt( | |
| Expr, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Paren, | |
| ), | |
| ParenExpr( | |
| Expr, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Cons, | |
| ), | |
| Stmt( | |
| Block, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Expr, | |
| ), | |
| ExprStmt( | |
| Expr, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 153..162, | |
| in_try: false, | |
| new: false, | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Expr, | |
| ), | |
| ExprStmt( | |
| Expr, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Paren, | |
| ), | |
| ParenExpr( | |
| Expr, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Cons, | |
| ), | |
| ], | |
| ), | |
| }, | |
| }, | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Expr, | |
| ), | |
| ExprStmt( | |
| Expr, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Paren, | |
| ), | |
| ParenExpr( | |
| Expr, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Test, | |
| ), | |
| ], | |
| span: 137..167, | |
| in_try: false, | |
| }, | |
| ] | |