Inheritance: Statement, IYieldReturnStatement
Exemplo n.º 1
0
 /// <summary>
 /// Visits the specified yield return statement.
 /// </summary>
 /// <param name="yieldReturnStatement">The yield return statement.</param>
 public override void Visit(IYieldReturnStatement yieldReturnStatement)
 {
     YieldReturnStatement mutableYieldReturnStatement = new YieldReturnStatement(yieldReturnStatement);
     this.resultStatement = this.myCodeCopier.DeepCopy(mutableYieldReturnStatement);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Visits the specified yield return statement.
 /// </summary>
 /// <param name="yieldReturnStatement">The yield return statement.</param>
 /// <returns></returns>
 protected virtual IStatement DeepCopy(YieldReturnStatement yieldReturnStatement)
 {
     yieldReturnStatement.Expression = Substitute(yieldReturnStatement.Expression);
       return yieldReturnStatement;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Visits the specified yield return statement.
 /// </summary>
 /// <param name="yieldReturnStatement">The yield return statement.</param>
 public override void Visit(IYieldReturnStatement yieldReturnStatement)
 {
     YieldReturnStatement mutableYieldReturnStatement = yieldReturnStatement as YieldReturnStatement;
     if (alwaysMakeACopy || mutableYieldReturnStatement == null) mutableYieldReturnStatement = new YieldReturnStatement(yieldReturnStatement);
     this.resultStatement = this.myCodeMutator.Visit(mutableYieldReturnStatement);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Rewrites the children of the given yield return statement.
 /// </summary>
 public virtual void RewriteChildren(YieldReturnStatement yieldReturnStatement)
 {
     this.RewriteChildren((Statement)yieldReturnStatement);
       yieldReturnStatement.Expression = this.Rewrite(yieldReturnStatement.Expression);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Visits the specified yield return statement.
 /// </summary>
 /// <param name="yieldReturnStatement">The yield return statement.</param>
 /// <returns></returns>
 public virtual IStatement Visit(YieldReturnStatement yieldReturnStatement)
 {
     yieldReturnStatement.Expression = Visit(yieldReturnStatement.Expression);
       return yieldReturnStatement;
 }