Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
Comment describes the leading, trailing, and detached comments for a proto object.
func (*Comment) GetDetached ¶
GetDetached returns the detached leading comments.
func (*Comment) GetLeading ¶
GetLeading returns the leading comments.
func (*Comment) GetTrailing ¶
GetTrailing returns the leading comments.
type Comments ¶
Comments is a map of source location paths to values.
func ParseComments ¶
func ParseComments(fd *descriptorpb.FileDescriptorProto) Comments
ParseComments parses all comments within a proto file. The locations are encoded into the map by joining the paths with a "." character. E.g. `4.2.3.0`.
Leading/trailing spaces are trimmed for each comment type (leading, trailing, detached).
Click to show internal directories.
Click to hide internal directories.