'Created to be used by inheritance.'

def infer_function_execution(self, function_execution):

    if self.tree_node.is_generator():
        return set([iterable.Generator(self.evaluator, function_execution)])
    else:
        return function_execution.get_return_values()
