react-code-dataset
/
next.js
/turbopack
/crates
/turbopack-ecmascript
/tests
/analyzer
/graph
/path-join
/graph-effects.snapshot
| [ | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 11..18, | |
| in_try: false, | |
| }, | |
| Call { | |
| func: FreeVar( | |
| "require", | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 0, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 11..25, | |
| in_try: false, | |
| new: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 79..86, | |
| in_try: false, | |
| }, | |
| Call { | |
| func: FreeVar( | |
| "require", | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "path", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 1, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 79..94, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 115..124, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "bar", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 2, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 115..138, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 158..167, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo/", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "bar", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 3, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 158..182, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 202..211, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "/bar", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 4, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 202..226, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 5, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 246..255, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo/", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "/bar", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 5, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 246..271, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 6, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 291..300, | |
| in_try: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "global", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 6, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Args( | |
| 4, | |
| ), | |
| ), | |
| ExprOrSpread( | |
| Expr, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 328..334, | |
| in_try: false, | |
| }, | |
| MemberCall { | |
| obj: Variable( | |
| ( | |
| "path", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "bar", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "..", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "baz", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| FreeVar( | |
| "global", | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "..", | |
| ), | |
| ), | |
| ), | |
| ), | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "foo", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 6, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 291..348, | |
| in_try: false, | |
| new: false, | |
| }, | |
| FreeVar { | |
| var: FreeVar( | |
| "require", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 7, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| CallExpr( | |
| Callee, | |
| ), | |
| Callee( | |
| Expr, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 362..369, | |
| in_try: false, | |
| }, | |
| Call { | |
| func: FreeVar( | |
| "require", | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "path", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 7, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 362..377, | |
| in_try: false, | |
| new: false, | |
| }, | |
| Member { | |
| obj: Variable( | |
| ( | |
| "p1", | |
| #2, | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 10, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 458..465, | |
| in_try: false, | |
| }, | |
| Member { | |
| obj: Member( | |
| 3, | |
| Module( | |
| ModuleValue { | |
| module: "path", | |
| annotations: ImportAnnotations { | |
| map: {}, | |
| }, | |
| }, | |
| ), | |
| Constant( | |
| Str( | |
| Atom( | |
| "default", | |
| ), | |
| ), | |
| ), | |
| ), | |
| prop: Constant( | |
| Str( | |
| Atom( | |
| "join", | |
| ), | |
| ), | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 11, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| ], | |
| span: 486..493, | |
| in_try: false, | |
| }, | |
| ImportedBinding { | |
| esm_reference_index: 1, | |
| export: Some( | |
| "default", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 11, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Member, | |
| ), | |
| MemberExpr( | |
| Obj, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 486..488, | |
| in_try: false, | |
| }, | |
| ImportedBinding { | |
| esm_reference_index: 2, | |
| export: Some( | |
| "join", | |
| ), | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 12, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Ident, | |
| ), | |
| ], | |
| span: 514..519, | |
| in_try: false, | |
| }, | |
| Call { | |
| func: FreeVar( | |
| "import", | |
| ), | |
| args: [ | |
| Value( | |
| Constant( | |
| Str( | |
| Atom( | |
| "path", | |
| ), | |
| ), | |
| ), | |
| ), | |
| ], | |
| ast_path: [ | |
| Program( | |
| Module, | |
| ), | |
| Module( | |
| Body( | |
| 13, | |
| ), | |
| ), | |
| ModuleItem( | |
| Stmt, | |
| ), | |
| Stmt( | |
| Decl, | |
| ), | |
| Decl( | |
| Var, | |
| ), | |
| VarDecl( | |
| Decls( | |
| 0, | |
| ), | |
| ), | |
| VarDeclarator( | |
| Init, | |
| ), | |
| Expr( | |
| Await, | |
| ), | |
| AwaitExpr( | |
| Arg, | |
| ), | |
| Expr( | |
| Call, | |
| ), | |
| ], | |
| span: 556..570, | |
| in_try: false, | |
| new: false, | |
| }, | |
| ] | |