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 + ");"); }
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();"); } }
public void Visit(TypeLong type) { WriteProperty(type); }
void Visitor.Visit(TypeLong type) { text = var.NamePrivate + (isEquals ? " == " : " != ") + another + "." + var.NamePrivate; }
void Visitor.Visit(TypeLong type) { Type = Zeze.Serialize.ByteBuffer.LONG; }
void Visitor.Visit(TypeLong type) { sw.WriteLine(prefix + "if (" + varname + " < 0) return true;"); }
void Visitor.Visit(TypeLong type) { ChangeVariableCollectorName = "Zeze.Transaction.ChangeVariableCollectorChanged()"; }
public void Visit(TypeLong type) { text = varname + ".GetHashCode()"; }
public void Visit(TypeLong type) { name = "long"; }
public void Visit(TypeLong type) { Initial(); }
public void Visit(TypeLong type) { text = variable.NamePrivate + ".CompareTo(" + another + "." + variable.NamePrivate + ")"; }
public void Visit(TypeLong type) { WriteLogValue(type); }
void Visitor.Visit(TypeLong type) { SetDefaultValue("0"); }
public void Visit(TypeLong type) { DefineStack(type); }
public void Visit(TypeLong type) { name = "bigint"; }
public void Visit(TypeLong type) { long init = variable.Initial.Length > 0 ? long.Parse(variable.Initial) : 0; sw.WriteLine(prefix + "this." + variable.Name + " = " + init + "n;"); }
void Visitor.Visit(TypeLong type) { Name = "Zeze.ByteBuffer.LONG"; }
void Visitor.Visit(TypeLong type) { sw.WriteLine(prefix + $"sb.Append(new string(' ', level * 4)).Append(\"{var}\").Append(\"=\").Append({var}).Append(\"{sep}\").Append(Environment.NewLine);"); }