Наследование: Statement, IYieldBreakStatement
Пример #1
0
 /// <summary>
 /// Visits the specified yield break statement.
 /// </summary>
 /// <param name="yieldBreakStatement">The yield break statement.</param>
 public override void Visit(IYieldBreakStatement yieldBreakStatement)
 {
     YieldBreakStatement mutableYieldBreakStatement = new YieldBreakStatement(yieldBreakStatement);
     this.resultStatement = this.myCodeCopier.DeepCopy(mutableYieldBreakStatement);
 }
Пример #2
0
 /// <summary>
 /// Visits the specified yield break statement.
 /// </summary>
 /// <param name="yieldBreakStatement">The yield break statement.</param>
 /// <returns></returns>
 protected virtual IStatement DeepCopy(YieldBreakStatement yieldBreakStatement)
 {
     return yieldBreakStatement;
 }
Пример #3
0
 /// <summary>
 /// Visits the specified yield break statement.
 /// </summary>
 /// <param name="yieldBreakStatement">The yield break statement.</param>
 public override void Visit(IYieldBreakStatement yieldBreakStatement)
 {
     YieldBreakStatement mutableYieldBreakStatement = yieldBreakStatement as YieldBreakStatement;
     if (alwaysMakeACopy || mutableYieldBreakStatement == null) mutableYieldBreakStatement = new YieldBreakStatement(yieldBreakStatement);
     this.resultStatement = this.myCodeMutator.Visit(mutableYieldBreakStatement);
 }
Пример #4
0
 /// <summary>
 /// Rewrites the children of the given yield break statement.
 /// </summary>
 public virtual void RewriteChildren(YieldBreakStatement yieldBreakStatement)
 {
     this.RewriteChildren((Statement)yieldBreakStatement);
 }
Пример #5
0
 /// <summary>
 /// Visits the specified yield break statement.
 /// </summary>
 /// <param name="yieldBreakStatement">The yield break statement.</param>
 /// <returns></returns>
 public virtual IStatement Visit(YieldBreakStatement yieldBreakStatement)
 {
     return yieldBreakStatement;
 }