mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-09 22:13:27 +00:00
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:
parent
67da21c7ab
commit
691d8563c7
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user