MCPcopy Create free account
hub / github.com/bufbuild/buf / GetAssociatedSourcePaths

Function GetAssociatedSourcePaths

private/pkg/protosourcepath/protosourcepath.go:52–54  ·  view source on GitHub ↗

GetAssociatedSourcePaths takes a protoreflect.SourcePath and returns a list of associated paths, []protoreflect.SourcePath. We should expect at least one associated path for a valid path input. More details on associated paths are available in the README.md.

(sourcePath protoreflect.SourcePath)

Source from the content-addressed store, hash-verified

50//
51// More details on associated paths are available in the README.md.
52func GetAssociatedSourcePaths(sourcePath protoreflect.SourcePath) ([]protoreflect.SourcePath, error) {
53 return getAssociatedSourcePaths(sourcePath, true)
54}
55
56func getAssociatedSourcePaths(
57 sourcePath protoreflect.SourcePath,

Callers 1

ignoreFileLocationFunction · 0.92

Calls 1

getAssociatedSourcePathsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…