-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[QoI] Unify member diagnostics into one FailureDiagnosis method #9538
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
Conversation
@swift-ci please smoke test |
89bd37d
to
7e9b892
Compare
@swift-ci please smoke test |
@swift-ci please smoke test Linux platform |
/cc @slavapestov @rudkx I think this is ready for initial review. All of the scattered logic for diagnosing inaccessible/unavailable and other member lookup related cases is now in one place and all four related methods (UnresolvedDot, UnresolvedMember, Subscript, and GeneralMemberFailure) use it. |
4153aba
to
883a2c7
Compare
@swift-ci please smoke test and merge |
@swift-ci please smoke test OS X platform |
@slavapestov Any idea why typo_test started producing |
@swift-ci please clean smoke test |
883a2c7
to
dd9469e
Compare
@swift-ci please smoke test and merge |
This changes aim to unify logic behind member diagnostics
into a single method instead of maintaining different versions
in
visitUnresolvedMemberExpr
,visitSubscriptExpr
,visitUnresolvedDotExpr
anddiagnoseGeneralMemberFailure
.Since all of aforementioned methods do the same thing, with
minor expression specific differences, it makes sense to put
most of the logic into a single place and provide appropriate
callbacks to implement expression specific logic.