mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge branch 'main' into lazy-immediate
This commit is contained in:
@@ -3839,15 +3839,6 @@ void *SourceFile::getExportedSourceFile() const {
|
||||
return evaluateOrDefault(eval, ExportedSourceFileRequest{this}, nullptr);
|
||||
}
|
||||
|
||||
void SourceFile::addDeclWithRuntimeDiscoverableAttrs(ValueDecl *decl) {
|
||||
assert(!decl->getRuntimeDiscoverableAttrs().empty());
|
||||
DeclsWithRuntimeDiscoverableAttrs.insert(decl);
|
||||
}
|
||||
|
||||
ArrayRef<ValueDecl *> SourceFile::getDeclsWithRuntimeDiscoverableAttrs() const {
|
||||
return DeclsWithRuntimeDiscoverableAttrs.getArrayRef();
|
||||
}
|
||||
|
||||
bool FileUnit::walk(ASTWalker &walker) {
|
||||
SmallVector<Decl *, 64> Decls;
|
||||
getTopLevelDecls(Decls);
|
||||
|
||||
Reference in New Issue
Block a user