Skip to content

v1.4.1

Compare
Choose a tag to compare
@jhump jhump released this 24 May 04:03
92269e4

This contains a few minor changes/fixes to make the output of the protoparse package more closely resemble the descriptor protos parsed by protoc.

"github.com/jhump/protoreflect/desc/protoparse"

Changes/fixes:

  • Previously, the parser did not handle multi-line string literals (a C-like syntax supported by protoc). Now it does.
  • When including source info, the output did not include intermediate/aggregate data for all paths. It included only a subset of paths, whereas protoc would synthesize aggregate spans for ancestor paths, all the way up to the root path (empty path with a span that encompasses entire file). The parser in this package now also generates source info for these paths.
  • When including source info, the order of the paths was deterministic but not really per a well-defined sort order. Now the source info values are sorted by location/span.