mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Allow extensions in SynthesizedFileUnits
This commit is contained in:
@@ -2996,8 +2996,11 @@ void SynthesizedFileUnit::lookupValue(
|
||||
DeclName name, NLKind lookupKind,
|
||||
SmallVectorImpl<ValueDecl *> &result) const {
|
||||
for (auto *decl : TopLevelDecls) {
|
||||
if (decl->getName().matchesRef(name))
|
||||
result.push_back(decl);
|
||||
if (auto VD = dyn_cast<ValueDecl>(decl)) {
|
||||
if (VD->getName().matchesRef(name)) {
|
||||
result.push_back(VD);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user