Function: semantic-scope-tag-clone-with-scope

semantic-scope-tag-clone-with-scope is a byte-compiled function defined in scope.el.gz.

Signature

(semantic-scope-tag-clone-with-scope TAG SCOPETAGS)

Documentation

Clone TAG, and return it. Add SCOPETAGS as a tag-local scope.

Stores the SCOPETAGS as a set of tag properties on the cloned tag.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/scope.el.gz
;;; TAG SCOPES
;;
;; These fcns should be used by search routines that return a single
;; tag which, in turn, may have come from a deep scope.  The scope
;; will be attached to the tag.  Thus, in future scope based calls, a
;; tag can be passed in and a scope derived from it.

(defun semantic-scope-tag-clone-with-scope (tag scopetags)
  "Clone TAG, and return it.  Add SCOPETAGS as a tag-local scope.
Stores the SCOPETAGS as a set of tag properties on the cloned tag."
  (let ((clone (semantic-tag-clone tag))
	)
    (semantic--tag-put-property clone 'scope scopetags)
    ))