Examples of UnguardedAppend


Examples of org.rascalmpl.interpreter.staticErrors.UnguardedAppend

      super(node, __param2, __param3);
    }
   
    protected Accumulator getTarget(IEvaluator<Result<IValue>> __eval) {
      if (__eval.__getAccumulators().empty()) {
        throw new UnguardedAppend(this);
      }
      if (!this.getDataTarget().isEmpty()) {
        String label = org.rascalmpl.interpreter.utils.Names.name(this.getDataTarget().getLabel());
        Accumulator accu = findDataTarget(__eval, label);
        if (accu == null) {
          throw new UnguardedAppend(this); // TODO: better error
        }
        return accu;
      }
      return __eval.__getAccumulators().peek();
    }
View Full Code Here

Examples of org.rascalmpl.interpreter.staticErrors.UnguardedAppend

      __eval.setCurrentAST(this);
      __eval.notifyAboutSuspension(this);
     
      Accumulator target = null;
      if (__eval.__getAccumulators().empty()) {
        throw new UnguardedAppend(this);
      }
      if (!this.getDataTarget().isEmpty()) {
        String label = org.rascalmpl.interpreter.utils.Names.name(this
            .getDataTarget().getLabel());
        target = findDataTarget(__eval, label);
        if (target == null) {
          throw new UnguardedAppend(this); // TODO: better error
          // message
        }
      } else {
        target = __eval.__getAccumulators().peek();
      }
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.