Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lcodes committed Oct 29, 2024
1 parent ec9ec30 commit 405cd7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/cli/src/subcommands/generate/csharp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ fn autogen_csharp_access_funcs_for_struct(
indented_block(output, |output| {
write!(
output,
"internal readonly Dictionary<{csharp_field_type}, {csharp_table_name}> __Cache = new(16);"
"internal readonly Dictionary<{csharp_field_type}, {csharp_table_name}> Cache = new(16);"
);
writeln!(output);

Expand All @@ -420,7 +420,7 @@ fn autogen_csharp_access_funcs_for_struct(
"public {struct_name_pascal_case}? Find({csharp_field_type} value)"
);
indented_block(output, |output| {
writeln!(output, "__Cache.TryGetValue(value, out var r);");
writeln!(output, "Cache.TryGetValue(value, out var r);");
writeln!(output, "return r;");
});
writeln!(output);
Expand Down Expand Up @@ -605,7 +605,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str)
if !constraints[&ColList::new(col.col_pos)].has_unique() {
continue;
}
writeln!(output, "{field_name}.__Cache[value.{field_name}] = value;");
writeln!(output, "{field_name}.Cache[value.{field_name}] = value;");
}
});
writeln!(output);
Expand All @@ -620,7 +620,7 @@ pub fn autogen_csharp_globals(ctx: &GenCtx, items: &[GenItem], namespace: &str)
if !constraints[&ColList::new(col.col_pos)].has_unique() {
continue;
}
writeln!(output, "{field_name}.__Cache.Remove((({table_type})row).{field_name});");
writeln!(output, "{field_name}.Cache.Remove((({table_type})row).{field_name});");
}
});
writeln!(output);
Expand Down

0 comments on commit 405cd7a

Please sign in to comment.