summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-08-02 13:49:20 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-08-02 13:49:20 +0200
commitf01b1134012bafcc4d0c82588230796a7c9ef5bb (patch)
treeb2a4ad6137a44122792f9c9235a1e72343a5bbc4 /src/bin
parent03cb0212ac26b4359263228851ece40cae474193 (diff)
mono-docs: Add event args link for event handlers
For some reason DocFX does not generate links for templated event handlers: event EventHandler<Efl.Input.IInterfacePointerOutEvt_Args> PointerOutEvt; After unsuccessfully trying to find out why, this patch adds the link to the event arguments in a <value> tag, so at least it shows in the documentation and the reader has somewhere to click to find out what arguments an event is sending.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/events.hh12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/events.hh b/src/bin/eolian_mono/eolian/mono/events.hh
index fc623d02e3..777d22591c 100644
--- a/src/bin/eolian_mono/eolian/mono/events.hh
+++ b/src/bin/eolian_mono/eolian/mono/events.hh
@@ -279,9 +279,15 @@ struct event_declaration_generator
279 wrapper_args_type = "<" + name_helpers::managed_event_args_name(evt) + ">"; 279 wrapper_args_type = "<" + name_helpers::managed_event_args_name(evt) + ">";
280 280
281 if (!as_generator( 281 if (!as_generator(
282 documentation(1) 282 documentation(1)
283 << scope_tab << "event EventHandler" << wrapper_args_type << " " << evt_name << ";\n" 283 ).generate(sink, evt, context)) return false;
284 ).generate(sink, evt, context)) 284 if (evt.type.is_engaged())
285 if (!as_generator(
286 scope_tab << scope_tab << "/// <value><see cref=\"" << name_helpers::managed_event_args_name(evt) << "\"/></value>\n"
287 ).generate(sink, evt, context)) return false;
288 if (!as_generator(
289 scope_tab << "event EventHandler" << wrapper_args_type << " " << evt_name << ";\n"
290 ).generate(sink, evt, context))
285 return false; 291 return false;
286 292
287 return true; 293 return true;