forked from enlightenment/efl
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
This commit is contained in:
parent
eb12c77761
commit
8146728c78
|
@ -45,11 +45,11 @@ struct constant_definition_generator
|
|||
template<typename OutputIterator, typename Context>
|
||||
bool generate(OutputIterator sink, attributes::constant_def constant, Context const& context) const
|
||||
{
|
||||
// Open partial class
|
||||
// Open static partial class
|
||||
if (!name_helpers::open_namespaces(sink, constant.namespaces, context))
|
||||
return false;
|
||||
|
||||
if (!as_generator("public partial class Constants\n{\n").generate(sink, attributes::unused, context))
|
||||
if (!as_generator("public static partial class Constants\n{\n").generate(sink, attributes::unused, context))
|
||||
return false;
|
||||
|
||||
std::string literal;
|
||||
|
@ -83,7 +83,7 @@ struct constant_definition_generator
|
|||
|
||||
// FIXME missing documentation generator
|
||||
|
||||
// Close partial class
|
||||
// Close static partial class
|
||||
if (!as_generator("}\n").generate(sink, attributes::unused, context))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue