Commit 020a7b0
authored
Skip unnecessary temp vars in
* Avoid storing value of expressions hidden in sequences
* Register `.push`ed bindings in the correct scope
* Avoid injecting a new tmp var when there is one available
* Avoid temp var for `super()`
* `.insertAfter` after the last sequence expression child
* Avoid duplicated tmp vars in class heritage
* Insert `.insertAfter` ndoes before when it's equivalentpath.insertAfter (#14268)1 parent b17b8e2 commit 020a7b0
68 files changed
Lines changed: 299 additions & 277 deletions
File tree
- packages
- babel-plugin-proposal-class-properties/test/fixtures
- assumption-setPublicClassFields
- non-block-arrow-func
- regression-T2983
- regression-T6719
- static-infer-name
- super-expression
- private-loose
- nested-class-computed-redeclared
- non-block-arrow-func
- reevaluated
- static-infer-name
- super-expression
- private
- nested-class-computed-redeclared
- non-block-arrow-func
- reevaluated
- regression-T2983
- regression-T6719
- static-infer-name
- static-self-field
- super-expression
- public-loose
- computed
- non-block-arrow-func
- regression-T2983
- regression-T6719
- static-infer-name
- super-expression
- public
- computed
- derived-super-in-default-params-complex
- derived-super-in-default-params-in-arrow
- derived-super-in-default-params
- non-block-arrow-func
- regression-T2983
- regression-T6719
- static-infer-name
- super-expression
- regression
- 6153
- 7371
- 8882
- T2983
- T6719
- static-property-tdz/decorator-interop
- babel-plugin-proposal-class-static-block/test/fixtures
- integration-loose
- in-class-heritage
- super-static-block
- integration
- in-class-heritage
- new-target
- babel-plugin-proposal-decorators/test/fixtures
- 2021-12-classes--to-es2015
- expressions
- initializers
- replacement-static-installed-on-correct-class
- replacement-static-this
- replacement-with-expr
- replacement
- 2021-12-misc--to-es2015/valid-expression-formats
- transformation
- initiailzer-after-super-bug-8808
- initialize-after-super-expression
- babel-plugin-proposal-private-methods/test/fixtures
- private-static-method-loose/class-expression
- private-static-method-privateFieldsAsProperties/class-expression
- babel-plugin-proposal-private-property-in-object/test/fixtures/to-native-fields
- field
- half-constructed-instance
- half-constructed-static
- nested-class-other-redeclared
- nested-class-redeclared
- nested-class
- static-field
- babel-plugin-transform-new-target/test/fixtures/general
- class-properties-loose
- class-properties
- babel-plugin-transform-parameters/test/fixtures/parameters/rest-arrow-functions
- babel-traverse
- src
- path
- scope
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments