Examples of UndeclaredModule


Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

  }

  private static void addImportToCurrentModule(ISourceLocation src, String name, IEvaluator<Result<IValue>> eval) {
    ModuleEnvironment module = eval.getHeap().getModule(name);
    if (module == null) {
      throw new UndeclaredModule(name, src);
    }
    ModuleEnvironment current = eval.getCurrentModuleEnvironment();
    current.addImport(name, module);
    current.setSyntaxDefined(current.definesSyntax() || module.definesSyntax());
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

        return getVariable(cons);
      }
     
      ModuleEnvironment imported = getImport(modulename);
      if (imported == null) {
        throw new UndeclaredModule(modulename, name);
      }
     
      // TODO: will this not do a transitive closure? This should not happen...
      return imported.getVariable(name);
    }
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

        return;
      }
     
      ModuleEnvironment imported = getImport(modulename);
      if (imported == null) {
        throw new UndeclaredModule(modulename, name);
      }
     
      imported.storeVariable(name, result);
      return;
    }
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

        flagName(cons, flags);
      }
     
      ModuleEnvironment imported = getImport(modulename);
      if (imported == null) {
        throw new UndeclaredModule(modulename, name);
      }
     
      imported.flagName(cons, flags);
    }
   
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

  }

  public ModuleEnvironment getModule(QualifiedName name, AbstractAST ast) {
    ModuleEnvironment module = getModule(Names.fullName(name));
    if (module == null) {
      throw new UndeclaredModule(Names.fullName(name), ast);
    }
    return module;
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

   */
  public Environment getEnvironmentForName(QualifiedName name, Environment current) {
    if (Names.isQualified(name)) {
      ModuleEnvironment mod = getModule(Names.moduleName(name));
      if (mod == null) {
        throw new UndeclaredModule(Names.moduleName(name), name);
      }
      return mod;
    }

    return current;
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UndeclaredModule

        ModuleEnvironment mod = heap
            .getModule(org.rascalmpl.interpreter.utils.Names
                .moduleName(sort));

        if (mod == null) {
          throw new UndeclaredModule(
              org.rascalmpl.interpreter.utils.Names
                  .moduleName(sort), sort);
        }

        adt = mod.lookupAbstractDataType(name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.