summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-17 16:09:20 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-17 16:11:55 +0100
commit8dca5fe677b2c23e73b8bb672f4ba84ba214c3ac (patch)
tree5a44aeda3868b75c4c6c68cd2b85ce9301940f74 /src/bin/eolian_mono/eolian/mono/klass.hh
parent2865b7cddb8a0d6a5f8ecaed7a6f078dd300e8c8 (diff)
csharp: Rename register_event_proxies.
Summary: To better adhere to C# conventions and state it is for generated code only. Ref T7702 Reviewers: vitor.sousa, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7702 Differential Revision: https://phab.enlightenment.org/D8369
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 9afb6aa..e2f7909 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -237,7 +237,7 @@ struct klass
237 << scope_tab << "public " << concrete_name << "(System.IntPtr raw)" << (root ? "" : " : base(raw)") << "\n" 237 << scope_tab << "public " << concrete_name << "(System.IntPtr raw)" << (root ? "" : " : base(raw)") << "\n"
238 << scope_tab << "{\n" 238 << scope_tab << "{\n"
239 << scope_tab << scope_tab << (root ? "handle = raw;\n" : "") 239 << scope_tab << scope_tab << (root ? "handle = raw;\n" : "")
240 << scope_tab << scope_tab << "register_event_proxies();\n" 240 << scope_tab << scope_tab << "RegisterEventProxies();\n"
241 << scope_tab << "}\n" 241 << scope_tab << "}\n"
242 ) 242 )
243 .generate(sink, attributes::unused, concrete_cxt)) 243 .generate(sink, attributes::unused, concrete_cxt))
@@ -537,7 +537,7 @@ struct klass
537 << scope_tab << "public " << inherit_name << "(System.IntPtr raw)" << (root ? "" : " : base(raw)") << "\n" 537 << scope_tab << "public " << inherit_name << "(System.IntPtr raw)" << (root ? "" : " : base(raw)") << "\n"
538 << scope_tab << "{\n" 538 << scope_tab << "{\n"
539 << scope_tab << scope_tab << (root ? "handle = raw;\n" : "") 539 << scope_tab << scope_tab << (root ? "handle = raw;\n" : "")
540 << scope_tab << scope_tab << "register_event_proxies();\n" 540 << scope_tab << scope_tab << "RegisterEventProxies();\n"
541 << scope_tab << "}\n" 541 << scope_tab << "}\n"
542 ).generate(sink, std::make_tuple(constructors, constructors, constructors), context)) 542 ).generate(sink, std::make_tuple(constructors, constructors, constructors), context))
543 return false; 543 return false;
@@ -563,7 +563,7 @@ struct klass
563 << scope_tab << scope_tab << scope_tab << "actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(base_klass, ((object)this).GetType());\n" 563 << scope_tab << scope_tab << scope_tab << "actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(base_klass, ((object)this).GetType());\n"
564 << scope_tab << scope_tab << "}\n" 564 << scope_tab << scope_tab << "}\n"
565 << scope_tab << scope_tab << "handle = Efl.Eo.Globals.instantiate_start(actual_klass, parent);\n" 565 << scope_tab << scope_tab << "handle = Efl.Eo.Globals.instantiate_start(actual_klass, parent);\n"
566 << scope_tab << scope_tab << "register_event_proxies();\n" 566 << scope_tab << scope_tab << "RegisterEventProxies();\n"
567 << scope_tab << "}\n" 567 << scope_tab << "}\n"
568 568
569 << scope_tab << "protected void FinishInstantiation()\n" 569 << scope_tab << "protected void FinishInstantiation()\n"
@@ -632,7 +632,8 @@ struct klass
632 632
633 // Event proxy registration 633 // Event proxy registration
634 if (!as_generator( 634 if (!as_generator(
635 scope_tab << (is_inherit_context(context) || !root ? "protected " : "") << virtual_modifier << "void register_event_proxies()\n" 635 scope_tab << "///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>\n"
636 << scope_tab << (is_inherit_context(context) || !root ? "protected " : "") << virtual_modifier << "void RegisterEventProxies()\n"
636 << scope_tab << "{\n" 637 << scope_tab << "{\n"
637 ) 638 )
638 .generate(sink, NULL, context)) 639 .generate(sink, NULL, context))
@@ -641,7 +642,7 @@ struct klass
641 // Generate event registrations here 642 // Generate event registrations here
642 643
643 if (!root) 644 if (!root)
644 if (!as_generator(scope_tab << scope_tab << "base.register_event_proxies();\n").generate(sink, NULL, context)) 645 if (!as_generator(scope_tab << scope_tab << "base.RegisterEventProxies();\n").generate(sink, NULL, context))
645 return false; 646 return false;
646 647
647 // Assigning the delegates 648 // Assigning the delegates