Example #1
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            target.RenderText_ValueEX(canvas);

            canvas.AppendToLine("->");
            canvas.AppendToLine(prop.GetName());
        }
Example #2
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            value.RenderText_ValueEX(canvas);
            canvas.AppendToLine(";");
        }
Example #3
0
 public override void RenderText_Value(ILTextCanvas canvas)
 {
     canvas.AppendToLine("(");
     canvas.AppendToLine(operator_info.GetOperatorType().GetSymbol());
     input.RenderText_ValueEX(canvas);
     canvas.AppendToLine(")");
 }
Example #4
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            target.RenderText_ValueEX(canvas);

            canvas.AppendToLine("[");
            index.RenderText_ValueEX(canvas);
            canvas.AppendToLine("]");
        }
Example #5
0
 public override void RenderText_Value(ILTextCanvas canvas)
 {
     canvas.AppendToLine("new ");
     canvas.AppendToLine(element_type.Name);
     canvas.AppendToLine("[");
     size.RenderText_ValueEX(canvas);
     canvas.AppendToLine("]");
 }
Example #6
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            canvas.AppendToLine("(");
            value.RenderText_ValueEX(canvas);

            canvas.AppendToLine(" is ");
            canvas.AppendToLine(check_type.Name);
            canvas.AppendToLine(")");
        }
Example #7
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            destination.RenderText_ValueEX(canvas);
            canvas.AppendToLine(" = ");
            source.RenderText_ValueEX(canvas);
            canvas.AppendToLine(";");
        }
Example #8
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            canvas.AppendToLine("(");
            value.RenderText_ValueEX(canvas);

            canvas.AppendToLine(" as ");
            canvas.AppendToLine(destination_type.Name);
            canvas.AppendToLine(")");
        }
Example #9
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            canvas.AppendToLine("(");
            canvas.AppendToLine(cast.GetDestinationType().Name);
            canvas.AppendToLine(")");

            canvas.AppendToLine("(");
            value.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");
        }
Example #10
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            canvas.AppendToLine("(");
            condition.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToLine(" ? ");

            true_value.RenderText_ValueEX(canvas);
            canvas.AppendToLine(" : ");
            false_value.RenderText_ValueEX(canvas);
        }
Example #11
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            if (method.IsEffectivelyInstanceMethod() && caller != null)
            {
                caller.RenderText_ValueEX(canvas);
                canvas.AppendToLine(".");
            }

            canvas.AppendToLine(method.Name);
            canvas.AppendToLine("(");
            arguments.RenderText_ValueEX(canvas, ", ");
            canvas.AppendToLine(")");
        }
Example #12
0
        public override void RenderText_Value(ILTextCanvas canvas)
        {
            if (field.IsInstanceField())
            {
                target.RenderText_ValueEX(canvas);
            }
            else
            {
                canvas.AppendToLine(field.DeclaringType.Name);
            }

            canvas.AppendToLine(".");
            canvas.AppendToLine(field.Name);
        }
Example #13
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("while(");
            condition.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            while_statement.RenderText_StatementEX(canvas);
            canvas.Dedent();
            canvas.AppendToNewline("}");
        }
Example #14
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            if (value != null)
            {
                canvas.AppendToLine("return ");
                value.RenderText_ValueEX(canvas);
                canvas.AppendToLine(";");
            }
            else
            {
                canvas.AppendToLine("return;");
            }
        }
Example #15
0
        public void RenderText_Declaration(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine(local_type.Name);
            canvas.AppendToLine(" ");
            canvas.AppendToLine(local_name);

            if (initial_value != null)
            {
                canvas.AppendToLine(" = ");
                initial_value.RenderText_ValueEX(canvas);
            }

            canvas.AppendToLine(";");
        }
Example #16
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("switch(");
            input.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            cases.Process(c => c.RenderText_Case(canvas));

            if (default_statement != null)
            {
                canvas.AppendToNewline("default case:");
                canvas.Indent();
                default_statement.RenderText_StatementEX(canvas);
                canvas.AppendToNewline("break;");
                canvas.Dedent();
            }
            canvas.Dedent();
            canvas.AppendToNewline("}");
        }
Example #17
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("if(");
            condition.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            if_true_statement.RenderText_StatementEX(canvas);
            canvas.Dedent();
            canvas.AppendToNewline("}");

            if (HasElse())
            {
                canvas.AppendToNewline("else");
                canvas.AppendToNewline("{");
                canvas.Indent();
                if_false_statement.RenderText_StatementEX(canvas);
                canvas.Dedent();
                canvas.AppendToNewline("}");
            }
        }