forked from enlightenment/efl
eolian_mono: add namespace to extension methods of ItemFactory
Summary: Like other classes and methods, the classes and methods for extension methods of ItemFactory are moved inside the namespace. Consequently, the namespace in the class name for extension methods is removed to avoid duplicate namespace name. Reviewers: lauromoura, felipealmeida, YOhoho, woohyun Reviewed By: YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10972
This commit is contained in:
parent
207da69c97
commit
1507ade787
|
@ -397,11 +397,14 @@ struct klass
|
|||
if (extension_method_stream.tellp() <= 0)
|
||||
return true;
|
||||
|
||||
if (!name_helpers::open_namespaces(sink, cls.namespaces, context))
|
||||
return false;
|
||||
|
||||
if(!as_generator
|
||||
(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"
|
||||
<< "public static class " << name_helpers::klass_concrete_name(cls)
|
||||
<< "ExtensionMethods {\n"
|
||||
<< extension_method_stream.str()
|
||||
<< "}\n"
|
||||
<< "#pragma warning restore CS1591\n"
|
||||
|
@ -409,6 +412,9 @@ struct klass
|
|||
.generate(sink, cls.namespaces, context))
|
||||
return false;
|
||||
|
||||
if (!name_helpers::close_namespaces(sink, cls.namespaces, context))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Efl.Ui;
|
||||
|
||||
#if EFL_BETA
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Efl.Ui;
|
||||
|
||||
namespace TestSuite {
|
||||
|
||||
|
|
Loading…
Reference in New Issue