Examples of UnexpectedKeywordArgumentType


Examples of org.rascalmpl.interpreter.staticErrors.UnexpectedKeywordArgumentType

 
              if (keyArgValues.containsKey(kwparam)){
                  IValue r = keyArgValues.get(kwparam);
 
                  if(!r.getType().isSubtypeOf(kwType)) {
                      throw new UnexpectedKeywordArgumentType(kwparam, kwType, r.getType(), ctx.getCurrentAST());
                  }
 
                  env.declareVariable(kwType, kwparam);
                  env.storeVariable(kwparam, ResultFactory.makeResult(kwType, r, ctx));
              }
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.