protobuf-go/internal
Joe Tsai 8d5e6d6927 cmd/protoc-gen-go: improve generation of comments
The following improvements were made:
* All standalone comments above the "syntax" marker are preserved
similar to Java and some other generators.
* All standalone comments above the "package" marker are preserved
to be consistent with our former behavior.
* Leading comments are now generated for enums and extension fields.
* Single-line trailing comments are now generated for
enum values, message fields, and extension fields.
* The leading comments for each field that is part of a oneof are now
generated with the wrapper types rather than being shoved into the
comment for the oneof itself in an unreadable way.
* The deprecation marker is always generated as being above the declaration
rather than sometimes being an inlined comment.
* The deprecation marker is now properly generated for weak field setters.

Updates golang/protobuf#666

Change-Id: I7fd832dd4f86d15bfff70d7c22c6ba4934c05fcf
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/189238
Reviewed-by: Damien Neil <dneil@google.com>
2019-08-07 17:33:08 +00:00
..
cmd all: add NewField, NewElement, NewValue 2019-08-06 21:54:30 +00:00
descfmt reflect/protoreflect: add FileDescriptor.SourceLocations 2019-07-13 00:15:59 +00:00
descopts internal/filedesc, internal/filetype: initial commit 2019-06-20 02:06:11 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding internal/encoding/text: replace use of regular expression in decoding 2019-07-23 22:08:16 +00:00
errors all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
fieldnum internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
filedesc internal/filedesc, internal/filetype: rename {Desc,Type}Builder as Builder 2019-08-05 23:43:37 +00:00
filetype internal/filedesc, internal/filetype: rename {Desc,Type}Builder as Builder 2019-08-05 23:43:37 +00:00
flags
impl all: add NewField, NewElement, NewValue 2019-08-06 21:54:30 +00:00
mapsort all: refactor Converter 2019-08-05 22:33:14 +00:00
pragma
set internal/set: remove Int32s, Int64s, and Strings 2019-04-03 22:53:35 +00:00
strs all: support enforce_utf8 override 2019-07-15 19:53:05 +00:00
testprotos cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00