-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Make sure the code completion takes both private imports and testable #20525
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
Make sure the code completion takes both private imports and testable #20525
Conversation
imports into account separately.
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test case in test/IDE/complete_cache.swift. There's one for @testable
that you could base it on. Otherwise, LGTM!
include/swift/AST/Module.h
Outdated
@@ -990,7 +990,18 @@ class SourceFile final : public FileUnit { | |||
|
|||
void addImports(ArrayRef<ImportedModuleDesc> IM); | |||
|
|||
bool hasTestableOrPrivateImport(AccessLevel accessLevel, const ValueDecl *ofDecl) const; | |||
enum ImportQueryKind { | |||
/// Return the resuls for testable or private imports. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: missing "t" in results.
@swift-ci Please smoke test |
imports into account separately.