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 a cons (BEG . END) of positions representing LSP RANGE.

If optional MARKERS, make markers instead.

Aliases

eglot--range-region (obsolete since 1.16)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot-range-region (range &optional markers)
  "Return a cons (BEG . END) of positions representing LSP RANGE.
If optional MARKERS, make markers instead."
  (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)))