Function: srecode-document-parameter-comment
srecode-document-parameter-comment is a byte-compiled function defined
in document.el.gz.
Signature
(srecode-document-parameter-comment PARAM &optional COMMENTLIST)
Documentation
Convert tag or string PARAM into a name,comment pair.
Optional COMMENTLIST is list of previously existing comments to use instead in alist form. If the name doesn't appear in the list of standard names, then english it instead.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/document.el.gz
(defun srecode-document-parameter-comment (param &optional _commentlist)
"Convert tag or string PARAM into a name,comment pair.
Optional COMMENTLIST is list of previously existing comments to
use instead in alist form. If the name doesn't appear in the list of
standard names, then english it instead."
(let ((cmt "")
(aso srecode-document-autocomment-param-alist)
(fnd nil)
(name (if (stringp param) param (semantic-tag-name param)))
(tt (if (stringp param) nil (semantic-tag-type param))))
;; Make sure the type is a string.
(if (listp tt)
(setq tt (semantic-tag-name tt)))
;; Find name description parts.
(while aso
(if (string-match (car (car aso)) name)
(progn
(setq fnd t)
(setq cmt (concat cmt (cdr (car aso))))))
(setq aso (cdr aso)))
(if (/= (length cmt) 0)
nil
;; finally check for array parts
(if (and (not (stringp param)) (semantic-tag-modifiers param))
(setq cmt (concat cmt "array of ")))
(setq aso srecode-document-autocomment-param-type-alist)
(while (and aso tt)
(if (string-match (car (car aso)) tt)
(setq cmt (concat cmt (cdr (car aso)))))
(setq aso (cdr aso))))
;; Convert from programmer to english.
(if (not fnd)
(setq cmt (concat cmt " "
(srecode-document-programmer->english name))))
cmt))