Function: php-ts-mode--get-parser-ranges
php-ts-mode--get-parser-ranges is a byte-compiled function defined in
php-ts-mode.el.gz.
Signature
(php-ts-mode--get-parser-ranges)
Documentation
Return the ranges covered by the parsers.
php-ts-mode use five parsers, this function returns, for the
current buffer, the ranges covered by each parser.
Useful for debugging.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
(defun php-ts-mode--get-parser-ranges ()
"Return the ranges covered by the parsers.
`php-ts-mode' use five parsers, this function returns, for the
current buffer, the ranges covered by each parser.
Useful for debugging."
(let ((ranges)
(parsers (treesit-parser-list nil nil t)))
(if (not parsers)
(message "At least one parser must be initialized"))
(cl-loop
for parser in parsers
do (push (list parser (treesit-parser-included-ranges parser)) ranges)
finally return ranges)))