def remove_declaration(self, decl):
        """
        Removes declaration from members list.

        :param decl: declaration to be removed
        :type decl: :class:`declaration_t`

        """

        del self.declarations[self.declarations.index(decl)]
        decl.cache.reset()
Removes declaration from members list.

        :param decl: declaration to be removed
        :type decl: :class:`declaration_t`