[sprout] Codemod: add isComponent: false annotations to current fixtures
To keep the type signature simple, let's always have the same set of keys in `FIXTURE_ENTRYPOINT`
Mofei Zhang committed
Aug 16, 2023 at 15:32 UTC
ce015a164b86ee6e2ac5bdfb73c8a0484bd52c25
94 files changed
+141
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/alias-nested-member-path.expect.md
+2
@@ -14,6 +14,7 @@ function component() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: component,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -54,6 +55,7 @@ function component() {
55
export const FIXTURE_ENTRYPOINT = {
56
fn: component,
57
params: [],
58
+ isComponent: false,
59
};
60
61
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/alias-nested-member-path.js
+1
@@ -10,4 +10,5 @@ function component() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: component,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations-complex-lvalue-array.expect.md
+2
@@ -12,6 +12,7 @@ function foo() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: foo,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -45,6 +46,7 @@ function foo() {
46
export const FIXTURE_ENTRYPOINT = {
47
fn: foo,
48
params: [],
49
+ isComponent: false,
50
};
51
52
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations-complex-lvalue-array.js
+1
@@ -8,4 +8,5 @@ function foo() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: foo,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations-complex-lvalue.expect.md
+2
@@ -12,6 +12,7 @@ function g() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: g,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -37,6 +38,7 @@ function g() {
38
export const FIXTURE_ENTRYPOINT = {
39
fn: g,
40
params: [],
41
+ isComponent: false,
42
};
43
44
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations-complex-lvalue.js
+1
@@ -8,4 +8,5 @@ function g() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: g,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations.expect.md
+2
@@ -13,6 +13,7 @@ function f() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: f,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -28,6 +29,7 @@ function f() {
29
export const FIXTURE_ENTRYPOINT = {
30
fn: f,
31
params: [],
32
+ isComponent: false,
33
};
34
35
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/assignment-variations.js
+1
@@ -9,4 +9,5 @@ function f() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: f,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/chained-assignment-expressions.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -41,6 +42,7 @@ function foo() {
42
export const FIXTURE_ENTRYPOINT = {
43
fn: foo,
44
params: [],
45
+ isComponent: false,
46
};
47
48
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/chained-assignment-expressions.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/computed-call-evaluation-order.expect.md
+2
@@ -20,6 +20,7 @@ function Component() {
20
export const FIXTURE_ENTRYPOINT = {
21
fn: Component,
22
params: [],
23
+ isComponent: false,
24
};
25
26
```
@@ -64,6 +65,7 @@ function Component() {
65
export const FIXTURE_ENTRYPOINT = {
66
fn: Component,
67
params: [],
68
+ isComponent: false,
69
};
70
71
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/computed-call-evaluation-order.js
+1
@@ -16,4 +16,5 @@ function Component() {
16
export const FIXTURE_ENTRYPOINT = {
17
fn: Component,
18
params: [],
19
+ isComponent: false,
20
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/const-propagation-into-function-expression-primitive.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -33,6 +34,7 @@ function foo() {
34
export const FIXTURE_ENTRYPOINT = {
35
fn: foo,
36
params: [],
37
+ isComponent: false,
38
};
39
40
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/const-propagation-into-function-expression-primitive.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation-for.expect.md
+2
@@ -13,6 +13,7 @@ function foo() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: foo,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -31,6 +32,7 @@ function foo() {
32
export const FIXTURE_ENTRYPOINT = {
33
fn: foo,
34
params: [],
35
+ isComponent: false,
36
};
37
38
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation-for.js
+1
@@ -9,4 +9,5 @@ function foo() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: foo,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation-while.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -32,6 +33,7 @@ function foo() {
33
export const FIXTURE_ENTRYPOINT = {
34
fn: foo,
35
params: [],
36
+ isComponent: false,
37
};
38
39
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation-while.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation.expect.md
+2
@@ -24,6 +24,7 @@ function foo() {
24
export const FIXTURE_ENTRYPOINT = {
25
fn: foo,
26
params: [],
27
+ isComponent: false,
28
};
29
30
```
@@ -39,6 +40,7 @@ function foo() {
40
export const FIXTURE_ENTRYPOINT = {
41
fn: foo,
42
params: [],
43
+ isComponent: false,
44
};
45
46
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagation.js
+1
@@ -20,4 +20,5 @@ function foo() {
20
export const FIXTURE_ENTRYPOINT = {
21
fn: foo,
22
params: [],
23
+ isComponent: false,
24
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/do-while-continue.expect.md
+2
@@ -19,6 +19,7 @@ function Component() {
19
export const FIXTURE_ENTRYPOINT = {
20
fn: Component,
21
params: [],
22
+ isComponent: false,
23
};
24
25
```
@@ -51,6 +52,7 @@ function Component() {
52
export const FIXTURE_ENTRYPOINT = {
53
fn: Component,
54
params: [],
55
+ isComponent: false,
56
};
57
58
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/do-while-continue.js
+1
@@ -15,4 +15,5 @@ function Component() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: Component,
17
params: [],
18
+ isComponent: false,
19
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/do-while-simple.expect.md
+2
@@ -15,6 +15,7 @@ function Component() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: Component,
17
params: [],
18
+ isComponent: false,
19
};
20
21
```
@@ -43,6 +44,7 @@ function Component() {
44
export const FIXTURE_ENTRYPOINT = {
45
fn: Component,
46
params: [],
47
+ isComponent: false,
48
};
49
50
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/do-while-simple.js
+1
@@ -11,4 +11,5 @@ function Component() {
11
export const FIXTURE_ENTRYPOINT = {
12
fn: Component,
13
params: [],
14
+ isComponent: false,
15
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/expression-with-assignment.expect.md
+2
@@ -10,6 +10,7 @@ function f() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: f,
12
params: [],
13
+ isComponent: false,
14
};
15
16
```
@@ -24,6 +25,7 @@ function f() {
25
export const FIXTURE_ENTRYPOINT = {
26
fn: f,
27
params: [],
28
+ isComponent: false,
29
};
30
31
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/expression-with-assignment.js
+1
@@ -6,4 +6,5 @@ function f() {
6
export const FIXTURE_ENTRYPOINT = {
7
fn: f,
8
params: [],
9
+ isComponent: false,
10
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-break.expect.md
+2
@@ -13,6 +13,7 @@ function Component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: Component,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -40,6 +41,7 @@ function Component() {
41
export const FIXTURE_ENTRYPOINT = {
42
fn: Component,
43
params: [],
44
+ isComponent: false,
45
};
46
47
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-break.js
+1
@@ -9,4 +9,5 @@ function Component() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: Component,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-conditional-break.expect.md
+2
@@ -16,6 +16,7 @@ function Component() {
16
export const FIXTURE_ENTRYPOINT = {
17
fn: Component,
18
params: [],
19
+ isComponent: false,
20
};
21
22
```
@@ -53,6 +54,7 @@ function Component() {
54
export const FIXTURE_ENTRYPOINT = {
55
fn: Component,
56
params: [],
57
+ isComponent: false,
58
};
59
60
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-conditional-break.js
+1
@@ -12,4 +12,5 @@ function Component() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: Component,
14
params: [],
15
+ isComponent: false,
16
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-continue.expect.md
+2
@@ -17,6 +17,7 @@ function Component() {
17
export const FIXTURE_ENTRYPOINT = {
18
fn: Component,
19
params: [],
20
+ isComponent: false,
21
};
22
23
```
@@ -55,6 +56,7 @@ function Component() {
56
export const FIXTURE_ENTRYPOINT = {
57
fn: Component,
58
params: [],
59
+ isComponent: false,
60
};
61
62
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-continue.js
+1
@@ -13,4 +13,5 @@ function Component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: Component,
15
params: [],
16
+ isComponent: false,
17
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-destructure.expect.md
+2
@@ -14,6 +14,7 @@ function Component() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: Component,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -41,6 +42,7 @@ function Component() {
42
export const FIXTURE_ENTRYPOINT = {
43
fn: Component,
44
params: [],
45
+ isComponent: false,
46
};
47
48
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-destructure.js
+1
@@ -10,4 +10,5 @@ function Component() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: Component,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-simple.expect.md
+2
@@ -14,6 +14,7 @@ function Component() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: Component,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -41,6 +42,7 @@ function Component() {
42
export const FIXTURE_ENTRYPOINT = {
43
fn: Component,
44
params: [],
45
+ isComponent: false,
46
};
47
48
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/for-of-simple.js
+1
@@ -10,4 +10,5 @@ function Component() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: Component,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/function-declaration-reassign.expect.md
+2
@@ -13,6 +13,7 @@ function component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: component,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -47,6 +48,7 @@ function component() {
48
export const FIXTURE_ENTRYPOINT = {
49
fn: component,
50
params: [],
51
+ isComponent: false,
52
};
53
54
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/function-declaration-reassign.js
+1
@@ -9,4 +9,5 @@ function component() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: component,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/function-declaration-redeclare.expect.md
+2
@@ -13,6 +13,7 @@ function component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: component,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -37,6 +38,7 @@ function component() {
38
export const FIXTURE_ENTRYPOINT = {
39
fn: component,
40
params: [],
41
+ isComponent: false,
42
};
43
44
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/function-declaration-redeclare.js
+1
@@ -9,4 +9,5 @@ function component() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: component,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/lambda-reassign-primitive.expect.md
+2
@@ -20,6 +20,7 @@ function Component() {
20
export const FIXTURE_ENTRYPOINT = {
21
fn: Component,
22
params: [],
23
+ isComponent: false,
24
};
25
26
```
@@ -53,6 +54,7 @@ function Component() {
54
export const FIXTURE_ENTRYPOINT = {
55
fn: Component,
56
params: [],
57
+ isComponent: false,
58
};
59
60
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/lambda-reassign-primitive.js
+1
@@ -16,4 +16,5 @@ function Component() {
16
export const FIXTURE_ENTRYPOINT = {
17
fn: Component,
18
params: [],
19
+ isComponent: false,
20
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/lambda-reassign-shadowed-primitive.expect.md
+2
@@ -17,6 +17,7 @@ function Component() {
17
export const FIXTURE_ENTRYPOINT = {
18
fn: Component,
19
params: [],
20
+ isComponent: false,
21
};
22
23
```
@@ -49,6 +50,7 @@ function Component() {
50
export const FIXTURE_ENTRYPOINT = {
51
fn: Component,
52
params: [],
53
+ isComponent: false,
54
};
55
56
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/lambda-reassign-shadowed-primitive.js
+1
@@ -13,4 +13,5 @@ function Component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: Component,
15
params: [],
16
+ isComponent: false,
17
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/property-call-evaluation-order.expect.md
+2
@@ -19,6 +19,7 @@ function Component() {
19
export const FIXTURE_ENTRYPOINT = {
20
fn: Component,
21
params: [],
22
+ isComponent: false,
23
};
24
25
```
@@ -62,6 +63,7 @@ function Component() {
63
export const FIXTURE_ENTRYPOINT = {
64
fn: Component,
65
params: [],
66
+ isComponent: false,
67
};
68
69
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/property-call-evaluation-order.js
+1
@@ -15,4 +15,5 @@ function Component() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: Component,
17
params: [],
18
+ isComponent: false,
19
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/reactive-scope-grouping.expect.md
+2
@@ -15,6 +15,7 @@ function foo() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: foo,
17
params: [],
18
+ isComponent: false,
19
};
20
21
```
@@ -55,6 +56,7 @@ function foo() {
56
export const FIXTURE_ENTRYPOINT = {
57
fn: foo,
58
params: [],
59
+ isComponent: false,
60
};
61
62
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/reactive-scope-grouping.js
+1
@@ -11,4 +11,5 @@ function foo() {
11
export const FIXTURE_ENTRYPOINT = {
12
fn: foo,
13
params: [],
14
+ isComponent: false,
15
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/sequentially-constant-progagatable-if-test-conditions.expect.md
+2
@@ -40,6 +40,7 @@ function Component() {
40
export const FIXTURE_ENTRYPOINT = {
41
fn: Component,
42
params: [],
43
+ isComponent: false,
44
};
45
46
```
@@ -54,6 +55,7 @@ function Component() {
55
export const FIXTURE_ENTRYPOINT = {
56
fn: Component,
57
params: [],
58
+ isComponent: false,
59
};
60
61
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/sequentially-constant-progagatable-if-test-conditions.js
+1
@@ -36,4 +36,5 @@ function Component() {
36
export const FIXTURE_ENTRYPOINT = {
37
fn: Component,
38
params: [],
39
+ isComponent: false,
40
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/simple-function-1.expect.md
+2
@@ -12,6 +12,7 @@ function component() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: component,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -38,6 +39,7 @@ function component() {
39
export const FIXTURE_ENTRYPOINT = {
40
fn: component,
41
params: [],
42
+ isComponent: false,
43
};
44
45
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/simple-function-1.js
+1
@@ -8,4 +8,5 @@ function component() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: component,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/sketchy-code-rules-of-hooks.expect.md
+2
@@ -12,6 +12,7 @@ function lowercasecomponent() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: lowercasecomponent,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -29,6 +30,7 @@ function lowercasecomponent() {
30
export const FIXTURE_ENTRYPOINT = {
31
fn: lowercasecomponent,
32
params: [],
33
+ isComponent: false,
34
};
35
36
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/sketchy-code-rules-of-hooks.js
+1
@@ -8,4 +8,5 @@ function lowercasecomponent() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: lowercasecomponent,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-complex-multiple-if.expect.md
+2
@@ -18,6 +18,7 @@ function foo() {
18
export const FIXTURE_ENTRYPOINT = {
19
fn: foo,
20
params: [],
21
+ isComponent: false,
22
};
23
24
```
@@ -30,6 +31,7 @@ function foo() {}
31
export const FIXTURE_ENTRYPOINT = {
32
fn: foo,
33
params: [],
34
+ isComponent: false,
35
};
36
37
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-complex-multiple-if.js
+1
@@ -14,4 +14,5 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-complex-single-if.expect.md
+2
@@ -15,6 +15,7 @@ function foo() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: foo,
17
params: [],
18
+ isComponent: false,
19
};
20
21
```
@@ -27,6 +28,7 @@ function foo() {}
28
export const FIXTURE_ENTRYPOINT = {
29
fn: foo,
30
params: [],
31
+ isComponent: false,
32
};
33
34
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-complex-single-if.js
+1
@@ -11,4 +11,5 @@ function foo() {
11
export const FIXTURE_ENTRYPOINT = {
12
fn: foo,
13
params: [],
14
+ isComponent: false,
15
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-for-trivial-update.expect.md
+2
@@ -13,6 +13,7 @@ function foo() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: foo,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -31,6 +32,7 @@ function foo() {
32
export const FIXTURE_ENTRYPOINT = {
33
fn: foo,
34
params: [],
35
+ isComponent: false,
36
};
37
38
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-for-trivial-update.js
+1
@@ -9,4 +9,5 @@ function foo() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: foo,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-for.expect.md
+2
@@ -13,6 +13,7 @@ function foo() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: foo,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -31,6 +32,7 @@ function foo() {
32
export const FIXTURE_ENTRYPOINT = {
33
fn: foo,
34
params: [],
35
+ isComponent: false,
36
};
37
38
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-for.js
+1
@@ -9,4 +9,5 @@ function foo() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: foo,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-if-else.expect.md
+2
@@ -16,6 +16,7 @@ function foo() {
16
export const FIXTURE_ENTRYPOINT = {
17
fn: foo,
18
params: [],
19
+ isComponent: false,
20
};
21
22
```
@@ -28,6 +29,7 @@ function foo() {}
29
export const FIXTURE_ENTRYPOINT = {
30
fn: foo,
31
params: [],
32
+ isComponent: false,
33
};
34
35
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-if-else.js
+1
@@ -12,4 +12,5 @@ function foo() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: foo,
14
params: [],
15
+ isComponent: false,
16
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-objectexpression-phi.expect.md
+2
@@ -19,6 +19,7 @@ function foo() {
19
export const FIXTURE_ENTRYPOINT = {
20
fn: foo,
21
params: [],
22
+ isComponent: false,
23
};
24
25
```
@@ -43,6 +44,7 @@ function foo() {
44
export const FIXTURE_ENTRYPOINT = {
45
fn: foo,
46
params: [],
47
+ isComponent: false,
48
};
49
50
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-objectexpression-phi.js
+1
@@ -15,4 +15,5 @@ function foo() {
15
export const FIXTURE_ENTRYPOINT = {
16
fn: foo,
17
params: [],
18
+ isComponent: false,
19
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-property-call.expect.md
+2
@@ -12,6 +12,7 @@ function foo() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: foo,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -37,6 +38,7 @@ function foo() {
38
export const FIXTURE_ENTRYPOINT = {
39
fn: foo,
40
params: [],
41
+ isComponent: false,
42
};
43
44
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-property-call.js
+1
@@ -8,4 +8,5 @@ function foo() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: foo,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-property.expect.md
+2
@@ -12,6 +12,7 @@ function foo() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: foo,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -44,6 +45,7 @@ function foo() {
45
export const FIXTURE_ENTRYPOINT = {
46
fn: foo,
47
params: [],
48
+ isComponent: false,
49
};
50
51
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-property.js
+1
@@ -8,4 +8,5 @@ function foo() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: foo,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-return.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -28,6 +29,7 @@ function foo() {
29
export const FIXTURE_ENTRYPOINT = {
30
fn: foo,
31
params: [],
32
+ isComponent: false,
33
};
34
35
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-return.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-simple-phi.expect.md
+2
@@ -17,6 +17,7 @@ function foo() {
17
export const FIXTURE_ENTRYPOINT = {
18
fn: foo,
19
params: [],
20
+ isComponent: false,
21
};
22
23
```
@@ -29,6 +30,7 @@ function foo() {}
30
export const FIXTURE_ENTRYPOINT = {
31
fn: foo,
32
params: [],
33
+ isComponent: false,
34
};
35
36
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-simple-phi.js
+1
@@ -13,4 +13,5 @@ function foo() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: foo,
15
params: [],
16
+ isComponent: false,
17
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-simple.expect.md
+2
@@ -10,6 +10,7 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
15
16
```
@@ -22,6 +23,7 @@ function foo() {}
23
export const FIXTURE_ENTRYPOINT = {
24
fn: foo,
25
params: [],
26
+ isComponent: false,
27
};
28
29
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-simple.js
+1
@@ -6,4 +6,5 @@ function foo() {
6
export const FIXTURE_ENTRYPOINT = {
7
fn: foo,
8
params: [],
9
+ isComponent: false,
10
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-single-if.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -26,6 +27,7 @@ function foo() {}
27
export const FIXTURE_ENTRYPOINT = {
28
fn: foo,
29
params: [],
30
+ isComponent: false,
31
};
32
33
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-single-if.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-switch.expect.md
+2
@@ -25,6 +25,7 @@ function foo() {
25
export const FIXTURE_ENTRYPOINT = {
26
fn: foo,
27
params: [],
28
+ isComponent: false,
29
};
30
31
```
@@ -48,6 +49,7 @@ function foo() {
49
export const FIXTURE_ENTRYPOINT = {
50
fn: foo,
51
params: [],
52
+ isComponent: false,
53
};
54
55
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-switch.js
+1
@@ -21,4 +21,5 @@ function foo() {
21
export const FIXTURE_ENTRYPOINT = {
22
fn: foo,
23
params: [],
24
+ isComponent: false,
25
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-throw.expect.md
+2
@@ -13,6 +13,7 @@ function foo() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: foo,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -27,6 +28,7 @@ function foo() {
28
export const FIXTURE_ENTRYPOINT = {
29
fn: foo,
30
params: [],
31
+ isComponent: false,
32
};
33
34
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-throw.js
+1
@@ -9,4 +9,5 @@ function foo() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: foo,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-while-no-reassign.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -29,6 +30,7 @@ function foo() {
30
export const FIXTURE_ENTRYPOINT = {
31
fn: foo,
32
params: [],
33
+ isComponent: false,
34
};
35
36
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-while-no-reassign.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-while.expect.md
+2
@@ -14,6 +14,7 @@ function foo() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: foo,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -32,6 +33,7 @@ function foo() {
33
export const FIXTURE_ENTRYPOINT = {
34
fn: foo,
35
params: [],
36
+ isComponent: false,
37
};
38
39
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/ssa-while.js
+1
@@ -10,4 +10,5 @@ function foo() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: foo,
12
params: [],
13
+ isComponent: false,
14
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-field-load.expect.md
+2
@@ -11,6 +11,7 @@ function component() {
11
export const FIXTURE_ENTRYPOINT = {
12
fn: component,
13
params: [],
14
+ isComponent: false,
15
};
16
17
```
@@ -36,6 +37,7 @@ function component() {
37
export const FIXTURE_ENTRYPOINT = {
38
fn: component,
39
params: [],
40
+ isComponent: false,
41
};
42
43
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-field-load.js
+1
@@ -7,4 +7,5 @@ function component() {
7
export const FIXTURE_ENTRYPOINT = {
8
fn: component,
9
params: [],
10
+ isComponent: false,
11
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-test-field-store.expect.md
+2
@@ -13,6 +13,7 @@ function component() {
13
export const FIXTURE_ENTRYPOINT = {
14
fn: component,
15
params: [],
16
+ isComponent: false,
17
};
18
19
```
@@ -46,6 +47,7 @@ function component() {
47
export const FIXTURE_ENTRYPOINT = {
48
fn: component,
49
params: [],
50
+ isComponent: false,
51
};
52
53
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-test-field-store.js
+1
@@ -9,4 +9,5 @@ function component() {
9
export const FIXTURE_ENTRYPOINT = {
10
fn: component,
11
params: [],
12
+ isComponent: false,
13
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-test-primitive.expect.md
+2
@@ -12,6 +12,7 @@ function component() {
12
export const FIXTURE_ENTRYPOINT = {
13
fn: component,
14
params: [],
15
+ isComponent: false,
16
};
17
18
```
@@ -26,6 +27,7 @@ function component() {
27
export const FIXTURE_ENTRYPOINT = {
28
fn: component,
29
params: [],
30
+ isComponent: false,
31
};
32
33
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/type-test-primitive.js
+1
@@ -8,4 +8,5 @@ function component() {
8
export const FIXTURE_ENTRYPOINT = {
9
fn: component,
10
params: [],
11
+ isComponent: false,
12
};
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/update-expression-constant-propagation.expect.md
+2
@@ -14,6 +14,7 @@ function Component() {
14
export const FIXTURE_ENTRYPOINT = {
15
fn: Component,
16
params: [],
17
+ isComponent: false,
18
};
19
20
```
@@ -37,6 +38,7 @@ function Component() {
38
export const FIXTURE_ENTRYPOINT = {
39
fn: Component,
40
params: [],
41
+ isComponent: false,
42
};
43
44
```
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/update-expression-constant-propagation.js
+1
@@ -10,4 +10,5 @@ function Component() {
10
export const FIXTURE_ENTRYPOINT = {
11
fn: Component,
12
params: [],
13
+ isComponent: false,
14
};