summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/part_definition.hh
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-13 09:45:16 +0900
committerYeongjong Lee <yj34.lee@samsung.com>2020-01-13 10:16:24 +0900
commit3fc78f69eb095e65c2be0bd172dd49d49b5b837f (patch)
treec968a761995b3ec745484c08a9e7f88cc9fd790b /src/bin/eolian_mono/eolian/mono/part_definition.hh
parenta7d5b089da67c4a30731ef876efe7530b6707db0 (diff)
eolian_mono: add 1 tab inside the namespace
Summary: Also, this patch will fix indentation of enum, struct. ### Before ``` namespace Efl.Ui { /// <summary>Define the move or resize mode of a window. /// /// The user can request the display server to start moving or resizing the window by combining these modes. However only limited combinations are allowed. ... [Efl.Eo.BindingEntity] public enum WinMoveResizeMode { /// <summary>Start moving window<br/>Since EFL 1.22.</summary> Move = 1, /// <summary>Start resizing window to the top<br/>Since EFL 1.22.</summary> Top = 2, ... } } ``` ### After ``` namespace Efl.Ui { /// <summary>Define the move or resize mode of a window. /// /// The user can request the display server to start moving or resizing the window by combining these modes. However only limited combinations are allowed. ... [Efl.Eo.BindingEntity] public enum WinMoveResizeMode { /// <summary>Start moving window<br/>Since EFL 1.22.</summary> Move = 1, /// <summary>Start resizing window to the top<br/>Since EFL 1.22.</summary> Top = 2, ... } } ``` Reviewers: Jaehyun_Cho, felipealmeida Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11032
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/part_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/part_definition.hh24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/part_definition.hh b/src/bin/eolian_mono/eolian/mono/part_definition.hh
index 0b8dece50c..4facf27209 100644
--- a/src/bin/eolian_mono/eolian/mono/part_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/part_definition.hh
@@ -37,14 +37,14 @@ struct part_definition_generator
37 return true; 37 return true;
38 38
39 auto part_klass_name = name_helpers::klass_full_concrete_or_interface_name(part.klass); 39 auto part_klass_name = name_helpers::klass_full_concrete_or_interface_name(part.klass);
40 return as_generator(documentation(1) 40 return as_generator(documentation(2)
41 << scope_tab << "public " << part_klass_name << " " << name_helpers::managed_part_name(part) << "\n" 41 << scope_tab(2) << "public " << part_klass_name << " " << name_helpers::managed_part_name(part) << "\n"
42 << scope_tab << "{\n" 42 << scope_tab(2) << "{\n"
43 << scope_tab << scope_tab << "get\n" 43 << scope_tab(2) << scope_tab << "get\n"
44 << scope_tab << scope_tab << "{\n" 44 << scope_tab(2) << scope_tab << "{\n"
45 << scope_tab << scope_tab << scope_tab << "return GetPart(\"" << part.name << "\") as " << part_klass_name << ";\n" 45 << scope_tab(2) << scope_tab << scope_tab << "return GetPart(\"" << part.name << "\") as " << part_klass_name << ";\n"
46 << scope_tab << scope_tab << "}\n" 46 << scope_tab(2) << scope_tab << "}\n"
47 << scope_tab << "}\n" 47 << scope_tab(2) << "}\n"
48 ).generate(sink, part.documentation, context); 48 ).generate(sink, part.documentation, context);
49 } 49 }
50 50
@@ -70,12 +70,12 @@ struct part_extension_method_definition_generator
70 bindableClass = "Efl.BindableFactoryPart"; 70 bindableClass = "Efl.BindableFactoryPart";
71 71
72 if (!as_generator( 72 if (!as_generator(
73 scope_tab << "public static " << bindableClass << "<" << part_klass_name << "> " << name_helpers::managed_part_name(part) << "<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<" 73 scope_tab(2) << "public static " << bindableClass << "<" << part_klass_name << "> " << name_helpers::managed_part_name(part) << "<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<"
74 << name_helpers::klass_full_concrete_or_interface_name(cls) 74 << name_helpers::klass_full_concrete_or_interface_name(cls)
75 << ", T> x=null) where T : " << name_helpers::klass_full_concrete_or_interface_name(cls) << "\n" 75 << ", T> x=null) where T : " << name_helpers::klass_full_concrete_or_interface_name(cls) << "\n"
76 << scope_tab << "{\n" 76 << scope_tab(2) << "{\n"
77 << scope_tab << scope_tab << "return new " << bindableClass << "<" << part_klass_name << ">(\"" << part.name << "\", fac);\n" 77 << scope_tab(2) << scope_tab << "return new " << bindableClass << "<" << part_klass_name << ">(\"" << part.name << "\", fac);\n"
78 << scope_tab << "}\n\n" 78 << scope_tab(2) << "}\n\n"
79 ).generate(sink, attributes::unused, context)) 79 ).generate(sink, attributes::unused, context))
80 return false; 80 return false;
81 81