summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-08-16 16:32:13 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-16 16:33:37 +0200
commit2f147f272596306dc230a5085c5a5b21aae6ba3c (patch)
tree5b5c1f516917898bbd9359e1cf23aa6ce26aa587 /src/scripts
parent8a8a833837f7217aea0a33f4f7afbb6edfb103c4 (diff)
eolian: rename is_class api for functions to is_static
Still needs restriction to classes only etc to be done later. Ref https://phab.enlightenment.org/T8118 Ref https://phab.enlightenment.org/T7675
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/pyolian/eolian.py4
-rw-r--r--src/scripts/pyolian/eolian_lib.py6
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index c287b57c35..8ec4716a67 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -865,8 +865,8 @@ class Function(Object):
865 return self.scope_get(Eolian_Function_Type.PROP_SET) 865 return self.scope_get(Eolian_Function_Type.PROP_SET)
866 866
867 @cached_property 867 @cached_property
868 def is_class(self): 868 def is_static(self):
869 return bool(lib.eolian_function_is_class(self)) 869 return bool(lib.eolian_function_is_static(self))
870 870
871 @cached_property 871 @cached_property
872 def object_is_const(self): 872 def object_is_const(self):
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index b9ba5f27fa..b532e98197 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -332,9 +332,9 @@ lib.eolian_function_full_c_name_get.restype = c_void_p # Stringshare TO BE FREE
332lib.eolian_function_implement_get.argtypes = (c_void_p,) 332lib.eolian_function_implement_get.argtypes = (c_void_p,)
333lib.eolian_function_implement_get.restype = c_void_p 333lib.eolian_function_implement_get.restype = c_void_p
334 334
335# EAPI Eina_Bool eolian_function_is_class(const Eolian_Function *function_id); 335# EAPI Eina_Bool eolian_function_is_static(const Eolian_Function *function_id);
336lib.eolian_function_is_class.argtypes = (c_void_p,) 336lib.eolian_function_is_static.argtypes = (c_void_p,)
337lib.eolian_function_is_class.restype = c_bool 337lib.eolian_function_is_static.restype = c_bool
338 338
339# EAPI Eina_Bool eolian_function_is_constructor(const Eolian_Function *function_id, const Eolian_Class *klass); 339# EAPI Eina_Bool eolian_function_is_constructor(const Eolian_Function *function_id, const Eolian_Class *klass);
340lib.eolian_function_is_constructor.argtypes = (c_void_p,c_void_p,) 340lib.eolian_function_is_constructor.argtypes = (c_void_p,c_void_p,)
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index b597e812b7..5313e4cbba 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -374,7 +374,7 @@ class TestEolianFunction(unittest.TestCase):
374 self.assertIsNone(f.method_return_type) # TODO correct ? 374 self.assertIsNone(f.method_return_type) # TODO correct ?
375 self.assertIsNone(f.setter_return_type) # TODO correct ? 375 self.assertIsNone(f.setter_return_type) # TODO correct ?
376 self.assertIsNone(f.getter_return_type) # TODO correct ? 376 self.assertIsNone(f.getter_return_type) # TODO correct ?
377 self.assertFalse(f.is_class) 377 self.assertFalse(f.is_static)
378 self.assertFalse(f.is_beta) 378 self.assertFalse(f.is_beta)
379 self.assertFalse(f.is_constructor(cls)) 379 self.assertFalse(f.is_constructor(cls))
380 # # #assert f.is_function_pointer == False # TODO broken somehow 380 # # #assert f.is_function_pointer == False # TODO broken somehow