Skip to content

Conversation

@tshortli
Copy link
Contributor

@tshortli tshortli commented Aug 7, 2024

When looking up type declarations with the MemberImportVisiblity feature enabled, resolve both qualified and unqualified types to their matching member type declarations regardless of whether an import is missing. This improves the quality of knock-on diagnostics and allows accurate access levels to be suggested in the fix-its for the missing imports.

Part of rdar://126637855.

To improve knock-on diagnostics, resolve unqualified types to their matching
member type declarations regardless of whether an import is missing when the
`MemberImportVisibility` features is enabled.

Part of rdar://126637855.
If an `ExtendedNominalRequest`'s initial type lookup yields no results, query
again ignoring missing imports to find nominals that were excluded due to the
`MemberImportVisibility` feature being enabled. The missing import will be
diagnosed during type resolution and allowing the request to succeed enables
better diagnostics.

Part of rdar://126637855.
To improve knock-on diagnostics, resolve qualified types to their matching
member type declarations regardless of whether an import is missing when the
`MemberImportVisibility` features is enabled.

Part of rdar://126637855.
@tshortli
Copy link
Contributor Author

tshortli commented Aug 7, 2024

@swift-ci please smoke test

@tshortli tshortli requested a review from xymus August 7, 2024 18:29
@tshortli tshortli merged commit 447ce81 into swiftlang:main Aug 7, 2024
@tshortli tshortli deleted the member-import-visibility-import-accurate-access-levels branch August 7, 2024 21:17
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.

2 participants