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

Function addNewModules

src/ast/ast_parse.cpp:1070–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068 }
1069
1070 void addNewModules ( ModuleGroup & libGroup, ProgramPtr program ) {
1071 libGroup.addModule(program->thisModule.release());
1072 program->library.foreach([&](Module * pm) -> bool {
1073 if ( !pm->name.empty() && pm->name!="$" ) {
1074 if ( !libGroup.findModule(pm->name) ) {
1075 libGroup.addModule(pm);
1076 }
1077 }
1078 return true;
1079 }, "*");
1080 }
1081
1082 bool canShareModule ( ProgramPtr program ) {
1083 // Check if all dependencies are shared too

Callers 1

compileDaScriptFunction · 0.70

Calls 5

findModuleMethod · 0.80
addModuleMethod · 0.45
releaseMethod · 0.45
foreachMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected