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:
Jordan Rose
2013-07-23 23:10:28 +00:00
parent 0d3e410fc4
commit 8e081367ca
8 changed files with 55 additions and 1 deletions

View File

@@ -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);
}