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

Function addNewModules

utils/dasFormatter/fmt.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void addNewModules(ModuleGroup &libGroup, ProgramPtr program) {
112 libGroup.addModule(program->thisModule.release());
113 program->library.foreach([&](Module *pm) -> bool {
114 if (!pm->name.empty() && pm->name != "$") {
115 if (!libGroup.findModule(pm->name)) {
116 libGroup.addModule(pm);
117 }
118 }
119 return true;
120 }, "*");
121}
122
123Result transform_syntax(const string &filename, const string content, format::FormatOptions options) {
124 auto src = content;

Callers 1

transform_syntaxFunction · 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