summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-05-06 13:35:31 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-06 13:45:58 +0200
commit6d886693c8c349f9305e9bfdc01ecc0ab765685f (patch)
tree34fe06420ca76a9aa4ca4111155a2a5d47d18b20 /src/bin
parent653fddfc1e17e1290ddd5881150ada3738782d4e (diff)
csharp: Fix property helper doc indent
Summary: Documentation generators must received their indentation as parameter instead of explicit scope_tabs Fixes T7794 Reviewers: segfaultxavi, felipealmeida, vitor.sousa Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7794 Differential Revision: https://phab.enlightenment.org/D8818
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/function_definition.hh2
-rw-r--r--src/bin/eolian_mono/eolian/mono/part_definition.hh2
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/function_definition.hh b/src/bin/eolian_mono/eolian/mono/function_definition.hh
index 0dbd097f1d..d1ca5f573f 100644
--- a/src/bin/eolian_mono/eolian/mono/function_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/function_definition.hh
@@ -268,7 +268,7 @@ struct property_wrapper_definition_generator
268 std::string managed_name = name_helpers::property_managed_name(property); 268 std::string managed_name = name_helpers::property_managed_name(property);
269 269
270 if (!as_generator( 270 if (!as_generator(
271 scope_tab << documentation 271 documentation(1)
272 << scope_tab << (interface ? "" : "public ") << (is_static ? "static " : "") << type(true) << " " << managed_name << " {\n" 272 << scope_tab << (interface ? "" : "public ") << (is_static ? "static " : "") << type(true) << " " << managed_name << " {\n"
273 ).generate(sink, std::make_tuple(property, prop_type), context)) 273 ).generate(sink, std::make_tuple(property, prop_type), context))
274 return false; 274 return false;
diff --git a/src/bin/eolian_mono/eolian/mono/part_definition.hh b/src/bin/eolian_mono/eolian/mono/part_definition.hh
index 9c57587b33..484cd0d65a 100644
--- a/src/bin/eolian_mono/eolian/mono/part_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/part_definition.hh
@@ -22,7 +22,7 @@ struct part_definition_generator
22 return true; 22 return true;
23 23
24 auto part_klass_name = name_helpers::klass_full_concrete_or_interface_name(part.klass); 24 auto part_klass_name = name_helpers::klass_full_concrete_or_interface_name(part.klass);
25 return as_generator(scope_tab << documentation 25 return as_generator(documentation(1)
26 << scope_tab << "public " << part_klass_name << " " << name_helpers::managed_part_name(part) << "\n" 26 << scope_tab << "public " << part_klass_name << " " << name_helpers::managed_part_name(part) << "\n"
27 << scope_tab << "{\n" 27 << scope_tab << "{\n"
28 << scope_tab << scope_tab << "get\n" 28 << scope_tab << scope_tab << "get\n"
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 14d3f7fdb3..ba50f2d2f9 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -403,7 +403,7 @@ struct struct_definition_generator
403 field_name[0] = std::toupper(field_name[0]); // Hack to allow 'static' as a field name 403 field_name[0] = std::toupper(field_name[0]); // Hack to allow 'static' as a field name
404 if (!as_generator 404 if (!as_generator
405 ( 405 (
406 indent << scope_tab << documentation 406 documentation(indent.n + 1)
407 << indent << scope_tab << "public " << type << " " << string << ";\n" 407 << indent << scope_tab << "public " << type << " " << string << ";\n"
408 ) 408 )
409 .generate(sink, std::make_tuple(field, field.type, name_helpers::to_field_name(field.name)), context)) 409 .generate(sink, std::make_tuple(field, field.type, name_helpers::to_field_name(field.name)), context))