diff --git a/src/bin/eolian_mono/eolian/mono/async_function_definition.hh b/src/bin/eolian_mono/eolian/mono/async_function_definition.hh index a6907a2a95..8ca3c5c6b2 100644 --- a/src/bin/eolian_mono/eolian/mono/async_function_definition.hh +++ b/src/bin/eolian_mono/eolian/mono/async_function_definition.hh @@ -57,7 +57,18 @@ struct async_function_declaration_generator return true; if (!as_generator( - scope_tab << "/// Async wrapper for .\n" + scope_tab << "/// Async wrapper for .\n" + ).generate(sink, attributes::unused, context)) + return false; + + if (!f.documentation.since.empty()) + if (!as_generator + (scope_tab << "/// Since EFL " + f.documentation.since + ".\n") + .generate (sink, attributes::unused, context)) + return false; + + if (!as_generator( + scope_tab << "/// \n" ).generate(sink, attributes::unused, context)) return false; @@ -104,7 +115,18 @@ struct async_function_definition_generator std::transform(f.parameters.begin(), f.parameters.end(), std::back_inserter(param_forwarding), parameter_forwarding); if (!as_generator( - scope_tab << "/// Async wrapper for .\n" + scope_tab << "/// Async wrapper for .\n" + ).generate(sink, attributes::unused, context)) + return false; + + if (!f.documentation.since.empty()) + if (!as_generator + (scope_tab << "/// Since EFL " + f.documentation.since + ".\n") + .generate (sink, attributes::unused, context)) + return false; + + if (!as_generator( + scope_tab << "/// \n" ).generate(sink, attributes::unused, context)) return false;