summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-23 14:18:42 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-08-23 14:26:24 -0300
commitb4a64444735c1bef6703edc0783fc8256b08329e (patch)
treeeb1fa200048aab656c14fd932ab81b4ba26b62d8 /src/bin/eolian_mono/eolian/mono/klass.hh
parentf3d9238e15ceb189644e9069ed3a477b9beb3d86 (diff)
csharp: Only build extension methods for beta
Reviewers: felipealmeida, SanghyeonLee Reviewed By: SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9714
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 9c466d7..819497a 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -358,13 +358,15 @@ struct klass
358 } 358 }
359 359
360 if(!as_generator 360 if(!as_generator
361 (lit("#pragma warning disable CS1591\n") // Disabling warnings as DocFx will hide these classes 361 (lit("#if EFL_BETA\n")
362 << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes
362 <<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls) 363 <<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls)
363 << "_ExtensionMethods {\n" 364 << "_ExtensionMethods {\n"
364 << *((scope_tab << property_extension_method_definition(cls)) << "\n") 365 << *((scope_tab << property_extension_method_definition(cls)) << "\n")
365 << *((scope_tab << part_extension_method_definition(cls)) << "\n") 366 << *((scope_tab << part_extension_method_definition(cls)) << "\n")
366 << "}\n" 367 << "}\n"
367 << lit("#pragma warning restore CS1591\n")) 368 << "#pragma warning restore CS1591\n"
369 << "#endif\n")
368 .generate(sink, std::make_tuple(cls.namespaces, implementable_properties, cls.parts), context)) 370 .generate(sink, std::make_tuple(cls.namespaces, implementable_properties, cls.parts), context))
369 return false; 371 return false;
370 372