File importingModuleDir = getContainerHandle(r.getURI(), descriptionIndex, validationContainerManager);
if(importingModuleDir == null)
continue;
// get the imports recorded during linking
PPImportedNamesAdapter importedAdapter = PPImportedNamesAdapterFactory.eINSTANCE.adapt(r);
for(IEObjectDescription desc : importedAdapter.getResolvedDescriptions()) {
// get the container (e.g. a module) of the the desc
File moduleDir = getContainerHandle(desc.getEObjectURI(), descriptionIndex, validationContainerManager);
if(moduleDir == null)
continue;
ModuleExport me = exports.get(desc);
if(me == null)
me = searchMissing(importingModuleDir, moduleDir, exports, desc);
result.addImport(importingModuleDir, moduleDir, me);
}
// get the ambiguities recording during linking
for(IEObjectDescription desc : importedAdapter.getAmbiguousDescriptions()) {
// get the container (e.g. a module) of the the desc
File moduleDir = getContainerHandle(desc.getEObjectURI(), descriptionIndex, validationContainerManager);
if(moduleDir == null)
continue;
ModuleExport me = exports.get(desc);
if(me == null)
me = searchMissing(importingModuleDir, moduleDir, exports, desc);
result.addAmbiguity(importingModuleDir, moduleDir, me);
}
// TODO: RECORD BOTH NAME FILE, AND LOCATIONS FOR THAT NAME
result.addUnresolved(importingModuleDir, r.getURI(), importedAdapter.getUnresolved(), fQualifiedToString);
// result.addAllUnresolvedNames(
// importingModuleDir,
// Iterables.transform(importedAdapter.getUnresolvedNames(), new
// Function<QualifiedName, String>() {
//