jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=277c3e2ef38606678b6c52ed1841ab1b74c962bc

commit 277c3e2ef38606678b6c52ed1841ab1b74c962bc
Author: Yossi Kantor <yossi.kan...@samsung.com>
Date:   Mon Mar 24 13:21:28 2014 +0200

    Eolian: Explicit generation of either method or property in implemented 
functions
---
 src/bin/eolian/eo1_generator.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index fa3804e..1b4887e 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -694,10 +694,16 @@ eo1_source_end_generate(const char *classname, 
Eina_Strbuf *buf)
              goto end;
           }
 
+        /* e.g event_freeze can be a property or a method. If a type is 
explicit (property SET/GET),
+         * we assume it can't be a method.
+         */
+        if ((in_meth && in_prop) && (ftype == SET || ftype == GET)) in_meth = 
NULL;
+
         if (in_meth)
           {
              _template_fill(str_func, tmpl_impl_str, impl_class, funcname, 
EINA_FALSE);
              eo1_bind_func_generate(classname, in_meth, UNRESOLVED, str_bodyf, 
impl_class);
+             continue;
           }
 
         if (in_prop)

-- 


Reply via email to