diff options
author | Jon Skeet <jonskeet@google.com> | 2016-07-01 13:19:00 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2016-07-04 08:22:18 +0100 |
commit | ada0a81a74afdc472f019ba142cfc101ca7b3543 (patch) | |
tree | edb8c4dc9c80e6c8966dd910531e4a5ee43a21f3 /src/google/protobuf/compiler/csharp/csharp_reflection_class.cc | |
parent | cae3b0cbb689d0ed1e5da73942a5a9705f3411b0 (diff) |
Move DebuggerNonUserCodeAttribute to function members
I think this has caught everything.
I've left a stub for attributes to be applied to the types themselves, but we don't currently need anything.
Follow-up commit will include the changes to generated code itself.
Fixes #1671.
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_reflection_class.cc')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_reflection_class.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc index f7397c0f..df7ea11b 100644 --- a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc +++ b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc @@ -122,10 +122,9 @@ void ReflectionClassGenerator::WriteIntroduction(io::Printer* printer) { } printer->Print( - "/// <summary>Holder for reflection information generated from $file_name$</summary>\n" - "[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\n", + "/// <summary>Holder for reflection information generated from $file_name$</summary>\n", "file_name", file_->name()); - WriteGeneratedCodeAttributes(printer); + WriteGeneratedTypeAttributes(printer); printer->Print( "$access_level$ static partial class $reflection_class_name$ {\n" "\n", |