mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Hide SourceFile::Decls
In preparation for installing some stable paths infrastructure here, hide access to the array of top-level decls.
This commit is contained in:
@@ -252,7 +252,7 @@ ProvidesEmitter::emitTopLevelNames() const {
|
||||
out << providesTopLevel << ":\n";
|
||||
|
||||
CollectedDeclarations cpd;
|
||||
for (const Decl *D : SF->Decls)
|
||||
for (const Decl *D : SF->getTopLevelDecls())
|
||||
emitTopLevelDecl(D, cpd);
|
||||
for (auto *operatorFunction : cpd.memberOperatorDecls)
|
||||
out << "- \"" << escape(operatorFunction->getName()) << "\"\n";
|
||||
|
||||
Reference in New Issue
Block a user