Beispiel #1
0
        internal CodeYieldStatement Yield(CodeExpression exp)
        {
            var y = new CodeYieldStatement(exp);

            Scope.Add(y);
            return(y);
        }
Beispiel #2
0
 public int VisitYield(CodeYieldStatement y)
 {
     writer.Write("yield");
     writer.Write(" ");
     writer.Write("return");
     writer.Write(" ");
     y.Expression.Accept(expWriter);
     EndLineWithSemi();
     return(0);
 }