imenu--make-index-alist

imenu--make-index-alist is a compiled Lisp function in `imenu.el'.

(imenu--make-index-alist &optional NOERROR)

Create an index alist for the definitions in the current buffer.
This works by using the hook function `imenu-create-index-function'.
Report an error if the list is empty unless NOERROR is supplied and
non-nil.

See `imenu--index-alist' for the format of the index alist.