Function: transient--locate-child
transient--locate-child is a byte-compiled function defined in
transient.el.
Signature
(transient--locate-child GROUP LOC)
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--locate-child (group loc)
(when (symbolp group)
(setq group (transient--get-layout group)))
(when (vectorp loc)
(setq loc (append loc nil)))
(cond-let
((atom loc)
(seq-some (lambda (child)
(transient--match-child group loc child))
(aref group 2)))
([match (transient--nth (pop loc) (aref group 2))]
(cond (loc (transient--locate-child
match (cond ((or (stringp (car loc))
(symbolp (car loc)))
(car loc))
((symbolp match)
(vconcat (cons 0 loc)))
((vconcat loc)))))
((list match group))))))