xref-location-p

xref-location-p is a Lisp function.

(xref-location-p OBJ)

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