summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/part_definition.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-16 16:26:13 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-26 10:55:18 -0300
commit429d7510b06d3b475b8b924fbf642ef4313f0b26 (patch)
tree298563af635d38381a4258e4b8b85d3a056017e8 /src/bin/eolian_mono/eolian/mono/part_definition.hh
parent628e5ab95029c222e5f2eca3fa9a3702015fb8c1 (diff)
efl_mono: Reorganize utility functions.
Summary: Blacklist functions are all in the header/namespace blacklist. Helper functions returning strings (names) are in the name_helpers header. They act somewhat like "mini-generators". Helpers.hh was left with other kind of helper functions (checks, etc) that do not return strings. Depends on D5992 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5993
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/part_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/part_definition.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/part_definition.hh b/src/bin/eolian_mono/eolian/mono/part_definition.hh
index 3341f1e894..bb2e50f6c9 100644
--- a/src/bin/eolian_mono/eolian/mono/part_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/part_definition.hh
@@ -8,6 +8,7 @@
8#include "grammar/indentation.hpp" 8#include "grammar/indentation.hpp"
9 9
10#include "utils.hh" 10#include "utils.hh"
11#include "name_helpers.hh"
11#include "documentation.hh" 12#include "documentation.hh"
12 13
13namespace eolian_mono { 14namespace eolian_mono {
@@ -17,7 +18,7 @@ struct part_definition_generator
17 template <typename OutputIterator, typename Context> 18 template <typename OutputIterator, typename Context>
18 bool generate(OutputIterator sink, attributes::part_def const& part, Context const& context) const 19 bool generate(OutputIterator sink, attributes::part_def const& part, Context const& context) const
19 { 20 {
20 std::string part_klass_name = helpers::klass_name_to_csharp(part.klass); 21 std::string part_klass_name = name_helpers::klass_name_to_csharp(part.klass);
21 return as_generator(scope_tab << documentation 22 return as_generator(scope_tab << documentation
22 << scope_tab << "public " << part_klass_name << " " << utils::capitalize(part.name) << "\n" 23 << scope_tab << "public " << part_klass_name << " " << utils::capitalize(part.name) << "\n"
23 << scope_tab << "{\n" 24 << scope_tab << "{\n"