Package com.stuffwithstuff.magpie.ast

Examples of com.stuffwithstuff.magpie.ast.RecordExpr


    if (expr == null) {
      return field;
    } else if (expr instanceof NothingExpr) {
      return field;
    } else if (expr instanceof RecordExpr) {
      RecordExpr record = (RecordExpr)expr;
      List<Pair<String, Expr>> fields = new ArrayList<Pair<String, Expr>>(record.getFields());
      fields.add(new Pair<String, Expr>(Name.getTupleField(fields.size()), field));
      return Expr.record(record.getPosition(), fields);
    } else {
      return Expr.record(expr, field);
    }
  }
View Full Code Here

TOP

Related Classes of com.stuffwithstuff.magpie.ast.RecordExpr

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.