summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/indentation.hpp
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 11:13:47 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 12:40:32 -0300
commit11094aeaaf001241fb2d5bc8e74e23e8db944a2d (patch)
tree64c8dccbc03587490f94454ce0692909d88ec186 /src/lib/eolian_cxx/grammar/indentation.hpp
parent09fd7ca8d60fc61a43891c0ace99e4741f787b17 (diff)
csharp: Add more since tags to members
Summary: - Class constructors and other members - Aliases fields ref T8359 Reviewers: felipealmeida, segfaultxavi, brunobelo, woohyun Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8359 Differential Revision: https://phab.enlightenment.org/D10419
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/indentation.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/eolian_cxx/grammar/indentation.hpp b/src/lib/eolian_cxx/grammar/indentation.hpp
index b88a14d392..3bf5d07dbe 100644
--- a/src/lib/eolian_cxx/grammar/indentation.hpp
+++ b/src/lib/eolian_cxx/grammar/indentation.hpp
@@ -53,6 +53,11 @@ struct scope_tab_generator
53 53
54 int n; 54 int n;
55 int m; 55 int m;
56
57 explicit operator std::string() const
58 {
59 return std::string(n * m, ' ');
60 }
56}; 61};
57 62
58template <> 63template <>
@@ -71,6 +76,12 @@ struct scope_tab_terminal
71 { 76 {
72 return {1}; 77 return {1};
73 } 78 }
79
80 explicit operator std::string() const
81 {
82 return static_cast<std::string>(scope_tab_generator{1});
83 }
84
74} const scope_tab = {}; 85} const scope_tab = {};
75 86
76template <> 87template <>