swc/crates/swc_ecma_transforms_compat/tests
Donny/강동윤 e7358e0f81 refactor(es): Use into for AST construction (#9197)
**Description:**

This PR changes the AST node construction code to use `.into()` or `::from()` to make changing the boxed-ness of the AST node easier. I used `ast-grep` to make large changes across codebase.
2024-07-12 13:13:20 +09:00
..
__swc_snapshots__/tests fix(es/compat): Avoid reserved name for private method (#8949) 2024-05-13 04:59:48 +00:00
arrow test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
async-to-generator fix(es/compat): Fix async generator (#8881) 2024-04-23 01:23:49 +00:00
block-scoping fix(es/compat): Split declaration and init in block-scoping pass (#8648) 2024-02-20 09:53:53 +09:00
class_fields_use_set/basic fix(es/compat): Handle useDefineForClassFields: false (#7055) 2023-03-12 12:56:10 +09:00
class-properties fix(es/compat): Avoid reserved name for private method (#8949) 2024-05-13 04:59:48 +00:00
classes fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
destructuring fix(es/compat): Set inserted var inside export class in destructing (#8470) 2024-01-02 02:09:13 +00:00
for-of fix(es/compat): Consider only the variables used in the closure (#9151) 2024-07-08 22:01:24 +09:00
new-target fix(es/helpers): Use snake_case for helpers (#7147) 2023-03-31 15:15:21 +09:00
object-rest-spread fix(es/compat): Remove wrong logic for object patterns in object_rest (#7788) 2023-08-17 04:01:30 +00:00
optional-chaining fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
optional-chaining-loose fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
parameters fix(es/compat): Fix is_setter in parameters pass (#7348) 2023-05-02 02:11:42 +00:00
private-in-object fix(es/helpers): Use snake_case for helpers (#7147) 2023-03-31 15:15:21 +09:00
shorthand_properties fix(es/compat): Handle __proto__ edge case in shorthand pass (#8077) 2023-10-10 04:08:45 +00:00
static-blocks feat(es/compat): Skip empty class static blocks (#8138) 2023-10-18 17:58:02 +00:00
class_fields_use_set.rs build(cargo): Update rustc to nightly-2023-03-20 (#7170) 2023-03-30 08:06:02 +00:00
es2015_arrow.rs feat(es/testing): Support babel-like fixture testing officially (#8190) 2023-10-30 07:24:49 +09:00
es2015_block_scoping.rs refactor(common): Drop SyntaxContext from AST nodes (#9175) 2024-07-12 13:13:20 +09:00
es2015_classes.rs fix(es/proposal): Fix var placement for using transform (#8732) 2024-03-13 03:06:29 +00:00
es2015_computed_props.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_destructuring.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_duplicated_keys.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_for_of.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_generator.rs fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
es2015_new_target.rs fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
es2015_object_super.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_parameters.rs fix(es/proposal): Fix var placement for using transform (#8732) 2024-03-13 03:06:29 +00:00
es2015_shorthand_propertie.rs fix(es/compat): Handle __proto__ edge case in shorthand pass (#8077) 2023-10-10 04:08:45 +00:00
es2015_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_template_literals.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2017_async_to_generator.rs refactor(es): Use into for AST construction (#9197) 2024-07-12 13:13:20 +09:00
es2018_object_rest_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2020_nullish_coalescing.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2020_optional_chaining.rs fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
es2021_logcal_assignments.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2022_class_properties.rs fix(es/compat): Avoid reserved name for private method (#8949) 2024-05-13 04:59:48 +00:00
es2022_private_in_object.rs fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00
es2022_static_blocks.rs fix(es/compat): Handle private names from class properties pass (#8090) 2023-11-02 22:18:17 +00:00