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

Function SLgetFile

src/API/SLAPI.cpp:216–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216std::string SLgetFile(SV3_1aPythonListener* prog,
217 antlr4::ParserRuleContext* context) {
218#ifdef SURELOG_WITH_PYTHON
219 FileSystem* const fileSystem = FileSystem::getInstance();
220 SV3_1aPythonListener* listener = prog;
221 ParseFile* parseFile = listener->getPythonListen()->getParseFile();
222 return std::string(fileSystem->toPath(parseFile->getFileId(0)));
223#else
224 std::cerr << "SLgetFile(): Python support not compiled in\n";
225 return "";
226#endif
227}
228
229int32_t SLgetLine(SV3_1aPythonListener* prog,
230 antlr4::ParserRuleContext* context) {

Callers 3

slUserCallbackPerFileFunction · 0.85
slUserCallbackPerFileFunction · 0.85
slUserCallbackPerFileFunction · 0.85

Calls 4

getParseFileMethod · 0.80
toPathMethod · 0.80
NodeIdClass · 0.50
getFileIdMethod · 0.45

Tested by

no test coverage detected