Exemplo n.º 1
0
 protected override void RenderView(IndentStringBuilder builder, T_Field f, AssignOperatorInfo?op, IndentStringBuilder opValue)
 {
     if (op.HasValue)
     {
         builder.AppendFormat(".{0} {1} {2}", f.Name, op.GetDescription(), opValue);
     }
     else
     {
         builder.AppendFormat(".{0}", f.Name);
     }
 }
Exemplo n.º 2
0
        protected virtual void RenderView(IndentStringBuilder builder, T_Field f, AssignOperatorInfo?op, IndentStringBuilder rightBuilder)
        {
            var p = "";

            if (rightBuilder != null)
            {
                p = rightBuilder.ToString();
            }

            //builder.AppendFormat(".{0}({1})", f.Name, p);

            builder.AppendFormat(".{0}", f.Name);

            if (op.HasValue)
            {
                builder.AppendFormat("{0}{1}", op.Value.GetDescription(), rightBuilder.ToString());
            }
        }
Exemplo n.º 3
0
        protected virtual void RenderView(IndentStringBuilder builder, T_Method m, IndentStringBuilder paras)
        {
            var p = "";

            if (paras != null)
            {
                p = paras.ToString();
            }

            builder.AppendFormat(".{0}({1})", m.Name, p);
        }
Exemplo n.º 4
0
 protected override void RenderView(IndentStringBuilder builder, T_Field f, AssignOperatorInfo?op, IndentStringBuilder opValue)
 {
     //base.RenderView(builder, f, rightBuilder);
     if (opValue != null && opValue.Length > 0)
     {
         builder.AppendFormat(".{0}({1})", f.Name, opValue.ToString());
     }
     else
     {
         if (f.Type is T_EventType)
         {
             builder.AppendFormat(".{0}", f.Name);
         }
         else if (f.Type is T_ValidateType)
         {
             builder.AppendFormat(".{0}", f.Name);
         }
         else
         {
             builder.AppendFormat(".{0}()", f.Name);
         }
     }
 }