|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`jsx component-namespaced2 1`] = ` |
| 4 | +ScopeManager { |
| 5 | + variables: Array [ |
| 6 | + ImplicitGlobalConstTypeVariable, |
| 7 | + Variable$2 { |
| 8 | + defs: Array [ |
| 9 | + VariableDefinition$1 { |
| 10 | + name: Identifier<"x">, |
| 11 | + node: VariableDeclarator$1, |
| 12 | + }, |
| 13 | + ], |
| 14 | + name: "x", |
| 15 | + references: Array [ |
| 16 | + Reference$1 { |
| 17 | + identifier: Identifier<"x">, |
| 18 | + init: true, |
| 19 | + isRead: false, |
| 20 | + isTypeReference: false, |
| 21 | + isValueReference: true, |
| 22 | + isWrite: true, |
| 23 | + resolved: Variable$2, |
| 24 | + writeExpr: ObjectExpression$2, |
| 25 | + }, |
| 26 | + Reference$3 { |
| 27 | + identifier: JSXIdentifier$3, |
| 28 | + isRead: true, |
| 29 | + isTypeReference: false, |
| 30 | + isValueReference: true, |
| 31 | + isWrite: false, |
| 32 | + resolved: Variable$2, |
| 33 | + }, |
| 34 | + ], |
| 35 | + isValueVariable: true, |
| 36 | + isTypeVariable: false, |
| 37 | + }, |
| 38 | + Variable$3 { |
| 39 | + defs: Array [], |
| 40 | + name: "arguments", |
| 41 | + references: Array [], |
| 42 | + isValueVariable: true, |
| 43 | + isTypeVariable: true, |
| 44 | + }, |
| 45 | + Variable$4 { |
| 46 | + defs: Array [ |
| 47 | + VariableDefinition$2 { |
| 48 | + name: Identifier<"Foo">, |
| 49 | + node: VariableDeclarator$4, |
| 50 | + }, |
| 51 | + ], |
| 52 | + name: "Foo", |
| 53 | + references: Array [ |
| 54 | + Reference$2 { |
| 55 | + identifier: Identifier<"Foo">, |
| 56 | + init: true, |
| 57 | + isRead: false, |
| 58 | + isTypeReference: false, |
| 59 | + isValueReference: true, |
| 60 | + isWrite: true, |
| 61 | + resolved: Variable$4, |
| 62 | + writeExpr: Literal$5, |
| 63 | + }, |
| 64 | + ], |
| 65 | + isValueVariable: true, |
| 66 | + isTypeVariable: false, |
| 67 | + }, |
| 68 | + ], |
| 69 | + scopes: Array [ |
| 70 | + GlobalScope$1 { |
| 71 | + block: Program$6, |
| 72 | + isStrict: false, |
| 73 | + references: Array [ |
| 74 | + Reference$1, |
| 75 | + Reference$2, |
| 76 | + Reference$3, |
| 77 | + ], |
| 78 | + set: Map { |
| 79 | + "const" => ImplicitGlobalConstTypeVariable, |
| 80 | + "x" => Variable$2, |
| 81 | + "Foo" => Variable$4, |
| 82 | + }, |
| 83 | + type: "global", |
| 84 | + upper: null, |
| 85 | + variables: Array [ |
| 86 | + ImplicitGlobalConstTypeVariable, |
| 87 | + Variable$2, |
| 88 | + Variable$4, |
| 89 | + ], |
| 90 | + }, |
| 91 | + FunctionScope$2 { |
| 92 | + block: FunctionExpression$7, |
| 93 | + isStrict: false, |
| 94 | + references: Array [], |
| 95 | + set: Map { |
| 96 | + "arguments" => Variable$3, |
| 97 | + }, |
| 98 | + type: "function", |
| 99 | + upper: GlobalScope$1, |
| 100 | + variables: Array [ |
| 101 | + Variable$3, |
| 102 | + ], |
| 103 | + }, |
| 104 | + ], |
| 105 | +} |
| 106 | +`; |
0 commit comments