Function: eglot--range-region

eglot--range-region is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--range-region RANGE &optional MARKERS)

Documentation

Return region (BEG . END) that represents LSP RANGE.

If optional MARKERS, make markers.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--range-region (range &optional markers)
  "Return region (BEG . END) that represents LSP RANGE.
If optional MARKERS, make markers."
  (let* ((st (plist-get range :start))
         (beg (eglot--lsp-position-to-point st markers))
         (end (eglot--lsp-position-to-point (plist-get range :end) markers)))
    (cons beg end)))