-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Retain invalid decls when filtering using access path #34455
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 test |
Build failed |
Build failed |
Not sure why OSX failed. Linux also had an unrelated test failure. Windows (surprisingly) is the only platform that has just the relevant test failure: completion in the initializer of a top level decl shouldn't include the decl itself. There's a bug for including the decl when it's the first decl, but this change appears to regress that case to happening on every top level decl. This is probably worse than just missing the decl when it's invalid, so I'll look into fixing that first. |
@swift-ci Please smoke test |
@swift-ci Please test Windows |
1ec88cd
to
26c3545
Compare
I've updated the PR, adding another commit that remove the decl from the completion list when the completion is within its initializer. |
@swift-ci please test |
26c3545
to
00037b5
Compare
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
`::lookupVisibleDecls` had an inline consumer in order to remove "unusable" results. Refactor this method, moving the consumer (now `UsableFilteringDeclConsumer`) to allow its use when looking up top level module declarations. Also use the `AccessFilteringDeclConsumer` in preference to a condition in `addVarDecl`. Resolves rdar://56755598
Fixes missing declarations in the completions list due to their type being invalid. Resolves rdar://70704835
00037b5
to
4da190d
Compare
@swift-ci please test |
@compnerd the Windows builder ran out of space - is it missing some cleanup somewhere? |
@swift-ci Please smoke test Windows |
Fixes missing declarations in the completions list due to their type
being invalid.
Resolves rdar://70704835