public void Visit(TypeShort type) { if (id >= 0) { sw.WriteLine(prefix + "_os_.WriteInt(Zeze.ByteBuffer.SHORT | " + id + " << Zeze.ByteBuffer.TAG_SHIFT);"); } sw.WriteLine(prefix + "_os_.WriteShort(" + varname + ");"); }
void Visitor.Visit(TypeShort type) { if (id >= 0) { sw.WriteLine(prefix + "case (Zeze.ByteBuffer.SHORT | " + id + " << Zeze.ByteBuffer.TAG_SHIFT): "); sw.WriteLine(prefix + " " + varname + " = " + bufname + ".ReadShort();"); sw.WriteLine(prefix + " break;"); } else { sw.WriteLine(prefix + varname + " = " + bufname + ".ReadShort();"); } }
public void Visit(TypeShort type) { WriteProperty(type); }
void Visitor.Visit(TypeShort type) { text = var.NamePrivate + (isEquals ? " == " : " != ") + another + "." + var.NamePrivate; }
void Visitor.Visit(TypeShort type) { Type = Zeze.Serialize.ByteBuffer.SHORT; }
void Visitor.Visit(TypeShort type) { sw.WriteLine(prefix + "if (" + varname + " < 0) return true;"); }
void Visitor.Visit(TypeShort type) { ChangeVariableCollectorName = "Zeze.Transaction.ChangeVariableCollectorChanged()"; }
public void Visit(TypeShort type) { text = varname + ".GetHashCode()"; }
public void Visit(TypeShort type) { name = "short"; }
public void Visit(TypeShort type) { Initial(); }
public void Visit(TypeShort type) { text = variable.NamePrivate + ".CompareTo(" + another + "." + variable.NamePrivate + ")"; }
public void Visit(TypeShort type) { WriteLogValue(type); }
void Visitor.Visit(TypeShort type) { SetDefaultValue("0"); }
public void Visit(TypeShort type) { DefineStack(type); }
public void Visit(TypeShort type) { name = "number"; }
void Visitor.Visit(TypeShort type) { Name = "Zeze.ByteBuffer.SHORT"; }
void Visitor.Visit(TypeShort type) { sw.WriteLine(prefix + $"sb.Append(new string(' ', level * 4)).Append(\"{var}\").Append(\"=\").Append({var}).Append(\"{sep}\").Append(Environment.NewLine);"); }