| 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); |
nothing calls this directly
no test coverage detected