[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:
Robert Widmann
2019-12-21 21:01:10 -08:00
parent 3090333d5b
commit 96b3b9f0f4
25 changed files with 73 additions and 54 deletions

View File

@@ -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";