valid_enum is a valid function

This commit is contained in:
Emmanuel Garette 2019-12-19 15:00:46 +01:00
parent 1a3632f577
commit 1b65d22eaa

View File

@ -981,8 +981,10 @@ class SpaceAnnotator(object):
for idx in remove_indexes:
del space[idx]
remove_indexes = []
functions = dir(self.eosfunc)
functions.append('valid_enum')
for idx, check in enumerate(space):
if not check.name in dir(self.eosfunc):
if not check.name in functions:
raise CreoleDictConsistencyError(_('cannot find check function {}').format(check.name))
#is_probe = not check.name in self.eosfunc.func_on_zephir_context
#if is_probe: