'TODO This function is temporary: Merge with eval_element.'

def _eval_element_if_evaluated(self, context, element):

    parent = element
    while (parent is not None):
        parent = parent.parent
        predefined_if_name_dict = context.predefined_names.get(parent)
        if (predefined_if_name_dict is not None):
            return self._eval_element_not_cached(context, element)
    return self._eval_element_cached(context, element)
