| 61 | // ANNOTATION |
| 62 | |
| 63 | const AnnotationArgument * AnnotationArgumentList::find ( const string & name, Type type ) const { |
| 64 | auto it = find_if(begin(), end(), [&](const AnnotationArgument & arg){ |
| 65 | return (arg.name==name) && (type==Type::tVoid || type==arg.type); |
| 66 | }); |
| 67 | return it==end() ? nullptr : &*it; |
| 68 | } |
| 69 | |
| 70 | bool AnnotationArgumentList::getBoolOption(const string & name, bool def) const { |
| 71 | auto arg = find(name, Type::tBool); |
no test coverage detected