Package org.rascalmpl.ast

Examples of org.rascalmpl.ast.KeywordArguments_Expression


      return new NodePattern(eval, this, nameExpr.buildMatcher(eval), null, TF.nodeType(), visitArguments(eval), visitKeywordArguments(eval));
    }

    private java.util.Map<String, IMatchingResult> visitKeywordArguments(IEvaluatorContext eval) {
      java.util.Map<String,IMatchingResult> result = new HashMap<>();
      KeywordArguments_Expression keywordArgs;

      if (hasKeywordArguments() && (keywordArgs = getKeywordArguments()).isDefault()) {
        for (KeywordArgument_Expression kwa : keywordArgs.getKeywordArgumentList()) {
          result.put(Names.name(kwa.getName()), kwa.getExpression().buildMatcher(eval));
        }
      }

      return result;
View Full Code Here


        }
       
        java.util.Map<String,IValue> kwActuals = Collections.<String,IValue>emptyMap();
       
        if (hasKeywordArguments()) {
          KeywordArguments_Expression keywordArgs = this.getKeywordArguments();
          Type kwFormals = function.getKeywordArgumentTypes();
       
          if (keywordArgs.isDefault()){
            kwActuals = new HashMap<String,IValue>();

            for (KeywordArgument_Expression kwa : keywordArgs.getKeywordArgumentList()){
              Result<IValue> val = kwa.getExpression().interpret(eval);
              String name = Names.name(kwa.getName());

              if (kwFormals != null) {
                if (kwFormals.hasField(name)) {
View Full Code Here

TOP

Related Classes of org.rascalmpl.ast.KeywordArguments_Expression

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.