Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public virtual LangElement Foreach(Span span, LangElement enumeree, ForeachVar keyOpt, ForeachVar value, LangElement body)
 {
     return(new ForeachStmt(span, (Expression)enumeree, keyOpt, value, (Statement)body));
 }