Function: bazel--target-completion-directory-p
bazel--target-completion-directory-p is a natively compiled function
defined in bazel.el.
Signature
(bazel--target-completion-directory-p STRING)
Documentation
Return whether STRING is a valid repository or package name.
Assume that STRING comes from ‘file-name-completion’ or
‘file-name-all-completions’. This is a helper function for
‘bazel--target-completion-table’.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--target-completion-directory-p (string)
"Return whether STRING is a valid repository or package name.
Assume that STRING comes from ‘file-name-completion’ or
‘file-name-all-completions’. This is a helper function for
‘bazel--target-completion-table’."
(declare (ftype (function (string) t)))
(cl-check-type string string)
;; No thorough check here, since this is only used for completion. Filename
;; completion always returns directory names for directories, so this
;; syntactic check suffices. See the code for ‘completion-file-name-table’
;; for prior art.
(and (directory-name-p string)
(not (string-prefix-p "." string))))