diff options
Diffstat (limited to 'src/ProtoGen/ExtensionGenerator.cs')
-rw-r--r-- | src/ProtoGen/ExtensionGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProtoGen/ExtensionGenerator.cs b/src/ProtoGen/ExtensionGenerator.cs index 108f1a73..e0860ad8 100644 --- a/src/ProtoGen/ExtensionGenerator.cs +++ b/src/ProtoGen/ExtensionGenerator.cs @@ -99,7 +99,7 @@ namespace Google.ProtocolBuffers.ProtoGen { writer.WriteLine("{0},", Descriptor.HasDefaultValue ? DefaultValue : IsNullableType ? "null" : "default(" + type + ")"); writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Message) ? type + ".DefaultInstance" : "null"); writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Enum) ? "new EnumLiteMap<" + type + ">()" : "null"); - writer.WriteLine("{0},", Descriptor.Index); + writer.WriteLine("{0}.{1}FieldNumber,", scope, name); writer.Write("pbd::FieldType.{0}", Descriptor.FieldType); if (Descriptor.IsRepeated) { writer.WriteLine(","); |