File tree Expand file tree Collapse file tree
FastData.Generator.CPlusPlus/Templates
FastData.Generator.Rust/Templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ struct e {
6161<#= Model.GetFieldModifier(false) #>std::array<e, <#= Data.Entries.Length.ToStringInvariant() #>> entries = {
6262<#= FormatHelper.FormatColumns(Data.Entries, (i, x) =>
6363 {
64- string hashPart = Context.StoreHashCode ? $", {x.Hash.ToStringInvariant( )}" : "";
64+ string hashPart = Context.StoreHashCode ? $", {Model.ToValueLabel( x.Hash)}" : "";
6565 string valuePart = Data.ValueCount > 0 ? $", {valueLabels[i]}" : "";
6666 return $"e({Model.ToValueLabel(x.Key)}, {x.Next.ToStringInvariant()}{hashPart}{valuePart})";
6767 }) #>
Original file line number Diff line number Diff line change 3232<#= Model.FieldModifier #>ENTRIES: [E; <#= Data.Entries.Length.ToStringInvariant() #>] = [
3333<#= FormatHelper.FormatColumns(Data.Entries, (i, x) =>
3434 {
35- string hashPart = Context.StoreHashCode ? $"hash_code: {x.Hash}, " : "";
35+ string hashPart = Context.StoreHashCode ? $"hash_code: {Model.ToValueLabel( x.Hash) }, " : "";
3636 string valuePart = Data.ValueCount > 0 ? $", value: {valueLabels[i]}" : "";
37- return $"E {{ {hashPart}next: {x.Next.ToStringInvariant( )}, key: {Model.ToValueLabel(x.Key)}{valuePart} }}";
37+ return $"E {{ {hashPart}next: {Model.ToValueLabel( x.Next)}, key: {Model.ToValueLabel(x.Key)}{valuePart} }}";
3838 }) #>
3939];
4040
You can’t perform that action at this time.
0 commit comments