Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEdition ¶
func GetEdition(fd protoreflect.FileDescriptor, protos protoresolve.ProtoFileOracle) descriptorpb.Edition
GetEdition returns the edition for the given file. If it cannot be determined, descriptorpb.Edition_EDITION_UNKNOWN is returned.
The given protos value is optional. If non-nil, it will be consulted, if necessary, to find the underlying file descriptor proto for the given fd, from which the edition can be queried.
func SortFiles ¶
func SortFiles(files []*descriptorpb.FileDescriptorProto) error
SortFiles topologically sorts the given file descriptor protos. It returns an error if the given files include duplicates (more than one entry with the same path) or if any of the files refer to imports which are not present in the given files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.