diff options
author | Jon Skeet <jonskeet@google.com> | 2015-10-01 10:36:58 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-10-01 10:36:58 +0100 |
commit | 67dd42c50d2b6d9c208bb1a4c63ee879781a9ac1 (patch) | |
tree | f306f386bc210138da58fa14568b4b930fe15a2b /src/google/protobuf/compiler/csharp/csharp_map_field.cc | |
parent | aa7ea3b698ed0ca4ae7e9bf2b1996db00063de32 (diff) |
First pass at generating XML documentation from .proto comments.
This could be tidied up significantly, and at some point we will want to parse the markdown and generate more appropriate XML - but this is definitely better than nothing.
Generated code changes coming in next commit.
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_map_field.cc')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_map_field.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_map_field.cc b/src/google/protobuf/compiler/csharp/csharp_map_field.cc index f84ad6f7..b493495d 100644 --- a/src/google/protobuf/compiler/csharp/csharp_map_field.cc +++ b/src/google/protobuf/compiler/csharp/csharp_map_field.cc @@ -38,6 +38,7 @@ #include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/stubs/strutil.h> +#include <google/protobuf/compiler/csharp/csharp_doc_comment.h> #include <google/protobuf/compiler/csharp/csharp_helpers.h> #include <google/protobuf/compiler/csharp/csharp_map_field.h> @@ -76,6 +77,7 @@ void MapFieldGenerator::GenerateMembers(io::Printer* printer) { variables_, ", $tag$);\n" "private readonly pbc::MapField<$key_type_name$, $value_type_name$> $name$_ = new pbc::MapField<$key_type_name$, $value_type_name$>($true_for_wrappers$);\n"); + WritePropertyDocComment(printer, descriptor_); AddDeprecatedFlag(printer); printer->Print( variables_, |