You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func (d _FileDescriptor) AllMessages() []_Descriptor {
msgs := d.desc
for _, i := range d.imp {
obj, ok := i.o.(*Descriptor)
if ok {
msgs = append(msgs, obj)
}
}
return msgs
}
In each plugin there are gogoproto.Has/Is functions
At the moment they reference the current file, but they should reference the file in which the message/field was originally defined.
If the message was publicly imported its code generation should depend upon the file in which it was defined not the file which publicly imports it.
If this is feature is important to you please comment so I can push up the priority.
awalterschulze
changed the title
support extra code generation for import public
Known Issue: support extra code generation for import public
May 22, 2015
From awalterschulze on August 07, 2014 13:59:23
protoc-gen-gogo/generator/helper.go
Add this method
func (d _FileDescriptor) AllMessages() []_Descriptor {
msgs := d.desc
for _, i := range d.imp {
obj, ok := i.o.(*Descriptor)
if ok {
msgs = append(msgs, obj)
}
}
return msgs
}
In each plugin there are gogoproto.Has/Is functions
At the moment they reference the current file, but they should reference the file in which the message/field was originally defined.
If the message was publicly imported its code generation should depend upon the file in which it was defined not the file which publicly imports it.
Most of it should work after this work is done.
Original issue: http://code.google.com/p/gogoprotobuf/issues/detail?id=22
The text was updated successfully, but these errors were encountered: