mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "[InterfacePrinting] Print stdlib internal protocols whose names start with no '_'"
This reverts commit ca7c1e5692bdd51cb0800be42c964462a3c84436. Swift SVN r30191
This commit is contained in:
@@ -141,8 +141,6 @@ void swift::ide::printSubmoduleInterface(
|
||||
const PrintOptions &Options) {
|
||||
auto AdjustedOptions = Options;
|
||||
adjustPrintOptions(AdjustedOptions);
|
||||
auto PrintInternalProtocol = Options.PrintInternalStdlibProtocols &&
|
||||
M->isStdlibModule();
|
||||
|
||||
SmallVector<Decl *, 1> Decls;
|
||||
M->getDisplayDecls(Decls);
|
||||
@@ -210,10 +208,6 @@ void swift::ide::printSubmoduleInterface(
|
||||
if (Options.SkipUnavailable && D->getAttrs().isUnavailable(SwiftContext))
|
||||
continue;
|
||||
|
||||
if (PrintInternalProtocol && ASTPrinter::isInternalProtocol(D)) {
|
||||
SwiftDecls.push_back(D);
|
||||
}
|
||||
|
||||
// Skip declarations that are not accessible.
|
||||
if (auto *VD = dyn_cast<ValueDecl>(D)) {
|
||||
if (Options.AccessibilityFilter > Accessibility::Private &&
|
||||
|
||||
Reference in New Issue
Block a user