compiler/protogen: use protoreflect.SourcePath

Change-Id: I3770d8952e12bb12d8bdc326635008843cd8a6af
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186000
Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
Joe Tsai 2019-07-12 17:16:36 -07:00
parent 67da21c7ab
commit 691d8563c7

View File

@ -1134,12 +1134,12 @@ const (
// for details.
type Location struct {
SourceFile string
Path []int32
Path protoreflect.SourcePath
}
// appendPath add elements to a Location's path, returning a new Location.
func (loc Location) appendPath(a ...int32) Location {
var n []int32
var n protoreflect.SourcePath
n = append(n, loc.Path...)
n = append(n, a...)
return Location{