Function: ebrowse-class-alist-for-member

ebrowse-class-alist-for-member is a byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-class-alist-for-member TREE-HEADER NAME)

Documentation

Return information about a member in a class tree.

TREE-HEADER is the header structure of the class tree. NAME is the name of the member. Value is an alist of elements (CLASS-NAME . (CLASS LIST NAME)), where each element describes one occurrence of member NAME in the tree. CLASS-NAME is the qualified name of the class in which the member was found. The CDR of the acons is described in function ebrowse-class/index/member-for-member.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
;;; Tags view/find

(defun ebrowse-class-alist-for-member (tree-header name)
  "Return information about a member in a class tree.
TREE-HEADER is the header structure of the class tree.
NAME is the name of the member.
Value is an alist of elements (CLASS-NAME . (CLASS LIST NAME)),
where each element describes one occurrence of member NAME in the tree.
CLASS-NAME is the qualified name of the class in which the
member was found.  The CDR of the acons is described in function
`ebrowse-class/index/member-for-member'."
  (let ((table (ebrowse-member-table tree-header))
	known-classes
	alist)
    (when name
      (dolist (info (gethash name table) alist)
	(unless (memq (cl-first info) known-classes)
	  (setf alist (cl-acons (ebrowse-qualified-class-name
                                 (ebrowse-ts-class (cl-first info)))
                                info alist)
		known-classes (cons (cl-first info) known-classes)))))))