react-code-dataset / next.js /turbopack /crates /turbopack-ecmascript /tests /analyzer /graph /pack-2682 /graph-effects.snapshot
| [ | |
| Member { | |
| obj: FreeVar( | |
| "Math", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "random", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Test, | |
| ), | |
| Expr( | |
| Bin, | |
| ), | |
| BinExpr( | |
| Left, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 50..61, | |
| in_try: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "Math", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Test, | |
| ), | |
| Expr( | |
| Bin, | |
| ), | |
| BinExpr( | |
| Left, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| MemberExpr( | |
| Obj, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 50..54, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: FreeVar( | |
| "Math", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "random", | |
| ), | |
| ), | |
| ), | |
| args: [], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| If, | |
| ), | |
| IfStmt( | |
| Test, | |
| ), | |
| Expr( | |
| Bin, | |
| ), | |
| BinExpr( | |
| Left, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 50..63, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: FreeVar( | |
| "JSON", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "stringify", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 273..287, | |
| in_try: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "JSON", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| MemberExpr( | |
| Obj, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 273..277, | |
| in_try: false, | |
| }, | |
| Conditional { | |
| condition: Binary( | |
| 3, | |
| Variable( | |
| ( | |
| "variable", | |
| #3, | |
| ), | |
| ), | |
| StrictEqual, | |
| Constant( | |
| Str( | |
| Atom( | |
| "true", | |
| ), | |
| ), | |
| ), | |
| ), | |
| kind: Ternary { | |
| then: EffectsBlock { | |
| effects: [], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Object, | |
| ), | |
| ObjectLit( | |
| Props( | |
| 1, | |
| ), | |
| ), | |
| PropOrSpread( | |
| Prop, | |
| ), | |
| Prop( | |
| KeyValue, | |
| ), | |
| KeyValueProp( | |
| Value, | |
| ), | |
| Expr( | |
| Cond, | |
| ), | |
| CondExpr( | |
| Cons, | |
| ), | |
| ], | |
| ), | |
| }, | |
| else: EffectsBlock { | |
| effects: [], | |
| range: Exact( | |
| [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Object, | |
| ), | |
| ObjectLit( | |
| Props( | |
| 1, | |
| ), | |
| ), | |
| PropOrSpread( | |
| Prop, | |
| ), | |
| Prop( | |
| KeyValue, | |
| ), | |
| KeyValueProp( | |
| Value, | |
| ), | |
| Expr( | |
| Cond, | |
| ), | |
| CondExpr( | |
| Alt, | |
| ), | |
| ], | |
| ), | |
| }, | |
| }, | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 0, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Object, | |
| ), | |
| ObjectLit( | |
| Props( | |
| 1, | |
| ), | |
| ), | |
| PropOrSpread( | |
| Prop, | |
| ), | |
| Prop( | |
| KeyValue, | |
| ), | |
| KeyValueProp( | |
| Value, | |
| ), | |
| Expr( | |
| Cond, | |
| ), | |
| CondExpr( | |
| Test, | |
| ), | |
| ], | |
| span: 354..392, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: FreeVar( | |
| "JSON", | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "stringify", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Object { | |
| total_nodes: 12, | |
| parts: [ | |
| KeyValue( | |
| Constant( | |
| Str( | |
| Atom( | |
| "condition", | |
| ), | |
| ), | |
| ), | |
| Binary( | |
| 3, | |
| Variable( | |
| ( | |
| "variable", | |
| #3, | |
| ), | |
| ), | |
| StrictEqual, | |
| Constant( | |
| Str( | |
| Atom( | |
| "true", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ), | |
| KeyValue( | |
| Constant( | |
| Str( | |
| Atom( | |
| "buggedConditionalCheck", | |
| ), | |
| ), | |
| ), | |
| Tenary( | |
| 6, | |
| Binary( | |
| 3, | |
| Variable( | |
| ( | |
| "variable", | |
| #3, | |
| ), | |
| ), | |
| StrictEqual, | |
| Constant( | |
| Str( | |
| Atom( | |
| "true", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "true", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "false", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ReturnStmt( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 273..398, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Unreachable { | |
| start_ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Arrow, | |
| ), | |
| ArrowExpr( | |
| Body, | |
| ), | |
| BlockStmtOrExpr( | |
| BlockStmt, | |
| ), | |
| BlockStmt( | |
| Stmts( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Return, | |
| ), | |
| ], | |
| }, | |
| Call { | |
| func: Variable( | |
| ( | |
| "BuggyArguments", | |
| #2, | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Object { | |
| total_nodes: 3, | |
| parts: [ | |
| KeyValue( | |
| Constant( | |
| Str( | |
| Atom( | |
| "variable", | |
| ), | |
| ), | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "false", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| mutable: true, | |
| }, | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Script, | |
| ), | |
| Script( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 416..453, | |
| in_try: false, | |
| new: false, | |
| }, | |
| ] | |