mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #35575 from egorzhdan/sk-impl-only
SourceKit: do not print implementation-only imports
This commit is contained in:
@@ -609,6 +609,9 @@ void swift::ide::printModuleInterface(
|
||||
}
|
||||
|
||||
auto ShouldPrintImport = [&](ImportDecl *ImportD) -> bool {
|
||||
if (ImportD->getAttrs().hasAttribute<ImplementationOnlyAttr>())
|
||||
return false;
|
||||
|
||||
if (!TargetClangMod)
|
||||
return true;
|
||||
if (ImportD->getModule() == TargetMod)
|
||||
|
||||
Reference in New Issue
Block a user