| 280 | struct EventRegistrator : StructureAnnotation { |
| 281 | EventRegistrator() : StructureAnnotation("event") {} |
| 282 | bool touch ( const StructurePtr & st, ModuleGroup & /*libGroup*/, |
| 283 | const AnnotationArgumentList & /*args*/, string & /*err*/ ) override { |
| 284 | st->fields.emplace(st->fields.begin(), "eventFlags", new TypeDecl(Type::tUInt16), |
| 285 | ExpressionPtr(), AnnotationArgumentList(), false, st->at); |
| 286 | st->fields.emplace(st->fields.begin(), "eventSize", new TypeDecl(Type::tUInt16), |
| 287 | ExpressionPtr(), AnnotationArgumentList(), false, st->at); |
| 288 | st->fields.emplace(st->fields.begin(), "eventType", new TypeDecl(Type::tUInt64), |
| 289 | ExpressionPtr(), AnnotationArgumentList(), false, st->at); |
| 290 | return true; |
| 291 | } |
| 292 | bool look (const StructurePtr & /*st*/, ModuleGroup & /*libGroup*/, |
| 293 | const AnnotationArgumentList & /*args*/, string & /* err */ ) override { |
| 294 | return true; |
nothing calls this directly
no test coverage detected