Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.UninitializedPatternMatch


    return ast;
  }
 
  public void initMatch(Result<IValue> subject) {
    if(subject.isVoid())
      throw new UninitializedPatternMatch("Uninitialized pattern match: trying to match a value of the type 'void'", ctx.getCurrentAST());
    init();
    this.subject = subject;
  }
View Full Code Here


  public void initMatch(Result<IValue> subject){
    super.initMatch(subject);
    hasNext = false;

    if (subject.isVoid()) {
      throw new UninitializedPatternMatch("Uninitialized pattern match: trying to match a value of the type 'void'", ctx.getCurrentAST());
    }

    if (!subject.getValue().getType().isNode()) {
      return;
    }
View Full Code Here

        Type[] types = new Type[args.size()];
        for (int i = 0; i < args.size(); i++) {
          Result<IValue> resultElem = args.get(i).interpret(eval);
          types[i] = resultElem.getType();
          if (types[i].isBottom()) {
            throw new UninitializedPatternMatch("The argument is of the type 'void'", args.get(i));
          }
          actuals[i] = resultElem.getValue();
        }
       
        java.util.Map<String,IValue> kwActuals = Collections.<String,IValue>emptyMap();
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.UninitializedPatternMatch

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.