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

Method registerAnnotation

src/ast/ast_module.cpp:451–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449 }
450
451 void Module::registerAnnotation ( AnnotationPtr ptr ) {
452 auto key = hash64z(ptr->name.c_str());
453 if ( handleTypes.find(key)==handleTypes.end() ) {
454 ptr->module = this;
455 handleTypes[key] = ptr;
456 }
457 }
458
459 bool Module::addAnnotation ( AnnotationPtr ptr, bool canFail ) {
460 auto key = hash64z(ptr->name.c_str());

Callers 1

BasicStructureAnnotationFunction · 0.80

Calls 4

hash64zFunction · 0.85
c_strMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected