Function: eca-editor--lsp-obj-get
eca-editor--lsp-obj-get is a natively compiled function defined in
eca-editor.el.
Signature
(eca-editor--lsp-obj-get OBJ KEY)
Documentation
Get keyword KEY from lsp result OBJ.
Supports both lsp-mode result representations: hash-tables with string keys and plists with keyword keys.
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-obj-get (obj key)
"Get keyword KEY from lsp result OBJ.
Supports both lsp-mode result representations: hash-tables with
string keys and plists with keyword keys."
(cond
((hash-table-p obj) (gethash (substring (symbol-name key) 1) obj))
((listp obj) (plist-get obj key))))