react-code-dataset
/
next.js
/turbopack
/crates
/turbopack-ecmascript
/tests
/analyzer
/graph
/array-map
/graph-effects.snapshot
| [ | |
| Member { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 53..87, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Closure( | |
| Variable( | |
| ( | |
| "*anonymous function 88*", | |
| #0, | |
| ), | |
| ), | |
| EffectsBlock { | |
| effects: [ | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| ], | |
| ), | |
| }, | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 53..123, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 135..169, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Closure( | |
| Variable( | |
| ( | |
| "*anonymous function 170*", | |
| #0, | |
| ), | |
| ), | |
| EffectsBlock { | |
| effects: [ | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| ], | |
| ), | |
| }, | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 135..207, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 219..253, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Array { | |
| total_nodes: 3, | |
| items: [ | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/a.js", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "../lib/b.js", | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "map", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Closure( | |
| Variable( | |
| ( | |
| "*anonymous function 254*", | |
| #0, | |
| ), | |
| ), | |
| EffectsBlock { | |
| effects: [ | |
| Member { | |
| obj: FreeVar( | |
| "require", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "resolve", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 281..296, | |
| in_try: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| MemberExpr( | |
| Obj, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 281..288, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: FreeVar( | |
| "require", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "resolve", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Variable( | |
| ( | |
| "file", | |
| #5, | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 281..302, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| ], | |
| ), | |
| }, | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 219..306, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: FreeVar( | |
| "require", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "resolve", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 339..354, | |
| in_try: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| MemberExpr( | |
| Obj, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 339..346, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: FreeVar( | |
| "require", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "resolve", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Variable( | |
| ( | |
| "file", | |
| #6, | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 339..360, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ] | |