Function: semantic-analyze-current-symbol

semantic-analyze-current-symbol is a byte-compiled function defined in analyze.el.gz.

Signature

(semantic-analyze-current-symbol ANALYZEHOOKFCN &optional POSITION)

Documentation

Call ANALYZEHOOKFCN after analyzing the symbol under POSITION.

The ANALYZEHOOKFCN is called with the current symbol bounds, and the analyzed prefix. It should take the arguments (START END PREFIX). The ANALYZEHOOKFCN is only called if some sort of prefix with bounds was found under POSITION.

The results of ANALYZEHOOKFCN is returned, or nil if there was nothing to call it with.

For regular analysis, you should call semantic-analyze-current-context to calculate the context information. The purpose for this function is to provide a large number of non-cached analysis for filtering symbols.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/analyze.el.gz
;;; SHORT ANALYSIS
;;
;; Create a mini-analysis of just the symbol under point.
;;
(define-overloadable-function semantic-analyze-current-symbol
  (analyzehookfcn &optional position)
  "Call ANALYZEHOOKFCN after analyzing the symbol under POSITION.
The ANALYZEHOOKFCN is called with the current symbol bounds, and the
analyzed prefix.  It should take the arguments (START END PREFIX).
The ANALYZEHOOKFCN is only called if some sort of prefix with bounds was
found under POSITION.

The results of ANALYZEHOOKFCN is returned, or nil if there was nothing to
call it with.

For regular analysis, you should call `semantic-analyze-current-context'
to calculate the context information.  The purpose for this function is
to provide a large number of non-cached analysis for filtering symbols."
  ;; Only do this in a Semantic enabled buffer.
  (when (not (semantic-active-p))
    (error "Cannot analyze buffers not supported by Semantic"))
  ;; Always refresh out tags in a safe way before doing the
  ;; context.
  (semantic-refresh-tags-safe)
  ;; Do the rest of the analysis.
  (save-match-data
    (save-excursion
      (:override)))
  )