Function: semantic-sb-detail-parent
semantic-sb-detail-parent is a byte-compiled function defined in
sb.el.gz.
Signature
(semantic-sb-detail-parent)
Documentation
Return the first parent token of the current line that includes a location.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/sb.el.gz
(defun semantic-sb-detail-parent ()
"Return the first parent token of the current line that includes a location."
(save-excursion
(beginning-of-line)
(let ((dep (if (looking-at "[0-9]+:")
(1- (string-to-number (match-string 0)))
0)))
(re-search-backward (concat "^"
(int-to-string dep)
":")
nil t))
(beginning-of-line)
(if (looking-at "[0-9]+: +[-+][>()@|] \\([^\n]+\\)$")
(let ((prop nil))
(goto-char (match-beginning 1))
(setq prop (get-text-property (point) 'speedbar-token))
(if (semantic-tag-with-position-p prop)
prop
(semantic-sb-detail-parent)))
nil)))