Inheritance: Statement, IYieldReturnStatement
Exemple #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);
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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;
 }