protobuf-go/protogen
Damien Neil cab8dfee90 protogen: include source comments in generated code
Add initial handling of location paths (arrays of integers identifying
an entity in a .proto source file).

Expose path info in protogen; each descriptor has a Path field containing
its location path.

Format comments in protoc-gen-go. This contains one change from
github.com/golang/protobuf: Package comments are now included before the
package statement (but not attached to it) and use // comment syntax
instead of /* */. e.g.,

Before:

	package test

	/*
	This package contains interesting messages.
	*/

After:

	// This package contains interesting messages.

	package test

Change-Id: Ieee13ae77b3584f7562183100554d3df732348aa
Reviewed-on: https://go-review.googlesource.com/133915
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-09-11 17:19:32 +00:00
..
testdata/go_package protogen, cmd/protoc-gen-go: initial commit 2018-08-22 17:08:04 +00:00
names_test.go protogen: automatic handling of imports 2018-09-05 23:14:28 +00:00
names.go protogen: use protoreflect descriptors 2018-09-06 17:45:34 +00:00
protogen_test.go protogen: compute package names, import paths, generated filenames 2018-09-07 17:58:10 +00:00
protogen.go protogen: include source comments in generated code 2018-09-11 17:19:32 +00:00