Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
1351d20c
Commit
1351d20c
authored
Sep 29, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the summary comments above the attributes.
(Generated code changes coming next...)
parent
b0888a42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
csharp_message.cc
src/google/protobuf/compiler/csharp/csharp_message.cc
+4
-4
csharp_umbrella_class.cc
src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc
+3
-3
No files found.
src/google/protobuf/compiler/csharp/csharp_message.cc
View file @
1351d20c
...
...
@@ -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
,
"#region Nested types
\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
();
for
(
int
i
=
0
;
i
<
descriptor_
->
enum_type_count
();
i
++
)
{
EnumGenerator
enumGenerator
(
descriptor_
->
enum_type
(
i
));
...
...
src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc
View file @
1351d20c
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment