Skip to content

Sema: Use getAllMembers() from collectVisibleMemberDecls() #67005

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

Conversation

slavapestov
Copy link
Contributor

No description provided.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov force-pushed the lookup-visible-members-cleanup branch from 62a1133 to dea7f7c Compare June 29, 2023 18:52
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@@ -1941,7 +1941,6 @@ SwiftDeclCollector::constructConformanceNode(ProtocolConformance *Conform) {
Conform->forEachTypeWitness(
[&](AssociatedTypeDecl *assoc, Type ty, TypeDecl *typeDecl) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should lambda type annotations be removed as well since it doesn't return bool anymore? Here and other places as well =]

Suggested change
[&](AssociatedTypeDecl *assoc, Type ty, TypeDecl *typeDecl) -> bool {
[&](AssociatedTypeDecl *assoc, Type ty, TypeDecl *typeDecl) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, no idea why that didn't cause a compile error. Thanks!

@slavapestov slavapestov force-pushed the lookup-visible-members-cleanup branch from dea7f7c to d1fca44 Compare June 29, 2023 20:27
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

I had to disable typo correction in one test case to get it to pass without
diagnosing a cycle as a result of Sendable checking. But that's OK, because:

- Sendable checking is prone to request cycles and needs to be redesigned
- Typo correction is turned off in production
@slavapestov slavapestov force-pushed the lookup-visible-members-cleanup branch from d1fca44 to 89ad597 Compare June 30, 2023 16:41
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

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