forked from enlightenment/efl
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
This commit is contained in:
parent
f3d9238e15
commit
b4a6444473
|
@ -358,13 +358,15 @@ struct klass
|
|||
}
|
||||
|
||||
if(!as_generator
|
||||
(lit("#pragma warning disable CS1591\n") // Disabling warnings as DocFx will hide these classes
|
||||
(lit("#if EFL_BETA\n")
|
||||
<< "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes
|
||||
<<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls)
|
||||
<< "_ExtensionMethods {\n"
|
||||
<< *((scope_tab << property_extension_method_definition(cls)) << "\n")
|
||||
<< *((scope_tab << part_extension_method_definition(cls)) << "\n")
|
||||
<< "}\n"
|
||||
<< lit("#pragma warning restore CS1591\n"))
|
||||
<< "#pragma warning restore CS1591\n"
|
||||
<< "#endif\n")
|
||||
.generate(sink, std::make_tuple(cls.namespaces, implementable_properties, cls.parts), context))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue