mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Basic implementation of lookupVisibleDecls() for serialized modules.
This involved threading it through ModuleLoader, as with all the other module-generic callbacks. I plan to collapse a bit of the chaining, but unfortunately not that much. This brings back the CodeCompletion tests. Swift SVN r6527
This commit is contained in:
@@ -243,3 +243,16 @@ void SerializedModuleLoader::getReexportedModules(
|
||||
|
||||
moduleFile->getReexportedModules(exports);
|
||||
}
|
||||
|
||||
void
|
||||
SerializedModuleLoader::lookupVisibleDecls(const Module *module,
|
||||
Module::AccessPathTy accessPath,
|
||||
VisibleDeclConsumer &consumer,
|
||||
NLKind lookupKind) {
|
||||
|
||||
ModuleFile *moduleFile = cast<SerializedModule>(module)->File;
|
||||
if (!moduleFile)
|
||||
return;
|
||||
|
||||
moduleFile->lookupVisibleDecls(accessPath, consumer, lookupKind);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user