Function: semantic-c-template-string

semantic-c-template-string is a byte-compiled function defined in c.el.gz.

Signature

(semantic-c-template-string TOKEN &optional PARENT COLOR)

Documentation

Return a string representing the TEMPLATE attribute of TOKEN.

This string is prefixed with a space, or is the empty string. Argument PARENT specifies a parent type. Argument COLOR specifies that the string should be colorized.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
(defun semantic-c-template-string (token &optional parent _color)
  "Return a string representing the TEMPLATE attribute of TOKEN.
This string is prefixed with a space, or is the empty string.
Argument PARENT specifies a parent type.
Argument COLOR specifies that the string should be colorized."
  (let ((t2 (semantic-c-tag-template-specifier token))
	(t1 (semantic-c-tag-template token))
	;; @todo - Need to account for a parent that is a template
	(_pt1 (if parent (semantic-c-tag-template parent)))
	(_pt2 (if parent (semantic-c-tag-template-specifier parent)))
	)
    (cond (t2 ;; we have a template with specifier
	   (concat " <"
		   ;; Fill in the parts here
		   (semantic-c-template-string-body t2)
		   ">"))
	  (t1 ;; we have a template without specifier
	   " <>")
	  (t
	   ""))))