def __eq__(self, other):
if not isinstance(other, self.__class__):<EOL><INDENT>return False<EOL><DEDENT>return self.name == other.nameand self.location == other.locationand declaration_utils.declaration_path(self.parent)== declaration_utils.declaration_path(other.parent)<EOL>
This function will return true, if both declarations refers to the same
object.
This function could be implemented in terms of _get__cmp__data, but in
this case it will downgrade performance. self.mangled property is not
compared, because it could be changed from one compilation time to an
other.