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

Method foreach

src/ast/ast_module.cpp:285–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 void Module::foreach ( const callable<bool (Module * module)> & func ) {
286 for (auto m = daScriptEnvironment::getBound()->modules; m != nullptr; m = m->next) {
287 if (!func(m)) break;
288 }
289 }
290
291 Module * Module::require ( const string & name ) {
292 if ( !daScriptEnvironment::getBound() ) return nullptr;

Callers 15

addNewModulesFunction · 0.45
transform_syntaxFunction · 0.45
lintMethod · 0.45
getReaderMacroMethod · 0.45
makeCallMethod · 0.45
visitStructureMethod · 0.45
visitModulesMethod · 0.45
visitModuleMethod · 0.45
optimizeMethod · 0.45
gc_collectMethod · 0.45
patchAnnotationsMethod · 0.45

Calls 1

findModuleFunction · 0.85

Tested by

no test coverage detected