Function: evil-goto-definition-xref
evil-goto-definition-xref is a byte-compiled function defined in
evil-commands.el.
Signature
(evil-goto-definition-xref STRING POSITION)
Documentation
Find definition at POSITION with xref.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-goto-definition-xref (_string position)
"Find definition at POSITION with xref."
(when (fboundp 'xref-find-definitions)
(let ((identifier (save-excursion
(goto-char position)
(xref-backend-identifier-at-point (xref-find-backend)))))
(condition-case nil
(progn (xref-find-definitions identifier)
t)
(user-error nil)))))