Function: bazel--completion-table-with-prefix

bazel--completion-table-with-prefix is a natively compiled function defined in bazel.el.

Signature

(bazel--completion-table-with-prefix PREFIX TABLE)

Documentation

Return a completion table based on TABLE with the given PREFIX.

The returned completion table completes strings of the form
(concat PREFIX STRING), if TABLE completes STRING.

Source Code

;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--completion-table-with-prefix (prefix table)
  "Return a completion table based on TABLE with the given PREFIX.
The returned completion table completes strings of the form
\(concat PREFIX STRING), if TABLE completes STRING."
  (declare (ftype (function (string t) t))
           (indent 1))  ; reduces horizontal whitespace
  (cl-check-type prefix string)
  (if (string-empty-p prefix)
      table  ; small optimization
    (completion-table-subvert table prefix "")))