summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-15 11:30:24 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-15 11:38:08 -0300
commit4acc7e066758eca4837df83ccf6262fb479cc4ff (patch)
tree95b0d5fcd4aa6363e8d9f8927cd3895cf46812e1 /src/bin/eolian_mono/eolian/mono/klass.hh
parent5ed079cb617e3a06b4727145693427a77d93b514 (diff)
csharp: Support Efl.Class for interfaces
Summary: The `GetEflClassStatic` method for interface is in their Concrete sidekick. Previously, passing a valid Eo interface as a type caused the binding to complain that `Type is not an Efl.Object`. Test Plan: run test case Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8360
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index a9f270d..66d450c 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -282,6 +282,15 @@ struct klass
282 return false; 282 return false;
283 } 283 }
284 284
285 // Copied from nativeinherit class, used when setting up providers.
286 if(!as_generator(
287 scope_tab << "private static IntPtr GetEflClassStatic()\n"
288 << scope_tab << "{\n"
289 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n"
290 << scope_tab << "}\n"
291 ).generate(sink, attributes::unused, concrete_cxt))
292 return false;
293
285 294
286 if(!as_generator("}\n").generate(sink, attributes::unused, concrete_cxt)) return false; 295 if(!as_generator("}\n").generate(sink, attributes::unused, concrete_cxt)) return false;
287 } 296 }