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

Method findStaticAnnotation

src/ast/ast_module.cpp:1167–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165 }
1166
1167 vector<AnnotationPtr> ModuleLibrary::findStaticAnnotation ( const string & name ) const {
1168 vector<AnnotationPtr> ptr;
1169 string moduleName, annName;
1170 splitTypeName(name, moduleName, annName);
1171 Module::foreach([&](Module * pm) -> bool {
1172 if ( auto pp = pm->findAnnotation(annName) )
1173 ptr.push_back(pp);
1174 return true;
1175 });
1176 return ptr;
1177 }
1178
1179 TypeDeclPtr ModuleLibrary::makeHandleType ( const string & name ) const {
1180 auto t = new TypeDecl(Type::tHandle);

Callers

nothing calls this directly

Calls 3

splitTypeNameFunction · 0.85
findAnnotationMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected