Skip to content
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

ResolveMemberExpressionAmbiguityPass now correctly set an FQN in its replaced references #1987

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented Jan 25, 2025

Previously, we were re-using the (partial) name of the expression instead of the FQN. This has led to some unexpected results, in a way that later passes could not resolve the type of the reference (or call expression).

Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.01%. Comparing base (c72becd) to head (b247467).
Report is 1 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
...cpg/passes/ResolveMemberExpressionAmbiguityPass.kt 96.77% <100.00%> (+0.22%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…s replaced references

Previously, we were re-using the (partial) name of the expression instead of the FQN. This has led to some unexpected results, in a way that later passes could not resolve the type of the reference (or call expression).
@oxisto oxisto force-pushed the fqn-resolve-member-expression branch from 4723cc8 to b247467 Compare January 30, 2025 12:53
@oxisto oxisto enabled auto-merge (squash) January 30, 2025 12:53
@oxisto oxisto merged commit 48bc1a0 into main Jan 30, 2025
4 checks passed
@oxisto oxisto deleted the fqn-resolve-member-expression branch January 30, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants