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
db52c9dd
Commit
db52c9dd
authored
Jul 15, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address requested change from code review.
parent
541b442b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
csharp_message.cc
src/google/protobuf/compiler/csharp/csharp_message.cc
+12
-12
No files found.
src/google/protobuf/compiler/csharp/csharp_message.cc
View file @
db52c9dd
...
...
@@ -122,10 +122,10 @@ void MessageGenerator::GenerateStaticVariables(io::Printer* printer) {
for
(
int
i
=
0
;
i
<
descriptor_
->
nested_type_count
();
i
++
)
{
// Don't generate accessor table fields for maps...
if
(
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
continue
;
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
)
);
messageGenerator
.
GenerateStaticVariables
(
printer
);
if
(
!
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
{
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
));
messageGenerator
.
GenerateStaticVariables
(
printer
);
}
}
}
...
...
@@ -164,10 +164,10 @@ void MessageGenerator::GenerateStaticVariableInitializers(io::Printer* printer)
// Generate static member initializers for all non-map-entry nested types.
for
(
int
i
=
0
;
i
<
descriptor_
->
nested_type_count
();
i
++
)
{
if
(
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
continue
;
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
)
);
messageGenerator
.
GenerateStaticVariableInitializers
(
printer
);
if
(
!
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
{
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
));
messageGenerator
.
GenerateStaticVariableInitializers
(
printer
);
}
}
}
...
...
@@ -302,10 +302,10 @@ void MessageGenerator::Generate(io::Printer* printer) {
}
for
(
int
i
=
0
;
i
<
descriptor_
->
nested_type_count
();
i
++
)
{
// Don't generate nested types for maps...
if
(
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
continue
;
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
)
);
messageGenerator
.
Generate
(
printer
);
if
(
!
IsMapEntryMessage
(
descriptor_
->
nested_type
(
i
)))
{
MessageGenerator
messageGenerator
(
descriptor_
->
nested_type
(
i
));
messageGenerator
.
Generate
(
printer
);
}
}
printer
->
Outdent
();
printer
->
Print
(
"}
\n
"
...
...
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