Node:Semantic analyser, Next:Symboldefinition, Previous:Add-on interactors, Up:Add-on interactors
The cedet-suite contains the semantic analyzer which is a library tool that performs context analysis and can derive useful information. See the related node in the info-manual of cedet/semantic for more detailed informations about this tool.
The analyzer output can be used through a special ECB-interactor. This
interface lists details about the analysis, such as the current
function, local arguments and variables, details on the prefix (the
symbol the cursor is on), and a list of all possible completions (see
semantic-analyze-possible-completions
for more details about
completions available via the semantic-analyser).
Per default the content of the analyser-interactor is automatically
synchronized and updated with current point of the current
source-buffer in the edit-area (see ecb-window-sync
and
ECB-window synchronizing).
The analyser-interactor is of type tree-buffer. See Tree-buffer basics for basic informations how to use such a tree-buffer.
ecb-mouse-click-destination
) will jump to the
related entry. For strongly typed languages, this means you will jump
to the definition of the variable, slot, or type definition.
ecb-mouse-click-destination
.
ECB offers the following commands for the analyser-interactor:
ecb-analyse-buffer-sync
ecb-goto-window-analyse
ecb-maximize-window-analyse
See Interactive ECB commands for details about these commands.
But you should not have any need to call
ecb-analyse-buffer-sync
directly because ECB automatically
syncronizes the analyser-interactor with current active edit-buffer.
Either use one of the predefined layouts "left-analyse" or
"leftright-analyse" (e.g. via C-c . l c) or create a new
ecb-layout via the command ecb-create-new-layout
and add a
buffer of type "other" and name "analyse" into this new layout
(see Creating a new ECB-layout).
See ecb-analyse for a list of all options currently available for customizing this interactor to your needs.