Package org.rascalmpl.interpreter.result

Examples of org.rascalmpl.interpreter.result.SourceLocationResult


          if (moduleEnvName.equals(ModuleEnvironment.SHELL_MODULE)) {
            ur = URIUtil.rootScheme("rascal");
          } else {
            ur = eval.getRascalResolver().getRootForModule((URIUtil.createRascalModule(moduleEnvName)));
          }
          Result<?> loc = new SourceLocationResult(TF.sourceLocationType(), VF.sourceLocation(ur), eval);
          String modulePath = moduleName.replaceAll("::", "/");
          loc = loc.add(ResultFactory.makeResult(TF.stringType(), VF.string(modulePath), eval));
          loc = loc.fieldUpdate("extension", ResultFactory.makeResult(TF.stringType(), VF.string(".rsc"), eval), eval.getCurrentEnvt().getStore());
         
          OutputStream outputStream;
          try {
            outputStream = reg.getOutputStream(((ISourceLocation) loc.getValue()).getURI(), false);
          }
          catch (IOException e) {
            outputStream = reg.getOutputStream(URIUtil.rootScheme("cwd"), false);
          }
         
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.result.SourceLocationResult

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.