yoheimuta / go-protoparser

Yet another Go package which parses a Protocol Buffer file (proto2+proto3)
MIT License
166 stars 20 forks source link

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

Closed jcheng8 closed 5 months ago

jcheng8 commented 1 year ago

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.

yoheimuta commented 1 year ago

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

jcheng8 commented 1 year ago

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

yoheimuta commented 1 year ago

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

jcheng8 commented 1 year ago

@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!