Пример #1
0
 public void Visit(TypeLong type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + bufname + ".WriteInt(Zeze.ByteBuffer.LONG | " + id + " << Zeze.ByteBuffer.TAG_SHIFT);");
     }
     sw.WriteLine(prefix + bufname + ".WriteLong(" + varname + ");");
 }
Пример #2
0
 void Visitor.Visit(TypeLong type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + "case (Zeze.ByteBuffer.LONG | " + id + " << Zeze.ByteBuffer.TAG_SHIFT): ");
         sw.WriteLine(prefix + "    " + varname + " = " + bufname + ".ReadLong();");
         sw.WriteLine(prefix + "    break;");
     }
     else
     {
         sw.WriteLine(prefix + varname + " = " + bufname + ".ReadLong();");
     }
 }
Пример #3
0
 public void Visit(TypeLong type)
 {
     WriteProperty(type);
 }
Пример #4
0
 void Visitor.Visit(TypeLong type)
 {
     text = var.NamePrivate + (isEquals ? " == " : " != ") + another + "." + var.NamePrivate;
 }
Пример #5
0
 void Visitor.Visit(TypeLong type)
 {
     Type = Zeze.Serialize.ByteBuffer.LONG;
 }
Пример #6
0
 void Visitor.Visit(TypeLong type)
 {
     sw.WriteLine(prefix + "if (" + varname + " < 0) return true;");
 }
Пример #7
0
 void Visitor.Visit(TypeLong type)
 {
     ChangeVariableCollectorName = "Zeze.Transaction.ChangeVariableCollectorChanged()";
 }
Пример #8
0
 public void Visit(TypeLong type)
 {
     text = varname + ".GetHashCode()";
 }
Пример #9
0
 public void Visit(TypeLong type)
 {
     name = "long";
 }
Пример #10
0
 public void Visit(TypeLong type)
 {
     Initial();
 }
Пример #11
0
 public void Visit(TypeLong type)
 {
     text = variable.NamePrivate + ".CompareTo(" + another + "." + variable.NamePrivate + ")";
 }
Пример #12
0
 public void Visit(TypeLong type)
 {
     WriteLogValue(type);
 }
Пример #13
0
 void Visitor.Visit(TypeLong type)
 {
     SetDefaultValue("0");
 }
Пример #14
0
 public void Visit(TypeLong type)
 {
     DefineStack(type);
 }
Пример #15
0
 public void Visit(TypeLong type)
 {
     name = "bigint";
 }
Пример #16
0
        public void Visit(TypeLong type)
        {
            long init = variable.Initial.Length > 0 ? long.Parse(variable.Initial) : 0;

            sw.WriteLine(prefix + "this." + variable.Name + " = " + init + "n;");
        }
Пример #17
0
 void Visitor.Visit(TypeLong type)
 {
     Name = "Zeze.ByteBuffer.LONG";
 }
Пример #18
0
 void Visitor.Visit(TypeLong type)
 {
     sw.WriteLine(prefix + $"sb.Append(new string(' ', level * 4)).Append(\"{var}\").Append(\"=\").Append({var}).Append(\"{sep}\").Append(Environment.NewLine);");
 }