Package loop

Examples of loop.StaticError


        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) {
View Full Code Here

TOP

Related Classes of loop.StaticError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.