MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / findModule

Method findModule

src/ast/ast_module.cpp:1029–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027 }
1028
1029 Module * ModuleLibrary::findModule ( const string & mn ) const {
1030 auto hash = hash64z(mn.c_str());
1031 auto it = moduleLookupByHash.find(hash);
1032 return it != moduleLookupByHash.end() ? it->second : nullptr;
1033 }
1034
1035 void ModuleLibrary::findWithCallback ( const string & name, Module * inWhichModule, const callable<void (Module * pm, const string &name, Module * inWhichModule)> & func ) const {
1036 string moduleName, funcName;

Callers 8

addNewModulesFunction · 0.80
transform_syntaxFunction · 0.80
addModuleMethod · 0.80
addNewModulesFunction · 0.80
compileDaScriptFunction · 0.80
findRttiModuleFunction · 0.80
serializeProgramMethod · 0.80

Calls 4

hash64zFunction · 0.85
c_strMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected