Пример #1
0
        public CodeYieldStatement Yield(CodeExpression exp)
        {
            var y = new CodeYieldStatement(exp);

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