aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/csharp/csharp_map_field.cc
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-07-03 12:45:36 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-07-10 11:42:56 +0100
commit5b9288e47d7add219717d472aa95a5cfe1141ac9 (patch)
tree4c5013e008bde3b0425d61efd2c85f80fbb6afb8 /src/google/protobuf/compiler/csharp/csharp_map_field.cc
parentf8c151f21e821371c55d1cd02b89ac1b8f50460f (diff)
Use the new JsonFormatter to implement ToString on generated messages.
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_map_field.cc')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_map_field.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_map_field.cc b/src/google/protobuf/compiler/csharp/csharp_map_field.cc
index cb7ce5f0..32c05232 100644
--- a/src/google/protobuf/compiler/csharp/csharp_map_field.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_map_field.cc
@@ -117,12 +117,9 @@ void MapFieldGenerator::WriteEquals(io::Printer* printer) {
variables_,
"if (!$property_name$.Equals(other.$property_name$)) return false;\n");
}
+
void MapFieldGenerator::WriteToString(io::Printer* printer) {
- /*
- variables_["field_name"] = GetFieldName(descriptor_);
- printer->Print(
- variables_,
- "PrintField(\"$field_name$\", has$property_name$, $name$_, writer);\n");*/
+ // TODO: If we ever actually use ToString, we'll need to impleme this...
}
void MapFieldGenerator::GenerateCloningCode(io::Printer* printer) {