public ForeachStmt(Text.Span span, Expression /*!*/ enumeree, ForeachVar key, ForeachVar /*!*/ value, Statement /*!*/ body) : base(span) { Debug.Assert(enumeree != null && value != null && body != null); this.enumeree = enumeree; this.keyVariable = key; this.valueVariable = value; this.body = body; }
public virtual LangElement Foreach(Span span, LangElement enumeree, ForeachVar keyOpt, ForeachVar value, LangElement body) { return(new ForeachStmt(span, (Expression)enumeree, keyOpt, value, (Statement)body)); }