Function: semantic-python-expand-tag

semantic-python-expand-tag is a byte-compiled function defined in python.el.gz.

Signature

(semantic-python-expand-tag TAG)

Documentation

Expand compound declarations found in TAG into separate tags.

TAG contains compound declaration if the NAME part of the tag is a list. In python, this can happen with import statements.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/python.el.gz
(defun semantic-python-expand-tag (tag)
  "Expand compound declarations found in TAG into separate tags.
TAG contains compound declaration if the NAME part of the tag is
a list.  In python, this can happen with `import' statements."
  (let ((class (semantic-tag-class tag))
	(elts (semantic-tag-name tag))
	(expand nil))
    (cond
     ((and (eq class 'include) (listp elts))
      (dolist (E elts)
	(setq expand (cons (semantic-tag-clone tag E) expand)))
      (setq expand (nreverse expand)))
     )))