| 12 | std::unique_ptr<SourceCollection> SC; |
| 13 | |
| 14 | ASTDefNode *getASTDefNode(std::string FuncName, unsigned BIdx, unsigned IIdx, |
| 15 | int AIdx) { |
| 16 | if (!AccessHelper || !Map) |
| 17 | return nullptr; |
| 18 | |
| 19 | auto *I = AccessHelper->getInstruction(FuncName, BIdx, IIdx); |
| 20 | if (!I) |
| 21 | return nullptr; |
| 22 | |
| 23 | return Map->getASTDefNode(*I, AIdx); |
| 24 | } |
| 25 | |
| 26 | bool load(std::string BaseDirPath, std::string CodePath) { |
| 27 | return load(BaseDirPath, std::vector<std::string>({CodePath})); |
no test coverage detected