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

Method addModule

src/ast/ast_program.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 Module * Program::addModule ( const string & name ) {
155 if ( auto lm = library.findModule(name) ) {
156 return lm;
157 }
158 if ( auto pm = Module::require(name) ) {
159 library.addModule(pm);
160 return pm;
161 }
162 return nullptr;
163 }
164
165 bool Program::addAlias ( const TypeDeclPtr & at ) {
166 return thisModule->addAlias(at, true);

Callers 1

ProgramMethod · 0.45

Calls 1

findModuleMethod · 0.80

Tested by

no test coverage detected