generator on all declaration of functions

def declfuncs(self):
    """generator on all declaration of functions"""
    for f in self.body:
        if (hasattr(f, '_ctype')
                and isinstance(f._ctype, FuncType)
                and not hasattr(f, 'body')):
            yield f