Function: bazel-mode-extract-function-name
bazel-mode-extract-function-name is a natively compiled function
defined in bazel.el.
Signature
(bazel-mode-extract-function-name)
Documentation
Return the name of the Starlark function at point.
Return nil if no name was found. This function is useful as
‘imenu-extract-index-name-function’ for ‘bazel-starlark-mode’.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel-mode-extract-function-name ()
"Return the name of the Starlark function at point.
Return nil if no name was found. This function is useful as
‘imenu-extract-index-name-function’ for ‘bazel-starlark-mode’."
(declare (ftype (function () (or string null))))
(let ((case-fold-search nil)
(search-spaces-regexp nil))
(and (looking-at python-nav-beginning-of-defun-regexp)
(match-string-no-properties 1))))