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

Method findUniqueFunction

src/ast/ast_module.cpp:701–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699 }
700
701 FunctionPtr Module::findUniqueFunction ( const string & mangledName ) const {
702 auto it = functionsByName.find(hash64z(mangledName.c_str()));
703 if ( !it ) return nullptr;
704 if ( it->second.size()!=1 ) return nullptr;
705 return it->second[0];
706 }
707
708 StructurePtr Module::findStructureByMangledNameHash ( uint64_t hash ) const {
709 return structures.find(hash);

Callers 1

jit_init_extern_functionFunction · 0.80

Calls 4

hash64zFunction · 0.85
findMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected