MCPcopy Create free account
hub / github.com/chigraph/chigraph / nodeTypeFromModule

Method nodeTypeFromModule

libchigraph/src/Context.cpp:518–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518Result Context::nodeTypeFromModule(const fs::path& moduleName, boost::string_view typeName,
519 const nlohmann::json& data,
520 std::unique_ptr<NodeType>* toFill) noexcept {
521 Result res;
522
523 auto module = moduleByFullName(moduleName);
524 if (module == nullptr) {
525 res.addEntry("E36", "Could not find module", {{"module", moduleName.generic_string()}});
526 return res;
527 }
528
529 res += module->nodeTypeFromName(typeName, data, toFill);
530
531 return res;
532}
533
534Result Context::compileModule(const boost::filesystem::path& fullName, bool linkDependencies,
535 std::unique_ptr<llvm::Module>* toFill) {

Callers 8

ContextTests.cppFile · 0.80
JSONSerializer.cppFile · 0.80
insertNodeMethod · 0.80
createEntryNodeTypeMethod · 0.80
createExitNodeTypeMethod · 0.80
setNameMethod · 0.80
jsonToGraphFunctionFunction · 0.80

Calls 2

addEntryMethod · 0.80
nodeTypeFromNameMethod · 0.45

Tested by

no test coverage detected