Exemple #1
0
        public void RenderText_Case(ILTextCanvas canvas)
        {
            canvas.AppendNewline();
            canvas.AppendNewline();

            canvas.AppendToLine("case ");
            label.RenderText_Value(canvas);
            canvas.AppendToLine(":");

            canvas.Indent();
            statement.RenderText_Statement(canvas);
            canvas.AppendToNewline("break;");
            canvas.Dedent();
        }
Exemple #2
0
        public override string ToString()
        {
            ILTextCanvas canvas = new ILTextCanvas(method);

            canvas.AppendToLine(method.ToStringEX());
            canvas.AppendToNewline("{");
            canvas.Indent();

            statement.RenderText_Statement(canvas);

            canvas.Dedent();
            canvas.AppendToNewline("}");

            canvas.AppendNewline();
            canvas.AppendNewline();
            Write(canvas);

            return(canvas.ToString());
        }