public override SyntaxList <StatementSyntax> VisitYieldStatement(CSS.YieldStatementSyntax node)
        {
            IsIterator = true;
            StatementSyntax stmt;

            if (node.Expression == null)
            {
                stmt = SyntaxFactory.ReturnStatement();
            }
            else
            {
                stmt = SyntaxFactory.YieldStatement((ExpressionSyntax)node.Expression.Accept(_nodesVisitor));
            }
            return(SyntaxFactory.SingletonList(stmt));
        }
 public override SyntaxList <VB.Syntax.StatementSyntax> VisitYieldStatement(CS.Syntax.YieldStatementSyntax node)
 {
     // map this to a return statement for now.
     return(List <VB.Syntax.StatementSyntax>(
                VB.SyntaxFactory.ReturnStatement(nodeVisitor.VisitExpression(node.Expression))));
 }