summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-05-03 10:09:58 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-03 13:59:11 +0200
commit7047a056abb6e44811f12bab37546bdfb1ad98ab (patch)
treefb9126db459831cdd938b891c38ec10bee54c0e8 /src/bin/eolian_mono/eolian/mono/klass.hh
parent2426656fd6b444b5b5fa86920dc9b61ff2fa10b1 (diff)
csharp: Some docs improvements.
Summary: - Silent missing docs warnign for API delegates - Document variables - Better docs for async functions Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8809
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index c81a23f..9d3711f 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -465,9 +465,9 @@ struct klass
465 465
466 // Native method definitions 466 // Native method definitions
467 if(!as_generator( 467 if(!as_generator(
468 indent << scope_tab << "#pragma warning disable CA1707, SA1300, SA1600\n\n" 468 indent << scope_tab << "#pragma warning disable CA1707, CS1591, SA1300, SA1600\n\n"
469 << *(native_function_definition(cls)) 469 << *(native_function_definition(cls))
470 << indent << scope_tab << "#pragma warning restore CA1707, SA1300, SA1600\n\n") 470 << indent << scope_tab << "#pragma warning restore CA1707, CS1591, SA1300, SA1600\n\n")
471 .generate(sink, implementable_methods, change_indentation(indent.inc(), inative_cxt))) return false; 471 .generate(sink, implementable_methods, change_indentation(indent.inc(), inative_cxt))) return false;
472 472
473 if(!as_generator("}\n").generate(sink, attributes::unused, inative_cxt)) return false; 473 if(!as_generator("}\n").generate(sink, attributes::unused, inative_cxt)) return false;
@@ -516,15 +516,19 @@ struct klass
516 return true; 516 return true;
517 517
518 if (cls.get_all_events().size() > 0) 518 if (cls.get_all_events().size() > 0)
519 if (!as_generator(scope_tab << visibility << "Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>();\n" 519 if (!as_generator(
520 << scope_tab << visibility << "readonly object eventLock = new object();\n") 520 scope_tab << "/// <summary>Internal usage by derived classes to track native events.</summary>\n"
521 << scope_tab << visibility << "Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>();\n"
522 << scope_tab << "/// <summary>Internal usage by derived classes to lock native event handlers.</summary>\n"
523 << scope_tab << visibility << "readonly object eventLock = new object();\n")
521 .generate(sink, attributes::unused, context)) 524 .generate(sink, attributes::unused, context))
522 return false; 525 return false;
523 526
524 if (is_inherit) 527 if (is_inherit)
525 { 528 {
526 if (!as_generator( 529 if (!as_generator(
527 scope_tab << "protected bool inherited;\n" 530 scope_tab << "/// <summary>Internal usage to detect whether this instance is from a generated class or not.</summary>\n"
531 << scope_tab << "protected bool inherited;\n"
528 ).generate(sink, attributes::unused, context)) 532 ).generate(sink, attributes::unused, context))
529 return false; 533 return false;
530 } 534 }