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

Method touch

modules/dasUnitTest/test_handles.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280struct 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;

Callers

nothing calls this directly

Calls 3

emplaceMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected