protected void Visit(WhileStatement whileStatement) { }
Beispiel #2
0
        public virtual void Visit(WhileStatement whileStatement)
        {
            WriteLinkLine(whileStatement);
            Visit((Statement)whileStatement);

            if (whileStatement.IsDoWhile)
            {
                Write("do").WriteSpace();
                WriteStatementContent(whileStatement.Statement);
                Write("while").WriteSpace().Write("(");
                VisitDynamic(whileStatement.Condition);
                Write(")");
                Write(";");
                WriteLine();
            }
            else
            {
                Write("while").WriteSpace().Write("(");
                VisitDynamic(whileStatement.Condition);
                Write(")");
                WriteStatementContent(whileStatement.Statement);
            }

            WriteLine();
        }
 public override void Visit(WhileStatement whileStatement) { }