diff --git a/Capnp.Net.Runtime/Rpc/rpc.cs b/Capnp.Net.Runtime/Rpc/rpc.cs index 632c62e..d2d8c5f 100644 --- a/Capnp.Net.Runtime/Rpc/rpc.cs +++ b/Capnp.Net.Runtime/Rpc/rpc.cs @@ -1,8 +1,7 @@ -#pragma warning disable CS1591 - using Capnp; using Capnp.Rpc; using System; +using System.CodeDom.Compiler; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading; @@ -10,7 +9,7 @@ using System.Threading.Tasks; namespace Capnp.Rpc { - [TypeId(0x91b79f1f808db032UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x91b79f1f808db032UL)] public class Message : ICapnpSerializable { public const UInt64 typeId = 0x91b79f1f808db032UL; @@ -483,7 +482,7 @@ namespace Capnp.Rpc } } - [TypeId(0xe94ccf8031176ec4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe94ccf8031176ec4UL)] public class Bootstrap : ICapnpSerializable { public const UInt64 typeId = 0xe94ccf8031176ec4UL; @@ -558,7 +557,7 @@ namespace Capnp.Rpc } } - [TypeId(0x836a53ce789d4cd4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x836a53ce789d4cd4UL)] public class Call : ICapnpSerializable { public const UInt64 typeId = 0x836a53ce789d4cd4UL; @@ -707,7 +706,7 @@ namespace Capnp.Rpc } } - [TypeId(0xdae8b0f61aab5f99UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdae8b0f61aab5f99UL)] public class sendResultsTo : ICapnpSerializable { public const UInt64 typeId = 0xdae8b0f61aab5f99UL; @@ -832,7 +831,7 @@ namespace Capnp.Rpc } } - [TypeId(0x9e19b28d3db3573aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9e19b28d3db3573aUL)] public class Return : ICapnpSerializable { public const UInt64 typeId = 0x9e19b28d3db3573aUL; @@ -1072,7 +1071,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd37d2eb2c2f80e63UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd37d2eb2c2f80e63UL)] public class Finish : ICapnpSerializable { public const UInt64 typeId = 0xd37d2eb2c2f80e63UL; @@ -1148,7 +1147,7 @@ namespace Capnp.Rpc } } - [TypeId(0xbbc29655fa89086eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xbbc29655fa89086eUL)] public class Resolve : ICapnpSerializable { public const UInt64 typeId = 0xbbc29655fa89086eUL; @@ -1301,7 +1300,7 @@ namespace Capnp.Rpc } } - [TypeId(0xad1a6c0d7dd07497UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xad1a6c0d7dd07497UL)] public class Release : ICapnpSerializable { public const UInt64 typeId = 0xad1a6c0d7dd07497UL; @@ -1376,7 +1375,7 @@ namespace Capnp.Rpc } } - [TypeId(0xf964368b0fbd3711UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf964368b0fbd3711UL)] public class Disembargo : ICapnpSerializable { public const UInt64 typeId = 0xf964368b0fbd3711UL; @@ -1449,7 +1448,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd562b4df655bdd4dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd562b4df655bdd4dUL)] public class context : ICapnpSerializable { public const UInt64 typeId = 0xd562b4df655bdd4dUL; @@ -1619,7 +1618,7 @@ namespace Capnp.Rpc } } - [TypeId(0x9c6a046bfbc1ac5aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9c6a046bfbc1ac5aUL)] public class Provide : ICapnpSerializable { public const UInt64 typeId = 0x9c6a046bfbc1ac5aUL; @@ -1709,7 +1708,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd4c9b56290554016UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd4c9b56290554016UL)] public class Accept : ICapnpSerializable { public const UInt64 typeId = 0xd4c9b56290554016UL; @@ -1799,7 +1798,7 @@ namespace Capnp.Rpc } } - [TypeId(0xfbe1980490e001afUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfbe1980490e001afUL)] public class Join : ICapnpSerializable { public const UInt64 typeId = 0xfbe1980490e001afUL; @@ -1889,7 +1888,7 @@ namespace Capnp.Rpc } } - [TypeId(0x95bc14545813fbc1UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x95bc14545813fbc1UL)] public class MessageTarget : ICapnpSerializable { public const UInt64 typeId = 0x95bc14545813fbc1UL; @@ -2025,7 +2024,7 @@ namespace Capnp.Rpc } } - [TypeId(0x9a0e61223d96743bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9a0e61223d96743bUL)] public class Payload : ICapnpSerializable { public const UInt64 typeId = 0x9a0e61223d96743bUL; @@ -2100,7 +2099,7 @@ namespace Capnp.Rpc } } - [TypeId(0x8523ddc40b86b8b0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8523ddc40b86b8b0UL)] public class CapDescriptor : ICapnpSerializable { public const UInt64 typeId = 0x8523ddc40b86b8b0UL; @@ -2326,7 +2325,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd800b1d6cd6f1ca0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd800b1d6cd6f1ca0UL)] public class PromisedAnswer : ICapnpSerializable { public const UInt64 typeId = 0xd800b1d6cd6f1ca0UL; @@ -2400,7 +2399,7 @@ namespace Capnp.Rpc } } - [TypeId(0xf316944415569081UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf316944415569081UL)] public class Op : ICapnpSerializable { public const UInt64 typeId = 0xf316944415569081UL; @@ -2517,7 +2516,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd37007fde1f0027dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd37007fde1f0027dUL)] public class ThirdPartyCapDescriptor : ICapnpSerializable { public const UInt64 typeId = 0xd37007fde1f0027dUL; @@ -2592,7 +2591,7 @@ namespace Capnp.Rpc } } - [TypeId(0xd625b7063acf691aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd625b7063acf691aUL)] public class Exception : ICapnpSerializable { public const UInt64 typeId = 0xd625b7063acf691aUL; @@ -2696,7 +2695,7 @@ namespace Capnp.Rpc } } - [TypeId(0xb28c96e23f4cbd58UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb28c96e23f4cbd58UL)] public enum Type : ushort { failed, diff --git a/Capnp.Net.Runtime/SerializerState.cs b/Capnp.Net.Runtime/SerializerState.cs index c89ca61..b5323ee 100644 --- a/Capnp.Net.Runtime/SerializerState.cs +++ b/Capnp.Net.Runtime/SerializerState.cs @@ -282,7 +282,7 @@ namespace Capnp { Allocate(); - var targetCopy = new DynamicSerializerState(MsgBuilder); + var targetCopy = new DynamicSerializerState(MsgBuilder!); Reserializing.DeepCopy(target, targetCopy); target = targetCopy; } diff --git a/CapnpC.CSharp.Generator.Tests/Embedded Resources/test.cs b/CapnpC.CSharp.Generator.Tests/Embedded Resources/test.cs index 2f482e4..919dabb 100644 --- a/CapnpC.CSharp.Generator.Tests/Embedded Resources/test.cs +++ b/CapnpC.CSharp.Generator.Tests/Embedded Resources/test.cs @@ -1,13 +1,14 @@ using Capnp; using Capnp.Rpc; using System; +using System.CodeDom.Compiler; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Capnproto_test.Capnp.Test { - [TypeId(0x9c8e9318b29d9cd3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9c8e9318b29d9cd3UL)] public enum TestEnum : ushort { foo, @@ -20,7 +21,7 @@ namespace Capnproto_test.Capnp.Test garply } - [TypeId(0xa0a8f314b80b63fdUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0a8f314b80b63fdUL)] public class TestAllTypes : ICapnpSerializable { public const UInt64 typeId = 0xa0a8f314b80b63fdUL; @@ -545,7 +546,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xeb3f9ebe98c73cb6UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xeb3f9ebe98c73cb6UL)] public class TestDefaults : ICapnpSerializable { public const UInt64 typeId = 0xeb3f9ebe98c73cb6UL; @@ -1117,7 +1118,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe3da5a2ccd28c0d8UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe3da5a2ccd28c0d8UL)] public class TestAnyPointer : ICapnpSerializable { public const UInt64 typeId = 0xe3da5a2ccd28c0d8UL; @@ -1177,7 +1178,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf49850f63c2bfa59UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf49850f63c2bfa59UL)] public class TestAnyOthers : ICapnpSerializable { public const UInt64 typeId = 0xf49850f63c2bfa59UL; @@ -1267,7 +1268,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa9d5f8efe770022bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa9d5f8efe770022bUL)] public class TestOutOfOrder : ICapnpSerializable { public const UInt64 typeId = 0xa9d5f8efe770022bUL; @@ -1447,7 +1448,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf47697362233ce52UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf47697362233ce52UL)] public class TestUnion : ICapnpSerializable { public const UInt64 typeId = 0xf47697362233ce52UL; @@ -1667,7 +1668,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfc76a82eecb7a718UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfc76a82eecb7a718UL)] public class union0 : ICapnpSerializable { public const UInt64 typeId = 0xfc76a82eecb7a718UL; @@ -2087,7 +2088,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xee0a6b99b7dc7ab2UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xee0a6b99b7dc7ab2UL)] public class union1 : ICapnpSerializable { public const UInt64 typeId = 0xee0a6b99b7dc7ab2UL; @@ -2669,7 +2670,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xafc5fd419f0d66d4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xafc5fd419f0d66d4UL)] public class union2 : ICapnpSerializable { public const UInt64 typeId = 0xafc5fd419f0d66d4UL; @@ -2884,7 +2885,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa2fb022ec7f30053UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa2fb022ec7f30053UL)] public class union3 : ICapnpSerializable { public const UInt64 typeId = 0xa2fb022ec7f30053UL; @@ -3100,7 +3101,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9e2e784c915329b6UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9e2e784c915329b6UL)] public class TestUnnamedUnion : ICapnpSerializable { public const UInt64 typeId = 0x9e2e784c915329b6UL; @@ -3281,7 +3282,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x89a9494f1b900f22UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x89a9494f1b900f22UL)] public class TestUnionInUnion : ICapnpSerializable { public const UInt64 typeId = 0x89a9494f1b900f22UL; @@ -3339,7 +3340,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd005f6c63707670cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd005f6c63707670cUL)] public class outer : ICapnpSerializable { public const UInt64 typeId = 0xd005f6c63707670cUL; @@ -3471,7 +3472,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xff9ce111c6f8e5dbUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xff9ce111c6f8e5dbUL)] public class inner : ICapnpSerializable { public const UInt64 typeId = 0xff9ce111c6f8e5dbUL; @@ -3607,7 +3608,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdc841556134c3103UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdc841556134c3103UL)] public class TestGroups : ICapnpSerializable { public const UInt64 typeId = 0xdc841556134c3103UL; @@ -3665,7 +3666,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe22ae74ff9113268UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe22ae74ff9113268UL)] public class groups : ICapnpSerializable { public const UInt64 typeId = 0xe22ae74ff9113268UL; @@ -3822,7 +3823,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf5fcba89c0c1196fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf5fcba89c0c1196fUL)] public class foo : ICapnpSerializable { public const UInt64 typeId = 0xf5fcba89c0c1196fUL; @@ -3911,7 +3912,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf0fa30304066a4b3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf0fa30304066a4b3UL)] public class baz : ICapnpSerializable { public const UInt64 typeId = 0xf0fa30304066a4b3UL; @@ -4000,7 +4001,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb727c0d0091a001dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb727c0d0091a001dUL)] public class bar : ICapnpSerializable { public const UInt64 typeId = 0xb727c0d0091a001dUL; @@ -4091,7 +4092,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf77ed6f7454eec40UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf77ed6f7454eec40UL)] public class TestInterleavedGroups : ICapnpSerializable { public const UInt64 typeId = 0xf77ed6f7454eec40UL; @@ -4163,7 +4164,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc7485a3516c7d3c8UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc7485a3516c7d3c8UL)] public class group1 : ICapnpSerializable { public const UInt64 typeId = 0xc7485a3516c7d3c8UL; @@ -4368,7 +4369,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdb0afd413f4a313aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdb0afd413f4a313aUL)] public class corge : ICapnpSerializable { public const UInt64 typeId = 0xdb0afd413f4a313aUL; @@ -4473,7 +4474,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xcc85a335569990e9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xcc85a335569990e9UL)] public class group2 : ICapnpSerializable { public const UInt64 typeId = 0xcc85a335569990e9UL; @@ -4678,7 +4679,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa017f0366827ee37UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa017f0366827ee37UL)] public class corge : ICapnpSerializable { public const UInt64 typeId = 0xa017f0366827ee37UL; @@ -4784,7 +4785,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x94f7e0b103b4b718UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x94f7e0b103b4b718UL)] public class TestUnionDefaults : ICapnpSerializable { public const UInt64 typeId = 0x94f7e0b103b4b718UL; @@ -4905,7 +4906,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd9f2b5941a343bcdUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd9f2b5941a343bcdUL)] public class TestNestedTypes : ICapnpSerializable { public const UInt64 typeId = 0xd9f2b5941a343bcdUL; @@ -4996,14 +4997,14 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb651d2fba42056d4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb651d2fba42056d4UL)] public enum NestedEnum : ushort { foo, bar } - [TypeId(0x82cd03a53b29d76bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x82cd03a53b29d76bUL)] public class NestedStruct : ICapnpSerializable { public const UInt64 typeId = 0x82cd03a53b29d76bUL; @@ -5079,7 +5080,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xcfa0d546993a3df3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xcfa0d546993a3df3UL)] public enum NestedEnum : ushort { baz, @@ -5089,7 +5090,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe78aac389e77b065UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe78aac389e77b065UL)] public class TestUsing : ICapnpSerializable { public const UInt64 typeId = 0xe78aac389e77b065UL; @@ -5166,7 +5167,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe41885c94393277eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe41885c94393277eUL)] public class TestLists : ICapnpSerializable { public const UInt64 typeId = 0xe41885c94393277eUL; @@ -5360,7 +5361,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8412c03b75b2cfeeUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8412c03b75b2cfeeUL)] public class Struct0 : ICapnpSerializable { public const UInt64 typeId = 0x8412c03b75b2cfeeUL; @@ -5405,7 +5406,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe0fe5870b141ad69UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe0fe5870b141ad69UL)] public class Struct1 : ICapnpSerializable { public const UInt64 typeId = 0xe0fe5870b141ad69UL; @@ -5465,7 +5466,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa6411a353090145bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa6411a353090145bUL)] public class Struct8 : ICapnpSerializable { public const UInt64 typeId = 0xa6411a353090145bUL; @@ -5525,7 +5526,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa8abf7a82928986cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa8abf7a82928986cUL)] public class Struct16 : ICapnpSerializable { public const UInt64 typeId = 0xa8abf7a82928986cUL; @@ -5585,7 +5586,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xad7beedc4ed30742UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xad7beedc4ed30742UL)] public class Struct32 : ICapnpSerializable { public const UInt64 typeId = 0xad7beedc4ed30742UL; @@ -5645,7 +5646,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xef9a34f2ff7cc646UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xef9a34f2ff7cc646UL)] public class Struct64 : ICapnpSerializable { public const UInt64 typeId = 0xef9a34f2ff7cc646UL; @@ -5705,7 +5706,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc6abf1b0329e6227UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc6abf1b0329e6227UL)] public class StructP : ICapnpSerializable { public const UInt64 typeId = 0xc6abf1b0329e6227UL; @@ -5765,7 +5766,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x943a234ca336b16aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x943a234ca336b16aUL)] public class Struct0c : ICapnpSerializable { public const UInt64 typeId = 0x943a234ca336b16aUL; @@ -5825,7 +5826,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8991bc0e74a594cdUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8991bc0e74a594cdUL)] public class Struct1c : ICapnpSerializable { public const UInt64 typeId = 0x8991bc0e74a594cdUL; @@ -5900,7 +5901,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xed267416528c7a24UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xed267416528c7a24UL)] public class Struct8c : ICapnpSerializable { public const UInt64 typeId = 0xed267416528c7a24UL; @@ -5975,7 +5976,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9978837b037d58e6UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9978837b037d58e6UL)] public class Struct16c : ICapnpSerializable { public const UInt64 typeId = 0x9978837b037d58e6UL; @@ -6050,7 +6051,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xed5fa940f54a7904UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xed5fa940f54a7904UL)] public class Struct32c : ICapnpSerializable { public const UInt64 typeId = 0xed5fa940f54a7904UL; @@ -6125,7 +6126,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xbc743778f2597c7dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xbc743778f2597c7dUL)] public class Struct64c : ICapnpSerializable { public const UInt64 typeId = 0xbc743778f2597c7dUL; @@ -6200,7 +6201,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc2e364a40182013dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc2e364a40182013dUL)] public class StructPc : ICapnpSerializable { public const UInt64 typeId = 0xc2e364a40182013dUL; @@ -6276,7 +6277,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x92fc29a80f3ddd5cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x92fc29a80f3ddd5cUL)] public class TestFieldZeroIsBit : ICapnpSerializable { public const UInt64 typeId = 0x92fc29a80f3ddd5cUL; @@ -6368,7 +6369,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa851ad32cbc2ffeaUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa851ad32cbc2ffeaUL)] public class TestListDefaults : ICapnpSerializable { public const UInt64 typeId = 0xa851ad32cbc2ffeaUL; @@ -6452,7 +6453,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa76e3c9bb7fd56d3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa76e3c9bb7fd56d3UL)] public class TestLateUnion : ICapnpSerializable { public const UInt64 typeId = 0xa76e3c9bb7fd56d3UL; @@ -6569,7 +6570,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x807280a2901aa079UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x807280a2901aa079UL)] public class theUnion : ICapnpSerializable { public const UInt64 typeId = 0x807280a2901aa079UL; @@ -6730,7 +6731,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc1973984dee98e3aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc1973984dee98e3aUL)] public class anotherUnion : ICapnpSerializable { public const UInt64 typeId = 0xc1973984dee98e3aUL; @@ -6892,7 +6893,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x95b30dd14e01dda8UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x95b30dd14e01dda8UL)] public class TestOldVersion : ICapnpSerializable { public const UInt64 typeId = 0x95b30dd14e01dda8UL; @@ -6982,7 +6983,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8ed75a7469f04ce3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8ed75a7469f04ce3UL)] public class TestNewVersion : ICapnpSerializable { public const UInt64 typeId = 0x8ed75a7469f04ce3UL; @@ -7104,7 +7105,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xbd5fe16e5170c492UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xbd5fe16e5170c492UL)] public class TestOldUnionVersion : ICapnpSerializable { public const UInt64 typeId = 0xbd5fe16e5170c492UL; @@ -7220,7 +7221,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc7e4c513a975492bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc7e4c513a975492bUL)] public class TestNewUnionVersion : ICapnpSerializable { public const UInt64 typeId = 0xc7e4c513a975492bUL; @@ -7353,7 +7354,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x86232c1de4513e84UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x86232c1de4513e84UL)] public class a : ICapnpSerializable { public const UInt64 typeId = 0x86232c1de4513e84UL; @@ -7469,7 +7470,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfaf781ef89a00e39UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfaf781ef89a00e39UL)] public class TestStructUnion : ICapnpSerializable { public const UInt64 typeId = 0xfaf781ef89a00e39UL; @@ -7527,7 +7528,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x992edc677bef5a3cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x992edc677bef5a3cUL)] public class un : ICapnpSerializable { public const UInt64 typeId = 0x992edc677bef5a3cUL; @@ -7661,7 +7662,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9daec9823f171085UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9daec9823f171085UL)] public class SomeStruct : ICapnpSerializable { public const UInt64 typeId = 0x9daec9823f171085UL; @@ -7737,7 +7738,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdec497819d097c3cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdec497819d097c3cUL)] public class TestPrintInlineStructs : ICapnpSerializable { public const UInt64 typeId = 0xdec497819d097c3cUL; @@ -7811,7 +7812,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8e4936003708dac2UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8e4936003708dac2UL)] public class InlineStruct : ICapnpSerializable { public const UInt64 typeId = 0x8e4936003708dac2UL; @@ -7887,7 +7888,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x91afd4a864dbb030UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x91afd4a864dbb030UL)] public class TestWholeFloatDefault : ICapnpSerializable { public const UInt64 typeId = 0x91afd4a864dbb030UL; @@ -7964,7 +7965,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9d5b8cd8de9922ebUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9d5b8cd8de9922ebUL)] public class TestGenerics : ICapnpSerializable where TFoo : class where TBar : class { public const UInt64 typeId = 0x9d5b8cd8de9922ebUL; @@ -8124,7 +8125,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb46a779beaf3384eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb46a779beaf3384eUL)] public class ug : ICapnpSerializable { public const UInt64 typeId = 0xb46a779beaf3384eUL; @@ -8183,7 +8184,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf6a841117e19ac73UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf6a841117e19ac73UL)] public class Inner : ICapnpSerializable { public const UInt64 typeId = 0xf6a841117e19ac73UL; @@ -8258,7 +8259,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa9ab42b118d6d435UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa9ab42b118d6d435UL)] public class Inner2 : ICapnpSerializable where TBaz : class { public const UInt64 typeId = 0xa9ab42b118d6d435UL; @@ -8362,7 +8363,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb6a0829c762b06f3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb6a0829c762b06f3UL)] public class DeepNest : ICapnpSerializable where TQux : class { public const UInt64 typeId = 0xb6a0829c762b06f3UL; @@ -8466,7 +8467,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8839ed86c9794287UL), Proxy(typeof(DeepNestInterface_Proxy<>)), Skeleton(typeof(DeepNestInterface_Skeleton<>))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8839ed86c9794287UL), Proxy(typeof(DeepNestInterface_Proxy<>)), Skeleton(typeof(DeepNestInterface_Skeleton<>))] public interface IDeepNestInterface : IDisposable where TQuux : class { Task Call(CancellationToken cancellationToken_ = default); @@ -8510,7 +8511,7 @@ namespace Capnproto_test.Capnp.Test public static class DeepNestInterface where TQuux : class { - [TypeId(0xb84eecc799437049UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb84eecc799437049UL)] public class Params_Call : ICapnpSerializable { public const UInt64 typeId = 0xb84eecc799437049UL; @@ -8555,7 +8556,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe080f0fc54614f6fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe080f0fc54614f6fUL)] public class Result_Call : ICapnpSerializable { public const UInt64 typeId = 0xe080f0fc54614f6fUL; @@ -8603,7 +8604,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc9e749e8dd54da5cUL), Proxy(typeof(Interface_Proxy<>)), Skeleton(typeof(Interface_Skeleton<>))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc9e749e8dd54da5cUL), Proxy(typeof(Interface_Proxy<>)), Skeleton(typeof(Interface_Skeleton<>))] public interface IInterface : IDisposable where TQux : class { Task<(TQux, Capnproto_test.Capnp.Test.TestGenerics)> Call(Capnproto_test.Capnp.Test.TestGenerics.Inner2 arg_, CancellationToken cancellationToken_ = default); @@ -8656,7 +8657,7 @@ namespace Capnproto_test.Capnp.Test public static class Interface where TQux : class { - [TypeId(0xa5b46224e33581adUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5b46224e33581adUL)] public class Result_Call : ICapnpSerializable { public const UInt64 typeId = 0xa5b46224e33581adUL; @@ -8732,7 +8733,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8e656edfb45ba6cfUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8e656edfb45ba6cfUL)] public class UseAliases : ICapnpSerializable { public const UInt64 typeId = 0x8e656edfb45ba6cfUL; @@ -8868,7 +8869,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa9b2b1f52dde845dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa9b2b1f52dde845dUL)] public class TestGenericsWrapper : ICapnpSerializable where TFoo : class where TBar : class { public const UInt64 typeId = 0xa9b2b1f52dde845dUL; @@ -8928,7 +8929,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf28f83667a557a04UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf28f83667a557a04UL)] public class TestGenericsWrapper2 : ICapnpSerializable { public const UInt64 typeId = 0xf28f83667a557a04UL; @@ -8988,7 +8989,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8b9717a3f8d85a9aUL), Proxy(typeof(TestImplicitMethodParams_Proxy)), Skeleton(typeof(TestImplicitMethodParams_Skeleton))] public interface ITestImplicitMethodParams : IDisposable { Task> Call(TT Foo, TU Bar, CancellationToken cancellationToken_ = default) @@ -9045,7 +9046,7 @@ namespace Capnproto_test.Capnp.Test public static class TestImplicitMethodParams { - [TypeId(0xf83f8caf54bdc486UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf83f8caf54bdc486UL)] public class Params_Call : ICapnpSerializable where TT : class where TU : class { public const UInt64 typeId = 0xf83f8caf54bdc486UL; @@ -9121,7 +9122,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdf9ccdeb81a704c9UL), Proxy(typeof(TestImplicitMethodParamsInGeneric_Proxy<>)), Skeleton(typeof(TestImplicitMethodParamsInGeneric_Skeleton<>))] public interface ITestImplicitMethodParamsInGeneric : IDisposable where TV : class { Task> Call(TT Foo, TU Bar, CancellationToken cancellationToken_ = default) @@ -9179,7 +9180,7 @@ namespace Capnproto_test.Capnp.Test public static class TestImplicitMethodParamsInGeneric where TV : class { - [TypeId(0x9aab8e25c808d71eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9aab8e25c808d71eUL)] public class Params_Call : ICapnpSerializable where TT : class where TU : class { public const UInt64 typeId = 0x9aab8e25c808d71eUL; @@ -9255,7 +9256,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa54870440e919063UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa54870440e919063UL)] public class TestGenericsUnion : ICapnpSerializable where TFoo : class where TBar : class { public const UInt64 typeId = 0xa54870440e919063UL; @@ -9390,7 +9391,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9427b2a71030338fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9427b2a71030338fUL)] public class TestUseGenerics : ICapnpSerializable { public const UInt64 typeId = 0x9427b2a71030338fUL; @@ -9841,7 +9842,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc5598844441096dcUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc5598844441096dcUL)] public class TestEmptyStruct : ICapnpSerializable { public const UInt64 typeId = 0xc5598844441096dcUL; @@ -9886,7 +9887,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xabed745cd8c92095UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xabed745cd8c92095UL)] public class TestConstants : ICapnpSerializable { public const UInt64 typeId = 0xabed745cd8c92095UL; @@ -9931,7 +9932,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xddc280dbee9c99b3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc280dbee9c99b3UL)] public class TestAnyPointerConstants : ICapnpSerializable { public const UInt64 typeId = 0xddc280dbee9c99b3UL; @@ -10036,7 +10037,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x88eb12a0e0af92b2UL), Proxy(typeof(TestInterface_Proxy)), Skeleton(typeof(TestInterface_Skeleton))] public interface ITestInterface : IDisposable { Task Foo(uint I, bool J, CancellationToken cancellationToken_ = default); @@ -10135,7 +10136,7 @@ namespace Capnproto_test.Capnp.Test public static class TestInterface { - [TypeId(0xb874edc0d559b391UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb874edc0d559b391UL)] public class Params_Foo : ICapnpSerializable { public const UInt64 typeId = 0xb874edc0d559b391UL; @@ -10210,7 +10211,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb04fcaddab714ba4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb04fcaddab714ba4UL)] public class Result_Foo : ICapnpSerializable { public const UInt64 typeId = 0xb04fcaddab714ba4UL; @@ -10270,7 +10271,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd044893357b42568UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd044893357b42568UL)] public class Params_Bar : ICapnpSerializable { public const UInt64 typeId = 0xd044893357b42568UL; @@ -10315,7 +10316,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9bf141df4247d52fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9bf141df4247d52fUL)] public class Result_Bar : ICapnpSerializable { public const UInt64 typeId = 0x9bf141df4247d52fUL; @@ -10360,7 +10361,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd9ac8abb2a91cfbcUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd9ac8abb2a91cfbcUL)] public class Params_Baz : ICapnpSerializable { public const UInt64 typeId = 0xd9ac8abb2a91cfbcUL; @@ -10420,7 +10421,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9b99d14f2f375b2dUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9b99d14f2f375b2dUL)] public class Result_Baz : ICapnpSerializable { public const UInt64 typeId = 0x9b99d14f2f375b2dUL; @@ -10466,7 +10467,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe4e9bac98670b748UL), Proxy(typeof(TestExtends_Proxy)), Skeleton(typeof(TestExtends_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe4e9bac98670b748UL), Proxy(typeof(TestExtends_Proxy)), Skeleton(typeof(TestExtends_Skeleton))] public interface ITestExtends : Capnproto_test.Capnp.Test.ITestInterface { Task Qux(CancellationToken cancellationToken_ = default); @@ -10599,7 +10600,7 @@ namespace Capnproto_test.Capnp.Test public static class TestExtends { - [TypeId(0x83a4bc5471363f17UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x83a4bc5471363f17UL)] public class Params_Qux : ICapnpSerializable { public const UInt64 typeId = 0x83a4bc5471363f17UL; @@ -10644,7 +10645,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8e4b3d1a3e2753ddUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8e4b3d1a3e2753ddUL)] public class Result_Qux : ICapnpSerializable { public const UInt64 typeId = 0x8e4b3d1a3e2753ddUL; @@ -10689,7 +10690,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xacf67532a7e7bad9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xacf67532a7e7bad9UL)] public class Result_Corge : ICapnpSerializable { public const UInt64 typeId = 0xacf67532a7e7bad9UL; @@ -10734,7 +10735,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf3b834e851ea8af6UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf3b834e851ea8af6UL)] public class Params_Grault : ICapnpSerializable { public const UInt64 typeId = 0xf3b834e851ea8af6UL; @@ -10780,7 +10781,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x98d7e0ef61488783UL), Proxy(typeof(TestExtends2_Proxy)), Skeleton(typeof(TestExtends2_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x98d7e0ef61488783UL), Proxy(typeof(TestExtends2_Proxy)), Skeleton(typeof(TestExtends2_Skeleton))] public interface ITestExtends2 : Capnproto_test.Capnp.Test.ITestExtends { } @@ -10874,7 +10875,7 @@ namespace Capnproto_test.Capnp.Test public override ulong InterfaceId => 11013518732491786115UL; } - [TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa5a404caa61d4cd0UL), Proxy(typeof(TestPipeline_Proxy)), Skeleton(typeof(TestPipeline_Skeleton))] public interface ITestPipeline : IDisposable { Task<(string, Capnproto_test.Capnp.Test.TestPipeline.Box)> GetCap(uint N, Capnproto_test.Capnp.Test.ITestInterface InCap, CancellationToken cancellationToken_ = default); @@ -10990,7 +10991,7 @@ namespace Capnproto_test.Capnp.Test public static class TestPipeline { - [TypeId(0xb0b29e51db0e26b1UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb0b29e51db0e26b1UL)] public class Box : ICapnpSerializable { public const UInt64 typeId = 0xb0b29e51db0e26b1UL; @@ -11050,7 +11051,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9442ad5a1d2c8acbUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9442ad5a1d2c8acbUL)] public class AnyBox : ICapnpSerializable { public const UInt64 typeId = 0x9442ad5a1d2c8acbUL; @@ -11110,7 +11111,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc7e8df5096257034UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc7e8df5096257034UL)] public class Params_GetCap : ICapnpSerializable { public const UInt64 typeId = 0xc7e8df5096257034UL; @@ -11185,7 +11186,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb2442a9e0ba28fdfUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb2442a9e0ba28fdfUL)] public class Result_GetCap : ICapnpSerializable { public const UInt64 typeId = 0xb2442a9e0ba28fdfUL; @@ -11260,7 +11261,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa604ee63cf37819fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa604ee63cf37819fUL)] public class Params_TestPointers : ICapnpSerializable { public const UInt64 typeId = 0xa604ee63cf37819fUL; @@ -11350,7 +11351,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8eda54756c6070d6UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8eda54756c6070d6UL)] public class Result_TestPointers : ICapnpSerializable { public const UInt64 typeId = 0x8eda54756c6070d6UL; @@ -11395,7 +11396,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf8e36b53ab093d4eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf8e36b53ab093d4eUL)] public class Params_GetAnyCap : ICapnpSerializable { public const UInt64 typeId = 0xf8e36b53ab093d4eUL; @@ -11470,7 +11471,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xbf44b4c94c26ef79UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xbf44b4c94c26ef79UL)] public class Result_GetAnyCap : ICapnpSerializable { public const UInt64 typeId = 0xbf44b4c94c26ef79UL; @@ -11546,7 +11547,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa0e77035bdff0051UL), Proxy(typeof(TestCallOrder_Proxy)), Skeleton(typeof(TestCallOrder_Skeleton))] public interface ITestCallOrder : IDisposable { Task GetCallSequence(uint Expected, CancellationToken cancellationToken_ = default); @@ -11596,7 +11597,7 @@ namespace Capnproto_test.Capnp.Test public static class TestCallOrder { - [TypeId(0x8f1e8cd56ceb74dcUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8f1e8cd56ceb74dcUL)] public class Params_GetCallSequence : ICapnpSerializable { public const UInt64 typeId = 0x8f1e8cd56ceb74dcUL; @@ -11656,7 +11657,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdedbb6bf3810eab7UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdedbb6bf3810eab7UL)] public class Result_GetCallSequence : ICapnpSerializable { public const UInt64 typeId = 0xdedbb6bf3810eab7UL; @@ -11717,7 +11718,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddd699207eb8e23bUL), Proxy(typeof(TestTailCallee_Proxy)), Skeleton(typeof(TestTailCallee_Skeleton))] public interface ITestTailCallee : IDisposable { Task Foo(int I, string T, CancellationToken cancellationToken_ = default); @@ -11771,7 +11772,7 @@ namespace Capnproto_test.Capnp.Test public static class TestTailCallee { - [TypeId(0xa9ed2e5a9fd53d19UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa9ed2e5a9fd53d19UL)] public class TailResult : ICapnpSerializable { public const UInt64 typeId = 0xa9ed2e5a9fd53d19UL; @@ -11861,7 +11862,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc5e1efc325614957UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc5e1efc325614957UL)] public class Params_Foo : ICapnpSerializable { public const UInt64 typeId = 0xc5e1efc325614957UL; @@ -11937,7 +11938,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x870bf40110ce3035UL), Proxy(typeof(TestTailCaller_Proxy)), Skeleton(typeof(TestTailCaller_Skeleton))] public interface ITestTailCaller : IDisposable { Task Foo(int I, Capnproto_test.Capnp.Test.ITestTailCallee Callee, CancellationToken cancellationToken_ = default); @@ -11991,7 +11992,7 @@ namespace Capnproto_test.Capnp.Test public static class TestTailCaller { - [TypeId(0xb07a279515dc8ac5UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb07a279515dc8ac5UL)] public class Params_Foo : ICapnpSerializable { public const UInt64 typeId = 0xb07a279515dc8ac5UL; @@ -12067,7 +12068,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa38e5efe41e53a15UL), Proxy(typeof(TestHandle_Proxy)), Skeleton(typeof(TestHandle_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa38e5efe41e53a15UL), Proxy(typeof(TestHandle_Proxy)), Skeleton(typeof(TestHandle_Skeleton))] public interface ITestHandle : IDisposable { } @@ -12086,7 +12087,7 @@ namespace Capnproto_test.Capnp.Test public override ulong InterfaceId => 11785461720995412501UL; } - [TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xddc70bf9784133cfUL), Proxy(typeof(TestMoreStuff_Proxy)), Skeleton(typeof(TestMoreStuff_Skeleton))] public interface ITestMoreStuff : Capnproto_test.Capnp.Test.ITestCallOrder { Task CallFoo(Capnproto_test.Capnp.Test.ITestInterface Cap, CancellationToken cancellationToken_ = default); @@ -12523,7 +12524,7 @@ namespace Capnproto_test.Capnp.Test public static class TestMoreStuff { - [TypeId(0x931ba418da60f6e4UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x931ba418da60f6e4UL)] public class Params_CallFoo : ICapnpSerializable { public const UInt64 typeId = 0x931ba418da60f6e4UL; @@ -12583,7 +12584,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9a28970beccecdd0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9a28970beccecdd0UL)] public class Result_CallFoo : ICapnpSerializable { public const UInt64 typeId = 0x9a28970beccecdd0UL; @@ -12643,7 +12644,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfabc700c2ebe6378UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfabc700c2ebe6378UL)] public class Params_CallFooWhenResolved : ICapnpSerializable { public const UInt64 typeId = 0xfabc700c2ebe6378UL; @@ -12703,7 +12704,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa54ce1e9aa822f90UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa54ce1e9aa822f90UL)] public class Result_CallFooWhenResolved : ICapnpSerializable { public const UInt64 typeId = 0xa54ce1e9aa822f90UL; @@ -12763,7 +12764,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x94fe60465c95182bUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x94fe60465c95182bUL)] public class Params_NeverReturn : ICapnpSerializable { public const UInt64 typeId = 0x94fe60465c95182bUL; @@ -12823,7 +12824,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdef4e5fa6999c5dcUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdef4e5fa6999c5dcUL)] public class Result_NeverReturn : ICapnpSerializable { public const UInt64 typeId = 0xdef4e5fa6999c5dcUL; @@ -12883,7 +12884,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfe7c8fbb769d8e58UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfe7c8fbb769d8e58UL)] public class Params_Hold : ICapnpSerializable { public const UInt64 typeId = 0xfe7c8fbb769d8e58UL; @@ -12943,7 +12944,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf839fb1374d003c9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf839fb1374d003c9UL)] public class Result_Hold : ICapnpSerializable { public const UInt64 typeId = 0xf839fb1374d003c9UL; @@ -12988,7 +12989,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf8c5e5ef1edf83beUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf8c5e5ef1edf83beUL)] public class Params_CallHeld : ICapnpSerializable { public const UInt64 typeId = 0xf8c5e5ef1edf83beUL; @@ -13033,7 +13034,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe59935f160ac7578UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe59935f160ac7578UL)] public class Result_CallHeld : ICapnpSerializable { public const UInt64 typeId = 0xe59935f160ac7578UL; @@ -13093,7 +13094,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfeffc025fce317e3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfeffc025fce317e3UL)] public class Params_GetHeld : ICapnpSerializable { public const UInt64 typeId = 0xfeffc025fce317e3UL; @@ -13138,7 +13139,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xef4e146185af67ceUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xef4e146185af67ceUL)] public class Result_GetHeld : ICapnpSerializable { public const UInt64 typeId = 0xef4e146185af67ceUL; @@ -13198,7 +13199,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc07526f7e2e533b9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07526f7e2e533b9UL)] public class Params_Echo : ICapnpSerializable { public const UInt64 typeId = 0xc07526f7e2e533b9UL; @@ -13258,7 +13259,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa6224536593d5b92UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa6224536593d5b92UL)] public class Result_Echo : ICapnpSerializable { public const UInt64 typeId = 0xa6224536593d5b92UL; @@ -13318,7 +13319,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa1cc32d87f3edeb1UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa1cc32d87f3edeb1UL)] public class Params_ExpectCancel : ICapnpSerializable { public const UInt64 typeId = 0xa1cc32d87f3edeb1UL; @@ -13378,7 +13379,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8a3eba1758c0916eUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8a3eba1758c0916eUL)] public class Result_ExpectCancel : ICapnpSerializable { public const UInt64 typeId = 0x8a3eba1758c0916eUL; @@ -13423,7 +13424,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x99160a25fa50fbf1UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x99160a25fa50fbf1UL)] public class Params_MethodWithDefaults : ICapnpSerializable { public const UInt64 typeId = 0x99160a25fa50fbf1UL; @@ -13515,7 +13516,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9c7e066f845a6c56UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9c7e066f845a6c56UL)] public class Result_MethodWithDefaults : ICapnpSerializable { public const UInt64 typeId = 0x9c7e066f845a6c56UL; @@ -13591,7 +13592,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xead024a301a092a1UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xead024a301a092a1UL)] public class Params_GetHandle : ICapnpSerializable { public const UInt64 typeId = 0xead024a301a092a1UL; @@ -13636,7 +13637,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc3490d75420a1fe8UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc3490d75420a1fe8UL)] public class Result_GetHandle : ICapnpSerializable { public const UInt64 typeId = 0xc3490d75420a1fe8UL; @@ -13696,7 +13697,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd8493f0e175d61f2UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd8493f0e175d61f2UL)] public class Params_GetNull : ICapnpSerializable { public const UInt64 typeId = 0xd8493f0e175d61f2UL; @@ -13741,7 +13742,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe6955d8ef1023671UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe6955d8ef1023671UL)] public class Result_GetNull : ICapnpSerializable { public const UInt64 typeId = 0xe6955d8ef1023671UL; @@ -13801,7 +13802,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x805df436f55dd07aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x805df436f55dd07aUL)] public class Params_GetEnormousString : ICapnpSerializable { public const UInt64 typeId = 0x805df436f55dd07aUL; @@ -13846,7 +13847,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x860e7512dc3925b0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x860e7512dc3925b0UL)] public class Result_GetEnormousString : ICapnpSerializable { public const UInt64 typeId = 0x860e7512dc3925b0UL; @@ -13906,7 +13907,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xfb92899aeb0ee74fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xfb92899aeb0ee74fUL)] public class Params_MethodWithNullDefault : ICapnpSerializable { public const UInt64 typeId = 0xfb92899aeb0ee74fUL; @@ -13981,7 +13982,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8467348247305cf7UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8467348247305cf7UL)] public class Result_MethodWithNullDefault : ICapnpSerializable { public const UInt64 typeId = 0x8467348247305cf7UL; @@ -14027,7 +14028,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc07d8dcd80a69c0cUL), Proxy(typeof(TestMembrane_Proxy)), Skeleton(typeof(TestMembrane_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc07d8dcd80a69c0cUL), Proxy(typeof(TestMembrane_Proxy)), Skeleton(typeof(TestMembrane_Skeleton))] public interface ITestMembrane : IDisposable { Task MakeThing(CancellationToken cancellationToken_ = default); @@ -14201,7 +14202,7 @@ namespace Capnproto_test.Capnp.Test public static class TestMembrane { - [TypeId(0x9352e4e41f173917UL), Proxy(typeof(Thing_Proxy)), Skeleton(typeof(Thing_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9352e4e41f173917UL), Proxy(typeof(Thing_Proxy)), Skeleton(typeof(Thing_Skeleton))] public interface IThing : IDisposable { Task PassThrough(CancellationToken cancellationToken_ = default); @@ -14278,7 +14279,7 @@ namespace Capnproto_test.Capnp.Test public static class Thing { - [TypeId(0xff9bdcd05085d786UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xff9bdcd05085d786UL)] public class Params_PassThrough : ICapnpSerializable { public const UInt64 typeId = 0xff9bdcd05085d786UL; @@ -14323,7 +14324,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xee94bed3615ee745UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xee94bed3615ee745UL)] public class Params_Intercept : ICapnpSerializable { public const UInt64 typeId = 0xee94bed3615ee745UL; @@ -14369,7 +14370,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb0c6163faf291965UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb0c6163faf291965UL)] public class Result : ICapnpSerializable { public const UInt64 typeId = 0xb0c6163faf291965UL; @@ -14429,7 +14430,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd8ac2acc3ece6556UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd8ac2acc3ece6556UL)] public class Params_MakeThing : ICapnpSerializable { public const UInt64 typeId = 0xd8ac2acc3ece6556UL; @@ -14474,7 +14475,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe5d4904814ccbf29UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe5d4904814ccbf29UL)] public class Result_MakeThing : ICapnpSerializable { public const UInt64 typeId = 0xe5d4904814ccbf29UL; @@ -14534,7 +14535,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x945d9f634a6a29daUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x945d9f634a6a29daUL)] public class Params_CallPassThrough : ICapnpSerializable { public const UInt64 typeId = 0x945d9f634a6a29daUL; @@ -14609,7 +14610,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8749aac3375c5c71UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8749aac3375c5c71UL)] public class Params_CallIntercept : ICapnpSerializable { public const UInt64 typeId = 0x8749aac3375c5c71UL; @@ -14684,7 +14685,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x869a1b7ab34b42c9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x869a1b7ab34b42c9UL)] public class Params_Loopback : ICapnpSerializable { public const UInt64 typeId = 0x869a1b7ab34b42c9UL; @@ -14744,7 +14745,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xecd19398fd88ab5cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xecd19398fd88ab5cUL)] public class Result_Loopback : ICapnpSerializable { public const UInt64 typeId = 0xecd19398fd88ab5cUL; @@ -14804,7 +14805,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x8f6bb30cc62917ffUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8f6bb30cc62917ffUL)] public class Params_WaitForever : ICapnpSerializable { public const UInt64 typeId = 0x8f6bb30cc62917ffUL; @@ -14849,7 +14850,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc343a4907280be01UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc343a4907280be01UL)] public class Result_WaitForever : ICapnpSerializable { public const UInt64 typeId = 0xc343a4907280be01UL; @@ -14895,7 +14896,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x949449ad7c11fa5cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x949449ad7c11fa5cUL)] public class TestContainMembrane : ICapnpSerializable { public const UInt64 typeId = 0x949449ad7c11fa5cUL; @@ -14970,7 +14971,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdd2b66a791a279f0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdd2b66a791a279f0UL)] public class TestTransferCap : ICapnpSerializable { public const UInt64 typeId = 0xdd2b66a791a279f0UL; @@ -15029,7 +15030,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc7263e8f88844abcUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc7263e8f88844abcUL)] public class Element : ICapnpSerializable { public const UInt64 typeId = 0xc7263e8f88844abcUL; @@ -15105,7 +15106,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9ae342d394247cfcUL), Proxy(typeof(TestKeywordMethods_Proxy)), Skeleton(typeof(TestKeywordMethods_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9ae342d394247cfcUL), Proxy(typeof(TestKeywordMethods_Proxy)), Skeleton(typeof(TestKeywordMethods_Skeleton))] public interface ITestKeywordMethods : IDisposable { Task Delete(CancellationToken cancellationToken_ = default); @@ -15220,7 +15221,7 @@ namespace Capnproto_test.Capnp.Test public static class TestKeywordMethods { - [TypeId(0xca3a89cdeb6bd6b7UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xca3a89cdeb6bd6b7UL)] public class Params_Delete : ICapnpSerializable { public const UInt64 typeId = 0xca3a89cdeb6bd6b7UL; @@ -15265,7 +15266,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xeeb5843598307592UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xeeb5843598307592UL)] public class Result_Delete : ICapnpSerializable { public const UInt64 typeId = 0xeeb5843598307592UL; @@ -15310,7 +15311,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9cf5a8313c5db036UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9cf5a8313c5db036UL)] public class Params_Class : ICapnpSerializable { public const UInt64 typeId = 0x9cf5a8313c5db036UL; @@ -15355,7 +15356,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc0253868ac12e7d8UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc0253868ac12e7d8UL)] public class Result_Class : ICapnpSerializable { public const UInt64 typeId = 0xc0253868ac12e7d8UL; @@ -15400,7 +15401,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa4a08763833c7757UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa4a08763833c7757UL)] public class Params_Void : ICapnpSerializable { public const UInt64 typeId = 0xa4a08763833c7757UL; @@ -15445,7 +15446,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xde82773089c0aeabUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xde82773089c0aeabUL)] public class Result_Void : ICapnpSerializable { public const UInt64 typeId = 0xde82773089c0aeabUL; @@ -15490,7 +15491,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x99817360625e8ca3UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x99817360625e8ca3UL)] public class Params_Return : ICapnpSerializable { public const UInt64 typeId = 0x99817360625e8ca3UL; @@ -15535,7 +15536,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xb70872e07eaa992fUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xb70872e07eaa992fUL)] public class Result_Return : ICapnpSerializable { public const UInt64 typeId = 0xb70872e07eaa992fUL; @@ -15581,7 +15582,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xea72cc77253798cdUL), Proxy(typeof(TestAuthenticatedBootstrap_Proxy<>)), Skeleton(typeof(TestAuthenticatedBootstrap_Skeleton<>))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea72cc77253798cdUL), Proxy(typeof(TestAuthenticatedBootstrap_Proxy<>)), Skeleton(typeof(TestAuthenticatedBootstrap_Skeleton<>))] public interface ITestAuthenticatedBootstrap : IDisposable where TVatId : class { Task GetCallerId(CancellationToken cancellationToken_ = default); @@ -15636,7 +15637,7 @@ namespace Capnproto_test.Capnp.Test public static class TestAuthenticatedBootstrap where TVatId : class { - [TypeId(0x8ec30e2451f1cffeUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x8ec30e2451f1cffeUL)] public class Params_GetCallerId : ICapnpSerializable { public const UInt64 typeId = 0x8ec30e2451f1cffeUL; @@ -15681,7 +15682,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc71cf776034a3e67UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc71cf776034a3e67UL)] public class Result_GetCallerId : ICapnpSerializable { public const UInt64 typeId = 0xc71cf776034a3e67UL; @@ -15742,7 +15743,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xceba982cb629f6c2UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xceba982cb629f6c2UL)] public class TestSturdyRef : ICapnpSerializable { public const UInt64 typeId = 0xceba982cb629f6c2UL; @@ -15817,7 +15818,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xe02d3bbe1010e342UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xe02d3bbe1010e342UL)] public class TestSturdyRefHostId : ICapnpSerializable { public const UInt64 typeId = 0xe02d3bbe1010e342UL; @@ -15877,7 +15878,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xaeb2ad168e2f5697UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xaeb2ad168e2f5697UL)] public class TestSturdyRefObjectId : ICapnpSerializable { public const UInt64 typeId = 0xaeb2ad168e2f5697UL; @@ -15936,7 +15937,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xef428f2f67c4d439UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xef428f2f67c4d439UL)] public enum Tag : ushort { testInterface, @@ -15948,7 +15949,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x9e5c574772b1d462UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x9e5c574772b1d462UL)] public class TestProvisionId : ICapnpSerializable { public const UInt64 typeId = 0x9e5c574772b1d462UL; @@ -15993,7 +15994,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xea2fb7dca9cdbdeaUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xea2fb7dca9cdbdeaUL)] public class TestRecipientId : ICapnpSerializable { public const UInt64 typeId = 0xea2fb7dca9cdbdeaUL; @@ -16038,7 +16039,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xa805157b98b65469UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xa805157b98b65469UL)] public class TestThirdPartyCapId : ICapnpSerializable { public const UInt64 typeId = 0xa805157b98b65469UL; @@ -16083,7 +16084,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf4c58a8ebcd0f600UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf4c58a8ebcd0f600UL)] public class TestJoinResult : ICapnpSerializable { public const UInt64 typeId = 0xf4c58a8ebcd0f600UL; @@ -16128,7 +16129,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd1fd8e9caf2a5d58UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd1fd8e9caf2a5d58UL)] public class TestNameAnnotation : ICapnpSerializable { public const UInt64 typeId = 0xd1fd8e9caf2a5d58UL; @@ -16292,7 +16293,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0x89d9d1626b34017cUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0x89d9d1626b34017cUL)] public class badlyNamedUnion : ICapnpSerializable { public const UInt64 typeId = 0x89d9d1626b34017cUL; @@ -16424,7 +16425,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xc3594bce5b24b722UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc3594bce5b24b722UL)] public class badlyNamedGroup : ICapnpSerializable { public const UInt64 typeId = 0xc3594bce5b24b722UL; @@ -16469,7 +16470,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf610d1deb4c9e84aUL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf610d1deb4c9e84aUL)] public enum BadlyNamedEnum : ushort { foo, @@ -16477,7 +16478,7 @@ namespace Capnproto_test.Capnp.Test baz } - [TypeId(0xbe406b6341d52284UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xbe406b6341d52284UL)] public class NestedStruct : ICapnpSerializable { public const UInt64 typeId = 0xbe406b6341d52284UL; @@ -16551,7 +16552,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xf6cb3f9c7a4322e0UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xf6cb3f9c7a4322e0UL)] public enum DeeplyNestedEnum : ushort { quux, @@ -16561,7 +16562,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xd112a69d31ed918bUL), Proxy(typeof(TestNameAnnotationInterface_Proxy)), Skeleton(typeof(TestNameAnnotationInterface_Skeleton))] public interface ITestNameAnnotationInterface : IDisposable { Task BadlyNamedMethod(byte BadlyNamedParam, CancellationToken cancellationToken_ = default); @@ -16605,7 +16606,7 @@ namespace Capnproto_test.Capnp.Test public static class TestNameAnnotationInterface { - [TypeId(0xc12efc3b075adfe9UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xc12efc3b075adfe9UL)] public class Params_BadlyNamedMethod : ICapnpSerializable { public const UInt64 typeId = 0xc12efc3b075adfe9UL; @@ -16665,7 +16666,7 @@ namespace Capnproto_test.Capnp.Test } } - [TypeId(0xdcc3cdb4b28f6c86UL)] + [System.CodeDom.Compiler.GeneratedCode("capnpc-csharp", "1.3.0.0"), TypeId(0xdcc3cdb4b28f6c86UL)] public class Result_BadlyNamedMethod : ICapnpSerializable { public const UInt64 typeId = 0xdcc3cdb4b28f6c86UL; diff --git a/CapnpC.CSharp.Generator.Tests/Util/InlineAssemblyCompiler.cs b/CapnpC.CSharp.Generator.Tests/Util/InlineAssemblyCompiler.cs index 2ab94cb..372b3d0 100644 --- a/CapnpC.CSharp.Generator.Tests/Util/InlineAssemblyCompiler.cs +++ b/CapnpC.CSharp.Generator.Tests/Util/InlineAssemblyCompiler.cs @@ -45,6 +45,7 @@ namespace CapnpC.CSharp.Generator.Tests.Util MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "mscorlib.dll")), MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "System.dll")), MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "System.Core.dll")), + MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "System.Diagnostics.Tools.dll")), MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "System.Runtime.dll")), MetadataReference.CreateFromFile(Path.Combine(assemblyRoot, "System.Private.CoreLib.dll")), MetadataReference.CreateFromFile(capnpRuntimePath) }, diff --git a/CapnpC.CSharp.Generator/CodeGen/CodeGenerator.cs b/CapnpC.CSharp.Generator/CodeGen/CodeGenerator.cs index a0ec9fc..c57b20b 100644 --- a/CapnpC.CSharp.Generator/CodeGen/CodeGenerator.cs +++ b/CapnpC.CSharp.Generator/CodeGen/CodeGenerator.cs @@ -81,8 +81,9 @@ .AddConstraintClauses(MakeTypeParameterConstraints(def).ToArray()); } - topDecl = topDecl.AddMembers(CommonSnippetGen.MakeTypeIdConst(def.Id, _names)); - topDecl = topDecl.WithAttributeLists(CommonSnippetGen.MakeTypeIdAttributeLists(def.Id)); + topDecl = topDecl + .AddMembers(_names.MakeTypeIdConst(def.Id)) + .AddAttributeLists(_names.MakeTypeDecorationAttributes(def.Id)); if (def.UnionInfo != null) { @@ -244,6 +245,7 @@ UsingDirective(ParseName("Capnp")), UsingDirective(ParseName("Capnp.Rpc")), UsingDirective(ParseName("System")), + UsingDirective(ParseName("System.CodeDom.Compiler")), UsingDirective(ParseName("System.Collections.Generic"))); if (_names.NullableEnable) diff --git a/CapnpC.CSharp.Generator/CodeGen/CommonSnippetGen.cs b/CapnpC.CSharp.Generator/CodeGen/CommonSnippetGen.cs index 549a272..2c6a172 100644 --- a/CapnpC.CSharp.Generator/CodeGen/CommonSnippetGen.cs +++ b/CapnpC.CSharp.Generator/CodeGen/CommonSnippetGen.cs @@ -50,7 +50,7 @@ namespace CapnpC.CSharp.Generator.CodeGen public EnumDeclarationSyntax MakeEnum(TypeDefinition def) { var decl = EnumDeclaration(_names.GetCodeIdentifier(def)) - .WithAttributeLists(MakeTypeIdAttributeLists(def.Id)) + .AddAttributeLists(_names.MakeTypeDecorationAttributes(def.Id)) .AddModifiers(_names.TypeVisibilityModifier) .AddBaseListTypes(SimpleBaseType(_names.Type(Nullability.NonNullable))); @@ -87,39 +87,5 @@ namespace CapnpC.CSharp.Generator.CodeGen yield return expr; } } - - static LiteralExpressionSyntax HexLiteral(ulong id) => - LiteralExpression( - SyntaxKind.NumericLiteralExpression, - Literal($"0x{id:x}UL", id)); - - public static FieldDeclarationSyntax MakeTypeIdConst(ulong id, GenNames names) => - FieldDeclaration( - VariableDeclaration( - IdentifierName("UInt64")) - .WithVariables( - SingletonSeparatedList( - VariableDeclarator(names.TypeIdField.Identifier) - .WithInitializer( - EqualsValueClause(HexLiteral(id)))))) - .WithModifiers( - TokenList( - new[]{ - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.ConstKeyword)})); - - public static AttributeSyntax MakeTypeIdAttribute(ulong id) => - Attribute( - IdentifierName("TypeId")) - .WithArgumentList( - AttributeArgumentList( - SingletonSeparatedList( - AttributeArgument(HexLiteral(id))))); - - public static SyntaxList MakeTypeIdAttributeLists(ulong id) => - SingletonList( - AttributeList( - SingletonSeparatedList( - CommonSnippetGen.MakeTypeIdAttribute(id)))); } } diff --git a/CapnpC.CSharp.Generator/CodeGen/GenNames.cs b/CapnpC.CSharp.Generator/CodeGen/GenNames.cs index 688f49a..1c3ac6b 100644 --- a/CapnpC.CSharp.Generator/CodeGen/GenNames.cs +++ b/CapnpC.CSharp.Generator/CodeGen/GenNames.cs @@ -77,6 +77,9 @@ namespace CapnpC.CSharp.Generator.CodeGen public bool NullableEnable { get; set; } public bool EmitDomainClassesAndInterfaces { get; set; } public SupportedAnnotations.TypeVisibility TypeVisibility { get; set; } + public string GeneratorToolName { get; } + public string GeneratorToolVersion { get; } + public GenNames(GeneratorOptions options) { TopNamespace = new Name(options.TopNamespaceName).IdentifierName; @@ -115,6 +118,8 @@ namespace CapnpC.CSharp.Generator.CodeGen ProxyClassFormat = options.ProxyClassFormat; SkeletonClassFormat = options.SkeletonClassFormat; AwaitProxy = new Name(options.AwaitProxyName); + GeneratorToolName = options.GeneratorToolName; + GeneratorToolVersion = options.GeneratorToolVersion; } public Name MakeTypeName(TypeDefinition def, NameUsage usage = NameUsage.Default) @@ -729,5 +734,48 @@ namespace CapnpC.CSharp.Generator.CodeGen } } } + + static LiteralExpressionSyntax HexLiteral(ulong id) => + LiteralExpression( + SyntaxKind.NumericLiteralExpression, + Literal($"0x{id:x}UL", id)); + + static LiteralExpressionSyntax StringLiteral(string text) => + LiteralExpression( + SyntaxKind.StringLiteralExpression, + Literal(text)); + + public FieldDeclarationSyntax MakeTypeIdConst(ulong id) => + FieldDeclaration( + VariableDeclaration( + IdentifierName("UInt64")) + .WithVariables( + SingletonSeparatedList( + VariableDeclarator(TypeIdField.Identifier) + .WithInitializer( + EqualsValueClause(HexLiteral(id)))))) + .WithModifiers( + TokenList( + new[]{ + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.ConstKeyword)})); + + static AttributeSyntax MakeTypeIdAttribute(ulong id) => + Attribute( + IdentifierName("TypeId")) + .WithArgumentList( + AttributeArgumentList( + SingletonSeparatedList( + AttributeArgument(HexLiteral(id))))); + + public AttributeSyntax MakeGeneratedCodeAttribute() => + Attribute( + IdentifierName("System.CodeDom.Compiler.GeneratedCode")) + .AddArgumentListArguments( + AttributeArgument(StringLiteral(GeneratorToolName)), + AttributeArgument(StringLiteral(GeneratorToolVersion))); + + public AttributeListSyntax MakeTypeDecorationAttributes(ulong typeId) => + AttributeList().AddAttributes(MakeGeneratedCodeAttribute(), MakeTypeIdAttribute(typeId)); } } diff --git a/CapnpC.CSharp.Generator/CodeGen/GeneratorOptions.cs b/CapnpC.CSharp.Generator/CodeGen/GeneratorOptions.cs index 178d41b..cd6061f 100644 --- a/CapnpC.CSharp.Generator/CodeGen/GeneratorOptions.cs +++ b/CapnpC.CSharp.Generator/CodeGen/GeneratorOptions.cs @@ -39,5 +39,7 @@ public string TypeIdFieldName { get; set; } = "typeId"; public string AwaitProxyName { get; set; } = "AwaitProxy"; public bool NullableEnableDefault { get; set; } = false; + public string GeneratorToolName { get; set; } = "capnpc-csharp"; + public string GeneratorToolVersion = ThisAssembly.AssemblyVersion; } } diff --git a/CapnpC.CSharp.Generator/CodeGen/InterfaceSnippetGen.cs b/CapnpC.CSharp.Generator/CodeGen/InterfaceSnippetGen.cs index 676a09d..d3f2076 100644 --- a/CapnpC.CSharp.Generator/CodeGen/InterfaceSnippetGen.cs +++ b/CapnpC.CSharp.Generator/CodeGen/InterfaceSnippetGen.cs @@ -99,9 +99,8 @@ namespace CapnpC.CSharp.Generator.CodeGen var ifaceDecl = InterfaceDeclaration(_names.MakeTypeName(type, NameUsage.Interface).Identifier) .AddModifiers(Public) .AddAttributeLists( - AttributeList() + _names.MakeTypeDecorationAttributes(type.Id) .AddAttributes( - CommonSnippetGen.MakeTypeIdAttribute(type.Id), Attribute(IdentifierName("Proxy")) .AddArgumentListArguments( AttributeArgument(