Skip to content

[Index] Don't index non-public imported declarations #25865

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
merged 1 commit into from
Jun 28, 2019

Conversation

jrose-apple
Copy link
Contributor

Apart from mildly speeding up indexing, this also keeps the compiler from running into issues with implementation-only imports that may not be present while we're trying to index.

rdar://problem/52083709

@jrose-apple jrose-apple requested review from akyrtzi and nathawes June 28, 2019 21:20
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test source compatibility

@jrose-apple
Copy link
Contributor Author

Oops, missed a test change.

Apart from mildly speeding up indexing, this also keeps the compiler
from running into issues with implementation-only imports that may not
be present while we're trying to index.

rdar://problem/52083709
@jrose-apple
Copy link
Contributor Author

Source compat Debug, Release

@swift-ci Please test

{
key.kind: source.lang.swift.decl.extension.class,
key.name: "C2",
key.usr: "s:e:s:11test_module2C2C6SECRETyyF"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change does mean extensions might exist with USRs that refer to decls that aren't indexed. Is that a problem?

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9698a472d0de5875c5e0854d7325384b305c73d3

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9698a472d0de5875c5e0854d7325384b305c73d3

Copy link
Contributor

@nathawes nathawes left a comment

Choose a reason for hiding this comment

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

LGTM!

@jrose-apple jrose-apple merged commit 02e1a11 into swiftlang:master Jun 28, 2019
@jrose-apple jrose-apple deleted the sleeping-dragons branch June 28, 2019 23:57
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Jun 28, 2019
Apart from mildly speeding up indexing, this also keeps the compiler
from running into issues with implementation-only imports that may not
be present while we're trying to index.

rdar://problem/52083709
(cherry picked from commit 02e1a11)
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.

4 participants