type SourceLocations … type SourceLocation … type SourcePath … // Equal reports whether p1 equals p2. func (p1 SourcePath) Equal(p2 SourcePath) bool { … } // String formats the path in a humanly readable manner. // The output is guaranteed to be deterministic, // making it suitable for use as a key into a Go map. // It is not guaranteed to be stable as the exact output could change // in a future version of this module. // // Example output: // // .message_type[6].nested_type[15].field[3] func (p SourcePath) String() string { … } type appendFunc … func (p *SourcePath) appendSingularField(b []byte, name string, f appendFunc) []byte { … } func (p *SourcePath) appendRepeatedField(b []byte, name string, f appendFunc) []byte { … }