diff options
Diffstat (limited to 'src/ProtoGen/ExtensionGenerator.cs')
-rw-r--r-- | src/ProtoGen/ExtensionGenerator.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ProtoGen/ExtensionGenerator.cs b/src/ProtoGen/ExtensionGenerator.cs index 2f6876c3..c3412fe9 100644 --- a/src/ProtoGen/ExtensionGenerator.cs +++ b/src/ProtoGen/ExtensionGenerator.cs @@ -24,6 +24,7 @@ namespace Google.ProtocolBuffers.ProtoGen { break; } + writer.WriteLine ("public const int {0} = {1};", GetFieldConstantName(Descriptor), Descriptor.FieldNumber); if (Descriptor.IsRepeated) { writer.WriteLine("{0} static readonly", ClassAccessLevel); writer.WriteLine(" pb::GeneratedExtensionBase<scg::IList<{0}>> {1} =", type, name); |