Commit 21951b3
committed
refactor(es/ast)!: use Function for object accessors
1 parent f3eddaa commit 21951b3
136 files changed
Lines changed: 4633 additions & 3648 deletions
File tree
- .changeset
- bindings
- binding_core_wasm/src
- binding_minifier_wasm/src
- crates
- swc_ecma_ast/src
- swc_ecma_codegen/src
- swc_ecma_compat_common/src
- swc_ecma_compat_es2015/src
- block_scoping
- swc_ecma_compat_es2022/src/class_properties
- swc_ecma_lexer/src/common/parser
- swc_ecma_lints/src/rules
- swc_ecma_minifier
- src
- compress/optimize
- usage_analyzer/analyzer
- tests
- terser/compress
- collapse_vars/issue_2313_1
- dead_code/accessor
- destructuring
- unused_destructuring_assign_2
- unused_destructuring_getter_side_effect_1
- unused_destructuring_getter_side_effect_2
- drop_unused/unused_keep_setter_arg
- expansions/avoid_spread_getset_object
- issue_12/setter_with_operator_keys
- object
- getter_setter_mangler
- getter_setter
- issue_2554_1
- issue_2554_3
- methods_and_getters_with_keep_quoted_props_enabled
- property_with_unprintable_ascii_only
- property_with_unprintable
- properties
- accessor_2
- accessor_boolean
- accessor_get_set
- accessor_null_undefined
- accessor_number
- accessor_string
- accessor_this
- issue_2893_2
- issue_2893_4
- issue_2893_6
- issue_2893_8
- pure_getters/collapse_rhs_setter
- sequences/issue_2313
- swc_ecma_parser
- src/parser
- tests
- span/js/decl
- tsc
- typescript
- issue-1708/case1
- object/getter-prop
- swc_ecma_quote_macros/src/ast
- swc_ecma_react_compiler/src
- swc_ecma_transformer/src/es2017
- swc_ecma_transforms_base
- src/resolver
- tests/ts-resolver/tsc/computed/property/name/11
- swc_ecma_transforms_classes/src
- swc_ecma_transforms_compat/tests
- __swc_snapshots__/tests/es2015_parameters.rs
- arrow/getter-setter
- block-scoping/issue-8148/1
- optional-chaining-loose/general-function-param-loose
- swc_ecma_transforms_module
- src
- system_js
- tests
- swc_ecma_transforms_optimization/src
- swc_ecma_transforms_proposal/src
- swc_ecma_transforms_typescript/src
- swc_ecma_utils/src
- function
- swc_ecma_visit/src
- swc_estree_compat/src/babelify
- swc_ts_fast_strip/src
- swc_typescript/src/fast_dts
- swc/tests
- fixture
- issues-11xxx/11996-systemjs-export-setter-hygiene/output
- issues-8xxx/8148/output
- tsc-references
- packages
- core/src
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2297 | 2297 | | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
| 2300 | + | |
2303 | 2301 | | |
2304 | 2302 | | |
2305 | 2303 | | |
2306 | 2304 | | |
2307 | 2305 | | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
| 2306 | + | |
2312 | 2307 | | |
2313 | 2308 | | |
2314 | 2309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2194 | 2194 | | |
2195 | 2195 | | |
2196 | 2196 | | |
2197 | | - | |
2198 | | - | |
2199 | | - | |
| 2197 | + | |
2200 | 2198 | | |
2201 | 2199 | | |
2202 | 2200 | | |
2203 | 2201 | | |
2204 | 2202 | | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
| 2203 | + | |
2209 | 2204 | | |
2210 | 2205 | | |
2211 | 2206 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments