Merge pull request #28995 from CodaFi/absolutely-path-ological

[NFC] Hide SourceFile::Decls
This commit is contained in:
Robert Widmann
2020-01-06 18:48:55 -08:00
committed by GitHub
25 changed files with 83 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();