List<Executable> executables = ModuleLoader.loadAndCompile(requireDecl.moduleChain);
if (executables == null) {
if (errors == null)
errors = new ArrayList<AnnotatedError>();
errors.add(new StaticError("Unable to locate module: " + requireDecl.moduleChain,
requireDecl.sourceLine, requireDecl.sourceColumn));
} else {
for (Executable executable : executables) {
if (executable.hasErrors()) {
if (errors == null)
errors = new ArrayList<AnnotatedError>();
errors.addAll(executable.getStaticErrors());
} else if (ModuleDecl.DEFAULT.name.equals(executable.getScope().getModuleName())) {
if (errors == null)
errors = new ArrayList<AnnotatedError>();
errors.add(new StaticError("Imported file " + executable.file()
+ ".loop is missing a 'module' declaration\n\nrequired in: " + file,
requireDecl.sourceLine, requireDecl.sourceColumn));
} else {
if (requireDecl.alias != null) {