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

Method findOption

src/ast/ast_module.cpp:329–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327 }
328
329 Type Module::findOption ( const string & name ) {
330 Type optT = Type::none;
331 for ( auto m = daScriptEnvironment::getBound()->modules; m != nullptr; m = m->next ) {
332 auto tt = m->getOptionType(name);
333 if ( tt != Type::none ) {
334 DAS_ASSERTF(optT==Type::none, "duplicate module option %s", name.c_str());
335 optT = tt;
336 }
337 }
338 return optT;
339 }
340
341 Module::Module ( const string & n ) {
342 setModuleName(n);

Callers

nothing calls this directly

Calls 2

getOptionTypeMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected