Function: treesit--linecol-cache

treesit--linecol-cache is a function defined in treesit.c.

Signature

(treesit--linecol-cache)

Documentation

Return the buffer-local linecol cache for debugging.

Return a plist (:line LINE :col COL :pos POS :bytepos BYTEPOS). This is used for internal testing and debugging ONLY.

Source Code

// Defined in /usr/src/emacs/src/treesit.c
{
  struct ts_linecol cache = BUF_TS_LINECOL_POINT (current_buffer);

  Lisp_Object plist =  (list4 (QCcol, make_fixnum (cache.col),
			       QCbytepos, make_fixnum (cache.bytepos)));
  plist = Fcons (make_fixnum (cache.line), plist);
  plist = Fcons (QCline, plist);

  return plist;
}