diff options
author | Jon Skeet <jonskeet@google.com> | 2015-09-29 14:34:05 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-09-29 14:34:05 +0100 |
commit | 1351d20c3165b1d3f5b40172c3ec7fed4ef21fc5 (patch) | |
tree | fa1ade4472714a29bc829a7231f8df60e959a8ef /src/google | |
parent | b0888a42ad1459a8537faad47c47417925edec45 (diff) | |
download | protobuf-1351d20c3165b1d3f5b40172c3ec7fed4ef21fc5.tar.gz protobuf-1351d20c3165b1d3f5b40172c3ec7fed4ef21fc5.tar.bz2 protobuf-1351d20c3165b1d3f5b40172c3ec7fed4ef21fc5.zip |
Move the summary comments above the attributes.
(Generated code changes coming next...)
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_message.cc | 12 | ||||
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_message.cc b/src/google/protobuf/compiler/csharp/csharp_message.cc index a2c4fe57..4510d0b6 100644 --- a/src/google/protobuf/compiler/csharp/csharp_message.cc +++ b/src/google/protobuf/compiler/csharp/csharp_message.cc @@ -200,13 +200,13 @@ void MessageGenerator::Generate(io::Printer* printer) { // Nested messages and enums if (HasNestedGeneratedTypes()) { - printer->Print("#region Nested types\n" - "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n"); - WriteGeneratedCodeAttributes(printer); printer->Print( - vars, - "/// <summary>Container for nested types declared in the $class_name$ message type.</summary>\n" - "public static partial class Types {\n"); + vars, + "#region Nested types\n" + "/// <summary>Container for nested types declared in the $class_name$ message type.</summary>\n" + "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n"); + WriteGeneratedCodeAttributes(printer); + printer->Print("public static partial class Types {\n"); printer->Indent(); for (int i = 0; i < descriptor_->enum_type_count(); i++) { EnumGenerator enumGenerator(descriptor_->enum_type(i)); diff --git a/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc b/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc index b7328f9a..7cf101b0 100644 --- a/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc +++ b/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc @@ -135,13 +135,13 @@ void UmbrellaClassGenerator::WriteIntroduction(io::Printer* printer) { } printer->Print( - "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n"); + "/// <summary>Holder for reflection information generated from $file_name$</summary>\n" + "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n", + "file_name", file_->name()); WriteGeneratedCodeAttributes(printer); printer->Print( - "/// <summary>Holder for reflection information generated from $file_name$</summary>\n" "$access_level$ static partial class $umbrella_class_name$ {\n" "\n", - "file_name", file_->name(), "access_level", class_access_level(), "umbrella_class_name", umbrellaClassname_); printer->Indent(); |