valid_enum is a valid function
This commit is contained in:
parent
1a3632f577
commit
1b65d22eaa
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue