Function: semantic-sb-maybe-token-to-button
semantic-sb-maybe-token-to-button is a byte-compiled function defined
in sb.el.gz.
Signature
(semantic-sb-maybe-token-to-button OBJ INDENT &optional PREFIX MODIFIERS)
Documentation
Convert OBJ, which was returned from the semantic parser, into a button.
This OBJ might be a plain string (simple type or untyped variable) or a complete tag. Argument INDENT is the indentation used when making the button. Optional PREFIX is the character to use when marking the line. Optional MODIFIERS is additional text needed for variables.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/sb.el.gz
(defun semantic-sb-maybe-token-to-button (obj indent &optional
prefix modifiers)
"Convert OBJ, which was returned from the semantic parser, into a button.
This OBJ might be a plain string (simple type or untyped variable)
or a complete tag.
Argument INDENT is the indentation used when making the button.
Optional PREFIX is the character to use when marking the line.
Optional MODIFIERS is additional text needed for variables."
(let ((myprefix (or prefix ">")))
(if (stringp obj)
(semantic-sb-speedbar-data-line indent myprefix obj)
(if (listp obj)
(progn
(if (and (stringp (car obj))
(= (length obj) 1))
(semantic-sb-speedbar-data-line indent myprefix
(concat
(car obj)
(or modifiers "")))
(semantic-sb-one-button obj indent prefix)))))))