Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/csharp/csharp_map_field.cc

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2015 Google Inc. All rights reserved. 2 // Copyright 2015 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 "private static readonly pbc::MapField<$key_type_name$, $value_type_name$>.C odec _map_$name$_codec\n" 73 "private static readonly pbc::MapField<$key_type_name$, $value_type_name$>.C odec _map_$name$_codec\n"
74 " = new pbc::MapField<$key_type_name$, $value_type_name$>.Codec("); 74 " = new pbc::MapField<$key_type_name$, $value_type_name$>.Codec(");
75 key_generator->GenerateCodecCode(printer); 75 key_generator->GenerateCodecCode(printer);
76 printer->Print(", "); 76 printer->Print(", ");
77 value_generator->GenerateCodecCode(printer); 77 value_generator->GenerateCodecCode(printer);
78 printer->Print( 78 printer->Print(
79 variables_, 79 variables_,
80 ", $tag$);\n" 80 ", $tag$);\n"
81 "private readonly pbc::MapField<$key_type_name$, $value_type_name$> $name$_ = new pbc::MapField<$key_type_name$, $value_type_name$>();\n"); 81 "private readonly pbc::MapField<$key_type_name$, $value_type_name$> $name$_ = new pbc::MapField<$key_type_name$, $value_type_name$>();\n");
82 WritePropertyDocComment(printer, descriptor_); 82 WritePropertyDocComment(printer, descriptor_);
83 AddDeprecatedFlag(printer); 83 AddPublicMemberAttributes(printer);
84 printer->Print( 84 printer->Print(
85 variables_, 85 variables_,
86 "$access_level$ pbc::MapField<$key_type_name$, $value_type_name$> $property_ name$ {\n" 86 "$access_level$ pbc::MapField<$key_type_name$, $value_type_name$> $property_ name$ {\n"
87 " get { return $name$_; }\n" 87 " get { return $name$_; }\n"
88 "}\n"); 88 "}\n");
89 } 89 }
90 90
91 void MapFieldGenerator::GenerateMergingCode(io::Printer* printer) { 91 void MapFieldGenerator::GenerateMergingCode(io::Printer* printer) {
92 printer->Print( 92 printer->Print(
93 variables_, 93 variables_,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 "$name$_ = other.$name$_.Clone();\n"); 132 "$name$_ = other.$name$_.Clone();\n");
133 } 133 }
134 134
135 void MapFieldGenerator::GenerateFreezingCode(io::Printer* printer) { 135 void MapFieldGenerator::GenerateFreezingCode(io::Printer* printer) {
136 } 136 }
137 137
138 } // namespace csharp 138 } // namespace csharp
139 } // namespace compiler 139 } // namespace compiler
140 } // namespace protobuf 140 } // namespace protobuf
141 } // namespace google 141 } // namespace google
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698