yoheimuta/go-protoparser

MessageBody does not have parser.Extensions field, so UnorderedInterpret returns error when parse a proto message with "extensions"

Closed this issue · 4 comments

type MessageBody struct {
Fields []*parser.Field
Enums []*Enum
Messages []*Message
Options []*parser.Option
Oneofs []*parser.Oneof
Maps []*parser.MapField
Groups []*parser.GroupField
Reserves []*parser.Reserved
Extends []*parser.Extend
EmptyStatements []*parser.EmptyStatement
}

could you please add a new field Extensions []*parser.Extension to the MessageBody struct and the switch statement? Thanks.

@jcheng8 Thank you for letting me know. It makes sense.
I will work on it when I have some free time available.

@yoheimuta Thanks for getting back to me so quickly. Appreciate that. I just created a pull request of adding the Extensions field.

@jcheng8 I've cut a release here: https://github.com/yoheimuta/go-protoparser/releases/tag/v4.9.0 Thank you!

That's great. Thanks a lot. Have a nice day!