mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Add 'hoisted' flag to Decl
This commit is contained in:
@@ -2342,6 +2342,10 @@ ArrayRef<Decl *> SourceFile::getTopLevelDecls() const {
|
||||
{}).TopLevelDecls;
|
||||
}
|
||||
|
||||
ArrayRef<Decl *> SourceFile::getHoistedDecls() const {
|
||||
return Hoisted;
|
||||
}
|
||||
|
||||
bool FileUnit::walk(ASTWalker &walker) {
|
||||
SmallVector<Decl *, 64> Decls;
|
||||
getTopLevelDecls(Decls);
|
||||
|
||||
Reference in New Issue
Block a user