Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@neilparikh
Copy link
Collaborator

@neilparikh neilparikh commented Jan 8, 2026

#9738 but for exports. The approach is similar, except that it uses symbolReferencesByFile map added in #9654.

Depends on #9738

Review commit-by-commit.

Motivation

Improve autocorrects.

Test plan

See included automated tests.

@neilparikh neilparikh marked this pull request as ready for review January 8, 2026 19:50
@neilparikh neilparikh requested a review from a team as a code owner January 8, 2026 19:50
@neilparikh neilparikh requested review from jez and removed request for a team January 8, 2026 19:50
Copy link
Collaborator

@jez jez left a comment

Choose a reason for hiding this comment

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

same comments as before.

if (exportsAutocorrect.has_value()) {
allEdits.insert(allEdits.end(), make_move_iterator(exportsAutocorrect->edits.begin()),
make_move_iterator(exportsAutocorrect->edits.end()));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto earlier comment about moving as much of this as possible to resolve.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you wouldn't mind taking a pass over removing the std:: from this file I would appreciate it.

Comment on lines +315 to +316
std::optional<core::AutocorrectSuggestion> PackageDB::aggregateMissingExportsForFile(const core::GlobalState &gs,
const core::FileRef fref) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ooc, maybe I'm missing it, but with the import side, there was aggregateMissingImports and aggregateMissingImportsForFile. Why is there not a corresponding symmetry for exports?

@neilparikh neilparikh force-pushed the neil-dedub-apply-all branch from a1cf8a0 to ef0e398 Compare January 13, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants