MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / SLgetPackageFile

Function SLgetPackageFile

src/API/SLAPI.cpp:555–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555std::string SLgetPackageFile(Package* module) {
556 if (!ModuleHasFirstFileContent(module)) return "";
557 return std::string(FileSystem::getInstance()->toPath(
558 module->getFileContents()[0]->getFileId(module->getNodeIds()[0])));
559}
560
561uint32_t SLgetPackageLine(Package* module) {
562 if (!ModuleHasFirstFileContent(module)) return 0;

Callers

nothing calls this directly

Calls 3

toPathMethod · 0.80
getFileIdMethod · 0.45

Tested by

no test coverage detected