summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-10-13 23:45:17 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-14 00:48:19 -0300
commite60ba39364e13546ec124a732e19b3a45682d605 (patch)
tree1f685f30026d1e7c03753de4db39b20ec113e322 /src/bin
parent8686e14dc9bdc1fe18fe1d9d855fca64aa9e8580 (diff)
csharp: Add since documentation to Async methods
Reviewers: lauromoura Reviewed By: lauromoura After review, fixed formatting and indentation. Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8359 Differential Revision: https://phab.enlightenment.org/D10384
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/async_function_definition.hh26
1 files changed, 24 insertions, 2 deletions
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 a6907a2..8ca3c5c 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
57 return true; 57 return true;
58 58
59 if (!as_generator( 59 if (!as_generator(
60 scope_tab << "/// <summary>Async wrapper for <see cref=\"" << name_helpers::managed_method_name(f) << "\" />.</summary>\n" 60 scope_tab << "/// <summary>Async wrapper for <see cref=\"" << name_helpers::managed_method_name(f) << "\" />.\n"
61 ).generate(sink, attributes::unused, context))
62 return false;
63
64 if (!f.documentation.since.empty())
65 if (!as_generator
66 (scope_tab << "/// <para>Since EFL " + f.documentation.since + ".</para>\n")
67 .generate (sink, attributes::unused, context))
68 return false;
69
70 if (!as_generator(
71 scope_tab << "/// </summary>\n"
61 ).generate(sink, attributes::unused, context)) 72 ).generate(sink, attributes::unused, context))
62 return false; 73 return false;
63 74
@@ -104,7 +115,18 @@ struct async_function_definition_generator
104 std::transform(f.parameters.begin(), f.parameters.end(), std::back_inserter(param_forwarding), parameter_forwarding); 115 std::transform(f.parameters.begin(), f.parameters.end(), std::back_inserter(param_forwarding), parameter_forwarding);
105 116
106 if (!as_generator( 117 if (!as_generator(
107 scope_tab << "/// <summary>Async wrapper for <see cref=\"" << name_helpers::managed_method_name(f) << "\" />.</summary>\n" 118 scope_tab << "/// <summary>Async wrapper for <see cref=\"" << name_helpers::managed_method_name(f) << "\" />.\n"
119 ).generate(sink, attributes::unused, context))
120 return false;
121
122 if (!f.documentation.since.empty())
123 if (!as_generator
124 (scope_tab << "/// <para>Since EFL " + f.documentation.since + ".</para>\n")
125 .generate (sink, attributes::unused, context))
126 return false;
127
128 if (!as_generator(
129 scope_tab << "/// </summary>\n"
108 ).generate(sink, attributes::unused, context)) 130 ).generate(sink, attributes::unused, context))
109 return false; 131 return false;
110 132