mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user