Skip to content

refactor(ecma/transform): cleanup rename analyzer #10500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

bvanjoi
Copy link
Contributor

@bvanjoi bvanjoi commented May 21, 2025

No description provided.

@bvanjoi bvanjoi requested a review from a team as a code owner May 21, 2025 10:07
Copy link

changeset-bot bot commented May 21, 2025

⚠️ No Changeset found

Latest commit: 4ca4b25

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines -381 to -402
fn visit_member_expr(&mut self, e: &MemberExpr) {
e.obj.visit_with(self);

if let MemberProp::Computed(c) = &e.prop {
c.visit_with(self);
}
}

fn visit_method_prop(&mut self, f: &MethodProp) {
f.key.visit_with(self);

f.function.visit_with(self)
}

fn visit_named_export(&mut self, n: &NamedExport) {
if n.src.is_some() {
return;
}

n.visit_children_with(self);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal of removing this visitor is to merge the analyzer and collector lately.

Copy link

codspeed-hq bot commented May 21, 2025

CodSpeed Performance Report

Merging #10500 will improve performances by 2.39%

Comparing bvanjoi:pref-minifier-3 (4ca4b25) with main (0f5d9c1)

Summary

⚡ 1 improvements
✅ 143 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
es/lints/libs/d3 28.3 ms 27.6 ms +2.39%

@kdy1 kdy1 added this to the Planned milestone May 21, 2025
@kdy1 kdy1 merged commit de51be1 into swc-project:main May 21, 2025
165 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.11.29 May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants