stmt.addToNs(ImportPrefixToSemVerSourceIdentifier.class, impPrefix, semVerModuleIdentifier);
final QNameModule mod = InferenceException.throwIfNull(stmt.getFromNamespace(
- ModuleCtxToModuleQName.class, importedModule), stmt.getStatementSourceReference(),
+ ModuleCtxToModuleQName.class, importedModule), stmt.sourceReference(),
"Failed to find module of %s", importedModule);
final URI modNs = firstAttributeOf(importedModule.declaredSubstatements(),
@Override
public void prerequisiteFailed(final Collection<? extends Prerequisite<?>> failed) {
if (failed.contains(imported)) {
- throw new InferenceException(stmt.getStatementSourceReference(),
+ throw new InferenceException(stmt.sourceReference(),
"Unable to find module compatible with requested import [%s(%s)].", moduleName,
getRequestedImportVersionString(stmt));
}