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

Method IsTargetFile

private/bufpkg/bufmodule/file_info.go:45–45  ·  view source on GitHub ↗

IsTargetFile returns true if the File is targeted. Files are either targets or imports. If Module.IsTarget() is false, this will always be false. If specific Files were not targeted but Module.IsTarget() is true, all Files in the Module will have IsTargetFile() set to true.

()

Source from the content-addressed store, hash-verified

43 // If specific Files were not targeted but Module.IsTarget() is true, all Files in
44 // the Module will have IsTargetFile() set to true.
45 IsTargetFile() bool
46
47 // ProtoFileImports returns the file's declared .proto imports, if any.
48 //

Callers 8

WalkFileInfosMethod · 0.65
StatFileInfoMethod · 0.65
printModuleFunction · 0.65
IsImportMethod · 0.65
TestTypesFromMainModuleFunction · 0.65
testBasicFunction · 0.65

Calls

no outgoing calls

Tested by 3

TestTypesFromMainModuleFunction · 0.52
testBasicFunction · 0.52