react-code-dataset
/
next.js
/turbopack
/crates
/turbopack-ecmascript
/tests
/analyzer
/graph
/nested-args
/graph-effects.snapshot
| [ | |
| Call { | |
| func: Variable( | |
| ( | |
| "outer", | |
| #2, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "a", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 5, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 295..305, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Fn, | |
| ), | |
| FnExpr( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| Call { | |
| func: Variable( | |
| ( | |
| "x", | |
| #2, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 1.0, | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 77..81, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Call { | |
| func: Call( | |
| 3, | |
| Variable( | |
| ( | |
| "x", | |
| #2, | |
| ), | |
| ), | |
| [ | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 1.0, | |
| ), | |
| ), | |
| ), | |
| ], | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 2.0, | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 77..84, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Conditional { | |
| condition: Binary( | |
| 3, | |
| Unknown { | |
| original_value: None, | |
| reason: "unsupported expression", | |
| has_side_effects: true, | |
| }, | |
| StrictEqual, | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 0.0, | |
| ), | |
| ), | |
| ), | |
| ), | |
| kind: IfElse { | |
| then: EffectsBlock { | |
| effects: [ | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Cons, | |
| ), | |
| Stmt( | |
| Block, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Cons, | |
| ), | |
| ], | |
| ), | |
| }, | |
| else: EffectsBlock { | |
| effects: [ | |
| Call { | |
| func: Variable( | |
| ( | |
| "r", | |
| #2, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Add( | |
| 3, | |
| [ | |
| Variable( | |
| ( | |
| "a", | |
| #6, | |
| ), | |
| ), | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 1.0, | |
| ), | |
| ), | |
| ), | |
| ], | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Alt, | |
| ), | |
| Stmt( | |
| Block, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Bin, | |
| ), | |
| BinExpr( | |
| Left, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 159..167, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Alt, | |
| ), | |
| Stmt( | |
| Block, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Alt, | |
| ), | |
| ], | |
| ), | |
| }, | |
| }, | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Test, | |
| ), | |
| ], | |
| span: 105..176, | |
| in_try: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| ], | |
| }, | |
| Call { | |
| func: Variable( | |
| ( | |
| "r", | |
| #2, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Num( | |
| ConstantNumber( | |
| 2.0, | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 190..194, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Call { | |
| func: Variable( | |
| ( | |
| "inner", | |
| #9, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "b", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 271..281, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Fn, | |
| ), | |
| FnDecl( | |
| Function, | |
| ), | |
| Function( | |
| Body, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| ] | |