Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.UnexpectedType


        Type lub = TypeFactory.getInstance().voidType();
        int nElems = subjectType.getArity();
        for(int i = 0; i < nElems; i++)
          lub = lub.lub(subjectType.getFieldType(i));
        if(!lub.comparable(patType))
          throw new UnexpectedType(patType, subjectType, ctx.getCurrentAST())
        return new TupleElementIterator((ITuple)subjectValue);
      }
      return new DescendantReader(subjectValue, false);

    } else if(subjectType.isBool() ||
View Full Code Here


    }
  }

  private static void checkMayOccur(Type patType, Type rType, IEvaluatorContext ctx){
    if(!TypeReachability.mayOccurIn(patType, rType, ctx.getCurrentEnvt())) {
      throw new UnexpectedType(rType, patType, ctx.getCurrentAST());
    }
  }
View Full Code Here

      super(__param1, __param2, __param3);
    }

    @Override
    public IBooleanResult buildBacktracker(IEvaluatorContext eval) {
      throw new UnexpectedType(TF.boolType(), interpret(eval.getEvaluator()).getType(), this);
    }
View Full Code Here

    }

    @Override
    public IBooleanResult buildBacktracker(IEvaluatorContext __eval) {

      throw new UnexpectedType(TF.boolType(), this
          .interpret(__eval.getEvaluator()).getType(),
          this);

    }
View Full Code Here

    }

    @Override
    public IBooleanResult buildBacktracker(IEvaluatorContext __eval) {

      throw new UnexpectedType(TF.boolType(), this
          .interpret(__eval.getEvaluator()).getType(),
          this);

    }
View Full Code Here

TOP

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

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.