summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-06 19:08:44 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2020-01-06 19:08:44 +0900
commit278376df908bf1d49e3462df0d88063ff8867023 (patch)
treea14eb5940b3b6cf743ae91d8d94ace1df0d645f6
parent1507ade7875ad485cedb49c0d32ce510685bd0e1 (diff)
csharp: rename ExtensionMethods
Summary: This patch will rename `ExtensionMethods` to `Extensions` that is commonly used in csharp project. Depends on D10972 Test Plan: meson build -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, Jaehyun_Cho, felipealmeida Reviewed By: Jaehyun_Cho, felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10913
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh2
-rw-r--r--src/bindings/mono/eina_mono/eina_slice.cs5
-rw-r--r--src/tests/efl_mono/Eina.cs1
-rw-r--r--src/tests/efl_mono/EinaTestData.cs1
-rw-r--r--src/tests/efl_mono/StructHelpers.cs1
5 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 6c6fd906cd..3a93a2b72b 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -404,7 +404,7 @@ struct klass
404 (lit("#if EFL_BETA\n") 404 (lit("#if EFL_BETA\n")
405 << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes 405 << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes
406 << "public static class " << name_helpers::klass_concrete_name(cls) 406 << "public static class " << name_helpers::klass_concrete_name(cls)
407 << "ExtensionMethods {\n" 407 << "Extensions {\n"
408 << extension_method_stream.str() 408 << extension_method_stream.str()
409 << "}\n" 409 << "}\n"
410 << "#pragma warning restore CS1591\n" 410 << "#pragma warning restore CS1591\n"
diff --git a/src/bindings/mono/eina_mono/eina_slice.cs b/src/bindings/mono/eina_mono/eina_slice.cs
index 912ddea3bd..0b9311e48c 100644
--- a/src/bindings/mono/eina_mono/eina_slice.cs
+++ b/src/bindings/mono/eina_mono/eina_slice.cs
@@ -232,7 +232,9 @@ public struct RwSlice : ISliceBase, IEquatable<RwSlice>
232 232
233} 233}
234 234
235public static class Eina_SliceUtils 235namespace Eina
236{
237public static class SliceExtensions
236{ 238{
237 public static byte[] GetBytes(this Eina.ISliceBase slc) 239 public static byte[] GetBytes(this Eina.ISliceBase slc)
238 { 240 {
@@ -243,3 +245,4 @@ public static class Eina_SliceUtils
243 return mArray; 245 return mArray;
244 } 246 }
245} 247}
248}
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index 91e93986ff..bee62169bb 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -19,6 +19,7 @@ using System.Linq;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Runtime.CompilerServices; 20using System.Runtime.CompilerServices;
21 21
22using Eina;
22using EinaTestData; 23using EinaTestData;
23using static EinaTestData.BaseData; 24using static EinaTestData.BaseData;
24 25
diff --git a/src/tests/efl_mono/EinaTestData.cs b/src/tests/efl_mono/EinaTestData.cs
index 9727548f93..411e38d576 100644
--- a/src/tests/efl_mono/EinaTestData.cs
+++ b/src/tests/efl_mono/EinaTestData.cs
@@ -18,6 +18,7 @@ using System.Linq;
18using System.Runtime.InteropServices; 18using System.Runtime.InteropServices;
19using System.Runtime.CompilerServices; 19using System.Runtime.CompilerServices;
20using System.Diagnostics.Contracts; 20using System.Diagnostics.Contracts;
21using Eina;
21 22
22namespace EinaTestData 23namespace EinaTestData
23{ 24{
diff --git a/src/tests/efl_mono/StructHelpers.cs b/src/tests/efl_mono/StructHelpers.cs
index 781dbc16f1..9c9f75076e 100644
--- a/src/tests/efl_mono/StructHelpers.cs
+++ b/src/tests/efl_mono/StructHelpers.cs
@@ -17,6 +17,7 @@ using System;
17using System.Linq; 17using System.Linq;
18using System.Runtime.InteropServices; 18using System.Runtime.InteropServices;
19 19
20using Eina;
20using static EinaTestData.BaseData; 21using static EinaTestData.BaseData;
21 22
22namespace TestSuite 23namespace TestSuite