Function: eca-editor--lsp-locations->eca
eca-editor--lsp-locations->eca is a natively compiled function defined
in eca-editor.el.
Signature
(eca-editor--lsp-locations->eca RESULT)
Documentation
Normalize a lsp navigation RESULT into a vector of eca locations.
RESULT may be nil, a single Location, or a sequence of Location or LocationLink.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-editor.el
(defun eca-editor--lsp-locations->eca (result)
"Normalize a lsp navigation RESULT into a vector of eca locations.
RESULT may be nil, a single Location, or a sequence of Location
or LocationLink."
(let ((locations (cond
((null result) nil)
((vectorp result) (append result nil))
((hash-table-p result) (list result))
((keywordp (car-safe result)) (list result))
(t result))))
(vconcat (delq nil (mapcar #'eca-editor--lsp-location->eca locations)))))