xref-buffer-location-p

xref-buffer-location-p is a Lisp function.

(xref-buffer-location-p OBJ)

Test OBJ to see if it an object of type xref-buffer-location