Package org.rascalmpl.interpreter.matching

Examples of org.rascalmpl.interpreter.matching.ConcreteListVariablePattern


        Type type = r.getType();
        if (type instanceof NonTerminalType) {
          NonTerminalType cType = (NonTerminalType) type;
          if (cType.isConcreteListType()) {
            return new ConcreteListVariablePattern(eval, this, type, ((Default) name).lastName());
          }
        }

        return new QualifiedNamePattern(eval, this, name);
      }
View Full Code Here


 
  @Override
  public IMatchingResult buildMatcher(IEvaluatorContext ctx) {
    IConstructor symbol = ((NonTerminalType) type).getSymbol();
    if (SymbolAdapter.isStarList(symbol) || SymbolAdapter.isPlusList(symbol)) {
      return new ConcreteListVariablePattern(ctx, this, type, name);
    }
    else {
      return new TypedVariablePattern(ctx, this, type, name);
    }
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.matching.ConcreteListVariablePattern

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.