From cae94ca7f506c8833f29451b38b4e5ca8e19dbcc Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 17 Dec 2024 12:08:47 +0000 Subject: [PATCH] Commit missing snapshots --- ...dule#TestIndexWithEmptyColumns.verified.cs | 34 +++++++++++++++++++ ...Module#TestIndexWithoutColumns.verified.cs | 34 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithEmptyColumns.verified.cs create mode 100644 crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithoutColumns.verified.cs diff --git a/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithEmptyColumns.verified.cs b/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithEmptyColumns.verified.cs new file mode 100644 index 0000000000..0d35229b2d --- /dev/null +++ b/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithEmptyColumns.verified.cs @@ -0,0 +1,34 @@ +//HintName: TestIndexWithEmptyColumns.cs +// +#nullable enable + +partial struct TestIndexWithEmptyColumns : SpacetimeDB.BSATN.IStructuralReadWrite +{ + public void ReadFields(System.IO.BinaryReader reader) { } + + public void WriteFields(System.IO.BinaryWriter writer) { } + + public readonly partial struct BSATN : SpacetimeDB.BSATN.IReadWrite + { + public TestIndexWithEmptyColumns Read(System.IO.BinaryReader reader) => + SpacetimeDB.BSATN.IStructuralReadWrite.Read(reader); + + public void Write(System.IO.BinaryWriter writer, TestIndexWithEmptyColumns value) + { + value.WriteFields(writer); + } + + public SpacetimeDB.BSATN.AlgebraicType.Ref GetAlgebraicType( + SpacetimeDB.BSATN.ITypeRegistrar registrar + ) => + registrar.RegisterType( + _ => new SpacetimeDB.BSATN.AlgebraicType.Product( + new SpacetimeDB.BSATN.AggregateElement[] { } + ) + ); + + SpacetimeDB.BSATN.AlgebraicType SpacetimeDB.BSATN.IReadWrite.GetAlgebraicType( + SpacetimeDB.BSATN.ITypeRegistrar registrar + ) => GetAlgebraicType(registrar); + } +} // TestIndexWithEmptyColumns diff --git a/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithoutColumns.verified.cs b/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithoutColumns.verified.cs new file mode 100644 index 0000000000..738fad2ab9 --- /dev/null +++ b/crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestIndexWithoutColumns.verified.cs @@ -0,0 +1,34 @@ +//HintName: TestIndexWithoutColumns.cs +// +#nullable enable + +partial struct TestIndexWithoutColumns : SpacetimeDB.BSATN.IStructuralReadWrite +{ + public void ReadFields(System.IO.BinaryReader reader) { } + + public void WriteFields(System.IO.BinaryWriter writer) { } + + public readonly partial struct BSATN : SpacetimeDB.BSATN.IReadWrite + { + public TestIndexWithoutColumns Read(System.IO.BinaryReader reader) => + SpacetimeDB.BSATN.IStructuralReadWrite.Read(reader); + + public void Write(System.IO.BinaryWriter writer, TestIndexWithoutColumns value) + { + value.WriteFields(writer); + } + + public SpacetimeDB.BSATN.AlgebraicType.Ref GetAlgebraicType( + SpacetimeDB.BSATN.ITypeRegistrar registrar + ) => + registrar.RegisterType( + _ => new SpacetimeDB.BSATN.AlgebraicType.Product( + new SpacetimeDB.BSATN.AggregateElement[] { } + ) + ); + + SpacetimeDB.BSATN.AlgebraicType SpacetimeDB.BSATN.IReadWrite.GetAlgebraicType( + SpacetimeDB.BSATN.ITypeRegistrar registrar + ) => GetAlgebraicType(registrar); + } +} // TestIndexWithoutColumns