Function: ert--ewoc-position

ert--ewoc-position is a byte-compiled function defined in ert.el.gz.

Signature

(ert--ewoc-position EWOC NODE)

Documentation

Return the position of NODE in EWOC, or nil if NODE is not in EWOC.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--ewoc-position (ewoc node)
  ;; checkdoc-order: nil
  "Return the position of NODE in EWOC, or nil if NODE is not in EWOC."
  (cl-loop for i from 0
           for node-here = (ewoc-nth ewoc 0) then (ewoc-next ewoc node-here)
           do (when (eql node node-here)
                (cl-return i))
           finally (cl-return nil)))