Skip to content

Conversation

@hamishknight
Copy link
Contributor

This is no longer necessary.

@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test


protected:
/// Not const because may reexpand some scopes.
ASTScopeImpl *findInnermostEnclosingScope(ModuleDecl *,
Copy link
Contributor

Choose a reason for hiding this comment

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

out of curiosity (and laziness) – why was it necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It used to use ModuleDecl::getSourceFileContainingLocation to handle different buffer cases, we have since added an API to SourceManager that handles that (#70126)

@hamishknight
Copy link
Contributor Author

@swift-ci please test Windows

1 similar comment
@hamishknight
Copy link
Contributor Author

@swift-ci please test Windows

@hamishknight hamishknight merged commit 163cfd5 into swiftlang:main Dec 18, 2025
3 checks passed
@hamishknight hamishknight deleted the remove-mod branch December 18, 2025 12:36
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