aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/csharp
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-11-13 20:04:03 +0000
committerJon Skeet <jonskeet@google.com>2015-11-19 08:50:28 +0000
commit2a15051a1e101ea58d7d2e262aa79c7c21f23266 (patch)
tree29793eb4d5c1c58004d79b64ef19fb70c5f1f4a4 /src/google/protobuf/compiler/csharp
parentc581acb562fad93c4eb7b125cc31b64fa6f51868 (diff)
downloadprotobuf-2a15051a1e101ea58d7d2e262aa79c7c21f23266.tar.gz
protobuf-2a15051a1e101ea58d7d2e262aa79c7c21f23266.tar.bz2
protobuf-2a15051a1e101ea58d7d2e262aa79c7c21f23266.zip
Introduce a Parser property into MessageDescriptor, and populate it from generated types.
Generated code coming in next commit - in a subsequent PR I want to do a bit of renaming and redocumenting around this, in anticipation of DynamicMessage.
Diffstat (limited to 'src/google/protobuf/compiler/csharp')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc b/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc
index 8059fd2a..812c6fc8 100644
--- a/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc
@@ -232,7 +232,7 @@ void UmbrellaClassGenerator::WriteGeneratedCodeInfo(const Descriptor* descriptor
return;
}
// Generated message type
- printer->Print("new pbr::GeneratedCodeInfo(typeof($type_name$), ", "type_name", GetClassName(descriptor));
+ printer->Print("new pbr::GeneratedCodeInfo(typeof($type_name$), $type_name$.Parser, ", "type_name", GetClassName(descriptor));
// Fields
if (descriptor->field_count() > 0) {