summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-12-20 14:25:38 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-12-20 14:27:14 +0900
commit8146728c780914614ec49177edd5ea18030065e3 (patch)
tree4d66c57794f5b2ba5c36bffd379b818298d34494 /src/bin
parenteb12c777613e46dd56ee79907c179341d887d84c (diff)
eolian_mono: change Constants class to static class
Summary: Since Constants class contains static readonly values only, the Constants class is actually a static class. Therefore, Constants class is changed from public partial class to public static partial class. ref T8398 Reviewers: YOhoho, lauromoura Reviewed By: YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10929
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/variable_definition.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/variable_definition.hh b/src/bin/eolian_mono/eolian/mono/variable_definition.hh
index e63db20..fe9f673 100644
--- a/src/bin/eolian_mono/eolian/mono/variable_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/variable_definition.hh
@@ -45,11 +45,11 @@ struct constant_definition_generator
45 template<typename OutputIterator, typename Context> 45 template<typename OutputIterator, typename Context>
46 bool generate(OutputIterator sink, attributes::constant_def constant, Context const& context) const 46 bool generate(OutputIterator sink, attributes::constant_def constant, Context const& context) const
47 { 47 {
48 // Open partial class 48 // Open static partial class
49 if (!name_helpers::open_namespaces(sink, constant.namespaces, context)) 49 if (!name_helpers::open_namespaces(sink, constant.namespaces, context))
50 return false; 50 return false;
51 51
52 if (!as_generator("public partial class Constants\n{\n").generate(sink, attributes::unused, context)) 52 if (!as_generator("public static partial class Constants\n{\n").generate(sink, attributes::unused, context))
53 return false; 53 return false;
54 54
55 std::string literal; 55 std::string literal;
@@ -83,7 +83,7 @@ struct constant_definition_generator
83 83
84 // FIXME missing documentation generator 84 // FIXME missing documentation generator
85 85
86 // Close partial class 86 // Close static partial class
87 if (!as_generator("}\n").generate(sink, attributes::unused, context)) 87 if (!as_generator("}\n").generate(sink, attributes::unused, context))
88 return false; 88 return false;
89 89