mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In ModuleFile::lookupVisibleDecls(), if the caller requested scoped decls, don't return the all the top-level ones as well.
Swift SVN r18327
This commit is contained in:
@@ -988,6 +988,7 @@ void ModuleFile::lookupVisibleDecls(Module::AccessPathTy accessPath,
|
||||
for (auto item : *iter)
|
||||
consumer.foundDecl(cast<ValueDecl>(getDecl(item.second)),
|
||||
DeclVisibilityKind::VisibleAtTopLevel);
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto entry : TopLevelDecls->data()) {
|
||||
|
||||
Reference in New Issue
Block a user