Commit 1351d20c authored by Jon Skeet's avatar Jon Skeet

Move the summary comments above the attributes.

(Generated code changes coming next...)
parent b0888a42
...@@ -200,13 +200,13 @@ void MessageGenerator::Generate(io::Printer* printer) { ...@@ -200,13 +200,13 @@ void MessageGenerator::Generate(io::Printer* printer) {
// Nested messages and enums // Nested messages and enums
if (HasNestedGeneratedTypes()) { if (HasNestedGeneratedTypes()) {
printer->Print("#region Nested types\n"
"[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n");
WriteGeneratedCodeAttributes(printer);
printer->Print( printer->Print(
vars, vars,
"#region Nested types\n"
"/// <summary>Container for nested types declared in the $class_name$ message type.</summary>\n" "/// <summary>Container for nested types declared in the $class_name$ message type.</summary>\n"
"public static partial class Types {\n"); "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n");
WriteGeneratedCodeAttributes(printer);
printer->Print("public static partial class Types {\n");
printer->Indent(); printer->Indent();
for (int i = 0; i < descriptor_->enum_type_count(); i++) { for (int i = 0; i < descriptor_->enum_type_count(); i++) {
EnumGenerator enumGenerator(descriptor_->enum_type(i)); EnumGenerator enumGenerator(descriptor_->enum_type(i));
......
...@@ -135,13 +135,13 @@ void UmbrellaClassGenerator::WriteIntroduction(io::Printer* printer) { ...@@ -135,13 +135,13 @@ void UmbrellaClassGenerator::WriteIntroduction(io::Printer* printer) {
} }
printer->Print( 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); WriteGeneratedCodeAttributes(printer);
printer->Print( printer->Print(
"/// <summary>Holder for reflection information generated from $file_name$</summary>\n"
"$access_level$ static partial class $umbrella_class_name$ {\n" "$access_level$ static partial class $umbrella_class_name$ {\n"
"\n", "\n",
"file_name", file_->name(),
"access_level", class_access_level(), "access_level", class_access_level(),
"umbrella_class_name", umbrellaClassname_); "umbrella_class_name", umbrellaClassname_);
printer->Indent(); printer->Indent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment