Function: semantic-symref-find-references-by-name

semantic-symref-find-references-by-name is an autoloaded, interactive and byte-compiled function defined in symref.el.gz.

Signature

(semantic-symref-find-references-by-name NAME &optional SCOPE TOOL-RETURN)

Documentation

Find a list of references to NAME in the current project.

Optional SCOPE specifies which file set to search. Defaults to project. Refers to semantic-symref-tool, to determine the reference tool to use for the current buffer. Returns an object of class semantic-symref-result(var)/semantic-symref-result(fun). TOOL-RETURN is an optional symbol, which will be assigned the tool used to perform the search. This was added for use by a test harness.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/symref.el.gz
;;; EXTERNAL API
;;

;;;###autoload
(defun semantic-symref-find-references-by-name (name &optional scope tool-return)
  "Find a list of references to NAME in the current project.
Optional SCOPE specifies which file set to search.  Defaults to `project'.
Refers to `semantic-symref-tool', to determine the reference tool to use
for the current buffer.
Returns an object of class `semantic-symref-result'.
TOOL-RETURN is an optional symbol, which will be assigned the tool used
to perform the search.  This was added for use by a test harness."
  (interactive "sName: ")
  (let* ((inst (semantic-symref-instantiate
		:searchfor name
		:searchtype 'symbol
		:searchscope (or scope 'project)
		:resulttype 'line))
	 (result (semantic-symref-get-result inst)))
    (when tool-return
      (set tool-return inst))
    (prog1
	(setq semantic-symref-last-result result)
      (when (called-interactively-p 'interactive)
	(semantic-symref-data-debug-last-result))))
  )