예제 #1
0
        public virtual Expr Visit(ForeachExpr e)
        {
            var vV = (AccessorLetExpr)VisitExpr(e.Variable);
            var gV = VisitExpr(e.Generator);
            var cV = VisitExpr(e.Code);

            return(vV == e.Variable && gV == e.Generator && cV == e.Code ? e : new ForeachExpr(e.Location, vV, gV, cV));
        }
예제 #2
0
 public PExpr Visit(ForeachExpr e) => Run(new ForeachExprFrame(this, e));