summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-09-23 20:50:27 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-23 21:28:14 -0300
commit15897cd9c38002cfed85d312dd559c6fa4da4cb2 (patch)
tree24ed2310806f0194eb4a309670077a771d3aad2d /src/bin/eolian_mono/eolian/mono/klass.hh
parent7dcce72eb7bf248ff2d8b1b26a181f3a74392863 (diff)
efl-mono: Additional blank line between all methods.
Summary: For better indentation, adding a blank line in the end of methods. Test Plan: using efl_ui_layout.eo.cs, efl_access_object.eo.cs, efl_part.eo.cs and efl_ui_factory_bind.eo.cs as references, apply changes to the code then check the diffs of after and before of the references files Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, felipealmeida, lauromoura Tags: PHID-PROJ-uhnmnvlvunw6jgoqdnd4, #efl_language_bindings, #refactoring Maniphest Tasks: T8167 Differential Revision: https://phab.enlightenment.org/D9712
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 80ac37c..f330264 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -127,10 +127,10 @@ struct klass
127 if(!as_generator("\n{\n").generate(sink, attributes::unused, iface_cxt)) 127 if(!as_generator("\n{\n").generate(sink, attributes::unused, iface_cxt))
128 return false; 128 return false;
129 129
130 if(!as_generator(*(scope_tab << function_declaration)).generate(sink, cls.functions, iface_cxt)) 130 if(!as_generator(*(function_declaration)).generate(sink, cls.functions, iface_cxt))
131 return false; 131 return false;
132 132
133 if(!as_generator(*(scope_tab << async_function_declaration)).generate(sink, cls.functions, iface_cxt)) 133 if(!as_generator(*(async_function_declaration)).generate(sink, cls.functions, iface_cxt))
134 return false; 134 return false;
135 135
136 if(!as_generator(*(event_declaration)).generate(sink, cls.events, iface_cxt)) 136 if(!as_generator(*(event_declaration)).generate(sink, cls.events, iface_cxt))
@@ -147,7 +147,7 @@ struct klass
147 return false; 147 return false;
148 148
149 // End of interface declaration 149 // End of interface declaration
150 if(!as_generator("}\n").generate(sink, attributes::unused, iface_cxt)) return false; 150 if(!as_generator("}\n\n").generate(sink, attributes::unused, iface_cxt)) return false;
151 } 151 }
152 152
153 // Events arguments go in the top namespace to avoid the Concrete suffix clutter in interface events. 153 // Events arguments go in the top namespace to avoid the Concrete suffix clutter in interface events.
@@ -213,7 +213,7 @@ struct klass
213 ( 213 (
214 scope_tab << "[System.Runtime.InteropServices.DllImport(" << context_find_tag<library_context>(concrete_cxt).actual_library_name(cls.filename) 214 scope_tab << "[System.Runtime.InteropServices.DllImport(" << context_find_tag<library_context>(concrete_cxt).actual_library_name(cls.filename)
215 << ")] internal static extern System.IntPtr\n" 215 << ")] internal static extern System.IntPtr\n"
216 << scope_tab << scope_tab << name_helpers::klass_get_name(cls) << "();\n" 216 << scope_tab << scope_tab << name_helpers::klass_get_name(cls) << "();\n\n"
217 << scope_tab << "/// <summary>Initializes a new instance of the <see cref=\"" << interface_name << "\"/> class.\n" 217 << scope_tab << "/// <summary>Initializes a new instance of the <see cref=\"" << interface_name << "\"/> class.\n"
218 << scope_tab << "/// Internal usage: This is used when interacting with C code and should not be used directly.</summary>\n" 218 << scope_tab << "/// Internal usage: This is used when interacting with C code and should not be used directly.</summary>\n"
219 << scope_tab << "/// <param name=\"wh\">The native pointer to be wrapped.</param>\n" 219 << scope_tab << "/// <param name=\"wh\">The native pointer to be wrapped.</param>\n"
@@ -262,7 +262,7 @@ struct klass
262 scope_tab << "private static IntPtr GetEflClassStatic()\n" 262 scope_tab << "private static IntPtr GetEflClassStatic()\n"
263 << scope_tab << "{\n" 263 << scope_tab << "{\n"
264 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n" 264 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n"
265 << scope_tab << "}\n" 265 << scope_tab << "}\n\n"
266 ).generate(sink, attributes::unused, concrete_cxt)) 266 ).generate(sink, attributes::unused, concrete_cxt))
267 return false; 267 return false;
268 268
@@ -342,7 +342,7 @@ struct klass
342 scope_tab << "private static IntPtr GetEflClassStatic()\n" 342 scope_tab << "private static IntPtr GetEflClassStatic()\n"
343 << scope_tab << "{\n" 343 << scope_tab << "{\n"
344 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n" 344 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n"
345 << scope_tab << "}\n" 345 << scope_tab << "}\n\n"
346 ).generate(sink, attributes::unused, inherit_cxt)) 346 ).generate(sink, attributes::unused, inherit_cxt))
347 return false; 347 return false;
348 348
@@ -370,8 +370,8 @@ struct klass
370 << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes 370 << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes
371 <<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls) 371 <<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls)
372 << "_ExtensionMethods {\n" 372 << "_ExtensionMethods {\n"
373 << *((scope_tab << property_extension_method_definition(cls)) << "\n") 373 << *(property_extension_method_definition(cls))
374 << *((scope_tab << part_extension_method_definition(cls)) << "\n") 374 << *(part_extension_method_definition(cls))
375 << "}\n" 375 << "}\n"
376 << "#pragma warning restore CS1591\n" 376 << "#pragma warning restore CS1591\n"
377 << "#endif\n") 377 << "#endif\n")
@@ -416,7 +416,7 @@ struct klass
416 { 416 {
417 if(!as_generator( 417 if(!as_generator(
418 indent << scope_tab << "private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(" 418 indent << scope_tab << "private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule("
419 << indent << context_find_tag<library_context>(context).actual_library_name(cls.filename) << ");\n" 419 << context_find_tag<library_context>(context).actual_library_name(cls.filename) << ");\n\n"
420 ).generate(sink, attributes::unused, inative_cxt)) 420 ).generate(sink, attributes::unused, inative_cxt))
421 return false; 421 return false;
422 } 422 }
@@ -466,7 +466,7 @@ struct klass
466 466
467 if(!as_generator( 467 if(!as_generator(
468 indent << scope_tab << scope_tab << "return descs;\n" 468 indent << scope_tab << scope_tab << "return descs;\n"
469 << indent << scope_tab << "}\n" 469 << indent << scope_tab << "}\n\n"
470 ).generate(sink, attributes::unused, inative_cxt)) 470 ).generate(sink, attributes::unused, inative_cxt))
471 return false; 471 return false;
472 472
@@ -532,7 +532,7 @@ struct klass
532 if(!as_generator( 532 if(!as_generator(
533 scope_tab << "[System.Runtime.InteropServices.DllImport(" << context_find_tag<library_context>(context).actual_library_name(cls.filename) 533 scope_tab << "[System.Runtime.InteropServices.DllImport(" << context_find_tag<library_context>(context).actual_library_name(cls.filename)
534 << ")] internal static extern System.IntPtr\n" 534 << ")] internal static extern System.IntPtr\n"
535 << scope_tab << scope_tab << name_helpers::klass_get_name(cls) << "();\n" 535 << scope_tab << scope_tab << name_helpers::klass_get_name(cls) << "();\n\n"
536 ).generate(sink, attributes::unused, context)) 536 ).generate(sink, attributes::unused, context))
537 return false; 537 return false;
538 538
@@ -607,7 +607,7 @@ struct klass
607 return true; 607 return true;
608 608
609 // Self events 609 // Self events
610 if (!as_generator(*(event_definition(cls, cls))).generate(sink, cls.events, context)) 610 if (!as_generator(*(event_definition(cls, cls)) << "\n").generate(sink, cls.events, context))
611 return false; 611 return false;
612 612
613 // Inherited events 613 // Inherited events