[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

@@ -667,7 +667,7 @@ static SourceLoc getDeclStartPosition(SourceFile &File) {
return false;
};
for (auto D : File.Decls) {
for (auto D : File.getTopLevelDecls()) {
if (tryUpdateStart(D->getStartLoc())) {
tryUpdateStart(D->getAttrs().getStartLoc());
auto RawComment = D->getRawComment();