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

Method foreach_in_order

src/ast/ast_module.cpp:1012–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010 }
1011
1012 void ModuleLibrary::foreach_in_order ( const callable<bool (Module * module)> & func, Module * thisM ) const {
1013 DAS_ASSERT(modules.size());
1014 // {builtin} {THIS_MODULE} {require1} {require2} ...
1015 for (auto module : modules) {
1016 if ( module==thisM ) continue;
1017 if ( !func(module) ) return;
1018 }
1019 if (thisM) {
1020 func(thisM);
1021 }
1022 }
1023
1024 Module * ModuleLibrary::findModuleByMangledNameHash ( uint64_t hash ) const {
1025 auto it = moduleLookupByHash.find(hash);

Callers 5

allocateStackMethod · 0.80
visitModulesInOrderMethod · 0.80
simulateMethod · 0.80
for_each_moduleFunction · 0.80
for_each_module_no_orderFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected