From 53ff3665a9cb1563a343ef573fb4dbf0c8a98cad Mon Sep 17 00:00:00 2001 From: Kai Kriegel Date: Fri, 16 Oct 2020 19:26:21 +0000 Subject: [PATCH] Added csharp.capnp --- csharp.capnp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 csharp.capnp diff --git a/csharp.capnp b/csharp.capnp new file mode 100644 index 0000000..879d533 --- /dev/null +++ b/csharp.capnp @@ -0,0 +1,25 @@ +@0xeb0d831668c6edab; +$namespace("Capnp.Annotations"); + +enum TypeVisibility @0xeb0d831668c6eda5 { + public @0; + internal @1; +} + +annotation namespace @0xeb0d831668c6eda0 (file) : Text; +# C# namespace for code generation + +annotation nullableEnable @0xeb0d831668c6eda1 (file) : Bool; +# Whether to generate C# nullable reference types + +annotation emitNullableDirective @0xeb0d831668c6eda3 (file) : Bool; +# Whether to surround the generated code with #nullable enable/disable ... #nullable restore + +annotation emitDomainClassesAndInterfaces @0xeb0d831668c6eda4 (file) : Bool; +# Whether generate domain classes and interfaces (default is 'true' if annotation is missing) + +annotation typeVisibility @0xeb0d831668c6eda6 (file) : TypeVisibility; +# Visibility of generated types + +annotation name @0xeb0d831668c6eda2 (field, enumerant, struct, enum, interface, method, param, group, union) : Text; +# C# member name for code generation