'sgoericke' writes:
> Because i'm a "beginner" in elisp maybe somebody could point me in the
> direction how to extend the eassist package to support nested namespaces? I use
> the ECB package too and it's method-buffer show all members even in nested
> namespaces so i think it's not a semantic problem.
Semantic indeed does support nested namespaces just fine. Do
M-x bovinate
to see the parser output Semantic returns. In the case of nested
namespaces, you get something like
(("foo" type
(:members
(("baz" type
(:members
(("bar" type
(:type "class")
(reparse-symbol namespacesubparts)
#<overlay from 54 to 107 in foo2.cpp>))
:type "namespace")
(reparse-symbol namespacesubparts)
#<overlay from 24 to 114 in foo2.cpp>))
:type "namespace")
nil #<overlay from 1 to 118 in foo2.cpp>))
(Just ignore the 'reparse symbol' and overlays; they're not important
for this task).
You see that namespaces are parsed as types by Semantic (with keyword
":type namespace"). All types belonging to a namespace are listed as
":members", which can again be namespaces. It seems eassist just doesn't
look deep enough.
-David
|