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

Function imageToProtoFileDescriptor

private/bufpkg/bufcheck/util.go:30–37  ·  view source on GitHub ↗
(imageFile bufimage.ImageFile)

Source from the content-addressed store, hash-verified

28}
29
30func imageToProtoFileDescriptor(imageFile bufimage.ImageFile) *descriptorv1.FileDescriptor {
31 return &descriptorv1.FileDescriptor{
32 FileDescriptorProto: imageFile.FileDescriptorProto(),
33 IsImport: imageFile.IsImport(),
34 IsSyntaxUnspecified: imageFile.IsSyntaxUnspecified(),
35 UnusedDependency: imageFile.UnusedDependencyIndexes(),
36 }
37}
38
39// imageToPathToExternalPath returns a map from path to external path for all ImageFiles in the Image.
40//

Callers

nothing calls this directly

Calls 4

FileDescriptorProtoMethod · 0.65
IsImportMethod · 0.65
IsSyntaxUnspecifiedMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…