generator on all definition of variable

def defvars(self):
    """generator on all definition of variable"""
    for f in self.body:
        if (hasattr(f, '_ctype')
                and f._name != ''
                and not isinstance(f._ctype, FuncType)
                and f._ctype._storage != Storages.TYPEDEF):
            yield f