Example #1
0
 protected virtual void Write(IndentedTextWriter writer, YieldReturnStatement statement, WriteStatementOptions options)
 {
     writer.Write("yield return");
     if (statement.Expression != null)
     {
         writer.Write(" ");
         Write(writer, statement.Expression);
     }
     writer.WriteLine(";");
 }
Example #2
0
 public virtual void VisitYieldReturnStatement(YieldReturnStatement yieldReturnStatement)
 {
     VisitStatement(yieldReturnStatement);
     Visit(yieldReturnStatement.Expression);
 }