final StmtContext<?, ?, ?> importedModule = imported.resolve(ctx);
final QNameModule mod = InferenceException.throwIfNull(stmt.getFromNamespace(
- ModuleCtxToModuleQName.class, importedModule), stmt.getStatementSourceReference(),
+ ModuleCtxToModuleQName.class, importedModule), stmt.sourceReference(),
"Failed to find module of %s", importedModule);
linkageTarget.resolve(ctx).addToNs(ImportedModuleContext.class,
@Override
public void prerequisiteFailed(final Collection<? extends Prerequisite<?>> failed) {
if (failed.contains(imported)) {
- throw new InferenceException(stmt.getStatementSourceReference(),
- "Imported module [%s] was not found.", moduleName);
+ throw new InferenceException(stmt.sourceReference(), "Imported module [%s] was not found.",
+ moduleName);
}
}
});